diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22d5e4c3..3dd7031c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,7 @@ jobs: - name: Test run: bun run test - - name: build - run: bun run build - - - name: release + - name: Release run: bun run release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.gitignore b/.gitignore index e1a17ea3..67e9fe2e 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ __pycache__ /lobe_theme_config.json /javascript/**/* !/javascript/main.js +bun.lockb diff --git a/bun.lockb b/bun.lockb deleted file mode 100755 index 5f3be3e8..00000000 Binary files a/bun.lockb and /dev/null differ diff --git a/javascript/main.js b/javascript/main.js index 91688b02..3a7002db 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -1,9 +1,9 @@ -function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t,n){this.props=e,this.context=t,this.refs=Nb,this.updater=n||Tb}function r(){}function o(e,t,n){this.props=e,this.context=t,this.refs=Nb,this.updater=n||Tb}function i(e,t,n){var r,o,i,a,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)$b.call(t,r)&&!Pb.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ry.call(ay,e)||!ry.call(iy,e)&&(oy.test(e)?ay[e]=!0:(iy[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_y&&e[_y]||e["@@iterator"])?e:null}function v(e){if(void 0===Oy)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Oy=t&&t[1]||""}return"\n"+Oy+e}function w(e,t){var n,r,o,i,a,s,l;if(!e||ky)return"";ky=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ky=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?v(e):""}function E(e){switch(e.tag){case 5:return v(e.type);case 16:return v("Lazy");case 13:return v("Suspense");case 19:return v("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function x(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case py:return"Fragment";case dy:return"Portal";case hy:return"Profiler";case fy:return"StrictMode";case yy:return"Suspense";case vy:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case gy:return(e.displayName||"Context")+".Consumer";case my:return(e._context.displayName||"Context")+".Provider";case by:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case wy:return null!==(t=e.displayName||null)?t:x(e.type)||"Memo";case Ey:t=e._payload,e=e._init;try{return x(e(t))}catch(n){}}return null}function _(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x(t);case 8:return t===fy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function S(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function O(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function k(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=O(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function C(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=O(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function T(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function D(e,t){var n=t.checked;return Sy({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function N(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=S(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function R(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function I(e,t){R(e,t);var n=S(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?A(e,t.type,n):t.hasOwnProperty("defaultValue")&&A(e,t.type,S(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function A(e,t,n){"number"===t&&T(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function P(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function he(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ov(t)]=n}function me(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-ov(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function ge(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function Ze(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ze(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function et(){var e,t,n;for(e=window,t=T();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=T((e=t.contentWindow).document)}return t}function tt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function nt(e){var t,n,r,o=et(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&Ze(i.ownerDocument.documentElement,i)){null!==a&&tt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Qe(i,n),r=Qe(i,a),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;iiE||(e.current=oE[iE],oE[iE]=null,iE--)}function It(e,t){iE++,oE[iE]=e.current,e.current=t}function $t(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return aE;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function At(e){return null!=e.childContextTypes}function Pt(){Rt(lE),Rt(sE)}function jt(e,t,n){if(sE.current!==aE)throw Error(p(168));It(sE,t),It(lE,n)}function Lt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(p(108,_(e)||"Unknown",r));return Sy({},n,o)}function Ft(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||aE,cE=sE.current,It(sE,e),It(lE,lE.current),!0}function Mt(e,t,n){var r=e.stateNode;if(!r)throw Error(p(169));n?(e=Lt(e,t,cE),r.__reactInternalMemoizedMergedChildContext=e,Rt(lE),Rt(sE),It(sE,e)):Rt(lE),It(lE,n)}function Bt(e){null===uE?uE=[e]:uE.push(e)}function Ht(){var e,t,n,r;if(!pE&&null!==uE){pE=!0,e=0,t=cv;try{for(n=uE,cv=1;e>=a,o-=a,wE=1<<32-ov(t)+o|n<m?(g=p,p=null):g=p.sibling,null===(b=f(o,p,s[m],l))){null===p&&(p=g);break}e&&p&&null===b.alternate&&t(o,p),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,p=g}if(m===s.length)return n(o,p),SE&&Ut(o,m),c;if(null===p){for(;mm?(g=u,u=null):g=u.sibling,null===(v=f(o,u,b.value,l))){null===u&&(u=g);break}e&&u&&null===v.alternate&&t(o,u),a=i(v,a,m),null===c?w=v:c.sibling=v,c=v,u=g}if(b.done)return n(o,u),SE&&Ut(o,m),w;if(null===u){for(;!b.done;m++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,m),null===c?w=b:c.sibling=b,c=b);return SE&&Ut(o,m),w}for(u=r(o,u);!b.done;m++,b=s.next())null!==(b=h(u,o,m,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?m:b.key),a=i(b,a,m),null===c?w=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),SE&&Ut(o,m),w}(l,c,u,m);On(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=ti(u,l.mode,m)).return=l,l=c),a(l)):n(l,c)}}function Tn(e){if(e===LE)throw Error(p(174));return e}function Dn(e,t){switch(It(BE,t),It(ME,e),It(FE,LE),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Rt(FE),It(FE,t)}function Nn(){Rt(FE),Rt(ME),Rt(BE)}function Rn(e){var t,n;Tn(BE.current),(t=Tn(FE.current))!==(n=H(t,e.type))&&(It(ME,e),It(FE,n))}function In(e){ME.current===e&&(Rt(FE),Rt(ME))}function $n(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function An(){for(var e=0;er?r:4,e(!0),n=GE.transition,GE.transition={};try{e(!1),t()}finally{cv=r,GE.transition=n}}function fr(){return Bn().memoizedState}function hr(e,t,n){var r=vo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gr(e)?br(t,n):null!==(n=cn(e,t,n,r))&&(wo(n,e,r,yo()),yr(n,t,r))}function mr(e,t,n){var r,o,i,a,s=vo(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(gr(e))br(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,_w(i,o))return null===(a=t.interleaved)?(l.next=l,ln(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=cn(e,t,l,s))&&(wo(n,e,s,l=yo()),yr(n,t,s))}}function gr(e){var t=e.alternate;return e===VE||null!==t&&t===VE}function br(e,t){YE=qE=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,me(e,n)}}function vr(e,t){var n,r,o;try{n="",r=t;do{n+=E(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Er(e,t,n){(n=fn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fx||(Fx=!0,Mx=r)},n}function xr(e,t,n){var r,o,i;return(n=fn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bx?Bx=new Set([this]):Bx.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function _r(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new rx).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=zo.bind(null,e,t,n),t.then(e,e))}function Sr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Or(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=fn(-1,1)).tag=2,hn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function kr(e,t,n,r){t.child=null===e?jE(t,null,n,r):PE(t,e.child,n,r)}function Cr(e,t,n,r,o){n=n.render;var i=t.ref;return an(t,o),r=Ln(e,t,n,r,i,o),n=Fn(),null===e||ix?(SE&&n&&Gt(t),t.flags|=1,kr(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o))}function Tr(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Yo(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Dr(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Ye)(i.memoizedProps,r)&&e.ref===t.ref?Wr(e,t,o):(t.flags|=1,(e=Jo(i,r)).ref=t.ref,e.return=t,t.child=e))}function Dr(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ye(i,r)&&e.ref===t.ref){if(ix=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Wr(e,t,o);0!=(131072&e.flags)&&(ix=!0)}}return Ir(e,t,n,r,o)}function Nr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(Cx,kx),kx|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,It(Cx,kx),kx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,It(Cx,kx),kx|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,It(Cx,kx),kx|=r;return kr(e,t,o,n),t.child}function Rr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ir(e,t,n,r,o){var i=At(n)?cE:sE.current;return i=$t(t,i),an(t,o),n=Ln(e,t,n,r,i,o),r=Fn(),null===e||ix?(SE&&r&&Gt(t),t.flags|=1,kr(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o))}function $r(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,h;return At(n)?(i=!0,Ft(t)):i=!1,an(t,o),null===t.stateNode?(Gr(e,t),En(t,n,r),_n(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?sn(c):$t(t,c=At(n)?cE:sE.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xn(t,a,r,c),IE=!1,a.state=p=t.memoizedState,bn(t,r,a,o),l=t.memoizedState,s!==r||p!==l||lE.current||IE?("function"==typeof u&&(vn(t,n,u,r),l=t.memoizedState),(s=IE||wn(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,pn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:tn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?sn(l):$t(t,l=At(n)?cE:sE.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&xn(t,a,r,l),IE=!1,a.state=p=t.memoizedState,bn(t,r,a,o),h=t.memoizedState,s!==d||p!==h||lE.current||IE?("function"==typeof f&&(vn(t,n,f,r),h=t.memoizedState),(c=IE||wn(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)),Ar(e,t,n,r,i,o)}function Ar(e,t,n,r,o,i){var a,s;return Rr(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,ox.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=PE(t,e.child,null,i),t.child=PE(t,null,s,i)):kr(e,t,s,i),t.memoizedState=r.state,o&&Mt(t,n,!0),t.child):(o&&Mt(t,n,!1),Wr(e,t,i))}function Pr(e){var t=e.stateNode;t.pendingContext?jt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jt(0,t.context,!1),Dn(e,t.containerInfo)}function jr(e,t,n,r,o){return Zt(),en(o),t.flags|=256,kr(e,t,n,r),t.child}function Lr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fr(e,t,n){var r,o,i=t.pendingProps,a=HE.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),It(HE,1&a),null===e?(qt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ei(l,i,0,null),e=Zo(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Lr(n),t.memoizedState=ax,e):Mr(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Br(e,t,a,r=wr(Error(p(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ei({mode:"visible",children:r.children},o=t.mode,0,null),(i=Zo(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&PE(t,e.child,null,a),t.child.memoizedState=Lr(a),t.memoizedState=ax,i);if(0==(1&t.mode))return Br(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Br(e,t,a,r=wr(i=Error(p(419)),r,void 0))}if(s=0!=(a&e.childLanes),ix||s){if(null!==(r=_x)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,un(e,o),wo(r,e,o,-1))}return $o(),Br(e,t,a,r=wr(Error(p(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wo.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_E=St(o.nextSibling),xE=t,SE=!0,OE=null,null!==e&&(bE[yE++]=wE,bE[yE++]=EE,bE[yE++]=vE,wE=e.id,EE=e.overflow,vE=t),(t=Mr(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Jo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Jo(r,s):(s=Zo(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Lr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=ax,i):(e=(s=e.child).sibling,i=Jo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function Mr(e,t){return(t=ei({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Br(e,t,n,r){return null!==r&&en(r),PE(t,e.child,null,n),(e=Mr(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),on(e.return,t,n)}function Ur(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zr(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(kr(e,t,r.children,n),0!=(2&(r=HE.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(It(HE,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===$n(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ur(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===$n(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ur(t,!0,n,null,i);break;case"together":Ur(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nx|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(p(153));if(null!==t.child){for(n=Jo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Jo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vr(e,t){var n,r;if(!SE)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,i,a,s,l=t.pendingProps;switch(Wt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return At(t.type)&&Pt(),Xr(t),null;case 3:return l=t.stateNode,Nn(),Rt(lE),Rt(sE),An(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Jt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==OE&&(So(OE),OE=null))),lx(e,t),Xr(t),null;case 5:if(In(t),r=Tn(BE.current),n=t.type,null!==e&&null!=t.stateNode)cx(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(p(166));return Xr(t),null}if(e=Tn(FE.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[Qw]=t,l[Zw]=o,e=0!=(1&t.mode),n){case"dialog":ct("cancel",l),ct("close",l);break;case"iframe":case"object":case"embed":ct("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[Qw]=t,e[Zw]=l,sx(e,t,!1,!1),t.stateNode=e;e:{switch(i=V(n,l),n){case"dialog":ct("cancel",e),ct("close",e),r=l;break;case"iframe":case"object":case"embed":ct("load",e),r=l;break;case"video":case"audio":for(r=0;rjx&&(t.flags|=128,l=!0,Vr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=$n(i))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!SE)return Xr(t),null}else 2*qy()-o.renderingStartTime>jx&&1073741824!==n&&(t.flags|=128,l=!0,Vr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=qy(),t.sibling=null,n=HE.current,It(HE,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return Do(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&kx)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(p(156,t.tag))}function qr(e,t){switch(Wt(t),t.tag){case 1:return At(t.type)&&Pt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nn(),Rt(lE),Rt(sE),An(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return In(t),null;case 13:if(Rt(HE),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(p(340));Zt()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Rt(HE),null;case 4:return Nn(),null;case 10:return rn(t.type._context),null;case 22:case 23:return Do(),null;default:return null}}function Yr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Uo(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){Uo(e,t,r)}}function Qr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Jr(t,n,o)),r=r.next}while(r!==i)}}function Zr(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function eo(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function to(e){var t=e.alternate;null!==t&&(e.alternate=null,to(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[Qw],delete t[Zw],delete t[tE],delete t[nE],delete t[rE]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function no(e){return 5===e.tag||3===e.tag||4===e.tag}function ro(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||no(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function oo(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(oo(e,t,n),e=e.sibling;null!==e;)oo(e,t,n),e=e.sibling}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function ao(e,t,n){for(n=n.child;null!==n;)so(e,t,n),n=n.sibling}function so(e,t,n){var r,o,i,a;if(rv&&"function"==typeof rv.onCommitFiberUnmount)try{rv.onCommitFiberUnmount(nv,n)}catch(s){}switch(n.tag){case 5:px||Yr(n,t);case 6:r=gx,o=bx,gx=null,ao(e,t,n),bx=o,null!==(gx=r)&&(bx?(n=n.stateNode,8===(e=gx).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):gx.removeChild(n.stateNode));break;case 18:null!==gx&&(bx?(n=n.stateNode,8===(e=gx).nodeType?_t(e.parentNode,n):1===e.nodeType&&_t(e,n),Se(e)):_t(gx,n.stateNode));break;case 4:r=gx,o=bx,gx=n.stateNode.containerInfo,bx=!0,ao(e,t,n),gx=r,bx=o;break;case 0:case 11:case 14:case 15:if(!px&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jr(n,t,a),o=o.next}while(o!==r)}ao(e,t,n);break;case 1:if(!px&&(Yr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Uo(n,t,s)}ao(e,t,n);break;case 21:ao(e,t,n);break;case 22:1&n.mode?(px=(r=px)||null!==n.memoizedState,ao(e,t,n),px=r):ao(e,t,n);break;default:ao(e,t,n)}}function lo(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new fx),n.forEach((function(n){var r=Vo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function co(e,t){var n,r,o,i,a,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=qy()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yx(r/1960))-r)){e.timeoutHandle=Xw(Mo.bind(null,e,Ax,Lx),r);break}Mo(e,Ax,Lx);break;default:throw Error(p(329))}}}return Eo(e,qy()),e.callbackNode===n?xo.bind(null,e):null}function _o(e,t){var n=$x;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),2!==(e=Ao(e,t))&&(t=Ax,Ax=n,null!==t&&So(t)),e}function So(e){null===Ax?Ax=e:Ax.push.apply(Ax,e)}function Oo(e,t){for(t&=~Ix,e.suspendedLanes|=t&=~Rx,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ux)r=!1;else{if(e=Ux,Ux=null,zx=0,0!=(6&xx))throw Error(p(331));for(o=xx,xx|=4,hx=e.current;null!==hx;){if(a=(i=hx).child,0!=(16&hx.flags)&&null!==(s=i.deletions)){for(l=0;lqy()-Px?No(e,0):Ix|=n),Eo(e,t)}function Go(e,t){0===t&&(0==(1&e.mode)?t=1:(t=lv,0==(130023424&(lv<<=1))&&(lv=4194304)));var n=yo();null!==(e=un(e,t))&&(he(e,t,n),Eo(e,n))}function Wo(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Go(e,n)}function Vo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(p(314))}null!==n&&n.delete(t),Go(e,o)}function Xo(e,t){return Wy(e,t)}function Ko(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qo(e,t,n,r){return new Ko(e,t,n,r)}function Yo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jo(e,t){var n=e.alternate;return null===n?((n=qo(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qo(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Yo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case py:return Zo(n.children,o,i,t);case fy:a=8,o|=8;break;case hy:return(e=qo(12,n,t,2|o)).elementType=hy,e.lanes=i,e;case yy:return(e=qo(13,n,t,o)).elementType=yy,e.lanes=i,e;case vy:return(e=qo(19,n,t,o)).elementType=vy,e.lanes=i,e;case xy:return ei(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case my:a=10;break e;case gy:a=9;break e;case by:a=11;break e;case wy:a=14;break e;case Ey:a=16,r=null;break e}throw Error(p(130,null==e?e:typeof e,""))}return(t=qo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Zo(e,t,n,r){return(e=qo(7,e,r,t)).lanes=n,e}function ei(e,t,n,r){return(e=qo(22,e,r,t)).elementType=xy,e.lanes=n,e.stateNode={isHidden:!1},e}function ti(e,t,n){return(e=qo(6,e,null,t)).lanes=n,e}function ni(e,t,n){return(t=qo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ri(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fe(0),this.expirationTimes=fe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fe(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oi(e,t,n,r,o,i,a,s,l){return e=new ri(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=qo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dn(i),e}function ii(e){var t,n;if(!e)return aE;e:{if(re(e=e._reactInternals)!==e||1!==e.tag)throw Error(p(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(At(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(p(171))}return 1===e.tag&&At(n=e.type)?Lt(e,n,t):t}function ai(e,t,n,r,o,i,a,s,l){return(e=oi(n,r,!0,e,0,i,0,s,l)).context=ii(null),n=e.current,(i=fn(r=yo(),o=vo(n))).callback=null!=t?t:null,hn(n,i,o),e.current.lanes=o,he(e,o,r),Eo(e,r),e}function si(e,t,n,r){var o=t.current,i=yo(),a=vo(o);return n=ii(n),null===t.context?t.context=n:t.pendingContext=n,(t=fn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=hn(o,t,a))&&(wo(e,o,a,i),mn(e,o,a)),a}function li(e){return(e=e.current).child?e.child.stateNode:null}function ci(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function ki(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ti(e,t){var n,r;for(n=0;n2||Gi(IS)>3?"":" "}function qi(e,t){for(;--t&&Bi()&&!(IS<48||IS>102||IS>57&&IS<65||IS>70&&IS<97););return zi(e,Ui()+(t<6&&32==Hi()&&32==Bi()))}function Yi(e){for(;Bi();)switch(IS){case e:return RS;case 34:case 39:34!==e&&39!==e&&Yi(IS);break;case 40:41===e&&Yi(e);break;case 92:Bi()}return RS}function Ji(e,t){for(;Bi()&&e+IS!==57&&(e+IS!==84||47!==Hi()););return"/*"+zi(t,RS-1)+"*"+kS(47===e?e:Bi())}function Qi(e){for(;!Gi(Hi());)Bi();return zi(e,RS)}function Zi(e){return Vi(ea("",null,null,null,[""],e=Wi(e),0,[0],e))}function ea(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,y=0,v="",w=o,E=i,x=r,_=v;g;)switch(h=y,y=Bi()){case 40:if(108!=h&&58==$i(_,d-1)){-1!=Ii(_+=Ri(Xi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:_+=Xi(y);break;case 9:case 10:case 13:case 32:_+=Ki(h);break;case 92:_+=qi(Ui()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Li(na(Ji(Bi(),Ui()),t,n),l);break;default:_+="/"}break;case 123*m:s[c++]=Pi(_)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=Ri(_,/\f/g,"")),f>0&&Pi(_)-d&&Li(f>32?ra(_+";",r,n,d-1):ra(Ri(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Li(x=ta(_,t,n,c,u,o,s,v,w=[],E=[],d),i),123===y)if(0===u)ea(_,t,x,x,w,i,d,s,E);else switch(99===p&&110===$i(_,3)?100:p){case 100:case 108:case 109:case 115:ea(e,x,x,r&&Li(ta(e,x,x,0,0,o,s,v,o,w=[],d),E),o,E,d,s,r?w:E);break;default:ea(_,x,x,x,[""],E,0,s,E)}}c=u=f=0,m=b=1,v=_="",d=a;break;case 58:d=1+Pi(_),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(IS=RS>0?$i($S,--RS):0,DS--,10===IS&&(DS=1,TS--),IS))continue;switch(_+=kS(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Pi(_)-1)*b,b=1;break;case 64:45===Hi()&&(_+=Xi(Bi())),p=Hi(),u=d=Pi(v=_+=Qi(Ui())),y++;break;case 45:45===h&&2==Pi(_)&&(m=0)}}return i}function ta(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,h,m,g,b=o-1,y=0===o?i:[""],v=ji(y);for(d=0,p=0,f=0;d0?y[h]+" "+m:Ri(m,/&\f/g,y[h])))&&(l[f++]=g);return Fi(e,t,n,0===o?wS:s,l,c,u)}function na(e,t,n){return Fi(e,t,n,vS,kS(IS),Ai(e,2,-2),0)}function ra(e,t,n,r){return Fi(e,t,n,ES,Ai(e,0,r),Ai(e,r+1,-1),r)}function oa(e,t){var n,r="",o=ji(e);for(n=0;n6)switch($i(e,t+1)){case 109:if(45!==$i(e,t+4))break;case 102:return Ri(e,/(.+:)(.+)-([^]+)/,"$1"+yS+"$2-$3$1"+bS+(108==$i(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ii(e,"stretch")?sa(Ri(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$i(e,t+1))break;case 6444:switch($i(e,Pi(e)-3-(~Ii(e,"!important")&&10))){case 107:return Ri(e,":",":"+yS)+e;case 101:return Ri(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yS+(45===$i(e,14)?"inline-":"")+"box$3$1"+yS+"$2$3$1"+gS+"$2box$3")+e}break;case 5936:switch($i(e,t+11)){case 114:return yS+e+gS+Ri(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yS+e+gS+Ri(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yS+e+gS+Ri(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yS+e+gS+e+e}return e}function la(e,t,n){var r,o,i,a;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return JS={name:n.name,styles:n.styles,next:JS},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)JS={name:r.name,styles:r.styles,next:JS},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Sa(e,t,n){var r=Bb.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Oa(){}function ka(){}function Ca(e,t,n){t||ek[n]||(e(!1,n),ek[n]=!0)}function Ta(e,t){Ca(Oa,e,t)}function Da(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if(Ta(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):uk}function Aa(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Pa(e){return Array.from((dk.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ja(e,t){var n,r,o,i,a,s,l,c,u,d,p=arguments.length>1&&void 0!==t?t:{};if(!Ra())return null;if(n=p.csp,i=void 0===(o=p.priority)?0:o,s="prependQueue"===(a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r=p.prepend)),(l=document.createElement("style")).setAttribute(lk,a),s&&i&&l.setAttribute(ck,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e,u=(c=Aa(p)).firstChild,r){if(s&&(d=Pa(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(lk)))return!1;var t=Number(e.getAttribute(ck)||0);return i>=t}))).length)return c.insertBefore(l,d[d.length-1].nextSibling),l;c.insertBefore(l,u)}else c.appendChild(l);return l}function La(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Pa(Aa(n)).find((function(t){return t.getAttribute($a(n))===e}))}function Fa(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=La(e,n);r&&Aa(n).removeChild(r)}function Ma(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=dk.get(e);r&&Ia(document,r)||(n=ja("",t),dk.set(e,n.parentNode),e.removeChild(n))}(Aa(l),l),(r=La(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=ja(e,l)).setAttribute($a(l),t),s)}function Ba(e){if(Array.isArray(e))return e}function Ha(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ua(e,t){return Ba(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||va(e,t)||Ha()}function za(e){var t=Array.isArray(e)?e:[e];return mk.has(t)||mk.set(t,new hk(t)),mk.get(t)}function Ga(e){var t=gk.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof hk?t+=r.id:r&&"object"===xi(r)?t+=Ga(r):t+=r})),gk.set(e,t)),t}function Wa(e,t,n,r,o){var i,a,s=Bb.useContext(mY).cache,l=[e].concat(wa(t)),c=l.join("_"),u=bY([c]),d=function(e){s.update(l,(function(t){var r=Ua(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return Bb.useMemo((function(){d()}),[c]),i=s.get(l),a=i[1],gY((function(){null==o||o(a)}),(function(e){return d((function(t){var n=Ua(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(a)),[r+1,i]})),function(){s.update(l,(function(e){var t=Ua(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u((function(){return null==r?void 0:r(i,!1)})),null):[o-1,i]}))}}),[c]),a}function Va(e){return e.trim()}function Xa(e,t){return(e=t.exec(e))?e[0]:e}function Ka(e,t,n){return e.replace(t,n)}function qa(e,t){return e.indexOf(t)}function Ya(e,t){return 0|e.charCodeAt(t)}function Ja(e,t,n){return e.slice(t,n)}function Qa(e){return e.length}function Za(e){return e.length}function es(e,t){return t.push(e),e}function ts(e,t){return e.filter((function(e){return!Xa(e,t)}))}function ns(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zk,column:Gk,length:a,return:"",siblings:s}}function rs(e,t){return Uk(ns("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function os(e){for(;e.root;)e=rs(e.root,{children:[e]});es(e,e.siblings)}function is(){return Xk=Vk2||cs(Xk)>3?"":" "}function ps(e,t){for(;--t&&is()&&!(Xk<48||Xk>102||Xk>57&&Xk<65||Xk>70&&Xk<97););return ls(e,ss()+(t<6&&32==as()&&32==is()))}function fs(e){for(;is();)switch(Xk){case e:return Vk;case 34:case 39:34!==e&&39!==e&&fs(Xk);break;case 40:41===e&&fs(e);break;case 92:is()}return Vk}function hs(e,t){for(;is()&&e+Xk!==57&&(e+Xk!==84||47!==as()););return"/*"+ls(t,Vk-1)+"*"+Hk(47===e?e:is())}function ms(e){for(;!cs(as());)is();return ls(e,Vk)}function gs(e){return function(e){return Kk="",e}(bs("",null,null,null,[""],e=function(e){return zk=Gk=1,Wk=Qa(Kk=e),Vk=0,[]}(e),0,[0],e))}function bs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,y=0,v="",w=o,E=i,x=r,_=v;g;)switch(h=y,y=is()){case 40:if(108!=h&&58==Ya(_,d-1)){-1!=qa(_+=Ka(us(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:_+=us(y);break;case 9:case 10:case 13:case 32:_+=ds(h);break;case 92:_+=ps(ss()-1,7);continue;case 47:switch(as()){case 42:case 47:es(vs(hs(is(),ss()),t,n,l),l);break;default:_+="/"}break;case 123*m:s[c++]=Qa(_)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=Ka(_,/\f/g,"")),f>0&&Qa(_)-d&&es(f>32?ws(_+";",r,n,d-1,l):ws(Ka(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(es(x=ys(_,t,n,c,u,o,s,v,w=[],E=[],d,i),i),123===y)if(0===u)bs(_,t,x,x,w,i,d,s,E);else switch(99===p&&110===Ya(_,3)?100:p){case 100:case 108:case 109:case 115:bs(e,x,x,r&&es(ys(e,x,x,0,0,o,s,v,o,w=[],d,E),E),o,E,d,s,r?w:E);break;default:bs(_,x,x,x,[""],E,0,s,E)}}c=u=f=0,m=b=1,v=_="",d=a;break;case 58:d=1+Qa(_),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Xk=Vk>0?Ya(Kk,--Vk):0,Gk--,10===Xk&&(Gk=1,zk--),Xk))continue;switch(_+=Hk(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Qa(_)-1)*b,b=1;break;case 64:45===as()&&(_+=us(is())),p=as(),u=d=Qa(v=_+=ms(ss())),y++;break;case 45:45===h&&2==Qa(_)&&(m=0)}}return i}function ys(e,t,n,r,o,i,a,s,l,c,u,d){var p,f,h,m,g,b,y=o-1,v=0===o?i:[""],w=Za(v);for(p=0,f=0,h=0;p0?v[m]+" "+g:Ka(g,/&\f/g,v[m])))&&(l[h++]=b);return ns(e,t,n,0===o?Pk:s,l,c,u,d)}function vs(e,t,n,r){return ns(e,t,n,Ak,Hk(Xk),Ja(e,2,-2),0,r)}function ws(e,t,n,r,o){return ns(e,t,n,jk,Ja(e,0,r),Ja(e,r+1,-1),r,o)}function Es(e,t,n){switch(function(e,t){return 45^Ya(e,0)?(((t<<2^Ya(e,0))<<2^Ya(e,1))<<2^Ya(e,2))<<2^Ya(e,3):0}(e,t)){case 5103:return $k+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $k+e+e;case 4789:return Ik+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $k+e+Ik+e+Rk+e+e;case 5936:switch(Ya(e,t+11)){case 114:return $k+e+Rk+Ka(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $k+e+Rk+Ka(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $k+e+Rk+Ka(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $k+e+Rk+e+e;case 6165:return $k+e+Rk+"flex-"+e+e;case 5187:return $k+e+Ka(e,/(\w+).+(:[^]+)/,$k+"box-$1$2"+Rk+"flex-$1$2")+e;case 5443:return $k+e+Rk+"flex-item-"+Ka(e,/flex-|-self/g,"")+(Xa(e,/flex-|baseline/)?"":Rk+"grid-row-"+Ka(e,/flex-|-self/g,""))+e;case 4675:return $k+e+Rk+"flex-line-pack"+Ka(e,/align-content|flex-|-self/g,"")+e;case 5548:return $k+e+Rk+Ka(e,"shrink","negative")+e;case 5292:return $k+e+Rk+Ka(e,"basis","preferred-size")+e;case 6060:return $k+"box-"+Ka(e,"-grow","")+$k+e+Rk+Ka(e,"grow","positive")+e;case 4554:return $k+Ka(e,/([^-])(transform)/g,"$1"+$k+"$2")+e;case 6187:return Ka(Ka(Ka(e,/(zoom-|grab)/,$k+"$1"),/(image-set)/,$k+"$1"),e,"")+e;case 5495:case 3959:return Ka(e,/(image-set\([^]*)/,$k+"$1$`$1");case 4968:return Ka(Ka(e,/(.+:)(flex-)?(.*)/,$k+"box-pack:$3"+Rk+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$k+e+e;case 4200:if(!Xa(e,/flex-|baseline/))return Rk+"grid-column-align"+Ja(e,t)+e;break;case 2592:case 3360:return Rk+Ka(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Xa(e.props,/grid-\w+-end/)}))?~qa(e+(n=n[t].value),"span")?e:Rk+Ka(e,"-start","")+e+Rk+"grid-row-span:"+(~qa(n,"span")?Xa(n,/\d+/):+Xa(n,/\d+/)-+Xa(e,/\d+/))+";":Rk+Ka(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Xa(e.props,/grid-\w+-start/)}))?e:Rk+Ka(Ka(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ka(e,/(.+)-inline(.+)/,$k+"$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(Qa(e)-1-t>6)switch(Ya(e,t+1)){case 109:if(45!==Ya(e,t+4))break;case 102:return Ka(e,/(.+:)(.+)-([^]+)/,"$1"+$k+"$2-$3$1"+Ik+(108==Ya(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qa(e,"stretch")?Es(Ka(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ka(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return Rk+n+":"+r+s+(o?Rk+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Ya(e,t+6))return Ka(e,":",":"+$k)+e;break;case 6444:switch(Ya(e,45===Ya(e,14)?18:11)){case 120:return Ka(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$k+(45===Ya(e,14)?"inline-":"")+"box$3$1"+$k+"$2$3$1"+Rk+"$2box$3")+e;case 100:return Ka(e,":",":"+Rk)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ka(e,"scroll-","scroll-snap-")+e}return e}function xs(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case jk:return void(e.return=Es(e.value,e.length,n));case Fk:return xs([rs(e,{value:Ka(e.value,"@","@"+$k)})],r);case Pk:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Xa(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":os(rs(e,{props:[Ka(t,/:(read-\w+)/,":"+Ik+"$1")]})),os(rs(e,{props:[t]})),Uk(e,{props:ts(n,r)});break;case"::placeholder":os(rs(e,{props:[Ka(t,/:(plac\w+)/,":"+$k+"input-$1")]})),os(rs(e,{props:[Ka(t,/:(plac\w+)/,":"+Ik+"$1")]})),os(rs(e,{props:[Ka(t,/:(plac\w+)/,Rk+"input-$1")]})),os(rs(e,{props:[t]})),Uk(e,{props:ts(n,r)})}return""}))}}function Os(e){return xs(gs(e),_s).replace(/\{%%%\:[^;];}/g,";")}function ks(){return null}function Cs(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b=e.token,y=e.path,v=e.hashId,w=e.layer,E=e.nonce,x=e.clientOnly,_=e.order,S=void 0===_?0:_,O=Bb.useContext(mY),k=O.autoClear;return n=O.defaultCache,r=O.hashPriority,o=O.container,i=O.ssrInline,a=O.transformers,s=O.linters,l=O.cache,u=[c=b._tokenKey].concat(wa(y)),d=Zk,p=Wa("style",u,(function(){var e,n,o,i,l,d,p,f,h=u.join("|");return function(e){var t,n,r;return Jk||(Jk={},Ra()&&((t=document.createElement("div")).className=qk,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=Ua(e.split(":"),2);Jk[t[0]]=t[1]})),(n=document.querySelector("style[".concat(qk,"]")))&&(Qk=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!Jk[e]}(h)&&(e=function(e){var t,n=Jk[e],r=null;return n&&Ra()&&(Qk?r=Yk:(t=document.querySelector("style[".concat(ok,'="').concat(Jk[e],'"]')))?r=t.innerHTML:delete Jk[e]),[r,n]}(h),o=(n=Ua(e,2))[0])?[o,c,n[1],{},x,S]:(i=t(),d=(l=Ua(tC(i,{hashId:v,hashPriority:r,layer:w,path:y.join("-"),transformers:a,linters:s}),2))[1],p=Os(l[0]),f=function(e,t){return _a("".concat(e.join("%")).concat(t))}(u,p),[p,c,f,d,x,S])}),(function(e,t){var n=Ua(e,3);(t||k)&&Zk&&Fa(n[2],{mark:ok})}),(function(e){var t,n,r,i,a,s=Ua(e,4),u=s[0];t=s[2],n=s[3],d&&u!==Yk&&(r={mark:ok,prepend:"queue",attachTo:o,priority:S},(i="function"==typeof E?E():E)&&(r.csp={nonce:i}),(a=Ma(u,t,r))[ik]=l.instanceId,a.setAttribute(rk,c),Object.keys(n).forEach((function(e){Ma(Os(n[e]),"_effect-".concat(e),r)})))})),f=Ua(p,3),h=f[0],m=f[1],g=f[2],function(e){var t,r;return t=i&&!d&&n?Bb.createElement("style",pa({},(Si(r={},rk,m),Si(r,ok,g),r),{dangerouslySetInnerHTML:{__html:h}})):Bb.createElement(ks,null),Bb.createElement(Bb.Fragment,null,t,e)}}function Ts(e){return e.notSplit=!0,e}function Ds(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ns(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return Aq.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ls(e)):BO.isFragment(e)&&e.props?r=r.concat(Ls(e.props.children,n)):r.push(e))})),r}function Fs(e,t){"function"==typeof e?e(t):"object"===xi(e)&&e&&"current"in e&&(e.current=t)}function Ms(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!Qs(e,t.slice(0,-1))?e:Zs(e,t,n,o)}function tl(e){return Array.isArray(e)?[]:{}}function nl(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function sl(e){return e<=1?"".concat(100*Number(e),"%"):e}function ll(e){return 1===e.length?"0"+e:String(e)}function cl(e,t,n){var r,o,i,a,s,l;if(e=ol(e,255),t=ol(t,255),n=ol(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dl(e,t,n){var r,o,i,a,s,l;if(e=ol(e,255),t=ol(t,255),n=ol(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-WC*t:Math.round(e.h)+WC*t:n?Math.round(e.h)+WC*t:Math.round(e.h)-WC*t)<0?r+=360:r>=360&&(r-=360),r}function wl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-VC*t:t===JC?e.s+VC:e.s+XC*t)>1&&(r=1),n&&t===YC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function El(e,t,n){var r;return(r=n?e.v+KC*t:e.v-qC*t)>1&&(r=1),Number(r.toFixed(2))}function xl(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=ml(e);for(n=YC;n>0;n-=1)o=yl(ml({h:vl(r=bl(u),n,!0),s:wl(r,n,!0),v:El(r,n,!0)})),c.push(o);for(c.push(yl(u)),i=1;i<=JC;i+=1)s=yl(ml({h:vl(a=bl(u),i),s:wl(a,i),v:El(a,i)})),c.push(s);return"dark"===l.theme?QC.map((function(e){var t,n,r,o=e.index,i=e.opacity;return yl((t=ml(l.backgroundColor||"#141414"),{r:((n=ml(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function _l(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),h=n(a),m=n(s),g=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg: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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new GC("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function Sl(e){const t=Object.keys(AY).map((t=>{const n=xl(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),_l(e,{generateColorPalettes:MY,generateNeutralColorPalettes:BY})),HY(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),$Y(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},jY(r))}(e))}function Ol(e){return e>=0&&e<=255}function kl(e,t){const{r:n,g:r,b:o,a:i}=new GC(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new GC(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(Ol(e)&&Ol(t)&&Ol(i))return new GC({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new GC({r:n,g:r,b:o,a:1}).toRgbString()}function Cl(e){const{override:t}=e,n=rT(e,["override"]),r=Object.assign({},t);Object.keys(PY).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:kl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:kl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:kl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new GC("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new GC("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new GC("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Tl(){const{token:e,hashed:t,theme:n,components:r}=Aq.useContext(GY),o=`${IY}-${t||""}`,i=n||UY,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=Bb.useContext(mY).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?Ok:s,c=r.formatToken,u=r.getComputedToken,d=Bb.useMemo((function(){return Object.assign.apply(Object,[{}].concat(wa(t)))}),[t]),p=Bb.useMemo((function(){return Ga(d)}),[d]),f=Bb.useMemo((function(){return Ga(l)}),[l]),h=Wa("token",[a,e.id,p,f],(function(){var t,n=u?u(d,l,e):Dk(d,l,e,c),r=function(e,t){return _a("".concat(t,"_").concat(Ga(e)))}(n,a);return n._tokenKey=r,function(e){Ck.set(e,(Ck.get(e)||0)+1)}(r),t="".concat(kk,"-").concat(_a(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;Ck.set(e,(Ck.get(e)||0)-1),r=(n=Array.from(Ck.keys())).filter((function(e){return(Ck.get(e)||0)<=0})),n.length-r.length>Tk&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(rk,'="').concat(e,'"]')).forEach((function(e){var n;e[ik]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Ck.delete(e)}))}(e[0]._tokenKey,o)}));return h}(i,[PY,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:WY,formatToken:Cl});return[i,a,t?s:""]}function Dl(e){var t,n=Bb.useRef();return n.current=e,t=Bb.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),nJ=!0,r}function Al(){}function Pl(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};const i=Array.isArray(e)?e:[e,e],[a]=i,s=i.join("-");return e=>{const[r,i,l]=Tl(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=Bb.useContext(XY),p=c(),f={theme:r,token:i,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:o.clientOnly,order:o.order||-999};return Cs(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",p]}),(()=>[{"&":JY(i)}])),oJ(u),[Cs(Object.assign(Object.assign({},f),{path:[s,e,u]}),(()=>{const{token:r,flush:s}=function(e){let t,n=e,r=Al;return tJ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(nJ&&t.add(n),e[n])}),r=(e,n)=>{var r;rJ[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=rJ[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(i),c=Object.assign({},i[a]);if(o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n($l(r,null!=c?c:{})):n,f=Object.assign(Object.assign({},d),c),h=$l(r,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${p}`},f),m=t(h,{hashId:l,prefixCls:e,rootPrefixCls:p,iconPrefixCls:u,overrideComponentToken:c});return s(a,f),[!1===o.resetStyle?null:QY(i,e),m]})),l]}}function jl(e,t){return RY.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function Ll(e){var t=e.children,n=Oi(e,iT);return Bb.createElement(aT.Provider,{value:n},t)}function Fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Ml(e){var t,n,r,o,i;if(ET[e])return ET[e];if(t=yT[e])for(r=(n=Object.keys(t)).length,o=0;o0&&void 0!==e?e:[]).map(Ul)}function Gl(e){const{children:t}=e,[,n]=Tl(),{motion:r}=n,o=Bb.useRef(!1);return o.current=o.current||!1===r,o.current?Bb.createElement(Ll,{motion:r},t):t}function Wl(){return gJ||"ant"}function Vl(){return bJ||VY}function Xl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Kl(e){return function(e){return Xl(e)instanceof ShadowRoot}(e)?Xl(e):null}function ql(e){return"object"===xi(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===xi(e.icon)||"function"==typeof e.icon)}function Yl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r,o=t[n];return"class"===n?(e.className=o,delete e.class):(delete e[n],e[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),e}),{})}function Jl(e,t,n){return Aq.createElement(e.tag,n?xa(xa({key:t},Yl(e.attrs)),n):xa({key:t},Yl(e.attrs)),(e.children||[]).map((function(n,r){return Jl(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Ql(e){return xl(e)[0]}function Zl(e){return e?Array.isArray(e)?e:[e]:[]}function ec(e){var t=Ua(Zl(e),2);return _J.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function tc(e,t){return 0===e.indexOf(t)}function nc(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:xa({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||tc(t,WT))||n.data&&tc(t,VT)||n.attr&>.includes(t))&&(r[t]=e[t])})),r}function rc(e){return e&&AJ(e)&&e.type===Bb.Fragment}function oc(e,t){return function(e,t,n){return AJ(e)?Bb.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function ic(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?eD:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=t.renderNotifications,d=Oi(t,ZT),p=Ua(Bb.useState(),2),f=p[0],h=p[1],m=Bb.useRef(),g=Bb.createElement(QT,{container:f,ref:m,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c,renderNotifications:u}),b=Ua(Bb.useState([]),2),y=b[0],v=b[1],w=Bb.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function sc(e){const t=Bb.useRef(null);return[Bb.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:p,onClose:f}=n,h=rD(n,["content","icon","type","key","className","style","onClose"]);let m=u;return null==m&&(QJ+=1,m=`antd-message-${QJ}`),ac((t=>(r(Object.assign(Object.assign({},h),{key:m,content:Bb.createElement(XJ,{prefixCls:o,type:c,icon:l},s),placement:"top",className:yY(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==f||f(),t()}})),()=>{e(m)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),Bb.createElement(JJ,Object.assign({key:"message-holder"},e,{ref:t}))]}function lc(e){return sc(e)}function cc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new p(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==xi(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o=_;return function(i,a){var s,l,u;if(o===O)throw new Error("Generator is already running");if(o===k){if("throw"===i)throw a;return{value:h,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===C)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=k,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o=O,"normal"===(u=n(e,t,r)).type){if(o=r.done?k:S,u.arg===C)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=k,r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return a===h?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=h,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),C):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,C):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,C):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e||""===e){if(t=e[w])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),C},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,d(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=h),C}},m}function uc(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function dc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){uc(s,r,o,i,a,"next",e)}function a(e){uc(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function pc(e){var t=oD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===xi(t)&&(t.usingClientEntryPoint=e)}function fc(e,t){lD?function(e,t){pc(!0);var n=t[cD]||lD(t);pc(!1),n.render(e),t[cD]=n}(e,t):function(e,t){aD(e,t)}(e,t)}function hc(e){return mc.apply(this,arguments)}function mc(){return(mc=dc(cc().mark((function e(t){return cc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[cD])||void 0===e||e.unmount(),delete t[cD]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gc(e){sD(e)}function bc(e){return yc.apply(this,arguments)}function yc(){return(yc=dc(cc().mark((function e(t){return cc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===lD){e.next=2;break}return e.abrupt("return",hc(t));case 2:gc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function wc(e){return Number.isNaN(e)?0:e}function Ec(e){return"string"==typeof e}function xc(e){return"text"===e||"link"===e}function _c(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Sc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Oc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},_c(e,o,n)),Sc(r,o,n))}}function kc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Cc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},kc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function Tc(e){return"danger"===e?{danger:!0}:{type:e}}function Dc(e){return!(!e||!e.then)}function Nc(e){var t,n,r,o,i;return"undefined"==typeof document?0:((e||void 0===mD)&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),mD=o-i),mD)}function Rc(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?Nc():n}function Ic(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Rc(t.width),height:Rc(n)}}function $c(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y=e.open,v=e.autoLock,w=e.getContainer;return n=void 0===(t=e.autoDestroy)||t,r=e.children,i=(o=Ua(Bb.useState(y),2))[0],a=o[1],Bb.useEffect((function(){(n||y)&&a(y)}),[y,n]),l=(s=Ua(Bb.useState((function(){return vD(w)})),2))[0],c=s[1],Bb.useEffect((function(){var e=vD(w);c(null!=e?e:null)})),u=function(e){function t(){r.parentElement||document.body.appendChild(r)}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r)}var r=Ua(Bb.useState((function(){return Ra()?document.createElement("div"):null})),1)[0],o=Bb.useContext(fD),i=Ua(Bb.useState(hD),2),a=i[0],s=i[1],l=o||function(e){s((function(t){return[e].concat(wa(t))}))};return Ek((function(){return e?o?o(t):t():n(),n}),[e]),Ek((function(){a.length&&(a.forEach((function(e){return e()})),s(hD))}),[a]),[r,l]}(i&&!l),p=(d=Ua(u,2))[0],f=d[1],h=null!=l?l:p,m=v&&y&&Ra()&&(h===p||h===document.body),g=!!m,b=Ua(Bb.useState((function(){return bD+=1,"".concat(gD,"_").concat(bD)})),1)[0],Ek((function(){var e,t;return g?(e=Nc(),t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ma("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)):Fa(b),function(){Fa(b)}}),[g,b]),i&&Ra()&&void 0!==l?Bb.createElement(fD.Provider,{value:f},!1===h||yD?r:e_.createPortal(r,h)):null}function Ac(e){var t=Ua(Bb.useState("ssr-id"),2),n=t[0],r=t[1],o=xa({},Pq).useId,i=null==o?void 0:o();return Bb.useEffect((function(){if(!o){var e=ED;ED+=1,r("rc_unique_".concat(e))}}),[]),e||i||n}function Pc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function jc(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function Lc(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return Bb.createElement(fJ,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className;return Bb.createElement("div",pa({ref:o,style:xa(xa({},e.style),n),className:yY("".concat(t,"-mask"),i)},r))}))}function Fc(e){function t(e){null==h||h(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,h=e.onClose,m=e.afterOpenChange,g=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,w=void 0===v||v,E=e.mask,x=void 0===E||E,_=e.maskTransitionName,S=e.maskAnimation,O=e.maskClosable,k=void 0===O||O,C=e.maskStyle,T=e.maskProps,D=e.rootClassName,N=Bb.useRef(),R=Bb.useRef(),I=Bb.useRef(),$=Ua(Bb.useState(a),2),A=$[0],P=$[1],j=Ac(),L=Bb.useRef(!1),F=Bb.useRef(),M=null;return k&&(M=function(e){L.current?L.current=!1:R.current===e.target&&t(e)}),Bb.useEffect((function(){a&&(P(!0),Ia(R.current,document.activeElement)||(N.current=document.activeElement))}),[a]),Bb.useEffect((function(){return function(){clearTimeout(F.current)}}),[]),Bb.createElement("div",pa({className:yY("".concat(r,"-root"),D)},nc(e,{data:!0})),Bb.createElement(Lc,{prefixCls:r,visible:x&&a,motionName:Pc(r,_,S),style:xa({zIndex:o},C),maskProps:T}),Bb.createElement("div",pa({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===XT.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===XT.TAB&&I.current.changeActive(!e.shiftKey)},className:yY("".concat(r,"-wrap"),p),ref:R,onClick:M,style:xa(xa({zIndex:o},d),{},{display:A?null:"none"})},f),Bb.createElement(SD,pa({},e,{onMouseDown:function(){clearTimeout(F.current),L.current=!0},onMouseUp:function(){F.current=setTimeout((function(){L.current=!1}))},ref:I,closable:w,ariaId:j,prefixCls:r,visible:a&&A,onClose:t,onVisibleChanged:function(e){if(e)Ia(R.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(P(!1),x&&N.current&&u){try{N.current.focus({preventScroll:!0})}catch(lq){}N.current=null}A&&(null==g||g())}var t;null==m||m(e)},motionName:Pc(r,b,y)}))))}function Mc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:Aq.createElement(DJ,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Bc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Kc(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function qc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s2&&void 0!==n&&n;return e&&e.some((function(e){return lu(t,e,r)}))}function lu(e,t,n){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==n&&n)&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function cu(e,t){var n=arguments.length<=1?void 0:t;return n&&n.target&&"object"===xi(n.target)&&e in n.target?n.target[e]:n}function uu(e,t,n){var r,o,i=e.length;return t<0||t>=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(wa(e.slice(0,n)),[r],wa(e.slice(n,t)),wa(e.slice(t+1,i))):o<0?[].concat(wa(e.slice(0,t)),wa(e.slice(t+1,n+1)),[r],wa(e.slice(n+1,i))):e)}function du(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function pu(e){var t=e.name,n=Oi(e,YD),r=Bb.useContext(TD),o=Bb.useContext(DD),i=void 0!==t?iu(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),Bb.createElement(QD,pa({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function fu(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=Bb.useContext(TD),l=Bb.useContext(DD),c=Bb.useRef({keys:[],id:0}).current,u=Bb.useMemo((function(){var e=iu(s.prefixName)||[];return[].concat(wa(e),wa(iu(t)))}),[s.prefixName,t]),d=Bb.useMemo((function(){return xa(xa({},s),{},{prefixName:u})}),[s,u]),p=Bb.useMemo((function(){return{getKey:function(e){var t=u.length;return[c.keys[e[t]],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(Ta(!1,"Form.List only accepts function as children."),null):Bb.createElement(DD.Provider,{value:p},Bb.createElement(TD.Provider,{value:d},Bb.createElement(pu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=e.onChange,i=s.getFieldValue,a=function(){return i(u||[])||[]},l={add:function(e,t){var n=a();t>=0&&t<=n.length?(c.keys=[].concat(wa(c.keys.slice(0,t)),[c.id],wa(c.keys.slice(t))),o([].concat(wa(n.slice(0,t)),[e],wa(n.slice(t))))):(c.keys=[].concat(wa(c.keys),[c.id]),o([].concat(wa(n),[e]))),c.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=uu(c.keys,e,t),o(uu(n,e,t)))}}},d=(void 0===n?[]:n)||[];return Array.isArray(d)||(d=[]),r(d.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))}function hu(e){return e.map((function(e){return"".concat(xi(e),":").concat(e)})).join(ZD)}function mu(e){var t,n=Bb.useRef(),r=Ua(Bb.useState({}),2)[1];return n.current||(e?n.current=e:(t=new nN((function(){r({})})),n.current=t.getForm())),[n.current]}function gu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function bu(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y;for(e=arguments.length,t=new Array(e),n=0;n{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}function wu(e,t){return Aq.createElement("span",{className:`${e}-close-x`},t||Aq.createElement(DJ,{className:`${e}-close-icon`}))}function Eu(e){return{position:e,inset:0}}function xu(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=cN(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=Bb.createElement($J,null);break;case"success":d=Bb.createElement(OJ,null);break;case"error":d=Bb.createElement(CJ,null);break;default:d=Bb.createElement(RJ,null)}const p=null!=s?s:"confirm"===a,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=DY("Modal"),m=c||h,g=Object.assign({autoFocusButton:f,cancelTextLocale:o||(null==m?void 0:m.cancelText),okTextLocale:r||(p?null==m?void 0:m.okText:null==m?void 0:m.justOkText),mergedOkCancel:p},u),b=Bb.useMemo((()=>g),wa(Object.values(g))),y=Bb.createElement(Bb.Fragment,null,Bb.createElement(sZ,null),Bb.createElement(lZ,null)),v=null!=e.title,w=`${i}-body`;return Bb.createElement("div",{className:`${i}-body-wrapper`},Bb.createElement("div",{className:yY(w,{[`${w}-has-title`]:v})},d,Bb.createElement("div",{className:`${i}-paragraph`},v&&Bb.createElement("span",{className:`${i}-title`},e.title),Bb.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?Bb.createElement(aZ,{value:b},Bb.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(y,{OkBtn:lZ,CancelBtn:sZ}):y)):l,Bb.createElement(m0,{prefixCls:t}))}function _u(e){function t(){for(var t=arguments.length,n=new Array(t),i=0;ie&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(wa(n.slice(1))));for(let e=0;e{const e=rl(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=vJ(),u=i(void 0,y0),d=r||`${u}-modal`,p=l(),f=c();let h=a;!1===h&&(h=void 0),fc(Bb.createElement(g0,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),b0.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function Su(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Ou(e){return Object.assign(Object.assign({},e),{type:"info"})}function ku(e){return Object.assign(Object.assign({},e),{type:"success"})}function Cu(e){return Object.assign(Object.assign({},e),{type:"error"})}function Tu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Du(){const e=Bb.useRef(null),[t,n]=Bb.useState([]);Bb.useEffect((()=>{t.length&&(wa(t).forEach((e=>{e()})),n([]))}),[t]);const r=Bb.useCallback((t=>function(r){var o;E0+=1;const i=Bb.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=Bb.createElement(w0,{key:`modal-${E0}`,config:t(r),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});return l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&b0.push(l),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(wa(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(wa(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[Bb.useMemo((()=>({info:r(Ou),success:r(ku),error:r(Cu),warning:r(Su),confirm:r(Tu)})),[]),Bb.createElement(x0,{key:"modal-holder",ref:e})]}function Nu(e,t){return null===t||!1===t?null:t||Bb.createElement("span",{className:`${e}-close-x`},Bb.createElement(DJ,{className:`${e}-close-icon`}))}function Ru(e){const t=Bb.useRef(null);return[Bb.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:p,className:f,style:h,role:m="alert",closeIcon:g}=n,b=fN(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=Nu(s,g);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:T0},b),{content:Bb.createElement(C0,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:p,role:m}),className:yY(d&&`${s}-${d}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:y,closable:!!y}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),Bb.createElement(R0,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Iu(e){return Ru(e)}function $u(e){return function(t){return Bb.createElement(EJ,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Bb.createElement(e,Object.assign({},t)))}}function Au(e){var t=arguments.length>0&&void 0!==e?e:250,n=Bb.useRef(null),r=Bb.useRef(null);return Bb.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Pu(e,t){function n(e){f(h,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,d=e.responsive,p=e.responsiveDisabled,f=e.registerSize,h=e.itemKey,m=e.className,g=e.style,b=e.children,y=e.display,v=e.order,w=e.component,E=void 0===w?"div":w,x=Oi(e,gN),_=d&&!y;return Bb.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==bN?u(c):b,l||(o={opacity:_?0:1,height:_?0:bN,overflowY:_?"hidden":bN,order:d?v:bN,pointerEvents:_?"none":bN,position:_?"absolute":bN}),i={},_&&(i["aria-hidden"]=!0),a=Bb.createElement(E,pa({className:yY(!l&&s,m),style:xa(xa({},o),g)},i,x,{ref:t}),r),d&&(a=Bb.createElement(IC,{onResize:function(e){n(e.offsetWidth)},disabled:p},a)),a}function ju(e,t){var n=Ua(Bb.useState(t),2),r=n[1];return[n[0],Dl((function(t){e((function(){r(t)}))}))]}function Lu(e){return"+ ".concat(e.length," ...")}function Fu(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(ek,me=Bb.useMemo((function(){var e=b;return pe?e=null===F&&P?b:b.slice(0,Math.min(b.length,B/x)):"number"==typeof k&&(e=b.slice(0,k)),e}),[b,x,F,k,pe]),ge=Bb.useMemo((function(){return b.slice(pe?ie+1:me.length)}),[b,me,pe,ie]),be=Bb.useCallback((function(e,t){var n;return"function"==typeof w?w(e):null!==(n=w&&(null==e?void 0:e[w]))&&void 0!==n?n:t}),[w]),ye=Bb.useCallback(y||function(e){return e},[y]);return Ek((function(){var e,t,r,i,a;if(B&&"number"==typeof ue&&me){if(e=J,r=(t=me.length)-1,!t)return void n(0,null);for(i=0;iB){n(i-1,e-a-J+K);break}}D&&o(0)+J>B&&te(null)}}),[B,U,K,J,be,me]),a={},null!==ee&&pe&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:pe,component:I,invalidate:fe},l=v?function(e,t){var n=be(e,t);return Bb.createElement(vN.Provider,{key:n,value:xa(xa({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return Bb.createElement(yN,pa({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!ge.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){q(t),V(K)},display:i},T?T&&(c=Bb.createElement(vN.Provider,{value:xa(xa({},s),u)},T(ge))):(d=C||Lu,c=Bb.createElement(yN,pa({},s,u),"function"==typeof d?d(ge):d)),p=Bb.createElement(R,pa({className:yY(!fe&&m,O),style:S,ref:t},A),me.map(l),he?c:null,D&&Bb.createElement(yN,pa({},s,{responsive:de,responsiveDisabled:!pe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:a}),D)),de&&(p=Bb.createElement(IC,{onResize:function(e,t){M(t.clientWidth)},disabled:!pe},p)),p}function Mu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Bu(e){return["string","number"].includes(xi(e))}function Hu(e){var t=void 0;return e&&(Bu(e.title)?t=e.title.toString():Bu(e.label)&&(t=e.label.toString())),t}function Uu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function zu(e){return e?Array.isArray(e)?e:[e]:[]}function Gu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Wu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Vu(e){return e.ownerDocument.defaultView}function Xu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Vu(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Ku(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function qu(e){return Ku(parseFloat(e),0)}function Yu(e,t){var n=xa({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I;e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement||(r=(t=Vu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=qu(i),m=qu(a),w=(p-f-(g=qu(s))-(b=qu(l)))*(y=Ku(Math.round(c.width/p*1e3)/1e3)),E=(u-d-h-m)*(v=Ku(Math.round(c.height/u*1e3)/1e3)),x=h*v,_=m*v,S=g*y,O=b*y,k=0,C=0,"clip"===r&&(k=(T=qu(o))*y,C=T*v),R=(D=c.x+S-k)+c.width+2*k-S-O-w,I=(N=c.y+x-C)+c.height+2*C-x-_-E,n.left=Math.max(n.left,D),n.top=Math.max(n.top,N),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,I))})),n}function Ju(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Qu(e,t){var n=Ua(t||[],2),r=n[1];return[Ju(e.width,n[0]),Ju(e.height,r)]}function Zu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function ed(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function td(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function nd(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},d=u.className,p=u.content,f=c.x,h=void 0===f?0:f,m=c.y,g=void 0===m?0:m,b=Bb.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=g,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=h),Bb.createElement("div",{ref:b,className:yY("".concat(s,"-arrow"),d),style:t},p)):null}function rd(e){var t=e.prefixCls,n=e.zIndex;return e.mask?Bb.createElement(fJ,pa({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return Bb.createElement("div",{style:{zIndex:n},className:yY("".concat(t,"-mask"),r)})})):null}function od(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function id(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function ad(e){var t=xa({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ta(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function sd(e){return"tags"===e||"multiple"===e}function ld(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ls(e).map((function(e,t){if(!Bb.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=Oi(i,oR);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return xa({key:t,value:void 0!==r?r:t,children:n.children},Oi(n,rR))}(e):xa(xa({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:ld(a)})})).filter((function(e){return e}))}function cd(e){var t,n=Bb.useRef();return n.current=e,t=Bb.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function ud(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}function dd(e){var t=e.children,n=e.setRef,r=Bb.useCallback((function(e){n(e)}),[]);return Bb.cloneElement(t,{ref:r})}function pd(e,t){var n=arguments.length>0&&void 0!==e?e:0,r=n/(arguments.length>1&&void 0!==t?t:0)*100;return isNaN(r)&&(r=0),r=Math.max(r,pR),r=Math.min(r,n/2),Math.floor(r)}function fd(e,t){function n(e){ve((function(t){var n;return n=function(e){var t=e;return Number.isNaN(_.current)||(t=Math.min(t,_.current)),Math.max(t,0)}("function"==typeof e?e(t):e),me.current.scrollTop=n,n}))}function r(e,t){var r=e;t?(e_.flushSync((function(){xe(r)})),D()):n(r)}var o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P,j,L,F,M,B,H,U=e.prefixCls,z=void 0===U?"rc-virtual-list":U,G=e.className,W=e.height,V=e.itemHeight,X=e.fullHeight,K=void 0===X||X,q=e.style,Y=e.data,J=e.children,Q=e.itemKey,Z=e.virtual,ee=e.direction,te=e.scrollWidth,ne=e.component,re=void 0===ne?"div":ne,oe=e.onScroll,ie=e.onVirtualScroll,ae=e.onVisibleChange,se=e.innerProps,le=e.extraRender,ce=Oi(e,fR),ue=!(!1===Z||!W||!V),de=ue&&Y&&(V*Y.length>W||!!te),pe="rtl"===ee,fe=yY(z,Si({},"".concat(z,"-rtl"),pe),G),he=Y||hR,me=Bb.useRef(),ge=Bb.useRef(),be=Ua(Bb.useState(0),2),ye=be[0],ve=be[1],we=Ua(Bb.useState(0),2),Ee=we[0],xe=we[1],_e=Ua(Bb.useState(!1),2),Se=_e[0],Oe=_e[1],ke=function(){Oe(!0)},Ce=function(){Oe(!1)},Te=Bb.useCallback((function(e){return"function"==typeof Q?Q(e):null==e?void 0:e[Q]}),[Q]),De={getKey:Te},Ne=Bb.useRef({start:0,end:he.length}),Re=Bb.useRef(),Ie=function(e,t){var n=Ua(Bb.useState(e),2),r=n[0],o=n[1],i=Ua(Bb.useState(null),2),a=i[0],s=i[1];return Bb.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,d=e.length,p=t.length;if(0===d&&0===p)return null;for(d=ye&&void 0===n&&(n=a,r=t),u>ye+W&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(W/V)),void 0===o&&(o=he.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,he.length-1),offset:r}}),[de,ue,ye,he,i[3],W]),u=c.scrollHeight,p=c.end,f=c.offset,Ne.current.start=d=c.start,Ne.current.end=p,h=Ua(Bb.useState({width:0,height:W}),2),m=h[0],g=h[1],b=function(e){g(e)},y=Bb.useRef(),v=Bb.useRef(),w=Bb.useMemo((function(){return pd(m.width,te)}),[m.width,te]),E=Bb.useMemo((function(){return pd(m.height,u)}),[m.height,u]),(_=Bb.useRef(x=u-W)).current=x,k=B0(S=ye<=0,O=ye>=x),T=Bb.useRef((C=function(){return{x:pe?-Ee:Ee,y:ye}})()),D=Dl((function(){if(ie){var e=C();T.current.x===e.x&&T.current.y===e.y||(ie(e),T.current=e)}})),N=function(e){var t=e,n=te-m.width;return t=Math.max(t,0),Math.min(t,n)},R=Dl((function(e,t){t?(e_.flushSync((function(){xe((function(t){return N(t+(pe?-e:e))}))})),D()):n((function(t){return t+e}))})),I=Ua(function(e,t,n,r,o){var i=Bb.useRef(0),a=Bb.useRef(null),s=Bb.useRef(null),l=Bb.useRef(!1),c=B0(t,n),u=Bb.useRef(null),d=Bb.useRef(null);return[function(t){var n,p,f,h,m,g;e&&(LC.cancel(d.current),d.current=LC((function(){u.current=null}),2),f=n=t.deltaX,h=p=t.deltaY,("sx"===u.current||!u.current&&t.shiftKey&&p&&!n)&&(f=p,h=0,u.current="sx"),m=Math.abs(f),g=Math.abs(h),null===u.current&&(u.current=r&&m>g?"x":"y"),"y"===u.current?function(e,t){LC.cancel(a.current),i.current+=t,s.current=t,c(t)||(uR||e.preventDefault(),a.current=LC((function(){o(i.current*(l.current?10:1)),i.current=0})))}(t,h):function(e,t){o(t,!0),uR||e.preventDefault()}(t,f))},function(t){e&&(l.current=t.detail===s.current)}]}(ue,S,O,!!te,R),2),$=I[0],A=I[1],function(e,t,n){var r=Bb.useRef(!1),o=Bb.useRef(0),i=Bb.useRef(null),a=Bb.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=dR,!0)||Math.abs(i)<=.1)&&clearInterval(a.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};Ek((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(ue,me,(function(e,t){return!k(e,t)&&($({preventDefault:function(){},deltaY:e}),!0)})),Ek((function(){function e(e){ue&&e.preventDefault()}var t=me.current;return t.addEventListener("wheel",$),t.addEventListener("DOMMouseScroll",A),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",$),t.removeEventListener("DOMMouseScroll",A),t.removeEventListener("MozMousePixelScroll",e)}}),[ue]),j=function(e,t,n,r,o,i,a,s){var l=Bb.useRef();return function(c){var u,d,p,f;null!=c?(LC.cancel(l.current),"number"==typeof c?a(c):c&&"object"===xi(c)&&(d=c.align,u="index"in c?c.index:t.findIndex((function(e){return o(e)===c.key})),f=void 0===(p=c.offset)?0:p,function s(c,p){var h,m,g,b,y,v,w,E,x,_,S,O,k;if(!(c<0)&&e.current){if(m=!1,g=p,h=e.current.clientHeight){for(b=p||d,y=0,v=0,w=0,E=Math.min(t.length,u),x=0;x<=E;x+=1)_=o(t[x]),y=w=(v=y)+(void 0===(S=n.get(_))?r:S),x===u&&void 0===S&&(m=!0);switch(O=null,b){case"top":O=v-f;break;case"bottom":O=w-h+f;break;default:v<(k=e.current.scrollTop)?g="top":w>k+h&&(g="bottom")}null!==O&&O!==e.current.scrollTop&&a(O)}l.current=LC((function(){m&&i(),s(c-1,g)}),2)}}(3))):s()}}(me,he,l,V,Te,s,n,P=function(){var e,t;null===(e=y.current)||void 0===e||e.delayHidden(),null===(t=v.current)||void 0===t||t.delayHidden()}),Bb.useImperativeHandle(t,(function(){return{getScrollInfo:C,scrollTo:function(e){var t;(t=e)&&"object"===xi(t)&&("left"in t||"top"in t)?(void 0!==e.left&&xe(N(e.left)),j(e.top)):j(e)}}})),Ek((function(){if(ae){var e=he.slice(d,p+1);ae(e,he)}}),[d,p,he]),L=function(e,t,n,r){var o=Ua(Bb.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o,s){var l,c,u,d,p,f=arguments.length>1&&void 0!==s?s:o,h=i.get(o),m=i.get(f);if(void 0===h||void 0===m)for(l=e.length,c=a.length;cW&&Bb.createElement(lR,{ref:y,prefixCls:z,scrollOffset:ye,scrollRange:u,rtl:pe,onScroll:r,onStartMove:ke,onStopMove:Ce,spinSize:E,containerSize:m.height}),de&&te&&Bb.createElement(lR,{ref:v,prefixCls:z,scrollOffset:Ee,scrollRange:te,rtl:pe,onScroll:r,onStartMove:ke,onStopMove:Ce,spinSize:w,containerSize:m.width,horizontal:!0}))}function hd(e){return"string"==typeof e||"number"==typeof e}function md(e,t,n){return yY({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function gd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=Z0(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function bd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},YY(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function yd(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[bd(e),bd($l(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},bd($l(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function vd(){const[,e]=Tl(),t=v1(w1(e));return Aq.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(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()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function wd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return Bb.createElement("div",{className:yY("".concat(n,"-content"),i),style:a},Bb.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function Ed(e){const t=x1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function xd(e,t){return e?t:{}}function _d(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=Ed({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},KY(r,o,i,s,a)),{"&:before":{background:s}})]},xd(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),xd(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),xd(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),xd(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function Sd(e,t){return arguments.length>1&&void 0!==t&&!t?RY.includes(e):[].concat(wa(T1),wa(RY)).includes(e)}function Od(e,t){const n=Sd(t),r=yY({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function kd(e,t){var n,r,o,i,a,s,l,c,u,d=e.arrow,p=void 0!==d&&d,f=e.prefixCls,h=void 0===f?"rc-dropdown":f,m=e.transitionName,g=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,w=e.placements,E=void 0===w?MR:w,x=e.getPopupContainer,_=e.showAction,S=e.hideAction,O=e.overlayClassName,k=e.overlayStyle,C=e.visible,T=e.trigger,D=void 0===T?["hover"]:T,N=e.autoFocus,R=e.overlay,I=e.children,$=e.onVisibleChange,A=Oi(e,BR),P=Ua(Aq.useState(),2),j=P[1],L="visible"in e?C:P[0],F=Aq.useRef(null),M=Aq.useRef(null),B=Aq.useRef(null);return Aq.useImperativeHandle(t,(function(){return F.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=Bb.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case AR:s();break;case PR:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};Bb.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&LC(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:L,triggerRef:B,onVisibleChange:r=function(e){j(e),null==$||$(e)},autoFocus:N,overlayRef:M}),o=function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},i=function(){return Aq.createElement(jR,{ref:M,overlay:R,prefixCls:h,arrow:p})},a=function(){return"function"==typeof R?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=Aq.cloneElement(I,{className:yY(null===(n=I.props)||void 0===n?void 0:n.className,L&&(u=e.openClassName,void 0!==u?u:"".concat(h,"-open"))),ref:Hs(I)?Ms(B,I.ref):void 0}),(c=S)||-1===D.indexOf("contextMenu")||(c=["click"]),Aq.createElement(M0,pa({builtinPlacements:E},A,{prefixCls:h,ref:F,popupClassName:yY(O,Si({},"".concat(h,"-show-arrow"),p)),popupStyle:k,action:D,showAction:_,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:m,popupAnimation:g,popupVisible:L,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:x}),l)}function Cd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Td(e){return Cd(Bb.useContext(HR),e)}function Dd(e){var t=e.children,n=e.locked,r=Oi(e,UR),o=Bb.useContext(zR),i=Sa((function(){return e=r,t=xa({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Da(e[1],t[1],!0))}));return Bb.createElement(zR.Provider,{value:i},t)}function Nd(){return Bb.useContext(WR)}function Rd(e){var t=Bb.useContext(VR);return Bb.useMemo((function(){return void 0!==e?[].concat(wa(t),[e]):t}),[t,e])}function Id(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!iQ(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function $d(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=wa(e.querySelectorAll("*")).filter((function(e){return Id(e,n)}));return Id(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Ad(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=$d(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function Pd(e){var t,n=Bb.useRef(e);return n.current=e,t=Bb.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:Bb.createElement(Dd,{mode:d,locked:!y.current},Bb.createElement(fJ,pa({visible:o},i,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return Bb.createElement(yI,{id:s,className:e.className,style:e.style},u)})))}function Wd(e){var t=e.eventKey,n=e.children,r=Rd(t),o=Hd(n,r),i=Nd();return Bb.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),Bb.createElement(VR.Provider,{value:r},i?o:Bb.createElement(OI,e,o))}function Vd(e){var t=e.children,n=Oi(e,CI),r=Hd(t,Rd(n.eventKey));return Nd()?r:Bb.createElement(TI,qs(n,["warnKey"]),r)}function Xd(e){var t=e.className,n=e.style,r=Bb.useContext(zR).prefixCls;return Nd()?null:Bb.createElement("li",{role:"separator",className:yY("".concat(r,"-item-divider"),t),style:n})}function Kd(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===xi(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=Oi(n,DI),l=null!=i?i:"tmp-".concat(t),o||"group"===a?Bb.createElement("group"===a?Vd:Wd,pa({key:l},s,{title:r}),Kd(o)):"divider"===a?Bb.createElement(Xd,pa({key:l},s)):Bb.createElement(P1,pa({key:l},s),r)):null})).filter((function(e){return e}))}function qd(e,t,n){var r=e;return t&&(r=Kd(t)),Hd(r,n)}function Yd(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=AI(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?Bb.createElement("group"===a?Vd:B1,Object.assign({key:l},s,{title:r}),Yd(o)):"divider"===a?Bb.createElement(L1,Object.assign({key:l},s)):Bb.createElement(M1,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Jd(e){return Bb.useMemo((()=>e?Yd(e):e),[e])}function Qd(e){return $l(e,{inputAffixPadding:e.paddingXXS})}function Zd(e){return e&&"object"==typeof e?e:{}}function ep(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=Bb.useContext(U2),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return Bb.createElement("div",{className:yY("".concat(s,"-content-holder"))},Bb.createElement("div",{className:yY("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Si({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=Oi(e,LI),p=o===n;return Bb.createElement(fJ,pa({key:o,visible:p,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return Bb.createElement(jI,pa({},d,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:xa(xa({},s),r),className:yY(l,i),ref:n}))}))}))))}function tp(e,t){var n=Bb.useRef(e),r=Ua(Bb.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function np(e){var t=Ua(Bb.useState(0),2),n=t[0],r=t[1],o=Bb.useRef(0),i=Bb.useRef();return i.current=e,xk((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function rp(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function op(e){return String(e).replace(/"/g,GI)}function ip(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function ap(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?Bb.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function sp(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===C}))||0,i=r.length;for(t=0;tLe?Le:e}function r(){c(Date.now())}function o(){window.clearTimeout(a.current)}var i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P=Bb.useContext(U2),j=P.prefixCls,L=P.tabs,F=e.className,M=e.style,B=e.id,H=e.animated,U=e.activeKey,z=e.rtl,G=e.extra,W=e.editable,V=e.locale,X=e.tabPosition,K=e.tabBarGutter,q=e.children,Y=e.onTabClick,J=e.onTabScroll,Q=e.indicatorSize,Z=Bb.useRef(),ee=Bb.useRef(),te=Bb.useRef(),ne=Bb.useRef(),re=Bb.useRef(),oe=Bb.useRef(),ie=Bb.useRef(),ae="top"===X||"bottom"===X,se=Ua(tp(0,(function(e,t){ae&&J&&J({direction:e>t?"left":"right"})})),2),le=se[0],ce=se[1],ue=Ua(tp(0,(function(e,t){!ae&&J&&J({direction:e>t?"top":"bottom"})})),2),de=ue[0],pe=ue[1],fe=Ua(Bb.useState([0,0]),2),he=fe[0],me=fe[1],ge=Ua(Bb.useState([0,0]),2),be=ge[0],ye=ge[1],ve=Ua(Bb.useState([0,0]),2),we=ve[0],Ee=ve[1],xe=Ua(Bb.useState([0,0]),2),_e=xe[0],Se=xe[1],Oe=(N=new Map,R=Bb.useRef([]),I=Ua(Bb.useState({}),2)[1],$=Bb.useRef("function"==typeof N?N():N),A=np((function(){var e=$.current;R.current.forEach((function(t){e=t(e)})),R.current=[],$.current=e,I({})})),[$.current,function(e){R.current.push(e),A()}]),ke=Ua(Oe,2),Ce=ke[1],Te=function(e,t,n){return Bb.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||FI,u=c.left+c.width;for(r=0;ra?(o=n,m.current="x"):(o=r,m.current="y"),t(-o,-o)&&e.preventDefault()}},Bb.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ne,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!$e&&(ae?i(ce,e):i(pe,t),o(),r(),!0)})),Bb.useEffect((function(){return o(),l&&(a.current=window.setTimeout((function(){c(0)}),100)),o}),[l]),u=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),Bb.useMemo((function(){var n,r,o,i,a,d;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||zI)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),p])}(Te,Ae,ae?le:de,Ne,Re,Ie,xa(xa({},e),{},{tabs:L})),p=(d=Ua(u,2))[0],f=d[1],h=Dl((function(e){var t,r,o=Te.get(arguments.length>0&&void 0!==e?e:U)||{width:0,height:0,left:0,right:0,top:0};ae?(t=le,z?o.rightle+Ae&&(t=o.right+o.width-Ae):o.left<-le?t=-o.left:o.left+o.width>-le+Ae&&(t=-(o.left+o.width-Ae)),pe(0),ce(n(t))):(r=de,o.top<-de?r=-o.top:o.top+o.height>-de+Ae&&(r=-(o.top+o.height-Ae)),ce(0),pe(n(r)))})),m={},"top"===X||"bottom"===X?m[z?"marginRight":"marginLeft"]=K:m.marginTop=K,g=L.map((function(e,t){var n=e.key;return Bb.createElement(lp,{id:B,prefixCls:j,key:n,tab:e,style:0===t?void 0:m,closable:e.closable,editable:W,active:n===U,renderWrapper:q,removeAriaLabel:null==V?void 0:V.removeAriaLabel,onClick:function(e){Y(n,e)},onFocus:function(){h(n),r(),ne.current&&(z||(ne.current.scrollLeft=0),ne.current.scrollTop=0)}})})),b=function(){return Ce((function(){var e=new Map;return L.forEach((function(t){var n,r=t.key,o=null===(n=re.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(op(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},Bb.useEffect((function(){b()}),[L.map((function(e){return e.key})).join("_")]),y=np((function(){var e,t,n,r=XI(Z),o=XI(ee),i=XI(te);me([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=XI(ie),Ee(e),t=XI(oe),Se(t),n=XI(re),ye([n[0]-e[0],n[1]-e[1]]),b()})),v=L.slice(0,p),w=L.slice(f+1),E=[].concat(wa(v),wa(w)),x=Te.get(U),_=VI({activeTabOffset:x,horizontal:ae,rtl:z,indicatorSize:Q}).style,Bb.useEffect((function(){h()}),[U,je,Le,rp(x),rp(Te),ae]),Bb.useEffect((function(){y()}),[z]),S=!!E.length,O="".concat(j,"-nav-wrap"),ae?z?(C=le>0,k=le!==Le):(k=le<0,C=le!==je):(T=de<0,D=de!==je),Bb.createElement(IC,{onResize:y},Bb.createElement("div",{ref:Bs(t,Z),role:"tablist",className:yY("".concat(j,"-nav"),F),style:M,onKeyDown:function(){r()}},Bb.createElement(WI,{ref:ee,position:"left",extra:G,prefixCls:j}),Bb.createElement(IC,{onResize:y},Bb.createElement("div",{className:yY(O,(i={},Si(i,"".concat(O,"-ping-left"),k),Si(i,"".concat(O,"-ping-right"),C),Si(i,"".concat(O,"-ping-top"),T),Si(i,"".concat(O,"-ping-bottom"),D),i)),ref:ne},Bb.createElement(IC,{onResize:y},Bb.createElement("div",{ref:re,className:"".concat(j,"-nav-list"),style:{transform:"translate(".concat(le,"px, ").concat(de,"px)"),transition:l?"none":void 0}},g,Bb.createElement(z2,{ref:ie,prefixCls:j,locale:V,editable:W,style:xa(xa({},0===g.length?void 0:m),{},{visibility:S?"hidden":null})}),Bb.createElement("div",{className:yY("".concat(j,"-ink-bar"),Si({},"".concat(j,"-ink-bar-animated"),H.inkBar)),style:_}))))),Bb.createElement(G2,pa({},e,{removeAriaLabel:null==V?void 0:V.removeAriaLabel,ref:oe,prefixCls:j,tabs:E,className:!S&&Pe,tabMoving:!!l})),Bb.createElement(WI,{ref:te,position:"right",extra:G,prefixCls:j})))}function up(e){var t=e.renderTabBar,n=Oi(e,qI),r=Bb.useContext(U2).tabs;return t?t(xa(xa({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Oi(e,YI);return Bb.createElement(jI,pa({tab:t,key:n,tabKey:n},r))}))}),W2):Bb.createElement(W2,n)}function dp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h=e.id,m=e.prefixCls,g=void 0===m?"rc-tabs":m,b=e.className,y=e.items,v=e.direction,w=e.activeKey,E=e.defaultActiveKey,x=e.editable,_=e.animated,S=e.tabPosition,O=void 0===S?"top":S,k=e.tabBarGutter,C=e.tabBarStyle,T=e.tabBarExtraContent,D=e.locale,N=e.moreIcon,R=e.moreTransitionName,I=e.destroyInactiveTabPane,$=e.renderTabBar,A=e.onChange,P=e.onTabClick,j=e.onTabScroll,L=e.getPopupContainer,F=e.popupClassName,M=e.indicatorSize,B=Oi(e,JI),H=Bb.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===xi(e)&&"key"in e}))}),[y]),U="rtl"===v,z=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:xa({inkBar:!0},"object"===xi(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(_),G=Ua(Bb.useState(!1),2),W=G[0],V=G[1];return Bb.useEffect((function(){V(F0())}),[]),r=Ua(Il((function(){var e;return null===(e=H[0])||void 0===e?void 0:e.key}),{value:w,defaultValue:E}),2),o=r[0],i=r[1],a=Ua(Bb.useState((function(){return H.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],Bb.useEffect((function(){var e,t=H.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,H.length-1)),i(null===(e=H[t])||void 0===e?void 0:e.key)),l(t)}),[H.map((function(e){return e.key})).join("_"),o,s]),u=(c=Ua(Il(null,{value:h}),2))[0],d=c[1],Bb.useEffect((function(){h||(d("rc-tabs-".concat(QI)),QI+=1)}),[]),f=xa(xa({},p={id:u,activeKey:o,animated:z,tabPosition:O,rtl:U,mobile:W}),{},{editable:x,locale:D,moreIcon:N,moreTransitionName:R,tabBarGutter:k,onTabClick:function(e,t){null==P||P(e,t);var n=e!==o;i(e),n&&(null==A||A(e))},onTabScroll:j,extra:T,style:C,panes:null,getPopupContainer:L,popupClassName:F,indicatorSize:M}),Bb.createElement(U2.Provider,{value:{tabs:H,prefixCls:g}},Bb.createElement("div",pa({ref:t,id:h,className:yY(g,"".concat(g,"-").concat(O),(n={},Si(n,"".concat(g,"-mobile"),W),Si(n,"".concat(g,"-editable"),x),Si(n,"".concat(g,"-rtl"),U),n),b)},B),Bb.createElement(up,pa({},f,{renderTabBar:$})),Bb.createElement(ep,pa({destroyInactiveTabPane:I},p,{animated:z}))))}function pp(e,t){const[n,r]=Bb.useState("string"==typeof e?e:"");return Bb.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(hp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(i=(o=gp(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!d?xp(Ep(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,d):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function _p(e){return!(!e.addonBefore&&!e.addonAfter)}function Sp(e){return!!(e.prefix||e.suffix||e.allowClear)}function Op(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function kp(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}function Cp(e){return null==e?"":String(e)}function Tp(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,d=e.upDisabled,p=e.downDisabled,f=e.onStep,h=Bb.useRef(),m=Bb.useRef([]),g=Bb.useRef();return g.current=f,t=function(){clearTimeout(h.current)},n=function(e,n){e.preventDefault(),t(),g.current(n),h.current=setTimeout((function e(){g.current(n),h.current=setTimeout(e,b$)}),y$)},Bb.useEffect((function(){return function(){t(),m.current.forEach((function(e){return LC.cancel(e)}))}}),[]),g$()?null:(r="".concat(l,"-handler"),o=yY(r,"".concat(r,"-up"),Si({},"".concat(r,"-up-disabled"),d)),i=yY(r,"".concat(r,"-down"),Si({},"".concat(r,"-down-disabled"),p)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return m.current.push(LC(t))},onMouseLeave:a},Bb.createElement("div",{className:"".concat(r,"-wrap")},Bb.createElement("span",pa({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":d,className:o}),c||Bb.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),Bb.createElement("span",pa({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:i}),u||Bb.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function Dp(e){var t="number"==typeof e?vp(e):gp(e).fullStr;return t.includes(".")?gp(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function Np(e,t){const n=Bb.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return Bb.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Rp(e,t){return wa(e||"").slice(0,t).join("")}function Ip(e,t,n,r){var o=n;return e?o=Rp(n,r):wa(t||"").lengthr&&(o=t),o}function $p(e){return"string"==typeof e&&String(Number(e))===e?(Ta(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Ap(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v=e.prefixCls,w=e.open,E=e.placement,x=e.inline,_=e.push,S=e.forceRender,O=e.autoFocus,k=e.keyboard,C=e.rootClassName,T=e.rootStyle,D=e.zIndex,N=e.className,R=e.id,I=e.style,$=e.motion,A=e.width,P=e.height,j=e.children,L=e.contentWrapperStyle,F=e.mask,M=e.maskClosable,B=e.maskMotion,H=e.maskClassName,U=e.maskStyle,z=e.afterOpenChange,G=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,X=e.onMouseLeave,K=e.onClick,q=e.onKeyDown,Y=e.onKeyUp,J=Bb.useRef(),Q=Bb.useRef(),Z=Bb.useRef();if(Bb.useImperativeHandle(t,(function(){return J.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case XT.TAB:r===XT.TAB&&(o||document.activeElement!==Z.current?o&&document.activeElement===Q.current&&(null===(n=Z.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case XT.ESC:G&&k&&(e.stopPropagation(),G(e))}},Bb.useEffect((function(){var e;w&&O&&(null===(e=J.current)||void 0===e||e.focus({preventScroll:!0}))}),[w]),l=(s=Ua(Bb.useState(!1),2))[0],c=s[1],u=Bb.useContext(z$),d=null!==(n=null!==(r=null===(o=!1===_?{distance:0}:!0===_?{}:_||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,p=Bb.useMemo((function(){return{pushDistance:d,push:function(){c(!0)},pull:function(){c(!1)}}}),[d]),Bb.useEffect((function(){var e,t;w?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[w]),Bb.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=F&&Bb.createElement(fJ,pa({key:"mask"},B,{visible:w}),(function(e,t){var n=e.className,r=e.style;return Bb.createElement("div",{className:yY("".concat(v,"-mask"),n,H),style:xa(xa({},r),U),onClick:M&&w?G:void 0,ref:t})})),h="function"==typeof $?$(E):$,m={},l&&d)switch(E){case"top":m.transform="translateY(".concat(d,"px)");break;case"bottom":m.transform="translateY(".concat(-d,"px)");break;case"left":m.transform="translateX(".concat(d,"px)");break;default:m.transform="translateX(".concat(-d,"px)")}return"left"===E||"right"===E?m.width=$p(A):m.height=$p(P),g={onMouseEnter:W,onMouseOver:V,onMouseLeave:X,onClick:K,onKeyDown:q,onKeyUp:Y},b=Bb.createElement(fJ,pa({key:"panel"},h,{visible:w,forceRender:S,onVisibleChanged:function(e){null==z||z(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return Bb.createElement("div",pa({className:yY("".concat(v,"-content-wrapper"),r),style:xa(xa(xa({},m),o),L)},nc(e,{data:!0})),Bb.createElement(W$,pa({id:R,containerRef:n,prefixCls:v,className:N,style:I},g),j))})),y=xa({},T),D&&(y.zIndex=D),Bb.createElement(z$.Provider,{value:p},Bb.createElement("div",{className:yY(v,"".concat(v,"-").concat(E),C,(i={},Si(i,"".concat(v,"-open"),w),Si(i,"".concat(v,"-inline"),x),i)),style:y,tabIndex:-1,ref:J,onKeyDown:a},f,Bb.createElement("div",{tabIndex:0,ref:Q,style:V$,"aria-hidden":"true","data-sentinel":"start"}),b,Bb.createElement("div",{tabIndex:0,ref:Z,style:V$,"aria-hidden":"true","data-sentinel":"end"})))}function Pp(e){return["small","middle","large"].includes(e)}function jp(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}function Lp(e){const[t,n]=Bb.useState(e);return Bb.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function Fp(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Mp(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Bp(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:E4.includes(n)?`${x4}_${n}`:n}function Hp(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Up(e){return Mp(e).join("_")}function zp(e){const[t]=mu(),n=Bb.useRef({}),r=Bb.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Up(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Bp(Mp(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(BJ(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of BJ(e,HJ(t)))o.scroll({top:i,left:a,behavior:r})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=Up(e);return n.current[t]}})),[e,t]);return[r]}function Gp(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=Bb.useContext(uZ),d=Hp(n,r,s,null,!!o,i),{isFormItemInput:p,status:f}=Bb.useContext(hZ),h=Bb.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),s=d&&$4[d];t=!1!==a&&s?Bb.createElement("span",{className:yY(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||Bb.createElement(s,null)):null}let i=!0,a=d||"";return l&&(i=p,a=(null!=d?d:f)||""),{status:a,errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:i}}),[d,o,l,p,f]);return Bb.createElement(hZ.Provider,{value:h},t)}function Wp(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:h,isRequired:m,onSubItemMetaChange:g}=e,b=Z$(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=Bb.useContext(uZ),w=Bb.useRef(null),E=Lp(a),x=Lp(s),_=null!=i,S=!!(_||a.length||s.length),O=!!w.current&&iQ(w.current),[k,C]=Bb.useState(null);Ek((()=>{if(S&&w.current){const e=getComputedStyle(w.current);C(parseInt(e.marginBottom,10))}}),[S,O]);const T=function(e){let t=arguments.length>0&&void 0!==e&&e;return Hp(t?E:c.errors,t?x:c.warnings,c,"",!!u,l)}(),D=yY(y,n,r,{[`${y}-with-help`]:_||E.length||x.length,[`${y}-has-feedback`]:T&&u,[`${y}-has-success`]:"success"===T,[`${y}-has-warning`]:"warning"===T,[`${y}-has-error`]:"error"===T,[`${y}-is-validating`]:"validating"===T,[`${y}-hidden`]:d});return Bb.createElement("div",{className:D,style:o,ref:w},Bb.createElement(p5,Object.assign({className:`${y}-row`},qs(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Bb.createElement(I4,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=h?h:m,prefixCls:t})),Bb.createElement(D4,Object.assign({},e,c,{errors:E,warnings:x,prefixCls:t,status:T,help:i,marginBottom:k,onErrorVisibleChanged:e=>{e||C(null)}}),Bb.createElement(dZ.Provider,{value:g},Bb.createElement(Gp,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:T},p)))),!!k&&Bb.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-k}}))}function Vp(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=H4,a=null!=e?e:vJ().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}function Xp(){if(!F4){const e=document.createDocumentFragment(),t={fragment:e};return F4=t,void M4((()=>{fc(Bb.createElement(U4,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Xp())}))}}),e)}))}F4.instance&&(B4.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":M4((()=>{const t=F4.instance.open(Object.assign(Object.assign({},H4),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":M4((()=>{null==F4||F4.instance.destroy(e.key)}));break;default:M4((()=>{var n;const r=(n=F4.instance)[t].apply(n,wa(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),B4=[])}function Kp(e){return _u(Su(e))}function qp(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=Q4,a=null!=e?e:vJ().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}function Yp(){if(!q4){const e=document.createDocumentFragment(),t={fragment:e};return q4=t,void Y4((()=>{fc(Bb.createElement(Z4,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Yp())}))}}),e)}))}q4.instance&&(J4.forEach((e=>{switch(e.type){case"open":Y4((()=>{q4.instance.open(Object.assign(Object.assign({},Q4),e.config))}));break;case"destroy":Y4((()=>{null==q4||q4.instance.destroy(e.key)}))}})),J4=[])}function Jp(e){J4.push({type:"open",config:e}),Yp()}function Qp(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,d=Bb.useRef(null),p=Ua(Bb.useState(i),2),f=p[0],h=p[1],m=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},g=Ua(Bb.useState(null),2),b=g[0],y=g[1],v=Ua(Bb.useState(null),2),w=v[0],E=v[1];return Ek((function(){var e,t,n,r;f!==i&&(e=m(f),t=m(i),n=nA(e),r=nA(t),h(i),y(n),E(r),e&&t?l():c())}),[i]),t=Bb.useMemo((function(){return rA("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=Bb.useMemo((function(){return rA("rtl"===u?-(null==w?void 0:w.right):null==w?void 0:w.left)}),[u,w]),b&&w?Bb.createElement(fJ,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),E(null),c()}},(function(e,o){var i=e.className,a=xa(xa({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":rA(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":rA(null==w?void 0:w.width)}),s={ref:Ms(d,o),style:a,className:yY("".concat(r,"-thumb"),i)};return Bb.createElement("div",s)})):null}function Zp(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function ef(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function tf(e,t,n){return(e-t)/(n-t)}function nf(e,t,n,r){var o=tf(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function rf(e,t){return Array.isArray(e)?e[t]:e}function of(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function af(e){var t,n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,s=e.onStartMove,l=Bb.useContext(lA),c=l.direction,u=l.min,d=l.max,p=l.disabled,f=l.range,h="".concat(n,"-track"),m=tf(o,u,d),g=tf(i,u,d),b=function(e){!p&&s&&s(e,-1)},y={};switch(c){case"rtl":y.right="".concat(100*m,"%"),y.width="".concat(100*g-100*m,"%");break;case"btt":y.bottom="".concat(100*m,"%"),y.height="".concat(100*g-100*m,"%");break;case"ttb":y.top="".concat(100*m,"%"),y.height="".concat(100*g-100*m,"%");break;default:y.left="".concat(100*m,"%"),y.width="".concat(100*g-100*m,"%")}return Bb.createElement("div",{className:yY(h,(t={},Si(t,"".concat(h,"-").concat(a+1),f),Si(t,"".concat(n,"-track-draggable"),s),t)),style:xa(xa({},y),r),onMouseDown:b,onTouchStart:b})}function sf(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=Bb.useContext(lA),s=a.included,l=a.range,c=a.min,u=Bb.useMemo((function(){var e,t,n,i;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Xf(e){var t,n,r,o,i,a,s,l,c,u,d;if("string"!=typeof e)throw new gj(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return bj[t]?"#"+bj[t]:e}(e),t.match(yj))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(vj))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match(wj))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ej))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=xj.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=_j.exec(t.substring(0,50)))return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};if(a=Sj.exec(t)){if(s="rgb("+Vf(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=xj.exec(s)))throw new gj(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=Oj.exec(t.substring(0,50))){if(u="rgb("+Vf(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(d=xj.exec(u)))throw new gj(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new gj(5)}function Kf(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function qf(e){return Kf(Math.round(255*e))}function Yf(e,t,n){return kj("#"+qf(e)+qf(t)+qf(n))}function Jf(e,t,n){return Vf(e,t,n,Yf)}function Qf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return kj("#"+Kf(e)+Kf(t)+Kf(n));if("object"==typeof e&&void 0===t&&void 0===n)return kj("#"+Kf(e.red)+Kf(e.green)+Kf(e.blue));throw new gj(6)}function Zf(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Xf(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Qf(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Qf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new gj(7)}function eh(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):eh(e,t,r)}}function th(e){return eh(e,e.length,[])}function nh(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(i-a)/n+(i=1?Jf(e.hue,e.saturation,e.lightness):"rgba("+Vf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new gj(2)}(e);if(Dj(e))return function(e){if("object"==typeof e)return Jf(e.hue,e.saturation,e.lightness);throw new gj(1)}(e);throw new gj(8)}(pa({},n,{hue:n.hue+parseFloat(e)}))}function rh(e){var t,n;return"transparent"===e?0:(t=Xf(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function oh(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=Ij),void 0===n&&(n=$j),void 0===r&&(r=!0),i=(o=rh(e)>.179)?t:n,!r||(a=i,s=rh(e),l=rh(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?Ij:$j}function ih(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function ah(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function dm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n52;t=t/52|0)n=EG(t%52)+n;return(EG(t%52)+n).replace(wG,"$1-$2")}function Em(e){return"string"==typeof e&&!0}function xm(e){return("type"in(t=e)&&t.type.$$typeof)===kG?NG:"$$typeof"in e?RG[e.$$typeof]:TG;var t}function _m(e,t,n){var r,o,i,a,s,l,c;if("string"!=typeof t)for(LG&&(r=jG(t))&&r!==LG&&_m(e,r,n),o=$G(t),AG&&(o=o.concat(AG(t))),i=xm(e),a=xm(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function Im(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Im(e.children,t)),e}))}function $m(){return Bb.useContext(iW)}function Am(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.7"+f+fW[f])),d?"".concat(d,"-").concat(p):p):v;return void 0===t.displayName&&function(e){Em(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),r=t.displayName&&t.componentId?"".concat(vm(t.displayName),"-").concat(t.componentId):t.componentId||w,o=h&&m.attrs?m.attrs.concat(y).filter(Boolean):y,i=t.shouldForwardProp,h&&m.shouldForwardProp&&(a=m.shouldForwardProp,t.shouldForwardProp?(s=t.shouldForwardProp,i=function(e,t){return a(e,t)&&s(e,t)}):i=a),l=new dW(n,r,h?m.componentStyle:void 0),c=Aq.forwardRef((function(e,t){return function(e,t,n){var r,o,i,a,s,l,c=e.attrs,u=e.componentStyle,d=e.defaultProps,p=e.foldedComponentIds,f=e.styledComponentId,h=e.target,m=Aq.useContext(pW),g=$m(),b=e.shouldForwardProp||g.shouldForwardProp,y=function(e,t,n){var r,o,i,a,s;for(o=Aj(Aj({},t),{className:void 0,theme:n}),i=0;i{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,M6(e,r))}function Wm(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?d:d[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=Bb.useContext(V6)||{},s=o||i||z6;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new X6),!s){Um("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Um("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...G6,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const p=(s.isInitialized||s.initializedStoreOnce)&&d.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||i&&!s(a,e)))}(e,t,r):(Um("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,h]=Bb.useState(n);let m=d.join();r.lng&&(m=`${r.lng}${m}`);const g=(e=>{const t=Bb.useRef();return Bb.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(m),b=Bb.useRef(!0);Bb.useEffect((()=>{function e(){b.current&&h(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,p||c||(r.lng?Gm(s,r.lng,d,(()=>{b.current&&h(n)})):zm(s,d,(()=>{b.current&&h(n)}))),p&&g&&g!==m&&b.current&&h(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,m]);const y=Bb.useRef(!0);Bb.useEffect((()=>{b.current&&!y.current&&h(n),y.current=!1}),[s,u]);const v=[f,s,p];if(v.t=f,v.i18n=s,v.ready=p,p)return v;if(!p&&!c)return v;throw new Promise((e=>{r.lng?Gm(s,r.lng,d,(()=>e())):zm(s,d,(()=>e()))}))}function Vm(e){var t,n,r=this;if(r instanceof Vm||(r=new Vm),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&h(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const h=this.options.loose;e=e.replace(h?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],k(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let m=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));h&&(m=m.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",m);const b=new Map,y=m.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=x(e,t),o("xrange",e),e=S(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),w=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},x=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),S=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),O=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),k=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),C=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return ZW}function qm(){if(nV)return tV;nV=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,a("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}tV=t;const n=_W,{safeRe:r,t:o}=xW,i=XW,a=EW,s=OW,l=Km();return tV}function Ym(e){return e&&e.__esModule?e:{default:e}}function Jm(e){return e&&e.__esModule?e:{default:e}}function Qm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Zm(e){return e&&e.__esModule?e:{default:e}}function eg(e){return e&&e.__esModule?e:{default:e}}function tg(e){return e&&e.__esModule?e:{default:e}}function ng(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rg(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;const n=e.slice(0,t=t||1),r=e.slice(t);return Array.prototype.concat.call([],rg(n),rg(r))}function og(e){try{return decodeURIComponent(e)}catch{let t=e.match(B9)||[];for(let n=1;nNumber(e)-Number(t))).map((t=>e[t])):e}function dg(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function pg(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function fg(e){const t=(e=dg(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function hg(e,t){sg((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&cg(n,e).includes(e.arrayFormatSeparator);n=i?cg(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>cg(t,e))):null===n?n:cg(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?cg(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>cg(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=ig(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:cg(a,t),n(cg(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=pg(n,t);else r[o]=pg(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?ug(n):n,e}),Object.create(null))}function mg(e,t){if(!e)return"";sg((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&U9(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[lg(t,e),"[",o,"]"].join("")]:[...n,[lg(t,e),"[",lg(o,e),"]=",lg(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[lg(t,e),"[]"].join("")]:[...n,[lg(t,e),"[]=",lg(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[lg(t,e),":list="].join("")]:[...n,[lg(t,e),":list=",lg(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[lg(n,e),t,lg(o,e)].join("")]:[[r,lg(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,lg(t,e)]:[...n,[lg(t,e),"=",lg(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?lg(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?lg(n,t)+"[]":o.reduce(r(n),[]).join("&"):lg(n,t)+"="+lg(o,t)})).filter((e=>e.length>0)).join("&")}function gg(e,t){var n;t={decode:!0,...t};let[r,o]=ig(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:hg(fg(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:cg(o,t)}:{}}}function bg(e,t){t={encode:!0,strict:!0,[G9]:!0,...t};const n=dg(e.url).split("?")[0]||"";let r=mg({...hg(fg(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[G9]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function yg(e,t,n){n={parseFragmentIdentifier:!0,[G9]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=gg(e,n);return bg({url:r,query:ag(o,t),fragmentIdentifier:i},n)}function vg(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function wg(e){return null==e?"":""+e}function Eg(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function xg(e,t,n){const{obj:r,k:o}=Eg(e,t,Object);r[o]=n}function _g(e,t){const{obj:n,k:r}=Eg(e,t);if(n)return n[r]}function Sg(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Sg(e[r],t[r],n):e[r]=t[r]);return e}function Og(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function kg(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>sK[e])):e}function Cg(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let i=e;for(let a=0;aa+e;)e++,n=o.slice(a,a+e).join(r),s=i[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(a+e).join(r);return l?Cg(s,l,r):void 0}i=i[o[a]]}return i}function Tg(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function Dg(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ng(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=_g(e,n);return void 0!==r?r:_g(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=Cg(e,n,i),void 0===s&&(s=Cg(t,n,i))),s}function Rg(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(Tg(r),o),t[i]=a),a(n)}}function Ig(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function $g(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ag(){}function Pg(e){return(Pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jg(e){return uK.call(dK.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Lg(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Pg(XMLHttpRequest))}function Fg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Mg(e){return(Mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bg(e){return(Bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hg(e){var t=function(e){var t,n;if("object"!==Bg(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==Bg(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bg(t)?t:String(t)}function Ug(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function zg(e){return e.startsWith("./")?e.slice(2):e}function Gg(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function Wg(...e){return e.map(Ug).map(zg).join("/")}function Vg(e){return 32===e||9===e}function Xg(e){return 10===e||13===e}function Kg(e){return e>=48&&e<=57}function qg(e){return`${vee}${e}`}async function Yg(e){const t=[],n=await async function(e){const t=qg(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(lq){if(r=yee(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function Jg(e){const t=Qg(await Yg(e));if(t.include){const n=await Jg(Wg(...Gg(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function Qg(e){const t={name:e.name,type:e.type||"dark",...e,...Zg(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function Zg(e){var t,n,r,o;let i,a,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?xee.light:xee.dark),a||(a="light"===e.type?_ee.light:_ee.dark),{fg:i,bg:a}}function eb(e,t){let n=[];for(let r=0,o=t.length;r=0&&i>=0;)tb(t[o],r[i])&&o--,i--;return-1===o}function rb(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;ie.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;eNumber.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ab(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)FK[r]&&t.push({type:"setDecoration",value:FK[r]});else if(r<=29){const e=FK[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:LK[r-30]}});else if(38===r){const n=ib(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:LK[r-40]}});else if(48===r){const n=ib(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:LK[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:LK[r-100+8]}})}return t}function sb(e,t={}){function n(e="",t={},n){const r=i[e]||Oee[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,i)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&RK.Italic&&i.push("font-style: italic"),e.fontStyle&RK.Bold&&i.push("font-weight: bold"),e.fontStyle&RK.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>kee[e])))]);var a}))))))])}function lb(e){return"string"==typeof e?gee.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function cb(e){function t(e){const t=e?u.getTheme(e):d;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(u.setTheme(t),p=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=NK.INITIAL,s=[],l=[];for(let c=0,u=i.length;cMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o=e.index,function(){if(r)return r;r=[];for(let n=0;n[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=ob(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=ab(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(io.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=RK.None;return t.decorations.has("bold")&&(o|=RK.Bold),t.decorations.has("italic")&&(o|=RK.Italic),t.decorations.has("underline")&&(o|=RK.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=gee,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":wee;return e.langs&&(n=e.langs.map(lb)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new See(async function(e){if(!Eee){let t;t=TK.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(qg(Wg(...Gg(e),"onig.wasm")))}),Eee=t.then((()=>({createOnigScanner:e=>TK.createOnigScanner(e),createOnigString:e=>TK.createOnigString(e)})))}return Eee}(l),"vscode-oniguruma"),u=new Cee(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const d=(await u.loadThemes(s))[0];let p;await u.loadLanguages(a);let f=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;tt(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=lb(e);c.addLanguage(t),await u.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function ub(e){return null==e}var db,pb,fb,hb,mb,gb,bb,yb,vb,wb,Eb,xb,_b,Sb,Ob,kb,Cb,Tb,Db,Nb,Rb,Ib,$b,Ab,Pb,jb,Lb,Fb,Mb,Bb,Hb,Ub,zb,Gb,Wb,Vb,Xb,Kb,qb,Yb,Jb,Qb,Zb,ey,ty,ny,ry,oy,iy,ay,sy,ly,cy,uy,dy,py,fy,hy,my,gy,by,yy,vy,wy,Ey,xy,_y,Sy,Oy,ky,Cy,Ty,Dy,Ny,Ry,Iy,$y,Ay,Py,jy,Ly,Fy,My,By,Hy,Uy,zy,Gy,Wy,Vy,Xy,Ky,qy,Yy,Jy,Qy,Zy,ev,tv,nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,fv,hv,mv,gv,bv,yv,vv,wv,Ev,xv,_v,Sv,Ov,kv,Cv,Tv,Dv,Nv,Rv,Iv,$v,Av,Pv,jv,Lv,Fv,Mv,Bv,Hv,Uv,zv,Gv,Wv,Vv,Xv,Kv,qv,Yv,Jv,Qv,Zv,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,hw,mw,gw,bw,yw,vw,ww,Ew,xw,_w,Sw,Ow,kw,Cw,Tw,Dw,Nw,Rw,Iw,$w,Aw,Pw,jw,Lw,Fw,Mw,Bw,Hw,Uw,zw,Gw,Ww,Vw,Xw,Kw,qw,Yw,Jw,Qw,Zw,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,hE,mE,gE,bE,yE,vE,wE,EE,xE,_E,SE,OE,kE,CE,TE,DE,NE,RE,IE,$E,AE,PE,jE,LE,FE,ME,BE,HE,UE,zE,GE,WE,VE,XE,KE,qE,YE,JE,QE,ZE,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,hx,mx,gx,bx,yx,vx,wx,Ex,xx,_x,Sx,Ox,kx,Cx,Tx,Dx,Nx,Rx,Ix,$x,Ax,Px,jx,Lx,Fx,Mx,Bx,Hx,Ux,zx,Gx,Wx,Vx,Xx,Kx,qx,Yx,Jx,Qx,Zx,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,d_,p_,f_,h_,m_,g_,b_,y_,v_,w_,E_,x_,__,S_,O_,k_,C_,T_,D_,N_,R_,I_,$_,A_,P_,j_,L_,F_,M_,B_,H_,U_,z_,G_,W_,V_,X_,K_,q_,Y_,J_,Q_,Z_,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,dS,pS,fS,hS,mS,gS,bS,yS,vS,wS,ES,xS,_S,SS,OS,kS,CS,TS,DS,NS,RS,IS,$S,AS,PS,jS,LS,FS,MS,BS,HS,US,zS,GS,WS,VS,XS,KS,qS,YS,JS,QS,ZS,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,dO,pO,fO,hO,mO,gO,bO,yO,vO,wO,EO,xO,_O,SO,OO,kO,CO,TO,DO,NO,RO,IO,$O,AO,PO,jO,LO,FO,MO,BO,HO,UO,zO,GO,WO,VO,XO,KO,qO,YO,JO,QO,ZO,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,hk,mk,gk,bk,yk,vk,wk,Ek,xk,_k,Sk,Ok,kk,Ck,Tk,Dk,Nk,Rk,Ik,$k,Ak,Pk,jk,Lk,Fk,Mk,Bk,Hk,Uk,zk,Gk,Wk,Vk,Xk,Kk,qk,Yk,Jk,Qk,Zk,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,dC,pC,fC,hC,mC,gC,bC,yC,vC,wC,EC,xC,_C,SC,OC,kC,CC,TC,DC,NC,RC,IC,$C,AC,PC,jC,LC,FC,MC,BC,HC,UC,zC,GC,WC,VC,XC,KC,qC,YC,JC,QC,ZC,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,dT,pT,fT,hT,mT,gT,bT,yT,vT,wT,ET,xT,_T,ST,OT,kT,CT,TT,DT,NT,RT,IT,$T,AT,PT,jT,LT,FT,MT,BT,HT,UT,zT,GT,WT,VT,XT,KT,qT,YT,JT,QT,ZT,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,hD,mD,gD,bD,yD,vD,wD,ED,xD,_D,SD,OD,kD,CD,TD,DD,ND,RD,ID,$D,AD,PD,jD,LD,FD,MD,BD,HD,UD,zD,GD,WD,VD,XD,KD,qD,YD,JD,QD,ZD,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,mN,gN,bN,yN,vN,wN,EN,xN,_N,SN,ON,kN,CN,TN,DN,NN,RN,IN,$N,AN,PN,jN,LN,FN,MN,BN,HN,UN,zN,GN,WN,VN,XN,KN,qN,YN,JN,QN,ZN,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,dR,pR,fR,hR,mR,gR,bR,yR,vR,wR,ER,xR,_R,SR,OR,kR,CR,TR,DR,NR,RR,IR,$R,AR,PR,jR,LR,FR,MR,BR,HR,UR,zR,GR,WR,VR,XR,KR,qR,YR,JR,QR,ZR,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,hI,mI,gI,bI,yI,vI,wI,EI,xI,_I,SI,OI,kI,CI,TI,DI,NI,RI,II,$I,AI,PI,jI,LI,FI,MI,BI,HI,UI,zI,GI,WI,VI,XI,KI,qI,YI,JI,QI,ZI,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,f$,h$,m$,g$,b$,y$,v$,w$,E$,x$,_$,S$,O$,k$,C$,T$,D$,N$,R$,I$,$$,A$,P$,j$,L$,F$,M$,B$,H$,U$,z$,G$,W$,V$,X$,K$,q$,Y$,J$,Q$,Z$,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,dA,pA,fA,hA,mA,gA,bA,yA,vA,wA,EA,xA,_A,SA,OA,kA,CA,TA,DA,NA,RA,IA,$A,AA,PA,jA,LA,FA,MA,BA,HA,UA,zA,GA,WA,VA,XA,KA,qA,YA,JA,QA,ZA,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,dP,pP,fP,hP,mP,gP,bP,yP,vP,wP,EP,xP,_P,SP,OP,kP,CP,TP,DP,NP,RP,IP,$P,AP,PP,jP,LP,FP,MP,BP,HP,UP,zP,GP,WP,VP,XP,KP,qP,YP,JP,QP,ZP,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,dj,pj,fj,hj,mj,gj,bj,yj,vj,wj,Ej,xj,_j,Sj,Oj,kj,Cj,Tj,Dj,Nj,Rj,Ij,$j,Aj,Pj,jj,Lj,Fj,Mj,Bj,Hj,Uj,zj,Gj,Wj,Vj,Xj,Kj,qj,Yj,Jj,Qj,Zj,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,dL,pL,fL,hL,mL,gL,bL,yL,vL,wL,EL,xL,_L,SL,OL,kL,CL,TL,DL,NL,RL,IL,$L,AL,PL,jL,LL,FL,ML,BL,HL,UL,zL,GL,WL,VL,XL,KL,qL,YL,JL,QL,ZL,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,dF,pF,fF,hF,mF,gF,bF,yF,vF,wF,EF,xF,_F,SF,OF,kF,CF,TF,DF,NF,RF,IF,$F,AF,PF,jF,LF,FF,MF,BF,HF,UF,zF,GF,WF,VF,XF,KF,qF,YF,JF,QF,ZF,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM,hM,mM,gM,bM,yM,vM,wM,EM,xM,_M,SM,OM,kM,CM,TM,DM,NM,RM,IM,$M,AM,PM,jM,LM,FM,MM,BM,HM,UM,zM,GM,WM,VM,XM,KM,qM,YM,JM,QM,ZM,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,hB,mB,gB,bB,yB,vB,wB,EB,xB,_B,SB,OB,kB,CB,TB,DB,NB,RB,IB,$B,AB,PB,jB,LB,FB,MB,BB,HB,UB,zB,GB,WB,VB,XB,KB,qB,YB,JB,QB,ZB,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH,pH,fH,hH,mH,gH,bH,yH,vH,wH,EH,xH,_H,SH,OH,kH,CH,TH,DH,NH,RH,IH,$H,AH,PH,jH,LH,FH,MH,BH,HH,UH,zH,GH,WH,VH,XH,KH,qH,YH,JH,QH,ZH,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,hU,mU,gU,bU,yU,vU,wU,EU,xU,_U,SU,OU,kU,CU,TU,DU,NU,RU,IU,$U,AU,PU,jU,LU,FU,MU,BU,HU,UU,zU,GU,WU,VU,XU,KU,qU,YU,JU,QU,ZU,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,dz,pz,fz,hz,mz,gz,bz,yz,vz,wz,Ez,xz,_z,Sz,Oz,kz,Cz,Tz,Dz,Nz,Rz,Iz,$z,Az,Pz,jz,Lz,Fz,Mz,Bz,Hz,Uz,zz,Gz,Wz,Vz,Xz,Kz,qz,Yz,Jz,Qz,Zz,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,dG,pG,fG,hG,mG,gG,bG,yG,vG,wG,EG,xG,_G,SG,OG,kG,CG,TG,DG,NG,RG,IG,$G,AG,PG,jG,LG,FG,MG,BG,HG,UG,zG,GG,WG,VG,XG,KG,qG,YG,JG,QG,ZG,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,dW,pW,fW,hW,mW,gW,bW,yW,vW,wW,EW,xW,_W,SW,OW,kW,CW,TW,DW,NW,RW,IW,$W,AW,PW,jW,LW,FW,MW,BW,HW,UW,zW,GW,WW,VW,XW,KW,qW,YW,JW,QW,ZW,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,dV,pV,fV,hV,mV,gV,bV,yV,vV,wV,EV,xV,_V,SV,OV,kV,CV,TV,DV,NV,RV,IV,$V,AV,PV,jV,LV,FV,MV,BV,HV,UV,zV,GV,WV,VV,XV,KV,qV,YV,JV,QV,ZV,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,pX,fX,hX,mX,gX,bX,yX,vX,wX,EX,xX,_X,SX,OX,kX,CX,TX,DX,NX,RX,IX,$X,AX,PX,jX,LX,FX,MX,BX,HX,UX,zX,GX,WX,VX,XX,KX,qX,YX,JX,QX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,dK,pK,fK,hK,mK,gK,bK,yK,vK,wK,EK,xK,_K,SK,OK,kK,CK,TK,DK,NK,RK,IK,$K,AK,PK,jK,LK,FK,MK,BK,HK,UK,zK,GK,WK,VK,XK,KK,qK,YK,JK,QK,ZK,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,dq,pq,fq,hq,mq,gq,bq,yq,vq,wq,Eq,xq,_q,Sq,Oq,kq,Cq,Tq,Dq,Nq,Rq;import Iq from"react-dnd";import $q from"react-dnd-html5-backend";db="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},pb={exports:{}},fb={},hb={exports:{}},mb={},gb=Symbol.for("react.element"),bb=Symbol.for("react.portal"),yb=Symbol.for("react.fragment"),vb=Symbol.for("react.strict_mode"),wb=Symbol.for("react.profiler"),Eb=Symbol.for("react.provider"),xb=Symbol.for("react.context"),_b=Symbol.for("react.forward_ref"),Sb=Symbol.for("react.suspense"),Ob=Symbol.for("react.memo"),kb=Symbol.for("react.lazy"),Cb=Symbol.iterator,Tb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Db=Object.assign,Nb={},n.prototype.isReactComponent={},n.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},r.prototype=n.prototype,(Rb=o.prototype=new r).constructor=o,Db(Rb,n.prototype),Rb.isPureReactComponent=!0,Ib=Array.isArray,$b=Object.prototype.hasOwnProperty,Pb={key:!0,ref:!0,__self:!0,__source:!0},jb=/\/+/g,Mb={ReactCurrentDispatcher:Lb={current:null},ReactCurrentBatchConfig:Fb={transition:null},ReactCurrentOwner:Ab={current:null}},mb.Children={map:c,forEach:function(e,t,n){c(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return c(e,(function(){t++})),t},toArray:function(e){return c(e,(function(e){return e}))||[]},only:function(e){if(!a(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},mb.Component=n,mb.Fragment=yb,mb.Profiler=wb,mb.PureComponent=o,mb.StrictMode=vb,mb.Suspense=Sb,mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mb,mb.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=Db({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=Ab.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)$b.call(t,l)&&!Pb.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,i=e.length,a=i>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var o=n(g);null!==o;){if(null===o.callback)r(g);else{if(!(o.startTime<=e))break;r(g),o.sortIndex=o.expirationTime,t(m,o)}o=n(g)}}function a(e){if(x=!1,i(e),!E)if(null!==n(m))E=!0,u(s);else{var t=n(g);null!==t&&d(a,t.startTime-e)}}function s(t,o){var s,c,u,p,f;E=!1,x&&(x=!1,S(T),T=-1),w=!0,s=v;try{for(i(o),y=n(m);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(m)&&r(m),i(o)):r(m),y=n(m);return null!==y?p=!0:(null!==(f=n(g))&&d(a,f.startTime-o),p=!1),p}finally{y=null,v=s,w=!1}}function l(){return!(e.unstable_now()-Ne||125c?(r.sortIndex=i,t(g,r),null===n(m)&&r===n(g)&&(x?(S(T),T=-1):x=!0,d(a,i-c))):(r.sortIndex=l,t(m,r),E||w||(E=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(Jb={}),Yb.exports=Jb,Qb=Bb,Zb=Yb.exports,ey=new Set,ty={},ny=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ry=Object.prototype.hasOwnProperty,oy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iy={},ay={},sy={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sy[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sy[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sy[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sy[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sy[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sy[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sy[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sy[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sy[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)})),ly=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ly,g);sy[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ly,g);sy[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ly,g);sy[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sy[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),sy.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sy[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)})),cy=Qb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,uy=Symbol.for("react.element"),dy=Symbol.for("react.portal"),py=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),my=Symbol.for("react.provider"),gy=Symbol.for("react.context"),by=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),vy=Symbol.for("react.suspense_list"),wy=Symbol.for("react.memo"),Ey=Symbol.for("react.lazy"),xy=Symbol.for("react.offscreen"),_y=Symbol.iterator,Sy=Object.assign,ky=!1,Cy=Array.isArray,BK=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ty=Ty||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=Ty.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},Dy="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return BK(e,t)}))}:BK,Ny={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ry=["Webkit","ms","Moz","O"],Object.keys(Ny).forEach((function(e){Ry.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ny[t]=Ny[e]}))})),Iy=Sy({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),$y=null,Ay=null,Py=null,jy=null,Ly=!1,Fy=!1,ny)try{My={},Object.defineProperty(My,"passive",{get:function(){Fy=!0}}),window.addEventListener("test",My,My),window.removeEventListener("test",My,My)}catch(BK){Fy=!1}By=!1,Hy=null,Uy=!1,zy=null,Gy={onError:function(e){By=!0,Hy=e}},Wy=Zb.unstable_scheduleCallback,Vy=Zb.unstable_cancelCallback,Xy=Zb.unstable_shouldYield,Ky=Zb.unstable_requestPaint,qy=Zb.unstable_now,Yy=Zb.unstable_getCurrentPriorityLevel,Jy=Zb.unstable_ImmediatePriority,Qy=Zb.unstable_UserBlockingPriority,Zy=Zb.unstable_NormalPriority,ev=Zb.unstable_LowPriority,tv=Zb.unstable_IdlePriority,nv=null,rv=null,ov=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(iv(e)/av|0)|0},iv=Math.log,av=Math.LN2,sv=64,lv=4194304,cv=0,mv=!1,gv=[],bv=null,yv=null,vv=null,wv=new Map,Ev=new Map,xv=[],_v="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Sv=cy.ReactCurrentBatchConfig,Ov=!0,kv=null,Cv=null,Tv=null,Dv=null,Nv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rv=Ae(Nv),Iv=Sy({},Nv,{view:0,detail:0}),$v=Ae(Iv),Lv=Sy({},Iv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:je,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jv&&(jv&&"mousemove"===e.type?(Av=e.screenX-jv.screenX,Pv=e.screenY-jv.screenY):Pv=Av=0,jv=e),Av)},movementY:function(e){return"movementY"in e?e.movementY:Pv}}),Fv=Ae(Lv),Mv=Sy({},Lv,{dataTransfer:0}),Bv=Ae(Mv),Hv=Sy({},Iv,{relatedTarget:0}),Uv=Ae(Hv),zv=Sy({},Nv,{animationName:0,elapsedTime:0,pseudoElement:0}),Gv=Ae(zv),Wv=Sy({},Nv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vv=Ae(Wv),Xv=Sy({},Nv,{data:0}),Kv=Ae(Xv),qv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Qv=Sy({},Iv,{key:function(e){if(e.key){var t=qv[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Re(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Yv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:je,charCode:function(e){return"keypress"===e.type?Re(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Re(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Zv=Ae(Qv),ew=Sy({},Lv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tw=Ae(ew),nw=Sy({},Iv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:je}),rw=Ae(nw),ow=Sy({},Nv,{propertyName:0,elapsedTime:0,pseudoElement:0}),iw=Ae(ow),aw=Sy({},Lv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sw=Ae(aw),lw=[9,13,27,32],cw=ny&&"CompositionEvent"in window,uw=null,ny&&"documentMode"in document&&(uw=document.documentMode),dw=ny&&"TextEvent"in window&&!uw,pw=ny&&(!cw||uw&&8=uw),fw=String.fromCharCode(32),hw=!1,mw=!1,gw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},bw=null,yw=null,vw=!1,ny&&(ny?((Ew="oninput"in document)||((xw=document.createElement("div")).setAttribute("oninput","return;"),Ew="function"==typeof xw.oninput),ww=Ew):ww=!1,vw=ww&&(!document.documentMode||9=document.documentMode,Ow=null,kw=null,Cw=null,Tw=!1,Dw={animationend:ot("Animation","AnimationEnd"),animationiteration:ot("Animation","AnimationIteration"),animationstart:ot("Animation","AnimationStart"),transitionend:ot("Transition","TransitionEnd")},Nw={},Rw={},ny&&(Rw=document.createElement("div").style,"AnimationEvent"in window||(delete Dw.animationend.animation,delete Dw.animationiteration.animation,delete Dw.animationstart.animation),"TransitionEvent"in window||delete Dw.transitionend.transition),Iw=it("animationend"),$w=it("animationiteration"),Aw=it("animationstart"),Pw=it("transitionend"),jw=new Map,Lw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(Fw=0;Fw=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},A_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},P_=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},j_=function(e){var t,n=H_(e,y_.TITLE),r=H_(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=H_(e,"defaultTitle"),n||t||void 0)},L_=function(e){return H_(e,"onChangeClientState")||function(){}},F_=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return R_({},e,t)}),{})},M_=function(e,t){return t.filter((function(e){return void 0!==e[y_.BASE]})).map((function(e){return e[y_.BASE]})).reverse().reduce((function(t,n){var r,o,i;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},U_=function(e){return{baseTag:M_([w_,"target"],e),bodyAttributes:F_(g_,e),defer:H_(e,"defer"),encode:H_(e,"encodeSpecialCharacters"),htmlAttributes:F_(b_,e),linkTags:B_(y_.LINK,[__,w_],e),metaTags:B_(y_.META,["name","charset","http-equiv","property",x_],e),noscriptTags:B_(y_.NOSCRIPT,[E_],e),onChangeClientState:L_(e),scriptTags:B_(y_.SCRIPT,["src",E_],e),styleTags:B_(y_.STYLE,[v_],e),title:j_(e),titleAttributes:F_("titleAttributes",e)}},UK=Date.now(),z_=function(e){var t=Date.now();t-UK>16?(UK=t,e(t)):setTimeout((function(){z_(e)}),0)},G_=function(e){return clearTimeout(e)},W_="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||z_:global.requestAnimationFrame||z_,V_="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||G_:global.cancelAnimationFrame||G_,X_=function(){return console&&"function"==typeof console.warn&&void 0},K_=null,q_=function(e){K_&&V_(K_),e.defer?K_=W_((function(){Y_(e,(function(){K_=null}))})):(Y_(e),K_=null)},Y_=function(e,t){var n,r,o,i=e.baseTag,a=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,d=e.scriptTags,p=e.styleTags,f=e.title,h=e.titleAttributes;Z_(y_.BODY,e.bodyAttributes),Z_(y_.HTML,a),Q_(f,h),n={baseTag:eS(y_.BASE,i),linkTags:eS(y_.LINK,s),metaTags:eS(y_.META,l),noscriptTags:eS(y_.NOSCRIPT,c),scriptTags:eS(y_.SCRIPT,d),styleTags:eS(y_.STYLE,p)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],i=t.newTags,a=t.oldTags;i.length&&(r[e]=i),a.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},J_=function(e){return Array.isArray(e)?e.join(""):e},Q_=function(e,t){void 0!==e&&document.title!==e&&(document.title=J_(e)),Z_(y_.TITLE,t)},Z_=function(e,t){var n,r,o,i,a,s,l,c,u,d=document.getElementsByTagName(e)[0];if(d){for(r=(n=d.getAttribute(C_))?n.split(","):[],o=[].concat(r),i=Object.keys(t),a=0;a=0;u--)d.removeAttribute(o[u]);r.length===o.length?d.removeAttribute(C_):d.getAttribute(C_)!==i.join(",")&&d.setAttribute(C_,i.join(","))}},eS=function(e,t){var n=document.head||document.querySelector(y_.HEAD),r=n.querySelectorAll(e+"["+C_+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===E_?r.innerHTML=t.innerHTML:n===v_?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(C_,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},tS=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},nS=function(e,t,n,r){var o=tS(n),i=J_(t);return o?"<"+e+" "+C_+'="true" '+o+">"+P_(i,r)+"":"<"+e+" "+C_+'="true">'+P_(i,r)+""},rS=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===E_||e===v_)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+P_(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===k_.indexOf(e);return t+"<"+e+" "+C_+'="true" '+o+(a?"/>":">"+i+"")}),"")},oS=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[S_[n]||n]=e[n],t}),n)},iS=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[O_[n]||n]=e[n],t}),n)},aS=function(e,t,n){var r,o=((r={key:t})[C_]=!0,r),i=oS(n,o);return[Aq.createElement(y_.TITLE,i,t)]},sS=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[C_]=!0,r);return Object.keys(t).forEach((function(e){var n=S_[e]||e;n===E_||n===v_?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),Aq.createElement(e,o)}))},lS=function(e,t,n){switch(e){case y_.TITLE:return{toComponent:function(){return aS(0,t.title,t.titleAttributes)},toString:function(){return nS(e,t.title,t.titleAttributes,n)}};case g_:case b_:return{toComponent:function(){return oS(t)},toString:function(){return tS(t)}};default:return{toComponent:function(){return sS(e,t)},toString:function(){return rS(e,t,n)}}}},uS=function(e){var t,n;return n=t=function(t){function n(){return D_(this,n),A_(this,t.apply(this,arguments))}return I_(n,t),n.prototype.shouldComponentUpdate=function(e){return!Bq(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y_.SCRIPT:case y_.NOSCRIPT:return{innerHTML:t};case y_.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return R_({},r,((t={})[n.type]=[].concat(r[n.type]||[],[R_({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case y_.TITLE:return R_({},o,((t={})[r.type]=a,t.titleAttributes=R_({},i),t));case y_.BODY:return R_({},o,{bodyAttributes:R_({},i)});case y_.HTML:return R_({},o,{htmlAttributes:R_({},i)})}return R_({},o,((n={})[r.type]=R_({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=R_({},t);return Object.keys(e).forEach((function(t){var r;n=R_({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return Aq.Children.forEach(e,(function(e){var o,i,a,s;if(e&&e.props)switch(i=(o=e.props).children,a=$_(o,["children"]),s=iS(a),n.warnOnInvalidChildren(e,i),e.type){case y_.LINK:case y_.META:case y_.NOSCRIPT:case y_.SCRIPT:case y_.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=$_(t,["children"]),o=R_({},r);return n&&(o=this.mapChildrenToProps(n,o)),Aq.createElement(e,o)},N_(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(Aq.Component),t.propTypes={base:Fq.object,bodyAttributes:Fq.object,children:Fq.oneOfType([Fq.arrayOf(Fq.node),Fq.node]),defaultTitle:Fq.string,defer:Fq.bool,encodeSpecialCharacters:Fq.bool,htmlAttributes:Fq.object,link:Fq.arrayOf(Fq.object),meta:Fq.arrayOf(Fq.object),noscript:Fq.arrayOf(Fq.object),onChangeClientState:Fq.func,script:Fq.arrayOf(Fq.object),style:Fq.arrayOf(Fq.object),title:Fq.string,titleAttributes:Fq.object,titleTemplate:Fq.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=cS({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},dS=function(){return null},pS=Mq(U_,q_,cS=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,d=e.titleAttributes;return{base:lS(y_.BASE,e.baseTag,n),bodyAttributes:lS(g_,t,n),htmlAttributes:lS(b_,r,n),link:lS(y_.LINK,o,n),meta:lS(y_.META,i,n),noscript:lS(y_.NOSCRIPT,a,n),script:lS(y_.SCRIPT,s,n),style:lS(y_.STYLE,l,n),title:lS(y_.TITLE,{title:u,titleAttributes:d},n)}})(dS),(fS=uS(pS)).renderStatic=fS.rewind,hS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Uq=(e,t)=>{const n=Bb.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return Bb.createElement("svg",{ref:l,...hS,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>Bb.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},zq=Uq("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),Gq=Uq("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),Wq=Uq("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Vq=Uq("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Xq=Uq("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Kq=Uq("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),qq=Uq("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),Yq=Uq("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),Jq=Uq("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Qq=Uq("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),Zq=Uq("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),eY=Uq("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),tY=Uq("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),nY=Uq("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),rY=Uq("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),oY=Uq("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),iY=Uq("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),aY=Uq("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),sY=Uq("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),lY=Uq("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),cY=Uq("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),uY=Uq("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),dY=Uq("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),pY=Uq("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),fY=Uq("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),hY=Uq("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);mS=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case ES:e.return=sa(e.value,e.length);break;case _S:return oa([Mi(e,{value:Ri(e.value,"@","@"+yS)})],r);case wS:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return oa([Mi(e,{props:[Ri(t,/:(read-\w+)/,":"+bS+"$1")]})],r);case"::placeholder":return oa([Mi(e,{props:[Ri(t,/:(plac\w+)/,":"+yS+"input-$1")]}),Mi(e,{props:[Ri(t,/:(plac\w+)/,":"+bS+"$1")]}),Mi(e,{props:[Ri(t,/:(plac\w+)/,gS+"input-$1")]})],r)}return""}))}}],US=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m=e.key;return"css"===m&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||HS,r={},i=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+m+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:JS}},ZS=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},eO=function(e,t,n){var r,o;if(ZS(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},tO=function(e){var t,n,r,o,i=US(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==t&&t,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r,o,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Ua(e,2)[1];return a.internalGet(t)[1]1&&void 0!==n?n:{},h=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},m=h.root,g=h.injectHash,b=h.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||m?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,a,s,u,d,p,h,v,w=n[t];if("object"!==xi(w)||!w||"animationName"===t&&w._keyframe||function(e){return"object"===xi(e)&&e&&("_skip_check_"in e||eC in e)}(w)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Nk[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(h=null==w?void 0:w.value)&&void 0!==h?h:w,"object"===xi(w)&&null!=w&&w[eC]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(m||g)&&y?a.startsWith("@")?r=!0:a=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(wa(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!m||y||"&"!==a&&""!==a||(a="",s=!0),d=(u=Ua(e(w,f,{root:s,injectHash:r,parentSelectors:[].concat(wa(b),[a])}),2))[0],p=u[1],c=xa(xa({},c),p),l+="".concat(a).concat(d)})))})),m?v&&function(){var e,t,n,r,o,i;return void 0===vk&&(e="@layer ".concat(bk," { .").concat(bk,' { content: "').concat(yk,'"!important; } }'),t=function(e){e.className=bk},vk=!!Ra()&&(Ma(e,bk),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(yk),null===(r=o.parentNode)||void 0===r||r.removeChild(o),Fa(bk),i)),vk}()&&(p=(d=v.split(","))[d.length-1].trim(),l="@layer ".concat(p," {").concat(l,"}"),d.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},nC=function(){function e(t,n){Ci(this,e),Si(this,"name",void 0),Si(this,"style",void 0),Si(this,"_keyframe",!0),this.name=t,this.style=n}return Di(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),Ts(["borderTop","borderBottom"]),Ts(["borderTop"]),Ts(["borderBottom"]),Ts(["borderLeft","borderRight"]),Ts(["borderLeft"]),Ts(["borderRight"]),rC=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],oC=function(e){return Bb.memo((function(t){var n,r=t.children,o=t.prefix,i=t.speedy,a=t.getStyleManager,s=t.container,l=t.nonce,c=t.insertionPoint,u=t.stylisPlugins,d=t.linters,p=Oi(t,rC),f=Bb.useContext(e),h=null!=o?o:f.sheet.key,m=null!=s?s:f.sheet.container,g=null!=i?i:f.sheet.isSpeedy,b=Bb.useMemo((function(){var e,t=tO({speedy:null!=g&&g,key:h,container:m,nonce:l,insertionPoint:c,stylisPlugins:u}),n=null===(e=global)||void 0===e?void 0:e.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;return n&&(t.cache=n.add(t.cache)),t}),[h,g,m,l,c,u]);return Bb.useEffect((function(){null==a||a(b)}),[b]),n=Xb.jsx(e.Provider,{value:b,children:r}),Boolean(Object.keys(p).length)||m?Xb.jsx(sk,Ns(Ns({linters:d,container:m},p),{},{children:n})):n}))},iC=function(e){var t=e.token;return{buttonDefaultHover:(0,e.css)({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}},aC=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=Ua(e,2);return[t[0],t[1].styles]})))},zK=sC={exports:{}},function(){function e(){var n,r,o,i,a,s=[];for(n=0;n0},e.prototype.connect_=function(){uC&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),hC?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){uC&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;fC.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),gC=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),_C="undefined"!=typeof WeakMap?new WeakMap:new cC,SC=function e(t){var n,r;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");n=mC.getInstance(),r=new xC(t,n,this),_C.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){SC.prototype[e]=function(){var t;return(t=_C.get(this))[e].apply(t,arguments)}})),OC=void 0!==dC.ResizeObserver?dC.ResizeObserver:SC,kC=new Map,CC=new OC((function(e){e.forEach((function(e){var t,n=e.target;null===(t=kC.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),TC=function(){function e(){return Ci(this,e),t.apply(this,arguments)}Is(e,Bb.Component);var t=js(e);return Di(e,[{key:"render",value:function(){return this.props.children}}]),e}(),DC=Bb.createContext(null),NC=Bb.forwardRef(Xs),RC="rc-observer-key",(IC=Bb.forwardRef(Ks)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=Bb.useRef(0),o=Bb.useRef([]),i=Bb.useContext(DC),a=Bb.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return Bb.createElement(DC.Provider,{value:a},t)},$C=function(e){return+setTimeout(e,16)},AC=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&($C=function(e){return window.requestAnimationFrame(e)},AC=function(e){return window.cancelAnimationFrame(e)}),PC=0,jC=new Map,(LC=function(e,t){var n;return n=PC+=1,function t(r){if(0===r)Ys(n),e();else{var o=$C((function(){t(r-1)}));jC.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=jC.get(e);return Ys(t),AC(t)};const vY=Bb.createContext({});FC="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const wY=Bb.createContext(void 0),EY={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},xY={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},EY)},_Y="${label} is not a valid ${type}",SY={locale:"en",Pagination:{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"},DatePicker:xY,TimePicker:EY,Calendar:xY,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_Y,method:_Y,array:_Y,object:_Y,number:_Y,date:_Y,boolean:_Y,integer:_Y,float:_Y,regexp:_Y,email:_Y,url:_Y,hex:_Y},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let OY=Object.assign({},SY.Modal),kY=[];const CY=()=>kY.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),SY.Modal),TY=Bb.createContext(void 0),DY=(e,t)=>{const n=Bb.useContext(TY);return[Bb.useMemo((()=>{var r;const o=t||SY[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),Bb.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?SY.locale:e}),[n])]},NY=e=>{const{locale:t={},children:n}=e;Bb.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return kY.push(t),OY=CY(),()=>{kY=kY.filter((e=>e!==t)),OY=CY()}}OY=Object.assign({},SY.Modal)}(t&&t.Modal);return e}),[t]);const r=Bb.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return Bb.createElement(TY.Provider,{value:r},n)},RY=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],IY="5.9.0";MC={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},BC="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),HC="[\\s|\\(]+(".concat(BC,")[,|\\s]+(").concat(BC,")[,|\\s]+(").concat(BC,")\\s*\\)?"),UC="[\\s|\\(]+(".concat(BC,")[,|\\s]+(").concat(BC,")[,|\\s]+(").concat(BC,")[,|\\s]+(").concat(BC,")\\s*\\)?"),zC={CSS_UNIT:new RegExp(BC),rgb:new RegExp("rgb"+HC),rgba:new RegExp("rgba"+UC),hsl:new RegExp("hsl"+HC),hsla:new RegExp("hsla"+UC),hsv:new RegExp("hsv"+HC),hsva:new RegExp("hsva"+UC),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},GC=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=ml(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=al(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=dl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=dl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=cl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=cl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),pl(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[ll(Math.round(e).toString(16)),ll(Math.round(t).toString(16)),ll(Math.round(n).toString(16)),ll((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*ol(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*ol(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+pl(this.r,this.g,this.b,!1),t=0,n=Object.entries(MC);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=il(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=il(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=il(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=il(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,i=[this],a=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},AY={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"},PY=Object.assign(Object.assign({},AY),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),jY=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},LY=(e,t)=>new GC(e).setAlpha(t).toRgbString(),FY=(e,t)=>new GC(e).darken(t).toHexString(),MY=e=>{const t=xl(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]}},BY=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:LY(r,.88),colorTextSecondary:LY(r,.65),colorTextTertiary:LY(r,.45),colorTextQuaternary:LY(r,.25),colorFill:LY(r,.15),colorFillSecondary:LY(r,.06),colorFillTertiary:LY(r,.04),colorFillQuaternary:LY(r,.02),colorBgLayout:FY(n,4),colorBgContainer:FY(n,0),colorBgElevated:FY(n,0),colorBgSpotlight:LY(r,.85),colorBorder:FY(n,15),colorBorderSecondary:FY(n,6)}},HY=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},UY=za(Sl),zY={token:PY,hashed:!0},GY=Aq.createContext(zY);rT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const r=n.getDerivativeToken(e),{override:o}=t,i=oT(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Cl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=oT(n,["theme"]);let i=o;r&&(i=WY(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a},VY="anticon",XY=Bb.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:VY}),KY=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-s,h=l,m=2*i-0,g=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${h} A ${n} ${n} 0 0 0 ${m} ${g} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},qY={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},YY=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),JY=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),QY=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ZY=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),eJ=e=>({"&:focus-visible":Object.assign({},ZY(e))}),tJ="undefined"!=typeof CSSINJS_STATISTIC;let nJ=!0;const rJ={},oJ=(e,t)=>{const[n,r]=Tl();return Cs({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},iJ=(e,t,n,r)=>{const o=Pl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},aJ=`-ant-${Date.now()}-${Math.random()}`,sJ=Bb.createContext(!1),lJ=e=>{let{children:t,disabled:n}=e;const r=Bb.useContext(sJ);return Bb.createElement(sJ.Provider,{value:null!=n?n:r},t)},cJ=sJ,uJ=Bb.createContext(void 0),dJ=e=>{let{children:t,size:n}=e;const r=Bb.useContext(uJ);return Bb.createElement(uJ.Provider,{value:n||r},t)},pJ=uJ;iT=["children"],aT=Bb.createContext({}),sT=function(){function e(){return Ci(this,e),t.apply(this,arguments)}Is(e,Bb.Component);var t=js(e);return Di(e,[{key:"render",value:function(){return this.props.children}}]),e}(),lT="none",cT="appear",uT="enter",dT="leave",pT="none",fT="prepare",hT="start",mT="active",gT="end",bT="prepared",GK=Ra(),WK="undefined"!=typeof window?window:{},VK={animationend:Fl("Animation","AnimationEnd"),transitionend:Fl("Transition","TransitionEnd")},GK&&("AnimationEvent"in WK||delete VK.animationend.animation,"TransitionEvent"in WK||delete VK.transitionend.transition),yT=VK,vT={},Ra()&&(wT=document.createElement("div"),vT=wT.style),ET={},xT=Ml("animationend"),_T=Ml("transitionend"),ST=!(!xT||!_T),OT=xT||"animationend",kT=_T||"transitionend",CT=Ra()?Bb.useLayoutEffect:Bb.useEffect,TT=[fT,hT,mT,gT],DT=[fT,bT];const fJ=(qK=XK=ST,"object"===xi(XK)&&(qK=XK.transitionSupport),(KK=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,d=void 0===u||u,p=e.forceRender,f=e.children,h=e.motionName,m=e.leavedClassName,g=e.eventProps,b=function(e,t){return!(!e.motionName||!qK||!1===t)}(e,Bb.useContext(aT).motion),y=Bb.useRef(),v=Bb.useRef(),w=function(e,t,n,r){function o(){return n()}function i(){P(lT,!0),F(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=H.current,A===cT&&t?n=null==k?void 0:k(r,e):A===uT&&t?n=null==C?void 0:C(r,e):A===dT&&t&&(n=null==T?void 0:T(r,e)),A!==lT&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,d=r.motionAppear,p=void 0===d||d,f=r.motionLeave,h=void 0===f||f,m=r.motionDeadline,g=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,w=r.onAppearStart,E=r.onEnterStart,x=r.onLeaveStart,_=r.onAppearActive,S=r.onEnterActive,O=r.onLeaveActive,k=r.onAppearEnd,C=r.onEnterEnd,T=r.onLeaveEnd,D=r.onVisibleChanged,N=Ua(Nl(),2),R=N[0],I=N[1],$=Ua(Nl(lT),2),A=$[0],P=$[1],j=Ua(Nl(null),2),L=j[0],F=j[1],M=Bb.useRef(!1),B=Bb.useRef(null),H=Bb.useRef(!1),U=Ua(function(e){function t(e){e&&(e.removeEventListener(kT,n),e.removeEventListener(OT,n))}var n,r=Bb.useRef(),o=Bb.useRef(e);return o.current=e,n=Bb.useCallback((function(e){o.current(e)}),[]),Bb.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(kT,n),e.addEventListener(OT,n),r.current=e)},t]}(a),1)[0],z=function(e){var t,n,r;switch(e){case cT:return Si(t={},fT,b),Si(t,hT,w),Si(t,mT,_),t;case uT:return Si(n={},fT,y),Si(n,hT,E),Si(n,mT,S),n;case dT:return Si(r={},fT,v),Si(r,hT,x),Si(r,mT,O),r;default:return{}}},G=Bb.useMemo((function(){return z(A)}),[A]),W=function(e,t,n){var r=Ua(Nl(pT),2),o=r[0],i=r[1],a=function(){function e(){LC.cancel(t.current)}var t=Bb.useRef(null);return Bb.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=LC((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=Ua(a,2),l=s[0],c=s[1],u=t?DT:TT;return CT((function(){var e,t,r;o!==pT&&o!==gT&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),Bb.useEffect((function(){return function(){c()}}),[]),[function(){i(fT,!0)},o]}(A,!e,(function(e){var t,n;return e===fT?!!(t=G[fT])&&t(o()):(K in G&&F((null===(n=G[K])||void 0===n?void 0:n.call(G,o(),null))||null),K===mT&&(U(o()),m>0&&(clearTimeout(B.current),B.current=setTimeout((function(){a({deadline:!0})}),m))),K===bT&&i(),!0)})),V=Ua(W,2),X=V[0],K=V[1],q=Hl(K);return H.current=q,CT((function(){var n,r,o;I(t),n=M.current,M.current=!0,!n&&t&&p&&(r=cT),n&&t&&u&&(r=uT),(n&&!t&&h||!n&&g&&!t&&h)&&(r=dT),o=z(r),r&&(e||o[fT])?(P(r),X()):P(lT)}),[t]),Bb.useEffect((function(){(A===cT&&!p||A===uT&&!u||A===dT&&!h)&&P(lT)}),[p,u,h]),Bb.useEffect((function(){return function(){M.current=!1,clearTimeout(B.current)}}),[]),s=Bb.useRef(!1),Bb.useEffect((function(){R&&(s.current=!0),void 0!==R&&A===lT&&((s.current||R)&&(null==D||D(R)),s.current=!0)}),[R,A]),l=L,G[fT]&&K===hT&&(l=xa({transition:"none"},l)),[A,K,l,null!=R?R:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:zs(v.current)}catch(lq){return null}}),e),E=Ua(w,4),x=E[0],_=E[1],S=E[2],O=E[3],k=Bb.useRef(O);return O&&(k.current=!0),n=Bb.useCallback((function(e){y.current=e,Fs(t,e)}),[t]),o=xa(xa({},g),{},{visible:c}),f?x===lT?r=O?f(xa({},o),n):!d&&k.current&&m?f(xa(xa({},o),{},{className:m}),n):p||!d&&!m?f(xa(xa({},o),{},{style:{display:"none"}}),n):null:(_===fT?a="prepare":Hl(_)?a="active":_===hT&&(a="start"),s=Bl(h,"".concat(x,"-").concat(a)),r=f(xa(xa({},o),{},{className:yY(Bl(h,x),(i={},Si(i,s,s&&a),Si(i,h,"string"==typeof h),i)),style:S}),n)):r=null,Bb.isValidElement(r)&&Hs(r)&&(r.ref||(r=Bb.cloneElement(r,{ref:n}))),Bb.createElement(sT,{ref:v},r)}))).displayName="CSSMotion",KK);NT="add",RT="keep",IT="remove",$T="removed",AT=["component","children","onVisibleChanged","onAllRemoved"],PT=["status"],jT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const hJ=function(e,t){var n=arguments.length>1&&void 0!==t?t:fJ,r=function(){function e(){var n,r,o,i;for(Ci(this,e),r=arguments.length,o=new Array(r),i=0;i1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=zl(arguments.length>0&&void 0!==e?e:[]),l=zl(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==IT}))).forEach((function(t){t.key===e&&(t.status=RT)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==$T||e.status!==IT}))}}}]),e}();return Si(r,"defaultProps",{component:"div"}),r}(ST);LT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Wl()}-${e}`:Wl()),getIconPrefixCls:Vl,getRootPrefixCls:()=>gJ||Wl(),getTheme:()=>yJ}),wJ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:f,popupOverflow:h,legacyLocale:m,parentContext:g,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:w,statistic:E,spin:x,calendar:_,carousel:S,cascader:O,collapse:k,typography:C,checkbox:T,descriptions:D,divider:N,drawer:R,skeleton:I,steps:$,image:A,layout:P,list:j,mentions:L,modal:F,progress:M,result:B,slider:H,breadcrumb:U,menu:z,pagination:G,input:W,empty:V,badge:X,radio:K,rate:q,switch:Y,transfer:J,avatar:Q,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:de}=e,pe=Bb.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o}),[g.getPrefixCls,e.prefixCls]),fe=b||g.iconPrefixCls||VY,he=fe!==g.iconPrefixCls,me=n||g.csp,ge=oJ(fe,me),be=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:zY;return Sa((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Da(e,t[n],!0)))))}(y,g.theme),ye={csp:me,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||m,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=f?f:p,popupOverflow:h,getPrefixCls:pe,iconPrefixCls:fe,theme:be,segmented:w,statistic:E,spin:x,calendar:_,carousel:S,cascader:O,collapse:k,typography:C,checkbox:T,descriptions:D,divider:N,drawer:R,skeleton:I,steps:$,image:A,input:W,layout:P,list:j,mentions:L,modal:F,progress:M,result:B,slider:H,breadcrumb:U,menu:z,pagination:G,empty:V,badge:X,radio:K,rate:q,switch:Y,transfer:J,avatar:Q,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:de},ve=Object.assign({},g);Object.keys(ye).forEach((e=>{void 0!==ye[e]&&(ve[e]=ye[e])})),mJ.forEach((t=>{const n=e[t];n&&(ve[t]=n)}));const we=Sa((()=>ve),ve,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ee=Bb.useMemo((()=>({prefixCls:fe,csp:me})),[fe,me]);let xe=he?ge(t):t;const _e=Bb.useMemo((()=>{var e,t,n,r;return nl((null===(e=SY.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=we.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=we.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[we,null==a?void 0:a.validateMessages]);Object.keys(_e).length>0&&(xe=Bb.createElement(wY.Provider,{value:_e},t)),s&&(xe=Bb.createElement(NY,{locale:s,_ANT_MARK__:"internalMark"},xe)),(fe||me)&&(xe=Bb.createElement(vY.Provider,{value:Ee},xe)),l&&(xe=Bb.createElement(dJ,{size:l},xe)),xe=Bb.createElement(Gl,null,xe);const Se=Bb.useMemo((()=>{const e=be||{},{algorithm:t,token:n,components:r}=e,o=LT(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?za(t):UY,a={};return Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=za(r.algorithm)),delete r.algorithm),a[t]=r})),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},PY),n),components:a})}),[be]);return y&&(xe=Bb.createElement(GY.Provider,{value:Se},xe)),void 0!==v&&(xe=Bb.createElement(lJ,{disabled:v},xe)),Bb.createElement(XY.Provider,{value:we},xe)},EJ=e=>{const t=Bb.useContext(XY),n=Bb.useContext(TY);return Bb.createElement(wJ,Object.assign({parentContext:t,legacyLocale:n},e))};EJ.ConfigContext=XY,EJ.SizeContext=pJ,EJ.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(gJ=t),void 0!==n&&(bJ=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new GC(e),i=xl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new GC(t.primaryColor),i=xl(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new GC(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Ra()&&Ma(n,`${aJ}-dynamic-theme`)}(Wl(),r):yJ=r)},EJ.useConfig=function(){return{componentDisabled:Bb.useContext(cJ),componentSize:Bb.useContext(pJ)}},Object.defineProperty(EJ,"SizeContext",{get:()=>pJ});const xJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};FT=function(e){var t=Bb.useContext(vY),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),Bb.useEffect((function(){var t=Kl(e.current);Ma(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},MT=["icon","className","onClick","style","primaryColor","secondaryColor"],BT={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(HT=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Oi(e,MT),d=Bb.useRef(),p=BT;return l&&(p={primaryColor:l,secondaryColor:c||Ql(l)}),FT(d),n=ql(o),r="icon should be icon definiton, but got ".concat(o),Ta(n,"[@ant-design/icons] ".concat(r)),ql(o)?((t=o)&&"function"==typeof t.icon&&(t=xa(xa({},t),{},{icon:t.icon(p.primaryColor,p.secondaryColor)})),Jl(t.icon,"svg-".concat(t.name),xa(xa({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))):null}).displayName="IconReact",HT.getTwoToneColors=function(){return xa({},BT)},HT.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;BT.primaryColor=t,BT.secondaryColor=n||Ql(t),BT.calculated=!!n};const _J=HT;UT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],ec(nT.primary),(zT=Bb.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,d=e.tabIndex,p=e.onClick,f=e.twoToneColor,h=Oi(e,UT),m=Bb.useContext(vY),g=m.prefixCls,b=void 0===g?"anticon":g,y=yY(m.rootClassName,b,(Si(n={},"".concat(b,"-").concat(l.name),!!l.name),Si(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=d;return void 0===v&&p&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=Ua(Zl(f),2))[0],a=o[1],Bb.createElement("span",pa({role:"img","aria-label":l.name},h,{ref:t,tabIndex:v,onClick:p,className:y}),Bb.createElement(_J,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",zT.getTwoToneColor=function(){var e=_J.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},zT.setTwoToneColor=ec;const SJ=zT,OJ=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:xJ}))})),kJ={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"},CJ=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:kJ}))})),TJ={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"},DJ=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:TJ}))})),NJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},RJ=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:NJ}))})),IJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},$J=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:IJ}))}));GT="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),WT="aria-",VT="data-";const{isValidElement:AJ}=Pq,PJ=e=>"object"==typeof e&&null!=e&&1===e.nodeType,jJ=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,LJ=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,MJ=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},BJ=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!PJ(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;PJ(h)&&d(h);){if(h=MJ(h),h===p){f.push(h);break}null!=h&&h===document.body&&LJ(h)&&!LJ(document.documentElement)||null!=h&&LJ(h,u)&&f.push(h)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:w,top:E,right:x,bottom:_,left:S}=e.getBoundingClientRect();let O="start"===s||"nearest"===s?E:"end"===s?_:E+v/2,k="center"===l?S+w/2:"end"===l?x:S;const C=[];for(let T=0;T=0&&S>=0&&_<=g&&x<=m&&E>=r&&_<=i&&S>=c&&x<=o)return C;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),D=parseInt(u.borderRightWidth,10),N=parseInt(u.borderBottomWidth,10);let R=0,I=0;const $="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-D:0,A="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-N:0,P="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,j="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)R="start"===s?O:"end"===s?O-g:"nearest"===s?FJ(y,y+g,g,h,N,y+O,y+O+v,v):O-g/2,I="start"===l?k:"center"===l?k-m/2:"end"===l?k-m:FJ(b,b+m,m,d,D,b+k,b+k+w,w),R=Math.max(0,R+y),I=Math.max(0,I+b);else{R="start"===s?O-r-h:"end"===s?O-i+N+A:"nearest"===s?FJ(r,i,t,h,N+A,O,O+v,v):O-(r+t/2)+A/2,I="start"===l?k-c-d:"center"===l?k-(c+n/2)+$/2:"end"===l?k-o+D+$:FJ(c,o,n,d,D+$,k,k+w,w);const{scrollLeft:a,scrollTop:u}=e;R=Math.max(0,Math.min(u+R/j,e.scrollHeight-t/j+A)),I=Math.max(0,Math.min(a+I/P,e.scrollWidth-n/P+$)),O+=u-R,k+=a-I}C.push({el:e,top:R,left:I})}return C},HJ=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};XT={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=XT.F1&&t<=XT.F12)return!1;switch(t){case XT.ALT:case XT.CAPS_LOCK:case XT.CONTEXT_MENU:case XT.CTRL:case XT.DOWN:case XT.END:case XT.ESC:case XT.HOME:case XT.INSERT:case XT.LEFT:case XT.MAC_FF_META:case XT.META:case XT.NUMLOCK:case XT.NUM_CENTER:case XT.PAGE_DOWN:case XT.PAGE_UP:case XT.PAUSE:case XT.PRINT_SCREEN:case XT.RIGHT:case XT.SHIFT:case XT.UP:case XT.WIN_KEY:case XT.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=XT.ZERO&&e<=XT.NINE)return!0;if(e>=XT.NUM_ZERO&&e<=XT.NUM_MULTIPLY)return!0;if(e>=XT.A&&e<=XT.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case XT.SPACE:case XT.QUESTION_MARK:case XT.NUM_PLUS:case XT.NUM_MINUS:case XT.NUM_PERIOD:case XT.NUM_DIVISION:case XT.SEMICOLON:case XT.DASH:case XT.EQUALS:case XT.COMMA:case XT.PERIOD:case XT.SLASH:case XT.APOSTROPHE:case XT.SINGLE_QUOTE:case XT.OPEN_SQUARE_BRACKET:case XT.BACKSLASH:case XT.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},KT=Bb.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=void 0===d?"x":d,f=e.props,h=e.onClick,m=e.onNoticeClose,g=e.times,b=Ua(Bb.useState(!1),2),y=b[0],v=b[1],w=function(){m(l)};return Bb.useEffect((function(){if(!y&&s>0){var e=setTimeout((function(){w()}),1e3*s);return function(){clearTimeout(e)}}}),[s,y,g]),n="".concat(r,"-notice"),Bb.createElement("div",pa({},f,{ref:t,className:yY(n,i,Si({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},onClick:h}),Bb.createElement("div",{className:"".concat(n,"-content")},c),u&&Bb.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==XT.ENTER||w()},onClick:function(e){e.preventDefault(),e.stopPropagation(),w()}},p))})),qT=Aq.createContext({}),YT=function(e){return Aq.createElement(qT.Provider,{value:{classNames:e.classNames}},e.children)},JT=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=Bb.useContext(qT).classNames,u=t.map((function(e){return{config:e,key:e.key}})),d="function"==typeof a?a(n):a;return Aq.createElement(hJ,pa({key:n,className:yY(r,"".concat(r,"-").concat(n),null==c?void 0:c.list,o),style:i,keys:u,motionAppear:!0},d,{onAllRemoved:function(){s(n)}}),(function(e,t){var n=e.config,o=e.style,i=n.key,a=n.times,s=n.style;return Aq.createElement(KT,pa({},n,{ref:t,prefixCls:r,className:yY(e.className,n.className,null==c?void 0:c.notice),style:xa(xa({},o),s),times:a,key:i,eventKey:i,onNoticeClose:l}))}))},QT=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,d=e.motion,p=e.maxCount,f=e.className,h=e.style,m=e.onAllRemoved,g=e.renderNotifications,b=Ua(Bb.useState([]),2),y=b[0],v=b[1],w=function(e){var t,n=y.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),v((function(t){return t.filter((function(t){return t.key!==e}))}))};return Bb.useImperativeHandle(t,(function(){return{open:function(e){v((function(t){var n,r=wa(t),o=r.findIndex((function(t){return t.key===e.key})),i=xa({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),p>0&&r.length>p&&(r=r.slice(-p)),r}))},close:function(e){w(e)},destroy:function(){v([])}}})),n=Ua(Bb.useState({}),2),r=n[0],o=n[1],Bb.useEffect((function(){var e={};y.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[y]),i=function(e){o((function(t){var n=xa({},t);return(n[e]||[]).length||delete n[e],n}))},a=Bb.useRef(!1),Bb.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==m||m(),a.current=!1)}),[r]),u?(s=Object.keys(r),e_.createPortal(Bb.createElement(Bb.Fragment,null,s.map((function(e){var t=Bb.createElement(JT,{key:e,configList:r[e],placement:e,prefixCls:c,className:null==f?void 0:f(e),style:null==h?void 0:h(e),motion:d,onNoticeClose:w,onAllNoticeRemoved:i});return g?g(t,{prefixCls:c,key:e}):t}))),u)):null})),ZT=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","renderNotifications"],eD=function(){return document.body},tD=0;const UJ={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"},zJ=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:UJ}))})),GJ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:h,zIndexPopup:m,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,v=new nC("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),w=new nC("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},YY(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},WJ=Pl("Message",(e=>{const t=$l(e,{height:150});return[GJ(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));nD=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:r,children:o}=e;return Bb.createElement("div",{className:yY(`${t}-custom-content`,`${t}-${n}`)},r||VJ[n],Bb.createElement("span",null,o))};rD=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:n}=e;const[,r]=WJ(n);return Bb.createElement(YT,{classNames:{list:r,notice:r}},t)},YJ=(e,t)=>{let{prefixCls:n,key:r}=t;return Bb.createElement(qJ,{prefixCls:n,key:r},e)},JJ=Bb.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=KJ,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=Bb.useContext(XY),f=r||u("message"),h=Bb.createElement("span",{className:`${f}-close-x`},Bb.createElement(DJ,{className:`${f}-close-icon`})),[m,g]=ic({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>yY({[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:YJ});return Bb.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:f,message:p}))),g}));let QJ=0;iD=(oD=xa({},Lq)).version,aD=oD.render,sD=oD.unmountComponentAtNode;try{Number((iD||"").split(".")[0])>=18&&(lD=oD.createRoot)}catch(lq){}cD="__rc_react_root__";const ZJ=()=>({height:0,opacity:0}),eQ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},tQ=e=>({height:e?e.offsetHeight:0}),nQ=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,rQ=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:ZJ,onEnterStart:ZJ,onAppearActive:eQ,onEnterActive:eQ,onLeaveStart:tQ,onLeaveActive:ZJ,onAppearEnd:nQ,onEnterEnd:nQ,onLeaveEnd:nQ,motionDeadline:500}},oQ=(e,t,n)=>void 0!==n?n:`${e}-${t}`,iQ=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},aQ=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},sQ=Pl("Wave",(e=>[aQ(e)])),lQ="ant-wave-target",cQ=e=>{function t(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return vc(t)?t:vc(n)?n:vc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:wc(-parseFloat(n))),f(t?r.offsetTop:wc(-parseFloat(o))),m(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>wc(parseFloat(e)))))}const{className:n,target:r,component:o}=e,i=Bb.useRef(null),[a,s]=Bb.useState(null),[l,c]=Bb.useState([]),[u,d]=Bb.useState(0),[p,f]=Bb.useState(0),[h,m]=Bb.useState(0),[g,b]=Bb.useState(0),[y,v]=Bb.useState(!1),w={left:u,top:p,width:h,height:g,borderRadius:l.map((e=>`${e}px`)).join(" ")};if(a&&(w["--wave-color"]=a),Bb.useEffect((()=>{if(r){const e=LC((()=>{t(),v(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{LC.cancel(e),null==n||n.disconnect()}}}),[]),!y)return null;const E=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(lQ));return Bb.createElement(fJ,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;bc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return Bb.createElement("div",{ref:i,className:yY(n,{"wave-quick":E},t),style:w})}))},uQ=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),fc(Bb.createElement(cQ,Object.assign({},t,{target:e})),o)},dQ=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Bb.useContext(XY),i=Bb.useRef(null),a=o("wave"),[,s]=sQ(a),l=function(e,t,n){const{wave:r}=Bb.useContext(XY),[,o,i]=Tl(),a=Dl((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${lQ}`)||s,{showEffect:c}=r||{};(c||uQ)(l,{className:t,token:o,component:n,event:a,hashId:i})})),s=Bb.useRef();return e=>{LC.cancel(s.current),s.current=LC((()=>{a(e)}))}}(i,yY(a,s),r);return Aq.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!iQ(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),Aq.isValidElement(t)?oc(t,{ref:Hs(t)?Ms(t.ref,i):i}):null!=t?t:null},pQ=e=>{const t=Aq.useContext(pJ);return Aq.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},fQ=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},hQ=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},mQ=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},gQ=Pl("Space",(e=>{const t=$l(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[hQ(t),mQ(t),fQ(t)]}),(()=>({})),{resetStyle:!1});uD=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=Bb.useContext(bQ),r=Bb.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return yY(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},vQ=e=>{let{children:t}=e;return Bb.createElement(bQ.Provider,{value:null},t)},wQ=e=>{var{children:t}=e,n=uD(e,["children"]);return Bb.createElement(bQ.Provider,{value:n},t)};dD=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{className:n,style:r,children:o,prefixCls:i}=e,a=yY(`${i}-icon`,n);return Aq.createElement("span",{ref:t,className:a,style:r},o)})),OQ=Bb.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=yY(`${n}-loading-icon`,r);return Aq.createElement(SQ,{prefixCls:n,className:a,style:o,ref:t},Aq.createElement(zJ,{className:i}))})),kQ=()=>({width:0,opacity:0,transform:"scale(0)"}),CQ=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),TQ=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?Aq.createElement(OQ,{prefixCls:t,className:o,style:i}):Aq.createElement(fJ,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:kQ,onAppearActive:CQ,onEnterStart:kQ,onEnterActive:CQ,onLeaveStart:CQ,onLeaveActive:kQ},((e,n)=>{let{className:r,style:a}=e;return Aq.createElement(OQ,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},DQ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),NQ=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},DQ(`${t}-primary`,o),DQ(`${t}-danger`,i)]}},RQ=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},eJ(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},IQ=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),$Q=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),AQ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),PQ=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),jQ=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},IQ(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),LQ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},PQ(e))}),FQ=e=>Object.assign({},LQ(e)),MQ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),BQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FQ(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),IQ(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),jQ(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},IQ(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jQ(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),LQ(e))}),HQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FQ(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),IQ(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),jQ(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},IQ(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),jQ(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),LQ(e))}),UQ=e=>Object.assign(Object.assign({},BQ(e)),{borderStyle:"dashed"}),zQ=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},IQ(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),MQ(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},IQ(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),MQ(e))}),GQ=e=>Object.assign(Object.assign(Object.assign({},IQ(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),MQ(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},MQ(e)),IQ(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),WQ=e=>{const{componentCls:t}=e;return{[`${t}-default`]:BQ(e),[`${t}-primary`]:HQ(e),[`${t}-dashed`]:UQ(e),[`${t}-link`]:zQ(e),[`${t}-text`]:GQ(e),[`${t}-ghost`]:jQ(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},VQ=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:$Q(e)},{[`${r}${r}-round${n}`]:AQ(e)}]},XQ=e=>VQ($l(e,{fontSize:e.contentFontSize})),KQ=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return VQ(t,`${e.componentCls}-sm`)},qQ=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return VQ(t,`${e.componentCls}-lg`)},YQ=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},JQ=e=>{const{paddingInline:t,onlyIconSize:n}=e;return $l(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},QQ=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),ZQ=Pl("Button",(e=>{const t=JQ(e);return[RQ(t),KQ(t),XQ(t),qQ(t),YQ(t),WQ(t),NQ(t)]}),QQ),eZ=iJ(["Button","compact"],(e=>{const t=JQ(e);return[Oc(t),Cc(t)]}),QQ);pD=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:p,rootClassName:f,children:h,icon:m,ghost:g=!1,block:b=!1,htmlType:y="button",classNames:v,style:w={}}=e,E=pD(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:_,direction:S,button:O}=Bb.useContext(XY),k=x("btn",i),[C,T]=ZQ(k),D=Bb.useContext(cJ),N=null!=d?d:D,R=Bb.useContext(EQ),I=Bb.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[$,A]=Bb.useState(I.loading),[P,j]=Bb.useState(!1),L=Ms(t,Bb.createRef()),F=1===Bb.Children.count(h)&&!m&&!xc(a);Bb.useEffect((()=>{let e=null;return I.delay>0?e=setTimeout((()=>{e=null,A(!0)}),I.delay):A(I.loading),function(){e&&(clearTimeout(e),e=null)}}),[I]),Bb.useEffect((()=>{L&&L.current&&!1!==_&&(F&&_Q(L.current.textContent)?P||j(!0):P&&j(!1))}),[L]);const M=t=>{const{onClick:n}=e;$||N?t.preventDefault():null==n||n(t)},B=!1!==_,{compactSize:H,compactItemClassnames:U}=yQ(k,S),z=pQ((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:H)&&void 0!==t?t:R)&&void 0!==n?n:e})),G=z&&{large:"lg",small:"sm",middle:void 0}[z]||"",W=$?"loading":m,V=qs(E,["navigate"]),X=yY(k,T,{[`${k}-${l}`]:"default"!==l&&l,[`${k}-${a}`]:a,[`${k}-${G}`]:G,[`${k}-icon-only`]:!h&&0!==h&&!!W,[`${k}-background-ghost`]:g&&!xc(a),[`${k}-loading`]:$,[`${k}-two-chinese-chars`]:P&&B&&!$,[`${k}-block`]:b,[`${k}-dangerous`]:!!s,[`${k}-rtl`]:"rtl"===S},U,p,f,null==O?void 0:O.className),K=Object.assign(Object.assign({},null==O?void 0:O.style),w),q=yY(null==v?void 0:v.icon,null===(n=null==O?void 0:O.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==O?void 0:O.styles)||void 0===r?void 0:r.icon)||{}),J=m&&!$?Aq.createElement(SQ,{prefixCls:k,className:q,style:Y},m):Aq.createElement(TQ,{existIcon:!!m,prefixCls:k,loading:!!$}),Q=h||0===h?function(e,t){let n=!1;const r=[];return Aq.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),Aq.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Ec(e.type)&&_Q(e.props.children)?oc(e,{children:e.props.children.split("").join(n)}):Ec(e)?_Q(e)?Aq.createElement("span",null,e.split("").join(n)):Aq.createElement("span",null,e):rc(e)?Aq.createElement("span",null,e):e}(e,t)))}(h,F&&B):null;if(void 0!==V.href)return C(Aq.createElement("a",Object.assign({},V,{className:yY(X,{[`${k}-disabled`]:N}),style:K,onClick:M,ref:L}),J,Q));let Z=Aq.createElement("button",Object.assign({},E,{type:y,className:X,style:K,onClick:M,disabled:N,ref:L}),J,Q,U&&Aq.createElement(eZ,{key:"compact",prefixCls:k}));return xc(a)||(Z=Aq.createElement(dQ,{component:"Button",disabled:!!$},Z)),C(Z)},nZ=Bb.forwardRef(tZ);nZ.Group=e=>{const{getPrefixCls:t,direction:n}=Bb.useContext(XY),{prefixCls:r,size:o,className:i}=e,a=dD(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Tl();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=yY(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return Bb.createElement(EQ.Provider,{value:o},Bb.createElement("div",Object.assign({},a,{className:u})))},nZ.__ANT_BUTTON=!0;const rZ=nZ,oZ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=Bb.useRef(!1),p=Bb.useRef(null),[f,h]=Nl(!1),m=function(){null==i||i.apply(void 0,arguments)};return Bb.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),Bb.createElement(rZ,Object.assign({},Tc(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void m();let t;if(s){if(t=u(e),c&&!Dc(t))return d.current=!1,void m(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void m();(e=>{Dc(e)&&(h(!0),e.then((function(){h(!1,!0),m.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},o,{ref:p}),n)},iZ=Aq.createContext({}),{Provider:aZ}=iZ,sZ=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=Bb.useContext(iZ);return o?Aq.createElement(oZ,{isSilent:r,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},lZ=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=Bb.useContext(iZ);return Aq.createElement(oZ,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};fD=Bb.createContext(null),hD=[],gD="rc-util-locker-".concat(Date.now()),bD=0,yD=!1,vD=function(e){return!1!==e&&(Ra()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wD=Bb.createContext({}),ED=0;const cZ=Bb.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));xD={width:0,height:0,overflow:"hidden",outline:"none"},_D=Aq.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,d=e.ariaId,p=e.footer,f=e.closable,h=e.closeIcon,m=e.onClose,g=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,w=e.onMouseDown,E=e.onMouseUp,x=e.visible,_=e.forceRender,S=e.width,O=e.height,k=Bs(e.holderRef,Aq.useContext(wD).panel),C=Bb.useRef(),T=Bb.useRef();return Aq.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=C.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===T.current?C.current.focus():e||t!==C.current||T.current.focus()}}})),n={},void 0!==S&&(n.width=S),void 0!==O&&(n.height=O),p&&(r=Aq.createElement("div",{className:"".concat(s,"-footer")},p)),u&&(o=Aq.createElement("div",{className:"".concat(s,"-header")},Aq.createElement("div",{className:"".concat(s,"-title"),id:d},u))),f&&(i=Aq.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(s,"-close")},h||Aq.createElement("span",{className:"".concat(s,"-close-x")}))),a=Aq.createElement("div",{className:"".concat(s,"-content")},i,o,Aq.createElement("div",pa({className:"".concat(s,"-body"),style:b},y),g),r),Aq.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:k,style:xa(xa({},c),n),className:yY(s,l),onMouseDown:w,onMouseUp:E},Aq.createElement("div",{tabIndex:0,ref:C,style:xD,"aria-hidden":"true"}),Aq.createElement(cZ,{shouldUpdate:x||_},v?v(a):a),Aq.createElement("div",{tabIndex:0,ref:T,style:xD,"aria-hidden":"true"}))})),(SD=Bb.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=h.current).getBoundingClientRect()).left,top:t.top}).left+=jc(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=jc(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,h=Bb.useRef(),m=Ua(Bb.useState(),2),g=m[0],b=m[1],y={};return g&&(y.transformOrigin=g),Bb.createElement(fJ,{visible:s,onVisibleChanged:p,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:h},(function(n,s){var l=n.className;return Bb.createElement(_D,pa({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:s,style:xa(xa(xa({},n.style),i),y),className:yY(a,l)}))}))}))).displayName="Content",(OD=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=e.panelRef,l=Ua(Bb.useState(t),2),c=l[0],u=l[1],d=Bb.useMemo((function(){return{panel:s}}),[s]);return Bb.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?Bb.createElement(wD.Provider,{value:d},Bb.createElement($c,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},Bb.createElement(Fc,pa({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null}).displayName="Dialog",kD="RC_FORM_INTERNAL_HOOKS",TD=Bb.createContext({getFieldValue:CD=function(){Ta(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:CD,getFieldError:CD,getFieldWarning:CD,getFieldsError:CD,isFieldsTouched:CD,isFieldTouched:CD,isFieldValidating:CD,isFieldsValidating:CD,resetFields:CD,setFields:CD,setFieldValue:CD,setFieldsValue:CD,validateFields:CD,submit:CD,getInternalHooks:function(){return CD(),{dispatch:CD,initEntityValue:CD,registerField:CD,useSubscribe:CD,setInitialValues:CD,destroyForm:CD,setCallbacks:CD,registerWatch:CD,getFields:CD,setValidateMessages:CD,setPreserve:CD,getInitialValue:CD}}}),DD=Bb.createContext(null),ND=/%[sdj%]/g,RD=function(){},ID=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,zc(n,r),t}(Wc(Error)),PD=function(){var e,t,n,r,o,i,a,s,l,c,u;return AD||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,AD=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[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"]*)?$)',"i"))},jD=/^(([^<>()\[\]\\.,;:\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,}))$/,LD=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,FD={integer:function(e){return FD.number(e)&&parseInt(e,10)===e},float:function(e){return FD.number(e)&&!FD.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(lq){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!FD.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(jD)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(PD())},hex:function(e){return"string"==typeof e&&!!e.match(LD)}},MD=function(e,t,n,r,o){var i;e.required&&void 0===t?$D(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?FD[i](t)||r.push(Xc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Xc(o.messages.types[i],e.fullField,e.type))},BD="enum",HD={required:$D=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Kc(t,i||e.type)||r.push(Xc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Xc(o.messages.whitespace,e.fullField))},type:MD,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Xc(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Xc(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Xc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[BD]=Array.isArray(e[BD])?e[BD]:[],-1===e[BD].indexOf(t)&&r.push(Xc(o.messages[BD],e.fullField,e[BD].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Xc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Xc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},zD={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"string")&&!e.required)return n();HD.required(e,t,r,i,o,"string"),Kc(t,"string")||(HD.type(e,t,r,i,o),HD.range(e,t,r,i,o),HD.pattern(e,t,r,i,o),!0===e.whitespace&&HD.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&HD.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&(HD.type(e,t,r,i,o),HD.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&HD.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),Kc(t)||HD.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&(HD.type(e,t,r,i,o),HD.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&(HD.type(e,t,r,i,o),HD.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();HD.required(e,t,r,i,o,"array"),null!=t&&(HD.type(e,t,r,i,o),HD.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&HD.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o),void 0!==t&&HD.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"string")&&!e.required)return n();HD.required(e,t,r,i,o),Kc(t,"string")||HD.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"date")&&!e.required)return n();HD.required(e,t,r,a,o),Kc(t,"date")||(i=t instanceof Date?t:new Date(t),HD.type(e,i,r,a,o),i&&HD.range(e,i.getTime(),r,a,o))}n(a)},url:UD=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,i)&&!e.required)return n();HD.required(e,t,r,a,o,i),Kc(t,i)||HD.type(e,t,r,a,o)}n(a)},hex:UD,email:UD,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;HD.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();HD.required(e,t,r,i,o)}n(i)}},GD=Qc(),WD=function(){function e(e){this.rules=null,this._messages=GD,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new 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]}))},t.messages=function(e){return e&&(this._messages=Jc(Qc(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===GD&&(s=Qc()),Jc(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=Hc({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:Hc({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,d;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);qc(a,n,(function(e){return r(e),e.length?i(new ID(e,Vc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new ID(u,Vc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?qc(r,n,d):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,d)}))})),d.catch((function(e){return e})),d)}(l,i,(function(t,n){function r(e,t){return Hc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,d,p,f,h;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),d=s.map(Yc(l,o)),i.first&&d.length)return c[l.field]=1,n(d);if(u){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(Yc(l,o)):i.error&&(d=[i.error(l,Xc(i.messages.required,l.field))]),n(d);p={},l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=Hc({},p,t.rule.fields),f={},Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(h=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(d){console,i.suppressValidatorError||setTimeout((function(){throw d}),0),a(d.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t0&&void 0!==e?e:JD;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?JD:t;e.rule.warningOnly?o.push.apply(o,wa(r)):n.push.apply(n,wa(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=JD,r.warnings=JD,r.triggerMetaEvent(),r.reRender()),l})),Si(Ps(r),"isFieldValidating",(function(){return!!r.validatePromise})),Si(Ps(r),"isFieldTouched",(function(){return r.touched})),Si(Ps(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(kD).getInitialValue)(r.getNamePath())})),Si(Ps(r),"getErrors",(function(){return r.errors})),Si(Ps(r),"getWarnings",(function(){return r.warnings})),Si(Ps(r),"isListField",(function(){return r.props.isListField})),Si(Ps(r),"isList",(function(){return r.props.isList})),Si(Ps(r),"isPreserve",(function(){return r.props.preserve})),Si(Ps(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Si(Ps(r),"getOnlyChild",(function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),xa(xa({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ls(e)).length&&Bb.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Si(Ps(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Qs(e||t(!0),n)})),Si(Ps(r),"getControlled",(function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getFieldsValue,h=(0,u.getInternalHooks)(kD).dispatch,m=r.getValue(),g=c||function(e){return Si({},l,e)},b=t[o],y=xa(xa({},t),g(m));return y[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))})),Si(this,"timeoutId",null),Si(this,"warningUnhooked",(function(){})),Si(this,"updateStore",(function(e){n.store=e})),Si(this,"getFieldEntities",(function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Si(this,"getFieldsMap",(function(e){var t=arguments.length>0&&void 0!==e&&e,r=new eN;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r})),Si(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=iu(e);return t.get(n)||{INVALIDATE_NAME_PATH:iu(e)}}))})),Si(this,"getFieldsValue",(function(e,t){var r,o,i,a,s;return n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===xi(e)&&(i=e.strict,o=e.filter),!0!==r||o?(a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[],a.forEach((function(e){var t,n,a,l,c,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;o?(c="getMeta"in e?e.getMeta():null,o(c)&&s.push(u)):s.push(u)})),au(n.store,s.map(iu))):n.store})),Si(this,"getFieldValue",(function(e){n.warningUnhooked();var t=iu(e);return Qs(n.store,t)})),Si(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:iu(e[n]),errors:[],warnings:[]}}))})),Si(this,"getFieldError",(function(e){var t;return n.warningUnhooked(),t=iu(e),n.getFieldsError([t])[0].errors})),Si(this,"getFieldWarning",(function(e){var t;return n.warningUnhooked(),t=iu(e),n.getFieldsError([t])[0].warnings})),Si(this,"isFieldsTouched",(function(){var e,t,r,o,i,a,s,l,c,u,d,p;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},i=new eN,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?Ta(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?Ta(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),o.skipExist&&void 0!==a||n.updateStore(el(n.store,t,wa(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,wa(wa(n).map((function(e){return e.entity}))))}))):r=a,t(r)})),Si(this,"resetFields",(function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(nl(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(iu)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(el(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Si(this,"setFields",(function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=Oi(e,tN),a=iu(o);r.push(a),"value"in i&&n.updateStore(el(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Si(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=xa(xa({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Si(this,"initEntityValue",(function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===Qs(n.store,t)&&n.updateStore(el(n.store,t,r)))})),Si(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Si(this,"registerField",(function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!lu(e.getNamePath(),t)}))&&(n.updateStore(el(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}})),Si(this,"dispatch",(function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}})),Si(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=xa(xa({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Si(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(wa(r))}),r})),Si(this,"updateValue",(function(e,t){var r,o,i=iu(e),a=n.store;n.updateStore(el(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(au(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(wa(r)))})),Si(this,"setFieldsValue",(function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=nl(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Si(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Si(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new eN;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=iu(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Si(this,"triggerOnFieldsChange",(function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new eN,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return su(e,t.name)}))).length&&a(i,r))})),Si(this,"validateFields",(function(e,t){var r,o,i,a,s,l,c,u,d,p,f,h;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,i=t):i=e,s=(a=!!o)?o.map(iu):[],l=[],c=String(Date.now()),u=new Set,d=null===(r=i)||void 0===r?void 0:r.recursive,n.getFieldEntities(!0).forEach((function(e){var t,r;a||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(t=e.getNamePath(),u.add(t.join(c)),a&&!su(s,t,d)||(r=e.validateRules(xa({validateMessages:xa(xa({},XD),n.validateMessages)},i)),l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.errors;e.rule.warningOnly?o.push.apply(o,wa(t)):r.push.apply(r,wa(t))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))))})),p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l),n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)})),(f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==p})}))).catch((function(e){return e})),h=s.filter((function(e){return u.has(e.join(c))})),n.triggerOnFieldsChange(h),f})),Si(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t})),rN=Bb.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oN=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=Bb.useContext(rN),a=Bb.useRef({});return Bb.createElement(rN.Provider,{value:xa(xa({},i),{},{validateMessages:xa(xa({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=xa(xa({},a.current),{},Si({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=xa({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},iN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],aN=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,d=e.form,p=e.preserve,f=e.children,h=e.component,m=void 0===h?"form":h,g=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,w=e.onFieldsChange,E=e.onFinish,x=e.onFinishFailed,_=Oi(e,iN),S=Bb.useContext(rN),O=Ua(mu(d),1)[0],k=O.getInternalHooks(kD),C=k.useSubscribe,T=k.setInitialValues,D=k.setCallbacks,N=k.setValidateMessages,R=k.setPreserve,I=k.destroyForm;return Bb.useImperativeHandle(t,(function(){return O})),Bb.useEffect((function(){return S.registerForm(l,O),function(){S.unregisterForm(l)}}),[S,O,l]),N(xa(xa({},S.validateMessages),g)),D({onValuesChange:v,onFieldsChange:function(e){if(S.triggerFormChange(l,e),w){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),dZ=Bb.createContext(null),pZ=e=>{const t=qs(e,["prefixCls"]);return Bb.createElement(oN,Object.assign({},t))},fZ=Bb.createContext({prefixCls:""}),hZ=Bb.createContext({}),mZ=e=>{let{children:t,status:n,override:r}=e;const o=Bb.useContext(hZ),i=Bb.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return Bb.createElement(hZ.Provider,{value:i},t)},gZ=Bb.createContext({add:yu,remove:yu}),bZ=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=Bb.useContext(iZ);return Aq.createElement(rZ,Object.assign({onClick:n},e),t)},yZ=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=Bb.useContext(iZ);return Aq.createElement(rZ,Object.assign({},Tc(n),{loading:e,onClick:o},t),r)},vZ=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=DY("Modal",rl()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},p=Aq.useMemo((()=>d),wa(Object.values(d)));let f;return"function"==typeof c||void 0===c?(f=Aq.createElement(aZ,{value:p},Aq.createElement(bZ,null),Aq.createElement(yZ,null)),"function"==typeof c&&(f=c(f,{OkBtn:yZ,CancelBtn:bZ}))):f=c,Aq.createElement(lJ,{disabled:!1},f)},wZ=e=>({animationDuration:e,animationFillMode:"both"}),EZ=e=>({animationDuration:e,animationFillMode:"both"}),xZ=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},wZ(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},EZ(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},_Z=new nC("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),SZ=new nC("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),OZ=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[xZ(o,_Z,SZ,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},kZ=new nC("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CZ=new nC("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),TZ=new nC("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DZ=new nC("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),NZ=new nC("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RZ=new nC("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),IZ={"move-up":{inKeyframes:new nC("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 nC("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:kZ,outKeyframes:CZ},"move-left":{inKeyframes:TZ,outKeyframes:DZ},"move-right":{inKeyframes:NZ,outKeyframes:RZ}},$Z=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=IZ[t];return[xZ(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},AZ=new nC("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),PZ=new nC("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jZ=new nC("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),LZ=new nC("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),FZ=new nC("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),MZ=new nC("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),BZ=new nC("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),HZ=new nC("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UZ={"slide-up":{inKeyframes:AZ,outKeyframes:PZ},"slide-down":{inKeyframes:jZ,outKeyframes:LZ},"slide-left":{inKeyframes:FZ,outKeyframes:MZ},"slide-right":{inKeyframes:BZ,outKeyframes:HZ}},zZ=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UZ[t];return[xZ(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},GZ=new nC("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),WZ=new nC("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),VZ=new nC("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XZ=new nC("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),KZ=new nC("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qZ=new nC("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),YZ=new nC("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JZ=new nC("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QZ=new nC("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ZZ=new nC("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),e0=new nC("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),t0=new nC("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),n0={zoom:{inKeyframes:GZ,outKeyframes:WZ},"zoom-big":{inKeyframes:VZ,outKeyframes:XZ},"zoom-big-fast":{inKeyframes:VZ,outKeyframes:XZ},"zoom-left":{inKeyframes:YZ,outKeyframes:JZ},"zoom-right":{inKeyframes:QZ,outKeyframes:ZZ},"zoom-up":{inKeyframes:KZ,outKeyframes:qZ},"zoom-down":{inKeyframes:e0,outKeyframes:t0}},r0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=n0[t];return[xZ(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},o0=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),i0=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Eu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Eu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:OZ(e)}]},a0=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},YY(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},eJ(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},s0=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},l0=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},c0=e=>{const t=e.padding;return $l(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},u0=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),d0=Pl("Modal",(e=>{const t=c0(e);return[a0(t),l0(t),i0(t),e.wireframe&&s0(t),r0(t,"zoom")]}),u0);let p0;lN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{p0={x:e.pageX,y:e.pageY},setTimeout((()=>{p0=null}),100)}),!0);const f0=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=Bb.useContext(XY),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:h,closable:m,focusTriggerAfterClose:g=!0,style:b,visible:y,width:v=520,footer:w}=e,E=lN(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),x=r("modal",s),_=r(),[S,O]=d0(x),k=yY(d,{[`${x}-centered`]:!!p,[`${x}-wrap-rtl`]:"rtl"===o}),C=null!==w&&Bb.createElement(vZ,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[T,D]=Mc(m,h,(e=>wu(x,e)),Bb.createElement(DJ,{className:`${x}-close-icon`}),!0),N=vu(`.${x}-content`);return S(Bb.createElement(vQ,null,Bb.createElement(mZ,{status:!0,override:!0},Bb.createElement(OD,Object.assign({width:v},E,{getContainer:void 0===f?n:f,prefixCls:x,rootClassName:yY(O,c),wrapClassName:k,footer:C,visible:null!=u?u:y,mousePosition:null!==(t=E.mousePosition)&&void 0!==t?t:p0,onClose:a,closable:T,closeIcon:D,focusTriggerAfterClose:g,transitionName:oQ(_,"zoom",e.transitionName),maskTransitionName:oQ(_,"fade",e.maskTransitionName),className:yY(O,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b),panelRef:N})))))},h0=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a}=e,s=`${t}-confirm`,l=Math.round(n*r),c=Math.round(i*a);return{[s]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${s}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${s}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(l-o)/2}},[`${s}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${s}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${s}-error ${s}-body > ${e.iconCls}`]:{color:e.colorError},[`${s}-warning ${s}-body > ${e.iconCls},\n ${s}-confirm ${s}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${s}-info ${s}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${s}-success ${s}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},m0=iJ(["Modal","confirm"],(e=>{const t=c0(e);return[h0(t)]}),u0,{order:-1e3});cN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:p,iconPrefixCls:f,theme:h,bodyStyle:m,closable:g=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v,onConfirm:w}=e,E=`${u}-confirm`,x=e.width||416,_=e.style||{},S=void 0===e.mask||e.mask,O=void 0!==e.maskClosable&&e.maskClosable,k=yY(E,`${E}-${e.type}`,{[`${E}-rtl`]:"rtl"===c},e.className);return Bb.createElement(EJ,{prefixCls:p,iconPrefixCls:f,direction:c,theme:h},Bb.createElement(f0,{prefixCls:u,className:k,wrapClassName:yY({[`${E}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==w||w(!1)},open:o,title:"",footer:null,transitionName:oQ(p||"","zoom",e.transitionName),maskTransitionName:oQ(p||"","fade",e.maskTransitionName),mask:S,maskClosable:O,maskStyle:l,style:_,bodyStyle:m,width:x,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:g,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},Bb.createElement(xu,Object.assign({},e,{confirmPrefixCls:E}))))},b0=[];uN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{afterClose:r,config:o}=e,i=dN(e,["afterClose","config"]);const[a,s]=Bb.useState(!0),[l,c]=Bb.useState(o),{direction:u,getPrefixCls:d}=Bb.useContext(XY),p=d("modal"),f=d(),h=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(wa(t.slice(1))))};Bb.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[g]=DY("Modal",SY.Modal);return Bb.createElement(g0,Object.assign({prefixCls:p,rootPrefixCls:f},l,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==g?void 0:g.cancelText)},i))},w0=Bb.forwardRef(v0);let E0=0;const x0=Bb.memo(Bb.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=Bb.useState([]);return[e,Bb.useCallback((e=>(t((t=>[].concat(wa(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return Bb.useImperativeHandle(t,(()=>({patchElement:r})),[]),Bb.createElement(Bb.Fragment,null,n)}))),_0=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new nC("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new nC("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new nC("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},S0=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:b,lineHeight:y,width:v,notificationIconSize:w,colorText:E}=e,x=`${n}-notice`,_=new nC("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:v},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new nC("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),O={position:"relative",width:v,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:b,color:E},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.marginSM+w,fontSize:b},[`${x}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[x]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[x]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:_,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),_0(e)),{"&-rtl":{direction:"rtl",[`${x}-btn`]:{float:"left"}}})},{[n]:{[x]:Object.assign({},O)}},{[`${x}-pure-panel`]:Object.assign(Object.assign({},O),{margin:0})}]},O0=Pl("Notification",(e=>{const t=$l(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[S0(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));pN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=Bb.createElement("span",{className:`${t}-icon`},n):r&&(l=Bb.createElement(k0[r]||null,{className:yY(`${t}-icon`,`${t}-icon-${r}`)})),Bb.createElement("div",{className:yY({[`${t}-with-icon`]:l}),role:s},l,Bb.createElement("div",{className:`${t}-message`},o),Bb.createElement("div",{className:`${t}-description`},i),a&&Bb.createElement("div",{className:`${t}-btn`},a))};fN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:n}=e;const[,r]=O0(n);return Bb.createElement(YT,{classNames:{list:r,notice:r}},t)},N0=(e,t)=>{let{prefixCls:n,key:r}=t;return Bb.createElement(D0,{prefixCls:n,key:r},e)},R0=Bb.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,notification:d}=Bb.useContext(XY),p=o||c("notification"),[f,h]=ic({prefixCls:p,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>yY({[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:Nu(p),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==u?void 0:u())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:N0});return Bb.useImperativeHandle(t,(()=>Object.assign(Object.assign({},f),{prefixCls:p,notification:d}))),h})),I0=Aq.createContext({}),$0=Aq.createContext({message:{},notification:{},modal:{}}),A0=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},P0=Pl("App",(e=>[A0(e)])),j0=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=Bb.useContext(XY),c=l("app",t),[u,d]=P0(c),p=yY(d,c,r,o),f=Bb.useContext(I0),h=Aq.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[m,g]=lc(h.message),[b,y]=Iu(h.notification),[v,w]=Du(),E=Aq.useMemo((()=>({message:m,notification:b,modal:v})),[m,b,v]);return u(Aq.createElement($0.Provider,{value:E},Aq.createElement(I0.Provider,{value:h},Aq.createElement("div",{className:p,style:s},w,g,y,n))))};j0.useApp=()=>Aq.useContext($0);const L0=j0,F0=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};hN=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,Bb.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:Bb.createElement("span",{className:yY(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},mN=Bb.createContext(null),gN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],bN=void 0,(yN=Bb.forwardRef(Pu)).displayName="Item",vN=Aq.createContext(null),wN=["component"],EN=["className"],xN=["className"],_N=function(e,t){var n,r,o,i,a,s,l,c=Bb.useContext(vN);return c?(i=c.className,a=Oi(c,EN),s=e.className,l=Oi(e,xN),Bb.createElement(vN.Provider,{value:null},Bb.createElement(yN,pa({ref:t,className:yY(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=Oi(e,wN),Bb.createElement(r,pa({},o,{ref:t})))},(SN=Bb.forwardRef(_N)).displayName="RawItem",ON=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],kN="responsive",CN="invalidate",(TN=Bb.forwardRef(Fu)).displayName="Overflow",TN.Item=SN,TN.RESPONSIVE=kN,TN.INVALIDATE=CN,(DN=Bb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,p=e.value,f=e.maxLength,h=e.onKeyDown,m=e.onMouseDown,g=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,w=e.open,E=e.attrs,x=e.inputElement||Bb.createElement("input",null),_=x.ref,S=x.props,O=S.onKeyDown,k=S.onChange,C=S.onMouseDown,T=S.onCompositionStart,D=S.onCompositionEnd,N=S.style;return Bb.cloneElement(x,xa(xa(xa({type:"search"},S),{},{id:i,ref:Ms(t,_),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:yY("".concat(o,"-selection-search-input"),null===(n=x)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?d:void 0},E),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:xa(xa({},N),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),O&&O(e)},onMouseDown:function(e){m(e),C&&C(e)},onChange:function(e){g(e),k&&k(e)},onCompositionStart:function(e){y(e),T&&T(e)},onCompositionEnd:function(e){v(e),D&&D(e)},onPaste:b}))}))).displayName="Input",NN="undefined"!=typeof window&&window.document&&window.document.documentElement,RN=NN,IN=function(e){e.preventDefault(),e.stopPropagation()},$N=function(e){function t(e,t,n,r,o){return Bb.createElement("span",{className:yY("".concat(U,"-item"),Si({},"".concat(U,"-item-disabled"),n)),title:Hu(e)},Bb.createElement("span",{className:"".concat(U,"-item-content")},t),r&&Bb.createElement(hN,{className:"".concat(U,"-item-remove"),onMouseDown:IN,onClick:o,customizeIcon:E},"ร—"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,h=e.disabled,m=e.mode,g=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,w=e.tabIndex,E=e.removeIcon,x=e.maxTagCount,_=e.maxTagTextLength,S=e.maxTagPlaceholder,O=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,C=e.onToggleOpen,T=e.onRemove,D=e.onInputChange,N=e.onInputPaste,R=e.onInputKeyDown,I=e.onInputMouseDown,$=e.onInputCompositionStart,A=e.onInputCompositionEnd,P=Bb.useRef(null),j=Ua(Bb.useState(0),2),L=j[0],F=j[1],M=Ua(Bb.useState(!1),2),B=M[0],H=M[1],U="".concat(s,"-selection"),z=c||"multiple"===m&&!1===d||"tags"===m?u:"",G="tags"===m||"multiple"===m&&!1===d||g&&(c||B);return o=function(){F(P.current.scrollWidth)},i=[z],RN?Bb.useLayoutEffect(o,i):Bb.useEffect(o,i),n=Bb.createElement("div",{className:"".concat(U,"-search"),style:{width:L},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},Bb.createElement(DN,{ref:p,open:c,prefixCls:s,id:a,inputElement:null,disabled:h,autoFocus:b,autoComplete:y,editable:G,activeDescendantId:v,value:z,onKeyDown:R,onMouseDown:I,onChange:D,onPaste:N,onCompositionStart:$,onCompositionEnd:A,tabIndex:w,attrs:nc(e,!0)}),Bb.createElement("span",{ref:P,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},z,"ย ")),r=Bb.createElement(TN,{prefixCls:"".concat(U,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!h&&!o,l=i;return"number"==typeof _&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>_&&(l="".concat(n.slice(0,_),"..."))),r=function(t){t&&t.stopPropagation(),T(e)},"function"==typeof k?function(e,t,n,r,o){return Bb.createElement("span",{onMouseDown:function(e){IN(e),C(!c)}},k({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof O?O(e):O;return t({title:n},n,!1)},suffix:n,itemKey:Uu,maxCount:x}),Bb.createElement(Bb.Fragment,null,r,!l.length&&!z&&Bb.createElement("span",{className:"".concat(U,"-placeholder")},f))},AN=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,d=e.activeDescendantId,p=e.mode,f=e.open,h=e.values,m=e.placeholder,g=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,w=e.maxLength,E=e.onInputKeyDown,x=e.onInputMouseDown,_=e.onInputChange,S=e.onInputPaste,O=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,T=Ua(Bb.useState(!1),2),D=T[1],N="combobox"===p,R=N||b,I=h[0],$=y||"";return N&&v&&!T[0]&&($=v),Bb.useEffect((function(){N&&D(!1)}),[N,v]),t=!("combobox"!==p&&!f&&!b||!$),n=void 0===C?Hu(I):C,r=function(){if(I)return null;var e=t?{visibility:"hidden"}:void 0;return Bb.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},m)},Bb.createElement(Bb.Fragment,null,Bb.createElement("span",{className:"".concat(i,"-selection-search")},Bb.createElement(DN,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:R,activeDescendantId:d,value:$,onKeyDown:E,onMouseDown:x,onChange:function(e){D(!0),_(e)},onPaste:S,onCompositionStart:O,onCompositionEnd:k,tabIndex:g,attrs:nc(e,!0),maxLength:N?w:void 0})),!N&&I?Bb.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},I.label):null,r())},PN=function(e,t){var n,r,o,i,a,s,l,c,u,d,p=Bb.useRef(null),f=Bb.useRef(!1),h=e.prefixCls,m=e.open,g=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,w=e.onSearch,E=e.onSearchSubmit,x=e.onToggleOpen,_=e.onInputKeyDown,S=e.domRef;return Bb.useImperativeHandle(t,(function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}})),n=Ua(Au(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==XT.UP&&t!==XT.DOWN||e.preventDefault(),_&&_(e),t!==XT.ENTER||"tags"!==g||f.current||m||null==E||E(e.target.value),[XT.ESC,XT.SHIFT,XT.BACKSPACE,XT.TAB,XT.WIN_KEY,XT.ALT,XT.META,XT.WIN_KEY_RIGHT,XT.CTRL,XT.SEMICOLON,XT.EQUALS,XT.CAPS_LOCK,XT.CONTEXT_MENU,XT.F1,XT.F2,XT.F3,XT.F4,XT.F5,XT.F6,XT.F7,XT.F8,XT.F9,XT.F10,XT.F11,XT.F12].includes(t)||x(!0)},a=function(){o(!0)},s=Bb.useRef(null),l=function(e){!1!==w(e,!0,f.current)&&x(!0)},c=function(e){e.target!==p.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){p.current.focus()})):p.current.focus())},u=function(e){var t=r();e.target===p.current||t||"combobox"===g||e.preventDefault(),("combobox"===g||b&&t)&&m||(m&&!1!==v&&w("",!0,!1),x())},d=Bb.createElement("multiple"===g||"tags"===g?$N:AN,pa({},e,{inputRef:p,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==g&&l(e.target.value)}})),Bb.createElement("div",{ref:S,className:"".concat(h,"-selector"),onClick:c,onMouseDown:u},d)},(jN=Bb.forwardRef(PN)).displayName="Selector",LN=Bb.createContext(null),FN=[],MN="rc-util-locker-".concat(Date.now()),BN=0,HN=function(e){return!1!==e&&(Ra()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},UN=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_=e.open,S=e.autoLock,O=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Ua(Bb.useState(_),2),a=i[1],s=i[0]||_,Bb.useEffect((function(){(r||_)&&a(_)}),[_,r]),c=(l=Ua(Bb.useState((function(){return HN(O)})),2))[0],u=l[1],Bb.useEffect((function(){var e=HN(O);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Ua(Bb.useState((function(){return Ra()?document.createElement("div"):null})),1)[0],o=Bb.useRef(!1),i=Bb.useContext(LN),a=Ua(Bb.useState(FN),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(wa(t))}))});return Ek((function(){return e?i?i(t):t():n(),n}),[e]),Ek((function(){s.length&&(s.forEach((function(e){return e()})),l(FN))}),[s]),[r,c]}(s&&!c),f=(p=Ua(d,2))[0],h=p[1],m=null!=c?c:f,w=S&&_&&Ra()&&(m===f||m===document.body),E=!!w,x=Ua(Bb.useState((function(){return BN+=1,"".concat(MN,"_").concat(BN)})),1)[0],Ek((function(){var e,t;return E?(e=Ic(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ma("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),x)):Fa(x),function(){Fa(x)}}),[E,x]),g=null,o&&Hs(o)&&t&&(g=o.ref),b=Bs(g,t),s&&Ra()&&void 0!==c?(y=!1===m||false,v=o,t&&(v=Bb.cloneElement(o,{ref:b})),Bb.createElement(LN.Provider,{value:h},y?v:e_.createPortal(v,m))):null})),zN=Bb.createContext(null),GN=Bb.memo((function(e){return e.children}),(function(e,t){return t.cache})),WN=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,d=e.prefixCls,p=e.style,f=e.target,h=e.onVisibleChanged,m=e.open,g=e.keepDom,b=e.onClick,y=e.mask,v=e.arrow,w=e.arrowPos,E=e.align,x=e.motion,_=e.maskMotion,S=e.forceRender,O=e.getPopupContainer,k=e.autoDestroy,C=e.portal,T=e.zIndex,D=e.onMouseEnter,N=e.onMouseLeave,R=e.onPointerEnter,I=e.ready,$=e.offsetX,A=e.offsetY,P=e.offsetR,j=e.offsetB,L=e.onAlign,F=e.onPrepare,M=e.stretch,B=e.targetWidth,H=e.targetHeight,U="function"==typeof c?c():c,z=m||g,G=(null==O?void 0:O.length)>0,W=Ua(Bb.useState(!O||!G),2),V=W[0],X=W[1];return Ek((function(){!V&&G&&f&&X(!0)}),[V,G,f]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!I&&m||(o=E.points,s=(a=null==(i=E._experimental)?void 0:i.dynamicInset)&&"b"===o[0][0],a&&"r"===o[0][1]?(r.right=P,r.left=n):(r.left=$,r.right=n),s?(r.bottom=j,r.top=n):(r.top=A,r.bottom=n)),l={},M&&(M.includes("height")&&H?l.height=H:M.includes("minHeight")&&H&&(l.minHeight=H),M.includes("width")&&B?l.width=B:M.includes("minWidth")&&B&&(l.minWidth=B)),m||(l.pointerEvents="none"),Bb.createElement(C,{open:S||z,getContainer:O&&function(){return O(f)},autoDestroy:k},Bb.createElement(rd,{prefixCls:d,open:m,zIndex:T,mask:y,motion:_}),Bb.createElement(IC,{onResize:L,disabled:!m},(function(e){return Bb.createElement(fJ,pa({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(d,"-hidden")},x,{onAppearPrepare:F,onEnterPrepare:F,visible:m,onVisibleChanged:function(e){var t;null==x||null===(t=x.onVisibleChanged)||void 0===t||t.call(x,e),h(e)}}),(function(n,o){var i=n.style,a=yY(d,n.className,u);return Bb.createElement("div",{ref:Ms(e,t,o),className:a,style:xa(xa(xa(xa({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:T},p),onMouseEnter:D,onMouseLeave:N,onPointerEnter:R,onClick:b},v&&Bb.createElement(nd,{prefixCls:d,arrow:v,arrowPos:w,align:E}),Bb.createElement(GN,{cache:!m},U))}))})))):null})),VN=Bb.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Hs(n),i=Bs(Bb.useCallback((function(e){Fs(t,r?r(e):e)}),[r]),n.ref);return o?Bb.cloneElement(n,{ref:i}):n})),XN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const M0=function(e){var t=arguments.length>0&&void 0!==e?e:UN,n=Bb.forwardRef((function(e,n){function r(e,t,n,r){y[e]=function(o){var i,a,s,l;for(null==r||r(o),N(t,n),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&void 0!==t?t:0;D(),0===n?C(e):T.current=setTimeout((function(){C(e)}),1e3*n)},Bb.useEffect((function(){return D}),[]),R=Ua(Bb.useState(!1),2),I=R[0],$=R[1],Ek((function(e){e&&!S||$(!0)}),[S]),A=Ua(Bb.useState(null),2),P=A[0],j=A[1],F=(L=Ua(Bb.useState([0,0]),2))[0],M=L[1],B=function(e){M([e.clientX,e.clientY])},H=function(e,t,n,r,o,i,a){var s,l,c,u=Ua(Bb.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),d=u[0],p=u[1],f=Bb.useRef(0),h=Bb.useMemo((function(){return t?Xu(t):[]}),[t]),m=Bb.useRef({});return e||(m.current={}),s=Dl((function(){var s,l,c,u,d,f,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P,j,L,F,M,B,H,U,z,G,W,V,X,K,q,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,me,ge,be,ye,ve,we,Ee,xe,_e,Se,Oe,ke,Ce,Te,De,Ne,Re,Ie,$e,Ae,Pe,je,Le,Fe,Me,Be,He,Ue,ze,Ge,We,Ve,Xe,Ke,qe,Ye;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:H,o=k.x+e,i=k.y+t,a=o+R,s=i+N,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),d=Math.min(s,r.bottom);return Math.max(0,(u-l)*(d-c))},Je=function(){we=(ve=k.y+ae)+N,xe=(Ee=k.x+ie)+R};if(u=(c=t).ownerDocument,f=(d=Vu(c).getComputedStyle(c)).width,g=d.height,b=d.position,y=c.style.left,v=c.style.top,w=c.style.right,E=c.style.bottom,x=xa(xa({},o[r]),i),_=u.createElement("div"),null===(s=c.parentElement)||void 0===s||s.appendChild(_),_.style.left="".concat(c.offsetLeft,"px"),_.style.top="".concat(c.offsetTop,"px"),_.style.position=b,_.style.height="".concat(c.offsetHeight,"px"),_.style.width="".concat(c.offsetWidth,"px"),c.style.left="0",c.style.top="0",c.style.right="auto",c.style.bottom="auto",S=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(O=n.getBoundingClientRect()).x,y:O.y,width:O.width,height:O.height},k=c.getBoundingClientRect(),N=k.height,R=k.width,I=S.height,$=S.width,A={left:0,top:0,right:(C=u.documentElement).clientWidth,bottom:C.clientHeight},j="visible",L="visibleFirst","scroll"!==(P=x.htmlRegion)&&P!==L&&(P=j),F=P===L,M=Yu({left:-(D=C.scrollLeft),top:-(T=C.scrollTop),right:C.scrollWidth-D,bottom:C.scrollHeight-T},h),B=Yu(A,h),H=P===j?B:M,U=F?B:H,c.style.left="auto",c.style.top="auto",c.style.right="0",c.style.bottom="0",z=c.getBoundingClientRect(),c.style.left=y,c.style.top=v,c.style.right=w,c.style.bottom=E,null===(l=c.parentElement)||void 0===l||l.removeChild(_),G=Ku(Math.round(R/parseFloat(f)*1e3)/1e3),W=Ku(Math.round(N/parseFloat(g)*1e3)/1e3),0===G||0===W||Us(n)&&!iQ(n))return;V=x.targetOffset,K=(X=Ua(Qu(k,x.offset),2))[0],q=X[1],J=(Y=Ua(Qu(S,V),2))[1],S.x-=Y[0],S.y-=J,Z=(Q=Ua(x.points||[],2))[0],ee=Zu(Q[1]),te=Zu(Z),ne=ed(S,ee),re=ed(k,te),oe=xa({},x),se=e(ie=ne.x-re.x+K,ae=ne.y-re.y+q),le=e(ie,ae,B),ce=ed(S,["t","l"]),ue=ed(k,["t","l"]),de=ed(S,["b","r"]),pe=ed(k,["b","r"]),he=(fe=x.overflow||{}).adjustX,me=fe.adjustY,ge=fe.shiftX,be=fe.shiftY,ye=function(e){return"boolean"==typeof e?e:e>=0},Je(),_e=ye(me),Se=te[0]===ee[0],_e&&"t"===te[0]&&(we>U.bottom||m.current.bt)&&(Oe=ae,Se?Oe-=N-I:Oe=ce.y-pe.y-q,ke=e(ie,Oe),Ce=e(ie,Oe,B),ke>se||ke===se&&(!F||Ce>=le)?(m.current.bt=!0,ae=Oe,q=-q,oe.points=[td(te,0),td(ee,0)]):m.current.bt=!1),_e&&"b"===te[0]&&(vese||De===se&&(!F||Ne>=le)?(m.current.tb=!0,ae=Te,q=-q,oe.points=[td(te,0),td(ee,0)]):m.current.tb=!1),Re=ye(he),Ie=te[1]===ee[1],Re&&"l"===te[1]&&(xe>U.right||m.current.rl)&&($e=ie,Ie?$e-=R-$:$e=ce.x-pe.x-K,Ae=e($e,ae),Pe=e($e,ae,B),Ae>se||Ae===se&&(!F||Pe>=le)?(m.current.rl=!0,ie=$e,K=-K,oe.points=[td(te,1),td(ee,1)]):m.current.rl=!1),Re&&"r"===te[1]&&(Eese||Le===se&&(!F||Fe>=le)?(m.current.lr=!0,ie=je,K=-K,oe.points=[td(te,1),td(ee,1)]):m.current.lr=!1),Je(),"number"==typeof(Me=!0===ge?0:ge)&&(EeB.right&&(ie-=xe-B.right-K,S.x>B.right-Me&&(ie+=S.x-B.right+Me))),"number"==typeof(Be=!0===be?0:be)&&(veB.bottom&&(ae-=we-B.bottom-q,S.y>B.bottom-Be&&(ae+=S.y-B.bottom+Be))),Ue=(He=k.x+ie)+R,Ge=(ze=k.y+ae)+N,Ve=(We=S.x)+$,Ke=(Xe=S.y)+I,qe=(Math.max(He,We)+Math.min(Ue,Ve))/2-He,Ye=(Math.max(ze,Xe)+Math.min(Ge,Ke))/2-ze,null==a||a(t,oe),p({ready:!0,offsetX:ie/G,offsetY:ae/W,offsetR:(z.right-k.x-(ie+k.width))/G,offsetB:(z.bottom-k.y-(ae+k.height))/W,arrowX:qe/G,arrowY:Ye/W,scaleX:G,scaleY:W,align:oe})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},Ek(c=function(){p((function(e){return xa(xa({},e),{},{ready:!1})}))},[r]),Ek((function(){e||c()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,l]}(S,c,at?F:f,Ze,tt,nt,lt),z=(U=Ua(H,11))[0],G=U[1],W=U[2],V=U[3],X=U[4],K=U[5],q=U[6],Y=U[7],J=U[8],Q=U[9],Z=U[10],ee=function(e,t,n,r){return Bb.useMemo((function(){var o=zu(null!=n?n:t),i=zu(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(Et,Re,Ie,$e),te=Ua(ee,2),re=te[1],oe=(ne=te[0]).has("click"),ie=re.has("click")||re.has("contextMenu"),ae=Dl((function(){I||Z()})),function(e,t,n,r){Ek((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r(),k.current&&at&&ie&&N(!1)};return o=n,i=Xu(t),a=Xu(o),s=Vu(o),(l=new Set([s].concat(wa(i),wa(a)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(S,f,c,ae),Ek((function(){ae()}),[F,Ze]),Ek((function(){!S||null!=tt&&tt[Ze]||ae()}),[JSON.stringify(nt)]),se=Bb.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Ua(Bb.useState(!1),2),r=n[0],o=n[1],i=Bb.useRef(null),a=function(){window.clearTimeout(i.current)};return Bb.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),h=(f=Ua(p,3))[0],m=f[1],g=f[2],Bb.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=d.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=Bb.useMemo((function(){var e,t;return"combobox"!==be?Te:"string"==typeof(t=null===(e=de[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[Te,be,de]),y="combobox"===be&&"function"==typeof we&&we()||null,v="function"==typeof Ee&&Ee(),w=Bs(l,null==v||null===(n=v.props)||void 0===n?void 0:n.ref),x=(E=Ua(Bb.useState(!1),2))[0],_=E[1],Ek((function(){_(!0)}),[]),S=Ua(Il(!1,{defaultValue:_e,value:xe}),2),O=S[0],C=!!x&&O,T=!me&&fe,(ye||T&&C&&"combobox"===be)&&(C=!1),D=!T&&C,N=Bb.useCallback((function(e){var t=void 0!==e?e:!C;ye||(k(t),C!==t&&(null==Se||Se(t)))}),[ye,C,k=S[1],Se]),R=Bb.useMemo((function(){return(Ie||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Ie]),I=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==ke||ke(null),r=n?null:(o=Ie)&&o.length?(i=!1,a=function e(t,n){var r,o=Js(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(wa(t),wa(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==be&&r&&(l="",null==Re||Re(r),N(!1),s=!1),Ne&&b!==l&&Ne(l,{source:t?"typing":"effect"}),s},$=function(e){e&&e.trim()&&Ne(e,{source:"submit"})},Bb.useEffect((function(){C||tt||"combobox"===be||I("",!1,!1)}),[C]),Bb.useEffect((function(){O&&ye&&k(!1),ye&&m(!1)}),[ye]),A=Ua(Au(),2),P=A[0],j=A[1],L=function(e){var t,n,r,o,i,a,s,l,c=P(),u=e.which;if(u===XT.ENTER&&("combobox"!==be&&e.preventDefault(),C||N(!0)),j(!!b),u===XT.BACKSPACE&&!c&&tt&&!b&&de.length){for(n=null,r=(t=wa(de)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&pe(t,{type:"remove",values:[n]})}for(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),a=1;a5&&void 0!==i&&i,c=arguments.length>6?a:void 0,u=arguments.length>7?s:void 0,d=Aq.useMemo((function(){return"object"===xi(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:Aq.useMemo((function(){return!(l||!r||!n.length&&!c||"combobox"===u&&""===c)}),[r,l,n.length,c,u]),clearIcon:Aq.createElement(hN,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:d},"ร—")}}(ie,(function(){var e;null==ge||ge(),null===(e=u.current)||void 0===e||e.focus(),pe([],{type:"clear",values:de}),I("",!1,!1)}),de,$e,Pe,ye,b,be),Q=J.allowClear,Z=J.clearIcon,ee=Bb.createElement(je,{ref:d}),te=yY(ie,ae,(Si(r={},"".concat(ie,"-focused"),h),Si(r,"".concat(ie,"-multiple"),tt),Si(r,"".concat(ie,"-single"),!tt),Si(r,"".concat(ie,"-allow-clear"),$e),Si(r,"".concat(ie,"-show-arrow"),q),Si(r,"".concat(ie,"-disabled"),ye),Si(r,"".concat(ie,"-loading"),ve),Si(r,"".concat(ie,"-open"),C),Si(r,"".concat(ie,"-customize-input"),y),Si(r,"".concat(ie,"-show-search"),nt),r)),ne=Bb.createElement(JN,{ref:c,disabled:ye,prefixCls:ie,visible:D,popupElement:ee,animation:Le,transitionName:Fe,dropdownStyle:Me,dropdownClassName:Be,direction:ce,dropdownMatchSelectWidth:He,dropdownRender:Ue,dropdownAlign:ze,placement:Ge,builtinPlacements:We,getPopupContainer:Ve,empty:fe,getTriggerDOMNode:function(){return l.current},onPopupVisibleChange:X,onPopupMouseEnter:function(){V({})}},v?Bb.cloneElement(v,{ref:w}):Bb.createElement(jN,pa({},e,{domRef:l,prefixCls:ie,inputElement:y,ref:u,id:oe,showSearch:nt,autoClearSearchValue:De,mode:be,activeDescendantId:Ce,tagRender:le,values:de,open:C,onToggleOpen:N,activeValue:Oe,searchValue:b,onSearch:I,onSearchSubmit:$,onRemove:M,tokenWithEnter:R}))),re=v?ne:Bb.createElement("div",pa({className:te},rt,{ref:s,onMouseDown:G,onKeyDown:L,onKeyUp:F,onFocus:H,onBlur:U}),h&&!C&&Bb.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(de.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(xi(t))?t:n})).join(", "))),ne,Y,Q&&Z),Bb.createElement(mN.Provider,{value:K},re)})),tR=0,nR=Ra(),rR=["children","value"],oR=["children"],(iR=function(){return null}).isSelectOptGroup=!0,(aR=function(){return null}).isSelectOption=!0,(sR=Bb.forwardRef((function(e,t){var n,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:e.height,position:"relative",overflow:"hidden"},p=xa(xa({},p),{},(Si(n={transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),Si(n,"position","absolute"),Si(n,"left",0),Si(n,"right",0),Si(n,"top",0),n))),Bb.createElement("div",{style:d},Bb.createElement(IC,{onResize:function(e){e.offsetHeight&&s&&s()}},Bb.createElement("div",pa({style:p,className:yY(Si({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}))).displayName="Filler",lR=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.prefixCls,u=e.rtl,d=e.scrollOffset,p=e.scrollRange,f=e.onStartMove,h=e.onStopMove,m=e.onScroll,g=e.horizontal,b=e.spinSize,y=e.containerSize,v=Ua(Bb.useState(!1),2),w=v[0],E=v[1],x=Ua(Bb.useState(null),2),_=x[0],S=x[1],O=Ua(Bb.useState(null),2),k=O[0],C=O[1],T=!u,D=Bb.useRef(),N=Bb.useRef(),R=Ua(Bb.useState(!1),2),I=R[0],$=R[1],A=Bb.useRef(),P=function(){clearTimeout(A.current),$(!0),A.current=setTimeout((function(){$(!1)}),3e3)},j=p-y||0,L=y-b||0,F=j>0,M=Bb.useMemo((function(){return 0===d||0===j?0:d/j*L}),[d,j,L]),B=Bb.useRef({top:M,dragging:w,pageY:_,startTop:k});return B.current={top:M,dragging:w,pageY:_,startTop:k},r=function(e){E(!0),S(ud(e,g)),C(B.current.top),f(),e.stopPropagation(),e.preventDefault()},Bb.useEffect((function(){var e=function(e){e.preventDefault()},t=D.current,n=N.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",r),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",r)}}),[]),(o=Bb.useRef()).current=j,(i=Bb.useRef()).current=L,Bb.useEffect((function(){var e,t,n;if(w)return t=function(t){var n,r,a,s,l,c=B.current,u=c.dragging,d=c.pageY,p=c.startTop;LC.cancel(e),u&&(n=ud(t,g)-d,r=p,!T&&g?r-=n:r+=n,a=o.current,s=i.current,l=Math.ceil((s?r/s:0)*a),l=Math.max(l,0),l=Math.min(l,a),e=LC((function(){m(l,g)})))},n=function(){E(!1),h()},window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),LC.cancel(e)}}),[w]),Bb.useEffect((function(){P()}),[d]),Bb.useImperativeHandle(t,(function(){return{delayHidden:P}})),a="".concat(c,"-scrollbar"),s={position:"absolute",visibility:I&&F?null:"hidden"},l={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},g?(s.height=8,s.left=0,s.right=0,s.bottom=0,l.height="100%",l.width=b,T?l.left=M:l.right=M):(s.width=8,s.top=0,s.bottom=0,T?s.right=0:s.left=0,l.width="100%",l.height=b,l.top=M),Bb.createElement("div",{ref:D,className:yY(a,(n={},Si(n,"".concat(a,"-horizontal"),g),Si(n,"".concat(a,"-vertical"),!g),Si(n,"".concat(a,"-visible"),I),n)),style:s,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:P},Bb.createElement("div",{ref:N,className:yY("".concat(a,"-thumb"),Si({},"".concat(a,"-thumb-moving"),w)),style:l,onMouseDown:r}))})),cR=function(){function e(){Ci(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Di(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),uR="object"===("undefined"==typeof navigator?"undefined":xi(navigator))&&/Firefox/i.test(navigator.userAgent);const B0=function(e,t){var n=Bb.useRef(!1),r=Bb.useRef(null),o=Bb.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};dR=14/15,pR=20,fR=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],hR=[],mR={overflowY:"auto",overflowAnchor:"none"},(gR=Bb.forwardRef(fd)).displayName="List",bR=Bb.createContext(null),yR=["disabled","title","children","style","className"],vR=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(d,"_list_").concat(t)}}var r,o,i,a,s,l,c=Bb.useContext(mN),u=c.prefixCls,d=c.id,p=c.open,f=c.multiple,h=c.mode,m=c.searchValue,g=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=Bb.useContext(bR),w=v.flattenOptions,E=v.onActiveValue,x=v.defaultActiveFirstOption,_=v.onSelect,S=v.menuItemSelectedIcon,O=v.rawValues,k=v.fieldNames,C=v.virtual,T=v.direction,D=v.listHeight,N=v.listItemHeight,R="".concat(u,"-item"),I=Sa((function(){return w}),[p,w],(function(e,t){return t[0]&&e[1]!==t[1]})),$=Bb.useRef(null),A=function(e){e.preventDefault()},P=function(e){$.current&&$.current.scrollTo("number"==typeof e?{index:e}:e)},j=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=I.length;for(n=0;n1&&void 0!==t&&t;M(e),n={source:o?"keyboard":"mouse"},(r=I[e])?E(r.value,e,n):E(null,-1,n)};return Bb.useEffect((function(){B(!1!==x?j(0):-1)}),[I.length,m]),r=Bb.useCallback((function(e){return O.has(e)&&"combobox"!==h}),[h,wa(O).toString(),O.size]),Bb.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&p&&1===O.size&&(e=Array.from(O)[0],-1!==(t=I.findIndex((function(t){return t.data.value===e})))&&(B(t),P(t)))}));return p&&(null===(e=$.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[p,m,w.length]),o=function(e){void 0!==e&&_(e,{selected:!O.has(e)}),f||g(!1)},Bb.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case XT.N:case XT.P:case XT.UP:case XT.DOWN:t=0,i===XT.UP?t=-1:i===XT.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===XT.N?t=1:i===XT.P&&(t=-1)),0!==t&&(n=j(F+t,t),P(n),B(n,!0));break;case XT.ENTER:o((r=I[F])&&!r.data.disabled?r.value:void 0),p&&e.preventDefault();break;case XT.ESC:g(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){P(e)}}})),0===I.length?Bb.createElement("div",{role:"listbox",id:"".concat(d,"_list"),className:"".concat(R,"-empty"),onMouseDown:A},b):(i=Object.keys(k).map((function(e){return k[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=I[e];return c?(o=(t=c.data||{}).value,i=c.group,s=nc(t,!0),l=a(c),c?Bb.createElement("div",pa({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(d,"_list")},Bb.createElement(Bb.Fragment,null,C&&Bb.createElement("div",pa({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(F-1),s(F),s(F+1)),Bb.createElement(gR,{itemKey:"key",ref:$,data:I,height:D,itemHeight:N,fullHeight:!1,onMouseDown:A,onScroll:y,virtual:C,direction:T,innerProps:C?null:l},(function(e,t){var s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x=e.groupOption,_=e.data,O=e.label,k=e.value,T=_.key;return e.group?(c=null!==(l=_.title)&&void 0!==l?l:hd(O)?O.toString():void 0,Bb.createElement("div",{className:yY(R,"".concat(R,"-group")),title:c},void 0!==O?O:T)):(u=_.disabled,d=_.title,p=_.style,f=_.className,h=qs(Oi(_,yR),i),m=r(k),g="".concat(R,"-option"),b=yY(R,g,f,(Si(s={},"".concat(g,"-grouped"),x),Si(s,"".concat(g,"-active"),F===t&&!u),Si(s,"".concat(g,"-disabled"),u),Si(s,"".concat(g,"-selected"),m),s)),y=a(e),v=!S||"function"==typeof S||m,E=hd(w="number"==typeof y?y:y||k)?w.toString():void 0,void 0!==d&&(E=d),Bb.createElement("div",pa({},nc(h),C?{}:n(e,t),{"aria-selected":m,className:b,title:E,onMouseMove:function(){F===t||u||B(t)},onClick:function(){u||o(k)},style:p}),Bb.createElement("div",{className:"".concat(g,"-content")},w),Bb.isValidElement(S)||m,v&&Bb.createElement(hN,{className:"".concat(R,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:m}},m?"โœ“":null)))}))))},(wR=Bb.forwardRef(vR)).displayName="OptionList",ER=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],xR=["inputValue"],_R=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_=e.id,S=e.mode,O=e.prefixCls,k=void 0===O?"rc-select":O,C=e.backfill,T=e.fieldNames,D=e.inputValue,N=e.searchValue,R=e.onSearch,I=e.autoClearSearchValue,$=void 0===I||I,A=e.onSelect,P=e.onDeselect,j=e.dropdownMatchSelectWidth,L=void 0===j||j,F=e.filterOption,M=e.filterSort,B=e.optionFilterProp,H=e.optionLabelProp,U=e.options,z=e.children,G=e.defaultActiveFirstOption,W=e.menuItemSelectedIcon,V=e.virtual,X=e.direction,K=e.listHeight,q=void 0===K?200:K,Y=e.listItemHeight,J=void 0===Y?20:Y,Q=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Oi(e,ER),re=function(e){var t=Ua(Bb.useState(),2),n=t[0],r=t[1];return Bb.useEffect((function(){var e;r("rc_select_".concat((nR?(e=tR,tR+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(_),oe=sd(S),ie=!(U||!z),ae=Bb.useMemo((function(){return(void 0!==F||"combobox"!==S)&&F}),[F,S]),se=Bb.useMemo((function(){return id(T,ie)}),[JSON.stringify(T),ie]),le=Ua(Il("",{value:void 0!==N?N:D,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],de=function(e,t,n,r,o){return Bb.useMemo((function(){var i,a,s,l=e;return!e&&(l=ld(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,d=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=id(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:od(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:od(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=me(e);ye(r),te&&(r.length!==xe.length||r.some((function(e,t){var n;return(null===(n=xe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return ad(_e(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Ua(Bb.useState(null),2))[0],d=c[1],f=(p=Ua(Bb.useState(0),2))[0],h=p[1],m=void 0!==G?G:"combobox"!==S,g=Bb.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;h(t),C&&"combobox"===S&&null!==e&&"keyboard"===o&&d(String(e))}),[C,S]),b=function(e,t,n){var r,o,i=function(){var t,n=_e(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,ad(n)]};t&&A?(r=Ua(i(),2),A(r[0],r[1])):!t&&P&&"clear"!==n&&(o=Ua(i(),2),P(o[0],o[1]))},y=cd((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(wa(xe),[e]):[e]:xe.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===S?d(""):sd&&!$||(ue(""),d(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},w=function(e,t){var n,r;ue(e),d(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===S&&l(e),null==R||R(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(wa(Oe),[n]))),l(r),b(n,!0),ue(""))},E=function(e){var t,n=e;"tags"!==S&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(wa(Oe),wa(n)))),l(t),t.forEach((function(e){b(e,!0)}))},x=Bb.useMemo((function(){var e=!1!==V&&!1!==L;return xa(xa({},de),{},{flattenOptions:s,onActiveValue:g,defaultActiveFirstOption:m,onSelect:y,menuItemSelectedIcon:W,rawValues:Oe,fieldNames:se,virtual:e,direction:X,listHeight:q,listItemHeight:J,childrenAsData:ie})}),[de,s,g,m,y,W,Oe,se,V,L,q,J,ie]),Bb.createElement(bR.Provider,{value:x},Bb.createElement(eR,pa({},ne,{id:re,prefixCls:k,ref:t,omitDomProps:xR,mode:S,displayValues:Se,onDisplayValuesChange:v,direction:X,searchValue:ce,onSearch:w,autoClearSearchValue:$,onSearchSplit:E,dropdownMatchSelectWidth:L,OptionList:wR,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),(SR=_R).Option=aR,SR.OptGroup=iR;const H0=(e,t)=>t||e,U0=()=>{const[,e]=Tl(),t=new GC(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Bb.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Bb.createElement("g",{fill:"none",fillRule:"evenodd"},Bb.createElement("g",{transform:"translate(24 31.67)"},Bb.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Bb.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Bb.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Bb.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Bb.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Bb.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Bb.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Bb.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Bb.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},z0=()=>{const[,e]=Tl(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=Bb.useMemo((()=>({borderColor:new GC(t).onBackground(o).toHexShortString(),shadowColor:new GC(n).onBackground(o).toHexShortString(),contentColor:new GC(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return Bb.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Bb.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Bb.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),Bb.createElement("g",{fillRule:"nonzero",stroke:i},Bb.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Bb.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},G0=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},W0=Pl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[G0(r)]}));OR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=V0,description:i,children:a,imageStyle:s,style:l}=e,c=OR(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=Bb.useContext(XY),f=u("empty",r),[h,m]=W0(f),[g]=DY("Empty"),b=void 0!==i?i:null==g?void 0:g.description;let y=null;return y="string"==typeof o?Bb.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,h(Bb.createElement("div",Object.assign({className:yY(m,f,null==p?void 0:p.className,{[`${f}-normal`]:o===X0,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),Bb.createElement("div",{className:`${f}-image`,style:s},y),b&&Bb.createElement("div",{className:`${f}-description`},b),a&&Bb.createElement("div",{className:`${f}-footer`},a)))};K0.PRESENTED_IMAGE_DEFAULT=V0,K0.PRESENTED_IMAGE_SIMPLE=X0;const q0=K0,Y0=e=>{const{componentName:t}=e,{getPrefixCls:n}=Bb.useContext(XY),r=n("empty");switch(t){case"Table":case"List":return Aq.createElement(q0,{image:q0.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Aq.createElement(q0,{image:q0.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Aq.createElement(q0,null)}},J0=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Q0=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},YY(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,[`\n ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:AZ},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:jZ},[`${a}${s}bottomLeft`]:{animationName:PZ},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:LZ},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},J0(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},qY),"&-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:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},zZ(e,"slide-up"),zZ(e,"slide-down"),$Z(e,"move-up"),$Z(e,"move-down")]},Z0=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},e1=e=>{const{componentCls:t}=e,n=$l(e,{controlHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=Z0(e);return[gd(e),gd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},gd(r,"lg")]},t1=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},n1=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,outlineColor:a,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:i}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:i}})}}},r1=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},o1=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},YY(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},t1(e)),r1(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},qY),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},qY),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},i1=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},o1(e),yd(e),e1(e),Q0(e),{[`${t}-rtl`]:{direction:"rtl"}},n1(t,$l(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),n1(`${t}-status-error`,$l(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),n1(`${t}-status-warning`,$l(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Oc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},a1=Pl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight});return[i1(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:h,colorTextDisabled:m}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent"}})),s1={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"},l1=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:s1}))})),c1={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"},u1=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:c1}))})),d1={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"},p1=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:d1}))}));kR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:h,notFoundContent:m,status:g,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:w,style:E,allowClear:x}=e,_=kR(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:S,getPrefixCls:O,renderEmpty:k,direction:C,virtual:T,popupMatchSelectWidth:D,popupOverflow:N,select:R}=Bb.useContext(XY),I=O("select",r),$=O(),A=null!=w?w:C,{compactSize:P,compactItemClassnames:j}=yQ(I,A),[L,F]=a1(I),M=Bb.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===f1?"combobox":e}),[_.mode]),B="multiple"===M||"tags"===M,H=function(e,t){return void 0!==t?t:null!==e}(_.suffixIcon,_.showArrow),U=null!==(n=null!=v?v:y)&&void 0!==n?n:D,{status:z,hasFeedback:G,isFormItemInput:W,feedbackIcon:V}=Bb.useContext(hZ),X=H0(z,g);let K;K=void 0!==m?m:"combobox"===M?null:(null==k?void 0:k("Select"))||Bb.createElement(Y0,{componentName:"Select"});const{suffixIcon:q,itemIcon:Y,removeIcon:J,clearIcon:Q}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d}=e;const p=null!=n?n:Bb.createElement(CJ,null),f=e=>null!==t||s||d?Bb.createElement(Bb.Fragment,null,!1!==c&&e,s&&u):null;let h=null;if(void 0!==t)h=f(t);else if(i)h=f(Bb.createElement(zJ,{spin:!0}));else{const e=`${l}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return f(Bb.createElement(n&&r?p1:u1,{className:e}))}}let m=null;m=void 0!==r?r:a?Bb.createElement(l1,null):null;let g=null;return g=void 0!==o?o:Bb.createElement(DJ,null),{clearIcon:p,suffixIcon:h,itemIcon:m,removeIcon:g}}(Object.assign(Object.assign({},_),{multiple:B,hasFeedback:G,feedbackIcon:V,showSuffixIcon:H,prefixCls:I,showArrow:_.showArrow,componentName:"Select"})),Z=!0===x?{clearIcon:Q}:x,ee=qs(_,["suffixIcon","itemIcon"]),te=yY(l||c,{[`${I}-dropdown-${A}`]:"rtl"===A},a,F),ne=pQ((e=>{var t;return null!==(t=null!=f?f:P)&&void 0!==t?t:e})),re=Bb.useContext(cJ),oe=null!=h?h:re,ie=yY({[`${I}-lg`]:"large"===ne,[`${I}-sm`]:"small"===ne,[`${I}-rtl`]:"rtl"===A,[`${I}-borderless`]:!o,[`${I}-in-form-item`]:W},md(I,X,G),j,null==R?void 0:R.className,i,a,F),ae=Bb.useMemo((()=>void 0!==d?d:"rtl"===A?"bottomRight":"bottomLeft"),[d,A]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(b,N);return L(Bb.createElement(SR,Object.assign({ref:t,virtual:T,showSearch:null==R?void 0:R.showSearch},ee,{style:Object.assign(Object.assign({},null==R?void 0:R.style),E),dropdownMatchSelectWidth:U,builtinPlacements:se,transitionName:oQ($,"slide-up",_.transitionName),listHeight:u,listItemHeight:p,mode:M,prefixCls:I,placement:ae,direction:A,suffixIcon:q,menuItemSelectedIcon:Y,removeIcon:J,allowClear:Z,notFoundContent:K,className:ie,getPopupContainer:s||S,dropdownClassName:te,disabled:oe})))},m1=Bb.forwardRef(h1),g1=(YK=m1,$u((function(e){const{prefixCls:t,style:n}=e,r=Bb.useRef(null),[o,i]=Bb.useState(0),[a,s]=Bb.useState(0),[l,c]=Il(!1,{value:e.open}),{getPrefixCls:u}=Bb.useContext(XY),d=u("select",t);Bb.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${d}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return Bb.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},Bb.createElement(YK,Object.assign({},p)))})));m1.SECRET_COMBOBOX_MODE_DO_NOT_USE=f1,m1.Option=aR,m1.OptGroup=iR,m1._InternalPanelDoNotUseOrYouWillBeFired=g1;const b1=m1,y1=["xxl","xl","lg","md","sm","xs"],v1=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)`}),w1=e=>{const t=e,n=[].concat(y1).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,x1)}},[`${t}-content`]:{position:"relative"}}),jl(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},_d($l(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},C1=(e,t)=>Pl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=$l(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[k1(a),r0(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),T1=RY.map((e=>`${e}-inverse`)),D1=["success","processing","error","default","warning"];$R=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:h=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,w=!!h,[,E]=Tl(),{getPopupContainer:x,getPrefixCls:_,direction:S}=Bb.useContext(XY),O=Bb.useRef(null),k=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};Bb.useImperativeHandle(t,(()=>({forceAlign:k,forcePopupAlign:()=>{k()}})));const[C,T]=Il(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),D=!m&&!g&&0!==m,N=Bb.useMemo((()=>{var e,t;let n=y;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:y),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(_1).forEach((e=>{const c=Object.assign(Object.assign({},r&&S1[e]||_1[e]),{offset:[0,0]});switch(l[e]=c,O1.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=Ed({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:w?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[y,h,b,E]),R=Bb.useMemo((()=>0===m?m:g||m||""),[g,m]),I=Bb.createElement(vQ,null,"function"==typeof R?R():R),{getPopupContainer:$,placement:A="top",mouseEnterDelay:P=.1,mouseLeaveDelay:j=.1,overlayStyle:L,rootClassName:F}=e,M=$R(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=_("tooltip",o),H=_(),U=e["data-popover-inject"];let z=C;"open"in e||"visible"in e||!D||(z=!1);const G=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=oc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return Bb.createElement("span",{style:o,className:yY(e.props.className,`${t}-disabled-compatible-wrapper`)},i)}return e}(AJ(u)&&!rc(u)?u:Bb.createElement("span",null,u),B),W=G.props,V=W.className&&"string"!=typeof W.className?W.className:yY(W.className,i||`${B}-open`),[X,K]=C1(B,!U),q=Od(B,l),Y=q.arrowStyle,J=Object.assign(Object.assign({},c),q.overlayStyle),Q=yY(s,{[`${B}-rtl`]:"rtl"===S},q.className,F,K);return X(Bb.createElement(E1,Object.assign({},M,{showArrow:w,placement:A,mouseEnterDelay:P,mouseLeaveDelay:j,prefixCls:B,overlayClassName:Q,overlayStyle:Object.assign(Object.assign({},Y),L),getTooltipContainer:$||a||x,ref:O,builtinPlacements:N,overlay:I,visible:z,onVisibleChange:t=>{var n,r;T(!D&&t),D||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:J,arrowContent:Bb.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:oQ(H,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),z?oc(G,{className:V}):G))}));N1._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Bb.useContext(XY),l=s("tooltip",t),[c,u]=C1(l,!0),d=Od(l,i),p=d.arrowStyle,f=Object.assign(Object.assign({},a),d.overlayStyle),h=yY(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(Bb.createElement("div",{className:h,style:p},Bb.createElement("div",{className:`${l}-arrow`}),Bb.createElement(wd,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const R1=N1,I1={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"},$1=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:I1}))}));AR=XT.ESC,PR=XT.TAB,jR=Bb.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=Bb.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Ms(t,null==i?void 0:i.ref);return Aq.createElement(Aq.Fragment,null,r&&Aq.createElement("div",{className:"".concat(o,"-arrow")}),Aq.cloneElement(i,{ref:Hs(i)?a:void 0}))})),MR={topLeft:{points:["bl","tl"],overflow:LR={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:FR=[0,0]},top:{points:["bc","tc"],overflow:LR,offset:[0,-4],targetOffset:FR},topRight:{points:["br","tr"],overflow:LR,offset:[0,-4],targetOffset:FR},bottomLeft:{points:["tl","bl"],overflow:LR,offset:[0,4],targetOffset:FR},bottom:{points:["tc","bc"],overflow:LR,offset:[0,4],targetOffset:FR},bottomRight:{points:["tr","br"],overflow:LR,offset:[0,4],targetOffset:FR}},BR=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const A1=Aq.forwardRef(kd);HR=Bb.createContext(null),UR=["children","locked"],zR=Bb.createContext(null),GR=[],WR=Bb.createContext(null),VR=Bb.createContext(GR),XR=Bb.createContext(null),KR=Bb.createContext({}),ZR=XT.ENTER,eI=XT.ESC,tI=XT.HOME,nI=XT.END,rI=[JR=XT.UP,QR=XT.DOWN,qR=XT.LEFT,YR=XT.RIGHT],oI="__RC_UTIL_PATH_SPLIT__",iI=function(e){return e.join(oI)},aI=function(e){return e.split(oI)},sI="rc-menu-more",lI=Math.random().toFixed(5).toString().slice(2),cI=0,uI=["item"],dI=["title","attribute","elementRef"],pI=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fI=["active"],hI=function(){function e(){return Ci(this,e),t.apply(this,arguments)}Is(e,Bb.Component);var t=js(e);return Di(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=qs(Oi(e,dI),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ta(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Bb.createElement(TN.Item,pa({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),mI=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P,j,L,F,M,B,H=e.style,U=e.className,z=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,d=e.onFocus,p=Oi(e,pI),f=Td(z),m=(h=Bb.useContext(zR)).prefixCls,g=h.onItemClick,b=h.disabled,y=h.overflowDisabled,v=h.itemIcon,w=h.selectedKeys,E=h.onActive,x=Bb.useContext(KR)._internalRenderMenuItem,_="".concat(m,"-item"),S=Bb.useRef(),O=Bb.useRef(),k=b||r,C=Bs(t,O),T=Rd(z),D=function(e){return{key:z,keyPath:wa(T).reverse(),item:S.current,domEvent:e}},N=o||v,I=(R=jd(z,k,s,l)).active,$=Oi(R,fI),A=w.includes(z),P=Ld(T.length),j=function(e){if(!k){var t=D(e);null==c||c(Md(t)),g(t)}},L=function(e){if(null==u||u(e),e.which===XT.ENTER){var t=D(e);null==c||c(Md(t)),g(t)}},F=function(e){E(z),null==d||d(e)},M={},"option"===e.role&&(M["aria-selected"]=A),B=Bb.createElement(hI,pa({ref:S,elementRef:C,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},p,$,M,{component:"li","aria-disabled":r,style:xa(xa({},P),H),className:yY(_,(n={},Si(n,"".concat(_,"-active"),I),Si(n,"".concat(_,"-selected"),A),Si(n,"".concat(_,"-disabled"),k),n),U),onClick:j,onKeyDown:L,onFocus:F}),i,Bb.createElement(Fd,{props:xa(xa({},e),{},{isSelected:A}),icon:N})),x&&(B=x(B,e,{selected:A})),B}));const P1=Bb.forwardRef(Bd);gI=["className","children"],bI=function(e,t){var n=e.className,r=e.children,o=Oi(e,gI),i=Bb.useContext(zR),a=i.prefixCls,s=i.mode;return Bb.createElement("ul",pa({className:yY(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(yI=Bb.forwardRef(bI)).displayName="SubMenuList",wI={topLeft:{points:["bl","tl"],overflow:vI={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:vI},bottomLeft:{points:["tl","bl"],overflow:vI},bottomRight:{points:["tr","br"],overflow:vI},leftTop:{points:["tr","tl"],overflow:vI},leftBottom:{points:["br","bl"],overflow:vI},rightTop:{points:["tl","tr"],overflow:vI},rightBottom:{points:["bl","br"],overflow:vI}},EI={topLeft:{points:["bl","tl"],overflow:vI},topRight:{points:["br","tr"],overflow:vI},bottomLeft:{points:["tl","bl"],overflow:vI},bottomRight:{points:["tr","br"],overflow:vI},rightTop:{points:["tr","tl"],overflow:vI},rightBottom:{points:["br","bl"],overflow:vI},leftTop:{points:["tl","tr"],overflow:vI},leftBottom:{points:["bl","br"],overflow:vI}},xI={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},_I=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],SI=["active"],OI=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P,j,L,F,M,B,H,U,z,G,W,V,X,K,q,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue=e.style,de=e.className,pe=e.title,fe=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.popupStyle,u=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onTitleClick,h=e.onTitleMouseEnter,m=e.onTitleMouseLeave,g=Oi(e,_I),b=Td(fe),v=(y=Bb.useContext(zR)).prefixCls,w=y.mode,E=y.openKeys,x=y.disabled,_=y.overflowDisabled,S=y.activeKey,O=y.selectedKeys,k=y.itemIcon,C=y.expandIcon,T=y.onItemClick,D=y.onOpenChange,N=y.onActive,R=Bb.useContext(KR)._internalRenderSubMenuItem,I=Bb.useContext(XR),$=I.isSubPathKey,A=Rd(),P="".concat(v,"-submenu"),j=x||n,L=Bb.useRef(),F=Bb.useRef(),M=null!=i?i:k,B=null!=a?a:C,H=E.includes(fe),U=!_&&H,z=$(O,fe),G=jd(fe,j,h,m),W=G.active,V=Oi(G,SI),X=Ua(Bb.useState(!1),2),q=X[1],Y=function(e){j||q(e)},J=function(e){Y(!0),null==d||d({key:fe,domEvent:e})},Q=function(e){Y(!1),null==p||p({key:fe,domEvent:e})},Z=Bb.useMemo((function(){return W||"inline"!==w&&(K||$([S],fe))}),[w,W,S,K=X[0],fe,$]),ee=Ld(A.length),te=function(e){j||(null==f||f({key:fe,domEvent:e}),"inline"===w&&D(fe,!H))},ne=Pd((function(e){null==u||u(Md(e)),T(e)})),re=function(e){"inline"!==w&&D(fe,e)},oe=function(){N(fe)},ie=b&&"".concat(b,"-popup"),ae=Bb.createElement("div",pa({role:"menuitem",style:ee,className:"".concat(P,"-title"),tabIndex:j?null:-1,ref:L,title:"string"==typeof pe?pe:null,"data-menu-id":_&&b?null:b,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":ie,"aria-disabled":j,onClick:te,onFocus:oe},V),pe,Bb.createElement(Fd,{icon:"horizontal"!==w?B:void 0,props:xa(xa({},e),{},{isOpen:U,isSubMenu:!0})},Bb.createElement("i",{className:"".concat(P,"-arrow")}))),(se=Bb.useRef(w)).current="inline"!==w&&A.length>1?"vertical":w,_||(ae=Bb.createElement(zd,{mode:le=se.current,prefixCls:P,visible:!r&&U&&"inline"!==w,popupClassName:s,popupOffset:l,popupStyle:c,popup:Bb.createElement(Dd,{mode:"horizontal"===le?"vertical":le},Bb.createElement(yI,{id:ie,ref:F},o)),disabled:j,onVisibleChange:re},ae)),ce=Bb.createElement(TN.Item,pa({role:"none"},g,{component:"li",style:ue,className:yY(P,"".concat(P,"-").concat(w),de,(t={},Si(t,"".concat(P,"-open"),U),Si(t,"".concat(P,"-active"),Z),Si(t,"".concat(P,"-selected"),z),Si(t,"".concat(P,"-disabled"),j),t)),onMouseEnter:J,onMouseLeave:Q}),ae,!_&&Bb.createElement(Gd,{id:ie,open:U,keyPath:A},o)),R&&(ce=R(ce,e,{selected:z,active:Z,open:U,disabled:j})),Bb.createElement(Dd,{onItemClick:ne,mode:"horizontal"===w?"vertical":w,itemIcon:M,expandIcon:B},ce)},kI=["className","title","eventKey","children"],CI=["children"],TI=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=Oi(e,kI),r=Bb.useContext(zR),o="".concat(r.prefixCls,"-item-group"),Bb.createElement("li",pa({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:yY(o,i)}),Bb.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),Bb.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},DI=["label","children","key","type"],NI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],RI=[],(II=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$,A,P,j,L,F,M,B,H,U,z,G,W,V,X,K,q,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,de=e.className,pe=e.tabIndex,fe=void 0===pe?0:pe,he=e.items,me=e.children,ge=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,we=e.inlineCollapsed,Ee=e.disabled,xe=e.disabledOverflow,_e=e.subMenuOpenDelay,Se=void 0===_e?.1:_e,Oe=e.subMenuCloseDelay,ke=void 0===Oe?.1:Oe,Ce=e.forceSubMenuRender,Te=e.defaultOpenKeys,De=e.openKeys,Ne=e.activeKey,Re=e.defaultActiveFirst,Ie=e.selectable,$e=void 0===Ie||Ie,Ae=e.multiple,Pe=void 0!==Ae&&Ae,je=e.defaultSelectedKeys,Le=e.selectedKeys,Fe=e.onSelect,Me=e.onDeselect,Be=e.inlineIndent,He=void 0===Be?24:Be,Ue=e.motion,ze=e.defaultMotions,Ge=e.triggerSubMenuAction,We=void 0===Ge?"hover":Ge,Ve=e.builtinPlacements,Xe=e.itemIcon,Ke=e.expandIcon,qe=e.overflowedIndicator,Ye=void 0===qe?"...":qe,Je=e.overflowedIndicatorPopupClassName,Qe=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,i=e._internalRenderSubMenuItem,a=Oi(e,NI),s=Bb.useMemo((function(){return qd(me,he,RI)}),[me,he]),c=(l=Ua(Bb.useState(!1),2))[0],u=l[1],d=Bb.useRef(),p=function(e){var t=Ua(Il(e,{value:e}),2),n=t[0],r=t[1];return Bb.useEffect((function(){cI+=1;var e="".concat(lI,"-").concat(cI);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===ge,h=Ua(Il(Te,{value:De,postState:function(e){return e||RI}}),2),g=h[1],b=function(e,t){function n(){g(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?e_.flushSync(n):n()},y=Ua(Bb.useState(m=h[0]),2),v=y[0],w=y[1],E=Bb.useRef(!1),x=Ua(Bb.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!we?[ve,!1]:["vertical",we]}),[ve,we]),2),S=x[1],O="inline"===(_=x[0]),k=Ua(Bb.useState(_),2),C=k[0],T=k[1],N=(D=Ua(Bb.useState(S),2))[0],R=D[1],Bb.useEffect((function(){T(_),R(S),E.current&&(O?g(v):b(RI))}),[_,S]),I=Ua(Bb.useState(0),2),A=I[1],P=($=I[0])>=s.length-1||"horizontal"!==C||xe,Bb.useEffect((function(){O&&w(m)}),[m]),Bb.useEffect((function(){return E.current=!0,function(){E.current=!1}}),[]),j=function(){var e=Ua(Bb.useState({}),2)[1],t=Bb.useRef(new Map),n=Bb.useRef(new Map),r=Ua(Bb.useState([]),2),o=r[0],i=r[1],a=Bb.useRef(0),s=Bb.useRef(!1),l=Bb.useCallback((function(r,o){var i,l,c=iI(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=Bb.useCallback((function(e,r){var o=iI(r);n.current.delete(o),t.current.delete(e)}),[]),u=Bb.useCallback((function(e){i(e)}),[]),d=Bb.useCallback((function(e,n){var r=t.current.get(e)||"",i=aI(r);return n&&o.includes(i[0])&&i.unshift(sI),i}),[o]),p=Bb.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=Bb.useCallback((function(e){var r="".concat(t.current.get(e)).concat(oI),o=new Set;return wa(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return Bb.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=wa(t.current.keys());return o.length&&e.push(sI),e},getSubPathKeys:f}}(),M=j.refreshOverflowKeys,B=j.isSubPathKey,H=j.getKeyPath,U=j.getKeys,z=j.getSubPathKeys,G=Bb.useMemo((function(){return{registerPath:L,unregisterPath:F}}),[L=j.registerPath,F=j.unregisterPath]),W=Bb.useMemo((function(){return{isSubPathKey:B}}),[B]),Bb.useEffect((function(){M(P?RI:s.slice($+1).map((function(e){return e.key})))}),[$,P]),V=Ua(Il(Ne||Re&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:Ne}),2),X=V[0],K=V[1],q=Pd((function(e){K(e)})),Y=Pd((function(){K(void 0)})),Bb.useImperativeHandle(t,(function(){return{list:d.current,focus:function(e){var t,n,r,o,i=null!=X?X:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=d.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Cd(p,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),J=Ua(Il(je||[],{value:Le,postState:function(e){return Array.isArray(e)?e:null==e?RI:[e]}}),2),Q=J[0],Z=J[1],ee=function(e){var t,n,r,o;$e&&(n=Q.includes(t=e.key),r=Pe?n?Q.filter((function(e){return e!==t})):[].concat(wa(Q),[t]):[t],Z(r),o=xa(xa({},e),{},{selectedKeys:r}),n?null==Me||Me(o):null==Fe||Fe(o)),!Pe&&m.length&&"inline"!==C&&b(RI)},te=Pd((function(e){null==Ze||Ze(Md(e)),ee(e)})),ne=Pd((function(e,t){var n,r=m.filter((function(t){return t!==e}));t?r.push(e):"inline"!==C&&(n=z(e),r=r.filter((function(e){return!n.has(e)}))),Da(m,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,d=Bb.useRef(),p=Bb.useRef();return p.current=t,u=function(){LC.cancel(d.current)},Bb.useEffect((function(){return function(){u()}}),[]),function(f){var h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D=f.which;if([].concat(rI,[ZR,eI,tI,nI]).includes(D)){if((b=function(){return h=new Set,m=new Map,g=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Cd(r,e),"']"));t&&(h.add(t),g.set(t,e),m.set(e,t))})),h})(),y=m.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,h),w=g.get(v),E=function(e,t,n,r){var o,i,a,s,l,c,u,d="prev",p="next",f="children",h="parent";if("inline"===e&&r===ZR)return{inlineTrigger:!0};switch(Si(o={},JR,d),Si(o,QR,p),l=o,Si(i={},qR,n?p:d),Si(i,YR,n?d:p),Si(i,QR,f),Si(i,ZR,f),c=i,Si(a={},JR,d),Si(a,QR,p),Si(a,ZR,f),Si(a,eI,h),Si(a,qR,n?f:h),Si(a,YR,n?h:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case h:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,D),!E&&D!==tI&&D!==nI)return;(rI.includes(D)||[tI,nI].includes(D))&&f.preventDefault(),x=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=g.get(e),s(r),u(),d.current=LC((function(){p.current===r&&t.focus()})))},[tI,nI].includes(D)||E.sibling||!v?(O=$d(_=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,h),S=D===tI?O[0]:D===nI?O[O.length-1]:Ad(_,h,v,E.offset),x(S)):E.inlineTrigger?l(w):E.offset>0?(l(w,!0),u(),d.current=LC((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=Ad(document.getElementById(e),h),x(t)}),5)):E.offset<0&&(k=a(w,!0),T=m.get(C=k[k.length-2]),l(C,!1),x(T))}null==c||c(f)}}(C,X,f,p,d,U,H,K,(function(e,t){var n=null!=t?t:!m.includes(e);ne(e,n)}),tt),Bb.useEffect((function(){u(!0)}),[]),oe=Bb.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==C||xe?s:s.map((function(e,t){return Bb.createElement(Dd,{key:e.key,overflowDisabled:t>$},e)})),ae=Bb.createElement(TN,pa({id:be,ref:d,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:P1,className:yY(le,"".concat(le,"-root"),"".concat(le,"-").concat(C),de,(r={},Si(r,"".concat(le,"-inline-collapsed"),N),Si(r,"".concat(le,"-rtl"),f),r),ce),dir:ge,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return Bb.createElement(Wd,{eventKey:sI,title:Ye,disabled:P,internalPopupClose:0===t,popupClassName:Je},n)},maxCount:"horizontal"!==C||xe?TN.INVALIDATE:TN.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){A(e)},onKeyDown:re},a)),Bb.createElement(KR.Provider,{value:oe},Bb.createElement(HR.Provider,{value:p},Bb.createElement(Dd,{prefixCls:le,rootClassName:ce,mode:C,openKeys:m,rtl:f,disabled:Ee,motion:c?Ue:null,defaultMotions:c?ze:null,activeKey:X,onActive:q,onInactive:Y,selectedKeys:Q,inlineIndent:He,subMenuOpenDelay:Se,subMenuCloseDelay:ke,forceSubMenuRender:Ce,builtinPlacements:Ve,triggerSubMenuAction:We,getPopupContainer:Qe,itemIcon:Xe,expandIcon:Ke,onItemClick:te,onOpenChange:ne},Bb.createElement(XR.Provider,{value:W},ae),Bb.createElement("div",{style:{display:"none"},"aria-hidden":!0},Bb.createElement(WR.Provider,{value:G},s)))))}))).Item=P1,II.SubMenu=Wd,II.ItemGroup=Vd,II.Divider=Xd,globalThis&&globalThis;const j1=Bb.createContext({});$I=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=$I(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=Bb.useContext(XY),a=i("menu",t),s=yY({[`${a}-item-divider-dashed`]:!!r},n);return Bb.createElement(Xd,Object.assign({className:s},o))},F1=Bb.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),M1=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=Bb.useContext(F1),{siderCollapsed:p}=Bb.useContext(j1);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const h={title:f};p||d||(h.title=null,h.open=!1);const m=Ls(r).length;let g=Bb.createElement(P1,Object.assign({},qs(e,["title","icon","danger"]),{className:yY({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?m+1:m)},n),title:"string"==typeof i?i:void 0}),oc(o,{className:yY(AJ(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=Bb.createElement("span",{className:`${s}-title-content`},r);return(!o||AJ(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?Bb.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(g=Bb.createElement(R1,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),g)),g},B1=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=Bb.useContext(F1),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Rd();let d;if(r){const e=AJ(o)&&"span"===o.type;d=Bb.createElement(Bb.Fragment,null,oc(r,{className:yY(AJ(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:Bb.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?Bb.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):Bb.createElement("span",{className:`${s}-title-content`},o);const p=Bb.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return Bb.createElement(F1.Provider,{value:p},Bb.createElement(Wd,Object.assign({},qs(e,["icon"]),{title:d,popupClassName:yY(s,n,`${s}-${i||c}`)})))},H1={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"},U1=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:H1}))}));globalThis&&globalThis;const z1=Bb.createContext(null);AI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},W1=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},V1=e=>Object.assign({},ZY(e)),X1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:w,dangerItemColor:E,dangerItemHoverColor:x,dangerItemSelectedColor:_,dangerItemActiveBg:S,dangerItemSelectedBg:O,itemHoverBg:k,itemActiveBg:C,menuSubMenuBg:T,horizontalItemSelectedColor:D,horizontalItemSelectedBg:N,horizontalItemBorderRadius:R,horizontalItemHoverBg:I,popupBg:$}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},V1(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:C}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:C}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},V1(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:$},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:c,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${f}`,`opacity ${g} ${f}`].join(",")}}}}}},K1=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},q1=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},K1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},K1(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},qY),{paddingInline:f})}}]},Y1=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},J1=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Q1=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:m,lineType:g,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Y1(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},Y1(e)),J1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),J1(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};PI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=Bb.useContext(z1),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=Bb.useContext(XY),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:b,siderCollapsed:y,items:v,children:w,rootClassName:E,mode:x,selectable:_,onClick:S,overflowedIndicatorPopupClassName:O}=e,k=qs(PI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),C=Jd(v)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const T=Dl((function(){var e;null==S||S.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),D=i.mode||x,N=null!=_?_:i.selectable,R=Bb.useMemo((()=>void 0!==y?y:b),[b,y]),I={horizontal:{motionName:`${u}-slide-up`},inline:rQ(u),other:{motionName:`${u}-zoom-big`}},$=a("menu",d||i.prefixCls),[A,P]=((e,t)=>Pl("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:h,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:w}=e,E=a/7*5,x=$l(e,{menuArrowSize:E,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*E+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),_=$l(x,{itemColor:s,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:w,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[Q1(x),G1(x),q1(x),X1(x,"light"),X1(_,"dark"),W1(x),o0(x),zZ(x,"slide-up"),zZ(x,"slide-down"),r0(x,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:h,lineHeight:m,colorBgElevated:g,marginXXS:b,padding:y,fontSize:v,controlHeightSM:w,fontSizeLG:E,colorTextLightSolid:x,colorErrorHover:_}=e,S=new GC(x).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:m,collapsedWidth:2*h,popupBg:g,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*h+"px",iconSize:v,iconMarginInlineEnd:w-v,collapsedIconSize:E,groupTitleFontSize:v,darkItemDisabledColor:new GC(x).setAlpha(.25).toRgbString(),darkItemColor:S,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:S,darkItemHoverColor:x,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))($,!o),j=yY(`${$}-${h}`,null==c?void 0:c.className,p);let L;if("function"==typeof m)L=m;else if(null===m||!1===m)L=null;else if(null===i.expandIcon||!1===i.expandIcon)L=null;else{const e=null!=m?m:i.expandIcon;L=oc(e,{className:yY(`${$}-submenu-expand-icon`,AJ(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const F=Bb.useMemo((()=>({prefixCls:$,inlineCollapsed:R||!1,direction:l,firstLevel:!0,theme:h,mode:D,disableMenuItemTitleTooltip:g})),[$,R,l,g,h]);return A(Bb.createElement(z1.Provider,{value:null},Bb.createElement(F1.Provider,{value:F},Bb.createElement(II,Object.assign({getPopupContainer:s,overflowedIndicator:Bb.createElement(U1,null),overflowedIndicatorPopupClassName:yY($,`${$}-${h}`,O),mode:D,selectable:N,onClick:T},k,{inlineCollapsed:R,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:j,prefixCls:$,direction:l,defaultMotions:I,expandIcon:L,ref:t,rootClassName:yY(E,P)}),C))))})),e2=Bb.forwardRef(((e,t)=>{const n=Bb.useRef(null),r=Bb.useContext(j1);return Bb.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),Bb.createElement(Z1,Object.assign({ref:n},e,r))}));e2.Item=M1,e2.SubMenu=B1,e2.Divider=L1,e2.ItemGroup=Vd;const t2=e2,n2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),r2=e=>({borderColor:e.hoverBorderColor}),o2=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0}),i2=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},r2($l(e,{hoverBorderColor:e.colorBorder})))}),a2=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},s2=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),l2=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},o2($l(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},o2($l(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},c2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},n2(e.colorTextPlaceholder)),{"&:hover":Object.assign({},r2(e)),"&:focus, &-focused":Object.assign({},o2(e)),"&-disabled, &[disabled]":Object.assign({},i2(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a2(e)),"&-sm":Object.assign({},s2(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u2=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},a2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},s2(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},d2=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),c2(e)),l2(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},p2=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},f2=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c2(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},r2(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),p2(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),l2(e,`${t}-affix-wrapper`))}},h2=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},YY(e)),u2(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},i2(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}}}})}},m2=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},g2=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},b2=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,controlOutlineWidth:h,controlOutline:m,colorErrorOutline:g,colorWarningOutline:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,3),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:f,hoverBorderColor:f,activeShadow:`0 0 0 ${h}px ${m}`,errorActiveShadow:`0 0 0 ${h}px ${g}`,warningActiveShadow:`0 0 0 ${h}px ${b}`}},y2=Pl("Input",(e=>{const t=$l(e,Qd(e));return[d2(t),g2(t),f2(t),h2(t),m2(t),Oc(t)]}),b2),v2=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=yY({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=yY({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=Bb.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return Bb.createElement("span",{className:yY(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},w2=new nC("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),E2=e=>({height:e,lineHeight:`${e}px`}),x2=e=>Object.assign({width:e},E2(e)),_2=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:w2,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),S2=e=>Object.assign({width:5*e,minWidth:5*e},E2(e)),O2=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},x2(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},x2(o)),[`${t}${t}-sm`]:Object.assign({},x2(i))}},k2=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},S2(t)),[`${r}-lg`]:Object.assign({},S2(o)),[`${r}-sm`]:Object.assign({},S2(i))}},C2=e=>Object.assign({width:e},E2(e)),T2=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},C2(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},C2(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},D2=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},N2=e=>Object.assign({width:2*e,minWidth:2*e},E2(e)),R2=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},N2(r))},D2(e,r,n)),{[`${n}-lg`]:Object.assign({},N2(o))}),D2(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},N2(i))}),D2(e,i,`${n}-sm`))},I2=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},x2(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},x2(c)),[`${n}-sm`]:Object.assign({},x2(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},R2(e)),O2(e)),k2(e)),T2(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},_2(e))}}},$2=Pl("Skeleton",(e=>{const{componentCls:t}=e,n=$l(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[I2(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),A2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},P2=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:A2}))})),j2=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=wa(Array(i)).map(((e,n)=>Bb.createElement("li",{key:n,style:{width:t(n)}})));return Bb.createElement("ul",{className:yY(n,r),style:o},a)},L2=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return Bb.createElement("h3",{className:yY(t,n),style:Object.assign({width:r},o)})},F2=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,skeleton:h}=Bb.useContext(XY),m=p("skeleton",t),[g,b]=$2(m);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Zd(s));a=Bb.createElement("div",{className:`${m}-header`},Bb.createElement(v2,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Zd(l));r=Bb.createElement(L2,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Zd(c));o=Bb.createElement(j2,Object.assign({},n))}p=Bb.createElement("div",{className:`${m}-content`},r,o)}const y=yY(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:u,[`${m}-rtl`]:"rtl"===f,[`${m}-round`]:d},null==h?void 0:h.className,r,o,b);return g(Bb.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,p))}return void 0!==a?a:null};F2.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=Bb.useContext(XY),l=s("skeleton",t),[c,u]=$2(l),d=qs(e,["prefixCls"]),p=yY(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(Bb.createElement("div",{className:p},Bb.createElement(v2,Object.assign({prefixCls:`${l}-button`,size:a},d))))},F2.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=Bb.useContext(XY),l=s("skeleton",t),[c,u]=$2(l),d=qs(e,["prefixCls","className"]),p=yY(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(Bb.createElement("div",{className:p},Bb.createElement(v2,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},F2.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=Bb.useContext(XY),l=s("skeleton",t),[c,u]=$2(l),d=qs(e,["prefixCls"]),p=yY(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(Bb.createElement("div",{className:p},Bb.createElement(v2,Object.assign({prefixCls:`${l}-input`,size:a},d))))},F2.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=Bb.useContext(XY),s=a("skeleton",t),[l,c]=$2(s),u=yY(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(Bb.createElement("div",{className:u},Bb.createElement("div",{className:yY(`${s}-image`,n),style:o},Bb.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},Bb.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},F2.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=Bb.useContext(XY),l=s("skeleton",t),[c,u]=$2(l),d=yY(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),p=null!=a?a:Bb.createElement(P2,null);return c(Bb.createElement("div",{className:d},Bb.createElement("div",{className:yY(`${l}-image`,n),style:o},p)))};const M2=F2,B2={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"},H2=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:B2}))})),U2=Bb.createContext(null);jI=Bb.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return Bb.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:yY(n,a&&"".concat(n,"-active"),r),ref:t},l)})),LI=["key","forceRender","style","className"],FI={width:0,height:0,left:0,top:0},MI=.1,BI=.01,HI=20,UI=Math.pow(.995,HI),zI={width:0,height:0,left:0,top:0,right:0},GI="TABS_DQ";const z2=Bb.forwardRef(ap);WI=Bb.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==xi(a)||Bb.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?Bb.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const G2=Bb.memo(Bb.forwardRef(sp),(function(e,t){return t.tabMoving}));VI=function(e){function t(){LC.cancel(c.current)}var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicatorSize,a=Ua(Bb.useState(),2),s=a[0],l=a[1],c=Bb.useRef(),u=function(e){return"function"==typeof i?i(e):"number"==typeof i?i:e};return Bb.useEffect((function(){var e={};return n&&(r?(o?(e.right=n.right+n.width/2,e.transform="translateX(50%)"):(e.left=n.left+n.width/2,e.transform="translateX(-50%)"),e.width=u(n.width)):(e.top=n.top+n.height/2,e.transform="translateY(-50%)",e.height=u(n.height))),t(),c.current=LC((function(){l(e)})),t}),[n,r,o,i]),{style:s}},XI=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},KI=function(e,t){return e[t?0:1]};const W2=Bb.forwardRef(cp);qI=["renderTabBar"],YI=["label","key"],JI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],QI=0,ZI=Bb.forwardRef(dp);const V2={motionAppear:!1,motionEnter:!0,motionLeave:!0};e$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[zZ(e,"slide-up"),zZ(e,"slide-down")]]},K2=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},q2=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},YY(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},qY),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Y2=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},J2=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Q2=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},eJ(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Z2=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},e5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},eJ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Q2(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},t5=Pl("Tabs",(e=>{const t=$l(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[J2(t),Z2(t),Y2(t),q2(t),K2(t),e5(t),X2(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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})));t$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:p,style:f,indicatorSize:h}=e,m=t$(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:g,moreIcon:b=Bb.createElement(U1,null)}=m,{direction:y,tabs:v,getPrefixCls:w,getPopupContainer:E}=Bb.useContext(XY),x=w("tabs",g),[_,S]=t5(x);let O;"editable-card"===t&&(O={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:Bb.createElement(DJ,null),addIcon:l||Bb.createElement(H2,null),showAdd:!0!==a});const k=w(),C=function(e,t){return e||function(e){return e.filter((e=>e))}(Ls(t).map((e=>{if(Bb.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=e$(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(d,u),T=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},V2),{motionName:oQ(e,"switch")})),n}(x,p),D=pQ(o),N=Object.assign(Object.assign({},null==v?void 0:v.style),f);return _(Bb.createElement(ZI,Object.assign({direction:y,getPopupContainer:E,moreTransitionName:`${k}-slide-up`},m,{items:C,className:yY({[`${x}-${D}`]:D,[`${x}-card`]:["card","editable-card"].includes(t),[`${x}-editable-card`]:"editable-card"===t,[`${x}-centered`]:s},null==v?void 0:v.className,n,r,S),popupClassName:yY(c,S),style:N,editable:O,moreIcon:b,prefixCls:x,animated:T,indicatorSize:null!=h?h:null==v?void 0:v.indicatorSize})))};n5.TabPane=()=>null;const r5=n5,o5=Bb.createContext({}),i5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s5=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"}],o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),l5=Pl("Grid",(e=>[i5(e)])),c5=Pl("Grid",(e=>{const t=$l(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[a5(t),s5(t,""),s5(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},s5(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));n$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=Bb.useContext(XY),{gutter:o,wrap:i}=Bb.useContext(o5),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:p,children:f,flex:h,style:m}=e,g=n$(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,v]=c5(b);let w={};u5.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete g[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const E=yY(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},p,w,v),x={};if(o&&o[0]>0){const e=o[0]/2;x.paddingLeft=e,x.paddingRight=e}return h&&(x.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==i||x.minWidth||(x.minWidth=0)),y(Bb.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign({},x),m),className:E,ref:t}),f))}));r$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=r$(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=Bb.useContext(XY),[f,h]=Bb.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,g]=Bb.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=pp(o,m),y=pp(r,m),v=Bb.useRef(l),w=vd();Bb.useEffect((()=>{const e=w.subscribe((e=>{g(e);const t=v.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const E=d("row",n),[x,_]=l5(E),S=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?S[0]/-2:void 0;C&&(k.marginLeft=C,k.marginRight=C),[,k.rowGap]=S;const[T,D]=S,N=Bb.useMemo((()=>({gutter:[T,D],wrap:c})),[T,D,c]);return x(Bb.createElement(o5.Provider,{value:N},Bb.createElement("div",Object.assign({},u,{className:O,style:Object.assign(Object.assign({},k),a),ref:t}),s)))}));(o$=Aq.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=Ua(Aq.useState(l||o),2),d=u[0],p=u[1];return Aq.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?Aq.createElement("div",{ref:t,className:yY("".concat(r,"-content"),(n={},Si(n,"".concat(r,"-content-active"),l),Si(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},Aq.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",i$=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],a$=Aq.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,d=e.forceRender,p=e.className,f=e.prefixCls,h=e.collapsible,m=e.accordion,g=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,x=e.children,_=Oi(e,i$),S="disabled"===h,O="header"===h,k="icon"===h,C=null!=b&&"boolean"!=typeof b,T=function(){null==u||u(g)},D="function"==typeof v?v(e):Aq.createElement("i",{className:"arrow"});return D&&(D=Aq.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(h)?T:void 0},D)),o=yY((Si(n={},"".concat(f,"-item"),!0),Si(n,"".concat(f,"-item-active"),c),Si(n,"".concat(f,"-item-disabled"),S),n),p),i={className:yY(l,(Si(r={},"".concat(f,"-header"),!0),Si(r,"".concat(f,"-header-collapsible-only"),O),Si(r,"".concat(f,"-icon-collapsible-only"),k),r)),"aria-expanded":c,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==XT.ENTER&&e.which!==XT.ENTER||T()}},O||k||(i.onClick=T,i.role=m?"tab":"button",i.tabIndex=S?-1:0),Aq.createElement("div",pa({},_,{ref:t,className:o}),Aq.createElement("div",i,s&&D,Aq.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===h?T:void 0},y),C&&Aq.createElement("div",{className:"".concat(f,"-extra")},b)),Aq.createElement(fJ,pa({visible:c,leavedClassName:"".concat(f,"-content-hidden")},w,{forceRender:d,removeOnLeave:E}),(function(e,t){return Aq.createElement(o$,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:d,role:m?"tabpanel":void 0},x)})))})),s$=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],l$=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,p=e.label,f=e.key,h=e.collapsible,m=e.onItemClick,g=e.destroyInactivePanel,b=Oi(e,s$),y=String(null!=f?f:t),v=null!=h?h:o,w=null!=g?g:i;return u=r?s[0]===y:s.indexOf(y)>-1,Aq.createElement(a$,pa({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==m||m(e))},destroyInactivePanel:w}),d)}))},c$=function(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=(p=e.props).header,h=p.headerClass,m=p.destroyInactivePanel,g=p.collapsible,b=p.onItemClick,y=o?l[0]===d:l.indexOf(d)>-1,w={key:d,panelKey:d,header:f,headerClass:h,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=g?g:i},"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),Aq.cloneElement(e,w))):null};const f5=Object.assign(Aq.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,d=e.openMotion,p=e.expandIcon,f=e.activeKey,h=e.defaultActiveKey,m=e.onChange,g=e.items,b=yY(o,e.className),y=Ua(Il([],{value:f,onChange:function(e){return null==m?void 0:m(e)},defaultValue:h,postState:fp}),2),v=y[0],w=y[1];return Ta(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?l$(e,n):Ls(t).map((function(e,t){return c$(e,t,n)}))}(g,c,{prefixCls:o,accordion:l,openMotion:d,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(wa(v),[e])}))},activeKey:v}),Aq.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:a$}),h5=Bb.forwardRef(((e,t)=>{const{getPrefixCls:n}=Bb.useContext(XY),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=yY({[`${a}-no-arrow`]:!i},o);return Bb.createElement(f5.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),m5=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSize:m,fontSizeLG:g,lineHeight:b,marginSM:y,paddingSM:v,paddingLG:w,paddingXS:E,motionDurationSlow:x,fontSizeIcon:_,contentPadding:S}=e,O=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},YY(e)),{backgroundColor:o,border:O,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:b,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:m*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:_,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:v-E}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:g,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:g*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},g5=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},b5=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},y5=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},v5=Pl("Collapse",(e=>{const t=$l(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[m5(t),b5(t),y5(t),g5(t),o0(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),w5=Bb.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=Bb.useContext(XY),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:h}=e,m=pQ((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),g=n("collapse",i),b=n(),[y,v]=v5(g),w=Bb.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),E=yY(`${g}-icon-position-${w}`,{[`${g}-borderless`]:!c,[`${g}-rtl`]:"rtl"===r,[`${g}-ghost`]:!!u,[`${g}-${m}`]:"middle"!==m},null==o?void 0:o.className,a,s,v),x=Object.assign(Object.assign({},rQ(b)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),_=Bb.useMemo((()=>f?Ls(f).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return oc(e,Object.assign(Object.assign({},qs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(Bb.createElement(f5,Object.assign({ref:t,openMotion:x},qs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=h?h(t):Bb.createElement($1,{rotate:t.isActive?90:void 0});return oc(n,(()=>({className:yY(n.props.className,`${g}-arrow`)})))},prefixCls:g,className:E,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),_))})),E5=Object.assign(w5,{Panel:h5}),x5=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},YY(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},_5=Pl("Divider",(e=>{const t=$l(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[x5(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));u$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:r}=Bb.useContext(XY),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,h=u$(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),m=t("divider",o),[g,b]=_5(m),y=!!u,v="left"===a&&null!=s,w="right"===a&&null!=s,E=yY(m,null==r?void 0:r.className,b,`${m}-${i}`,{[`${m}-with-text`]:y,[`${m}-with-text${a.length>0?`-${a}`:a}`]:y,[`${m}-dashed`]:!!d,[`${m}-plain`]:!!p,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:v,[`${m}-no-default-orientation-margin-right`]:w},l,c),x=Bb.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),_=Object.assign(Object.assign({},v&&{marginLeft:x}),w&&{marginRight:x});return g(Bb.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),u&&"vertical"!==i&&Bb.createElement("span",{className:`${m}-inner-text`,style:_},u)))},O5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},k5=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:O5}))}));d$=function(){function e(t){var n,r,o,i;Ci(this,e),Si(this,"origin",""),Si(this,"negative",void 0),Si(this,"integer",void 0),Si(this,"decimal",void 0),Si(this,"decimalLen",void 0),Si(this,"empty",void 0),Si(this,"nan",void 0),mp(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(bp(n=t)&&(n=Number(n)),wp(n="string"==typeof n?n:vp(n))?(r=gp(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return Di(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=gp(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":gp("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),p$=function(){function e(t){Ci(this,e),Si(this,"origin",""),Si(this,"number",void 0),Si(this,"empty",void 0),mp(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Di(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":vp(this.number)}}]),e}(),f$=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m=e.inputElement,g=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,w=e.addonAfter,E=e.className,x=e.style,_=e.disabled,S=e.readOnly,O=e.focused,k=e.triggerFocus,C=e.allowClear,T=e.value,D=e.handleReset,N=e.hidden,R=e.classes,I=e.classNames,$=e.dataAttrs,A=e.styles,P=e.components,j=(null==P?void 0:P.affixWrapper)||"span",L=(null==P?void 0:P.groupWrapper)||"span",F=(null==P?void 0:P.wrapper)||"span",M=(null==P?void 0:P.groupAddon)||"span",B=Bb.useRef(null),H=Bb.cloneElement(m,{value:T,hidden:N,className:yY(null===(t=m.props)||void 0===t?void 0:t.className,!Sp(e)&&!_p(e)&&E)||null,style:xa(xa({},null===(n=m.props)||void 0===n?void 0:n.style),Sp(e)||_p(e)?{}:x)});return Sp(e)&&(o="".concat(g,"-affix-wrapper"),i=yY(o,(Si(r={},"".concat(o,"-disabled"),_),Si(r,"".concat(o,"-focused"),O),Si(r,"".concat(o,"-readonly"),S),Si(r,"".concat(o,"-input-with-clear-btn"),y&&C&&T),r),!_p(e)&&E,null==R?void 0:R.affixWrapper,null==I?void 0:I.affixWrapper),a=(y||C)&&Aq.createElement("span",{className:yY("".concat(g,"-suffix"),null==I?void 0:I.suffix),style:null==A?void 0:A.suffix},C?(p=!_&&!S&&T,f="".concat(g,"-clear-icon"),h="object"===xi(C)&&null!=C&&C.clearIcon?C.clearIcon:"โœ–",Aq.createElement("span",{onClick:D,onMouseDown:function(e){return e.preventDefault()},className:yY(f,(d={},Si(d,"".concat(f,"-hidden"),!p),Si(d,"".concat(f,"-has-suffix"),!!y),d)),role:"button",tabIndex:-1},h)):null,y),H=Aq.createElement(j,pa({className:i,style:xa(xa({},_p(e)?void 0:x),null==A?void 0:A.affixWrapper),hidden:!_p(e)&&N,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==k||k())}},null==$?void 0:$.affixWrapper,{ref:B}),b&&Aq.createElement("span",{className:yY("".concat(g,"-prefix"),null==I?void 0:I.prefix),style:null==A?void 0:A.prefix},b),Bb.cloneElement(m,{value:T,hidden:null}),a)),_p(e)?(s="".concat(g,"-group"),l="".concat(s,"-addon"),c=yY("".concat(g,"-wrapper"),s,null==R?void 0:R.wrapper),u=yY("".concat(g,"-group-wrapper"),E,null==R?void 0:R.group),Aq.createElement(L,{className:u,style:x,hidden:N},Aq.createElement(F,{className:c},v&&Aq.createElement(M,{className:l},v),Bb.cloneElement(H,{hidden:null}),w&&Aq.createElement(M,{className:l},w)))):H},h$=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],m$=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,d=e.onFocus,p=e.onBlur,f=e.onPressEnter,h=e.onKeyDown,m=e.prefixCls,g=void 0===m?"rc-input":m,b=e.disabled,y=e.htmlSize,v=e.className,w=e.maxLength,E=e.suffix,x=e.showCount,_=e.type,S=void 0===_?"text":_,O=e.classes,k=e.classNames,C=e.styles,T=Oi(e,h$),D=Ua(Il(e.defaultValue,{value:e.value}),2),N=D[0],R=D[1],I=Ua(Bb.useState(!1),2),$=I[0],A=I[1],P=Bb.useRef(null),j=function(e){P.current&&kp(P.current,e)};return Bb.useImperativeHandle(t,(function(){return{focus:j,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=P.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current}})),Bb.useEffect((function(){A((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&R(t.target.value),P.current&&Op(P.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==h||h(e)},o=function(e){A(!0),null==d||d(e)},i=function(e){A(!1),null==p||p(e)},a=function(e){R(""),j(),P.current&&Op(P.current,e,u)},s=function(){var t=qs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Aq.createElement("input",pa({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:yY(g,Si({},"".concat(g,"-disabled"),b),null==k?void 0:k.input),style:null==C?void 0:C.input,ref:P,size:y,type:S}))},l=function(){var e,t,n,r=Number(w)>0;return E||x?(t=wa(e=Cp(N)).length,n="object"===xi(x)?x.formatter({value:e,count:t,maxLength:w}):"".concat(t).concat(r?" / ".concat(w):""),Aq.createElement(Aq.Fragment,null,!!x&&Aq.createElement("span",{className:yY("".concat(g,"-show-count-suffix"),Si({},"".concat(g,"-show-count-has-suffix"),!!E),null==k?void 0:k.count),style:xa({},null==C?void 0:C.count)},n),E)):null},Aq.createElement(f$,pa({},T,{prefixCls:g,className:v,inputElement:s(),handleReset:a,value:Cp(N),focused:$,triggerFocus:j,suffix:l(),disabled:b,classes:O,classNames:k,styles:C}))})),g$=function(){var e=Ua(Bb.useState(!1),2),t=e[0],n=e[1];return Ek((function(){n(F0())}),[]),t},b$=200,y$=600,v$=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],w$=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],E$=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},x$=function(e){var t=Ep(e);return t.isInvalidate()?null:t},_$=Bb.forwardRef((function(e,t){function n(e,t){xe(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R=e.prefixCls,I=void 0===R?"rc-input-number":R,$=e.className,A=e.style,P=e.min,j=e.max,L=e.step,F=void 0===L?1:L,M=e.defaultValue,B=e.value,H=e.disabled,U=e.readOnly,z=e.upHandler,G=e.downHandler,W=e.keyboard,V=e.controls,X=void 0===V||V,K=e.classNames,q=e.stringMode,Y=e.parser,J=e.formatter,Q=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=Oi(e,v$),ie="".concat(I,"-input"),ae=Bb.useRef(null),se=Ua(Bb.useState(!1),2),le=se[0],ce=se[1],ue=Bb.useRef(!1),de=Bb.useRef(!1),pe=Bb.useRef(!1),fe=Ua(Bb.useState((function(){return Ep(null!=B?B:M)})),2),he=fe[0],me=fe[1],ge=Bb.useCallback((function(e,t){if(!t)return Q>=0?Q:Math.max(yp(e),yp(F))}),[Q,F]),be=Bb.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=Bb.useRef(""),ve=Bb.useCallback((function(e,t){var n,r;return J?J(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?vp(e):e,t||(r=ge(n,t),wp(n)&&(Z||r>=0)&&(n=xp(n,Z||".",r))),n)}),[J,ge,Z]),we=Ua(Bb.useState((function(){var e=null!=M?M:B;return he.isInvalidate()&&["string","number"].includes(xi(e))?Number.isNaN(e)?"":e:ve(he.toString(),!1)})),2),Ee=we[0],xe=we[1];return ye.current=Ee,o=Bb.useMemo((function(){return x$(j)}),[j,Q]),i=Bb.useMemo((function(){return x$(P)}),[P,Q]),a=Bb.useMemo((function(){return!(!o||!he||he.isInvalidate())&&o.lessEquals(he)}),[o,he]),s=Bb.useMemo((function(){return!(!i||!he||he.isInvalidate())&&he.lessEquals(i)}),[i,he]),k=ae.current,C=le,T=Bb.useRef(null),l=[function(){var e,t,n,r,o;try{t=k.selectionEnd,r=(n=k.value).substring(0,e=k.selectionStart),o=n.substring(t),T.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(lq){}},function(){var e,t,n,r,o,i;if(k&&T.current&&C)try{n=(t=T.current).beforeTxt,r=t.start,o=(e=k.value).length,e.endsWith(t.afterTxt)?o=e.length-T.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),k.setSelectionRange(o,o)}catch(lq){Ta(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(lq.message))}}],c=Ua(l,2),u=c[0],d=c[1],p=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!p(e)},h=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=p(i)||i,a=!0),U||H||!a?he:(r=i.toString(),(o=ge(r,t))>=0&&(i=Ep(xp(r,".",o)),f(i)||(i=Ep(xp(r,".",o,!0)))),i.equals(he)||(void 0===B&&me(i),null==ee||ee(i.isEmpty()?null:E$(q,i)),void 0===B&&n(i,t)),i)},D=Bb.useRef(0),N=function(){LC.cancel(D.current)},Bb.useEffect((function(){return N}),[]),m=function(e){N(),D.current=LC((function(){e()}))},g=function e(t){var n;u(),ye.current=t,xe(t),de.current||(n=Ep(be(t))).isNaN()||h(n,!0),null==te||te(t),m((function(){var n=t;Y||(n=t.replace(/ใ€‚/g,".")),n!==t&&e(n)}))},b=function(){de.current=!0},y=function(){de.current=!1,g(ae.current.value)},v=function(e){g(e.target.value)},w=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=Ep(pe.current?Dp(F):F),e||(n=n.negate()),r=(he||Ep(0)).add(n.toString()),o=h(r,!1),null==re||re(E$(q,o),{offset:pe.current?Dp(F):F,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},E=function(e){var t=Ep(be(Ee)),r=t;r=t.isNaN()?h(he,e):h(t,e),void 0!==B?n(he,!1):r.isNaN()||n(r,!1)},x=function(){ue.current=!0},_=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,pe.current=n,"Enter"===t&&(de.current||(ue.current=!1),E(!1),null==ne||ne(e)),!1!==W&&!de.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(w("Up"===t||"ArrowUp"===t),e.preventDefault())},S=function(){ue.current=!1,pe.current=!1},O=function(){E(!1),ce(!1),ue.current=!1},xk((function(){he.isInvalidate()||n(he,!1)}),[Q]),xk((function(){var e,t=Ep(B);me(t),e=Ep(be(Ee)),t.equals(e)&&ue.current&&!J||n(t,ue.current)}),[B]),xk((function(){J&&d()}),[Ee]),Bb.createElement("div",{className:yY(I,null==K?void 0:K.input,$,(r={},Si(r,"".concat(I,"-focused"),le),Si(r,"".concat(I,"-disabled"),H),Si(r,"".concat(I,"-readonly"),U),Si(r,"".concat(I,"-not-a-number"),he.isNaN()),Si(r,"".concat(I,"-out-of-range"),!he.isInvalidate()&&!f(he)),r)),style:A,onFocus:function(){ce(!0)},onBlur:O,onKeyDown:_,onKeyUp:S,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:x},X&&Bb.createElement(Tp,{prefixCls:I,upNode:z,downNode:G,upDisabled:a,downDisabled:s,onStep:w}),Bb.createElement("div",{className:"".concat(ie,"-wrap")},Bb.createElement("input",pa({autoComplete:"off",role:"spinbutton","aria-valuemin":P,"aria-valuemax":j,"aria-valuenow":he.isInvalidate()?null:he.toString(),step:F},oe,{ref:Ms(ae,t),className:ie,value:Ee,onChange:v,disabled:H,readOnly:U}))))})),(S$=Bb.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,p=e.classNames,f=Oi(e,w$),h=Bb.useRef(null);return Bb.createElement(f$,{inputElement:Bb.createElement(_$,pa({prefixCls:o,disabled:n,classNames:p,ref:Ms(h,t)},f)),className:d,triggerFocus:function(e){h.current&&kp(h.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const C5=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},T5=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:p,handleHoverColor:f,paddingInline:h,paddingBlock:m,handleBg:g,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:v,borderRadiusLG:w,controlWidth:E,handleVisible:x,handleBorderColor:_}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),c2(e)),l2(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:v,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},r2(e)),"&-focused":Object.assign({},o2(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},YY(e)),u2(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:v}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},i2(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{width:"100%",padding:`${m}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),n2(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===x?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${_}`,transition:`all ${p} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${_}`,borderEndEndRadius:i}},C5(e,"lg")),C5(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},D5=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},c2(e)),l2(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},r2(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},N5=Pl("InputNumber",(e=>{const t=$l(e,Qd(e));return[T5(t),D5(t),Oc(t)]}),(e=>Object.assign(Object.assign({},b2(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));O$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=Bb.useContext(XY),o=Bb.useRef(null);Bb.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,bordered:f=!0,readOnly:h,status:m,controls:g}=e,b=O$(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,w]=N5(y),{compactSize:E,compactItemClassnames:x}=yQ(y,r);let _=Bb.createElement(k5,{className:`${y}-handler-up-inner`}),S=Bb.createElement(u1,{className:`${y}-handler-down-inner`});const O="boolean"==typeof g?g:void 0;"object"==typeof g&&(_=void 0===g.upIcon?_:Bb.createElement("span",{className:`${y}-handler-up-inner`},g.upIcon),S=void 0===g.downIcon?S:Bb.createElement("span",{className:`${y}-handler-down-inner`},g.downIcon));const{hasFeedback:k,status:C,isFormItemInput:T,feedbackIcon:D}=Bb.useContext(hZ),N=H0(C,m),R=pQ((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),I=Bb.useContext(cJ),$=null!=l?l:I,A=yY({[`${y}-lg`]:"large"===R,[`${y}-sm`]:"small"===R,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:T},md(y,N),x,w),P=`${y}-group`;return v(Bb.createElement(S$,Object.assign({ref:o,disabled:$,className:yY(i,a),upHandler:_,downHandler:S,prefixCls:y,readOnly:h,controls:O,prefix:p,suffix:k&&D,addonAfter:d&&Bb.createElement(vQ,null,Bb.createElement(mZ,{override:!0,status:!0},d)),addonBefore:u&&Bb.createElement(vQ,null,Bb.createElement(mZ,{override:!0,status:!0},u)),classNames:{input:A},classes:{affixWrapper:yY(md(`${y}-affix-wrapper`,N,k),{[`${y}-affix-wrapper-sm`]:"small"===R,[`${y}-affix-wrapper-lg`]:"large"===R,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},w),wrapper:yY({[`${P}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:$},w),group:yY({[`${y}-group-wrapper-sm`]:"small"===R,[`${y}-group-wrapper-lg`]:"large"===R,[`${y}-group-wrapper-rtl`]:"rtl"===r},md(`${y}-group-wrapper`,N,k),w)}},b)))})),I5=R5;I5._InternalPanelDoNotUseOrYouWillBeFired=e=>Bb.createElement(EJ,{theme:{components:{InputNumber:{handleVisible:!0}}}},Bb.createElement(R5,Object.assign({},e)));const $5=I5;k$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:f,className:h,style:m,styles:g,rootClassName:b,onChange:y,classNames:v}=e,w=k$(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:E,direction:x,input:_}=Aq.useContext(XY),S=E("input",r),O=Bb.useRef(null),[k,C]=y2(S),{compactSize:T,compactItemClassnames:D}=yQ(S,x),N=pQ((e=>{var t;return null!==(t=null!=a?a:T)&&void 0!==t?t:e})),R=Aq.useContext(cJ),I=null!=s?s:R,{status:$,hasFeedback:A,feedbackIcon:P}=Bb.useContext(hZ),j=H0($,i),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!A,F=Bb.useRef(L);Bb.useEffect((()=>{F.current=L}),[L]);const M=Np(O,!0),B=(A||u)&&Aq.createElement(Aq.Fragment,null,u,A&&P);let H;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?H=d:d&&(H={clearIcon:Aq.createElement(CJ,null)}),k(Aq.createElement(m$,Object.assign({ref:Ms(t,O),prefixCls:S,autoComplete:null==_?void 0:_.autoComplete},w,{disabled:I,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==_?void 0:_.style),m),styles:Object.assign(Object.assign({},null==_?void 0:_.styles),g),suffix:B,allowClear:H,className:yY(h,b,D,null==_?void 0:_.className),onChange:e=>{M(),null==y||y(e)},addonAfter:p&&Aq.createElement(vQ,null,Aq.createElement(mZ,{override:!0,status:!0},p)),addonBefore:f&&Aq.createElement(vQ,null,Aq.createElement(mZ,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==_?void 0:_.classNames),{input:yY({[`${S}-sm`]:"small"===N,[`${S}-lg`]:"large"===N,[`${S}-rtl`]:"rtl"===x,[`${S}-borderless`]:!o},!L&&md(S,j),null==v?void 0:v.input,null===(n=null==_?void 0:_.classNames)||void 0===n?void 0:n.input,C)}),classes:{affixWrapper:yY({[`${S}-affix-wrapper-sm`]:"small"===N,[`${S}-affix-wrapper-lg`]:"large"===N,[`${S}-affix-wrapper-rtl`]:"rtl"===x,[`${S}-affix-wrapper-borderless`]:!o},md(`${S}-affix-wrapper`,j,A),C),wrapper:yY({[`${S}-group-rtl`]:"rtl"===x},C),group:yY({[`${S}-group-wrapper-sm`]:"small"===N,[`${S}-group-wrapper-lg`]:"large"===N,[`${S}-group-wrapper-rtl`]:"rtl"===x,[`${S}-group-wrapper-disabled`]:I},md(`${S}-group-wrapper`,j,A),C)}})))})),P5=A5,j5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},L5=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:j5}))})),F5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},M5=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:F5}))}));C$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rBb.createElement(e?M5:L5,null),H5={click:"onClick",hover:"onMouseOver"},U5=Bb.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=Bb.useState((()=>!!r&&n.visible)),a=Bb.useRef(null);Bb.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=Np(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:p}=e,f=C$(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=Bb.useContext(XY),m=h("input",d),g=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=B5}=e,i=H5[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return Bb.cloneElement(Bb.isValidElement(a)?a:Bb.createElement("span",null,a),s)})(g),y=yY(g,c,{[`${g}-${p}`]:!!p}),v=Object.assign(Object.assign({},qs(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:m,suffix:b});return p&&(v.size=p),Bb.createElement(P5,Object.assign({ref:Ms(t,a)},v))})),z5=U5;T$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:h}=e,m=T$(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=Bb.useContext(XY),y=Bb.useRef(!1),v=g("input-search",n),w=g("input",r),{compactSize:E}=yQ(v,b),x=pQ((e=>{var t;return null!==(t=null!=i?i:E)&&void 0!==t?t:e})),_=Bb.useRef(null),S=e=>{var t;document.activeElement===(null===(t=_.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;d&&d(null===(n=null===(t=_.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},k="boolean"==typeof s?Bb.createElement(p1,null):null,C=`${v}-button`;let T;const D=s||{},N=D.type&&!0===D.type.__ANT_BUTTON;T=N||"button"===D.type?oc(D,Object.assign({onMouseDown:S,onClick:e=>{var t,n;null===(n=null===(t=null==D?void 0:D.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},N?{className:C,size:x}:{})):Bb.createElement(rZ,{className:C,type:s?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:S,onClick:O,loading:c,icon:k},s),l&&(T=[T,oc(l,{key:"addonAfter"})]);const R=yY(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${x}`]:!!x,[`${v}-with-button`]:!!s},o);return Bb.createElement(P5,Object.assign({ref:Ms(_,t),onPressEnter:e=>{y.current||c||O(e)}},m,{size:x,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==h||h(e)},prefixCls:w,addonAfter:T,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),p&&p(e)},className:R,disabled:u}))})),W5=G5;D$=["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"],N$={},I$=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$$=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C,T,D,N,R,I,$=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Oi(e,I$),p=(d=Ua(Il(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=d[1],h=function(e){f(e.target.value),null==c||c(e)},m=Bb.useRef(),Bb.useImperativeHandle(t,(function(){return{textArea:m.current}})),g=Ua(Bb.useMemo((function(){return o&&"object"===xi(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=g[0],y=g[1],v=!!o,w=function(){try{if(document.activeElement===m.current){var e=m.current,t=e.scrollTop;m.current.setSelectionRange(e.selectionStart,e.selectionEnd),m.current.scrollTop=t}}catch(lq){}},E=Ua(Bb.useState(2),2),x=E[0],_=E[1],O=(S=Ua(Bb.useState(),2))[0],k=S[1],C=function(){_(0)},Ek((function(){v&&C()}),[r,b,y,v]),Ek((function(){if(0===x)_(1);else if(1===x){var e=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,h=arguments.length>1&&void 0!==t&&t,m=arguments.length>2&&void 0!==n?n:null,g=arguments.length>3&&void 0!==r?r:null;return R$||((R$=document.createElement("textarea")).setAttribute("tab-index","-1"),R$.setAttribute("aria-hidden","true"),document.body.appendChild(R$)),e.getAttribute("wrap")?R$.setAttribute("wrap",e.getAttribute("wrap")):R$.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&N$[l]?N$[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:D$.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(N$[l]=a),a)}(e,h),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,R$.setAttribute("style","".concat(o.sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),R$.value=e.value||e.placeholder||"",l=void 0,c=void 0,d=R$.scrollHeight,"border-box"===s?d+=a:"content-box"===s&&(d-=i),null===m&&null===g||(R$.value=" ",p=R$.scrollHeight-i,null!==m&&(l=p*m,"border-box"===s&&(l=l+i+a),d=Math.max(l,d)),null!==g&&(c=p*g,"border-box"===s&&(c=c+i+a),u=d>c?"":"hidden",d=Math.min(c,d))),f={height:d,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(m.current,!1,b,y);_(2),k(e)}else w()}),[x]),T=Bb.useRef(),D=function(){LC.cancel(T.current)},N=function(e){2===x&&(null==i||i(e),o&&(D(),T.current=LC((function(){C()}))))},Bb.useEffect((function(){return D}),[]),R=v?O:null,I=xa(xa({},s),R),0!==x&&1!==x||(I.overflowY="hidden",I.overflowX="hidden"),Bb.createElement(IC,{onResize:N,disabled:!(o||i)},Bb.createElement("textarea",pa({},u,{ref:m,style:I,className:yY($,a,Si({},"".concat($,"-disabled"),l)),disabled:l,value:p,onChange:h})))})),A$=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],P$=Aq.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b=e.defaultValue,y=e.value,v=e.onFocus,w=e.onBlur,E=e.onChange,x=e.allowClear,_=e.maxLength,S=e.onCompositionStart,O=e.onCompositionEnd,k=e.suffix,C=e.prefixCls,T=void 0===C?"rc-textarea":C,D=e.classes,N=e.showCount,R=e.className,I=e.style,$=e.disabled,A=e.hidden,P=e.classNames,j=e.styles,L=e.onResize,F=Oi(e,A$),M=Ua(Il(b,{value:y,defaultValue:b}),2),B=M[0],H=M[1],U=Bb.useRef(null),z=Ua(Aq.useState(!1),2),G=z[0],W=z[1],V=Ua(Aq.useState(!1),2),X=V[0],K=V[1],q=Aq.useRef(),Y=Aq.useRef(0),J=Ua(Aq.useState(null),2),Q=J[0],Z=J[1],ee=function(){var e;null===(e=U.current)||void 0===e||e.textArea.focus()};return Bb.useImperativeHandle(t,(function(){return{resizableTextArea:U.current,focus:ee,blur:function(){var e;null===(e=U.current)||void 0===e||e.textArea.blur()}}})),Bb.useEffect((function(){W((function(e){return!$&&e}))}),[$]),r=Number(_)>0,o=function(e){K(!0),q.current=B,Y.current=e.currentTarget.selectionStart,null==S||S(e)},i=function(e){var t,n;K(!1),t=e.currentTarget.value,r&&(t=Ip(Y.current>=_+1||Y.current===(null===(n=q.current)||void 0===n?void 0:n.length),q.current,t,_)),t!==B&&(H(t),Op(e.currentTarget,e,E,t)),null==O||O(e)},a=function(e){var t=e.target.value;!X&&r&&(t=Ip(e.target.selectionStart>=_+1||e.target.selectionStart===t.length||!e.target.selectionStart,B,t,_)),H(t),Op(e.currentTarget,e,E,t)},s=function(e){var t=F.onPressEnter,n=F.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){W(!0),null==v||v(e)},c=function(e){W(!1),null==w||w(e)},u=function(e){var t;H(""),ee(),Op(null===(t=U.current)||void 0===t?void 0:t.textArea,e,E)},d=Cp(B),!X&&r&&null==y&&(d=Rp(d,_)),p=k,N&&(h=wa(d).length,f="object"===xi(N)?N.formatter({value:d,count:h,maxLength:_}):"".concat(h).concat(r?" / ".concat(_):""),p=Aq.createElement(Aq.Fragment,null,p,Aq.createElement("span",{className:yY("".concat(T,"-data-count"),null==P?void 0:P.count),style:null==j?void 0:j.count},f))),m=function(e){var t;null==L||L(e),null!==(t=U.current)&&void 0!==t&&t.textArea.style.height&&Z(!0)},g=!F.autoSize&&!N&&!x,Aq.createElement(f$,{value:d,allowClear:x,handleReset:u,suffix:p,prefixCls:T,classes:{affixWrapper:yY(null==D?void 0:D.affixWrapper,(n={},Si(n,"".concat(T,"-show-count"),N),Si(n,"".concat(T,"-textarea-allow-clear"),x),n))},disabled:$,focused:G,className:R,style:xa(xa({},I),Q&&!g?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:A,inputElement:Aq.createElement($$,pa({},F,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==P?void 0:P.textarea,style:xa(xa({},null==j?void 0:j.textarea),{},{resize:null==I?void 0:I.resize}),disabled:$,prefixCls:T,onResize:m,ref:U}))})})),j$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c,rootClassName:u,className:d}=e,p=j$(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:f,direction:h}=Bb.useContext(XY),m=pQ(o),g=Bb.useContext(cJ),b=null!=i?i:g,{status:y,hasFeedback:v,feedbackIcon:w}=Bb.useContext(hZ),E=H0(y,a),x=Bb.useRef(null);Bb.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=x.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const 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)}}}(null===(n=null===(t=x.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.blur()}}}));const _=f("input",n);let S;"object"==typeof s&&(null==s?void 0:s.clearIcon)?S=s:s&&(S={clearIcon:Bb.createElement(CJ,null)});const[O,k]=y2(_);return O(Bb.createElement(P$,Object.assign({},p,{disabled:b,allowClear:S,className:yY(d,u),classes:{affixWrapper:yY(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:"rtl"===h,[`${_}-affix-wrapper-borderless`]:!r,[`${_}-affix-wrapper-sm`]:"small"===m,[`${_}-affix-wrapper-lg`]:"large"===m,[`${_}-textarea-show-count`]:l},md(`${_}-affix-wrapper`,E),k)},classNames:Object.assign(Object.assign({},c),{textarea:yY({[`${_}-borderless`]:!r,[`${_}-sm`]:"small"===m,[`${_}-lg`]:"large"===m},md(_,E),k,null==c?void 0:c.textarea)}),prefixCls:_,suffix:v&&Bb.createElement("span",{className:`${_}-textarea-suffix`},w),showCount:l,ref:x})))})),X5=P5;X5.Group=e=>{const{getPrefixCls:t,direction:n}=Bb.useContext(XY),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=y2(a),c=yY(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=Bb.useContext(hZ),d=Bb.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(Bb.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},Bb.createElement(hZ.Provider,{value:d},e.children)))},X5.Search=W5,X5.TextArea=V5,X5.Password=z5;const K5=X5;L$=Bb.createContext(null),F$=[],M$="rc-util-locker-".concat(Date.now()),B$=0,H$=function(e){return!1!==e&&(Ra()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},U$=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_=e.open,S=e.autoLock,O=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Ua(Bb.useState(_),2),a=i[1],s=i[0]||_,Bb.useEffect((function(){(r||_)&&a(_)}),[_,r]),c=(l=Ua(Bb.useState((function(){return H$(O)})),2))[0],u=l[1],Bb.useEffect((function(){var e=H$(O);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Ua(Bb.useState((function(){return Ra()?document.createElement("div"):null})),1)[0],o=Bb.useRef(!1),i=Bb.useContext(L$),a=Ua(Bb.useState(F$),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(wa(t))}))});return Ek((function(){return e?i?i(t):t():n(),n}),[e]),Ek((function(){s.length&&(s.forEach((function(e){return e()})),l(F$))}),[s]),[r,c]}(s&&!c),f=(p=Ua(d,2))[0],h=p[1],m=null!=c?c:f,w=S&&_&&Ra()&&(m===f||m===document.body),E=!!w,x=Ua(Bb.useState((function(){return B$+=1,"".concat(M$,"_").concat(B$)})),1)[0],Ek((function(){var e,t;return E?(e=Ic(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ma("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),x)):Fa(x),function(){Fa(x)}}),[E,x]),g=null,o&&Hs(o)&&t&&(g=o.ref),b=Bs(g,t),s&&Ra()&&void 0!==c?(y=!1===m||false,v=o,t&&(v=Bb.cloneElement(o,{ref:b})),Bb.createElement(L$.Provider,{value:h},y?v:e_.createPortal(v,m))):null})),z$=Bb.createContext(null),G$=Bb.createContext({}),W$=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef,a=e.id,s={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},l=Bs(Bb.useContext(G$).panel,i);return Bb.createElement(Bb.Fragment,null,Bb.createElement("div",pa({id:a,className:yY("".concat(t,"-content"),n),style:xa({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))},V$={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},X$=Bb.forwardRef(Ap),K$=function(e){var t,n,r,o,i,a,s,l=e.open,c=void 0!==l&&l,u=e.prefixCls,d=void 0===u?"rc-drawer":u,p=e.placement,f=void 0===p?"right":p,h=e.autoFocus,m=void 0===h||h,g=e.keyboard,b=void 0===g||g,y=e.width,v=void 0===y?378:y,w=e.mask,E=void 0===w||w,x=e.maskClosable,_=void 0===x||x,S=e.getContainer,O=e.forceRender,k=e.afterOpenChange,C=e.destroyOnClose,T=e.onMouseEnter,D=e.onMouseOver,N=e.onMouseLeave,R=e.onClick,I=e.onKeyDown,$=e.onKeyUp,A=e.panelRef,P=Ua(Bb.useState(!1),2),j=P[0],L=P[1],F=Ua(Bb.useState(!1),2),M=F[0],B=F[1];return Ek((function(){B(!0)}),[]),t=!!M&&c,n=Bb.useRef(),r=Bb.useRef(),Ek((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;L(e),null==k||k(e),e||!r.current||null!==(t=n.current)&&void 0!==t&&t.contains(r.current)||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},i=Bb.useMemo((function(){return{panel:A}}),[A]),O||j||t||!C?(a={onMouseEnter:T,onMouseOver:D,onMouseLeave:N,onClick:R,onKeyDown:I,onKeyUp:$},s=xa(xa({},e),{},{open:t,prefixCls:d,placement:f,autoFocus:m,keyboard:b,width:v,mask:E,maskClosable:_,inline:!1===S,afterOpenChange:o,ref:n},a),Bb.createElement(G$.Provider,{value:i},Bb.createElement(U$,{open:t||O||j,autoDestroy:!1,getContainer:S,autoLock:E&&(t||j)},Bb.createElement(X$,s)))):null};const q5=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closeIcon:i,closable:a,onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:d,children:p}=e,f=Bb.useCallback((e=>Bb.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[h,m]=Mc(a,i,f,void 0,!0),g=Bb.useMemo((()=>n||h?Bb.createElement("div",{style:l,className:yY(`${t}-header`,{[`${t}-header-close-only`]:h&&!n&&!o})},Bb.createElement("div",{className:`${t}-header-title`},m,n&&Bb.createElement("div",{className:`${t}-title`},n)),o&&Bb.createElement("div",{className:`${t}-extra`},o)):null),[h,m,o,l,t,n]),b=Bb.useMemo((()=>r?Bb.createElement("div",{className:`${t}-footer`,style:d},r):null),[r,d,t]);return Bb.createElement("div",{className:`${t}-wrapper-body`,style:c},g,Bb.createElement("div",{className:`${t}-body`,style:u},p),b)},Y5=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},J5=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:f,marginSM:h,colorIcon:m,colorIconHover:g,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:w}=e,E=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:m,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${w}px`,borderTop:`${d}px ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},Q5=Pl("Drawer",(e=>{const t=$l(e,{});return[J5(t),Y5(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));q$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=Z5,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:p,className:f,visible:h,afterVisibleChange:m}=e,g=q$(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:y,direction:v,drawer:w}=Bb.useContext(XY),E=y("drawer",u),[x,_]=Q5(E),S=void 0===d&&b?()=>b(document.body):d,O=yY({"no-mask":!i,[`${E}-rtl`]:"rtl"===v},t,_),k=Bb.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),C=Bb.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),T={motionName:oQ(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},D=vu();return x(Bb.createElement(vQ,null,Bb.createElement(mZ,{status:!0,override:!0},Bb.createElement(K$,Object.assign({prefixCls:E,onClose:c,maskMotion:T,motion:e=>({motionName:oQ(E,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},g,{open:null!=s?s:h,mask:i,push:a,width:k,height:C,style:Object.assign(Object.assign({},null==w?void 0:w.style),p),className:yY(null==w?void 0:w.className,f),rootClassName:O,getContainer:S,afterOpenChange:null!=l?l:m,panelRef:D}),Bb.createElement(q5,Object.assign({prefixCls:E},g,{onClose:c}))))))};e4._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=q$(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=Bb.useContext(XY),s=a("drawer",t),[l,c]=Q5(s),u=yY(s,`${s}-pure`,`${s}-${o}`,c,r);return l(Bb.createElement("div",{className:u,style:n},Bb.createElement(q5,Object.assign({prefixCls:s},i))))};const t4=e4,n4=Aq.createContext({latestIndex:0}),r4=n4.Provider,o4=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=Bb.useContext(n4);return null==r?null:Bb.createElement(Bb.Fragment,null,Bb.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:o,space:i,direction:a}=Bb.useContext(XY),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:h,style:m,wrap:g=!1,classNames:b,styles:y}=e,v=Y$(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(s)?s:[s,s],x=Pp(E),_=Pp(w),S=jp(E),O=jp(w),k=Ls(d,{keepEmpty:!0}),C=void 0===l&&"horizontal"===p?"center":l,T=o("space",f),[D,N]=gQ(T),R=yY(T,null==i?void 0:i.className,N,`${T}-${p}`,{[`${T}-rtl`]:"rtl"===a,[`${T}-align-${C}`]:C,[`${T}-gap-row-${E}`]:x,[`${T}-gap-col-${w}`]:_},c,u),I=yY(`${T}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let $=0;const A=k.map(((e,t)=>{var n,r;return null!=e&&($=t),Bb.createElement(o4,{className:I,key:e&&e.key||`${I}-${t}`,index:t,split:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),P=Bb.useMemo((()=>({latestIndex:$})),[$]);if(0===k.length)return null;const j={};return g&&(j.flexWrap="wrap"),!_&&O&&(j.columnGap=w),!x&&S&&(j.rowGap=E),D(Bb.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},j),null==i?void 0:i.style),m)},v),Bb.createElement(r4,{value:P},A)))}));i4.Compact=e=>{const{getPrefixCls:t,direction:n}=Bb.useContext(XY),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=uD(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=pQ((e=>null!=r?r:e)),p=t("space-compact",a),[f,h]=gQ(p),m=yY(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},s,l),g=Bb.useContext(bQ),b=Ls(c),y=Bb.useMemo((()=>b.map(((e,t)=>Bb.createElement(wQ,{key:e&&e.key||`${p}-item-${t}`,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!g||(null==g?void 0:g.isFirstItem)),isLastItem:t===b.length-1&&(!g||(null==g?void 0:g.isLastItem))},e)))),[r,b,g]);return 0===b.length?null:f(Bb.createElement("div",Object.assign({className:m},u),y))};const a4=i4,s4=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},l4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),c4=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},u4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},YY(e)),l4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},c4(e,e.controlHeightSM)),"&-large":Object.assign({},c4(e,e.controlHeightLG))})}},d4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},YY(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:GZ,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},p4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},f4=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},h4=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),m4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:h4(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},g4=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:h4(e),[`@media (max-width: ${e.screenXSMax}px)`]:[m4(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:h4(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:h4(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:h4(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:h4(e)}}}},b4=(e,t)=>$l(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),y4=Pl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=b4(e,n);return[u4(r),d4(r),s4(r),p4(r),f4(r),g4(r),o0(r),GZ]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),v4=[],w4=e=>{let{help:t,helpStatus:n,errors:r=v4,warnings:o=v4,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=Bb.useContext(fZ),c=`${l}-item-explain`,[,u]=y4(l),d=Bb.useMemo((()=>rQ(l)),[l]),p=Lp(r),f=Lp(o),h=Bb.useMemo((()=>null!=t?[Fp(t,"help",n)]:[].concat(wa(p.map(((e,t)=>Fp(e,"error","error",t)))),wa(f.map(((e,t)=>Fp(e,"warning","warning",t)))))),[t,n,p,f]),m={};return a&&(m.id=`${a}_help`),Bb.createElement(fJ,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return Bb.createElement("div",Object.assign({},m,{className:yY(c,t,i,u),style:n,role:"alert"}),Bb.createElement(hJ,Object.assign({keys:h},rQ(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return Bb.createElement("div",{key:t,className:yY(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},E4=["parentNode"],x4="form_item";J$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=Bb.useContext(cJ),{getPrefixCls:r,direction:o,form:i}=Bb.useContext(XY),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:h,labelCol:m,wrapperCol:g,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:w,onFinishFailed:E,name:x,style:_,feedbackIcons:S}=e,O=J$(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),k=pQ(c),C=Bb.useContext(wY),T=Bb.useMemo((()=>void 0!==w?w:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,w,i]),D=null!=p?p:null==i?void 0:i.colon,N=r("form",a),[R,I]=y4(N),$=yY(N,`${N}-${y}`,{[`${N}-hide-required-mark`]:!1===T,[`${N}-rtl`]:"rtl"===o,[`${N}-${k}`]:k},I,null==i?void 0:i.className,s,l),[A]=zp(d),{__INTERNAL__:P}=A;P.name=x;const j=Bb.useMemo((()=>({name:x,labelAlign:f,labelCol:m,labelWrap:h,wrapperCol:g,vertical:"vertical"===y,colon:D,requiredMark:T,itemRef:P.itemRef,form:A,feedbackIcons:S})),[x,f,m,g,y,D,T,A,S]);Bb.useImperativeHandle(t,(()=>A));const L=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),A.scrollToField(t,n)}};return R(Bb.createElement(lJ,{disabled:u},Bb.createElement(dJ,{size:k},Bb.createElement(pZ,Object.assign({},{validateMessages:C}),Bb.createElement(uZ.Provider,{value:j},Bb.createElement(sN,Object.assign({id:x},O,{name:x,onFinishFailed:e=>{if(null==E||E(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void L(v,t);i&&void 0!==i.scrollToFirstError&&L(i.scrollToFirstError,t)}},form:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),_),className:$})))))))},S4=Bb.forwardRef(_4),O4=()=>{const{status:e,errors:t=[],warnings:n=[]}=Bb.useContext(hZ);return{status:e,errors:t,warnings:n}};O4.Context=hZ;const k4=O4,C4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},T4=iJ(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=b4(e,n);return[C4(r)]})),D4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:p}=e,f=`${t}-item`,h=Bb.useContext(uZ),m=r||h.wrapperCol||{},g=yY(`${f}-control`,m.className),b=Bb.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const y=Bb.createElement("div",{className:`${f}-control-input`},Bb.createElement("div",{className:`${f}-control-input-content`},o)),v=Bb.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?Bb.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Bb.createElement(fZ.Provider,{value:v},Bb.createElement(w4,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&Bb.createElement("div",{style:{width:0,height:d}})):null,E={};u&&(E.id=`${u}_extra`);const x=l?Bb.createElement("div",Object.assign({},E,{className:`${f}-extra`}),l):null,_=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:w,extra:x}):Bb.createElement(Bb.Fragment,null,y,w,x);return Bb.createElement(uZ.Provider,{value:b},Bb.createElement(d5,Object.assign({},m,{className:g}),_),Bb.createElement(T4,{prefixCls:t}))},N4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},R4=Bb.forwardRef((function(e,t){return Bb.createElement(SJ,pa({},e,{ref:t,icon:N4}))}));Q$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=DY("Form"),{vertical:p,labelAlign:f,labelCol:h,labelWrap:m,colon:g}=Bb.useContext(uZ);if(!n)return null;const b=o||h||{},y=`${t}-item-label`,v=yY(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!m});let w=n;const E=!0===a||!1!==g&&!1!==a;E&&!p&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|๏ผš]\s*$/,""));const x=function(e){return e?"object"!=typeof e||Bb.isValidElement(e)?{title:e}:e:null}(c);if(x){const{icon:e=Bb.createElement(R4,null)}=x,n=Q$(x,["icon"]),r=Bb.createElement(R1,Object.assign({},n),Bb.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=Bb.createElement(Bb.Fragment,null,w,r)}const _="optional"===l,S="function"==typeof l;S?w=l(w,{required:!!s}):_&&!s&&(w=Bb.createElement(Bb.Fragment,null,w,Bb.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=SY.Form)||void 0===u?void 0:u.optional))));const O=yY({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:_||S,[`${t}-item-no-colon`]:!E});return Bb.createElement(d5,Object.assign({},b,{className:v}),Bb.createElement("label",{htmlFor:r,className:O,title:"string"==typeof n?n:""},w))},$4={success:OJ,warning:RJ,error:CJ,validating:zJ};Z$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),P4=function(e){function t(t,n,i){return r&&!m?Bb.createElement(Gp,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:I,errors:P,warnings:j,noStyle:!0},t):Bb.createElement(Wp,Object.assign({key:"row"},e,{className:yY(o,C),prefixCls:O,fieldId:n,isRequired:i,errors:P,warnings:j,meta:I,onSubItemMetaChange:A}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:h,hidden:m,help:g}=e,{getPrefixCls:b}=Bb.useContext(XY),{name:y}=Bb.useContext(uZ),v=function(e){if("function"==typeof e)return e;const t=Ls(e);return t.length<=1?t[0]:t}(c),w="function"==typeof v,E=Bb.useContext(dZ),{validateTrigger:x}=Bb.useContext(TD),_=void 0!==h?h:x,S=function(e){return!(null==e)}(n),O=b("form",a),[k,C]=y4(O),T=Bb.useContext(DD),D=Bb.useRef(),[N,R]=function(){const[e,t]=Bb.useState({}),n=Bb.useRef(null),r=Bb.useRef([]),o=Bb.useRef(!1);return Bb.useEffect((()=>(o.current=!1,()=>{o.current=!0,LC.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=LC((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[I,$]=Nl((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),A=(e,t)=>{R((n=>{const r=Object.assign({},n),o=[].concat(wa(e.name.slice(0,-1)),wa(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[P,j]=Bb.useMemo((()=>{const e=wa(I.errors),t=wa(I.warnings);return Object.values(N).forEach((n=>{e.push.apply(e,wa(n.errors||[])),t.push.apply(t,wa(n.warnings||[]))})),[e,t]}),[N,I.errors,I.warnings]),L=function(){const{itemRef:e}=Bb.useContext(uZ),t=Bb.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Ms(e(n),o)),t.current.ref}}();if(!S&&!w&&!i)return k(t(v));let F={};return"string"==typeof d?F.label=d:n&&(F.label=String(n)),p&&(F=Object.assign(Object.assign({},F),p)),k(Bb.createElement(pu,Object.assign({},e,{messageVariables:F,trigger:f,validateTrigger:_,onMetaChange:e=>{const t=null==T?void 0:T.getKey(e.name);if($(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==g&&E){let n=e.name;if(e.destroy)n=D.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(wa(r)),D.current=n}E(e,n)}}}),((r,o,a)=>{const c=Mp(n).length&&o?o.name:[],d=Bp(c,y),p=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),h=Object.assign({},r);let m=null;if(Array.isArray(v)&&S)m=v;else if(w&&(!s&&!i||S));else if(!i||w||S)if(AJ(v)){const t=Object.assign(Object.assign({},v.props),h);if(t.id||(t.id=d),g||P.length>0||j.length>0||e.extra){const n=[];(g||P.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}P.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Hs(v)&&(t.ref=L(c,v)),new Set([].concat(wa(Mp(f)),wa(Mp(_)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=eA(e,["prefixCls","children"]);const{getPrefixCls:o}=Bb.useContext(XY),i=o("form",t),a=Bb.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return Bb.createElement(fu,Object.assign({},r),((e,t,r)=>Bb.createElement(fZ.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},j4.ErrorList=w4,j4.useForm=zp,j4.useFormInstance=function(){const{form:e}=Bb.useContext(uZ);return e},j4.useWatch=bu,j4.Provider=pZ,j4.create=()=>{};const L4=j4;let F4=null,M4=e=>e(),B4=[],H4={};const U4=Bb.forwardRef(((e,t)=>{const[n,r]=Bb.useState(Vp),[o,i]=sc(n),a=vJ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Vp)};return Bb.useEffect(u,[]),Bb.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),Bb.createElement(EJ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),z4={open:function(e){const t=ac((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return B4.push(r),()=>{n?M4((()=>{n()})):r.skipped=!0}}));return Xp(),t},destroy:function(e){B4.push({type:"destroy",key:e}),Xp()},config:function(e){H4=Object.assign(Object.assign({},H4),e),M4((()=>{var e;null===(e=null==F4?void 0:F4.sync)||void 0===e||e.call(F4)}))},useMessage:lc,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=nD(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=Bb.useContext(XY),l=t||s("message"),[,c]=WJ(l);return Bb.createElement(KT,Object.assign({},a,{prefixCls:l,className:yY(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:Bb.createElement(XJ,{prefixCls:l,type:r,icon:o},i)}))}},G4=z4;["success","info","warning","error","loading"].forEach((e=>{G4[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return B4.push(o),()=>{r?M4((()=>{r()})):o.skipped=!0}}));return Xp(),n}(e,n)}}));const W4=G4;tA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=tA(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=Bb.useContext(XY),u=c(),d=t||c("modal"),[,p]=d0(d),f=`${d}-confirm`;let h={};return h=i?{closable:null!=o&&o,title:"",footer:"",children:Bb.createElement(xu,Object.assign({},e,{prefixCls:d,confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?Bb.createElement(vZ,Object.assign({},e)):e.footer,children:s},Bb.createElement(_D,Object.assign({prefixCls:d,className:yY(p,`${d}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:wu(d,r),closable:o},h))})),X4=f0;X4.useModal=Du,X4.info=function(e){return _u(Ou(e))},X4.success=function(e){return _u(ku(e))},X4.error=function(e){return _u(Cu(e))},X4.warning=Kp,X4.warn=Kp,X4.confirm=function(e){return _u(Tu(e))},X4.destroyAll=function(){for(;b0.length;){const e=b0.pop();e&&e()}},X4.config=function(e){let{rootPrefixCls:t}=e;y0=t},X4._InternalPanelDoNotUseOrYouWillBeFired=V4;const K4=X4;let q4=null,Y4=e=>e(),J4=[],Q4={};const Z4=Bb.forwardRef(((e,t)=>{const[n,r]=Bb.useState(qp),[o,i]=Ru(n),a=vJ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(qp)};return Bb.useEffect(u,[]),Bb.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),Bb.createElement(EJ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),e3={open:Jp,destroy:function(e){J4.push({type:"destroy",key:e}),Yp()},config:function(e){Q4=Object.assign(Object.assign({},Q4),e),Y4((()=>{var e;null===(e=null==q4?void 0:q4.sync)||void 0===e||e.call(q4)}))},useNotification:Iu,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=pN(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=Bb.useContext(XY),p=t||d("notification"),f=`${p}-notice`,[,h]=O0(p);return Bb.createElement(KT,Object.assign({},u,{prefixCls:p,className:yY(n,h,`${f}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:Nu(p,c),content:Bb.createElement(C0,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})}))}},t3=e3;["success","info","warning","error"].forEach((e=>{t3[e]=t=>Jp(Object.assign(Object.assign({},t),{type:e}))}));const n3=t3;nA=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},rA=function(e){return void 0!==e?"".concat(e,"px"):void 0},oA=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],iA=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return Bb.createElement("label",{className:yY(e.className,Si({},"".concat(t,"-item-disabled"),n))},Bb.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),Bb.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},aA=Bb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,p=e.className,f=void 0===p?"":p,h=e.motionName,m=void 0===h?"thumb-motion":h,g=Oi(e,oA),b=Bb.useRef(null),y=Bb.useMemo((function(){return Ms(b,t)}),[b,t]),v=Bb.useMemo((function(){return function(e){return e.map((function(e){if("object"===xi(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==xi(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return xa(xa({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),w=Ua(Il(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),E=w[0],x=w[1],_=Ua(Bb.useState(!1),2),S=_[0],O=_[1],k=function(e,t){l||(x(t),null==d||d(t))},C=qs(g,["children"]);return Bb.createElement("div",pa({},C,{className:yY(i,(r={},Si(r,"".concat(i,"-rtl"),"rtl"===a),Si(r,"".concat(i,"-disabled"),l),r),f),ref:y}),Bb.createElement("div",{className:"".concat(i,"-group")},Bb.createElement(Qp,{prefixCls:i,value:E,containerRef:b,motionName:"".concat(i,"-").concat(m),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){O(!0)},onMotionEnd:function(){O(!1)}}),v.map((function(e){return Bb.createElement(iA,pa({},e,{key:e.value,prefixCls:i,className:yY(e.className,"".concat(i,"-item"),Si({},"".concat(i,"-item-selected"),e.value===E&&!S)),checked:e.value===E,onChange:k,disabled:!!l||!!e.disabled}))}))))})),aA.displayName="Segmented",aA.defaultProps={options:[]};const r3=Object.assign({overflow:"hidden"},qY),o3=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},ef(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},r3),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},ef(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 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:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Zp(`&-disabled ${t}-item`,e)),Zp(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},i3=Pl("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=$l(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[o3(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));sA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=sA(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=Bb.useContext(XY),f=u("segmented",n),[h,m]=i3(f),g=pQ(s),b=Bb.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=sA(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:Bb.createElement(Bb.Fragment,null,Bb.createElement("span",{className:`${f}-item-icon`},t),n&&Bb.createElement("span",null,n))})}return e}))),[a,f]),y=yY(r,o,null==p?void 0:p.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===g,[`${f}-lg`]:"large"===g},m),v=Object.assign(Object.assign({},null==p?void 0:p.style),l);return h(Bb.createElement(aA,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:d})))}));lA=Bb.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),cA=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],uA=Bb.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,p=Oi(e,cA),f=Bb.useContext(lA),h=f.min,m=f.max,g=f.direction,b=f.disabled,y=f.keyboard,v=f.range,w=f.tabIndex,E=f.ariaLabelForHandle,x=f.ariaLabelledByForHandle,_=f.ariaValueTextFormatterForHandle,S="".concat(o,"-handle"),O=function(e){b||s(e,a)},k=nf(g,i,h,m),C=Bb.createElement("div",pa({ref:t,className:yY(S,(n={},Si(n,"".concat(S,"-").concat(a+1),v),Si(n,"".concat(S,"-dragging"),u),n)),style:xa(xa({},k),l),onMouseDown:O,onTouchStart:O,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case XT.LEFT:t="ltr"===g||"btt"===g?-1:1;break;case XT.RIGHT:t="ltr"===g||"btt"===g?1:-1;break;case XT.UP:t="ttb"!==g?1:-1;break;case XT.DOWN:t="ttb"!==g?-1:1;break;case XT.HOME:t="min";break;case XT.END:t="max";break;case XT.PAGE_UP:t=2;break;case XT.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:rf(w,a),role:"slider","aria-valuemin":h,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":b,"aria-label":rf(E,a),"aria-labelledby":rf(x,a),"aria-valuetext":null===(r=rf(_,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===g||"rtl"===g?"horizontal":"vertical"},p));return c&&(C=c(C,{index:a,prefixCls:o,value:i,dragging:u})),C})),dA=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],pA=Bb.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Oi(e,dA),u=Bb.useRef({});return Bb.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),Bb.createElement(Bb.Fragment,null,a.map((function(e,t){return Bb.createElement(uA,pa({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:rf(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),fA=Bb.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O=e.prefixCls,k=void 0===O?"rc-slider":O,C=e.className,T=e.style,D=e.disabled,N=void 0!==D&&D,R=e.keyboard,I=void 0===R||R,$=e.autoFocus,A=e.onFocus,P=e.onBlur,j=e.min,L=void 0===j?0:j,F=e.max,M=void 0===F?100:F,B=e.step,H=void 0===B?1:B,U=e.value,z=e.defaultValue,G=e.range,W=e.count,V=e.onChange,X=e.onBeforeChange,K=e.onAfterChange,q=e.allowCross,Y=void 0===q||q,J=e.pushable,Q=void 0!==J&&J,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ie=e.trackStyle,ae=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,de=e.dots,pe=e.handleRender,fe=e.tabIndex,he=void 0===fe?0:fe,me=e.ariaLabelForHandle,ge=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,ye=Bb.useRef(),ve=Bb.useRef(),we=Bb.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),Ee=Bb.useMemo((function(){return isFinite(L)?L:0}),[L]),xe=Bb.useMemo((function(){return isFinite(M)?M:100}),[M]),_e=Bb.useMemo((function(){return null!==H&&H<=0?1:H}),[H]),Se=Bb.useMemo((function(){return"boolean"==typeof Q?!!Q&&_e:Q>=0&&Q}),[Q,_e]),Oe=Bb.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===xi(t)&&!Bb.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),ke=function(e,t,n,r,o,i){var a=Bb.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=Bb.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=Bb.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,d,p,f,h,m,g,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(p=(d=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d)),h=a>0?1:-1,f.push(s("unit"===y?d+h*n:p)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===y&&(f=f.filter((function(e){return e!==d}))),m="unit"===y?d:p,u=f[0],g=Math.abs(u-m),f.forEach((function(e){var t=Math.abs(e-m);t1?((b=wa(i))[l]=u,o(b,a-h,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==r?r:"unit",S=e.map(l),O=S[n],k=c(S,t,n,_);if(S[n]=k,!1===o)a=i||0,n>0&&S[n-1]!==O&&(S[n]=Math.max(S[n],S[n-1]+a)),n0;h-=1)for(m=!0;d(S[h]-S[h-1])&&m;)g=u(S,-1,h-1),S[h-1]=g.value,m=g.changed;for(b=S.length-1;b>0;b-=1)for(y=!0;d(S[b]-S[b-1])&&y;)v=u(S,-1,b-1),S[b-1]=v.value,y=v.changed;for(w=0;w=0?W+1:2);o.length=0&&ye.current.focus(e)}c(null)}),[l=s[0]]),d=Bb.useMemo((function(){return(!Z||null!==_e)&&Z}),[Z,_e]),p=function(e,t,n,o,i,a,s,l,c){var u,d,p,f,h,m=Ua(Bb.useState(null),2),g=m[0],b=m[1],y=Ua(Bb.useState(-1),2),v=y[0],w=y[1],E=Ua(Bb.useState(n),2),x=E[0],_=E[1],S=Ua(Bb.useState(n),2),O=S[0],k=S[1],C=Bb.useRef(null),T=Bb.useRef(null);return Bb.useEffect((function(){-1===v&&_(n)}),[n,v]),Bb.useEffect((function(){return function(){document.removeEventListener("mousemove",C.current),document.removeEventListener("mouseup",T.current),document.removeEventListener("touchmove",C.current),document.removeEventListener("touchend",T.current)}}),[]),u=function(e,t){x.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),_(e),s(e))},(p=Bb.useRef(d=function(e,t){var n,r,s,l,d,p,f,h;-1===e?(n=O[0],r=i-O[O.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,d=O.map((function(e){return e+s})),u(d)):(p=(i-o)*t,(f=wa(x))[e]=O[e],h=c(f,p,e,"dist"),u(h.values,h.value))})).current=d,f=function(o,i){var a,s,l,c,u,d;o.stopPropagation(),a=n[i],w(i),b(a),k(n),s=of(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,d,f;switch(n.preventDefault(),o=(r=of(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,d=s.height,t){case"btt":f=-a/d;break;case"ttb":f=a/d;break;case"rtl":f=-o/u;break;default:f=o/u}p.current(i,f)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),C.current=null,T.current=null,w(-1),null==K||K(r(Ae.current))},document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),C.current=u,T.current=d},h=Bb.useMemo((function(){var e=wa(n).sort((function(e,t){return e-t})),t=wa(x).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?x:n}),[n,x]),[v,g,h,f]}(ve,we,$e,Ee,xe,Te,o,0,De),f=Ua(p,4),m=f[1],g=f[2],b=f[3],y=function(e,t){b(e,t),null==X||X(r(Ae.current))},Bb.useEffect((function(){if(!v){var e=$e.lastIndexOf(m);ye.current.focus(e)}}),[v=-1!==(h=f[0])]),w=Bb.useMemo((function(){return wa(g).sort((function(e,t){return e-t}))}),[g]),E=Ua(Bb.useMemo((function(){return G?[w[0],w[w.length-1]]:[Ee,w[0]]}),[w,G,Ee]),2),x=E[0],_=E[1],Bb.useImperativeHandle(t,(function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e=document.activeElement;ve.current.contains(e)&&(null==e||e.blur())}}})),Bb.useEffect((function(){$&&ye.current.focus(0)}),[]),S=Bb.useMemo((function(){return{min:Ee,max:xe,direction:we,disabled:N,keyboard:I,step:_e,included:re,includedStart:x,includedEnd:_,range:G,tabIndex:he,ariaLabelForHandle:me,ariaLabelledByForHandle:ge,ariaValueTextFormatterForHandle:be}}),[Ee,xe,we,N,I,_e,re,x,_,G,he,me,ge,be]),Bb.createElement(lA.Provider,{value:S},Bb.createElement("div",{ref:ve,className:yY(k,C,(n={},Si(n,"".concat(k,"-disabled"),N),Si(n,"".concat(k,"-vertical"),te),Si(n,"".concat(k,"-horizontal"),!te),Si(n,"".concat(k,"-with-marks"),Oe.length),n)),style:T,onMouseDown:a},Bb.createElement("div",{className:"".concat(k,"-rail"),style:se}),Bb.createElement(sf,{prefixCls:k,style:ie,values:w,startPoint:oe,onStartMove:d?y:null}),Bb.createElement(df,{prefixCls:k,marks:Oe,dots:de,style:le,activeStyle:ce}),Bb.createElement(pA,{ref:ye,prefixCls:k,style:ae,values:g,draggingIndex:h,onStartMove:y,onOffsetChange:u,onFocus:A,onBlur:P,handleRender:pe}),Bb.createElement(cf,{prefixCls:k,marks:Oe,onClick:i})))}));const s3=Bb.forwardRef(((e,t)=>{function n(){LC.cancel(i.current),i.current=null}const{open:r}=e,o=Bb.useRef(null),i=Bb.useRef(null);return Bb.useEffect((()=>(r?i.current=LC((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),Bb.createElement(R1,Object.assign({ref:Ms(o,t)},e))})),l3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},YY(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new GC(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},c3=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2;return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-track-draggable`]:Object.assign({},t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`}),[`${n}-handle`]:{[l]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},u3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},c3(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},d3=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},c3(e,!1)),{height:"100%"})}},p3=Pl("Slider",(e=>{const t=$l(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[l3(t),u3(t),d3(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));hA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",h3=Aq.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:p}=e,f=hA(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:m,getPrefixCls:g,getPopupContainer:b}=Aq.useContext(XY),y=Aq.useContext(cJ),v=null!=s?s:y,[w,E]=Aq.useState({}),x=(e,t)=>{E((n=>Object.assign(Object.assign({},n),{[e]:t})))},_=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),S=g("slider",n),[O,k]=p3(S),C=yY(o,null==m?void 0:m.className,i,{[`${S}-rtl`]:"rtl"===h},k);"rtl"!==h||f.vertical||(f.reverse=!f.reverse);const[T,D]=Aq.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),N=Object.assign(Object.assign({},null==m?void 0:m.style),a);return O(Aq.createElement(fA,Object.assign({},f,{step:f.step,range:T,draggableTrack:D,className:C,style:N,disabled:v,ref:t,prefixCls:S,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:h,placement:m,getPopupContainer:y,prefixCls:v,formatter:E}=f;let O;O=E||null===E?E:c||null===c?c:f3;const k=null!==(r=null!=h?h:u)&&void 0!==r?r:void 0===h&&!!O&&(w[o]||i),C=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>x(o,!0),onMouseLeave:()=>x(o,!1)}),T=g("tooltip",null!=v?v:l);return Aq.createElement(s3,Object.assign({},f,{prefixCls:T,title:O?O(n.value):"",open:k,placement:_(null!=m?m:p,s),key:o,overlayClassName:`${S}-tooltip`,getPopupContainer:y||d||b}),Aq.cloneElement(t,C))}})))}));mA=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],gA=Bb.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==h||h(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,h=e.onChange,m=e.onKeyDown,g=Oi(e,mA),b=Ua(Il(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],w=yY(i,a,(Si(r={},"".concat(i,"-checked"),y),Si(r,"".concat(i,"-disabled"),c),r));return Bb.createElement("button",pa({},g,{type:"button",role:"switch","aria-checked":y,disabled:c,className:w,ref:t,onKeyDown:function(e){e.which===XT.LEFT?n(!1,e):e.which===XT.RIGHT&&n(!0,e),null==m||m(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,Bb.createElement("span",{className:"".concat(i,"-inner")},Bb.createElement("span",{className:"".concat(i,"-inner-checked")},d),Bb.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))})),gA.displayName="Switch";const m3=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s}=e,l=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${s+2*r}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${s+2*r}px - ${2*a}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},g3=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},b3=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},y3=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,s=`${t}-inner`;return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},v3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YY(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),eJ(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},w3=Pl("Switch",(e=>{const t=$l(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[v3(t),y3(t),b3(t),g3(t),m3(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new GC("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));bA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=bA(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=Bb.useContext(XY),f=Bb.useContext(cJ),h=(null!=o?o:f)||i,m=u("switch",n),g=Bb.createElement("div",{className:`${m}-handle`},i&&Bb.createElement(zJ,{className:`${m}-loading-icon`})),[b,y]=w3(m),v=pQ(r),w=yY(null==p?void 0:p.className,{[`${m}-small`]:"small"===v,[`${m}-loading`]:i,[`${m}-rtl`]:"rtl"===d},a,s,y),E=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(Bb.createElement(dQ,{component:"Switch"},Bb.createElement(gA,Object.assign({},c,{prefixCls:m,className:w,style:E,disabled:h,ref:t,loadingIcon:g}))))}));E3.__ANT_SWITCH=!0;const x3=E3,_3=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return $l(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},S3=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),O3=Pl("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},YY(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(_3(e))),S3);yA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r(e=>jl(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(_3(e))),S3),C3=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},T3=iJ(["Tag","status"],(e=>{const t=_3(e);return[C3(t,"success","Success"),C3(t,"processing","Info"),C3(t,"error","Error"),C3(t,"warning","Warning")]}),S3);vA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=vA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:m,tag:g}=Bb.useContext(XY),[b,y]=Bb.useState(!0);Bb.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=Sd(l),w=function(e){return D1.includes(e)}(l),E=v||w,x=Object.assign(Object.assign({backgroundColor:l&&!E?l:void 0},null==g?void 0:g.style),i),_=h("tag",n),[S,O]=O3(_),k=yY(_,null==g?void 0:g.className,{[`${_}-${l}`]:E,[`${_}-has-color`]:l&&!E,[`${_}-hidden`]:!b,[`${_}-rtl`]:"rtl"===m,[`${_}-borderless`]:!p},r,o,O),C=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,T]=Mc(d,u,(e=>null===e?Bb.createElement(DJ,{className:`${_}-close-icon`,onClick:C}):Bb.createElement("span",{className:`${_}-close-icon`,onClick:C},e)),null,!1),D="function"==typeof f.onClick||a&&"a"===a.type,N=s||null,R=N?Bb.createElement(Bb.Fragment,null,N,a&&Bb.createElement("span",null,a)):a,I=Bb.createElement("span",Object.assign({},f,{ref:t,className:k,style:x}),R,T,v&&Bb.createElement(k3,{key:"preset",prefixCls:_}),w&&Bb.createElement(T3,{key:"status",prefixCls:_}));return S(D?Bb.createElement(dQ,{component:"Tag"},I):I)},N3=Bb.forwardRef(D3);N3.CheckableTag=e=>{const{prefixCls:t,style:n,className:r,checked:o,onChange:i,onClick:a}=e,s=yA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:c}=Bb.useContext(XY),u=l("tag",t),[d,p]=O3(u),f=yY(u,`${u}-checkable`,{[`${u}-checkable-checked`]:o},null==c?void 0:c.className,r,p);return d(Bb.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==c?void 0:c.style),className:f,onClick:e=>{null==i||i(!o),null==a||a(e)}})))};const R3=N3,I3=(e,t)=>new GC(e).setAlpha(t).toRgbString(),$3=(e,t)=>new GC(e).lighten(t).toHexString(),A3=e=>{const t=xl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},P3=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:I3(r,.85),colorTextSecondary:I3(r,.65),colorTextTertiary:I3(r,.45),colorTextQuaternary:I3(r,.25),colorFill:I3(r,.18),colorFillSecondary:I3(r,.12),colorFillTertiary:I3(r,.08),colorFillQuaternary:I3(r,.04),colorBgElevated:$3(n,12),colorBgContainer:$3(n,8),colorBgLayout:$3(n,0),colorBgSpotlight:$3(n,26),colorBorder:$3(n,26),colorBorderSecondary:$3(n,19)}},j3={defaultConfig:zY,defaultSeed:zY.token,useToken:function(){const[e,t,n]=Tl();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Sl,darkAlgorithm:(e,t)=>{const n=Object.keys(AY).map((t=>{const n=xl(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Sl(e);return Object.assign(Object.assign(Object.assign({},r),n),_l(e,{generateColorPalettes:A3,generateNeutralColorPalettes:P3}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Sl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),HY(r)),{controlHeight:o}),$Y(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=za((null==e?void 0:e.algorithm)?e.algorithm:Sl),n=Object.assign(Object.assign({},PY),null==e?void 0:e.token);return Dk(n,{override:null==e?void 0:e.token},t,Cl)}};wA=function(){return j3.useToken().token},_A=Bb.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(xA=(EA=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==xA&&xA.matches?"dark":"light"}),SA=function(){return Bb.useContext(_A)},OA=function(){var e=wA(),t=SA(),n=t.appearance,r=t.isDarkMode;return Bb.useMemo((function(){return aC(iC({token:e,css:bO,appearance:n,isDarkMode:r}))}),[e,n,r])},kA=function(){var e=wA(),t=OA();return Bb.useMemo((function(){return hf(hf({},e),{},{stylish:t})}),[e,t])},CA=function(e){return gf(gf({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},TA=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=Bb.useRef({}),r=function(){const[,e]=Bb.useReducer((e=>e+1),0);return e}(),o=vd();return Ek((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return Bb.useMemo((function(){return CA(e)}),[e])},DA=function(){var e=wA(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return Bb.useMemo((function(){return CA(t)}),[e])},NA=function(e,t){return Object.entries(e).map((function(e){var n=Ua(e,2),r=n[0],o=n[1],i=o;return dO(o)||(i=bO(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},RA=["stylish","appearance","isDarkMode","prefixCls"],IA=["prefixCls"],$A=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var l=n(),c=Bb.useContext(r),u=gO(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=u.cx,p=u.css,f=DA(),h=Bb.useMemo((function(){var t,n,r,o,c,u,h;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Oi(l,RA),h=function(e){return NA(e,f)},Object.assign(h,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:d,css:bO,responsive:h},s)):t=e,"object"===xi(t)&&(t=dO(t)?p(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Ua(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===xi(r)?a?[n,p(r,"label:".concat(o))]:[n,p(r)]:[n,r]})))),t}),[s,l]);return Bb.useMemo((function(){var e=l.prefixCls,t=Oi(l,IA);return{styles:h,cx:d,theme:t,prefixCls:e}}),[h,l])}}},AA=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return Xb.jsx(t.Provider,{value:e.theme,children:e.children})}},PA=YO,jA=XO,LA=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";jA=e.ThemeContext,PA=AA(e)};const L3=Bb.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=SA(),l=s.appearance,c=s.isDarkMode,u=Ua(W4.useMessage(null==a?void 0:a.message),2),d=u[0],p=u[1],f=Ua(n3.useNotification(null==a?void 0:a.notification),2),h=f[0],m=f[1],g=Ua(K4.useModal(),2),b=g[0],y=g[1];return Bb.useEffect((function(){null==i||i({message:d,modal:b,notification:h})}),[]),t=Bb.useMemo((function(){var e,t=c?j3.darkAlgorithm:j3.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],yf(yf({},n),{},{algorithm:n.algorithm?[t].concat(wa(e)):t})):{algorithm:t}}),[r,c]),Xb.jsxs(EJ,{prefixCls:o,theme:t,children:[p,m,y,n]})}));FA=function(e){"function"==typeof Bb.startTransition?Bb.startTransition(e):e()},BA=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){EA("dark").matches?n("dark"):n("light")},i=function(){EA("dark").matches?r("dark"):r("light")};return Bb.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),MA||(MA=EA("dark")),MA.addEventListener("change",o),function(){MA.removeEventListener("change",o)};FA((function(){n(t)}))}),[t]),Bb.useLayoutEffect((function(){return MA||(MA=EA("dark")),MA.addEventListener("change",i),function(){MA.removeEventListener("change",i)}}),[]),null};const F3=Bb.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=Ua(wf("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),p=d[0],f=d[1],h=Ua(wf("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),m=h[0],g=h[1],b=Ua(Bb.useState(null!==(t=EA("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],w=Ua(Bb.useState(!1),2),E=w[0],x=w[1];return Bb.useEffect((function(){FA((function(){x(!0)}))}),[]),Xb.jsxs(_A.Provider,{value:{themeMode:p,setThemeMode:f,appearance:m,setAppearance:g,isDarkMode:"dark"===m,browserPrefers:y},children:[E&&Xb.jsx(BA,{themeMode:p,setAppearance:g,setBrowserPrefers:v}),n]})}));HA=["stylish"];const M3=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=SA(),c=l.appearance,u=l.isDarkMode,d=kA(),p=d.stylish,f=Oi(d,HA),h=Bb.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),m=Bb.useMemo((function(){return xf(xf({},h),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[h,n,f,c]),g=Bb.useMemo((function(){return o?o({token:xf(xf({},f),m),stylish:p,appearance:c,isDarkMode:u,css:bO}):{}}),[o,f,m,p,c]),b=Bb.useMemo((function(){return xf(xf({},g),p)}),[g,p]),y=xf(xf(xf(xf({},f),m),{},{stylish:b},l),{},{prefixCls:a});return Xb.jsx(s,{theme:y,children:t})};UA=function(e){var t=e.styledConfig?AA(e.styledConfig):void 0,n=e.StyleEngineContext;return Bb.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,p=r.defaultAppearance,f=r.onAppearanceChange,h=r.themeMode,m=r.defaultThemeMode,g=r.onThemeModeChange,b=r.styled,y=Bb.useContext(n),v=y.prefixCls,w=y.StyledThemeContext,E=y.CustomThemeContext,x=Bb.useContext(E),_=b?AA(b):t||PA,S=c||v;return Xb.jsx(n.Provider,{value:{prefixCls:S,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||jA,CustomThemeContext:E},children:Xb.jsx(F3,{themeMode:h,defaultThemeMode:m,onThemeModeChange:g,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:Xb.jsx(L3,{prefixCls:S,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:Xb.jsx(M3,{prefixCls:S,customToken:i,defaultCustomToken:x,customStylish:a,StyledThemeProvider:_,children:o})})})})}))},zA=function(e){return function(){var t=Bb.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=kA(),a=SA(),s=Bb.useContext(r),l=Bb.useContext(null!=n?n:jA)||{},c=Bb.useMemo((function(){return Sf(Sf(Sf(Sf({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},GA=new sO,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=GA),XA=(hq={key:"acss",speedy:!1},kq=kf(kf({},hq),{},{key:null!==(mq=hq.key)&&void 0!==mq?mq:"zcss",speedy:null!==(gq=hq.speedy)&&void 0!==gq&&gq}),Cq=tO({key:kq.key,speedy:kq.speedy,container:kq.container}),Tq=yO(Cq),Dq=oC(Tq),Cq.cache=GA.add(Cq.cache),yq=null===(bq=kq.styled)||void 0===bq?void 0:bq.ThemeContext,wq=zA({StyleEngineContext:vq=Bb.createContext({CustomThemeContext:Bb.createContext(kq.customToken?kq.customToken:{}),StyledThemeContext:yq,prefixCls:null==kq?void 0:kq.prefixCls})}),Eq=$A({hashPriority:kq.hashPriority,useTheme:wq,EmotionContext:Tq}),xq=QO(wq),_q=ZO(Eq),Sq=UA({styledConfig:kq.styled,StyleEngineContext:vq,useTheme:wq}),Oq=gO(Cq.cache,{hashPriority:kq.hashPriority}),WA={createStyles:Eq,createGlobalStyle:xq,createStylish:_q,css:bO,cx:Oq.cx,keyframes:Cq.keyframes,injectGlobal:Cq.injectGlobal,styleManager:Cq,useTheme:wq,StyleProvider:Dq,ThemeProvider:Sq}).createGlobalStyle,KA=WA.css,qA=WA.cx,YA=WA.keyframes,JA=WA.ThemeProvider,QA=WA.StyleProvider,ZA=WA.useTheme,nP=(VA=WA.createStyles)((function(e){var t=e.css,n=YA(eP||(eP=ki(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(tP||(tP=ki(["\n animation: "," 1s linear infinite;\n "])),n)}})),rP=["icon","size","color","fill","className","spin"],oP=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const B3=Bb.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=Oi(e,rP),l=nP(),c=l.styles,u=l.cx,d=t,p=Bb.useMemo((function(){return oP(n)}),[n]),f=p.fontSize,h=p.strokeWidth;return Xb.jsx("span",Tf(Tf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:Xb.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:h,width:f})}))}));aP=VA((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(iP||(iP=ki(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),sP=["className","size"],lP=function(){var e=Ua(Bb.useState(),2),t=e[0],n=e[1],r=Ua(Bb.useState(!0),2),o=r[0],i=r[1],a=Bb.useRef();return Bb.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const H3=Bb.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Oi(e,sP),i=Ua(lP(),3),a=i[2],s=aP({offset:i[0],outside:i[1],size:r});return Xb.jsx("div",function(e){var t,n;for(t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o-1},hL=function(e,t){var n=this.__data__,r=uL(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},uh.prototype.clear=function(){this.__data__=[],this.size=0},uh.prototype.delete=dL,uh.prototype.get=pL,uh.prototype.has=fL,uh.prototype.set=hL,gL=mL=uh,bL=function(){this.__data__=new gL,this.size=0},yL=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vL=function(e){return this.__data__.get(e)},wL=function(e){return this.__data__.has(e)},EL=Qj,xL=Lj,_L=function(e){if(!xL(e))return!1;var t=EL(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},QK=/[^.]+$/.exec((SL=Bj["__core-js_shared__"])&&SL.keys&&SL.keys.IE_PROTO||""),OL=QK?"Symbol(src)_1."+QK:"",kL=Function.prototype.toString,TL=_L,DL=function(e){return!!OL&&OL in e},NL=Lj,RL=CL=function(e){if(null!=e){try{return kL.call(e)}catch(lq){}try{return e+""}catch(lq){}}return""},IL=/[\\^$.*+?()[\]{}|]/g,$L=/^\[object .+?Constructor\]$/,AL=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(IL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),PL=function(e,t){return null==e?void 0:e[t]},jL=function(e){return!(!NL(e)||DL(e))&&(TL(e)?AL:$L).test(RL(e))},LL=PL,FL=function(e,t){var n=LL(e,t);return jL(n)?n:void 0},ML=FL(Bj,"Map"),BL=FL(Object,"create"),UL=HL=BL,zL=HL,GL=Object.prototype.hasOwnProperty,WL=HL,VL=Object.prototype.hasOwnProperty,XL=HL,KL=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qL=function(e){var t,n=this.__data__;return zL?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:GL.call(n,e)?n[e]:void 0},YL=function(e){var t=this.__data__;return WL?void 0!==t[e]:VL.call(t,e)},JL=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=XL&&void 0===t?"__lodash_hash_undefined__":t,this},dh.prototype.clear=function(){this.__data__=UL?UL(null):{},this.size=0},dh.prototype.delete=KL,dh.prototype.get=qL,dh.prototype.has=YL,dh.prototype.set=JL,QL=dh,ZL=mL,eF=ML,tF=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},rF=nF=function(e,t){var n=e.__data__;return tF(t)?n["string"==typeof t?"string":"hash"]:n.map},oF=nF,iF=nF,aF=nF,sF=function(e){var t=rF(this,e).delete(e);return this.size-=t?1:0,t},lF=function(e){return oF(this,e).get(e)},cF=function(e){return iF(this,e).has(e)},uF=function(e,t){var n=aF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ph.prototype.clear=function(){this.size=0,this.__data__={hash:new QL,map:new(eF||ZL),string:new QL}},ph.prototype.delete=sF,ph.prototype.get=lF,ph.prototype.has=cF,ph.prototype.set=uF,pF=mL,fF=ML,hF=dF=ph,mF=mL,gF=yL,bF=vL,yF=wL,vF=function(e,t){var n,r=this.__data__;if(r instanceof pF){if(n=r.__data__,!fF||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new hF(n)}return r.set(e,t),this.size=r.size,this},fh.prototype.clear=bL,fh.prototype.delete=gF,fh.prototype.get=bF,fh.prototype.has=yF,fh.prototype.set=vF,wF=fh,EF=dF,xF=function(e){return this.__data__.has(e)},hh.prototype.add=hh.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},hh.prototype.has=xF,OF=_F=hh,kF=function(e,t){for(var n=-1,r=null==e?0:e.length;++nm))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new OF:void 0,i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},uM=Zj,(dM={})["[object Float32Array]"]=dM["[object Float64Array]"]=dM["[object Int8Array]"]=dM["[object Int16Array]"]=dM["[object Int32Array]"]=dM["[object Uint8Array]"]=dM["[object Uint8ClampedArray]"]=dM["[object Uint16Array]"]=dM["[object Uint32Array]"]=!0,dM["[object Arguments]"]=dM["[object Array]"]=dM["[object ArrayBuffer]"]=dM["[object Boolean]"]=dM["[object DataView]"]=dM["[object Date]"]=dM["[object Error]"]=dM["[object Function]"]=dM["[object Map]"]=dM["[object Number]"]=dM["[object Object]"]=dM["[object RegExp]"]=dM["[object Set]"]=dM["[object String]"]=dM["[object WeakMap]"]=!1,pM=function(e){return uM(e)&&cM(e.length)&&!!dM[lM(e)]},fM=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&Fj.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(lq){}}();e.exports=i}(hM={exports:{}},hM.exports),mM=pM,yM=(bM=(gM=hM.exports)&&gM.isTypedArray)?fM(bM):mM,wM=KF,EM=nM,xM=MF,_M=oM,SM=aM,OM=vM=yM,kM=Object.prototype.hasOwnProperty,CM=function(e,t){var n,r=xM(e),o=!r&&EM(e),i=!r&&!o&&_M(e),a=!r&&!o&&!i&&OM(e),s=r||o||i||a,l=s?wM(e.length,String):[],c=l.length;for(n in e)!t&&!kM.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||SM(n,c))||l.push(n);return l},TM=Object.prototype,DM=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||TM)},Nq=Object.keys,Rq=Object,NM=DM,RM=function(e){return Nq(Rq(e))},IM=Object.prototype.hasOwnProperty,$M=function(e){var t,n;if(!NM(e))return RM(e);for(n in t=[],Object(e))IM.call(e,n)&&"constructor"!=n&&t.push(n);return t},AM=_L,PM=sM,jM=CM,LM=$M,FM=function(e){return null!=e&&PM(e.length)&&!AM(e)},MM=function(e){return FM(e)?jM(e):LM(e)},BM=UF,HM=XF,UM=MM,zM=function(e){return BM(e,UM,HM)},GM=zM,WM=Object.prototype.hasOwnProperty,VM=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,h,m,g,b=1&n,y=GM(e),v=y.length;if(v!=GM(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:WM.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),d=b;++a .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),KB=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const i6=Bb.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Oi(e,KB),u=XB(l),d=u.styles;return Xb.jsxs(o6,Sh(Sh({className:(0,u.cx)(d.container,a),onClick:function(){i(!o)}},c),{},{children:[Xb.jsx(z3,{icon:o?pY:tY,size:"site"}),Xb.jsxs(t4,{bodyStyle:{padding:0},className:d.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:d.drawerRoot,width:"100vw",children:[Xb.jsx(t2,{className:d.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Xb.jsx("div",{className:d.fillRect})]})]}))}));qB=["icon","children","size"],QB=VA((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(YB||(YB=ki(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(JB||(JB=ki(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}));const a6=Bb.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Oi(e,qB),a=QB(),s=a.styles;return Xb.jsx(R3,kh(kh({bordered:!1,className:(0,a.cx)(s.tag,"small"===o&&s.small)},i),{},{children:Xb.jsxs(HB,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));ZB={exports:{}},eH={},tH=Bb,nH="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},rH=tH.useState,oH=tH.useEffect,iH=tH.useLayoutEffect,aH=tH.useDebugValue,sH="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=rH({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return iH((function(){o.value=n,o.getSnapshot=t,Ch(o)&&i({inst:o})}),[e,n,t]),oH((function(){return Ch(o)&&i({inst:o}),e((function(){Ch(o)&&i({inst:o})}))}),[e]),aH(n),n},eH.useSyncExternalStore=void 0!==tH.useSyncExternalStore?tH.useSyncExternalStore:sH,ZB.exports=eH,lH=ZB.exports,cH={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},uH=globalThis&&globalThis.__extends||(iq=function(e,t){return(iq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}iq(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dH=globalThis&&globalThis.__assign||function(){return dH=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=KA(AH||(AH=ki(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:qA(i,KA(PH||(PH=ki(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:qA("".concat(ZH,"-bottom-handle"),KA(jH||(jH=ki(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:qA(ZH,KA(LH||(LH=ki(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,ZH)),fixed:KA(FH||(FH=ki(["\n position: relative;\n "]))),fullscreen:KA(MH||(MH=ki(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:KA(BH||(BH=ki(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:qA(i,KA(HH||(HH=ki(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:qA(KA(UH||(UH=ki(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(ZH,"-left-handle")),panel:qA("".concat(ZH,"-fixed"),KA(zH||(zH=ki(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:qA(i,KA(GH||(GH=ki(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:qA(KA(WH||(WH=ki(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(ZH,"-right-handle")),toggleBottom:qA("".concat(ZH,"-toggle"),"".concat(ZH,"-toggle-bottom"),o,KA(VH||(VH=ki(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,QH,40)),toggleLeft:qA("".concat(ZH,"-toggle"),"".concat(ZH,"-toggle-left"),o,KA(XH||(XH=ki(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,QH,QH,40)),toggleRight:qA("".concat(ZH,"-toggle"),"".concat(ZH,"-toggle-right"),o,KA(KH||(KH=ki(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,QH,QH,40)),toggleTop:qA("".concat(ZH,"-toggle"),"".concat(ZH,"-toggle-top"),o,KA(qH||(qH=ki(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,QH,40,QH)),topFloat:qA(i,KA(YH||(YH=ki(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:qA("".concat(ZH,"-top-handle"),KA(JH||(JH=ki(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),tU=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const s6=Bb.memo((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w,E,x,_,S,O,k,C=e.headerHeight,T=void 0===C?0:C,D=e.fullscreen,N=e.maxHeight,R=e.pin,I=void 0===R||R,$=e.mode,A=void 0===$?"fixed":$,P=e.children,j=e.placement,L=void 0===j?"right":j,F=e.resize,M=e.style,B=e.size,H=e.defaultSize,U=e.minWidth,z=e.minHeight,G=e.maxWidth,W=e.onSizeChange,V=e.onSizeDragging,X=e.expandable,K=void 0===X||X,q=e.expand,Y=e.defaultExpand,J=void 0===Y||Y,Q=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=Bb.useRef(),ae=(b=ie,v=(y={}).onEnter,w=y.onLeave,E=y.onChange,x=ih(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=ih(function(e){var t,n;return void 0===e&&(e=!1),t=ih(Bb.useState(e),2),n=t[1],[t[0],Bb.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],Bb.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),_=x[0],O=(S=x[1]).setTrue,k=S.setFalse,mh("mouseenter",(function(){null==v||v(),O(),null==E||E(!0)}),{target:b}),mh("mouseleave",(function(){null==w||w(),k(),null==E||E(!1)}),{target:b}),_),se="top"===L||"bottom"===L,le=eU(T),ce=le.styles,ue=le.cx,de=Ua(wf(J,{onChange:Q,value:q}),2),pe=de[0],fe=de[1];return Bb.useEffect((function(){I||(ae&&!pe?fe(!0):!ae&&pe&&fe(!1))}),[I,ae,pe]),n=(t=Ua(Bb.useState(!0),2))[0],r=t[1],i=(o=Ua(Bb.useState(!1),2))[0],a=o[1],l=Bb.useMemo((function(){return s?Si({},tU(L),ce["".concat(tU(L),"Handle")]):{}}),[s=!1!==F&&pe,L]),c=Dh(Si({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},tU(L),!0),F),u=Bb.useMemo((function(){return Dh(se?{height:180,width:"100%"}:{height:"100%",width:280},H)}),[se]),d=pe?{defaultSize:u,maxHeight:"number"==typeof N?Math.max(N,0):N,maxWidth:"number"==typeof G?Math.max(G,0):G,minHeight:"number"==typeof z?Math.max(z,0):z,minWidth:"number"==typeof U?Math.max(U,0):U,size:B}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(p=Bb.useMemo((function(){switch(L){case"top":return{Arrow:Wq,className:"Bottom"};case"bottom":return{Arrow:Kq,className:"Top"};case"right":return{Arrow:Vq,className:"Left"};case"left":return{Arrow:Xq,className:"Right"}}}),[ce,L])).Arrow,m=Xb.jsx(o6,{className:ue(ce["toggle".concat(h=p.className)],oe.handle),style:{opacity:pe?I?void 0:0:ee?1:0},children:Xb.jsx(o6,{onClick:function(){fe(!pe)},style:ne,children:Xb.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(pe?180:0,"deg)")},children:Xb.jsx(f,{size:16,strokeWidth:1.5})})})}),g=Xb.jsx(RH,Dh(Dh({},d),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==V||V(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==W||W(o,{height:n.style.height,width:n.style.width})},style:Dh({transition:i?"unset":void 0},M),children:P})),D?Xb.jsx("div",{className:ue(ce.fullscreen,Z),children:P}):Xb.jsxs("aside",{className:ue(ce.container,ce["fixed"===A?"fixed":"".concat(L,"Float")],Z),ref:ie,style:pe?Si({},"border".concat(h,"Width"),1):{},children:[K&&n&&m,te?pe&&g:g]})}));aU=VA((function(e){var t=e.css,n=e.token;return{body:t(nU||(nU=ki(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(rU||(rU=ki(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(oU||(oU=ki(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(iU||(iU=ki(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),sU=["className","children"];const l6=Bb.memo((function(e){var t=e.className,n=e.children,r=Oi(e,sU),o=aU();return Xb.jsx("div",Rh(Rh({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));lU=["className","children"];const c6=Bb.memo((function(e){var t=e.className,n=e.children,r=Oi(e,lU),o=aU();return Xb.jsx("div",$h($h({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));cU=["className","children"];const u6=Bb.memo((function(e){var t=e.className,n=e.children,r=Oi(e,cU),o=aU();return Xb.jsx("div",Ph(Ph({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));uU=["pin","setPin","className","setExpand","title","position"];const d6=Bb.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=Oi(e,uU),c=aU(),u=c.cx,d=c.styles,p=Xb.jsx(z3,{icon:iY,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=Xb.jsx(z3,{active:t,icon:t?lY:sY,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Xb.jsxs("div",Lh(Lh({className:u(d.header,r)},l),{},{children:["left"===s?p:f,i,"left"===s?f:p]}))}));dU=function e(t,n){var r,o,i,a;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const p6=t(dU);pU=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const f6=Bb.memo((function(e){var t=e.url;return Bb.useEffect((function(){var e=pU(t);document.head.append(e)}),[]),!1}));fU=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return Aq.createElement("div",{className:yY("".concat(t,"-column"),s),style:a},(r||n)&&Aq.createElement("h2",null,n&&Aq.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return Aq.createElement("div",{className:yY("".concat(t,"-item"),e.className),style:e.style,key:n},Aq.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&Aq.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&Aq.createElement(Aq.Fragment,null,Aq.createElement("span",{className:"".concat(t,"-item-separator")},"-"),Aq.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},hU=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],mU=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,p=Oi(e,hU),f=yY("".concat(n),r,Si({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return Aq.createElement("footer",xa(xa({},p),{},{className:f,style:xa(xa({},o),{},{backgroundColor:l})}),Aq.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&Aq.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:h?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.className,a=e.items,l=void 0===a?[]:a,c=xa({},e.style);return h&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),Aq.createElement(fU,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&Aq.createElement("section",{className:"".concat(n,"-bottom")},Aq.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},yU=VA((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n(gU||(gU=ki(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(bU||(bU=ki(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const h6=Bb.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=yU({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return Xb.jsx("section",{className:i.container,children:Xb.jsx(mU,{bottom:n,className:i.footer,columns:t,theme:r})})}));CU=VA((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,s=e.responsive;return{footer:r(vU||(vU=ki(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(wU||(wU=ki(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .ant-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,i.fontFamilyCode),group:o(a&&r(EU||(EU=ki(["\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-header {\n background: ",";\n }\n "])),i.colorFillTertiary),r(xU||(xU=ki(["\n .ant-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .ant-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])))),icon:r(_U||(_U=ki(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(SU||(SU=ki(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .ant-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n .ant-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .ant-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),t&&r(OU||(OU=ki(["\n .ant-form-item-control {\n width: ",";\n }\n "])),(n=t,"number"==typeof n||Af(n)&&"[object Number]"==$f(n)?"".concat(t,"px"):t)),s.mobile),title:r(kU||(kU=ki(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),i.colorPrimary)}})),TU=["className","children"];const m6=Bb.memo((function(e){var t=e.className,n=e.children,r=Oi(e,TU),o=CU();return Xb.jsx("div",Mh(Mh({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));DU=["className","icon","title","children","extra"];const g6=Bb.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Oi(e,DU),s=CU(),l=s.styles;return Xb.jsx(E5,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .ant-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),n.borderRadius)}})),jU=["className","itemMinWidth","footer","form","items","children"],(LU=Bb.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,s=e.children,l=Oi(e,jU),c=PU();return Xb.jsxs(L4,Vh(Vh({className:(0,c.cx)(c.styles.form,n),colon:!1,form:i,layout:"horizontal",ref:t},l),{},{children:[null==a?void 0:a.map((function(e,t){return Xb.jsx(g6,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return Xb.jsx(v6,Vh({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&Xb.jsx(m6,{children:o})]}))}))).Item=v6,LU.Group=g6;const w6=LU;FU={};const E6=Xb,x6=Bb;BU=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:p,lang:f,loading:h}){const[m,g]=x6.useState(!1);return x6.useEffect((()=>{m||(Promise.resolve().then((()=>(MU||(MU=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=M(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):pe(e,t)}function i(e){void 0!==this._$AN?(me(this),this._$AM=e,ge(this)):this._$AM=e}function a(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;ie:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,E=window,x=E.trustedTypes,_=x?x.emptyScript:"",S=E.reactiveElementPolyfillSupport,O={toAttribute(e,t){switch(t){case Boolean:e=e?_:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},k=(e,t)=>t!==e&&(t==t||e==e),C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:k},T="finalized";let D=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=C){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||C}static finalize(){if(this.hasOwnProperty(T))return!1;this[T]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(w(e))}else void 0!==e&&t.push(w(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{g?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=h.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=C){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:O).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:O;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||k)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(m){Promise.reject(m)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};D[T]=!0,D.elementProperties=new Map,D.elementStyles=[],D.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:D}),(null!==(s=E.reactiveElementVersions)&&void 0!==s?s:E.reactiveElementVersions=[]).push("1.6.2");const N=window,R=N.trustedTypes,I=R?R.createPolicy("lit-html",{createHTML:e=>e}):void 0,$="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,P="?"+A,j=`<${P}>`,L=document,F=()=>L.createComment(""),M=e=>null===e||"object"!=typeof e&&"function"!=typeof e,B=Array.isArray,H="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,G=/>/g,W=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,X=/"/g,K=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,Z=L.createTreeWalker(L,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",a=U;for(let l=0;l"===s[0]?(a=o??U,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?W:'"'===s[3]?X:V):a===X||a===V?a=W:a===z||a===G?a=U:(a=W,o=void 0);const d=a===W&&e[l+1].startsWith("/>")?" ":"";i+=a===U?t+j:c>=0?(r.push(n),t.slice(0,c)+$+t.slice(c)+A+d):t+A+(-2===c?(r.push(void 0),l):d)}const s=i+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length0){r.textContent=R?R.emptyScript:"";for(let n=0;nB(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==J&&M(this._$AH)?this._$AA.nextSibling.data=e:this.$(L.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new te(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=Q.get(e.strings);return void 0===t&&Q.set(e.strings,t=new ee(e)),t}T(e){B(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new ne(this.k(F()),this.k(F()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!M(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new ne(t.insertBefore(F(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}};ue.finalized=!0,ue._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ue});const de=globalThis.litElementPolyfillSupport;null==de||de({LitElement:ue}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const pe=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;let fe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const he=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),he(i,t);return!0},me=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},ge=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),be(t)}},be=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class ye extends fe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),ge(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(he(this,e),me(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ve{}const we=new WeakMap,Ee=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ye{render(e){return J}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),J}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=we.get(n);void 0===r&&(r=new WeakMap,we.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=we.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},t.GiscusWidget=class extends ue{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new ve,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this._host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return q` +function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},n.prototype=t.prototype):n={},Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n)}function r(e,t,n){this.props=e,this.context=t,this.refs=EZ,this.updater=n||DZ}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=EZ,this.updater=n||DZ}function a(e,t,n){var r,o,i,a,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)lv.call(t,r)&&!uv.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Av.call($v,e)||!Av.call(Tv,e)&&(Rv.test(e)?$v[e]=!0:(Tv[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Jv&&e[Jv]||e["@@iterator"])?e:null}function _(e){if(void 0===e_)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);e_=t&&t[1]||""}return"\n"+e_+e}function w(e,t){var n,r,o,i,a,s,l;if(!e||t_)return"";t_=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{t_=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function C(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function k(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Bv:return"Fragment";case Uv:return"Portal";case zv:return"Profiler";case Hv:return"StrictMode";case qv:return"Suspense";case Xv:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Vv:return(e.displayName||"Context")+".Consumer";case Wv:return(e._context.displayName||"Context")+".Provider";case Gv:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Kv:return null!==(t=e.displayName||null)?t:k(e.type)||"Memo";case Yv:t=e._payload,e=e._init;try{return k(e(t))}catch(n){}}return null}function x(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(t);case 8:return t===Hv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function D(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function S(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function E(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=S(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function O(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=S(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function P(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function I(e,t){var n=t.checked;return Zv({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function N(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=D(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function A(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function R(e,t){A(e,t);var n=D(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?$(e,t.type,n):t.hasOwnProperty("defaultValue")&&$(e,t.type,D(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function T(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function $(e,t,n){"number"===t&&P(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function j(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-R_(t)]=n}function he(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-R_(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=P();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=P((e=t.contentWindow).document)}return t}function nt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rt(e){var t,n,r,o=tt(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&et(i.ownerDocument.documentElement,i)){null!==a&&nt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Ze(i,n),r=Ze(i,a),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;iTC||(e.current=RC[TC],RC[TC]=null,TC--)}function Rt(e,t){TC++,RC[TC]=e.current,e.current=t}function Tt(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return $C;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function $t(e){return null!=e.childContextTypes}function jt(){At(FC),At(jC)}function Ft(e,t,n){if(jC.current!==$C)throw Error(f(168));Rt(jC,t),Rt(FC,n)}function Lt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(f(108,x(e)||"Unknown",r));return Zv({},n,o)}function Mt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$C,LC=jC.current,Rt(jC,e),Rt(FC,FC.current),!0}function Ut(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=Lt(e,t,LC),r.__reactInternalMemoizedMergedChildContext=e,At(FC),At(jC),Rt(jC,e)):At(FC),Rt(FC,n)}function Bt(e){null===MC?MC=[e]:MC.push(e)}function Ht(){var e,t,n,r;if(!BC&&null!==MC){BC=!0,e=0,t=L_;try{for(n=MC,L_=1;e>=a,o-=a,KC=1<<32-R_(t)+o|n<g?(h=f,f=null):h=f.sibling,null===(b=d(o,f,s[g],l))){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,f=h}if(g===s.length)return n(o,f),ZC&&zt(o,g),c;if(null===f){for(;gg?(h=u,u=null):h=u.sibling,null===(y=d(o,u,b.value,l))){null===u&&(u=h);break}e&&u&&null===y.alternate&&t(o,u),a=i(y,a,g),null===c?_=y:c.sibling=y,c=y,u=h}if(b.done)return n(o,u),ZC&&zt(o,g),_;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=p(o,b.value,l))&&(a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return ZC&&zt(o,g),_}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=m(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),ZC&&zt(o,g),_}(l,c,u,g);Sn(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=ni(u,l.mode,g)).return=l,l=c),a(l)):n(l,c)}}function Pn(e){if(e===dk)throw Error(f(174));return e}function In(e,t){switch(Rt(gk,t),Rt(mk,e),Rt(fk,dk),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}At(fk),Rt(fk,t)}function Nn(){At(fk),At(mk),At(gk)}function An(e){var t,n;Pn(gk.current),(t=Pn(fk.current))!==(n=H(t,e.type))&&(Rt(mk,e),Rt(fk,n))}function Rn(e){mk.current===e&&(At(fk),At(mk))}function Tn(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function $n(){for(var e=0;er?r:4,e(!0),n=vk.transition,vk.transition={};try{e(!1),t()}finally{L_=r,vk.transition=n}}function mr(){return Bn().memoizedState}function gr(e,t,n){var r=_o(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?yr(t,n):null!==(n=un(e,t,n,r))&&(wo(n,e,r,vo()),vr(n,t,r))}function hr(e,t,n){var r,o,i,a,s=_o(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))yr(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,Jw(i,o))return null===(a=t.interleaved)?(l.next=l,cn(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(wo(n,e,s,l=vo()),vr(n,t,s))}}function br(e){var t=e.alternate;return e===wk||null!==t&&t===wk}function yr(e,t){Dk=xk=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,he(e,n)}}function _r(e,t){var n,r,o;try{n="",r=t;do{n+=C(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Cr(e,t,n){(n=mn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fx||(fx=!0,mx=r)},n}function kr(e,t,n){var r,o,i;return(n=mn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===gx?gx=new Set([this]):gx.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function xr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new Ak).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function Dr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sr(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=mn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Er(e,t,n,r){t.child=null===e?pk(t,null,n,r):uk(t,e.child,n,r)}function Or(e,t,n,r,o){n=n.render;var i=t.ref;return sn(t,o),r=Ln(e,t,n,r,i,o),n=Mn(),null===e||Tk?(ZC&&n&&Vt(t),t.flags|=1,Er(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Pr(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Qo(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ir(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Qe)(i.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Jo(i,r)).ref=t.ref,e.return=t,t.child=e))}function Ir(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qe(i,r)&&e.ref===t.ref){if(Tk=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&(Tk=!0)}}return Rr(e,t,n,r,o)}function Nr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(nx,tx),tx|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(nx,tx),tx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Rt(nx,tx),tx|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Rt(nx,tx),tx|=r;return Er(e,t,o,n),t.child}function Ar(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rr(e,t,n,r,o){var i=$t(n)?LC:jC.current;return i=Tt(t,i),sn(t,o),n=Ln(e,t,n,r,i,o),r=Mn(),null===e||Tk?(ZC&&r&&Vt(t),t.flags|=1,Er(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Tr(e,t,n,r,o){var i,a,s,l,c,u,p,d,f,m;return $t(n)?(i=!0,Mt(t)):i=!1,sn(t,o),null===t.stateNode?(Vr(e,t),Cn(t,n,r),xn(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):Tt(t,c=$t(n)?LC:jC.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&kn(t,a,r,c),sk=!1,a.state=d=t.memoizedState,yn(t,r,a,o),l=t.memoizedState,s!==r||d!==l||FC.current||sk?("function"==typeof u&&(_n(t,n,u,r),l=t.memoizedState),(s=sk||wn(t,n,s,r,d,l,c))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),a.props=c,p=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):Tt(t,l=$t(n)?LC:jC.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==p||d!==l)&&kn(t,a,r,l),sk=!1,a.state=d=t.memoizedState,yn(t,r,a,o),m=t.memoizedState,s!==p||d!==m||FC.current||sk?("function"==typeof f&&(_n(t,n,f,r),m=t.memoizedState),(c=sk||wn(t,n,c,r,d,m,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)),$r(e,t,n,r,i,o)}function $r(e,t,n,r,o,i){var a,s;return Ar(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,Rk.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=uk(t,e.child,null,i),t.child=uk(t,null,s,i)):Er(e,t,s,i),t.memoizedState=r.state,o&&Ut(t,n,!0),t.child):(o&&Ut(t,n,!1),Gr(e,t,i))}function jr(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),In(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Er(e,t,n,r),t.child}function Lr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mr(e,t,n){var r,o,i=t.pendingProps,a=hk.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Rt(hk,1&a),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ti(l,i,0,null),e=ei(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Lr(n),t.memoizedState=$k,e):Ur(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Br(e,t,a,r=wr(Error(f(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ti({mode:"visible",children:r.children},o=t.mode,0,null),(i=ei(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&uk(t,e.child,null,a),t.child.memoizedState=Lr(a),t.memoizedState=$k,i);if(0==(1&t.mode))return Br(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Br(e,t,a,r=wr(i=Error(f(419)),r,void 0))}if(s=0!=(a&e.childLanes),Tk||s){if(null!==(r=Jk)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,pn(e,o),wo(r,e,o,-1))}return To(),Br(e,t,a,r=wr(Error(f(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,JC=Dt(o.nextSibling),QC=t,ZC=!0,ek=null,null!==e&&(GC[qC++]=KC,GC[qC++]=YC,GC[qC++]=XC,KC=e.id,YC=e.overflow,XC=t),(t=Ur(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Jo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Jo(r,s):(s=ei(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Lr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=$k,i):(e=(s=e.child).sibling,i=Jo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function Ur(e,t){return(t=ti({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Br(e,t,n,r){return null!==r&&tn(r),uk(t,e.child,null,n),(e=Ur(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function zr(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Er(e,t,r.children,n),0!=(2&(r=hk.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Rt(hk,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Tn(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zr(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Tn(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zr(t,!0,n,null,i);break;case"together":zr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ix|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=Jo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Jo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!ZC)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,i,a,s,l=t.pendingProps;switch(Gt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return $t(t.type)&&jt(),Xr(t),null;case 3:return l=t.stateNode,Nn(),At(FC),At(jC),$n(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Jt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ek&&(Do(ek),ek=null))),Fk(e,t),Xr(t),null;case 5:if(Rn(t),r=Pn(gk.current),n=t.type,null!==e&&null!=t.stateNode)Lk(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(f(166));return Xr(t),null}if(e=Pn(fk.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[EC]=t,l[OC]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[EC]=t,e[OC]=l,jk(e,t,!1,!1),t.stateNode=e;e:{switch(i=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rpx&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Tn(i))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!ZC)return Xr(t),null}else 2*x_()-o.renderingStartTime>px&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=x_(),t.sibling=null,n=hk.current,Rt(hk,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return Io(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&tx)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(f(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return $t(t.type)&&jt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nn(),At(FC),At(jC),$n(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Rn(t),null;case 13:if(At(hk),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return At(hk),null;case 4:return Nn(),null;case 10:return on(t.type._context),null;case 22:case 23:return Io(),null;default:return null}}function Qr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){zo(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){zo(e,t,r)}}function Zr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Jr(t,n,o)),r=r.next}while(r!==i)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[EC],delete t[OC],delete t[IC],delete t[NC],delete t[AC]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,i,a;if(A_&&"function"==typeof A_.onCommitFiberUnmount)try{A_.onCommitFiberUnmount(N_,n)}catch(s){}switch(n.tag){case 5:Bk||Qr(n,t);case 6:r=Vk,o=Gk,Vk=null,so(e,t,n),Gk=o,null!==(Vk=r)&&(Gk?(n=n.stateNode,8===(e=Vk).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Vk.removeChild(n.stateNode));break;case 18:null!==Vk&&(Gk?(n=n.stateNode,8===(e=Vk).nodeType?xt(e.parentNode,n):1===e.nodeType&&xt(e,n),De(e)):xt(Vk,n.stateNode));break;case 4:r=Vk,o=Gk,Vk=n.stateNode.containerInfo,Gk=!0,so(e,t,n),Vk=r,Gk=o;break;case 0:case 11:case 14:case 15:if(!Bk&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jr(n,t,a),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!Bk&&(Qr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){zo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(Bk=(r=Bk)||null!==n.memoizedState,so(e,t,n),Bk=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new Hk),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,i,a,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=x_()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qk(r/1960))-r)){e.timeoutHandle=CC(Uo.bind(null,e,cx,dx),r);break}Uo(e,cx,dx);break;default:throw Error(f(329))}}}return Co(e,x_()),e.callbackNode===n?ko.bind(null,e):null}function xo(e,t){var n=lx;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),2!==(e=$o(e,t))&&(t=cx,cx=n,null!==t&&Do(t)),e}function Do(e){null===cx?cx=e:cx.push.apply(cx,e)}function So(e,t){for(t&=~sx,e.suspendedLanes|=t&=~ax,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===bx)r=!1;else{if(e=bx,bx=null,yx=0,0!=(6&Qk))throw Error(f(331));for(o=Qk,Qk|=4,zk=e.current;null!==zk;){if(a=(i=zk).child,0!=(16&zk.flags)&&null!==(s=i.deletions)){for(l=0;lx_()-ux?No(e,0):sx|=n),Co(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=F_,0==(130023424&(F_<<=1))&&(F_=4194304)));var n=vo();null!==(e=pn(e,t))&&(ge(e,t,n),Co(e,n))}function Go(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Vo(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(f(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return __(e,t)}function Ko(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yo(e,t,n,r){return new Ko(e,t,n,r)}function Qo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jo(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Qo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Bv:return ei(n.children,o,i,t);case Hv:a=8,o|=8;break;case zv:return(e=Yo(12,n,t,2|o)).elementType=zv,e.lanes=i,e;case qv:return(e=Yo(13,n,t,o)).elementType=qv,e.lanes=i,e;case Xv:return(e=Yo(19,n,t,o)).elementType=Xv,e.lanes=i,e;case Qv:return ti(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Wv:a=10;break e;case Vv:a=9;break e;case Gv:a=11;break e;case Kv:a=14;break e;case Yv:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=Yo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ei(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ti(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=Qv,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ri(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oi(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=me(0),this.expirationTimes=me(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ii(e,t,n,r,o,i,a,s,l){return e=new oi(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Yo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dn(i),e}function ai(e){var t,n;if(!e)return $C;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(f(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}return 1===e.tag&&$t(n=e.type)?Lt(e,n,t):t}function si(e,t,n,r,o,i,a,s,l){return(e=ii(n,r,!0,e,0,i,0,s,l)).context=ai(null),n=e.current,(i=mn(r=vo(),o=_o(n))).callback=null!=t?t:null,gn(n,i,o),e.current.lanes=o,ge(e,o,r),Co(e,r),e}function li(e,t,n,r){var o=t.current,i=vo(),a=_o(o);return n=ai(n),null===t.context?t.context=n:t.pendingContext=n,(t=mn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,a))&&(wo(e,o,a,i),hn(e,o,a)),a}function ci(e){return(e=e.current).child?e.child.stateNode:null}function ui(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Ei(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pi(e,t){var n,r;for(n=0;n2||Vi(sS)>3?"":" "}function Yi(e,t){for(;--t&&Bi()&&!(sS<48||sS>102||sS>57&&sS<65||sS>70&&sS<97););return Wi(e,zi()+(t<6&&32==Hi()&&32==Bi()))}function Qi(e){for(;Bi();)switch(sS){case e:return aS;case 34:case 39:34!==e&&39!==e&&Qi(sS);break;case 40:41===e&&Qi(e);break;case 92:Bi()}return aS}function Ji(e,t){for(;Bi()&&e+sS!==57&&(e+sS!==84||47!==Hi()););return"/*"+Wi(t,aS-1)+"*"+tS(47===e?e:Bi())}function Zi(e){for(;!Vi(Hi());)Bi();return Wi(e,aS)}function ea(e){return qi(ta("",null,null,null,[""],e=Gi(e),0,[0],e))}function ta(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,C=r,k=v;h;)switch(m=y,y=Bi()){case 40:if(108!=m&&58==Ti(k,p-1)){-1!=Ri(k+=Ai(Xi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Xi(y);break;case 9:case 10:case 13:case 32:k+=Ki(m);break;case 92:k+=Yi(zi()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Li(ra(Ji(Bi(),zi()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ji(k)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(k=Ai(k,/\f/g,"")),f>0&&ji(k)-p&&Li(f>32?oa(k+";",r,n,p-1):oa(Ai(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Li(C=na(k,t,n,c,u,o,s,v,_=[],w=[],p),i),123===y)if(0===u)ta(k,t,C,C,_,i,p,s,w);else switch(99===d&&110===Ti(k,3)?100:d){case 100:case 108:case 109:case 115:ta(e,C,C,r&&Li(na(e,C,C,0,0,o,s,v,o,_=[],p),w),o,w,p,s,r?_:w);break;default:ta(k,C,C,C,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=k="",p=a;break;case 58:p=1+ji(k),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(sS=aS>0?Ti(lS,--aS):0,oS--,10===sS&&(oS=1,rS--),sS))continue;switch(k+=tS(y),y*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ji(k)-1)*b,b=1;break;case 64:45===Hi()&&(k+=Xi(Bi())),d=Hi(),u=p=ji(v=k+=Zi(zi())),y++;break;case 45:45===m&&2==ji(k)&&(g=0)}}return i}function na(e,t,n,r,o,i,a,s,l,c,u){var p,d,f,m,g,h,b=o-1,y=0===o?i:[""],v=Fi(y);for(p=0,d=0,f=0;p0?y[m]+" "+g:Ai(g,/&\f/g,y[m])))&&(l[f++]=h);return Mi(e,t,n,0===o?KD:s,l,c,u)}function ra(e,t,n){return Mi(e,t,n,XD,tS(sS),$i(e,2,-2),0)}function oa(e,t,n,r){return Mi(e,t,n,YD,$i(e,0,r),$i(e,r+1,-1),r)}function ia(e,t){var n,r="",o=Fi(e);for(n=0;n6)switch(Ti(e,t+1)){case 109:if(45!==Ti(e,t+4))break;case 102:return Ai(e,/(.+:)(.+)-([^]+)/,"$1"+qD+"$2-$3$1"+GD+(108==Ti(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ri(e,"stretch")?la(Ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ti(e,t+1))break;case 6444:switch(Ti(e,ji(e)-3-(~Ri(e,"!important")&&10))){case 107:return Ai(e,":",":"+qD)+e;case 101:return Ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qD+(45===Ti(e,14)?"inline-":"")+"box$3$1"+qD+"$2$3$1"+VD+"$2box$3")+e}break;case 5936:switch(Ti(e,t+11)){case 114:return qD+e+VD+Ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qD+e+VD+Ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qD+e+VD+Ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qD+e+VD+e+e}return e}function ca(e,t,n){var r,o,i,a;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ES={name:n.name,styles:n.styles,next:ES},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)ES={name:r.name,styles:r.styles,next:ES},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Sa(e,t,n){var r=gv.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Ea(){}function Oa(){}function Pa(e,t,n){t||LE[n]||(e(!1,n),LE[n]=!0)}function Ia(e,t){Pa(Ea,e,t)}function Na(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if(Ia(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):XE}function ja(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fa(e){return Array.from((KE.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function La(e,t){var n,r,o,i,a,s,l,c,u,p,d=arguments.length>1&&void 0!==t?t:{};if(!Ra())return null;if(n=d.csp,i=void 0===(o=d.priority)?0:o,s="prependQueue"===(a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r=d.prepend)),(l=document.createElement("style")).setAttribute(GE,a),s&&i&&l.setAttribute(qE,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e,u=(c=ja(d)).firstChild,r){if(s&&(p=Fa(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(GE)))return!1;var t=Number(e.getAttribute(qE)||0);return i>=t}))).length)return c.insertBefore(l,p[p.length-1].nextSibling),l;c.insertBefore(l,u)}else c.appendChild(l);return l}function Ma(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Fa(ja(n)).find((function(t){return t.getAttribute($a(n))===e}))}function Ua(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Ma(e,n);r&&ja(n).removeChild(r)}function Ba(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=KE.get(e);r&&Ta(document,r)||(n=La("",t),KE.set(e,n.parentNode),e.removeChild(n))}(ja(l),l),(r=Ma(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=La(e,l)).setAttribute($a(l),t),s)}function Ha(e){if(Array.isArray(e))return e}function za(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wa(e,t){return Ha(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||wa(e,t)||za()}function Va(e){var t=Array.isArray(e)?e:[e];return ZE.has(t)||ZE.set(t,new JE(t)),ZE.get(t)}function Ga(e){var t=eO.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof JE?t+=r.id:r&&"object"===ki(r)?t+=Ga(r):t+=r})),eO.set(e,t)),t}function qa(e,t,n,r,o){var i,a,s=gv.useContext(u0).cache,l=[e].concat(Ca(t)),c=l.join("_"),u=d0([c]),p=function(e){s.update(l,(function(t){var r=Wa(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return gv.useMemo((function(){p()}),[c]),i=s.get(l),a=i[1],p0((function(){null==o||o(a)}),(function(e){return p((function(t){var n=Wa(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(a)),[r+1,i]})),function(){s.update(l,(function(e){var t=Wa(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u((function(){return null==r?void 0:r(i,!1)})),null):[o-1,i]}))}}),[c]),a}function Xa(e){return e.trim()}function Ka(e,t){return(e=t.exec(e))?e[0]:e}function Ya(e,t,n){return e.replace(t,n)}function Qa(e,t){return e.indexOf(t)}function Ja(e,t){return 0|e.charCodeAt(t)}function Za(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ts(e){return e.length}function ns(e,t){return t.push(e),e}function rs(e,t){return e.filter((function(e){return!Ka(e,t)}))}function os(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:EO,column:OO,length:a,return:"",siblings:s}}function is(e,t){return SO(os("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function as(e){for(;e.root;)e=is(e.root,{children:[e]});ns(e,e.siblings)}function ss(){return NO=IO2||ps(NO)>3?"":" "}function ms(e,t){for(;--t&&ss()&&!(NO<48||NO>102||NO>57&&NO<65||NO>70&&NO<97););return us(e,cs()+(t<6&&32==ls()&&32==ss()))}function gs(e){for(;ss();)switch(NO){case e:return IO;case 34:case 39:34!==e&&39!==e&&gs(NO);break;case 40:41===e&&gs(e);break;case 92:ss()}return IO}function hs(e,t){for(;ss()&&e+NO!==57&&(e+NO!==84||47!==ls()););return"/*"+us(t,IO-1)+"*"+DO(47===e?e:ss())}function bs(e){for(;!ps(ls());)ss();return us(e,IO)}function ys(e){return function(e){return AO="",e}(vs("",null,null,null,[""],e=function(e){return EO=OO=1,PO=es(AO=e),IO=0,[]}(e),0,[0],e))}function vs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,C=r,k=v;h;)switch(m=y,y=ss()){case 40:if(108!=m&&58==Ja(k,p-1)){-1!=Qa(k+=Ya(ds(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=ds(y);break;case 9:case 10:case 13:case 32:k+=fs(m);break;case 92:k+=ms(cs()-1,7);continue;case 47:switch(ls()){case 42:case 47:ns(ws(hs(ss(),cs()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=es(k)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(k=Ya(k,/\f/g,"")),f>0&&es(k)-p&&ns(f>32?Cs(k+";",r,n,p-1,l):Cs(Ya(k," ","")+";",r,n,p-2,l),l);break;case 59:k+=";";default:if(ns(C=_s(k,t,n,c,u,o,s,v,_=[],w=[],p,i),i),123===y)if(0===u)vs(k,t,C,C,_,i,p,s,w);else switch(99===d&&110===Ja(k,3)?100:d){case 100:case 108:case 109:case 115:vs(e,C,C,r&&ns(_s(e,C,C,0,0,o,s,v,o,_=[],p,w),w),o,w,p,s,r?_:w);break;default:vs(k,C,C,C,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=k="",p=a;break;case 58:p=1+es(k),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(NO=IO>0?Ja(AO,--IO):0,OO--,10===NO&&(OO=1,EO--),NO))continue;switch(k+=DO(y),y*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(es(k)-1)*b,b=1;break;case 64:45===ls()&&(k+=ds(ss())),d=ls(),u=p=es(v=k+=bs(cs())),y++;break;case 45:45===m&&2==es(k)&&(g=0)}}return i}function _s(e,t,n,r,o,i,a,s,l,c,u,p){var d,f,m,g,h,b,y=o-1,v=0===o?i:[""],_=ts(v);for(d=0,f=0,m=0;d0?v[g]+" "+h:Ya(h,/&\f/g,v[g])))&&(l[m++]=b);return os(e,t,n,0===o?vO:s,l,c,u,p)}function ws(e,t,n,r){return os(e,t,n,yO,DO(NO),Za(e,2,-2),0,r)}function Cs(e,t,n,r,o){return os(e,t,n,_O,Za(e,0,r),Za(e,r+1,-1),r,o)}function ks(e,t,n){switch(function(e,t){return 45^Ja(e,0)?(((t<<2^Ja(e,0))<<2^Ja(e,1))<<2^Ja(e,2))<<2^Ja(e,3):0}(e,t)){case 5103:return bO+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bO+e+e;case 4789:return hO+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bO+e+hO+e+gO+e+e;case 5936:switch(Ja(e,t+11)){case 114:return bO+e+gO+Ya(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bO+e+gO+Ya(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bO+e+gO+Ya(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return bO+e+gO+e+e;case 6165:return bO+e+gO+"flex-"+e+e;case 5187:return bO+e+Ya(e,/(\w+).+(:[^]+)/,bO+"box-$1$2"+gO+"flex-$1$2")+e;case 5443:return bO+e+gO+"flex-item-"+Ya(e,/flex-|-self/g,"")+(Ka(e,/flex-|baseline/)?"":gO+"grid-row-"+Ya(e,/flex-|-self/g,""))+e;case 4675:return bO+e+gO+"flex-line-pack"+Ya(e,/align-content|flex-|-self/g,"")+e;case 5548:return bO+e+gO+Ya(e,"shrink","negative")+e;case 5292:return bO+e+gO+Ya(e,"basis","preferred-size")+e;case 6060:return bO+"box-"+Ya(e,"-grow","")+bO+e+gO+Ya(e,"grow","positive")+e;case 4554:return bO+Ya(e,/([^-])(transform)/g,"$1"+bO+"$2")+e;case 6187:return Ya(Ya(Ya(e,/(zoom-|grab)/,bO+"$1"),/(image-set)/,bO+"$1"),e,"")+e;case 5495:case 3959:return Ya(e,/(image-set\([^]*)/,bO+"$1$`$1");case 4968:return Ya(Ya(e,/(.+:)(flex-)?(.*)/,bO+"box-pack:$3"+gO+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bO+e+e;case 4200:if(!Ka(e,/flex-|baseline/))return gO+"grid-column-align"+Za(e,t)+e;break;case 2592:case 3360:return gO+Ya(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Ka(e.props,/grid-\w+-end/)}))?~Qa(e+(n=n[t].value),"span")?e:gO+Ya(e,"-start","")+e+gO+"grid-row-span:"+(~Qa(n,"span")?Ka(n,/\d+/):+Ka(n,/\d+/)-+Ka(e,/\d+/))+";":gO+Ya(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Ka(e.props,/grid-\w+-start/)}))?e:gO+Ya(Ya(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ya(e,/(.+)-inline(.+)/,bO+"$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(es(e)-1-t>6)switch(Ja(e,t+1)){case 109:if(45!==Ja(e,t+4))break;case 102:return Ya(e,/(.+:)(.+)-([^]+)/,"$1"+bO+"$2-$3$1"+hO+(108==Ja(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qa(e,"stretch")?ks(Ya(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ya(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return gO+n+":"+r+s+(o?gO+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Ja(e,t+6))return Ya(e,":",":"+bO)+e;break;case 6444:switch(Ja(e,45===Ja(e,14)?18:11)){case 120:return Ya(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+bO+(45===Ja(e,14)?"inline-":"")+"box$3$1"+bO+"$2$3$1"+gO+"$2box$3")+e;case 100:return Ya(e,":",":"+gO)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ya(e,"scroll-","scroll-snap-")+e}return e}function xs(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case _O:return void(e.return=ks(e.value,e.length,n));case CO:return xs([is(e,{value:Ya(e.value,"@","@"+bO)})],r);case vO:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Ka(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":as(is(e,{props:[Ya(t,/:(read-\w+)/,":"+hO+"$1")]})),as(is(e,{props:[t]})),SO(e,{props:rs(n,r)});break;case"::placeholder":as(is(e,{props:[Ya(t,/:(plac\w+)/,":"+bO+"input-$1")]})),as(is(e,{props:[Ya(t,/:(plac\w+)/,":"+hO+"$1")]})),as(is(e,{props:[Ya(t,/:(plac\w+)/,gO+"input-$1")]})),as(is(e,{props:[t]})),SO(e,{props:rs(n,r)})}return""}))}}function Es(e){return xs(ys(e),Ds).replace(/\{%%%\:[^;];}/g,";")}function Os(){return null}function Ps(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b=e.token,y=e.path,v=e.hashId,_=e.layer,w=e.nonce,C=e.clientOnly,k=e.order,x=void 0===k?0:k,D=gv.useContext(u0),S=D.autoClear;return n=D.defaultCache,r=D.hashPriority,o=D.container,i=D.ssrInline,a=D.transformers,s=D.linters,l=D.cache,u=[c=b._tokenKey].concat(Ca(y)),p=FO,d=qa("style",u,(function(){var e,n,o,i,l,p,d,f,m=u.join("|");return function(e){var t,n,r;return $O||($O={},Ra()&&((t=document.createElement("div")).className=RO,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=Wa(e.split(":"),2);$O[t[0]]=t[1]})),(n=document.querySelector("style[".concat(RO,"]")))&&(jO=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!$O[e]}(m)&&(e=function(e){var t,n=$O[e],r=null;return n&&Ra()&&(jO?r=TO:(t=document.querySelector("style[".concat(HE,'="').concat($O[e],'"]')))?r=t.innerHTML:delete $O[e]),[r,n]}(m),o=(n=Wa(e,2))[0])?[o,c,n[1],{},C,x]:(i=t(),p=(l=Wa(MO(i,{hashId:v,hashPriority:r,layer:_,path:y.join("-"),transformers:a,linters:s}),2))[1],d=Es(l[0]),f=function(e,t){return Da("".concat(e.join("%")).concat(t))}(u,d),[d,c,f,p,C,x])}),(function(e,t){var n=Wa(e,3);(t||S)&&FO&&Ua(n[2],{mark:HE})}),(function(e){var t,n,r,i,a,s=Wa(e,4),u=s[0];t=s[2],n=s[3],p&&u!==TO&&(r={mark:HE,prepend:"queue",attachTo:o,priority:x},(i="function"==typeof w?w():w)&&(r.csp={nonce:i}),(a=Ba(u,t,r))[zE]=l.instanceId,a.setAttribute(BE,c),Object.keys(n).forEach((function(e){Ba(Es(n[e]),"_effect-".concat(e),r)})))})),f=Wa(d,3),m=f[0],g=f[1],h=f[2],function(e){var t,r;return t=i&&!p&&n?gv.createElement("style",fa({},(Di(r={},BE,g),Di(r,HE,h),r),{dangerouslySetInnerHTML:{__html:m}})):gv.createElement(Os,null),gv.createElement(gv.Fragment,null,t,e)}}function Is(e){return e.notSplit=!0,e}function Ns(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function As(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return OZ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ms(e)):hE.isFragment(e)&&e.props?r=r.concat(Ms(e.props.children,n)):r.push(e))})),r}function Us(e,t){"function"==typeof e?e(t):"object"===ki(e)&&e&&"current"in e&&(e.current=t)}function Bs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!el(e,t.slice(0,-1))?e:tl(e,t,n,o)}function rl(e){return Array.isArray(e)?[]:{}}function ol(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function cl(e){return e<=1?"".concat(100*Number(e),"%"):e}function ul(e){return 1===e.length?"0"+e:String(e)}function pl(e,t,n){var r,o,i,a,s,l;if(e=al(e,255),t=al(t,255),n=al(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fl(e,t,n){var r,o,i,a,s,l;if(e=al(e,255),t=al(t,255),n=al(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-PP*t:Math.round(e.h)+PP*t:n?Math.round(e.h)+PP*t:Math.round(e.h)-PP*t)<0?r+=360:r>=360&&(r-=360),r}function Cl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-IP*t:t===$P?e.s+IP:e.s+NP*t)>1&&(r=1),n&&t===TP&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function kl(e,t,n){var r;return(r=n?e.v+AP*t:e.v-RP*t)>1&&(r=1),Number(r.toFixed(2))}function xl(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=bl(e);for(n=TP;n>0;n-=1)o=_l(bl({h:wl(r=vl(u),n,!0),s:Cl(r,n,!0),v:kl(r,n,!0)})),c.push(o);for(c.push(_l(u)),i=1;i<=$P;i+=1)s=_l(bl({h:wl(a=vl(u),i),s:Cl(a,i),v:kl(a,i)})),c.push(s);return"dark"===l.theme?jP.map((function(e){var t,n,r,o=e.index,i=e.opacity;return _l((t=bl(l.backgroundColor||"#141414"),{r:((n=bl(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function Dl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(o),f=n(i),m=n(a),g=n(s),h=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[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:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new OP("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function Sl(e){const t=Object.keys(P0).map((t=>{const n=xl(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Dl(e,{generateColorPalettes:T0,generateNeutralColorPalettes:$0})),j0(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),O0(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},N0(r))}(e))}function El(e){return e>=0&&e<=255}function Ol(e,t){const{r:n,g:r,b:o,a:i}=new OP(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new OP(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(El(e)&&El(t)&&El(i))return new OP({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new OP({r:n,g:r,b:o,a:1}).toRgbString()}function Pl(e){const{override:t}=e,n=BP(e,["override"]),r=Object.assign({},t);Object.keys(I0).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ol(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ol(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ol(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ol(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new OP("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new OP("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new OP("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Il(){const{token:e,hashed:t,theme:n,components:r}=OZ.useContext(M0),o=`${E0}-${t||""}`,i=n||F0,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=gv.useContext(u0).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?cO:s,c=r.formatToken,u=r.getComputedToken,p=gv.useMemo((function(){return Object.assign.apply(Object,[{}].concat(Ca(t)))}),[t]),d=gv.useMemo((function(){return Ga(p)}),[p]),f=gv.useMemo((function(){return Ga(l)}),[l]),m=qa("token",[a,e.id,d,f],(function(){var t,n=u?u(p,l,e):fO(p,l,e,c),r=function(e,t){return Da("".concat(t,"_").concat(Ga(e)))}(n,a);return n._tokenKey=r,function(e){pO.set(e,(pO.get(e)||0)+1)}(r),t="".concat(uO,"-").concat(Da(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;pO.set(e,(pO.get(e)||0)-1),r=(n=Array.from(pO.keys())).filter((function(e){return(pO.get(e)||0)<=0})),n.length-r.length>dO&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(BE,'="').concat(e,'"]')).forEach((function(e){var n;e[zE]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),pO.delete(e)}))}(e[0]._tokenKey,o)}));return m}(i,[I0,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:U0,formatToken:Pl});return[i,a,t?s:""]}function Nl(e){var t,n=gv.useRef();return n.current=e,t=gv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Q0=!0,r}function jl(){}function Fl(e,t,n,r){const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return e=>{const[o,s,l]=Il(),{getPrefixCls:c,iconPrefixCls:u,csp:p}=gv.useContext(H0),d=c(),f={theme:o,token:s,hashId:l,nonce:()=>null==p?void 0:p.nonce,clientOnly:null==r?void 0:r.clientOnly,order:-999};return Ps(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",d]}),(()=>[{"&":G0(s)}])),Z0(u),[Ps(Object.assign(Object.assign({},f),{path:[a,e,u]}),(()=>{const{token:o,flush:a}=function(e){let t,n=e,r=jl;return Y0&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Q0&&t.add(n),e[n])}),r=(e,n)=>{var r;J0[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=J0[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(s),c=Object.assign({},s[i]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const p="function"==typeof n?n($l(o,null!=c?c:{})):n,f=Object.assign(Object.assign({},p),c),m=$l(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${d}`},f),g=t(m,{hashId:l,prefixCls:e,rootPrefixCls:d,iconPrefixCls:u,overrideComponentToken:c});return a(i,f),[!1===(null==r?void 0:r.resetStyle)?null:q0(s,e),g]})),l]}}function Ll(e,t){return S0.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function Ml(e){var t=e.children,n=Si(e,zP);return gv.createElement(WP.Provider,{value:n},t)}function Ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Bl(e){var t,n,r,o,i;if(iI[e])return iI[e];if(t=nI[e])for(r=(n=Object.keys(t)).length,o=0;o0&&void 0!==e?e:[]).map(Wl)}function Gl(e){const{children:t}=e,[,n]=Il(),{motion:r}=n,o=gv.useRef(!1);return o.current=o.current||!1===r,o.current?gv.createElement(Ml,{motion:r},t):t}function ql(){return u1||"ant"}function Xl(){return p1||B0}function Kl(e){return YI.test(e)}function Yl(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&nN.call(e)==kI}(e))return iN?iN.call(e):"";var t=e+"";return"0"==t&&1/e==-CI?"-0":t}(e)}function Ql(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Jl(e){return function(e){return Ql(e)instanceof ShadowRoot}(e)?Ql(e):null}function Zl(e){return"object"===ki(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===ki(e.icon)||"function"==typeof e.icon)}function ec(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r=t[n];return"class"===n?(e.className=r,delete e.class):(delete e[n],e[b1(n)]=r),e}),{})}function tc(e,t,n){return OZ.createElement(e.tag,n?xa(xa({key:t},ec(e.attrs)),n):xa({key:t},ec(e.attrs)),(e.children||[]).map((function(n,r){return tc(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function nc(e){return xl(e)[0]}function rc(e){return e?Array.isArray(e)?e:[e]:[]}function oc(e){var t=Wa(rc(e),2);return y1.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function ic(e,t){return 0===e.indexOf(t)}function ac(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:xa({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||ic(t,mN))||n.data&&ic(t,gN)||n.attr&&fN.includes(t))&&(r[t]=e[t])})),r}function sc(e){return e&&P1(e)&&e.type===gv.Fragment}function lc(e,t){return function(e,t,n){return P1(e)?gv.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function cc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?_N:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=Si(t,vN),p=Wa(gv.useState(),2),d=p[0],f=p[1],m=gv.useRef(),g=gv.createElement(yN,{container:d,ref:m,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c}),h=Wa(gv.useState([]),2),b=h[0],y=h[1],v=gv.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function pc(e){const t=gv.useRef(null);return[gv.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,hashId:i,message:a}=t.current,s=`${o}-notice`,{content:l,icon:c,type:u,key:p,className:d,style:f,onClose:m}=n,g=kN(n,["content","icon","type","key","className","style","onClose"]);let h=p;return null==h&&(V1+=1,h=`antd-message-${V1}`),uc((t=>(r(Object.assign(Object.assign({},g),{key:h,content:gv.createElement(H1,{prefixCls:o,type:u,icon:c},l),placement:"top",className:f0(u&&`${s}-${u}`,i,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(h)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),gv.createElement(W1,Object.assign({key:"message-holder"},e,{ref:t}))]}function dc(e){return pc(e)}function fc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new d(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==ki(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o=k;return function(i,a){var s,l,u;if(o===D)throw new Error("Generator is already running");if(o===S){if("throw"===i)throw a;return{value:m,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===E)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===k)throw o=S,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o=D,"normal"===(u=n(e,t,r)).type){if(o=r.done?S:x,u.arg===E)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=S,r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return a===m?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=m,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),E):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,E):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,E):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e||""===e){if(t=e[_])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),E},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,p(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),E}},g}function mc(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function gc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){mc(s,r,o,i,a,"next",e)}function a(e){mc(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function hc(e){var t=xN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===ki(t)&&(t.usingClientEntryPoint=e)}function bc(e,t){ON?function(e,t){hc(!0);var n=t[PN]||ON(t);hc(!1),n.render(e),t[PN]=n}(e,t):function(e,t){SN(e,t)}(e,t)}function yc(e){return vc.apply(this,arguments)}function vc(){return(vc=gc(fc().mark((function e(t){return fc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[PN])||void 0===e||e.unmount(),delete t[PN]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _c(e){EN(e)}function wc(e){return Cc.apply(this,arguments)}function Cc(){return(Cc=gc(fc().mark((function e(t){return fc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ON){e.next=2;break}return e.abrupt("return",yc(t));case 2:_c(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function xc(e){return Number.isNaN(e)?0:e}function Dc(e){return"string"==typeof e}function Sc(e){return"text"===e||"link"===e}function Ec(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Oc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Pc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},Ec(e,o,n)),Oc(r,o,n))}}function Ic(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Nc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ic(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function Ac(e){return"danger"===e?{danger:!0}:{type:e}}function Rc(e){return!(!e||!e.then)}function Tc(e){var t,n,r,o,i,a=e.match(/^(.*)px$/),s=Number(null==a?void 0:a[1]);return Number.isNaN(s)?"undefined"==typeof document?0:(void 0===$N&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),$N=o-i),$N):s}function $c(e){var t=Wa(gv.useState("ssr-id"),2),n=t[0],r=t[1],o=xa({},PZ).useId,i=null==o?void 0:o();return gv.useEffect((function(){if(!o){var e=UN;UN+=1,r("rc_unique_".concat(e))}}),[]),e||i||n}function jc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Fc(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function Lc(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return gv.createElement(s1,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className;return gv.createElement("div",fa({ref:o,style:xa(xa({},e.style),n),className:f0("".concat(t,"-mask"),i)},r))}))}function Mc(e){function t(e){null==m||m(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,p=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,m=e.onClose,g=e.afterOpenChange,h=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,_=void 0===v||v,w=e.mask,C=void 0===w||w,k=e.maskTransitionName,x=e.maskAnimation,D=e.maskClosable,S=void 0===D||D,E=e.maskStyle,O=e.maskProps,P=e.rootClassName,I=gv.useRef(),N=gv.useRef(),A=gv.useRef(),R=Wa(gv.useState(a),2),T=R[0],$=R[1],j=$c(),F=gv.useRef(!1),L=gv.useRef(),M=null;return S&&(M=function(e){F.current?F.current=!1:N.current===e.target&&t(e)}),gv.useEffect((function(){a&&($(!0),Ta(N.current,document.activeElement)||(I.current=document.activeElement))}),[a]),gv.useEffect((function(){return function(){clearTimeout(L.current)}}),[]),gv.createElement("div",fa({className:f0("".concat(r,"-root"),P)},ac(e,{data:!0})),gv.createElement(Lc,{prefixCls:r,visible:C&&a,motionName:jc(r,k,x),style:xa({zIndex:o},E),maskProps:O}),gv.createElement("div",fa({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===hN.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===hN.TAB&&A.current.changeActive(!e.shiftKey)},className:f0("".concat(r,"-wrap"),d),ref:N,onClick:M,style:xa(xa({zIndex:o},p),{},{display:T?null:"none"})},f),gv.createElement(zN,fa({},e,{onMouseDown:function(){clearTimeout(L.current),F.current=!0},onMouseUp:function(){L.current=setTimeout((function(){F.current=!1}))},ref:A,closable:_,ariaId:j,prefixCls:r,visible:a&&T,onClose:t,onVisibleChanged:function(e){if(e)Ta(N.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if($(!1),C&&I.current&&u){try{I.current.focus({preventScroll:!0})}catch(LJ){}I.current=null}T&&(null==h||h())}var t;null==g||g(e)},motionName:jc(r,b,y)}))))}function Uc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:OZ.createElement(x1,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Bc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Kc(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function Yc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(Ca(e.slice(0,n)),[r],Ca(e.slice(n,t)),Ca(e.slice(t+1,i))):o<0?[].concat(Ca(e.slice(0,t)),Ca(e.slice(t+1,n+1)),[r],Ca(e.slice(n+1,i))):e)}function du(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function fu(e){var t=e.name,n=Si(e,PA),r=gv.useContext(qN),o=gv.useContext(XN),i=void 0!==t?au(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),gv.createElement(NA,fa({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function mu(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=gv.useContext(qN),l=gv.useContext(XN),c=gv.useRef({keys:[],id:0}).current,u=gv.useMemo((function(){var e=au(s.prefixName)||[];return[].concat(Ca(e),Ca(au(t)))}),[s.prefixName,t]),p=gv.useMemo((function(){return xa(xa({},s),{},{prefixName:u})}),[s,u]),d=gv.useMemo((function(){return{getKey:function(e){var t=u.length;return[c.keys[e[t]],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(Ia(!1,"Form.List only accepts function as children."),null):gv.createElement(XN.Provider,{value:d},gv.createElement(qN.Provider,{value:p},gv.createElement(fu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=e.onChange,i=s.getFieldValue,a=function(){return i(u||[])||[]},l={add:function(e,t){var n=a();t>=0&&t<=n.length?(c.keys=[].concat(Ca(c.keys.slice(0,t)),[c.id],Ca(c.keys.slice(t))),o([].concat(Ca(n.slice(0,t)),[e],Ca(n.slice(t))))):(c.keys=[].concat(Ca(c.keys),[c.id]),o([].concat(Ca(n),[e]))),c.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=pu(c.keys,e,t),o(pu(n,e,t)))}}},p=(void 0===n?[]:n)||[];return Array.isArray(p)||(p=[]),r(p.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))}function gu(e){return e.map((function(e){return"".concat(ki(e),":").concat(e)})).join(AA)}function hu(e){var t,n=gv.useRef(),r=Wa(gv.useState({}),2)[1];return n.current||(e?n.current=e:(t=new $A((function(){r({})})),n.current=t.getForm())),[n.current]}function bu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function yu(){var e,t,n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y;for(e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(Ca(n.slice(1))));for(let e=0;e{const e=il(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=f1(),u=i(void 0,Z5),p=r||`${u}-modal`,d=l(),f=c();let m=a;!1===m&&(m=void 0),bc(gv.createElement(Q5,Object.assign({},s,{getContainer:m,prefixCls:p,rootPrefixCls:u,iconPrefixCls:d,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),J5.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function ku(e){return Object.assign(Object.assign({},e),{type:"warning"})}function xu(e){return Object.assign(Object.assign({},e),{type:"info"})}function Du(e){return Object.assign(Object.assign({},e),{type:"success"})}function Su(e){return Object.assign(Object.assign({},e),{type:"error"})}function Eu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Ou(){const e=gv.useRef(null),[t,n]=gv.useState([]);gv.useEffect((()=>{t.length&&(Ca(t).forEach((e=>{e()})),n([]))}),[t]);const r=gv.useCallback((t=>function(r){var o;n3+=1;const i=gv.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=gv.createElement(t3,{key:`modal-${n3}`,config:t(r),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});return l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&J5.push(l),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Ca(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Ca(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[gv.useMemo((()=>({info:r(xu),success:r(Du),error:r(Su),warning:r(ku),confirm:r(Eu)})),[]),gv.createElement(r3,{key:"modal-holder",ref:e})]}function Pu(e,t){return null===t||!1===t?null:t||gv.createElement("span",{className:`${e}-close-x`},gv.createElement(x1,{className:`${e}-close-icon`}))}function Iu(e){const t=gv.useRef(null);return[gv.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,hashId:a,notification:s}=t.current,l=`${i}-notice`,{message:c,description:u,icon:p,type:d,btn:f,className:m,style:g,role:h="alert",closeIcon:b}=n,y=VA(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=Pu(l,b);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:c3},y),{content:gv.createElement(l3,{prefixCls:l,icon:p,type:d,message:c,description:u,btn:f,role:h}),className:f0(d&&`${l}-${d}`,a,m,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),g),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),gv.createElement(u3,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Nu(e){return Iu(e)}function Au(e){return function(t){return gv.createElement(g1,{theme:{token:{motion:!1,zIndexPopupBase:0}}},gv.createElement(e,Object.assign({},t)))}}function Ru(e){var t=arguments.length>0&&void 0!==e?e:250,n=gv.useRef(null),r=gv.useRef(null);return gv.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Tu(e,t){function n(e){f(m,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,p=e.responsive,d=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,g=e.className,h=e.style,b=e.children,y=e.display,v=e.order,_=e.component,w=void 0===_?"div":_,C=Si(e,qA),k=p&&!y;return gv.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==XA?u(c):b,l||(o={opacity:k?0:1,height:k?0:XA,overflowY:k?"hidden":XA,order:p?v:XA,pointerEvents:k?"none":XA,position:k?"absolute":XA}),i={},k&&(i["aria-hidden"]=!0),a=gv.createElement(w,fa({className:f0(!l&&s,g),style:xa(xa({},o),h)},i,C,{ref:t}),r),p&&(a=gv.createElement(hP,{onResize:function(e){n(e.offsetWidth)},disabled:d},a)),a}function $u(e,t){var n=Wa(gv.useState(t),2),r=n[1];return[n[0],Nl((function(t){e((function(){r(t)}))}))]}function ju(e){return"+ ".concat(e.length," ...")}function Fu(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eS,ge=gv.useMemo((function(){var e=b;return de?e=null===L&&$?b:b.slice(0,Math.min(b.length,U/C)):"number"==typeof S&&(e=b.slice(0,S)),e}),[b,C,L,S,de]),he=gv.useMemo((function(){return b.slice(de?ie+1:ge.length)}),[b,ge,de,ie]),be=gv.useCallback((function(e,t){var n;return"function"==typeof _?_(e):null!==(n=_&&(null==e?void 0:e[_]))&&void 0!==n?n:t}),[_]),ye=gv.useCallback(y||function(e){return e},[y]);return iO((function(){var e,t,r,i,a;if(U&&"number"==typeof ue&&ge){if(e=Q,r=(t=ge.length)-1,!t)return void n(0,null);for(i=0;iU){n(i-1,e-a-Q+X);break}}P&&o(0)+Q>U&&te(null)}}),[U,H,X,Q,be,ge]),a={},null!==ee&&de&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:de,component:A,invalidate:fe},l=v?function(e,t){var n=be(e,t);return gv.createElement(YA.Provider,{key:n,value:xa(xa({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return gv.createElement(KA,fa({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!he.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:i},O?O&&(c=gv.createElement(YA.Provider,{value:xa(xa({},s),u)},O(he))):(p=E||ju,c=gv.createElement(KA,fa({},s,u),"function"==typeof p?p(he):p)),d=gv.createElement(N,fa({className:f0(!fe&&g,D),style:x,ref:t},T),ge.map(l),me?c:null,P&&gv.createElement(KA,fa({},s,{responsive:pe,responsiveDisabled:!de,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:a}),P)),pe&&(d=gv.createElement(hP,{onResize:function(e,t){M(t.clientWidth)},disabled:!de},d)),d}function Lu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Mu(e){return["string","number"].includes(ki(e))}function Uu(e){var t=void 0;return e&&(Mu(e.title)?t=e.title.toString():Mu(e.label)&&(t=e.label.toString())),t}function Bu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Hu(e){return e?Array.isArray(e)?e:[e]:[]}function zu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Wu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Vu(e){return e.ownerDocument.defaultView}function Gu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Vu(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function qu(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Xu(e){return qu(parseFloat(e),0)}function Ku(e,t){var n=xa({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A;e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement||(r=(t=Vu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,f=e.clientWidth,m=Xu(i),g=Xu(a),_=(d-f-(h=Xu(s))-(b=Xu(l)))*(y=qu(Math.round(c.width/d*1e3)/1e3)),w=(u-p-m-g)*(v=qu(Math.round(c.height/u*1e3)/1e3)),C=m*v,k=g*v,x=h*y,D=b*y,S=0,E=0,"clip"===r&&(S=(O=Xu(o))*y,E=O*v),N=(P=c.x+x-S)+c.width+2*S-x-D-_,A=(I=c.y+C-E)+c.height+2*E-C-k-w,n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A))})),n}function Yu(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Qu(e,t){var n=Wa(t||[],2),r=n[1];return[Yu(e.width,n[0]),Yu(e.height,r)]}function Ju(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Zu(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function ep(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function tp(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},p=u.className,d=u.content,f=c.x,m=void 0===f?0:f,g=c.y,h=void 0===g?0:g,b=gv.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=h,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=m),gv.createElement("div",{ref:b,className:f0("".concat(s,"-arrow"),p),style:t},d)):null}function np(e){var t=e.prefixCls,n=e.zIndex;return e.mask?gv.createElement(s1,fa({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return gv.createElement("div",{style:{zIndex:n},className:f0("".concat(t,"-mask"),r)})})):null}function rp(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function op(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function ip(e){var t=xa({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ia(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function ap(e){return"tags"===e||"multiple"===e}function sp(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ms(e).map((function(e,t){if(!gv.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=Si(i,IR);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return xa({key:t,value:void 0!==r?r:t,children:n.children},Si(n,PR))}(e):xa(xa({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:sp(a)})})).filter((function(e){return e}))}function lp(e){var t,n=gv.useRef();return n.current=e,t=gv.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function cp(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}function up(e){var t=e.children,n=e.setRef,r=gv.useCallback((function(e){n(e)}),[]);return gv.cloneElement(t,{ref:r})}function pp(e,t){var n=arguments.length>0&&void 0!==e?e:0,r=n/(arguments.length>1&&void 0!==t?t:0)*100;return isNaN(r)&&(r=0),r=Math.max(r,LR),r=Math.min(r,n/2),Math.floor(r)}function dp(e,t){function n(e){ve((function(t){var n;return n=function(e){var t=e;return Number.isNaN(k.current)||(t=Math.min(t,k.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ge.current.scrollTop=n,n}))}function r(e,t){var r=e;t?(Px.flushSync((function(){Ce(r)})),P()):n(r)}var o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M,U,B,H=e.prefixCls,z=void 0===H?"rc-virtual-list":H,W=e.className,V=e.height,G=e.itemHeight,q=e.fullHeight,X=void 0===q||q,K=e.style,Y=e.data,Q=e.children,J=e.itemKey,Z=e.virtual,ee=e.direction,te=e.scrollWidth,ne=e.component,re=void 0===ne?"div":ne,oe=e.onScroll,ie=e.onVirtualScroll,ae=e.onVisibleChange,se=e.innerProps,le=e.extraRender,ce=Si(e,MR),ue=!(!1===Z||!V||!G),pe=ue&&Y&&G*Y.length>V,de="rtl"===ee,fe=f0(z,Di({},"".concat(z,"-rtl"),de),W),me=Y||UR,ge=gv.useRef(),he=gv.useRef(),be=Wa(gv.useState(0),2),ye=be[0],ve=be[1],_e=Wa(gv.useState(0),2),we=_e[0],Ce=_e[1],ke=Wa(gv.useState(!1),2),xe=ke[0],De=ke[1],Se=function(){De(!0)},Ee=function(){De(!1)},Oe=gv.useCallback((function(e){return"function"==typeof J?J(e):null==e?void 0:e[J]}),[J]),Pe={getKey:Oe},Ie=gv.useRef({start:0,end:me.length}),Ne=gv.useRef(),Ae=function(e,t){var n=Wa(gv.useState(e),2),r=n[0],o=n[1],i=Wa(gv.useState(null),2),a=i[0],s=i[1];return gv.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,p=e.length,d=t.length;if(0===p&&0===d)return null;for(p=ye&&void 0===n&&(n=a,r=t),u>ye+V&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(V/G)),void 0===o&&(o=me.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,me.length-1),offset:r}}),[pe,ue,ye,me,i[3],V]),u=c.scrollHeight,d=c.end,f=c.offset,Ie.current.start=p=c.start,Ie.current.end=d,m=Wa(gv.useState({width:0,height:V}),2),g=m[0],h=m[1],b=function(e){h(e)},y=gv.useRef(),v=gv.useRef(),_=gv.useMemo((function(){return pp(g.width,te)}),[g.width,te]),w=gv.useMemo((function(){return pp(g.height,u)}),[g.height,u]),(k=gv.useRef(C=u-V)).current=C,S=v3(x=ye<=0,D=ye>=C),O=gv.useRef((E=function(){return{x:de?-we:we,y:ye}})()),P=Nl((function(){if(ie){var e=E();O.current.x===e.x&&O.current.y===e.y||(ie(e),O.current=e)}})),I=function(e){var t=e,n=te-g.width;return t=Math.max(t,0),Math.min(t,n)},N=Nl((function(e,t){t?(Px.flushSync((function(){Ce((function(t){return I(t+(de?-e:e))}))})),P()):n((function(t){return t+e}))})),A=Wa(function(e,t,n,r,o){var i=gv.useRef(0),a=gv.useRef(null),s=gv.useRef(null),l=gv.useRef(!1),c=v3(t,n),u=gv.useRef(null),p=gv.useRef(null);return[function(t){var n,d,f;e&&(wP.cancel(p.current),p.current=wP((function(){u.current=null}),2),n=t.deltaY,d=Math.abs(t.deltaX),f=Math.abs(n),null===u.current&&(u.current=r&&d>f?"x":"y"),"x"===u.current?function(e){o(e.deltaX,!0),jR||e.preventDefault()}(t):function(e){wP.cancel(a.current);var t=e.deltaY;i.current+=t,s.current=t,c(t)||(jR||e.preventDefault(),a.current=wP((function(){o(i.current*(l.current?10:1)),i.current=0})))}(t))},function(t){e&&(l.current=t.detail===s.current)}]}(ue,x,D,!!te,N),2),R=A[0],T=A[1],function(e,t,n){var r=gv.useRef(!1),o=gv.useRef(0),i=gv.useRef(null),a=gv.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=FR,!0)||Math.abs(i)<=.1)&&clearInterval(a.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};iO((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(ue,ge,(function(e,t){return!S(e,t)&&(R({preventDefault:function(){},deltaY:e}),!0)})),iO((function(){function e(e){ue&&e.preventDefault()}var t=ge.current;return t.addEventListener("wheel",R),t.addEventListener("DOMMouseScroll",T),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",R),t.removeEventListener("DOMMouseScroll",T),t.removeEventListener("MozMousePixelScroll",e)}}),[ue]),j=function(e,t,n,r,o,i,a,s){var l=gv.useRef();return function(c){var u,p,d,f;null!=c?(wP.cancel(l.current),"number"==typeof c?a(c):c&&"object"===ki(c)&&(p=c.align,u="index"in c?c.index:t.findIndex((function(e){return o(e)===c.key})),f=void 0===(d=c.offset)?0:d,function s(c,d){var m,g,h,b,y,v,_,w,C,k,x,D,S;if(!(c<0)&&e.current){if(g=!1,h=d,m=e.current.clientHeight){for(b=d||p,y=0,v=0,_=0,w=Math.min(t.length,u),C=0;C<=w;C+=1)k=o(t[C]),y=_=(v=y)+(void 0===(x=n.get(k))?r:x),C===u&&void 0===x&&(g=!0);switch(D=null,b){case"top":D=v-f;break;case"bottom":D=_-m+f;break;default:v<(S=e.current.scrollTop)?h="top":_>S+m&&(h="bottom")}null!==D&&D!==e.current.scrollTop&&a(D)}l.current=wP((function(){g&&i(),s(c-1,h)}),2)}}(3))):s()}}(ge,me,l,G,Oe,s,n,$=function(){var e,t;null===(e=y.current)||void 0===e||e.delayHidden(),null===(t=v.current)||void 0===t||t.delayHidden()}),gv.useImperativeHandle(t,(function(){return{getScrollInfo:E,scrollTo:function(e){var t;(t=e)&&"object"===ki(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ce(I(e.left)),j(e.top)):j(e)}}})),iO((function(){if(ae){var e=me.slice(p,d+1);ae(e,me)}}),[p,d,me]),F=function(e,t,n,r){var o=Wa(gv.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o,s){var l,c,u,p,d,f=arguments.length>1&&void 0!==s?s:o,m=i.get(o),g=i.get(f);if(void 0===m||void 0===g)for(l=e.length,c=a.length;cV&&gv.createElement(TR,{ref:y,prefixCls:z,scrollOffset:ye,scrollRange:u,rtl:de,onScroll:r,onStartMove:Se,onStopMove:Ee,spinSize:w,containerSize:g.height}),pe&&te&&gv.createElement(TR,{ref:v,prefixCls:z,scrollOffset:we,scrollRange:te,rtl:de,onScroll:r,onStartMove:Se,onStopMove:Ee,spinSize:_,containerSize:g.width,horizontal:!0}))}function fp(e){return"string"==typeof e||"number"==typeof e}function mp(e,t,n){return f0({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function gp(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=A3(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function hp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},V0(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function bp(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[hp(e),hp($l(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},hp($l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function yp(){const[,e]=Il(),t=J3(Z3(e));return OZ.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(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()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function vp(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return gv.createElement("div",{className:f0("".concat(n,"-content"),i),style:a},gv.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function _p(e){const t=t4,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function wp(e,t){return e?t:{}}function Cp(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:f}=_p({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},z0(r,o,i,s,a)),{"&:before":{background:s}})]},wp(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),wp(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),wp(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d}})),wp(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d}}))}}function kp(e,t){return arguments.length>1&&void 0!==t&&!t?S0.includes(e):[].concat(Ca(d4),Ca(S0)).includes(e)}function xp(e,t){const n=kp(t),r=f0({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function Dp(e,t){var n,r,o,i,a,s,l,c,u,p=e.arrow,d=void 0!==p&&p,f=e.prefixCls,m=void 0===f?"rc-dropdown":f,g=e.transitionName,h=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,_=e.placements,w=void 0===_?pT:_,C=e.getPopupContainer,k=e.showAction,x=e.hideAction,D=e.overlayClassName,S=e.overlayStyle,E=e.visible,O=e.trigger,P=void 0===O?["hover"]:O,I=e.autoFocus,N=e.overlay,A=e.children,R=e.onVisibleChange,T=Si(e,dT),$=Wa(OZ.useState(),2),j=$[1],F="visible"in e?E:$[0],L=OZ.useRef(null),M=OZ.useRef(null),U=OZ.useRef(null);return OZ.useImperativeHandle(t,(function(){return L.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=gv.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case aT:s();break;case sT:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};gv.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&wP(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:F,triggerRef:U,onVisibleChange:r=function(e){j(e),null==R||R(e)},autoFocus:I,overlayRef:M}),o=function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},i=function(){return OZ.createElement(lT,{ref:M,overlay:N,prefixCls:m,arrow:d})},a=function(){return"function"==typeof N?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=OZ.cloneElement(A,{className:f0(null===(n=A.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(m,"-open"))),ref:zs(A)?Bs(U,A.ref):void 0}),(c=x)||-1===P.indexOf("contextMenu")||(c=["click"]),OZ.createElement(y3,fa({builtinPlacements:w},T,{prefixCls:m,ref:L,popupClassName:f0(D,Di({},"".concat(m,"-show-arrow"),d)),popupStyle:S,action:P,showAction:k,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:g,popupAnimation:h,popupVisible:F,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:C}),l)}function Sp(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ep(e){return Sp(gv.useContext(fT),e)}function Op(e){var t=e.children,n=e.locked,r=Si(e,mT),o=gv.useContext(gT),i=Sa((function(){return e=r,t=xa({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Na(e[1],t[1],!0))}));return gv.createElement(gT.Provider,{value:i},t)}function Pp(){return gv.useContext(bT)}function Ip(e){var t=gv.useContext(yT);return gv.useMemo((function(){return void 0!==e?[].concat(Ca(t),[e]):t}),[t,e])}function Np(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!G1(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function Ap(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=Ca(e.querySelectorAll("*")).filter((function(e){return Np(e,n)}));return Np(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Rp(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=Ap(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function Tp(e){var t,n=gv.useRef(e);return n.current=e,t=gv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:gv.createElement(Op,{mode:p,locked:!y.current},gv.createElement(s1,fa({visible:o},i,{forceRender:m,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return gv.createElement(WT,{id:s,className:e.className,style:e.style},u)})))}function Wp(e){var t=e.eventKey,n=e.children,r=Ip(t),o=Up(n,r),i=Pp();return gv.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),gv.createElement(yT.Provider,{value:r},i?o:gv.createElement(QT,e,o))}function Vp(e){var t=e.children,n=Si(e,ZT),r=Up(t,Ip(n.eventKey));return Pp()?r:gv.createElement(e$,Qs(n,["warnKey"]),r)}function Gp(e){var t=e.className,n=e.style,r=gv.useContext(gT).prefixCls;return Pp()?null:gv.createElement("li",{className:f0("".concat(r,"-item-divider"),t),style:n})}function qp(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===ki(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=Si(n,t$),l=null!=i?i:"tmp-".concat(t),o||"group"===a?gv.createElement("group"===a?Vp:Wp,fa({key:l},s,{title:r}),qp(o)):"divider"===a?gv.createElement(Gp,fa({key:l},s)):gv.createElement(_4,fa({key:l},s),r)):null})).filter((function(e){return e}))}function Xp(e,t,n){var r=e;return t&&(r=qp(t)),Up(r,n)}function Kp(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=a$(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?gv.createElement("group"===a?Vp:D4,Object.assign({key:l},s,{title:r}),Kp(o)):"divider"===a?gv.createElement(C4,Object.assign({key:l},s)):gv.createElement(x4,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Yp(e){return gv.useMemo((()=>e?Kp(e):e),[e])}function Qp(e){return $l(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function Jp(e){return e&&"object"==typeof e?e:{}}function Zp(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=gv.useContext(S8),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return gv.createElement("div",{className:f0("".concat(s,"-content-holder"))},gv.createElement("div",{className:f0("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Di({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,p=Si(e,c$),d=o===n;return gv.createElement(s1,fa({key:o,visible:d,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return gv.createElement(l$,fa({},p,{prefixCls:u,id:t,tabKey:o,animated:c,active:d,style:xa(xa({},s),r),className:f0(l,i),ref:n}))}))}))))}function ed(e,t){var n=gv.useRef(e),r=Wa(gv.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function td(e){var t=Wa(gv.useState(0),2),n=t[0],r=t[1],o=gv.useRef(0),i=gv.useRef();return i.current=e,aO((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function nd(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function rd(e){return String(e).replace(/"/g,h$)}function od(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function id(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?gv.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function ad(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===E}))||0,i=r.length;for(t=0;tUe?Ue:e}function r(){u(Date.now())}function o(){window.clearTimeout(s.current)}function i(){wP.cancel(E.current)}var a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M=gv.useContext(S8),U=M.prefixCls,B=M.tabs,H=e.className,z=e.style,W=e.id,V=e.animated,G=e.activeKey,q=e.rtl,X=e.extra,K=e.editable,Y=e.locale,Q=e.tabPosition,J=e.tabBarGutter,Z=e.children,ee=e.onTabClick,te=e.onTabScroll,ne=gv.useRef(),re=gv.useRef(),oe=gv.useRef(),ie=gv.useRef(),ae=gv.useRef(),se=gv.useRef(),le=gv.useRef(),ce="top"===Q||"bottom"===Q,ue=Wa(ed(0,(function(e,t){ce&&te&&te({direction:e>t?"left":"right"})})),2),pe=ue[0],de=ue[1],fe=Wa(ed(0,(function(e,t){!ce&&te&&te({direction:e>t?"top":"bottom"})})),2),me=fe[0],ge=fe[1],he=Wa(gv.useState([0,0]),2),be=he[0],ye=he[1],ve=Wa(gv.useState([0,0]),2),_e=ve[0],we=ve[1],Ce=Wa(gv.useState([0,0]),2),ke=Ce[0],xe=Ce[1],De=Wa(gv.useState([0,0]),2),Se=De[0],Ee=De[1],Oe=(T=new Map,$=gv.useRef([]),j=Wa(gv.useState({}),2)[1],F=gv.useRef("function"==typeof T?T():T),L=td((function(){var e=F.current;$.current.forEach((function(t){e=t(e)})),$.current=[],F.current=e,j({})})),[F.current,function(e){$.current.push(e),L()}]),Pe=Wa(Oe,2),Ie=Pe[1],Ne=function(e,t,n){return gv.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||u$,u=c.left+c.width;for(r=0;ra?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},gv.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ie,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!je&&(ce?i(de,e):i(ge,t),o(),r(),!0)})),gv.useEffect((function(){return o(),c&&(s.current=window.setTimeout((function(){u(0)}),100)),o}),[c]),p=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,p=a.tabPosition,d=a.rtl;return["top","bottom"].includes(p)?(s="width",l=d?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),gv.useMemo((function(){var n,r,o,i,a,p;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(a=0,p=n-1;p>=0;p-=1)if((e.get(u[p].key)||g$)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,p,u.map((function(e){return e.key})).join("_"),d])}(Ne,Fe,ce?pe:me,Re,Te,$e,xa(xa({},e),{},{tabs:B})),f=(d=Wa(p,2))[0],m=d[1],g=Nl((function(e){var t,r,o=Ne.get(arguments.length>0&&void 0!==e?e:G)||{width:0,height:0,left:0,right:0,top:0};ce?(t=pe,q?o.rightpe+Fe&&(t=o.right+o.width-Fe):o.left<-pe?t=-o.left:o.left+o.width>-pe+Fe&&(t=-(o.left+o.width-Fe)),ge(0),de(n(t))):(r=me,o.top<-me?r=-o.top:o.top+o.height>-me+Fe&&(r=-(o.top+o.height-Fe)),de(0),ge(n(r)))})),h={},"top"===Q||"bottom"===Q?h[q?"marginRight":"marginLeft"]=J:h.marginTop=J,b=B.map((function(e,t){var n=e.key;return gv.createElement(sd,{id:W,prefixCls:U,key:n,tab:e,style:0===t?void 0:h,closable:e.closable,editable:K,active:n===G,renderWrapper:Z,removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,onClick:function(e){ee(n,e)},onFocus:function(){g(n),r(),ie.current&&(q||(ie.current.scrollLeft=0),ie.current.scrollTop=0)}})})),y=function(){return Ie((function(){var e=new Map;return B.forEach((function(t){var n,r=t.key,o=null===(n=ae.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(rd(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},gv.useEffect((function(){y()}),[B.map((function(e){return e.key})).join("_")]),v=td((function(){var e,t,n,r=y$(ne),o=y$(re),i=y$(oe);ye([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=y$(le),xe(e),t=y$(se),Ee(t),n=y$(ae),we([n[0]-e[0],n[1]-e[1]]),y()})),_=B.slice(0,f),w=B.slice(m+1),C=[].concat(Ca(_),Ca(w)),x=(k=Wa(gv.useState(),2))[0],D=k[1],S=Ne.get(G),E=gv.useRef(),gv.useEffect((function(){var e={};return S&&(ce?(q?e.right=S.right:e.left=S.left,e.width=S.width):(e.top=S.top,e.height=S.height)),i(),E.current=wP((function(){D(e)})),i}),[S,ce,q]),gv.useEffect((function(){g()}),[G,Me,Ue,nd(S),nd(Ne),ce]),gv.useEffect((function(){v()}),[q]),O=!!C.length,P="".concat(U,"-nav-wrap"),ce?q?(N=pe>0,I=pe!==Ue):(I=pe<0,N=pe!==Me):(A=me<0,R=me!==Me),gv.createElement(hP,{onResize:v},gv.createElement("div",{ref:Hs(t,ne),role:"tablist",className:f0("".concat(U,"-nav"),H),style:z,onKeyDown:function(){r()}},gv.createElement(b$,{ref:re,position:"left",extra:X,prefixCls:U}),gv.createElement("div",{className:f0(P,(a={},Di(a,"".concat(P,"-ping-left"),I),Di(a,"".concat(P,"-ping-right"),N),Di(a,"".concat(P,"-ping-top"),A),Di(a,"".concat(P,"-ping-bottom"),R),a)),ref:ie},gv.createElement(hP,{onResize:v},gv.createElement("div",{ref:ae,className:"".concat(U,"-nav-list"),style:{transform:"translate(".concat(pe,"px, ").concat(me,"px)"),transition:c?"none":void 0}},b,gv.createElement(E8,{ref:le,prefixCls:U,locale:Y,editable:K,style:xa(xa({},0===b.length?void 0:h),{},{visibility:O?"hidden":null})}),gv.createElement("div",{className:f0("".concat(U,"-ink-bar"),Di({},"".concat(U,"-ink-bar-animated"),V.inkBar)),style:x})))),gv.createElement(O8,fa({},e,{removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,ref:se,prefixCls:U,tabs:C,className:!O&&Le,tabMoving:!!c})),gv.createElement(b$,{ref:oe,position:"right",extra:X,prefixCls:U})))}function cd(e){var t=e.renderTabBar,n=Si(e,_$),r=gv.useContext(S8).tabs;return t?t(xa(xa({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Si(e,w$);return gv.createElement(l$,fa({tab:t,key:n,tabKey:n},r))}))}),P8):gv.createElement(P8,n)}function ud(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m=e.id,g=e.prefixCls,h=void 0===g?"rc-tabs":g,b=e.className,y=e.items,v=e.direction,_=e.activeKey,w=e.defaultActiveKey,C=e.editable,k=e.animated,x=e.tabPosition,D=void 0===x?"top":x,S=e.tabBarGutter,E=e.tabBarStyle,O=e.tabBarExtraContent,P=e.locale,I=e.moreIcon,N=e.moreTransitionName,A=e.destroyInactiveTabPane,R=e.renderTabBar,T=e.onChange,$=e.onTabClick,j=e.onTabScroll,F=e.getPopupContainer,L=e.popupClassName,M=Si(e,C$),U=gv.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===ki(e)&&"key"in e}))}),[y]),B="rtl"===v,H=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:xa({inkBar:!0},"object"===ki(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(k),z=Wa(gv.useState(!1),2),W=z[0],V=z[1];return gv.useEffect((function(){V(b3())}),[]),r=Wa(Tl((function(){var e;return null===(e=U[0])||void 0===e?void 0:e.key}),{value:_,defaultValue:w}),2),o=r[0],i=r[1],a=Wa(gv.useState((function(){return U.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],gv.useEffect((function(){var e,t=U.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,U.length-1)),i(null===(e=U[t])||void 0===e?void 0:e.key)),l(t)}),[U.map((function(e){return e.key})).join("_"),o,s]),u=(c=Wa(Tl(null,{value:m}),2))[0],p=c[1],gv.useEffect((function(){m||(p("rc-tabs-".concat(k$)),k$+=1)}),[]),f=xa(xa({},d={id:u,activeKey:o,animated:H,tabPosition:D,rtl:B,mobile:W}),{},{editable:C,locale:P,moreIcon:I,moreTransitionName:N,tabBarGutter:S,onTabClick:function(e,t){null==$||$(e,t);var n=e!==o;i(e),n&&(null==T||T(e))},onTabScroll:j,extra:O,style:E,panes:null,getPopupContainer:F,popupClassName:L}),gv.createElement(S8.Provider,{value:{tabs:U,prefixCls:h}},gv.createElement("div",fa({ref:t,id:m,className:f0(h,"".concat(h,"-").concat(D),(n={},Di(n,"".concat(h,"-mobile"),W),Di(n,"".concat(h,"-editable"),C),Di(n,"".concat(h,"-rtl"),B),n),b)},M),void 0,gv.createElement(cd,fa({},f,{renderTabBar:R})),gv.createElement(Zp,fa({destroyInactiveTabPane:A},d,{animated:H}))))}function pd(e,t){const[n,r]=gv.useState("string"==typeof e?e:"");return gv.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(fd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(i=(o=gd(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!p?wd(_d(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,p):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function Cd(e){return!(!e.addonBefore&&!e.addonAfter)}function kd(e){return!!(e.prefix||e.suffix||e.allowClear)}function xd(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function Dd(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}function Sd(e){return null==e?"":String(e)}function Ed(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,p=e.upDisabled,d=e.downDisabled,f=e.onStep,m=gv.useRef(),g=gv.useRef([]),h=gv.useRef();return h.current=f,t=function(){clearTimeout(m.current)},n=function(e,n){e.preventDefault(),t(),h.current(n),m.current=setTimeout((function e(){h.current(n),m.current=setTimeout(e,H$)}),z$)},gv.useEffect((function(){return function(){t(),g.current.forEach((function(e){return wP.cancel(e)}))}}),[]),B$()?null:(r="".concat(l,"-handler"),o=f0(r,"".concat(r,"-up"),Di({},"".concat(r,"-up-disabled"),p)),i=f0(r,"".concat(r,"-down"),Di({},"".concat(r,"-down-disabled"),d)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return g.current.push(wP(t))},onMouseLeave:a},gv.createElement("div",{className:"".concat(r,"-wrap")},gv.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":p,className:o}),c||gv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),gv.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":d,className:i}),u||gv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function Od(e){var t="number"==typeof e?yd(e):gd(e).fullStr;return t.includes(".")?gd(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function Pd(e,t){const n=gv.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return gv.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Id(e,t){return Ca(e||"").slice(0,t).join("")}function Nd(e,t,n,r){var o=n;return e?o=Id(n,r):Ca(t||"").lengthr&&(o=t),o}function Ad(e){return"string"==typeof e&&String(Number(e))===e?(Ia(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Rd(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v=e.prefixCls,_=e.open,w=e.placement,C=e.inline,k=e.push,x=e.forceRender,D=e.autoFocus,S=e.keyboard,E=e.rootClassName,O=e.rootStyle,P=e.zIndex,I=e.className,N=e.style,A=e.motion,R=e.width,T=e.height,$=e.children,j=e.contentWrapperStyle,F=e.mask,L=e.maskClosable,M=e.maskMotion,U=e.maskClassName,B=e.maskStyle,H=e.afterOpenChange,z=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,G=e.onMouseLeave,q=e.onClick,X=e.onKeyDown,K=e.onKeyUp,Y=gv.useRef(),Q=gv.useRef(),J=gv.useRef();if(gv.useImperativeHandle(t,(function(){return Y.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case hN.TAB:r===hN.TAB&&(o||document.activeElement!==J.current?o&&document.activeElement===Q.current&&(null===(n=J.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case hN.ESC:z&&S&&(e.stopPropagation(),z(e))}},gv.useEffect((function(){var e;_&&D&&(null===(e=Y.current)||void 0===e||e.focus({preventScroll:!0}))}),[_]),l=(s=Wa(gv.useState(!1),2))[0],c=s[1],u=gv.useContext(lj),p=null!==(n=null!==(r=null===(o=!1===k?{distance:0}:!0===k?{}:k||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,d=gv.useMemo((function(){return{pushDistance:p,push:function(){c(!0)},pull:function(){c(!1)}}}),[p]),gv.useEffect((function(){var e,t;_?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[_]),gv.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=F&&gv.createElement(s1,fa({key:"mask"},M,{visible:_}),(function(e,t){var n=e.className,r=e.style;return gv.createElement("div",{className:f0("".concat(v,"-mask"),n,U),style:xa(xa({},r),B),onClick:L&&_?z:void 0,ref:t})})),m="function"==typeof A?A(w):A,g={},l&&p)switch(w){case"top":g.transform="translateY(".concat(p,"px)");break;case"bottom":g.transform="translateY(".concat(-p,"px)");break;case"left":g.transform="translateX(".concat(p,"px)");break;default:g.transform="translateX(".concat(-p,"px)")}return"left"===w||"right"===w?g.width=Ad(R):g.height=Ad(T),h={onMouseEnter:W,onMouseOver:V,onMouseLeave:G,onClick:q,onKeyDown:X,onKeyUp:K},b=gv.createElement(s1,fa({key:"panel"},m,{visible:_,forceRender:x,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return gv.createElement("div",fa({className:f0("".concat(v,"-content-wrapper"),r),style:xa(xa(xa({},g),o),j)},ac(e,{data:!0})),gv.createElement(cj,fa({containerRef:n,prefixCls:v,className:I,style:N},h),$))})),y=xa({},O),P&&(y.zIndex=P),gv.createElement(lj.Provider,{value:d},gv.createElement("div",{className:f0(v,"".concat(v,"-").concat(w),E,(i={},Di(i,"".concat(v,"-open"),_),Di(i,"".concat(v,"-inline"),C),i)),style:y,tabIndex:-1,ref:Y,onKeyDown:a},f,gv.createElement("div",{tabIndex:0,ref:Q,style:uj,"aria-hidden":"true","data-sentinel":"start"}),b,gv.createElement("div",{tabIndex:0,ref:J,style:uj,"aria-hidden":"true","data-sentinel":"end"})))}function Td(e){const[t,n]=gv.useState(e);return gv.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function $d(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function jd(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Fd(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:a7.includes(n)?`${s7}_${n}`:n}function Ld(e){return jd(e).join("_")}function Md(e){const[t]=hu(),n=gv.useRef({}),r=gv.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Ld(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Fd(jd(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior($1(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of $1(e,j1(t)))o.scroll({top:i,left:a,behavior:r})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=Ld(e);return n.current[t]}})),[e,t]);return[r]}function Ud(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:p,children:d,fieldId:f,required:m,isRequired:g,onSubItemMetaChange:h}=e,b=bj(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=gv.useContext(Q2),_=gv.useRef(null),w=Td(a),C=Td(s),k=null!=i,x=!!(k||a.length||s.length),D=!!_.current&&G1(_.current),[S,E]=gv.useState(null);iO((()=>{if(x&&_.current){const e=getComputedStyle(_.current);E(parseInt(e.marginBottom,10))}}),[x,D]);const O=function(e){let t=arguments.length>0&&void 0!==e&&e,n="";return void 0!==l?n=l:c.validating?n="validating":(t?w:c.errors).length?n="error":(t?C:c.warnings).length?n="warning":(c.touched||u&&c.validated)&&(n="success"),n}(),P=gv.useMemo((()=>{let e;if(u){const t=O&&h7[O];e=t?gv.createElement("span",{className:f0(`${y}-feedback-icon`,`${y}-feedback-icon-${O}`)},gv.createElement(t,null)):null}return{status:O,errors:a,warnings:s,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[O,u]),I=f0(y,n,r,{[`${y}-with-help`]:k||w.length||C.length,[`${y}-has-feedback`]:O&&u,[`${y}-has-success`]:"success"===O,[`${y}-has-warning`]:"warning"===O,[`${y}-has-error`]:"error"===O,[`${y}-is-validating`]:"validating"===O,[`${y}-hidden`]:p});return gv.createElement("div",{className:I,style:o,ref:_},gv.createElement(Q8,Object.assign({className:`${y}-row`},Qs(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),gv.createElement(g7,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=m?m:g,prefixCls:t})),gv.createElement(d7,Object.assign({},e,c,{errors:w,warnings:C,prefixCls:t,status:O,help:i,marginBottom:S,onErrorVisibleChanged:e=>{e||E(null)}}),gv.createElement(J2.Provider,{value:h},gv.createElement(t5.Provider,{value:P},d)))),!!S&&gv.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-S}}))}function Bd(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=x7,a=null!=e?e:f1().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}function Hd(){if(!w7){const e=document.createDocumentFragment(),t={fragment:e};return w7=t,void C7((()=>{bc(gv.createElement(D7,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Hd())}))}}),e)}))}w7.instance&&(k7.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":C7((()=>{const t=w7.instance.open(Object.assign(Object.assign({},x7),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":C7((()=>{null==w7||w7.instance.destroy(e.key)}));break;default:C7((()=>{var n;const r=(n=w7.instance)[t].apply(n,Ca(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),k7=[])}function zd(e){return Cu(ku(e))}function Wd(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=$7,a=null!=e?e:f1().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}function Vd(){if(!A7){const e=document.createDocumentFragment(),t={fragment:e};return A7=t,void R7((()=>{bc(gv.createElement(j7,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Vd())}))}}),e)}))}A7.instance&&(T7.forEach((e=>{switch(e.type){case"open":R7((()=>{A7.instance.open(Object.assign(Object.assign({},$7),e.config))}));break;case"destroy":R7((()=>{null==A7||A7.instance.destroy(e.key)}))}})),T7=[])}function Gd(e){T7.push({type:"open",config:e}),Vd()}function qd(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,p=gv.useRef(null),d=Wa(gv.useState(i),2),f=d[0],m=d[1],g=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},h=Wa(gv.useState(null),2),b=h[0],y=h[1],v=Wa(gv.useState(null),2),_=v[0],w=v[1];return iO((function(){var e,t,n,r;f!==i&&(e=g(f),t=g(i),n=_j(e),r=_j(t),m(i),y(n),w(r),e&&t?l():c())}),[i]),t=gv.useMemo((function(){return wj("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=gv.useMemo((function(){return wj("rtl"===u?-(null==_?void 0:_.right):null==_?void 0:_.left)}),[u,_]),b&&_?gv.createElement(s1,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),w(null),c()}},(function(e,o){var i=e.className,a=xa(xa({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":wj(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":wj(null==_?void 0:_.width)}),s={ref:Bs(p,o),style:a,className:f0("".concat(r,"-thumb"),i)};return gv.createElement("div",s)})):null}function Xd(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Kd(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function Yd(e,t,n){return(e-t)/(n-t)}function Qd(e,t,n,r){var o=Yd(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Jd(e,t){return Array.isArray(e)?e[t]:e}function Zd(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function ef(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=gv.useContext(Sj),l=s.direction,c=s.min,u=s.max,p=s.disabled,d=s.range,f="".concat(t,"-track"),m=Yd(r,c,u),g=Yd(o,c,u),h=function(e){!p&&a&&a(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%");break;case"btt":b.bottom="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;case"ttb":b.top="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;default:b.left="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%")}return gv.createElement("div",{className:f0(f,d&&"".concat(f,"-").concat(i+1)),style:xa(xa({},b),n),onMouseDown:h,onTouchStart:h})}function tf(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=gv.useContext(Sj),s=a.included,l=a.range,c=a.min,u=gv.useMemo((function(){var e,t,n,i;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Hf(e){var t,n,r,o,i,a,s,l,c,u,p;if("string"!=typeof e)throw new $L(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return jL[t]?"#"+jL[t]:e}(e),t.match(FL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(LL))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match(ML))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(UL))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=BL.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=HL.exec(t.substring(0,50)))return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};if(a=zL.exec(t)){if(s="rgb("+Bf(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=BL.exec(s)))throw new $L(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=WL.exec(t.substring(0,50))){if(u="rgb("+Bf(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(p=BL.exec(u)))throw new $L(4,t,u);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new $L(5)}function zf(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Wf(e){return zf(Math.round(255*e))}function Vf(e,t,n){return VL("#"+Wf(e)+Wf(t)+Wf(n))}function Gf(e,t,n){return Bf(e,t,n,Vf)}function qf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return VL("#"+zf(e)+zf(t)+zf(n));if("object"==typeof e&&void 0===t&&void 0===n)return VL("#"+zf(e.red)+zf(e.green)+zf(e.blue));throw new $L(6)}function Xf(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Hf(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?qf(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?qf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new $L(7)}function Kf(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Kf(e,t,r)}}function Yf(e){return Kf(e,e.length,[])}function Qf(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(i-a)/n+(i=1?Gf(e.hue,e.saturation,e.lightness):"rgba("+Bf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new $L(2)}(e);if(XL(e))return function(e){if("object"==typeof e)return Gf(e.hue,e.saturation,e.lightness);throw new $L(1)}(e);throw new $L(8)}(fa({},n,{hue:n.hue+parseFloat(e)}))}function Jf(e){var t,n;return"transparent"===e?0:(t=Hf(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function Zf(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=QL),void 0===n&&(n=JL),void 0===r&&(r=!0),i=(o=Jf(e)>.179)?t:n,!r||(a=i,s=Jf(e),l=Jf(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?QL:JL}function em(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function tm(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n52;t=t/52|0)n=dq(t%52)+n;return(dq(t%52)+n).replace(pq,"$1-$2")}function hg(e){return"string"==typeof e&&!0}function bg(e){return("type"in(t=e)&&t.type.$$typeof)===bq?wq:"$$typeof"in e?Cq[e.$$typeof]:vq;var t}function yg(e,t,n){var r,o,i,a,s,l,c;if("string"!=typeof t)for(Oq&&(r=Eq(t))&&r!==Oq&&yg(e,r,n),o=xq(t),Dq&&(o=o.concat(Dq(t))),i=bg(e),a=bg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function Eg(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Eg(e.children,t)),e}))}function Og(){return gv.useContext(Yq)}function Pg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.7"+f+oX[f])),p?"".concat(p,"-").concat(d):d):v;return void 0===t.displayName&&function(e){hg(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),r=t.displayName&&t.componentId?"".concat(mg(t.displayName),"-").concat(t.componentId):t.componentId||_,o=m&&g.attrs?g.attrs.concat(y).filter(Boolean):y,i=t.shouldForwardProp,m&&g.shouldForwardProp&&(a=g.shouldForwardProp,t.shouldForwardProp?(s=t.shouldForwardProp,i=function(e,t){return a(e,t)&&s(e,t)}):i=a),l=new nX(n,r,m?g.componentStyle:void 0),c=OZ.forwardRef((function(e,t){return function(e,t,n){var r,o,i,a,s,l,c=e.attrs,u=e.componentStyle,p=e.defaultProps,d=e.foldedComponentIds,f=e.styledComponentId,m=e.target,g=OZ.useContext(rX),h=Og(),b=e.shouldForwardProp||h.shouldForwardProp,y=function(e,t,n){var r,o,i,a,s;for(o=ZL(ZL({},t),{className:void 0,theme:n}),i=0;i{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,gee(e,r))}function Ug(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?p:p[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=gv.useContext(Cee)||{},s=o||i||vee;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new kee),!s){Fg("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Fg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={..._ee,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let p=e||a||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const d=(s.isInitialized||s.initializedStoreOnce)&&p.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||i&&!s(a,e)))}(e,t,r):(Fg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,m]=gv.useState(n);let g=p.join();r.lng&&(g=`${r.lng}${g}`);const h=(e=>{const t=gv.useRef();return gv.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=gv.useRef(!0);gv.useEffect((()=>{function e(){b.current&&m(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,d||c||(r.lng?Mg(s,r.lng,p,(()=>{b.current&&m(n)})):Lg(s,p,(()=>{b.current&&m(n)}))),d&&h&&h!==g&&b.current&&m(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const y=gv.useRef(!0);gv.useEffect((()=>{b.current&&!y.current&&m(n),y.current=!1}),[s,u]);const v=[f,s,d];if(v.t=f,v.i18n=s,v.ready=d,d)return v;if(!d&&!c)return v;throw new Promise((e=>{r.lng?Mg(s,r.lng,p,(()=>e())):Lg(s,p,(()=>e()))}))}function Bg(e){var t,n,r=this;if(r instanceof Bg||(r=new Bg),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,i=t.get(n);if(i)return i;const m=this.options.loose;e=e.replace(m?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],S(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options)));m&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,y=g.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=_(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=C(e,t),o("xrange",e),e=x(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),_=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},C=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),p=u||b(s);return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),x=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),D=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),S=e=>(t,n,r,o,i,a,s,l,c,u,p,d)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),E=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return WX}function Wg(){if(qX)return GX;qX=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,a("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}GX=t;const n=mX,{safeRe:r,t:o}=fX,i=LX,a=dX,s=hX,l=zg();return GX}function Vg(e,t){var n,r,o,i,a;for(n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==t?t:[],l=arguments.length>1&&void 0!==n?n:{publishSource:!0},c=l.publishSource,u=void 0===c||c,p=l.clientOffset,d=l.getSourceClientOffset,f=e.getMonitor(),m=e.getRegistry();if(e.dispatch(Gg(p)),function(e,t,n){Vg(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Vg(n.getSource(e),"Expected sourceIds to be registered.")}))}(s,f,m),r=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(s,f),null!==r){if(o=null,p){if(!d)throw new Error("getSourceClientOffset must be defined");!function(e){Vg("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(d),o=d(r)}if(e.dispatch(Gg(p,o)),null!=(i=m.getSource(r).beginDrag(f,r)))return function(e){Vg(Xg(e),"Item must be an object.")}(i),m.pinSource(r),a=m.getSourceType(r),{type:vK,payload:{itemType:a,item:i,sourceId:r,clientOffset:p||null,sourceClientOffset:o||null,isSourcePublic:!!u}}}else e.dispatch(xK)}}function Yg(e){return function(){if(e.getMonitor().isDragging())return{type:_K}}}function Qg(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function Jg(e){return function(t,n){var r,o,i,a=(arguments.length>1&&void 0!==n?n:{}).clientOffset;return function(e){Vg(Array.isArray(e),"Expected targetIds to be an array.")}(t),function(e,t,n){var r,o;for(Vg(t.isDragging(),"Cannot call hover while not dragging."),Vg(!t.didDrop(),"Cannot call hover after drop."),r=0;r=0;r--)Qg(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:wK,payload:{targetIds:r,clientOffset:a||null}}}}function Zg(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function eh(e){var t,n;for(t=1;t0&&void 0!==t?t:{},o=e.getMonitor(),i=e.getRegistry();!function(e){Vg(e.isDragging(),"Cannot call drop while not dragging."),Vg(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(o),n=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(o),n.forEach((function(t,n){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){Vg(void 0===e||Xg(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(t,n,i,o),s={type:CK,payload:{dropResult:eh(eh({},r),a)}};e.dispatch(s)}))}}function rh(e){return function(){var t,n=e.getMonitor(),r=e.getRegistry();return function(e){Vg(e.isDragging(),"Cannot call endDrag while not dragging.")}(n),null!=(t=n.getSourceId())&&(r.getSource(t,!0).endDrag(n,t),r.unpinSource()),{type:kK}}}function oh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ih(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function ah(e,t,n,r){function o(){d===p&&(d=p.slice())}function i(){if(f)throw new Error(ih(3));return u}function a(e){if("function"!=typeof e)throw new Error(ih(4));if(f)throw new Error(ih(5));var t=!0;return o(),d.push(e),function(){if(t){if(f)throw new Error(ih(6));t=!1,o();var n=d.indexOf(e);d.splice(n,1),p=null}}}function s(e){var t,n;if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ih(7));if(void 0===e.type)throw new Error(ih(8));if(f)throw new Error(ih(9));try{f=!0,u=c(u,e)}finally{f=!1}for(t=p=d,n=0;n0&&void 0!==e?e:IK,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case yK:case vK:return{initialSourceClientOffset:a.sourceClientOffset,initialClientOffset:a.clientOffset,clientOffset:a.clientOffset};case wK:return r=a.clientOffset,!(n=o.clientOffset)&&!r||n&&r&&n.x===r.x&&n.y===r.y?o:lh(lh({},o),{},{clientOffset:a.clientOffset});case kK:case CK:return IK;default:return o}}function ph(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function dh(e){var t,n;for(t=1;t0&&void 0!==e?e:$K,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case vK:return dh(dh({},o),{},{itemType:a.itemType,item:a.item,sourceId:a.sourceId,isSourcePublic:a.isSourcePublic,dropResult:null,didDrop:!1});case _K:return dh(dh({},o),{},{isSourcePublic:!0});case wK:return dh(dh({},o),{},{targetIds:a.targetIds});case TK:return-1===o.targetIds.indexOf(a.targetId)?o:dh(dh({},o),{},{targetIds:(n=o.targetIds,r=a.targetId,n.filter((function(e){return e!==r})))});case CK:return dh(dh({},o),{},{dropResult:a.dropResult,didDrop:!0,targetIds:[]});case kK:return dh(dh({},o),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function gh(e,t){var n=arguments.length>0&&void 0!==e?e:0;switch((arguments.length>1?t:void 0).type){case NK:case AK:return n+1;case RK:case TK:return n-1;default:return n}}function hh(e,t){var n,r,o,i,a,s,l,c,u,p=arguments.length>1?t:void 0;switch(p.type){case wK:break;case NK:case AK:case TK:case RK:return jK;default:return FK}return l=(s=function(e,t){var n,r=new Map,o=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};return e.forEach(o),t.forEach(o),n=[],r.forEach((function(e,t){1===e&&n.push(t)})),n}(o=void 0===(r=(n=p.payload).targetIds)?[]:r,a=void 0===(i=n.prevTargetIds)?[]:i)).length>0||!function(e,t,n){var r,o=arguments.length>2&&void 0!==n?n:PK;if(e.length!==t.length)return!1;for(r=0;r0&&void 0!==e?e:0)+1}function yh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function vh(e){var t,n;for(t=1;t0&&void 0!==e?e:{},i=arguments.length>1?t:void 0;return{dirtyHandlerIds:hh(o.dirtyHandlerIds,{type:i.type,payload:vh(vh({},i.payload),{},{prevTargetIds:(n=o,r=[],"dragOperation.targetIds".split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),n))})}),dragOffset:uh(o.dragOffset,i),refCount:gh(o.refCount,i),dragOperation:mh(o.dragOperation,i),stateId:bh(o.stateId)}}function Ch(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(e){return(xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dh(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Dh(e,!1)})):Vg("string"==typeof e||"symbol"===xh(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Sh(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function Eh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==t?t:void 0,a=arguments.length>2&&void 0!==n?n:{},s=(o="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,ah(wh,arguments.length>3&&void 0!==r&&r&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),l=new LK(s,new UK(s)),c=new DK(s,l),u=e(c,i,a);return c.receiveBackend(u),c}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==t?t:null,a=arguments.length>1&&void 0!==n?n:null;return gv.isValidElement(i)?(function(e){if("string"!=typeof e.type)throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e.type.displayName||e.type.name||"the component"," into a
, or turn it into a ")+"drag source or a drop target itself.")}(o=i),function(e,t){var n=e.ref;return Vg("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),gv.cloneElement(e,n?{ref:function(e){Fh(n,e),Fh(t,e)}}:{ref:t})}(o,a?function(t){return e(t,a)}:e)):(e(r=i,a),r)}}(o),t[n]=function(){return r})})),t}function Fh(e,t){"function"==typeof e?e(t):e.current=t}function Lh(e){return(Lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mh(e){return null!==e&&"object"===Lh(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Uh(e,t,n,r){var o,i,a,s,l,c,u,p=n?n.call(r,e,t):void 0;if(void 0!==p)return!!p;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;if(o=Object.keys(e),i=Object.keys(t),o.length!==i.length)return!1;for(a=Object.prototype.hasOwnProperty.bind(t),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}))}))[0]||null}function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hb(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function zb(e){var t,n;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function ay(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function sy(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function ly(e){const t=(e=ay(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function cy(e,t){ny((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&oy(n,e).includes(e.arrayFormatSeparator);n=i?oy(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>oy(t,e))):null===n?n:oy(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?oy(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>oy(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=ey(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:oy(a,t),n(oy(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=sy(n,t);else r[o]=sy(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?iy(n):n,e}),Object.create(null))}function uy(e,t){if(!e)return"";ny((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Ere(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ry(t,e),"[",o,"]"].join("")]:[...n,[ry(t,e),"[",ry(o,e),"]=",ry(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ry(t,e),"[]"].join("")]:[...n,[ry(t,e),"[]=",ry(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ry(t,e),":list="].join("")]:[...n,[ry(t,e),":list=",ry(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[ry(n,e),t,ry(o,e)].join("")]:[[r,ry(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,ry(t,e)]:[...n,[ry(t,e),"=",ry(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?ry(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?ry(n,t)+"[]":o.reduce(r(n),[]).join("&"):ry(n,t)+"="+ry(o,t)})).filter((e=>e.length>0)).join("&")}function py(e,t){var n;t={decode:!0,...t};let[r,o]=ey(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:cy(ly(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:oy(o,t)}:{}}}function dy(e,t){t={encode:!0,strict:!0,[Pre]:!0,...t};const n=ay(e.url).split("?")[0]||"";let r=uy({...cy(ly(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Pre]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function fy(e,t,n){n={parseFragmentIdentifier:!0,[Pre]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=py(e,n);return dy({url:r,query:ty(o,t),fragmentIdentifier:i},n)}function my(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function gy(e){return null==e?"":""+e}function hy(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function by(e,t,n){const{obj:r,k:o}=hy(e,t,Object);r[o]=n}function yy(e,t){const{obj:n,k:r}=hy(e,t);if(n)return n[r]}function vy(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):vy(e[r],t[r],n):e[r]=t[r]);return e}function _y(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wy(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>$Q[e])):e}function Cy(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let i=e;for(let a=0;aa+e;)e++,n=o.slice(a,a+e).join(r),s=i[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(a+e).join(r);return l?Cy(s,l,r):void 0}i=i[o[a]]}return i}function ky(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function xy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Dy(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=yy(e,n);return void 0!==r?r:yy(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=Cy(e,n,i),void 0===s&&(s=Cy(t,n,i))),s}function Sy(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(ky(r),o),t[i]=a),a(n)}}function Ey(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Oy(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Py(){}function Iy(e){return(Iy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ny(e){return LQ.call(MQ.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Ay(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Iy(XMLHttpRequest))}function Ry(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Ty(e){return(Ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $y(e){return($y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jy(e){var t=function(e){var t,n;if("object"!==$y(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==$y(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$y(t)?t:String(t)}function Fy(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Ly(e){return e.startsWith("./")?e.slice(2):e}function My(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function Uy(...e){return e.map(Fy).map(Ly).join("/")}function By(e){return 32===e||9===e}function Hy(e){return 10===e||13===e}function zy(e){return e>=48&&e<=57}function Wy(e){return`${ooe}${e}`}async function Vy(e){const t=[],n=await async function(e){const t=Wy(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(LJ){if(r=roe(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function Gy(e){const t=qy(await Vy(e));if(t.include){const n=await Gy(Uy(...My(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function qy(e){const t={name:e.name,type:e.type||"dark",...e,...Xy(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function Xy(e){var t,n,r,o;let i,a,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?soe.light:soe.dark),a||(a="light"===e.type?loe.light:loe.dark),{fg:i,bg:a}}function Ky(e,t){let n=[];for(let r=0,o=t.length;r=0&&i>=0;)Yy(t[o],r[i])&&o--,i--;return-1===o}function Jy(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;ie.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;eNumber.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function tv(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)dJ[r]&&t.push({type:"setDecoration",value:dJ[r]});else if(r<=29){const e=dJ[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:pJ[r-30]}});else if(38===r){const n=ev(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:pJ[r-40]}});else if(48===r){const n=ev(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:pJ[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:pJ[r-100+8]}})}return t}function nv(e,t={}){function n(e="",t={},n){const r=i[e]||uoe[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,i)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&iJ.Italic&&i.push("font-style: italic"),e.fontStyle&iJ.Bold&&i.push("font-weight: bold"),e.fontStyle&iJ.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>poe[e])))]);var a}))))))])}function rv(e){return"string"==typeof e?toe.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function ov(e){function t(e){const t=e?u.getTheme(e):p;if(!t)throw Error(`No theme registration for ${e}`);d&&d.name===t.name||(u.setTheme(t),d=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=oJ.INITIAL,s=[],l=[];for(let c=0,u=i.length;cMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o=e.index,function(){if(r)return r;r=[];for(let n=0;n[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=Zy(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=tv(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(io.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=iJ.None;return t.decorations.has("bold")&&(o|=iJ.Bold),t.decorations.has("italic")&&(o|=iJ.Italic),t.decorations.has("underline")&&(o|=iJ.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=toe,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":ioe;return e.langs&&(n=e.langs.map(rv)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new coe(async function(e){if(!aoe){let t;t=nJ.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(Wy(Uy(...My(e),"onig.wasm")))}),aoe=t.then((()=>({createOnigScanner:e=>nJ.createOnigScanner(e),createOnigString:e=>nJ.createOnigString(e)})))}return aoe}(l),"vscode-oniguruma"),u=new doe(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const p=(await u.loadThemes(s))[0];let d;await u.loadLanguages(a);let f=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;tt(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=rv(e);c.addLanguage(t),await u.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function iv(e){return null==e}var av,sv,lv,cv,uv,pv,dv,fv,mv,gv,hv,bv,yv,vv,_v,wv,Cv,kv,xv,Dv,Sv,Ev,Ov,Pv,Iv,Nv,Av,Rv,Tv,$v,jv,Fv,Lv,Mv,Uv,Bv,Hv,zv,Wv,Vv,Gv,qv,Xv,Kv,Yv,Qv,Jv,Zv,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,p_,d_,f_,m_,g_,h_,b_,y_,v_,__,w_,C_,k_,x_,D_,S_,E_,O_,P_,I_,N_,A_,R_,T_,$_,j_,F_,L_,M_,U_,B_,H_,z_,W_,V_,G_,q_,X_,K_,Y_,Q_,J_,Z_,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,pw,dw,fw,mw,gw,hw,bw,yw,vw,_w,ww,Cw,kw,xw,Dw,Sw,Ew,Ow,Pw,Iw,Nw,Aw,Rw,Tw,$w,jw,Fw,Lw,Mw,Uw,Bw,Hw,zw,Ww,Vw,Gw,qw,Xw,Kw,Yw,Qw,Jw,Zw,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,pC,dC,fC,mC,gC,hC,bC,yC,vC,_C,wC,CC,kC,xC,DC,SC,EC,OC,PC,IC,NC,AC,RC,TC,$C,jC,FC,LC,MC,UC,BC,HC,zC,WC,VC,GC,qC,XC,KC,YC,QC,JC,ZC,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,pk,dk,fk,mk,gk,hk,bk,yk,vk,_k,wk,Ck,kk,xk,Dk,Sk,Ek,Ok,Pk,Ik,Nk,Ak,Rk,Tk,$k,jk,Fk,Lk,Mk,Uk,Bk,Hk,zk,Wk,Vk,Gk,qk,Xk,Kk,Yk,Qk,Jk,Zk,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,px,dx,fx,mx,gx,hx,bx,yx,vx,_x,wx,Cx,kx,xx,Dx,Sx,Ex,Ox,Px,Ix,Nx,Ax,Rx,Tx,$x,jx,Fx,Lx,Mx,Ux,Bx,Hx,zx,Wx,Vx,Gx,qx,Xx,Kx,Yx,Qx,Jx,Zx,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,pD,dD,fD,mD,gD,hD,bD,yD,vD,_D,wD,CD,kD,xD,DD,SD,ED,OD,PD,ID,ND,AD,RD,TD,$D,jD,FD,LD,MD,UD,BD,HD,zD,WD,VD,GD,qD,XD,KD,YD,QD,JD,ZD,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,pS,dS,fS,mS,gS,hS,bS,yS,vS,_S,wS,CS,kS,xS,DS,SS,ES,OS,PS,IS,NS,AS,RS,TS,$S,jS,FS,LS,MS,US,BS,HS,zS,WS,VS,GS,qS,XS,KS,YS,QS,JS,ZS,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,pE,dE,fE,mE,gE,hE,bE,yE,vE,_E,wE,CE,kE,xE,DE,SE,EE,OE,PE,IE,NE,AE,RE,TE,$E,jE,FE,LE,ME,UE,BE,HE,zE,WE,VE,GE,qE,XE,KE,YE,QE,JE,ZE,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,pO,dO,fO,mO,gO,hO,bO,yO,vO,_O,wO,CO,kO,xO,DO,SO,EO,OO,PO,IO,NO,AO,RO,TO,$O,jO,FO,LO,MO,UO,BO,HO,zO,WO,VO,GO,qO,XO,KO,YO,QO,JO,ZO,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,pP,dP,fP,mP,gP,hP,bP,yP,vP,_P,wP,CP,kP,xP,DP,SP,EP,OP,PP,IP,NP,AP,RP,TP,$P,jP,FP,LP,MP,UP,BP,HP,zP,WP,VP,GP,qP,XP,KP,YP,QP,JP,ZP,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,pI,dI,fI,mI,gI,hI,bI,yI,vI,_I,wI,CI,kI,xI,DI,SI,EI,OI,PI,II,NI,AI,RI,TI,$I,jI,FI,LI,MI,UI,BI,HI,zI,WI,VI,GI,qI,XI,KI,YI,QI,JI,ZI,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,pN,dN,fN,mN,gN,hN,bN,yN,vN,_N,wN,CN,kN,xN,DN,SN,EN,ON,PN,IN,NN,AN,RN,TN,$N,jN,FN,LN,MN,UN,BN,HN,zN,WN,VN,GN,qN,XN,KN,YN,QN,JN,ZN,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,pA,dA,fA,mA,gA,hA,bA,yA,vA,_A,wA,CA,kA,xA,DA,SA,EA,OA,PA,IA,NA,AA,RA,TA,$A,jA,FA,LA,MA,UA,BA,HA,zA,WA,VA,GA,qA,XA,KA,YA,QA,JA,ZA,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,pR,dR,fR,mR,gR,hR,bR,yR,vR,_R,wR,CR,kR,xR,DR,SR,ER,OR,PR,IR,NR,AR,RR,TR,$R,jR,FR,LR,MR,UR,BR,HR,zR,WR,VR,GR,qR,XR,KR,YR,QR,JR,ZR,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,pT,dT,fT,mT,gT,hT,bT,yT,vT,_T,wT,CT,kT,xT,DT,ST,ET,OT,PT,IT,NT,AT,RT,TT,$T,jT,FT,LT,MT,UT,BT,HT,zT,WT,VT,GT,qT,XT,KT,YT,QT,JT,ZT,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,p$,d$,f$,m$,g$,h$,b$,y$,v$,_$,w$,C$,k$,x$,D$,S$,E$,O$,P$,I$,N$,A$,R$,T$,$$,j$,F$,L$,M$,U$,B$,H$,z$,W$,V$,G$,q$,X$,K$,Y$,Q$,J$,Z$,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,pj,dj,fj,mj,gj,hj,bj,yj,vj,_j,wj,Cj,kj,xj,Dj,Sj,Ej,Oj,Pj,Ij,Nj,Aj,Rj,Tj,$j,jj,Fj,Lj,Mj,Uj,Bj,Hj,zj,Wj,Vj,Gj,qj,Xj,Kj,Yj,Qj,Jj,Zj,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,pF,dF,fF,mF,gF,hF,bF,yF,vF,_F,wF,CF,kF,xF,DF,SF,EF,OF,PF,IF,NF,AF,RF,TF,$F,jF,FF,LF,MF,UF,BF,HF,zF,WF,VF,GF,qF,XF,KF,YF,QF,JF,ZF,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,pL,dL,fL,mL,gL,hL,bL,yL,vL,_L,wL,CL,kL,xL,DL,SL,EL,OL,PL,IL,NL,AL,RL,TL,$L,jL,FL,LL,ML,UL,BL,HL,zL,WL,VL,GL,qL,XL,KL,YL,QL,JL,ZL,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,pM,dM,fM,mM,gM,hM,bM,yM,vM,_M,wM,CM,kM,xM,DM,SM,EM,OM,PM,IM,NM,AM,RM,TM,$M,jM,FM,LM,MM,UM,BM,HM,zM,WM,VM,GM,qM,XM,KM,YM,QM,JM,ZM,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,pU,dU,fU,mU,gU,hU,bU,yU,vU,_U,wU,CU,kU,xU,DU,SU,EU,OU,PU,IU,NU,AU,RU,TU,$U,jU,FU,LU,MU,UU,BU,HU,zU,WU,VU,GU,qU,XU,KU,YU,QU,JU,ZU,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,pB,dB,fB,mB,gB,hB,bB,yB,vB,_B,wB,CB,kB,xB,DB,SB,EB,OB,PB,IB,NB,AB,RB,TB,$B,jB,FB,LB,MB,UB,BB,HB,zB,WB,VB,GB,qB,XB,KB,YB,QB,JB,ZB,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,pH,dH,fH,mH,gH,hH,bH,yH,vH,_H,wH,CH,kH,xH,DH,SH,EH,OH,PH,IH,NH,AH,RH,TH,$H,jH,FH,LH,MH,UH,BH,HH,zH,WH,VH,GH,qH,XH,KH,YH,QH,JH,ZH,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,pz,dz,fz,mz,gz,hz,bz,yz,vz,_z,wz,Cz,kz,xz,Dz,Sz,Ez,Oz,Pz,Iz,Nz,Az,Rz,Tz,$z,jz,Fz,Lz,Mz,Uz,Bz,Hz,zz,Wz,Vz,Gz,qz,Xz,Kz,Yz,Qz,Jz,Zz,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,pW,dW,fW,mW,gW,hW,bW,yW,vW,_W,wW,CW,kW,xW,DW,SW,EW,OW,PW,IW,NW,AW,RW,TW,$W,jW,FW,LW,MW,UW,BW,HW,zW,WW,VW,GW,qW,XW,KW,YW,QW,JW,ZW,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,pV,dV,fV,mV,gV,hV,bV,yV,vV,_V,wV,CV,kV,xV,DV,SV,EV,OV,PV,IV,NV,AV,RV,TV,$V,jV,FV,LV,MV,UV,BV,HV,zV,WV,VV,GV,qV,XV,KV,YV,QV,JV,ZV,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,pG,dG,fG,mG,gG,hG,bG,yG,vG,_G,wG,CG,kG,xG,DG,SG,EG,OG,PG,IG,NG,AG,RG,TG,$G,jG,FG,LG,MG,UG,BG,HG,zG,WG,VG,GG,qG,XG,KG,YG,QG,JG,ZG,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,pq,dq,fq,mq,gq,hq,bq,yq,vq,_q,wq,Cq,kq,xq,Dq,Sq,Eq,Oq,Pq,Iq,Nq,Aq,Rq,Tq,$q,jq,Fq,Lq,Mq,Uq,Bq,Hq,zq,Wq,Vq,Gq,qq,Xq,Kq,Yq,Qq,Jq,Zq,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,pX,dX,fX,mX,gX,hX,bX,yX,vX,_X,wX,CX,kX,xX,DX,SX,EX,OX,PX,IX,NX,AX,RX,TX,$X,jX,FX,LX,MX,UX,BX,HX,zX,WX,VX,GX,qX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,pK,dK,fK,mK,gK,hK,bK,yK,vK,_K,wK,CK,kK,xK,DK,SK,EK,OK,PK,IK,NK,AK,RK,TK,$K,jK,FK,LK,MK,UK,BK,HK,zK,WK,VK,GK,qK,XK,KK,YK,QK,JK,ZK,eY,tY,nY,rY,oY,iY,aY,sY,lY,cY,uY,pY,dY,fY,mY,gY,hY,bY,yY,vY,_Y,wY,CY,kY,xY,DY,SY,EY,OY,PY,IY,NY,AY,RY,TY,$Y,jY,FY,LY,MY,UY,BY,HY,zY,WY,VY,GY,qY,XY,KY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,iQ,aQ,sQ,lQ,cQ,uQ,pQ,dQ,fQ,mQ,gQ,hQ,bQ,yQ,vQ,_Q,wQ,CQ,kQ,xQ,DQ,SQ,EQ,OQ,PQ,IQ,NQ,AQ,RQ,TQ,$Q,jQ,FQ,LQ,MQ,UQ,BQ,HQ,zQ,WQ,VQ,GQ,qQ,XQ,KQ,YQ,QQ,JQ,ZQ,eJ,tJ,nJ,rJ,oJ,iJ,aJ,sJ,lJ,cJ,uJ,pJ,dJ,fJ,mJ,gJ,hJ,bJ,yJ,vJ,_J,wJ,CJ,kJ,xJ,DJ,SJ,EJ,OJ,PJ,IJ,NJ,AJ,RJ,TJ,$J,jJ,FJ,LJ,MJ,UJ,BJ,HJ,zJ,WJ,VJ,GJ,qJ,XJ,KJ,YJ,QJ,JJ,ZJ,eZ,tZ,nZ,rZ,oZ,iZ,aZ,sZ,lZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},cZ={exports:{}},uZ={},pZ={exports:{}},dZ={},fZ=Symbol.for("react.element"),mZ=Symbol.for("react.portal"),gZ=Symbol.for("react.fragment"),hZ=Symbol.for("react.strict_mode"),bZ=Symbol.for("react.profiler"),yZ=Symbol.for("react.provider"),vZ=Symbol.for("react.context"),_Z=Symbol.for("react.forward_ref"),wZ=Symbol.for("react.suspense"),CZ=Symbol.for("react.memo"),kZ=Symbol.for("react.lazy"),xZ=Symbol.iterator,DZ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SZ=Object.assign,EZ={};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(av=i.prototype=new o).constructor=i,SZ(av,r.prototype),av.isPureReactComponent=!0,sv=Array.isArray,lv=Object.prototype.hasOwnProperty,uv={key:!0,ref:!0,__self:!0,__source:!0},pv=/\/+/g,mv={ReactCurrentDispatcher:dv={current:null},ReactCurrentBatchConfig:fv={transition:null},ReactCurrentOwner:cv={current:null}},dZ.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},dZ.Component=r,dZ.Fragment=gZ,dZ.Profiler=bZ,dZ.PureComponent=i,dZ.StrictMode=hZ,dZ.Suspense=wZ,dZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mv,dZ.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=SZ({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=cv.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)lv.call(t,l)&&!uv.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,i=e.length,a=i>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var o=n(h);null!==o;){if(null===o.callback)r(h);else{if(!(o.startTime<=e))break;r(h),o.sortIndex=o.expirationTime,t(g,o)}o=n(h)}}function a(e){if(C=!1,i(e),!w)if(null!==n(g))w=!0,u(s);else{var t=n(h);null!==t&&p(a,t.startTime-e)}}function s(t,o){var s,c,u,d,f;w=!1,C&&(C=!1,x(O),O=-1),_=!0,s=v;try{for(i(o),y=n(g);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(g)&&r(g),i(o)):r(g),y=n(g);return null!==y?d=!0:(null!==(f=n(h))&&p(a,f.startTime-o),d=!1),d}finally{y=null,v=s,_=!1}}function l(){return!(e.unstable_now()-Ie||125c?(r.sortIndex=i,t(h,r),null===n(g)&&r===n(h)&&(C?(x(O),O=-1):C=!0,p(a,i-c))):(r.sortIndex=l,t(g,r),w||_||(w=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(Sv={}),Dv.exports=Sv,Ev=gv,Ov=Dv.exports,Pv=new Set,Iv={},Nv=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Av=Object.prototype.hasOwnProperty,Rv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tv={},$v={},jv={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){jv[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];jv[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){jv[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){jv[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){jv[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){jv[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){jv[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){jv[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){jv[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)})),Fv=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Fv,b);jv[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Fv,b);jv[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Fv,b);jv[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){jv[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),jv.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){jv[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)})),Lv=Ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mv=Symbol.for("react.element"),Uv=Symbol.for("react.portal"),Bv=Symbol.for("react.fragment"),Hv=Symbol.for("react.strict_mode"),zv=Symbol.for("react.profiler"),Wv=Symbol.for("react.provider"),Vv=Symbol.for("react.context"),Gv=Symbol.for("react.forward_ref"),qv=Symbol.for("react.suspense"),Xv=Symbol.for("react.suspense_list"),Kv=Symbol.for("react.memo"),Yv=Symbol.for("react.lazy"),Qv=Symbol.for("react.offscreen"),Jv=Symbol.iterator,Zv=Object.assign,t_=!1,n_=Array.isArray,mJ=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((r_=r_||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=r_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},o_="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return mJ(e,t)}))}:mJ,i_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},a_=["Webkit","ms","Moz","O"],Object.keys(i_).forEach((function(e){a_.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),i_[t]=i_[e]}))})),s_=Zv({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),l_=null,c_=null,u_=null,p_=null,d_=!1,f_=!1,Nv)try{m_={},Object.defineProperty(m_,"passive",{get:function(){f_=!0}}),window.addEventListener("test",m_,m_),window.removeEventListener("test",m_,m_)}catch(mJ){f_=!1}g_=!1,h_=null,b_=!1,y_=null,v_={onError:function(e){g_=!0,h_=e}},__=Ov.unstable_scheduleCallback,w_=Ov.unstable_cancelCallback,C_=Ov.unstable_shouldYield,k_=Ov.unstable_requestPaint,x_=Ov.unstable_now,D_=Ov.unstable_getCurrentPriorityLevel,S_=Ov.unstable_ImmediatePriority,E_=Ov.unstable_UserBlockingPriority,O_=Ov.unstable_NormalPriority,P_=Ov.unstable_LowPriority,I_=Ov.unstable_IdlePriority,N_=null,A_=null,R_=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(T_(e)/$_|0)|0},T_=Math.log,$_=Math.LN2,j_=64,F_=4194304,L_=0,W_=!1,V_=[],G_=null,q_=null,X_=null,K_=new Map,Y_=new Map,Q_=[],J_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Z_=Lv.ReactCurrentBatchConfig,ew=!0,tw=null,nw=null,rw=null,ow=null,iw={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},aw=$e(iw),sw=Zv({},iw,{view:0,detail:0}),lw=$e(sw),dw=Zv({},sw,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pw&&(pw&&"mousemove"===e.type?(cw=e.screenX-pw.screenX,uw=e.screenY-pw.screenY):uw=cw=0,pw=e),cw)},movementY:function(e){return"movementY"in e?e.movementY:uw}}),fw=$e(dw),mw=Zv({},dw,{dataTransfer:0}),gw=$e(mw),hw=Zv({},sw,{relatedTarget:0}),bw=$e(hw),yw=Zv({},iw,{animationName:0,elapsedTime:0,pseudoElement:0}),vw=$e(yw),_w=Zv({},iw,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ww=$e(_w),Cw=Zv({},iw,{data:0}),kw=$e(Cw),xw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ew=Zv({},sw,{key:function(e){if(e.key){var t=xw[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ae(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Dw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Ae(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ae(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ow=$e(Ew),Pw=Zv({},dw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Iw=$e(Pw),Nw=Zv({},sw,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),Aw=$e(Nw),Rw=Zv({},iw,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tw=$e(Rw),$w=Zv({},dw,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jw=$e($w),Fw=[9,13,27,32],Lw=Nv&&"CompositionEvent"in window,Mw=null,Nv&&"documentMode"in document&&(Mw=document.documentMode),Uw=Nv&&"TextEvent"in window&&!Mw,Bw=Nv&&(!Lw||Mw&&8=Mw),Hw=String.fromCharCode(32),zw=!1,Ww=!1,Vw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Gw=null,qw=null,Xw=!1,Nv&&(Nv?((Yw="oninput"in document)||((Qw=document.createElement("div")).setAttribute("oninput","return;"),Yw="function"==typeof Qw.oninput),Kw=Yw):Kw=!1,Xw=Kw&&(!document.documentMode||9=document.documentMode,eC=null,tC=null,nC=null,rC=!1,oC={animationend:it("Animation","AnimationEnd"),animationiteration:it("Animation","AnimationIteration"),animationstart:it("Animation","AnimationStart"),transitionend:it("Transition","TransitionEnd")},iC={},aC={},Nv&&(aC=document.createElement("div").style,"AnimationEvent"in window||(delete oC.animationend.animation,delete oC.animationiteration.animation,delete oC.animationstart.animation),"TransitionEvent"in window||delete oC.transitionend.transition),sC=at("animationend"),lC=at("animationiteration"),cC=at("animationstart"),uC=at("transitionend"),pC=new Map,dC="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(fC=0;fC=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},cD=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},uD=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},pD=function(e){var t,n=hD(e,qx.TITLE),r=hD(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=hD(e,"defaultTitle"),n||t||void 0)},dD=function(e){return hD(e,"onChangeClientState")||function(){}},fD=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return aD({},e,t)}),{})},mD=function(e,t){return t.filter((function(e){return void 0!==e[qx.BASE]})).map((function(e){return e[qx.BASE]})).reverse().reduce((function(t,n){var r,o,i;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},bD=function(e){return{baseTag:mD([Kx,"target"],e),bodyAttributes:fD(Vx,e),defer:hD(e,"defer"),encode:hD(e,"encodeSpecialCharacters"),htmlAttributes:fD(Gx,e),linkTags:gD(qx.LINK,[Jx,Kx],e),metaTags:gD(qx.META,["name","charset","http-equiv","property",Qx],e),noscriptTags:gD(qx.NOSCRIPT,[Yx],e),onChangeClientState:dD(e),scriptTags:gD(qx.SCRIPT,["src",Yx],e),styleTags:gD(qx.STYLE,[Xx],e),title:pD(e),titleAttributes:fD("titleAttributes",e)}},hJ=Date.now(),yD=function(e){var t=Date.now();t-hJ>16?(hJ=t,e(t)):setTimeout((function(){yD(e)}),0)},vD=function(e){return clearTimeout(e)},_D="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||yD:global.requestAnimationFrame||yD,wD="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||vD:global.cancelAnimationFrame||vD,CD=function(){return console&&"function"==typeof console.warn&&void 0},kD=null,xD=function(e){kD&&wD(kD),e.defer?kD=_D((function(){DD(e,(function(){kD=null}))})):(DD(e),kD=null)},DD=function(e,t){var n,r,o,i=e.baseTag,a=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,p=e.scriptTags,d=e.styleTags,f=e.title,m=e.titleAttributes;OD(qx.BODY,e.bodyAttributes),OD(qx.HTML,a),ED(f,m),n={baseTag:PD(qx.BASE,i),linkTags:PD(qx.LINK,s),metaTags:PD(qx.META,l),noscriptTags:PD(qx.NOSCRIPT,c),scriptTags:PD(qx.SCRIPT,p),styleTags:PD(qx.STYLE,d)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],i=t.newTags,a=t.oldTags;i.length&&(r[e]=i),a.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},SD=function(e){return Array.isArray(e)?e.join(""):e},ED=function(e,t){void 0!==e&&document.title!==e&&(document.title=SD(e)),OD(qx.TITLE,t)},OD=function(e,t){var n,r,o,i,a,s,l,c,u,p=document.getElementsByTagName(e)[0];if(p){for(r=(n=p.getAttribute(nD))?n.split(","):[],o=[].concat(r),i=Object.keys(t),a=0;a=0;u--)p.removeAttribute(o[u]);r.length===o.length?p.removeAttribute(nD):p.getAttribute(nD)!==i.join(",")&&p.setAttribute(nD,i.join(","))}},PD=function(e,t){var n=document.head||document.querySelector(qx.HEAD),r=n.querySelectorAll(e+"["+nD+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===Yx?r.innerHTML=t.innerHTML:n===Xx?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(nD,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},ID=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ND=function(e,t,n,r){var o=ID(n),i=SD(t);return o?"<"+e+" "+nD+'="true" '+o+">"+uD(i,r)+"":"<"+e+" "+nD+'="true">'+uD(i,r)+""},AD=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Yx||e===Xx)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+uD(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===tD.indexOf(e);return t+"<"+e+" "+nD+'="true" '+o+(a?"/>":">"+i+"")}),"")},RD=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[Zx[n]||n]=e[n],t}),n)},TD=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[eD[n]||n]=e[n],t}),n)},$D=function(e,t,n){var r,o=((r={key:t})[nD]=!0,r),i=RD(n,o);return[OZ.createElement(qx.TITLE,i,t)]},jD=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[nD]=!0,r);return Object.keys(t).forEach((function(e){var n=Zx[e]||e;n===Yx||n===Xx?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),OZ.createElement(e,o)}))},FD=function(e,t,n){switch(e){case qx.TITLE:return{toComponent:function(){return $D(0,t.title,t.titleAttributes)},toString:function(){return ND(e,t.title,t.titleAttributes,n)}};case Vx:case Gx:return{toComponent:function(){return RD(t)},toString:function(){return ID(t)}};default:return{toComponent:function(){return jD(e,t)},toString:function(){return AD(e,t,n)}}}},MD=function(e){var t,n;return n=t=function(t){function n(){return oD(this,n),cD(this,t.apply(this,arguments))}return sD(n,t),n.prototype.shouldComponentUpdate=function(e){return!TZ(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case qx.SCRIPT:case qx.NOSCRIPT:return{innerHTML:t};case qx.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return aD({},r,((t={})[n.type]=[].concat(r[n.type]||[],[aD({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case qx.TITLE:return aD({},o,((t={})[r.type]=a,t.titleAttributes=aD({},i),t));case qx.BODY:return aD({},o,{bodyAttributes:aD({},i)});case qx.HTML:return aD({},o,{htmlAttributes:aD({},i)})}return aD({},o,((n={})[r.type]=aD({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=aD({},t);return Object.keys(e).forEach((function(t){var r;n=aD({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return OZ.Children.forEach(e,(function(e){var o,i,a,s;if(e&&e.props)switch(i=(o=e.props).children,a=lD(o,["children"]),s=TD(a),n.warnOnInvalidChildren(e,i),e.type){case qx.LINK:case qx.META:case qx.NOSCRIPT:case qx.SCRIPT:case qx.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=lD(t,["children"]),o=aD({},r);return n&&(o=this.mapChildrenToProps(n,o)),OZ.createElement(e,o)},iD(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(OZ.Component),t.propTypes={base:AZ.object,bodyAttributes:AZ.object,children:AZ.oneOfType([AZ.arrayOf(AZ.node),AZ.node]),defaultTitle:AZ.string,defer:AZ.bool,encodeSpecialCharacters:AZ.bool,htmlAttributes:AZ.object,link:AZ.arrayOf(AZ.object),meta:AZ.arrayOf(AZ.object),noscript:AZ.arrayOf(AZ.object),onChangeClientState:AZ.func,script:AZ.arrayOf(AZ.object),style:AZ.arrayOf(AZ.object),title:AZ.string,titleAttributes:AZ.object,titleTemplate:AZ.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=LD({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},UD=function(){return null},BD=RZ(bD,xD,LD=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,p=e.titleAttributes;return{base:FD(qx.BASE,e.baseTag,n),bodyAttributes:FD(Vx,t,n),htmlAttributes:FD(Gx,r,n),link:FD(qx.LINK,o,n),meta:FD(qx.META,i,n),noscript:FD(qx.NOSCRIPT,a,n),script:FD(qx.SCRIPT,s,n),style:FD(qx.STYLE,l,n),title:FD(qx.TITLE,{title:u,titleAttributes:p},n)}})(UD),(HD=MD(BD)).renderStatic=HD.rewind,zD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const jZ=(e,t)=>{const n=gv.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return gv.createElement("svg",{ref:l,...zD,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>gv.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},FZ=jZ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),LZ=jZ("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),MZ=jZ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),UZ=jZ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),BZ=jZ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),HZ=jZ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),zZ=jZ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),WZ=jZ("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),VZ=jZ("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),GZ=jZ("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),qZ=jZ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),XZ=jZ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),KZ=jZ("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),YZ=jZ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),QZ=jZ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),JZ=jZ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),ZZ=jZ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),e0=jZ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),t0=jZ("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),n0=jZ("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),r0=jZ("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),o0=jZ("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),i0=jZ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),a0=jZ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),s0=jZ("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),l0=jZ("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);WD=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case YD:e.return=la(e.value,e.length);break;case JD:return ia([Ui(e,{value:Ai(e.value,"@","@"+qD)})],r);case KD:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ia([Ui(e,{props:[Ai(t,/:(read-\w+)/,":"+GD+"$1")]})],r);case"::placeholder":return ia([Ui(e,{props:[Ai(t,/:(plac\w+)/,":"+qD+"input-$1")]}),Ui(e,{props:[Ai(t,/:(plac\w+)/,":"+GD+"$1")]}),Ui(e,{props:[Ai(t,/:(plac\w+)/,VD+"input-$1")]})],r)}return""}))}},bS=[hS],yS=function(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,m,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||bS,r={},i=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:ES}},PS=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},IS=function(e,t,n){var r,o;if(PS(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},NS=function(e){var t,n,r,o,i=yS(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==t&&t,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r,o,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Wa(e,2)[1];return a.internalGet(t)[1]1&&void 0!==n?n:{},m=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=m.root,h=m.injectHash,b=m.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,a,s,u,p,d,m,v,_=n[t];if("object"!==ki(_)||!_||"animationName"===t&&_._keyframe||function(e){return"object"===ki(e)&&e&&("_skip_check_"in e||LO in e)}(_)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;mO[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(m=null==_?void 0:_.value)&&void 0!==m?m:_,"object"===ki(_)&&null!=_&&_[LO]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(g||h)&&y?a.startsWith("@")?r=!0:a=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Ca(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!g||y||"&"!==a&&""!==a||(a="",s=!0),p=(u=Wa(e(_,f,{root:s,injectHash:r,parentSelectors:[].concat(Ca(b),[a])}),2))[0],d=u[1],c=xa(xa({},c),d),l+="".concat(a).concat(p)})))})),g?v&&function(){var e,t,n,r,o,i;return void 0===rO&&(e="@layer ".concat(tO," { .").concat(tO,' { content: "').concat(nO,'"!important; } }'),t=function(e){e.className=tO},rO=!!Ra()&&(Ba(e,tO),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(nO),null===(r=o.parentNode)||void 0===r||r.removeChild(o),Ua(tO),i)),rO}()&&(d=(p=v.split(","))[p.length-1].trim(),l="@layer ".concat(d," {").concat(l,"}"),p.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},UO=function(){function e(t,n){Oi(this,e),Di(this,"name",void 0),Di(this,"style",void 0),Di(this,"_keyframe",!0),this.name=t,this.style=n}return Ii(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),Is(["borderTop","borderBottom"]),Is(["borderTop"]),Is(["borderBottom"]),Is(["borderLeft","borderRight"]),Is(["borderLeft"]),Is(["borderRight"]),BO=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],HO=function(e){return gv.memo((function(t){var n,r=t.children,o=t.prefix,i=t.speedy,a=t.getStyleManager,s=t.container,l=t.nonce,c=t.insertionPoint,u=t.stylisPlugins,p=t.linters,d=Si(t,BO),f=gv.useContext(e),m=null!=o?o:f.sheet.key,g=null!=s?s:f.sheet.container,h=null!=i?i:f.sheet.isSpeedy,b=gv.useMemo((function(){var e,t=NS({speedy:null!=h&&h,key:m,container:g,nonce:l,insertionPoint:c,stylisPlugins:u}),n=null===(e=global)||void 0===e?void 0:e.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;return n&&(t.cache=n.add(t.cache)),t}),[m,h,g,l,c,u]);return gv.useEffect((function(){null==a||a(b)}),[b]),n=Cv.jsx(e.Provider,{value:b,children:r}),Boolean(Object.keys(d).length)||g?Cv.jsx(VE,As(As({linters:p,container:g},d),{},{children:n})):n}))},zO=function(e){var t=e.token;return{buttonDefaultHover:(0,e.css)({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}},WO=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=Wa(e,2);return[t[0],t[1].styles]})))},bJ=VO={exports:{}},function(){function e(){var n,r,o,i,a,s=[];for(n=0;n0},e.prototype.connect_=function(){XO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),JO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){XO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;QO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),eP=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),sP="undefined"!=typeof WeakMap?new WeakMap:new qO,lP=function e(t){var n,r;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");n=ZO.getInstance(),r=new aP(t,n,this),sP.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){lP.prototype[e]=function(){var t;return(t=sP.get(this))[e].apply(t,arguments)}})),cP=void 0!==KO.ResizeObserver?KO.ResizeObserver:lP,uP=new Map,pP=new cP((function(e){e.forEach((function(e){var t,n=e.target;null===(t=uP.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),dP=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Ts(e,gv.Component);var t=Ls(e);return Ii(e,[{key:"render",value:function(){return this.props.children}}]),e}(),fP=gv.createContext(null),mP=gv.forwardRef(Ks),gP="rc-observer-key",(hP=gv.forwardRef(Ys)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=gv.useRef(0),o=gv.useRef([]),i=gv.useContext(fP),a=gv.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return gv.createElement(fP.Provider,{value:a},t)},bP=function(e){return+setTimeout(e,16)},yP=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(bP=function(e){return window.requestAnimationFrame(e)},yP=function(e){return window.cancelAnimationFrame(e)}),vP=0,_P=new Map,wP=function(e,t){var n;return n=vP+=1,function t(r){if(0===r)Js(n),e();else{var o=bP((function(){t(r-1)}));_P.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n},wP.cancel=function(e){var t=_P.get(e);return Js(t),yP(t)};const m0=gv.createContext({});CP="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const g0=gv.createContext(void 0),h0={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},b0={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},h0)},y0="${label} is not a valid ${type}",v0={locale:"en",Pagination:{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"},DatePicker:b0,TimePicker:h0,Calendar:b0,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:y0,method:y0,array:y0,object:y0,number:y0,date:y0,boolean:y0,integer:y0,float:y0,regexp:y0,email:y0,url:y0,hex:y0},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let _0=Object.assign({},v0.Modal),w0=[];const C0=()=>w0.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),v0.Modal),k0=gv.createContext(void 0),x0=(e,t)=>{const n=gv.useContext(k0);return[gv.useMemo((()=>{var r;const o=t||v0[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),gv.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?v0.locale:e}),[n])]},D0=e=>{const{locale:t={},children:n}=e;gv.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return w0.push(t),_0=C0(),()=>{w0=w0.filter((e=>e!==t)),_0=C0()}}_0=Object.assign({},v0.Modal)}(t&&t.Modal);return e}),[t]);const r=gv.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return gv.createElement(k0.Provider,{value:r},n)},S0=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],E0="5.8.5";kP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},xP="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),DP="[\\s|\\(]+(".concat(xP,")[,|\\s]+(").concat(xP,")[,|\\s]+(").concat(xP,")\\s*\\)?"),SP="[\\s|\\(]+(".concat(xP,")[,|\\s]+(").concat(xP,")[,|\\s]+(").concat(xP,")[,|\\s]+(").concat(xP,")\\s*\\)?"),EP={CSS_UNIT:new RegExp(xP),rgb:new RegExp("rgb"+DP),rgba:new RegExp("rgba"+SP),hsl:new RegExp("hsl"+DP),hsla:new RegExp("hsla"+SP),hsv:new RegExp("hsv"+DP),hsva:new RegExp("hsva"+SP),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},OP=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=bl(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ll(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=fl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=fl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=pl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=pl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ml(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[ul(Math.round(e).toString(16)),ul(Math.round(t).toString(16)),ul(Math.round(n).toString(16)),ul((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*al(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*al(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+ml(this.r,this.g,this.b,!1),t=0,n=Object.entries(kP);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=sl(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=sl(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=sl(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=sl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,i=[this],a=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},P0={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"},I0=Object.assign(Object.assign({},P0),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),N0=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},A0=(e,t)=>new OP(e).setAlpha(t).toRgbString(),R0=(e,t)=>new OP(e).darken(t).toHexString(),T0=e=>{const t=xl(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]}},$0=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:A0(r,.88),colorTextSecondary:A0(r,.65),colorTextTertiary:A0(r,.45),colorTextQuaternary:A0(r,.25),colorFill:A0(r,.15),colorFillSecondary:A0(r,.06),colorFillTertiary:A0(r,.04),colorFillQuaternary:A0(r,.02),colorBgLayout:R0(n,4),colorBgContainer:R0(n,0),colorBgElevated:R0(n,0),colorBgSpotlight:A0(r,.85),colorBorder:R0(n,15),colorBorderSecondary:R0(n,6)}},j0=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},F0=Va(Sl),L0={token:I0,hashed:!0},M0=OZ.createContext(L0);BP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const r=n.getDerivativeToken(e),{override:o}=t,i=HP(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Pl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=HP(n,["theme"]);let i=o;r&&(i=U0(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a},B0="anticon",H0=gv.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:B0}),z0=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),p=2*i-c,d=u,f=2*i-s,m=l,g=2*i-0,h=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${p} ${d} L ${f} ${m} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},W0={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},V0=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),G0=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),q0=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},X0=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),K0=e=>({"&:focus-visible":Object.assign({},X0(e))}),Y0="undefined"!=typeof CSSINJS_STATISTIC;let Q0=!0;const J0={},Z0=(e,t)=>{const[n,r]=Il();return Ps({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},e1=`-ant-${Date.now()}-${Math.random()}`,t1=gv.createContext(!1),n1=e=>{let{children:t,disabled:n}=e;const r=gv.useContext(t1);return gv.createElement(t1.Provider,{value:null!=n?n:r},t)},r1=t1,o1=gv.createContext(void 0),i1=e=>{let{children:t,size:n}=e;const r=gv.useContext(o1);return gv.createElement(o1.Provider,{value:n||r},t)},a1=o1;zP=["children"],WP=gv.createContext({}),VP=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Ts(e,gv.Component);var t=Ls(e);return Ii(e,[{key:"render",value:function(){return this.props.children}}]),e}(),GP="none",qP="appear",XP="enter",KP="leave",YP="none",QP="prepare",JP="start",ZP="active",eI="end",tI="prepared",yJ=Ra(),vJ="undefined"!=typeof window?window:{},_J={animationend:Ul("Animation","AnimationEnd"),transitionend:Ul("Transition","TransitionEnd")},yJ&&("AnimationEvent"in vJ||delete _J.animationend.animation,"TransitionEvent"in vJ||delete _J.transitionend.transition),nI=_J,rI={},Ra()&&(oI=document.createElement("div"),rI=oI.style),iI={},aI=Bl("animationend"),sI=Bl("transitionend"),lI=!(!aI||!sI),cI=aI||"animationend",uI=sI||"transitionend",pI=Ra()?gv.useLayoutEffect:gv.useEffect,dI=[QP,JP,ZP,eI],fI=[QP,tI];const s1=(kJ=wJ=lI,"object"===ki(wJ)&&(kJ=wJ.transitionSupport),(CJ=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,p=void 0===u||u,d=e.forceRender,f=e.children,m=e.motionName,g=e.leavedClassName,h=e.eventProps,b=function(e,t){return!(!e.motionName||!kJ||!1===t)}(e,gv.useContext(WP).motion),y=gv.useRef(),v=gv.useRef(),_=function(e,t,n,r){function o(){return n()}function i(){$(GP,!0),L(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=B.current,T===qP&&t?n=null==S?void 0:S(r,e):T===XP&&t?n=null==E?void 0:E(r,e):T===KP&&t&&(n=null==O?void 0:O(r,e)),T!==GP&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,p=r.motionAppear,d=void 0===p||p,f=r.motionLeave,m=void 0===f||f,g=r.motionDeadline,h=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,_=r.onAppearStart,w=r.onEnterStart,C=r.onLeaveStart,k=r.onAppearActive,x=r.onEnterActive,D=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,O=r.onLeaveEnd,P=r.onVisibleChanged,I=Wa(Al(),2),N=I[0],A=I[1],R=Wa(Al(GP),2),T=R[0],$=R[1],j=Wa(Al(null),2),F=j[0],L=j[1],M=gv.useRef(!1),U=gv.useRef(null),B=gv.useRef(!1),H=Wa(function(e){function t(e){e&&(e.removeEventListener(uI,n),e.removeEventListener(cI,n))}var n,r=gv.useRef(),o=gv.useRef(e);return o.current=e,n=gv.useCallback((function(e){o.current(e)}),[]),gv.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(uI,n),e.addEventListener(cI,n),r.current=e)},t]}(a),1)[0],z=function(e){var t,n,r;switch(e){case qP:return Di(t={},QP,b),Di(t,JP,_),Di(t,ZP,k),t;case XP:return Di(n={},QP,y),Di(n,JP,w),Di(n,ZP,x),n;case KP:return Di(r={},QP,v),Di(r,JP,C),Di(r,ZP,D),r;default:return{}}},W=gv.useMemo((function(){return z(T)}),[T]),V=function(e,t,n){var r=Wa(Al(YP),2),o=r[0],i=r[1],a=function(){function e(){wP.cancel(t.current)}var t=gv.useRef(null);return gv.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=wP((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=Wa(a,2),l=s[0],c=s[1],u=t?fI:dI;return pI((function(){var e,t,r;o!==YP&&o!==eI&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),gv.useEffect((function(){return function(){c()}}),[]),[function(){i(QP,!0)},o]}(T,!e,(function(e){var t,n;return e===QP?!!(t=W[QP])&&t(o()):(X in W&&L((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===ZP&&(H(o()),g>0&&(clearTimeout(U.current),U.current=setTimeout((function(){a({deadline:!0})}),g))),X===tI&&i(),!0)})),G=Wa(V,2),q=G[0],X=G[1],K=zl(X);return B.current=K,pI((function(){var n,r,o;A(t),n=M.current,M.current=!0,!n&&t&&d&&(r=qP),n&&t&&u&&(r=XP),(n&&!t&&m||!n&&h&&!t&&m)&&(r=KP),o=z(r),r&&(e||o[QP])?($(r),q()):$(GP)}),[t]),gv.useEffect((function(){(T===qP&&!d||T===XP&&!u||T===KP&&!m)&&$(GP)}),[d,u,m]),gv.useEffect((function(){return function(){M.current=!1,clearTimeout(U.current)}}),[]),s=gv.useRef(!1),gv.useEffect((function(){N&&(s.current=!0),void 0!==N&&T===GP&&((s.current||N)&&(null==P||P(N)),s.current=!0)}),[N,T]),l=F,W[QP]&&X===JP&&(l=xa({transition:"none"},l)),[T,X,l,null!=N?N:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:Vs(v.current)}catch(LJ){return null}}),e),w=Wa(_,4),C=w[0],k=w[1],x=w[2],D=w[3],S=gv.useRef(D);return D&&(S.current=!0),n=gv.useCallback((function(e){y.current=e,Us(t,e)}),[t]),o=xa(xa({},h),{},{visible:c}),f?C===GP?r=D?f(xa({},o),n):!p&&S.current&&g?f(xa(xa({},o),{},{className:g}),n):d||!p&&!g?f(xa(xa({},o),{},{style:{display:"none"}}),n):null:(k===QP?a="prepare":zl(k)?a="active":k===JP&&(a="start"),s=Hl(m,"".concat(C,"-").concat(a)),r=f(xa(xa({},o),{},{className:f0(Hl(m,C),(i={},Di(i,s,s&&a),Di(i,m,"string"==typeof m),i)),style:x}),n)):r=null,gv.isValidElement(r)&&zs(r)&&(r.ref||(r=gv.cloneElement(r,{ref:n}))),gv.createElement(VP,{ref:v},r)}))).displayName="CSSMotion",CJ);mI="add",gI="keep",hI="remove",bI="removed",yI=["component","children","onVisibleChanged","onAllRemoved"],vI=["status"],_I=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const l1=function(e,t){var n=arguments.length>1&&void 0!==t?t:s1,r=function(){function e(){var n,r,o,i;for(Oi(this,e),r=arguments.length,o=new Array(r),i=0;i1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=Vl(arguments.length>0&&void 0!==e?e:[]),l=Vl(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==hI}))).forEach((function(t){t.key===e&&(t.status=gI)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==bI||e.status!==hI}))}}}]),e}();return Di(r,"defaultProps",{component:"div"}),r}(lI);wI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${ql()}-${e}`:ql()),getIconPrefixCls:Xl,getRootPrefixCls:()=>u1||ql(),getTheme:()=>d1}),m1=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:p,dropdownMatchSelectWidth:d,popupMatchSelectWidth:f,popupOverflow:m,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:_,statistic:w,spin:C,calendar:k,carousel:x,cascader:D,collapse:S,typography:E,checkbox:O,descriptions:P,divider:I,drawer:N,skeleton:A,steps:R,image:T,layout:$,list:j,mentions:F,modal:L,progress:M,result:U,slider:B,breadcrumb:H,menu:z,pagination:W,input:V,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:pe}=e,de=gv.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),fe=b||h.iconPrefixCls||B0,me=fe!==h.iconPrefixCls,ge=n||h.csp,he=Z0(fe,ge),be=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:L0;return Sa((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Na(e,t[n],!0)))))}(y,h.theme),ye={csp:ge,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:p,popupMatchSelectWidth:null!=f?f:d,popupOverflow:m,getPrefixCls:de,iconPrefixCls:fe,theme:be,segmented:_,statistic:w,spin:C,calendar:k,carousel:x,cascader:D,collapse:S,typography:E,checkbox:O,descriptions:P,divider:I,drawer:N,skeleton:A,steps:R,image:T,input:V,layout:$,list:j,mentions:F,modal:L,progress:M,result:U,slider:B,breadcrumb:H,menu:z,pagination:W,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:pe},ve=Object.assign({},h);Object.keys(ye).forEach((e=>{void 0!==ye[e]&&(ve[e]=ye[e])})),c1.forEach((t=>{const n=e[t];n&&(ve[t]=n)}));const _e=Sa((()=>ve),ve,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),we=gv.useMemo((()=>({prefixCls:fe,csp:ge})),[fe,ge]);let Ce=me?he(t):t;const ke=gv.useMemo((()=>{var e,t,n,r;return ol((null===(e=v0.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=_e.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=_e.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[_e,null==a?void 0:a.validateMessages]);Object.keys(ke).length>0&&(Ce=gv.createElement(g0.Provider,{value:ke},t)),s&&(Ce=gv.createElement(D0,{locale:s,_ANT_MARK__:"internalMark"},Ce)),(fe||ge)&&(Ce=gv.createElement(m0.Provider,{value:we},Ce)),l&&(Ce=gv.createElement(i1,{size:l},Ce)),Ce=gv.createElement(Gl,null,Ce);const xe=gv.useMemo((()=>{const e=be||{},{algorithm:t,token:n,components:r}=e,o=wI(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?Va(t):F0,a={};return Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Va(r.algorithm)),delete r.algorithm),a[t]=r})),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},I0),n),components:a})}),[be]);return y&&(Ce=gv.createElement(M0.Provider,{value:xe},Ce)),void 0!==v&&(Ce=gv.createElement(n1,{disabled:v},Ce)),gv.createElement(H0.Provider,{value:_e},Ce)},g1=e=>{const t=gv.useContext(H0),n=gv.useContext(k0);return gv.createElement(m1,Object.assign({parentContext:t,legacyLocale:n},e))};g1.ConfigContext=H0,g1.SizeContext=a1,g1.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(u1=t),void 0!==n&&(p1=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new OP(e),i=xl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new OP(t.primaryColor),i=xl(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new OP(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Ra()&&Ba(n,`${e1}-dynamic-theme`)}(ql(),r):d1=r)},g1.useConfig=function(){return{componentDisabled:gv.useContext(r1),componentSize:gv.useContext(a1)}},Object.defineProperty(g1,"SizeContext",{get:()=>a1});const h1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};CI=1/0,kI="[object Symbol]",xI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DI=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,EI="["+(SI="\\ud800-\\udfff")+"]",OI="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",NI="[\\u2700-\\u27bf]",LI="(?:"+"[a-z\\xdf-\\xf6\\xf8-\\xff]"+"|"+(AI="[^"+SI+"\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"+(II="\\d+")+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]")+")",MI="(?:"+(FI="[A-Z\\xc0-\\xd6\\xd8-\\xde]")+"|"+AI+")",UI="(?:"+"['โ€™]"+"(?:d|ll|m|re|s|t|ve))?",BI="(?:['โ€™](?:D|LL|M|RE|S|T|VE))?",zI="[\\ufe0e\\ufe0f]?"+(HI="(?:"+(PI="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]")+"|"+(RI="\\ud83c[\\udffb-\\udfff]")+")?")+"(?:\\u200d(?:"+[TI="[^"+SI+"]",$I="(?:\\ud83c[\\udde6-\\uddff]){2}",jI="[\\ud800-\\udbff][\\udc00-\\udfff]"].join("|")+")[\\ufe0e\\ufe0f]?"+HI+")*",WI="(?:"+[NI,$I,jI].join("|")+")"+zI,VI="(?:"+[TI+PI+"?",PI,$I,jI,EI].join("|")+")",GI=RegExp("['โ€™]","g"),qI=RegExp(PI,"g"),XI=RegExp(RI+"(?="+RI+")|"+VI+zI,"g"),KI=RegExp([FI+"?[a-z\\xdf-\\xf6\\xf8-\\xff]+"+UI+"(?="+[OI,FI,"$"].join("|")+")",MI+"+"+BI+"(?="+[OI,FI+LI,"$"].join("|")+")",FI+"?"+LI+"+"+UI,FI+"+"+BI,II,WI].join("|"),"g"),YI=RegExp("[\\u200d"+SI+"\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),QI=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JI={"ร€":"A","ร":"A","ร‚":"A","รƒ":"A","ร„":"A","ร…":"A","ร ":"a","รก":"a","รข":"a","รฃ":"a","รค":"a","รฅ":"a","ร‡":"C","รง":"c","ร":"D","รฐ":"d","รˆ":"E","ร‰":"E","รŠ":"E","ร‹":"E","รจ":"e","รฉ":"e","รช":"e","รซ":"e","รŒ":"I","ร":"I","รŽ":"I","ร":"I","รฌ":"i","รญ":"i","รฎ":"i","รฏ":"i","ร‘":"N","รฑ":"n","ร’":"O","ร“":"O","ร”":"O","ร•":"O","ร–":"O","ร˜":"O","รฒ":"o","รณ":"o","รด":"o","รต":"o","รถ":"o","รธ":"o","ร™":"U","รš":"U","ร›":"U","รœ":"U","รน":"u","รบ":"u","รป":"u","รผ":"u","ร":"Y","รฝ":"y","รฟ":"y","ร†":"Ae","รฆ":"ae","รž":"Th","รพ":"th","รŸ":"ss","ฤ€":"A","ฤ‚":"A","ฤ„":"A","ฤ":"a","ฤƒ":"a","ฤ…":"a","ฤ†":"C","ฤˆ":"C","ฤŠ":"C","ฤŒ":"C","ฤ‡":"c","ฤ‰":"c","ฤ‹":"c","ฤ":"c","ฤŽ":"D","ฤ":"D","ฤ":"d","ฤ‘":"d","ฤ’":"E","ฤ”":"E","ฤ–":"E","ฤ˜":"E","ฤš":"E","ฤ“":"e","ฤ•":"e","ฤ—":"e","ฤ™":"e","ฤ›":"e","ฤœ":"G","ฤž":"G","ฤ ":"G","ฤข":"G","ฤ":"g","ฤŸ":"g","ฤก":"g","ฤฃ":"g","ฤค":"H","ฤฆ":"H","ฤฅ":"h","ฤง":"h","ฤจ":"I","ฤช":"I","ฤฌ":"I","ฤฎ":"I","ฤฐ":"I","ฤฉ":"i","ฤซ":"i","ฤญ":"i","ฤฏ":"i","ฤฑ":"i","ฤด":"J","ฤต":"j","ฤถ":"K","ฤท":"k","ฤธ":"k","ฤน":"L","ฤป":"L","ฤฝ":"L","ฤฟ":"L","ล":"L","ฤบ":"l","ฤผ":"l","ฤพ":"l","ล€":"l","ล‚":"l","ลƒ":"N","ล…":"N","ล‡":"N","ลŠ":"N","ล„":"n","ล†":"n","ลˆ":"n","ล‹":"n","ลŒ":"O","ลŽ":"O","ล":"O","ล":"o","ล":"o","ล‘":"o","ล”":"R","ล–":"R","ล˜":"R","ล•":"r","ล—":"r","ล™":"r","ลš":"S","ลœ":"S","ลž":"S","ล ":"S","ล›":"s","ล":"s","ลŸ":"s","ลก":"s","ลข":"T","ลค":"T","ลฆ":"T","ลฃ":"t","ลฅ":"t","ลง":"t","ลจ":"U","ลช":"U","ลฌ":"U","ลฎ":"U","ลฐ":"U","ลฒ":"U","ลฉ":"u","ลซ":"u","ลญ":"u","ลฏ":"u","ลฑ":"u","ลณ":"u","ลด":"W","ลต":"w","ลถ":"Y","ลท":"y","ลธ":"Y","ลน":"Z","ลป":"Z","ลฝ":"Z","ลบ":"z","ลผ":"z","ลพ":"z","ฤฒ":"IJ","ฤณ":"ij","ล’":"Oe","ล“":"oe","ล‰":"'n","ลฟ":"ss"},ZI="object"==typeof self&&self&&self.Object===Object&&self,eN="object"==typeof lZ&&lZ&&lZ.Object===Object&&lZ||ZI||Function("return this")(),xJ=JI,tN=function(e){return null==xJ?void 0:xJ[e]},nN=Object.prototype.toString,iN=(oN=(rN=eN.Symbol)?rN.prototype:void 0)?oN.toString:void 0,DJ=function(e,t,n){return t=t.toLowerCase(),e+(n?aN(Yl(t).toLowerCase()):t)},aN=function(e){var t,n,r,o,i,a;return n=(t=Kl(e=Yl(e))?function(e){return Kl(e)?function(e){return e.match(XI)||[]}(e):function(e){return e.split("")}(e)}(e):void 0)?t[0]:e.charAt(0),r=t?(o=t,1,a=o.length,i=void 0===i?a:i,function(e,t,n){var r,o=-1,i=e.length;for(t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),gv.useEffect((function(){var t=Jl(e.current);Ba(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},lN=["icon","className","onClick","style","primaryColor","secondaryColor"],cN={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(uN=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Si(e,lN),p=gv.useRef(),d=cN;return l&&(d={primaryColor:l,secondaryColor:c||nc(l)}),sN(p),n=Zl(o),r="icon should be icon definiton, but got ".concat(o),Ia(n,"[@ant-design/icons] ".concat(r)),Zl(o)?((t=o)&&"function"==typeof t.icon&&(t=xa(xa({},t),{},{icon:t.icon(d.primaryColor,d.secondaryColor)})),tc(t.icon,"svg-".concat(t.name),xa(xa({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:p}))):null}).displayName="IconReact",uN.getTwoToneColors=function(){return xa({},cN)},uN.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;cN.primaryColor=t,cN.secondaryColor=n||nc(t),cN.calculated=!!n};const y1=uN;pN=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],oc(UP.primary),(dN=gv.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,p=e.tabIndex,d=e.onClick,f=e.twoToneColor,m=Si(e,pN),g=gv.useContext(m0),h=g.prefixCls,b=void 0===h?"anticon":h,y=f0(g.rootClassName,b,(Di(n={},"".concat(b,"-").concat(l.name),!!l.name),Di(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=p;return void 0===v&&d&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=Wa(rc(f),2))[0],a=o[1],gv.createElement("span",fa({role:"img","aria-label":l.name},m,{ref:t,tabIndex:v,onClick:d,className:y}),gv.createElement(y1,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",dN.getTwoToneColor=function(){var e=y1.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},dN.setTwoToneColor=oc;const v1=dN,_1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:h1}))})),w1={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"},C1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:w1}))})),k1={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"},x1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:k1}))})),D1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},S1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:D1}))})),E1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},O1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:E1}))}));fN="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),mN="aria-",gN="data-";const{isValidElement:P1}=PZ,I1=e=>"object"==typeof e&&null!=e&&1===e.nodeType,N1=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,A1=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,T1=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},$1=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p="function"==typeof c?c:e=>e!==c;if(!I1(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,f=[];let m=e;for(;I1(m)&&p(m);){if(m=T1(m),m===d){f.push(m);break}null!=m&&m===document.body&&A1(m)&&!A1(document.documentElement)||null!=m&&A1(m,u)&&f.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:_,top:w,right:C,bottom:k,left:x}=e.getBoundingClientRect();let D="start"===s||"nearest"===s?w:"end"===s?k:w+v/2,S="center"===l?x+_/2:"end"===l?C:x;const E=[];for(let O=0;O=0&&x>=0&&k<=h&&C<=g&&w>=r&&k<=i&&x>=c&&C<=o)return E;const u=getComputedStyle(e),p=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),P=parseInt(u.borderRightWidth,10),I=parseInt(u.borderBottomWidth,10);let N=0,A=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-p-P:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-I:0,$="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,j="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(d===e)N="start"===s?D:"end"===s?D-h:"nearest"===s?R1(y,y+h,h,m,I,y+D,y+D+v,v):D-h/2,A="start"===l?S:"center"===l?S-g/2:"end"===l?S-g:R1(b,b+g,g,p,P,b+S,b+S+_,_),N=Math.max(0,N+y),A=Math.max(0,A+b);else{N="start"===s?D-r-m:"end"===s?D-i+I+T:"nearest"===s?R1(r,i,t,m,I+T,D,D+v,v):D-(r+t/2)+T/2,A="start"===l?S-c-p:"center"===l?S-(c+n/2)+R/2:"end"===l?S-o+P+R:R1(c,o,n,p,P+R,S,S+_,_);const{scrollLeft:a,scrollTop:u}=e;N=Math.max(0,Math.min(u+N/j,e.scrollHeight-t/j+T)),A=Math.max(0,Math.min(a+A/$,e.scrollWidth-n/$+R)),D+=u-N,S+=a-A}E.push({el:e,top:N,left:A})}return E},j1=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};hN={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=hN.F1&&t<=hN.F12)return!1;switch(t){case hN.ALT:case hN.CAPS_LOCK:case hN.CONTEXT_MENU:case hN.CTRL:case hN.DOWN:case hN.END:case hN.ESC:case hN.HOME:case hN.INSERT:case hN.LEFT:case hN.MAC_FF_META:case hN.META:case hN.NUMLOCK:case hN.NUM_CENTER:case hN.PAGE_DOWN:case hN.PAGE_UP:case hN.PAUSE:case hN.PRINT_SCREEN:case hN.RIGHT:case hN.SHIFT:case hN.UP:case hN.WIN_KEY:case hN.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=hN.ZERO&&e<=hN.NINE)return!0;if(e>=hN.NUM_ZERO&&e<=hN.NUM_MULTIPLY)return!0;if(e>=hN.A&&e<=hN.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case hN.SPACE:case hN.QUESTION_MARK:case hN.NUM_PLUS:case hN.NUM_MINUS:case hN.NUM_PERIOD:case hN.NUM_DIVISION:case hN.SEMICOLON:case hN.DASH:case hN.EQUALS:case hN.COMMA:case hN.PERIOD:case hN.SLASH:case hN.APOSTROPHE:case hN.SINGLE_QUOTE:case hN.OPEN_SQUARE_BRACKET:case hN.BACKSLASH:case hN.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bN=gv.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,p=e.closeIcon,d=void 0===p?"x":p,f=e.props,m=e.onClick,g=e.onNoticeClose,h=e.times,b=Wa(gv.useState(!1),2),y=b[0],v=b[1],_=function(){g(l)};return gv.useEffect((function(){if(!y&&s>0){var e=setTimeout((function(){_()}),1e3*s);return function(){clearTimeout(e)}}}),[s,y,h]),n="".concat(r,"-notice"),gv.createElement("div",fa({},f,{ref:t,className:f0(n,i,Di({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},onClick:m}),gv.createElement("div",{className:"".concat(n,"-content")},c),u&&gv.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==hN.ENTER||_()},onClick:function(e){e.preventDefault(),e.stopPropagation(),_()}},d))})),yN=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,p=e.motion,d=e.maxCount,f=e.className,m=e.style,g=e.onAllRemoved,h=Wa(gv.useState([]),2),b=h[0],y=h[1],v=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),y((function(t){return t.filter((function(t){return t.key!==e}))}))};return gv.useImperativeHandle(t,(function(){return{open:function(e){y((function(t){var n,r=Ca(t),o=r.findIndex((function(t){return t.key===e.key})),i=xa({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),d>0&&r.length>d&&(r=r.slice(-d)),r}))},close:function(e){v(e)},destroy:function(){y([])}}})),n=Wa(gv.useState({}),2),r=n[0],o=n[1],gv.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[b]),i=function(e){o((function(t){var n=xa({},t);return(n[e]||[]).length||delete n[e],n}))},a=gv.useRef(!1),gv.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==g||g(),a.current=!1)}),[r]),u?(s=Object.keys(r),Px.createPortal(gv.createElement(gv.Fragment,null,s.map((function(e){var t=r[e].map((function(e){return{config:e,key:e.key}})),n="function"==typeof p?p(e):p;return gv.createElement(l1,fa({key:e,className:f0(c,"".concat(c,"-").concat(e),null==f?void 0:f(e)),style:null==m?void 0:m(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){i(e)}}),(function(e,t){var n=e.config,r=e.style,o=n.key,i=n.times,a=n.style;return gv.createElement(bN,fa({},n,{ref:t,prefixCls:c,className:f0(e.className,n.className),style:xa(xa({},r),a),times:i,key:o,eventKey:o,onNoticeClose:v}))}))}))),u)):null})),vN=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],_N=function(){return document.body},wN=0;const F1={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"},L1=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:F1}))})),M1=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,y=`${t}-notice`,v=new UO("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),_=new UO("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},V0(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:_,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},U1=Fl("Message",(e=>{const t=$l(e,{height:150});return[M1(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),{clientOnly:!0});CN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:r,children:o}=e;return gv.createElement("div",{className:f0(`${t}-custom-content`,`${t}-${n}`)},r||B1[n],gv.createElement("span",null,o))};kN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=z1,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:p,message:d}=gv.useContext(H0),f=r||u("message"),[,m]=U1(f),g=gv.createElement("span",{className:`${f}-close-x`},gv.createElement(x1,{className:`${f}-close-icon`})),[h,b]=cc({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>f0(m,{[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==o?void 0:o())||(null==p?void 0:p())||document.body,maxCount:i,onAllRemoved:c});return gv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},h),{prefixCls:f,hashId:m,message:d}))),b}));let V1=0;DN=(xN=xa({},NZ)).version,SN=xN.render,EN=xN.unmountComponentAtNode;try{Number((DN||"").split(".")[0])>=18&&(ON=xN.createRoot)}catch(LJ){}PN="__rc_react_root__";const G1=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},q1=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},X1=Fl("Wave",(e=>[q1(e)])),K1="ant-wave-target",Y1=e=>{function t(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return kc(t)?t:kc(n)?n:kc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;p(t?r.offsetLeft:xc(-parseFloat(n))),f(t?r.offsetTop:xc(-parseFloat(o))),g(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>xc(parseFloat(e)))))}const{className:n,target:r,component:o}=e,i=gv.useRef(null),[a,s]=gv.useState(null),[l,c]=gv.useState([]),[u,p]=gv.useState(0),[d,f]=gv.useState(0),[m,g]=gv.useState(0),[h,b]=gv.useState(0),[y,v]=gv.useState(!1),_={left:u,top:d,width:m,height:h,borderRadius:l.map((e=>`${e}px`)).join(" ")};if(a&&(_["--wave-color"]=a),gv.useEffect((()=>{if(r){const e=wP((()=>{t(),v(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{wP.cancel(e),null==n||n.disconnect()}}}),[]),!y)return null;const w=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(K1));return gv.createElement(s1,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;wc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return gv.createElement("div",{ref:i,className:f0(n,{"wave-quick":w},t),style:_})}))},Q1=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),bc(gv.createElement(Y1,Object.assign({},t,{target:e})),o)},J1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=gv.useContext(H0),i=gv.useRef(null),a=o("wave"),[,s]=X1(a),l=function(e,t,n){const{wave:r}=gv.useContext(H0),[,o,i]=Il(),a=Nl((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${K1}`)||s,{showEffect:c}=r||{};(c||Q1)(l,{className:t,token:o,component:n,event:a,hashId:i})})),s=gv.useRef();return e=>{wP.cancel(s.current),s.current=wP((()=>{a(e)}))}}(i,f0(a,s),r);return OZ.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!G1(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),OZ.isValidElement(t)?lc(t,{ref:zs(t)?Bs(t.ref,i):i}):null!=t?t:null},Z1=e=>{const t=OZ.useContext(a1);return OZ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},e2=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},t2=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},n2=Fl("Space",(e=>[t2(e),e2(e)]),(()=>({})),{resetStyle:!1});IN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=gv.useContext(r2),r=gv.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return f0(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},i2=e=>{let{children:t}=e;return gv.createElement(r2.Provider,{value:null},t)},a2=e=>{var{children:t}=e,n=IN(e,["children"]);return gv.createElement(r2.Provider,{value:n},t)},s2=gv.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=f0(`${i}-icon`,n);return OZ.createElement("span",{ref:t,className:a,style:r},o)})),l2=gv.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=f0(`${n}-loading-icon`,r);return OZ.createElement(s2,{prefixCls:n,className:a,style:o,ref:t},OZ.createElement(L1,{className:i}))})),c2=()=>({width:0,opacity:0,transform:"scale(0)"}),u2=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),p2=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?OZ.createElement(l2,{prefixCls:t,className:o,style:i}):OZ.createElement(s1,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:c2,onAppearActive:u2,onEnterStart:c2,onEnterActive:u2,onLeaveStart:u2,onLeaveActive:c2},((e,n)=>{let{className:r,style:a}=e;return OZ.createElement(l2,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))};NN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),h2=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},g2(`${t}-primary`,o),g2(`${t}-danger`,i)]}},b2=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},K0(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},y2=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),v2=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_2=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),w2=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),C2=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},y2(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),k2=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},w2(e))}),x2=e=>Object.assign({},k2(e)),D2=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),S2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x2(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),y2(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),C2(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},y2(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),C2(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),k2(e))}),E2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x2(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),y2(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),C2(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},y2(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),C2(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),k2(e))}),O2=e=>Object.assign(Object.assign({},S2(e)),{borderStyle:"dashed"}),P2=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},y2(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),D2(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},y2(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),D2(e))}),I2=e=>Object.assign(Object.assign(Object.assign({},y2(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),D2(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},D2(e)),y2(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),N2=e=>{const{componentCls:t}=e;return{[`${t}-default`]:S2(e),[`${t}-primary`]:E2(e),[`${t}-dashed`]:O2(e),[`${t}-link`]:P2(e),[`${t}-text`]:I2(e),[`${t}-ghost`]:C2(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},A2=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c-s}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:v2(e)},{[`${r}${r}-round${n}`]:_2(e)}]},R2=e=>A2(e),T2=e=>{const t=$l(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return A2(t,`${e.componentCls}-sm`)},$2=e=>{const t=$l(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return A2(t,`${e.componentCls}-lg`)},j2=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},F2=Fl("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=$l(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[b2(r),T2(r),R2(r),$2(r),j2(r),N2(r),h2(r),Pc(e),Nc(e)]}));AN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:p,className:d,rootClassName:f,children:m,icon:g,ghost:h=!1,block:b=!1,htmlType:y="button",classNames:v,style:_={}}=e,w=AN(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:C,autoInsertSpaceInButton:k,direction:x,button:D}=gv.useContext(H0),S=C("btn",i),[E,O]=F2(S),P=gv.useContext(r1),I=null!=p?p:P,N=gv.useContext(d2),A=gv.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[R,T]=gv.useState(A.loading),[$,j]=gv.useState(!1),F=Bs(t,gv.createRef()),L=1===gv.Children.count(m)&&!g&&!Sc(a);gv.useEffect((()=>{let e=null;return A.delay>0?e=setTimeout((()=>{e=null,T(!0)}),A.delay):T(A.loading),function(){e&&(clearTimeout(e),e=null)}}),[A]),gv.useEffect((()=>{F&&F.current&&!1!==k&&(L&&m2(F.current.textContent)?$||j(!0):$&&j(!1))}),[F]);const M=t=>{const{onClick:n}=e;R||I?t.preventDefault():null==n||n(t)},U=!1!==k,{compactSize:B,compactItemClassnames:H}=o2(S,x),z=Z1((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:B)&&void 0!==t?t:N)&&void 0!==n?n:e})),W=z&&{large:"lg",small:"sm",middle:void 0}[z]||"",V=R?"loading":g,G=Qs(w,["navigate"]),q=f0(S,O,{[`${S}-${l}`]:"default"!==l&&l,[`${S}-${a}`]:a,[`${S}-${W}`]:W,[`${S}-icon-only`]:!m&&0!==m&&!!V,[`${S}-background-ghost`]:h&&!Sc(a),[`${S}-loading`]:R,[`${S}-two-chinese-chars`]:$&&U&&!R,[`${S}-block`]:b,[`${S}-dangerous`]:!!s,[`${S}-rtl`]:"rtl"===x},H,d,f,null==D?void 0:D.className),X=Object.assign(Object.assign({},null==D?void 0:D.style),_),K=f0(null==v?void 0:v.icon,null===(n=null==D?void 0:D.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==D?void 0:D.styles)||void 0===r?void 0:r.icon)||{}),Q=g&&!R?OZ.createElement(s2,{prefixCls:S,className:K,style:Y},g):OZ.createElement(p2,{existIcon:!!g,prefixCls:S,loading:!!R}),J=m||0===m?function(e,t){let n=!1;const r=[];return OZ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),OZ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Dc(e.type)&&m2(e.props.children)?lc(e,{children:e.props.children.split("").join(n)}):Dc(e)?m2(e)?OZ.createElement("span",null,e.split("").join(n)):OZ.createElement("span",null,e):sc(e)?OZ.createElement("span",null,e):e}(e,t)))}(m,L&&U):null;if(void 0!==G.href)return E(OZ.createElement("a",Object.assign({},G,{className:f0(q,{[`${S}-disabled`]:I}),style:X,onClick:M,ref:F}),Q,J));let Z=OZ.createElement("button",Object.assign({},w,{type:y,className:q,style:X,onClick:M,disabled:I,ref:F}),Q,J);return Sc(a)||(Z=OZ.createElement(J1,{component:"Button",disabled:!!R},Z)),E(Z)},M2=gv.forwardRef(L2);M2.Group=e=>{const{getPrefixCls:t,direction:n}=gv.useContext(H0),{prefixCls:r,size:o,className:i}=e,a=NN(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Il();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=f0(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return gv.createElement(d2.Provider,{value:o},gv.createElement("div",Object.assign({},a,{className:u})))},M2.__ANT_BUTTON=!0;const U2=M2,B2=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,p=gv.useRef(!1),d=gv.useRef(null),[f,m]=Al(!1),g=function(){null==i||i.apply(void 0,arguments)};return gv.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),gv.createElement(U2,Object.assign({},Ac(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!Rc(t))return p.current=!1,void g(e)}else if(u.length)t=u(i),p.current=!1;else if(t=u(),!t)return void g();(e=>{Rc(e)&&(m(!0),e.then((function(){m(!1,!0),g.apply(void 0,arguments),p.current=!1}),(e=>{if(m(!1,!0),p.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},o,{ref:d}),n)},H2=()=>({height:0,opacity:0}),z2=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},W2=e=>({height:e?e.offsetHeight:0}),V2=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,G2=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:H2,onEnterStart:H2,onAppearActive:z2,onEnterActive:z2,onLeaveStart:W2,onLeaveActive:H2,onAppearEnd:V2,onEnterEnd:V2,onLeaveEnd:V2,motionDeadline:500}},q2=(e,t,n)=>void 0!==n?n:`${e}-${t}`;RN=gv.createContext(null),TN=[],jN="rc-util-locker-".concat(Date.now()),FN=0,LN=function(e){return!1!==e&&(Ra()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},MN=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k=e.open,x=e.autoLock,D=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Wa(gv.useState(k),2),a=i[1],s=i[0]||k,gv.useEffect((function(){(r||k)&&a(k)}),[k,r]),c=(l=Wa(gv.useState((function(){return LN(D)})),2))[0],u=l[1],gv.useEffect((function(){var e=LN(D);u(null!=e?e:null)})),p=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Wa(gv.useState((function(){return Ra()?document.createElement("div"):null})),1)[0],o=gv.useRef(!1),i=gv.useContext(RN),a=Wa(gv.useState(TN),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(Ca(t))}))});return iO((function(){return e?i?i(t):t():n(),n}),[e]),iO((function(){s.length&&(s.forEach((function(e){return e()})),l(TN))}),[s]),[r,c]}(s&&!c),f=(d=Wa(p,2))[0],m=d[1],g=null!=c?c:f,_=x&&k&&Ra()&&(g===f||g===document.body),w=!!_,C=Wa(gv.useState((function(){return FN+=1,"".concat(jN,"_").concat(FN)})),1)[0],iO((function(){var e,t;return w?(e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Tc(t.width),height:Tc(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),C)):Ua(C),function(){Ua(C)}}),[w,C]),h=null,o&&zs(o)&&t&&(h=o.ref),b=Hs(h,t),s&&Ra()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=gv.cloneElement(o,{ref:b})),gv.createElement(RN.Provider,{value:m},y?v:Px.createPortal(v,g))):null})),UN=0;const X2=gv.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));BN={width:0,height:0,overflow:"hidden",outline:"none"},HN=OZ.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,p=e.ariaId,d=e.footer,f=e.closable,m=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,_=e.onMouseDown,w=e.onMouseUp,C=e.holderRef,k=e.visible,x=e.forceRender,D=e.width,S=e.height,E=gv.useRef(),O=gv.useRef();return OZ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}})),n={},void 0!==D&&(n.width=D),void 0!==S&&(n.height=S),d&&(r=OZ.createElement("div",{className:"".concat(s,"-footer")},d)),u&&(o=OZ.createElement("div",{className:"".concat(s,"-header")},OZ.createElement("div",{className:"".concat(s,"-title"),id:p},u))),f&&(i=OZ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},m||OZ.createElement("span",{className:"".concat(s,"-close-x")}))),a=OZ.createElement("div",{className:"".concat(s,"-content")},i,o,OZ.createElement("div",fa({className:"".concat(s,"-body"),style:b},y),h),r),OZ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?p:null,"aria-modal":"true",ref:C,style:xa(xa({},c),n),className:f0(s,l),onMouseDown:_,onMouseUp:w},OZ.createElement("div",{tabIndex:0,ref:E,style:BN,"aria-hidden":"true"}),OZ.createElement(X2,{shouldUpdate:k||x},v?v(a):a),OZ.createElement("div",{tabIndex:0,ref:O,style:BN,"aria-hidden":"true"}))})),(zN=gv.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top}).left+=Fc(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=Fc(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,p=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,m=gv.useRef(),g=Wa(gv.useState(),2),h=g[0],b=g[1],y={};return h&&(y.transformOrigin=h),gv.createElement(s1,{visible:s,onVisibleChanged:d,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:m},(function(n,s){var l=n.className;return gv.createElement(HN,fa({},e,{ref:t,title:o,ariaId:p,prefixCls:r,holderRef:s,style:xa(xa(xa({},n.style),i),y),className:f0(a,l)}))}))}))).displayName="Content",(WN=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=Wa(gv.useState(t),2),l=s[0],c=s[1];return gv.useEffect((function(){t&&c(!0)}),[t]),r||!i||l?gv.createElement(MN,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},gv.createElement(Mc,fa({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),c(!1)}}))):null}).displayName="Dialog";const K2=()=>Ra()&&window.document.documentElement;let Y2;VN="RC_FORM_INTERNAL_HOOKS",qN=gv.createContext({getFieldValue:GN=function(){Ia(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:GN,getFieldError:GN,getFieldWarning:GN,getFieldsError:GN,isFieldsTouched:GN,isFieldTouched:GN,isFieldValidating:GN,isFieldsValidating:GN,resetFields:GN,setFields:GN,setFieldValue:GN,setFieldsValue:GN,validateFields:GN,submit:GN,getInternalHooks:function(){return GN(),{dispatch:GN,initEntityValue:GN,registerField:GN,useSubscribe:GN,setInitialValues:GN,destroyForm:GN,setCallbacks:GN,registerWatch:GN,getFields:GN,setValidateMessages:GN,setPreserve:GN,getInitialValue:GN}}}),XN=gv.createContext(null),KN=/%[sdj%]/g,YN=function(){},QN=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Wc(n,r),t}(Gc(Error)),eA=function(){var e,t,n,r,o,i,a,s,l,c,u;return ZN||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,ZN=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[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"]*)?$)',"i"))},tA=/^(([^<>()\[\]\\.,;:\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,}))$/,nA=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,rA={integer:function(e){return rA.number(e)&&parseInt(e,10)===e},float:function(e){return rA.number(e)&&!rA.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(LJ){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!rA.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(tA)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(eA())},hex:function(e){return"string"==typeof e&&!!e.match(nA)}},oA=function(e,t,n,r,o){var i;e.required&&void 0===t?JN(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?rA[i](t)||r.push(Xc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Xc(o.messages.types[i],e.fullField,e.type))},iA="enum",aA={required:JN=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Kc(t,i||e.type)||r.push(Xc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Xc(o.messages.whitespace,e.fullField))},type:oA,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,p="string"==typeof t,d=Array.isArray(t);if(u?c="number":p?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),p&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Xc(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Xc(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Xc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[iA]=Array.isArray(e[iA])?e[iA]:[],-1===e[iA].indexOf(t)&&r.push(Xc(o.messages[iA],e.fullField,e[iA].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Xc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Xc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},sA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"string")&&!e.required)return n();aA.required(e,t,r,i,o,"string"),Kc(t,"string")||(aA.type(e,t,r,i,o),aA.range(e,t,r,i,o),aA.pattern(e,t,r,i,o),!0===e.whitespace&&aA.whitespace(e,t,r,i,o))}n(i)},lA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&aA.type(e,t,r,i,o)}n(i)},cA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&(aA.type(e,t,r,i,o),aA.range(e,t,r,i,o))}n(i)},uA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&aA.type(e,t,r,i,o)}n(i)},pA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),Kc(t)||aA.type(e,t,r,i,o)}n(i)},dA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&(aA.type(e,t,r,i,o),aA.range(e,t,r,i,o))}n(i)},fA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&(aA.type(e,t,r,i,o),aA.range(e,t,r,i,o))}n(i)},mA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();aA.required(e,t,r,i,o,"array"),null!=t&&(aA.type(e,t,r,i,o),aA.range(e,t,r,i,o))}n(i)},gA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&aA.type(e,t,r,i,o)}n(i)},hA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o),void 0!==t&&aA.enum(e,t,r,i,o)}n(i)},bA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"string")&&!e.required)return n();aA.required(e,t,r,i,o),Kc(t,"string")||aA.pattern(e,t,r,i,o)}n(i)},yA=function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,"date")&&!e.required)return n();aA.required(e,t,r,a,o),Kc(t,"date")||(i=t instanceof Date?t:new Date(t),aA.type(e,i,r,a,o),i&&aA.range(e,i.getTime(),r,a,o))}n(a)},vA=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;aA.required(e,t,r,i,o,a),n(i)},_A=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t,i)&&!e.required)return n();aA.required(e,t,r,a,o,i),Kc(t,i)||aA.type(e,t,r,a,o)}n(a)},wA=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Kc(t)&&!e.required)return n();aA.required(e,t,r,i,o)}n(i)},CA={string:sA,method:lA,number:cA,boolean:uA,regexp:pA,integer:dA,float:fA,array:mA,object:gA,enum:hA,pattern:bA,date:yA,url:_A,hex:_A,email:_A,required:vA,any:wA},kA=Zc(),xA=function(){function e(e){this.rules=null,this._messages=kA,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new 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]}))},t.messages=function(e){return e&&(this._messages=Jc(Zc(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===kA&&(s=Zc()),Jc(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=Hc({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:Hc({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,p;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Yc(a,n,(function(e){return r(e),e.length?i(new QN(e,qc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],p=new Promise((function(t,i){var p=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new QN(u,qc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Yc(r,n,p):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,p)}))})),p.catch((function(e){return e})),p)}(l,i,(function(t,n){function r(e,t){return Hc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,p,d,f,m;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),p=s.map(Qc(l,o)),i.first&&p.length)return c[l.field]=1,n(p);if(u){if(l.required&&!t.value)return void 0!==l.message?p=[].concat(l.message).map(Qc(l,o)):i.error&&(p=[i.error(l,Xc(i.messages.required,l.field))]),n(p);d={},l.defaultField&&Object.keys(t.value).map((function(e){d[e]=l.defaultField})),d=Hc({},d,t.rule.fields),f={},Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(m=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];p&&p.length&&t.push.apply(t,p),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(p)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(p){console,i.suppressValidatorError||setTimeout((function(){throw p}),0),a(p.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t0&&void 0!==e?e:IA;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?IA:t;e.rule.warningOnly?o.push.apply(o,Ca(r)):n.push.apply(n,Ca(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),p):[]}));return s||(r.validatePromise=l,r.dirty=!0,r.errors=IA,r.warnings=IA,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(VN).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),xa(xa({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ms(e)).length&&gv.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return el(e||t(!0),n)},r.getControlled=function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,p=void 0!==i?i:u.validateTrigger,d=r.getNamePath(),f=u.getFieldsValue,m=(0,u.getInternalHooks)(VN).dispatch,g=r.getValue(),h=c||function(e){return Di({},l,e)},b=t[o],y=xa(xa({},t),h(g));return y[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(e){var t=arguments.length>0&&void 0!==e&&e,r=new RA;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=au(e);return t.get(n)||{INVALIDATE_NAME_PATH:au(e)}}))},this.getFieldsValue=function(e,t){var r,o,i,a,s;return n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===ki(e)&&(i=e.strict,o=e.filter),!0!==r||o?(a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[],a.forEach((function(e){var t,n,a,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null===(n=e.isList)||void 0===n?void 0:n.call(e))return}else if(!r&&(null===(t=e.isListField)||void 0===t?void 0:t.call(e)))return;o?(a="getMeta"in e?e.getMeta():null,o(a)&&s.push(l)):s.push(l)})),su(n.store,s.map(au))):n.store},this.getFieldValue=function(e){n.warningUnhooked();var t=au(e);return el(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:au(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){var t;return n.warningUnhooked(),t=au(e),n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){var t;return n.warningUnhooked(),t=au(e),n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){var e,t,r,o,i,a,s,l,c,u,p,d;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},i=new RA,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?Ia(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?Ia(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),o.skipExist&&void 0!==a||n.updateStore(nl(n.store,t,Ca(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,Ca(Ca(n).map((function(e){return e.entity}))))}))):r=a,t(r)},this.resetFields=function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(ol(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(au)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(nl(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=Si(e,TA),a=au(o);r.push(a),"value"in i&&n.updateStore(nl(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=xa(xa({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===el(n.store,t)&&n.updateStore(nl(n.store,t,r)))},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!cu(e.getNamePath(),t)}))&&(n.updateStore(nl(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=xa(xa({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Ca(r))}),r},this.updateValue=function(e,t){var r,o,i=au(e),a=n.store;n.updateStore(nl(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(su(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(Ca(r)))},this.setFieldsValue=function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=ol(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new RA;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=au(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new RA,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return lu(e,t.name)}))).length&&a(i,r))},this.validateFields=function(e,t){var r,o,i,a,s,l,c,u,p,d;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e,a=(i=!!r)?r.map(au):[],s=[],l=String(Date.now()),c=new Set,n.getFieldEntities(!0).forEach((function(e){var t,u,p,d;i||a.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&i&&(u=e.getNamePath()).every((function(e,t){return r[t]===e||void 0===r[t]}))&&a.push(u),e.props.rules&&e.props.rules.length&&(p=e.getNamePath(),c.add(p.join(l)),i&&!lu(a,p)||(d=e.validateRules(xa({validateMessages:xa(xa({},SA),n.validateMessages)},o)),s.push(d.then((function(){return{name:p,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.errors;e.rule.warningOnly?r.push.apply(r,Ca(t)):n.push.apply(n,Ca(t))})),n.length?Promise.reject({name:p,errors:n,warnings:r}):{name:p,errors:n,warnings:r}})))))})),u=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s),n.lastValidatePromise=u,u.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)})),(p=u.then((function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==u})}))).catch((function(e){return e})),d=a.filter((function(e){return c.has(e.join(l))})),n.triggerOnFieldsChange(d),p},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t})),jA=gv.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FA=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=gv.useContext(jA),a=gv.useRef({});return gv.createElement(jA.Provider,{value:xa(xa({},i),{},{validateMessages:xa(xa({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=xa(xa({},a.current),{},Di({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=xa({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},LA=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],MA=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,p=e.form,d=e.preserve,f=e.children,m=e.component,g=void 0===m?"form":m,h=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,_=e.onFieldsChange,w=e.onFinish,C=e.onFinishFailed,k=Si(e,LA),x=gv.useContext(jA),D=Wa(hu(p),1)[0],S=D.getInternalHooks(VN),E=S.useSubscribe,O=S.setInitialValues,P=S.setCallbacks,I=S.setValidateMessages,N=S.setPreserve,A=S.destroyForm;return gv.useImperativeHandle(t,(function(){return D})),gv.useEffect((function(){return x.registerForm(l,D),function(){x.unregisterForm(l)}}),[x,D,l]),I(xa(xa({},x.validateMessages),h)),P({onValuesChange:v,onFieldsChange:function(e){if(x.triggerFormChange(l,e),_){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),J2=gv.createContext(null),Z2=e=>{const t=Qs(e,["prefixCls"]);return gv.createElement(FA,Object.assign({},t))},e5=gv.createContext({prefixCls:""}),t5=gv.createContext({}),n5=e=>{let{children:t,status:n,override:r}=e;const o=gv.useContext(t5),i=gv.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return gv.createElement(t5.Provider,{value:i},t)},r5=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l}=e,[c]=x0("Modal",il());return OZ.createElement(n1,{disabled:!1},OZ.createElement(U2,Object.assign({onClick:a},l),r||(null==c?void 0:c.cancelText)),OZ.createElement(U2,Object.assign({},Ac(n),{loading:o,onClick:i},s),t||(null==c?void 0:c.okText)))},o5=e=>({animationDuration:e,animationFillMode:"both"}),i5=e=>({animationDuration:e,animationFillMode:"both"}),a5=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},o5(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},i5(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},s5=new UO("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),l5=new UO("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),c5=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[a5(o,s5,l5,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},u5=new UO("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p5=new UO("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),d5=new UO("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f5=new UO("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),m5=new UO("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g5=new UO("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),h5={"move-up":{inKeyframes:new UO("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 UO("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:u5,outKeyframes:p5},"move-left":{inKeyframes:d5,outKeyframes:f5},"move-right":{inKeyframes:m5,outKeyframes:g5}},b5=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=h5[t];return[a5(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},y5=new UO("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),v5=new UO("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),_5=new UO("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),w5=new UO("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),C5=new UO("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),k5=new UO("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),x5=new UO("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),D5=new UO("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),S5={"slide-up":{inKeyframes:y5,outKeyframes:v5},"slide-down":{inKeyframes:_5,outKeyframes:w5},"slide-left":{inKeyframes:C5,outKeyframes:k5},"slide-right":{inKeyframes:x5,outKeyframes:D5}},E5=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=S5[t];return[a5(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},O5=new UO("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),P5=new UO("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),I5=new UO("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),N5=new UO("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),A5=new UO("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),R5=new UO("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),T5=new UO("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$5=new UO("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),j5=new UO("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),F5=new UO("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),L5=new UO("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),M5=new UO("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),U5={zoom:{inKeyframes:O5,outKeyframes:P5},"zoom-big":{inKeyframes:I5,outKeyframes:N5},"zoom-big-fast":{inKeyframes:I5,outKeyframes:N5},"zoom-left":{inKeyframes:T5,outKeyframes:$5},"zoom-right":{inKeyframes:j5,outKeyframes:F5},"zoom-up":{inKeyframes:A5,outKeyframes:R5},"zoom-down":{inKeyframes:L5,outKeyframes:M5}},B5=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=U5[t];return[a5(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},H5=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),z5=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},_u("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},_u("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:c5(e)}]},W5=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},V0(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},K0(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},V5=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},G5=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},q5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},X5=Fl("Modal",(e=>{const t=e.padding,n=$l(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[W5(n),V5(n),G5(n),z5(n),e.wireframe&&q5(n),B5(n,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})));let K5;BA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{K5={x:e.pageX,y:e.pageY},setTimeout((()=>{K5=null}),100)}),!0);const Y5=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=gv.useContext(H0),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:p,centered:d,getContainer:f,closeIcon:m,closable:g,focusTriggerAfterClose:h=!0,style:b,visible:y,width:v=520,footer:_}=e,w=BA(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),C=r("modal",s),k=r(),[x,D]=X5(C),S=f0(p,{[`${C}-centered`]:!!d,[`${C}-wrap-rtl`]:"rtl"===o}),E=void 0===_?gv.createElement(r5,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})):_,[O,P]=Uc(g,m,(e=>vu(C,e)),gv.createElement(x1,{className:`${C}-close-icon`}),!0);return x(gv.createElement(i2,null,gv.createElement(n5,{status:!0,override:!0},gv.createElement(WN,Object.assign({width:v},w,{getContainer:void 0===f?n:f,prefixCls:C,rootClassName:f0(D,c),wrapClassName:S,footer:E,visible:null!=u?u:y,mousePosition:null!==(t=w.mousePosition)&&void 0!==t?t:K5,onClose:a,closable:O,closeIcon:P,focusTriggerAfterClose:h,transitionName:q2(k,"zoom",e.transitionName),maskTransitionName:q2(k,"fade",e.maskTransitionName),className:f0(D,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b)})))))},Q5=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,iconPrefixCls:f,theme:m,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v}=e,_=`${u}-confirm`,w=e.width||416,C=e.style||{},k=void 0===e.mask||e.mask,x=void 0!==e.maskClosable&&e.maskClosable,D=f0(_,`${_}-${e.type}`,{[`${_}-rtl`]:"rtl"===c},e.className);return gv.createElement(g1,{prefixCls:d,iconPrefixCls:f,direction:c,theme:m},gv.createElement(Y5,{prefixCls:u,className:D,wrapClassName:f0({[`${_}-centered`]:!!e.centered},p),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:o,title:"",footer:null,transitionName:q2(d,"zoom",e.transitionName),maskTransitionName:q2(d,"fade",e.maskTransitionName),mask:k,maskClosable:x,maskStyle:l,style:C,bodyStyle:g,width:w,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:h,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},gv.createElement(wu,Object.assign({},e,{confirmPrefixCls:_}))))},J5=[];HA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{afterClose:r,config:o}=e,i=zA(e,["afterClose","config"]);const[a,s]=gv.useState(!0),[l,c]=gv.useState(o),{direction:u,getPrefixCls:p}=gv.useContext(H0),d=p("modal"),f=p(),m=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(Ca(t.slice(1))))};gv.useImperativeHandle(t,(()=>({destroy:m,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[h]=x0("Modal",v0.Modal);return gv.createElement(Q5,Object.assign({prefixCls:d,rootPrefixCls:f},l,{close:m,open:a,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==h?void 0:h.okText:null==h?void 0:h.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==h?void 0:h.cancelText)},i))},t3=gv.forwardRef(e3);let n3=0;const r3=gv.memo(gv.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=gv.useState([]);return[e,gv.useCallback((e=>(t((t=>[].concat(Ca(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return gv.useImperativeHandle(t,(()=>({patchElement:r})),[]),gv.createElement(gv.Fragment,null,n)}))),o3=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new UO("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new UO("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new UO("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},i3=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:f,notificationMarginEdge:m,motionDurationMid:g,motionEaseInOut:h,fontSize:b,lineHeight:y,width:v,notificationIconSize:_,colorText:w}=e,C=`${n}-notice`,k=new UO("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:v},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),x=new UO("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),D={position:"relative",width:v,maxWidth:`calc(100vw - ${2*m}px)`,marginBottom:i,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:b,color:w},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${C}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[C]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[C]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:k,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:x,animationPlayState:"running"}}),o3(e)),{"&-rtl":{direction:"rtl",[`${C}-btn`]:{float:"left"}}})},{[n]:{[C]:Object.assign({},D)}},{[`${C}-pure-panel`]:Object.assign(Object.assign({},D),{margin:0})}]},a3=Fl("Notification",(e=>{const t=$l(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[i3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),{clientOnly:!0});WA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=gv.createElement("span",{className:`${t}-icon`},n):r&&(l=gv.createElement(s3[r]||null,{className:f0(`${t}-icon`,`${t}-icon-${r}`)})),gv.createElement("div",{className:f0({[`${t}-with-icon`]:l}),role:s},l,gv.createElement("div",{className:`${t}-message`},o),gv.createElement("div",{className:`${t}-description`},i),a&&gv.createElement("div",{className:`${t}-btn`},a))};VA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,notification:p}=gv.useContext(H0),d=o||c("notification"),[,f]=a3(d),[m,g]=cc({prefixCls:d,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>f0(f,{[`${d}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(d),closable:!0,closeIcon:Pu(d),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==u?void 0:u())||document.body,maxCount:a,onAllRemoved:l});return gv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:d,hashId:f,notification:p}))),g})),p3=OZ.createContext({}),d3=OZ.createContext({message:{},notification:{},modal:{}}),f3=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},m3=Fl("App",(e=>[f3(e)])),g3=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=gv.useContext(H0),c=l("app",t),[u,p]=m3(c),d=f0(p,c,r,o),f=gv.useContext(p3),m=OZ.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[g,h]=dc(m.message),[b,y]=Nu(m.notification),[v,_]=Ou(),w=OZ.useMemo((()=>({message:g,notification:b,modal:v})),[g,b,v]);return u(OZ.createElement(d3.Provider,{value:w},OZ.createElement(p3.Provider,{value:m},OZ.createElement("div",{className:d,style:s},_,h,y,n))))};g3.useApp=()=>OZ.useContext(d3);const h3=g3,b3=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};GA=gv.createContext(null),qA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],XA=void 0,(KA=gv.forwardRef(Tu)).displayName="Item",YA=OZ.createContext(null),QA=["component"],JA=["className"],ZA=["className"],eR=function(e,t){var n,r,o,i,a,s,l,c=gv.useContext(YA);return c?(i=c.className,a=Si(c,JA),s=e.className,l=Si(e,ZA),gv.createElement(YA.Provider,{value:null},gv.createElement(KA,fa({ref:t,className:f0(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=Si(e,QA),gv.createElement(r,fa({},o,{ref:t})))},(tR=gv.forwardRef(eR)).displayName="RawItem",nR=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],rR="responsive",oR="invalidate",(iR=gv.forwardRef(Fu)).displayName="Overflow",iR.Item=tR,iR.RESPONSIVE=rR,iR.INVALIDATE=oR,aR=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,gv.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:gv.createElement("span",{className:f0(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},(sR=gv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,p=e.activeDescendantId,d=e.value,f=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,h=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,_=e.open,w=e.attrs,C=e.inputElement||gv.createElement("input",null),k=C.ref,x=C.props,D=x.onKeyDown,S=x.onChange,E=x.onMouseDown,O=x.onCompositionStart,P=x.onCompositionEnd,I=x.style;return gv.cloneElement(C,xa(xa(xa({type:"search"},x),{},{id:i,ref:Bs(t,k),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:f0("".concat(o,"-selection-search-input"),null===(n=C)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":_,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":_?p:void 0},w),{},{value:u?d:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:xa(xa({},I),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),D&&D(e)},onMouseDown:function(e){g(e),E&&E(e)},onChange:function(e){h(e),S&&S(e)},onCompositionStart:function(e){y(e),O&&O(e)},onCompositionEnd:function(e){v(e),P&&P(e)},onPaste:b}))}))).displayName="Input",lR="undefined"!=typeof window&&window.document&&window.document.documentElement,cR=lR,uR=function(e){e.preventDefault(),e.stopPropagation()},pR=function(e){function t(e,t,n,r,o){return gv.createElement("span",{className:f0("".concat(H,"-item"),Di({},"".concat(H,"-item-disabled"),n)),title:Uu(e)},gv.createElement("span",{className:"".concat(H,"-item-content")},t),r&&gv.createElement(aR,{className:"".concat(H,"-item-remove"),onMouseDown:uR,onClick:o,customizeIcon:w},"ร—"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,p=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,m=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,_=e.tabIndex,w=e.removeIcon,C=e.maxTagCount,k=e.maxTagTextLength,x=e.maxTagPlaceholder,D=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,S=e.tagRender,E=e.onToggleOpen,O=e.onRemove,P=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,A=e.onInputMouseDown,R=e.onInputCompositionStart,T=e.onInputCompositionEnd,$=gv.useRef(null),j=Wa(gv.useState(0),2),F=j[0],L=j[1],M=Wa(gv.useState(!1),2),U=M[0],B=M[1],H="".concat(s,"-selection"),z=c||"multiple"===g&&!1===p||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===p||h&&(c||U);return o=function(){L($.current.scrollWidth)},i=[z],cR?gv.useLayoutEffect(o,i):gv.useEffect(o,i),n=gv.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},gv.createElement(sR,{ref:d,open:c,prefixCls:s,id:a,inputElement:null,disabled:m,autoFocus:b,autoComplete:y,editable:W,activeDescendantId:v,value:z,onKeyDown:N,onMouseDown:A,onChange:P,onPaste:I,onCompositionStart:R,onCompositionEnd:T,tabIndex:_,attrs:ac(e,!0)}),gv.createElement("span",{ref:$,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},z,"ย ")),r=gv.createElement(iR,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!m&&!o,l=i;return"number"==typeof k&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>k&&(l="".concat(n.slice(0,k),"..."))),r=function(t){t&&t.stopPropagation(),O(e)},"function"==typeof S?function(e,t,n,r,o){return gv.createElement("span",{onMouseDown:function(e){uR(e),E(!c)}},S({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof D?D(e):D;return t({title:n},n,!1)},suffix:n,itemKey:Bu,maxCount:C}),gv.createElement(gv.Fragment,null,r,!l.length&&!z&&gv.createElement("span",{className:"".concat(H,"-placeholder")},f))},dR=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,p=e.activeDescendantId,d=e.mode,f=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,_=e.maxLength,w=e.onInputKeyDown,C=e.onInputMouseDown,k=e.onInputChange,x=e.onInputPaste,D=e.onInputCompositionStart,S=e.onInputCompositionEnd,E=e.title,O=Wa(gv.useState(!1),2),P=O[1],I="combobox"===d,N=I||b,A=m[0],R=y||"";return I&&v&&!O[0]&&(R=v),gv.useEffect((function(){I&&P(!1)}),[I,v]),t=!("combobox"!==d&&!f&&!b||!R),n=void 0===E?Uu(A):E,r=function(){if(A)return null;var e=t?{visibility:"hidden"}:void 0;return gv.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},g)},gv.createElement(gv.Fragment,null,gv.createElement("span",{className:"".concat(i,"-selection-search")},gv.createElement(sR,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:N,activeDescendantId:p,value:R,onKeyDown:w,onMouseDown:C,onChange:function(e){P(!0),k(e)},onPaste:x,onCompositionStart:D,onCompositionEnd:S,tabIndex:h,attrs:ac(e,!0),maxLength:I?_:void 0})),!I&&A?gv.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},A.label):null,r())},fR=function(e,t){var n,r,o,i,a,s,l,c,u,p,d=gv.useRef(null),f=gv.useRef(!1),m=e.prefixCls,g=e.open,h=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,_=e.onSearch,w=e.onSearchSubmit,C=e.onToggleOpen,k=e.onInputKeyDown,x=e.domRef;return gv.useImperativeHandle(t,(function(){return{focus:function(){d.current.focus()},blur:function(){d.current.blur()}}})),n=Wa(Ru(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==hN.UP&&t!==hN.DOWN||e.preventDefault(),k&&k(e),t!==hN.ENTER||"tags"!==h||f.current||g||null==w||w(e.target.value),[hN.ESC,hN.SHIFT,hN.BACKSPACE,hN.TAB,hN.WIN_KEY,hN.ALT,hN.META,hN.WIN_KEY_RIGHT,hN.CTRL,hN.SEMICOLON,hN.EQUALS,hN.CAPS_LOCK,hN.CONTEXT_MENU,hN.F1,hN.F2,hN.F3,hN.F4,hN.F5,hN.F6,hN.F7,hN.F8,hN.F9,hN.F10,hN.F11,hN.F12].includes(t)||C(!0)},a=function(){o(!0)},s=gv.useRef(null),l=function(e){!1!==_(e,!0,f.current)&&C(!0)},c=function(e){e.target!==d.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){d.current.focus()})):d.current.focus())},u=function(e){var t=r();e.target===d.current||t||"combobox"===h||e.preventDefault(),("combobox"===h||b&&t)&&g||(g&&!1!==v&&_("",!0,!1),C())},p=gv.createElement("multiple"===h||"tags"===h?pR:dR,fa({},e,{inputRef:d,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==h&&l(e.target.value)}})),gv.createElement("div",{ref:x,className:"".concat(m,"-selector"),onClick:c,onMouseDown:u},p)},(mR=gv.forwardRef(fR)).displayName="Selector",gR=gv.createContext(null),hR=gv.memo((function(e){return e.children}),(function(e,t){return t.cache})),bR=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,p=e.prefixCls,d=e.style,f=e.target,m=e.onVisibleChanged,g=e.open,h=e.keepDom,b=e.onClick,y=e.mask,v=e.arrow,_=e.arrowPos,w=e.align,C=e.motion,k=e.maskMotion,x=e.forceRender,D=e.getPopupContainer,S=e.autoDestroy,E=e.portal,O=e.zIndex,P=e.onMouseEnter,I=e.onMouseLeave,N=e.onPointerEnter,A=e.ready,R=e.offsetX,T=e.offsetY,$=e.offsetR,j=e.offsetB,F=e.onAlign,L=e.onPrepare,M=e.stretch,U=e.targetWidth,B=e.targetHeight,H="function"==typeof c?c():c,z=g||h,W=(null==D?void 0:D.length)>0,V=Wa(gv.useState(!D||!W),2),G=V[0],q=V[1];return iO((function(){!G&&W&&f&&q(!0)}),[G,W,f]),G?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!A&&g||(o=w.points,s=(a=null==(i=w._experimental)?void 0:i.dynamicInset)&&"b"===o[0][0],a&&"r"===o[0][1]?(r.right=$,r.left=n):(r.left=R,r.right=n),s?(r.bottom=j,r.top=n):(r.top=T,r.bottom=n)),l={},M&&(M.includes("height")&&B?l.height=B:M.includes("minHeight")&&B&&(l.minHeight=B),M.includes("width")&&U?l.width=U:M.includes("minWidth")&&U&&(l.minWidth=U)),g||(l.pointerEvents="none"),gv.createElement(E,{open:x||z,getContainer:D&&function(){return D(f)},autoDestroy:S},gv.createElement(np,{prefixCls:p,open:g,zIndex:O,mask:y,motion:k}),gv.createElement(hP,{onResize:F,disabled:!g},(function(e){return gv.createElement(s1,fa({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(p,"-hidden")},C,{onAppearPrepare:L,onEnterPrepare:L,visible:g,onVisibleChanged:function(e){var t;null==C||null===(t=C.onVisibleChanged)||void 0===t||t.call(C,e),m(e)}}),(function(n,o){var i=n.style,a=f0(p,n.className,u);return gv.createElement("div",{ref:Bs(e,t,o),className:a,style:xa(xa(xa(xa({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:O},d),onMouseEnter:P,onMouseLeave:I,onPointerEnter:N,onClick:b},v&&gv.createElement(tp,{prefixCls:p,arrow:v,arrowPos:_,align:w}),gv.createElement(hR,{cache:!g},H))}))})))):null})),yR=gv.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=zs(n),i=Hs(gv.useCallback((function(e){Us(t,r?r(e):e)}),[r]),n.ref);return o?gv.cloneElement(n,{ref:i}):n})),vR=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const y3=function(e){var t=arguments.length>0&&void 0!==e?e:MN,n=gv.forwardRef((function(e,n){function r(e,t,n,r){y[e]=function(o){var i,a,s,l;for(null==r||r(o),I(t,n),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&void 0!==t?t:0;P(),0===n?E(e):O.current=setTimeout((function(){E(e)}),1e3*n)},gv.useEffect((function(){return P}),[]),N=Wa(gv.useState(!1),2),A=N[0],R=N[1],iO((function(e){e&&!x||R(!0)}),[x]),T=Wa(gv.useState(null),2),$=T[0],j=T[1],L=(F=Wa(gv.useState([0,0]),2))[0],M=F[1],U=function(e){M([e.clientX,e.clientY])},B=function(e,t,n,r,o,i,a){var s,l,c,u=Wa(gv.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),p=u[0],d=u[1],f=gv.useRef(0),m=gv.useMemo((function(){return t?Gu(t):[]}),[t]),g=gv.useRef({});return e||(g.current={}),s=Nl((function(){var s,l,c,u,p,f,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M,U,B,H,z,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,pe,de,fe,me,ge,he,be,ye,ve,_e,we,Ce,ke,xe,De,Se,Ee,Oe,Pe,Ie,Ne,Ae,Re,Te,$e,je,Fe,Le,Me,Ue,Be,He,ze,We,Ve,Ge,qe,Xe,Ke,Ye;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:B,o=S.x+e,i=S.y+t,a=o+N,s=i+I,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),p=Math.min(s,r.bottom);return Math.max(0,(u-l)*(p-c))},Qe=function(){_e=(ve=S.y+ae)+I,Ce=(we=S.x+ie)+N};if(u=(c=t).ownerDocument,f=(p=Vu(c).getComputedStyle(c)).width,h=p.height,b=p.position,y=c.style.left,v=c.style.top,_=c.style.right,w=c.style.bottom,C=xa(xa({},o[r]),i),k=u.createElement("div"),null===(s=c.parentElement)||void 0===s||s.appendChild(k),k.style.left="".concat(c.offsetLeft,"px"),k.style.top="".concat(c.offsetTop,"px"),k.style.position=b,k.style.height="".concat(c.offsetHeight,"px"),k.style.width="".concat(c.offsetWidth,"px"),c.style.left="0",c.style.top="0",c.style.right="auto",c.style.bottom="auto",x=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(D=n.getBoundingClientRect()).x,y:D.y,width:D.width,height:D.height},S=c.getBoundingClientRect(),I=S.height,N=S.width,A=x.height,R=x.width,T={left:0,top:0,right:(E=u.documentElement).clientWidth,bottom:E.clientHeight},j="visible",F="visibleFirst","scroll"!==($=C.htmlRegion)&&$!==F&&($=j),L=$===F,M=Ku({left:-(P=E.scrollLeft),top:-(O=E.scrollTop),right:E.scrollWidth-P,bottom:E.scrollHeight-O},m),U=Ku(T,m),B=$===j?U:M,H=L?U:B,c.style.left="auto",c.style.top="auto",c.style.right="0",c.style.bottom="0",z=c.getBoundingClientRect(),c.style.left=y,c.style.top=v,c.style.right=_,c.style.bottom=w,null===(l=c.parentElement)||void 0===l||l.removeChild(k),W=qu(Math.round(N/parseFloat(f)*1e3)/1e3),V=qu(Math.round(I/parseFloat(h)*1e3)/1e3),0===W||0===V||Ws(n)&&!G1(n))return;G=C.targetOffset,X=(q=Wa(Qu(S,C.offset),2))[0],K=q[1],Q=(Y=Wa(Qu(x,G),2))[1],x.x-=Y[0],x.y-=Q,Z=(J=Wa(C.points||[],2))[0],ee=Ju(J[1]),te=Ju(Z),ne=Zu(x,ee),re=Zu(S,te),oe=xa({},C),se=e(ie=ne.x-re.x+X,ae=ne.y-re.y+K),le=e(ie,ae,U),ce=Zu(x,["t","l"]),ue=Zu(S,["t","l"]),pe=Zu(x,["b","r"]),de=Zu(S,["b","r"]),me=(fe=C.overflow||{}).adjustX,ge=fe.adjustY,he=fe.shiftX,be=fe.shiftY,ye=function(e){return"boolean"==typeof e?e:e>=0},Qe(),ke=ye(ge),xe=te[0]===ee[0],ke&&"t"===te[0]&&(_e>H.bottom||g.current.bt)&&(De=ae,xe?De-=I-A:De=ce.y-de.y-K,Se=e(ie,De),Ee=e(ie,De,U),Se>se||Se===se&&(!L||Ee>=le)?(g.current.bt=!0,ae=De,K=-K,oe.points=[ep(te,0),ep(ee,0)]):g.current.bt=!1),ke&&"b"===te[0]&&(vese||Pe===se&&(!L||Ie>=le)?(g.current.tb=!0,ae=Oe,K=-K,oe.points=[ep(te,0),ep(ee,0)]):g.current.tb=!1),Ne=ye(me),Ae=te[1]===ee[1],Ne&&"l"===te[1]&&(Ce>H.right||g.current.rl)&&(Re=ie,Ae?Re-=N-R:Re=ce.x-de.x-X,Te=e(Re,ae),$e=e(Re,ae,U),Te>se||Te===se&&(!L||$e>=le)?(g.current.rl=!0,ie=Re,X=-X,oe.points=[ep(te,1),ep(ee,1)]):g.current.rl=!1),Ne&&"r"===te[1]&&(wese||Fe===se&&(!L||Le>=le)?(g.current.lr=!0,ie=je,X=-X,oe.points=[ep(te,1),ep(ee,1)]):g.current.lr=!1),Qe(),"number"==typeof(Me=!0===he?0:he)&&(weU.right&&(ie-=Ce-U.right-X,x.x>U.right-Me&&(ie+=x.x-U.right+Me))),"number"==typeof(Ue=!0===be?0:be)&&(veU.bottom&&(ae-=_e-U.bottom-K,x.y>U.bottom-Ue&&(ae+=x.y-U.bottom+Ue))),He=(Be=S.x+ie)+N,We=(ze=S.y+ae)+I,Ge=(Ve=x.x)+R,Xe=(qe=x.y)+A,Ke=(Math.max(Be,Ve)+Math.min(He,Ge))/2-Be,Ye=(Math.max(ze,qe)+Math.min(We,Xe))/2-ze,null==a||a(t,oe),d({ready:!0,offsetX:ie/W,offsetY:ae/V,offsetR:(z.right-S.x-(ie+S.width))/W,offsetB:(z.bottom-S.y-(ae+S.height))/V,arrowX:Ke/W,arrowY:Ye/V,scaleX:W,scaleY:V,align:oe})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},iO(c=function(){d((function(e){return xa(xa({},e),{},{ready:!1})}))},[r]),iO((function(){e||c()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,l]}(x,c,at?L:f,Ze,tt,nt,lt),z=(H=Wa(B,11))[0],W=H[1],V=H[2],G=H[3],q=H[4],X=H[5],K=H[6],Y=H[7],Q=H[8],J=H[9],Z=H[10],ee=function(e,t,n,r){return gv.useMemo((function(){var o=Hu(null!=n?n:t),i=Hu(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(wt,Ne,Ae,Re),te=Wa(ee,2),re=te[1],oe=(ne=te[0]).has("click"),ie=re.has("click")||re.has("contextMenu"),ae=Nl((function(){A||Z()})),function(e,t,n,r){iO((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r(),S.current&&at&&ie&&I(!1)};return o=n,i=Gu(t),a=Gu(o),s=Vu(o),(l=new Set([s].concat(Ca(i),Ca(a)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(x,f,c,ae),iO((function(){ae()}),[L,Ze]),iO((function(){!x||null!=tt&&tt[Ze]||ae()}),[JSON.stringify(nt)]),se=gv.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Wa(gv.useState(!1),2),r=n[0],o=n[1],i=gv.useRef(null),a=function(){window.clearTimeout(i.current)};return gv.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),m=(f=Wa(d,3))[0],g=f[1],h=f[2],gv.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=p.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=gv.useMemo((function(){var e,t;return"combobox"!==_e?Ne:"string"==typeof(t=null===(e=me[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[Ne,_e,me]),y="combobox"===_e&&"function"==typeof ke&&ke()||null,v="function"==typeof xe&&xe(),_=Hs(l,null==v||null===(n=v.props)||void 0===n?void 0:n.ref),C=(w=Wa(gv.useState(!1),2))[0],k=w[1],iO((function(){k(!0)}),[]),x=Wa(Tl(!1,{defaultValue:Se,value:De}),2),D=x[0],E=!!C&&D,O=!ye&&he,(we||O&&E&&"combobox"===_e)&&(E=!1),P=!O&&E,I=gv.useCallback((function(e){var t=void 0!==e?e:!E;we||(S(t),E!==t&&(null==Ee||Ee(t)))}),[we,E,S=x[1],Ee]),N=gv.useMemo((function(){return($e||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[$e]),A=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==Pe||Pe(null),r=n?null:(o=$e)&&o.length?(i=!1,a=function e(t,n){var r,o=Zs(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(Ca(t),Ca(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==_e&&r&&(l="",null==Te||Te(r),I(!1),s=!1),Re&&b!==l&&Re(l,{source:t?"typing":"effect"}),s},R=function(e){e&&e.trim()&&Re(e,{source:"submit"})},gv.useEffect((function(){E||ot||"combobox"===_e||A("",!1,!1)}),[E]),gv.useEffect((function(){D&&we&&S(!1),we&&g(!1)}),[we]),T=Wa(Ru(),2),$=T[0],j=T[1],F=function(e){var t,n,r,o,i,a,s,l,c=$(),u=e.which;if(u===hN.ENTER&&("combobox"!==_e&&e.preventDefault(),E||I(!0)),j(!!b),u===hN.BACKSPACE&&!c&&ot&&!b&&me.length){for(n=null,r=(t=Ca(me)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&ge(t,{type:"remove",values:[n]})}for(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),a=1;a5&&void 0!==i&&i,c=arguments.length>6?a:void 0,u=arguments.length>7?s:void 0,p=OZ.useMemo((function(){return"object"===ki(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:OZ.useMemo((function(){return!(l||!r||!n.length&&!c||"combobox"===u&&""===c)}),[r,l,n.length,c,u]),clearIcon:OZ.createElement(aR,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:p},"ร—")}}(le,(function(){var e;null==ve||ve(),null===(e=u.current)||void 0===e||e.focus(),ge([],{type:"clear",values:me}),A("",!1,!1)}),me,je,Le,we,b,_e),te=ee.allowClear,ne=ee.clearIcon,re=gv.createElement(Me,{ref:p}),oe=f0(le,ce,(Di(r={},"".concat(le,"-focused"),m),Di(r,"".concat(le,"-multiple"),ot),Di(r,"".concat(le,"-single"),!ot),Di(r,"".concat(le,"-allow-clear"),je),Di(r,"".concat(le,"-show-arrow"),J),Di(r,"".concat(le,"-disabled"),we),Di(r,"".concat(le,"-loading"),Ce),Di(r,"".concat(le,"-open"),E),Di(r,"".concat(le,"-customize-input"),y),Di(r,"".concat(le,"-show-search"),it),r)),ie=gv.createElement(kR,{ref:c,disabled:we,prefixCls:le,visible:P,popupElement:re,containerWidth:G,animation:Ue,transitionName:Be,dropdownStyle:He,dropdownClassName:ze,direction:de,dropdownMatchSelectWidth:We,dropdownRender:Ve,dropdownAlign:Ge,placement:qe,builtinPlacements:Xe,getPopupContainer:Ke,empty:he,getTriggerDOMNode:function(){return l.current},onPopupVisibleChange:Y,onPopupMouseEnter:function(){K({})}},v?gv.cloneElement(v,{ref:_}):gv.createElement(mR,fa({},e,{domRef:l,prefixCls:le,inputElement:y,ref:u,id:se,showSearch:it,autoClearSearchValue:Ae,mode:_e,activeDescendantId:Ie,tagRender:pe,values:me,open:E,onToggleOpen:I,activeValue:Oe,searchValue:b,onSearch:A,onSearchSubmit:R,onRemove:M,tokenWithEnter:N}))),ae=v?ie:gv.createElement("div",fa({className:oe},at,{ref:s,onMouseDown:W,onKeyDown:F,onKeyUp:L,onFocus:B,onBlur:H}),m&&!E&&gv.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(me.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(ki(t))?t:n})).join(", "))),ie,Z,te&&ne),gv.createElement(GA.Provider,{value:Q},ae)})),ER=0,OR=Ra(),PR=["children","value"],IR=["children"],(NR=function(){return null}).isSelectOptGroup=!0,(AR=function(){return null}).isSelectOption=!0,(RR=gv.forwardRef((function(e,t){var n,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,p={},d={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:e.height,position:"relative",overflow:"hidden"},d=xa(xa({},d),{},(Di(n={transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),Di(n,"position","absolute"),Di(n,"left",0),Di(n,"right",0),Di(n,"top",0),n))),gv.createElement("div",{style:p},gv.createElement(hP,{onResize:function(e){e.offsetHeight&&s&&s()}},gv.createElement("div",fa({style:d,className:f0(Di({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}))).displayName="Filler",TR=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.prefixCls,u=e.rtl,p=e.scrollOffset,d=e.scrollRange,f=e.onStartMove,m=e.onStopMove,g=e.onScroll,h=e.horizontal,b=e.spinSize,y=e.containerSize,v=Wa(gv.useState(!1),2),_=v[0],w=v[1],C=Wa(gv.useState(null),2),k=C[0],x=C[1],D=Wa(gv.useState(null),2),S=D[0],E=D[1],O=!u,P=gv.useRef(),I=gv.useRef(),N=Wa(gv.useState(!1),2),A=N[0],R=N[1],T=gv.useRef(),$=function(){clearTimeout(T.current),R(!0),T.current=setTimeout((function(){R(!1)}),3e3)},j=d-y||0,F=y-b||0,L=j>0,M=gv.useMemo((function(){return 0===p||0===j?0:p/j*F}),[p,j,F]),U=gv.useRef({top:M,dragging:_,pageY:k,startTop:S});return U.current={top:M,dragging:_,pageY:k,startTop:S},r=function(e){w(!0),x(cp(e,h)),E(U.current.top),f(),e.stopPropagation(),e.preventDefault()},gv.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=I.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",r),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",r)}}),[]),(o=gv.useRef()).current=j,(i=gv.useRef()).current=F,gv.useEffect((function(){var e,t,n;if(_)return t=function(t){var n,r,a,s,l,c=U.current,u=c.dragging,p=c.pageY,d=c.startTop;wP.cancel(e),u&&(n=cp(t,h)-p,r=d,!O&&h?r-=n:r+=n,a=o.current,s=i.current,l=Math.ceil((s?r/s:0)*a),l=Math.max(l,0),l=Math.min(l,a),e=wP((function(){g(l,h)})))},n=function(){w(!1),m()},window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),wP.cancel(e)}}),[_]),gv.useEffect((function(){$()}),[p]),gv.useImperativeHandle(t,(function(){return{delayHidden:$}})),a="".concat(c,"-scrollbar"),s={position:"absolute",visibility:A&&L?null:"hidden"},l={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},h?(s.height=8,s.left=0,s.right=0,s.bottom=0,l.height="100%",l.width=b,O?l.left=M:l.right=M):(s.width=8,s.top=0,s.bottom=0,O?s.right=0:s.left=0,l.width="100%",l.height=b,l.top=M),gv.createElement("div",{ref:P,className:f0(a,(n={},Di(n,"".concat(a,"-horizontal"),h),Di(n,"".concat(a,"-vertical"),!h),Di(n,"".concat(a,"-visible"),A),n)),style:s,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:$},gv.createElement("div",{ref:I,className:f0("".concat(a,"-thumb"),Di({},"".concat(a,"-thumb-moving"),_)),style:l,onMouseDown:r}))})),$R=function(){function e(){Oi(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Ii(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),jR="object"===("undefined"==typeof navigator?"undefined":ki(navigator))&&/Firefox/i.test(navigator.userAgent);const v3=function(e,t){var n=gv.useRef(!1),r=gv.useRef(null),o=gv.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};FR=14/15,LR=20,MR=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],UR=[],BR={overflowY:"auto",overflowAnchor:"none"},(HR=gv.forwardRef(dp)).displayName="List",zR=gv.createContext(null),WR=["disabled","title","children","style","className"],VR=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(p,"_list_").concat(t)}}var r,o,i,a,s,l,c=gv.useContext(GA),u=c.prefixCls,p=c.id,d=c.open,f=c.multiple,m=c.mode,g=c.searchValue,h=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=gv.useContext(zR),_=v.flattenOptions,w=v.onActiveValue,C=v.defaultActiveFirstOption,k=v.onSelect,x=v.menuItemSelectedIcon,D=v.rawValues,S=v.fieldNames,E=v.virtual,O=v.direction,P=v.listHeight,I=v.listItemHeight,N="".concat(u,"-item"),A=Sa((function(){return _}),[d,_],(function(e,t){return t[0]&&e[1]!==t[1]})),R=gv.useRef(null),T=function(e){e.preventDefault()},$=function(e){R.current&&R.current.scrollTo("number"==typeof e?{index:e}:e)},j=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=A.length;for(n=0;n1&&void 0!==t&&t;M(e),n={source:o?"keyboard":"mouse"},(r=A[e])?w(r.value,e,n):w(null,-1,n)};return gv.useEffect((function(){U(!1!==C?j(0):-1)}),[A.length,g]),r=gv.useCallback((function(e){return D.has(e)&&"combobox"!==m}),[m,Ca(D).toString(),D.size]),gv.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&d&&1===D.size&&(e=Array.from(D)[0],-1!==(t=A.findIndex((function(t){return t.data.value===e})))&&(U(t),$(t)))}));return d&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[d,g,_.length]),o=function(e){void 0!==e&&k(e,{selected:!D.has(e)}),f||h(!1)},gv.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case hN.N:case hN.P:case hN.UP:case hN.DOWN:t=0,i===hN.UP?t=-1:i===hN.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===hN.N?t=1:i===hN.P&&(t=-1)),0!==t&&(n=j(L+t,t),$(n),U(n,!0));break;case hN.ENTER:o((r=A[L])&&!r.data.disabled?r.value:void 0),d&&e.preventDefault();break;case hN.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){$(e)}}})),0===A.length?gv.createElement("div",{role:"listbox",id:"".concat(p,"_list"),className:"".concat(N,"-empty"),onMouseDown:T},b):(i=Object.keys(S).map((function(e){return S[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=A[e];return c?(o=(t=c.data||{}).value,i=c.group,s=ac(t,!0),l=a(c),c?gv.createElement("div",fa({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(p,"_list")},gv.createElement(gv.Fragment,null,E&&gv.createElement("div",fa({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(L-1),s(L),s(L+1)),gv.createElement(HR,{itemKey:"key",ref:R,data:A,height:P,itemHeight:I,fullHeight:!1,onMouseDown:T,onScroll:y,virtual:E,direction:O,innerProps:E?null:l},(function(e,t){var s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C=e.groupOption,k=e.data,D=e.label,S=e.value,O=k.key;return e.group?(c=null!==(l=k.title)&&void 0!==l?l:fp(D)?D.toString():void 0,gv.createElement("div",{className:f0(N,"".concat(N,"-group")),title:c},void 0!==D?D:O)):(u=k.disabled,p=k.title,d=k.style,f=k.className,m=Qs(Si(k,WR),i),g=r(S),h="".concat(N,"-option"),b=f0(N,h,f,(Di(s={},"".concat(h,"-grouped"),C),Di(s,"".concat(h,"-active"),L===t&&!u),Di(s,"".concat(h,"-disabled"),u),Di(s,"".concat(h,"-selected"),g),s)),y=a(e),v=!x||"function"==typeof x||g,w=fp(_="number"==typeof y?y:y||S)?_.toString():void 0,void 0!==p&&(w=p),gv.createElement("div",fa({},ac(m),E?{}:n(e,t),{"aria-selected":g,className:b,title:w,onMouseMove:function(){L===t||u||U(t)},onClick:function(){u||o(S)},style:d}),gv.createElement("div",{className:"".concat(h,"-content")},_),gv.isValidElement(x)||g,v&&gv.createElement(aR,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:g}},g?"โœ“":null)))}))))},(GR=gv.forwardRef(VR)).displayName="OptionList",qR=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],XR=["inputValue"],KR=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k=e.id,x=e.mode,D=e.prefixCls,S=void 0===D?"rc-select":D,E=e.backfill,O=e.fieldNames,P=e.inputValue,I=e.searchValue,N=e.onSearch,A=e.autoClearSearchValue,R=void 0===A||A,T=e.onSelect,$=e.onDeselect,j=e.dropdownMatchSelectWidth,F=void 0===j||j,L=e.filterOption,M=e.filterSort,U=e.optionFilterProp,B=e.optionLabelProp,H=e.options,z=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,G=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,Q=void 0===Y?20:Y,J=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Si(e,qR),re=function(e){var t=Wa(gv.useState(),2),n=t[0],r=t[1];return gv.useEffect((function(){var e;r("rc_select_".concat((OR?(e=ER,ER+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(k),oe=ap(x),ie=!(H||!z),ae=gv.useMemo((function(){return(void 0!==L||"combobox"!==x)&&L}),[L,x]),se=gv.useMemo((function(){return op(O,ie)}),[JSON.stringify(O),ie]),le=Wa(Tl("",{value:void 0!==I?I:P,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],pe=function(e,t,n,r,o){return gv.useMemo((function(){var i,a,s,l=e;return!e&&(l=sp(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,p=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=op(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:rp(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:rp(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=ge(e);ye(r),te&&(r.length!==Ce.length||r.some((function(e,t){var n;return(null===(n=Ce[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return ip(ke(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Wa(gv.useState(null),2))[0],p=c[1],f=(d=Wa(gv.useState(0),2))[0],m=d[1],g=void 0!==W?W:"combobox"!==x,h=gv.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;m(t),E&&"combobox"===x&&null!==e&&"keyboard"===o&&p(String(e))}),[E,x]),b=function(e,t,n){var r,o,i=function(){var t,n=ke(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,ip(n)]};t&&T?(r=Wa(i(),2),T(r[0],r[1])):!t&&$&&"clear"!==n&&(o=Wa(i(),2),$(o[0],o[1]))},y=lp((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(Ca(Ce),[e]):[e]:Ce.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===x?p(""):ap&&!R||(ue(""),p(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},_=function(e,t){var n,r;ue(e),p(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===x&&l(e),null==N||N(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(Ca(De),[n]))),l(r),b(n,!0),ue(""))},w=function(e){var t,n=e;"tags"!==x&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(Ca(De),Ca(n)))),l(t),t.forEach((function(e){b(e,!0)}))},C=gv.useMemo((function(){var e=!1!==G&&!1!==F;return xa(xa({},pe),{},{flattenOptions:s,onActiveValue:h,defaultActiveFirstOption:g,onSelect:y,menuItemSelectedIcon:V,rawValues:De,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:Q,childrenAsData:ie})}),[pe,s,h,g,y,V,De,se,G,F,K,Q,ie]),gv.createElement(zR.Provider,{value:C},gv.createElement(SR,fa({},ne,{id:re,prefixCls:S,ref:t,omitDomProps:XR,mode:x,displayValues:xe,onDisplayValuesChange:v,direction:q,searchValue:ce,onSearch:_,autoClearSearchValue:R,onSearchSplit:w,dropdownMatchSelectWidth:F,OptionList:GR,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),(YR=KR).Option=AR,YR.OptGroup=NR;const _3=(e,t)=>t||e,w3=()=>{const[,e]=Il(),t=new OP(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return gv.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},gv.createElement("g",{fill:"none",fillRule:"evenodd"},gv.createElement("g",{transform:"translate(24 31.67)"},gv.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),gv.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),gv.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),gv.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),gv.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),gv.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),gv.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},gv.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),gv.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},C3=()=>{const[,e]=Il(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=gv.useMemo((()=>({borderColor:new OP(t).onBackground(o).toHexShortString(),shadowColor:new OP(n).onBackground(o).toHexShortString(),contentColor:new OP(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return gv.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},gv.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},gv.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),gv.createElement("g",{fillRule:"nonzero",stroke:i},gv.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),gv.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},k3=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},x3=Fl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=$l(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[k3(r)]}));QR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=D3,description:i,children:a,imageStyle:s,style:l}=e,c=QR(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:p,empty:d}=gv.useContext(H0),f=u("empty",r),[m,g]=x3(f),[h]=x0("Empty"),b=void 0!==i?i:null==h?void 0:h.description;let y=null;return y="string"==typeof o?gv.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,m(gv.createElement("div",Object.assign({className:f0(g,f,null==d?void 0:d.className,{[`${f}-normal`]:o===S3,[`${f}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null==d?void 0:d.style),l)},c),gv.createElement("div",{className:`${f}-image`,style:s},y),b&&gv.createElement("div",{className:`${f}-description`},b),a&&gv.createElement("div",{className:`${f}-footer`},a)))};E3.PRESENTED_IMAGE_DEFAULT=D3,E3.PRESENTED_IMAGE_SIMPLE=S3;const O3=E3,P3=e=>{const{componentName:t}=e,{getPrefixCls:n}=gv.useContext(H0),r=n("empty");switch(t){case"Table":case"List":return OZ.createElement(O3,{image:O3.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return OZ.createElement(O3,{image:O3.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return OZ.createElement(O3,null)}},I3=e=>{const{controlPaddingHorizontal:t,controlHeight:n,fontSize:r,lineHeight:o}=e;return{position:"relative",display:"block",minHeight:n,padding:`${(n-r*o)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},N3=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},V0(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,[`\n ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:y5},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:_5},[`${a}${s}bottomLeft`]:{animationName:v5},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:w5},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},I3(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},W0),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},E5(e,"slide-up"),E5(e,"slide-down"),b5(e,"move-up"),b5(e,"move-down")]},A3=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},R3=e=>{const{componentCls:t}=e,n=$l(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$l(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=A3(e);return[gp(e),gp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},gp(r,"lg")]},T3=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},$3=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,outlineColor:a,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:i}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:i}})}}},j3=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},F3=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},V0(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},T3(e)),j3(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},W0),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},W0),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},L3=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},F3(e),bp(e),R3(e),N3(e),{[`${t}-rtl`]:{direction:"rtl"}},$3(t,$l(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),$3(`${t}-status-error`,$l(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),$3(`${t}-status-warning`,$l(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Pc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},M3=Fl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[L3(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),U3={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"},B3=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:U3}))})),H3={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"},z3=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:H3}))})),W3={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"},V3=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:W3}))}));JR=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:p,listItemHeight:d=24,size:f,disabled:m,notFoundContent:g,status:h,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:_,style:w,allowClear:C}=e,k=JR(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:x,getPrefixCls:D,renderEmpty:S,direction:E,virtual:O,popupMatchSelectWidth:P,popupOverflow:I,select:N}=gv.useContext(H0),A=D("select",r),R=D(),T=null!=_?_:E,{compactSize:$,compactItemClassnames:j}=o2(A,T),[F,L]=M3(A),M=gv.useMemo((()=>{const{mode:e}=k;if("combobox"!==e)return e===G3?"combobox":e}),[k.mode]),U="multiple"===M||"tags"===M,B=function(e,t){return void 0!==t?t:null!==e}(k.suffixIcon,k.showArrow),H=null!==(n=null!=v?v:y)&&void 0!==n?n:P,{status:z,hasFeedback:W,isFormItemInput:V,feedbackIcon:G}=gv.useContext(t5),q=_3(z,h);let X;X=void 0!==g?g:"combobox"===M?null:(null==S?void 0:S("Select"))||gv.createElement(P3,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:Q,clearIcon:J}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:p}=e;const d=null!=n?n:gv.createElement(C1,null),f=e=>null!==t||s||p?gv.createElement(gv.Fragment,null,!1!==c&&e,s&&u):null;let m=null;if(void 0!==t)m=f(t);else if(i)m=f(gv.createElement(L1,{spin:!0}));else{const e=`${l}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return f(gv.createElement(n&&r?V3:z3,{className:e}))}}let g=null;g=void 0!==r?r:a?gv.createElement(B3,null):null;let h=null;return h=void 0!==o?o:gv.createElement(x1,null),{clearIcon:d,suffixIcon:m,itemIcon:g,removeIcon:h}}(Object.assign(Object.assign({},k),{multiple:U,hasFeedback:W,feedbackIcon:G,showSuffixIcon:B,prefixCls:A,showArrow:k.showArrow,componentName:"Select"})),Z=!0===C?{clearIcon:J}:C,ee=Qs(k,["suffixIcon","itemIcon"]),te=f0(l||c,{[`${A}-dropdown-${T}`]:"rtl"===T},a,L),ne=Z1((e=>{var t;return null!==(t=null!=f?f:$)&&void 0!==t?t:e})),re=gv.useContext(r1),oe=null!=m?m:re,ie=f0({[`${A}-lg`]:"large"===ne,[`${A}-sm`]:"small"===ne,[`${A}-rtl`]:"rtl"===T,[`${A}-borderless`]:!o,[`${A}-in-form-item`]:V},mp(A,q,W),j,null==N?void 0:N.className,i,a,L),ae=gv.useMemo((()=>void 0!==p?p:"rtl"===T?"bottomRight":"bottomLeft"),[p,T]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(b,I);return F(gv.createElement(YR,Object.assign({ref:t,virtual:O,showSearch:null==N?void 0:N.showSearch},ee,{style:Object.assign(Object.assign({},null==N?void 0:N.style),w),dropdownMatchSelectWidth:H,builtinPlacements:se,transitionName:q2(R,"slide-up",k.transitionName),listHeight:u,listItemHeight:d,mode:M,prefixCls:A,placement:ae,direction:T,suffixIcon:K,menuItemSelectedIcon:Y,removeIcon:Q,allowClear:Z,notFoundContent:X,className:ie,getPopupContainer:s||x,dropdownClassName:te,disabled:oe})))},X3=gv.forwardRef(q3),K3=(SJ=X3,Au((function(e){const{prefixCls:t,style:n}=e,r=gv.useRef(null),[o,i]=gv.useState(0),[a,s]=gv.useState(0),[l,c]=Tl(!1,{value:e.open}),{getPrefixCls:u}=gv.useContext(H0),p=u("select",t);gv.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${p}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let d=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return gv.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},gv.createElement(SJ,Object.assign({},d)))})));X3.SECRET_COMBOBOX_MODE_DO_NOT_USE=G3,X3.Option=AR,X3.OptGroup=NR,X3._InternalPanelDoNotUseOrYouWillBeFired=K3;const Y3=X3,Q3=["xxl","xl","lg","md","sm","xs"],J3=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)`}),Z3=e=>{const t=e,n=[].concat(Q3).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(rnew OP(e).setAlpha(t).toRgbString(),a4=(e,t)=>new OP(e).lighten(t).toHexString(),s4=e=>{const t=xl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},l4=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:i4(r,.85),colorTextSecondary:i4(r,.65),colorTextTertiary:i4(r,.45),colorTextQuaternary:i4(r,.25),colorFill:i4(r,.18),colorFillSecondary:i4(r,.12),colorFillTertiary:i4(r,.08),colorFillQuaternary:i4(r,.04),colorBgElevated:a4(n,12),colorBgContainer:a4(n,8),colorBgLayout:a4(n,0),colorBgSpotlight:a4(n,26),colorBorder:a4(n,26),colorBorderSecondary:a4(n,19)}},c4={defaultConfig:L0,defaultSeed:L0.token,useToken:function(){const[e,t,n]=Il();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Sl,darkAlgorithm:(e,t)=>{const n=Object.keys(P0).map((t=>{const n=xl(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Sl(e);return Object.assign(Object.assign(Object.assign({},r),n),Dl(e,{generateColorPalettes:s4,generateNeutralColorPalettes:l4}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Sl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),j0(r)),{controlHeight:o}),O0(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Va((null==e?void 0:e.algorithm)?e.algorithm:Sl),n=Object.assign(Object.assign({},I0),null==e?void 0:e.token);return fO(n,{override:null==e?void 0:e.token},t,Pl)}},u4=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,t4)}},[`${t}-content`]:{position:"relative"}}),Ll(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Cp($l(e,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},p4=(e,t)=>Fl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=$l(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[u4(a),B5(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),d4=S0.map((e=>`${e}-inverse`)),f4=["success","processing","error","default","warning"];iT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:f,arrow:m=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,_=!!m,{token:w}=m4(),{getPopupContainer:C,getPrefixCls:k,direction:x}=gv.useContext(H0),D=gv.useRef(null),S=()=>{var e;null===(e=D.current)||void 0===e||e.forceAlign()};gv.useImperativeHandle(t,(()=>({forceAlign:S,forcePopupAlign:()=>{S()}})));const[E,O]=Tl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!h&&0!==g,I=gv.useMemo((()=>{var e,t;let n=y;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(n4).forEach((e=>{const c=Object.assign(Object.assign({},r&&r4[e]||n4[e]),{offset:[0,0]});switch(l[e]=c,o4.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=_p({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:_?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,m,b,w]),N=gv.useMemo((()=>0===g?g:h||g||""),[h,g]),A=gv.createElement(i2,null,"function"==typeof N?N():N),{getPopupContainer:R,placement:T="top",mouseEnterDelay:$=.1,mouseLeaveDelay:j=.1,overlayStyle:F,rootClassName:L}=e,M=iT(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=k("tooltip",o),B=k(),H=e["data-popover-inject"];let z=E;"open"in e||"visible"in e||!P||(z=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=lc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return gv.createElement("span",{style:o,className:f0(e.props.className,`${t}-disabled-compatible-wrapper`)},i)}return e}(P1(u)&&!sc(u)?u:gv.createElement("span",null,u),U),V=W.props,G=V.className&&"string"!=typeof V.className?V.className:f0(V.className,i||`${U}-open`),[q,X]=p4(U,!H),K=xp(U,l),Y=K.arrowStyle,Q=Object.assign(Object.assign({},c),K.overlayStyle),J=f0(s,{[`${U}-rtl`]:"rtl"===x},K.className,L,X);return q(gv.createElement(e4,Object.assign({},M,{showArrow:_,placement:T,mouseEnterDelay:$,mouseLeaveDelay:j,prefixCls:U,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},Y),F),getTooltipContainer:R||a||C,ref:D,builtinPlacements:I,overlay:A,visible:z,onVisibleChange:t=>{var n,r;O(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=p?p:d,overlayInnerStyle:Q,arrowContent:gv.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:q2(B,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),z?lc(W,{className:G}):W))}));g4._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=gv.useContext(H0),l=s("tooltip",t),[c,u]=p4(l,!0),p=xp(l,i),d=p.arrowStyle,f=Object.assign(Object.assign({},a),p.overlayStyle),m=f0(u,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(gv.createElement("div",{className:m,style:d},gv.createElement("div",{className:`${l}-arrow`}),gv.createElement(vp,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const h4=g4,b4={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"},y4=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:b4}))}));aT=hN.ESC,sT=hN.TAB,lT=gv.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=gv.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Bs(t,null==i?void 0:i.ref);return OZ.createElement(OZ.Fragment,null,r&&OZ.createElement("div",{className:"".concat(o,"-arrow")}),OZ.cloneElement(i,{ref:zs(i)?a:void 0}))})),pT={topLeft:{points:["bl","tl"],overflow:cT={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:uT=[0,0]},top:{points:["bc","tc"],overflow:cT,offset:[0,-4],targetOffset:uT},topRight:{points:["br","tr"],overflow:cT,offset:[0,-4],targetOffset:uT},bottomLeft:{points:["tl","bl"],overflow:cT,offset:[0,4],targetOffset:uT},bottom:{points:["tc","bc"],overflow:cT,offset:[0,4],targetOffset:uT},bottomRight:{points:["tr","br"],overflow:cT,offset:[0,4],targetOffset:uT}},dT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const v4=OZ.forwardRef(Dp);fT=gv.createContext(null),mT=["children","locked"],gT=gv.createContext(null),hT=[],bT=gv.createContext(null),yT=gv.createContext(hT),vT=gv.createContext(null),_T=gv.createContext({}),DT=hN.ENTER,ST=hN.ESC,ET=hN.HOME,OT=hN.END,PT=[kT=hN.UP,xT=hN.DOWN,wT=hN.LEFT,CT=hN.RIGHT],IT="__RC_UTIL_PATH_SPLIT__",NT=function(e){return e.join(IT)},AT=function(e){return e.split(IT)},RT="rc-menu-more",TT=Math.random().toFixed(5).toString().slice(2),$T=0,jT=["item"],FT=["title","attribute","elementRef"],LT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],MT=["active"],UT=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Ts(e,gv.Component);var t=Ls(e);return Ii(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Qs(Si(e,FT),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ia(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),gv.createElement(iR.Item,fa({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),BT=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M,U,B=e.style,H=e.className,z=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,p=e.onFocus,d=Si(e,LT),f=Ep(z),g=(m=gv.useContext(gT)).prefixCls,h=m.onItemClick,b=m.disabled,y=m.overflowDisabled,v=m.itemIcon,_=m.selectedKeys,w=m.onActive,C=gv.useContext(_T)._internalRenderMenuItem,k="".concat(g,"-item"),x=gv.useRef(),D=gv.useRef(),S=b||r,E=Hs(t,D),O=Ip(z),P=function(e){return{key:z,keyPath:Ca(O).reverse(),item:x.current,domEvent:e}},I=o||v,A=(N=$p(z,S,s,l)).active,R=Si(N,MT),T=_.includes(z),$=jp(O.length),j=function(e){if(!S){var t=P(e);null==c||c(Lp(t)),h(t)}},F=function(e){if(null==u||u(e),e.which===hN.ENTER){var t=P(e);null==c||c(Lp(t)),h(t)}},L=function(e){w(z),null==p||p(e)},M={},"option"===e.role&&(M["aria-selected"]=T),U=gv.createElement(UT,fa({ref:x,elementRef:E,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},d,R,M,{component:"li","aria-disabled":r,style:xa(xa({},$),B),className:f0(k,(n={},Di(n,"".concat(k,"-active"),A),Di(n,"".concat(k,"-selected"),T),Di(n,"".concat(k,"-disabled"),S),n),H),onClick:j,onKeyDown:F,onFocus:L}),i,gv.createElement(Fp,{props:xa(xa({},e),{},{isSelected:T}),icon:I})),C&&(U=C(U,e,{selected:T})),U}));const _4=gv.forwardRef(Mp);HT=["className","children"],zT=function(e,t){var n=e.className,r=e.children,o=Si(e,HT),i=gv.useContext(gT),a=i.prefixCls,s=i.mode;return gv.createElement("ul",fa({className:f0(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(WT=gv.forwardRef(zT)).displayName="SubMenuList",GT={topLeft:{points:["bl","tl"],overflow:VT={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:VT},bottomLeft:{points:["tl","bl"],overflow:VT},bottomRight:{points:["tr","br"],overflow:VT},leftTop:{points:["tr","tl"],overflow:VT},leftBottom:{points:["br","bl"],overflow:VT},rightTop:{points:["tl","tr"],overflow:VT},rightBottom:{points:["bl","br"],overflow:VT}},qT={topLeft:{points:["bl","tl"],overflow:VT},topRight:{points:["br","tr"],overflow:VT},bottomLeft:{points:["tl","bl"],overflow:VT},bottomRight:{points:["tr","br"],overflow:VT},rightTop:{points:["tr","tl"],overflow:VT},rightBottom:{points:["br","bl"],overflow:VT},leftTop:{points:["tl","tr"],overflow:VT},leftBottom:{points:["bl","br"],overflow:VT}},XT={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},KT=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],YT=["active"],QT=function(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M,U,B,H,z,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=e.style,ue=e.className,pe=e.title,de=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.onClick,u=e.onMouseEnter,p=e.onMouseLeave,d=e.onTitleClick,f=e.onTitleMouseEnter,m=e.onTitleMouseLeave,g=Si(e,KT),h=Ep(de),y=(b=gv.useContext(gT)).prefixCls,v=b.mode,_=b.openKeys,w=b.disabled,C=b.overflowDisabled,k=b.activeKey,x=b.selectedKeys,D=b.itemIcon,S=b.expandIcon,E=b.onItemClick,O=b.onOpenChange,P=b.onActive,I=gv.useContext(_T)._internalRenderSubMenuItem,N=gv.useContext(vT),A=N.isSubPathKey,R=Ip(),T="".concat(y,"-submenu"),$=w||n,j=gv.useRef(),F=gv.useRef(),L=i||D,M=a||S,U=_.includes(de),B=!C&&U,H=A(x,de),z=$p(de,$,f,m),W=z.active,V=Si(z,YT),G=Wa(gv.useState(!1),2),X=G[1],K=function(e){$||X(e)},Y=function(e){K(!0),null==u||u({key:de,domEvent:e})},Q=function(e){K(!1),null==p||p({key:de,domEvent:e})},J=gv.useMemo((function(){return W||"inline"!==v&&(q||A([k],de))}),[v,W,k,q=G[0],de,A]),Z=jp(R.length),ee=function(e){$||(null==d||d({key:de,domEvent:e}),"inline"===v&&O(de,!U))},te=Tp((function(e){null==c||c(Lp(e)),E(e)})),ne=function(e){"inline"!==v&&O(de,e)},re=function(){P(de)},oe=h&&"".concat(h,"-popup"),ie=gv.createElement("div",fa({role:"menuitem",style:Z,className:"".concat(T,"-title"),tabIndex:$?null:-1,ref:j,title:"string"==typeof pe?pe:null,"data-menu-id":C&&h?null:h,"aria-expanded":B,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":$,onClick:ee,onFocus:re},V),pe,gv.createElement(Fp,{icon:"horizontal"!==v?M:null,props:xa(xa({},e),{},{isOpen:B,isSubMenu:!0})},gv.createElement("i",{className:"".concat(T,"-arrow")}))),(ae=gv.useRef(v)).current="inline"!==v&&R.length>1?"vertical":v,C||(ie=gv.createElement(Hp,{mode:se=ae.current,prefixCls:T,visible:!r&&B&&"inline"!==v,popupClassName:s,popupOffset:l,popup:gv.createElement(Op,{mode:"horizontal"===se?"vertical":se},gv.createElement(WT,{id:oe,ref:F},o)),disabled:$,onVisibleChange:ne},ie)),le=gv.createElement(iR.Item,fa({role:"none"},g,{component:"li",style:ce,className:f0(T,"".concat(T,"-").concat(v),ue,(t={},Di(t,"".concat(T,"-open"),B),Di(t,"".concat(T,"-active"),J),Di(t,"".concat(T,"-selected"),H),Di(t,"".concat(T,"-disabled"),$),t)),onMouseEnter:Y,onMouseLeave:Q}),ie,!C&&gv.createElement(zp,{id:oe,open:B,keyPath:R},o)),I&&(le=I(le,e,{selected:H,active:J,open:B,disabled:$})),gv.createElement(Op,{onItemClick:te,mode:"horizontal"===v?"vertical":v,itemIcon:L,expandIcon:M},le)},JT=["className","title","eventKey","children"],ZT=["children"],e$=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=Si(e,JT),r=gv.useContext(gT),o="".concat(r.prefixCls,"-item-group"),gv.createElement("li",fa({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:f0(o,i)}),gv.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),gv.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},t$=["label","children","key","type"],n$=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],r$=[],(o$=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R,T,$,j,F,L,M,U,B,H,z,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,pe=e.className,de=e.tabIndex,fe=void 0===de?0:de,me=e.items,ge=e.children,he=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,_e=e.inlineCollapsed,we=e.disabled,Ce=e.disabledOverflow,ke=e.subMenuOpenDelay,xe=void 0===ke?.1:ke,De=e.subMenuCloseDelay,Se=void 0===De?.1:De,Ee=e.forceSubMenuRender,Oe=e.defaultOpenKeys,Pe=e.openKeys,Ie=e.activeKey,Ne=e.defaultActiveFirst,Ae=e.selectable,Re=void 0===Ae||Ae,Te=e.multiple,$e=void 0!==Te&&Te,je=e.defaultSelectedKeys,Fe=e.selectedKeys,Le=e.onSelect,Me=e.onDeselect,Ue=e.inlineIndent,Be=void 0===Ue?24:Ue,He=e.motion,ze=e.defaultMotions,We=e.triggerSubMenuAction,Ve=void 0===We?"hover":We,Ge=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Qe=e.overflowedIndicatorPopupClassName,Je=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,i=e._internalRenderSubMenuItem,a=Si(e,n$),s=gv.useMemo((function(){return Xp(ge,me,r$)}),[ge,me]),c=(l=Wa(gv.useState(!1),2))[0],u=l[1],p=gv.useRef(),d=function(e){var t=Wa(Tl(e,{value:e}),2),n=t[0],r=t[1];return gv.useEffect((function(){$T+=1;var e="".concat(TT,"-").concat($T);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===he,m=Wa(Tl(Oe,{value:Pe,postState:function(e){return e||r$}}),2),h=m[1],b=function(e,t){function n(){h(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?Px.flushSync(n):n()},y=Wa(gv.useState(g=m[0]),2),v=y[0],_=y[1],w=gv.useRef(!1),C=Wa(gv.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!_e?[ve,!1]:["vertical",_e]}),[ve,_e]),2),x=C[1],D="inline"===(k=C[0]),S=Wa(gv.useState(k),2),E=S[0],O=S[1],I=(P=Wa(gv.useState(x),2))[0],N=P[1],gv.useEffect((function(){O(k),N(x),w.current&&(D?h(v):b(r$))}),[k,x]),A=Wa(gv.useState(0),2),T=A[1],$=(R=A[0])>=s.length-1||"horizontal"!==E||Ce,gv.useEffect((function(){D&&_(g)}),[g]),gv.useEffect((function(){return w.current=!0,function(){w.current=!1}}),[]),j=function(){var e=Wa(gv.useState({}),2)[1],t=gv.useRef(new Map),n=gv.useRef(new Map),r=Wa(gv.useState([]),2),o=r[0],i=r[1],a=gv.useRef(0),s=gv.useRef(!1),l=gv.useCallback((function(r,o){var i,l,c=NT(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=gv.useCallback((function(e,r){var o=NT(r);n.current.delete(o),t.current.delete(e)}),[]),u=gv.useCallback((function(e){i(e)}),[]),p=gv.useCallback((function(e,n){var r=t.current.get(e)||"",i=AT(r);return n&&o.includes(i[0])&&i.unshift(RT),i}),[o]),d=gv.useCallback((function(e,t){return e.some((function(e){return p(e,!0).includes(t)}))}),[p]),f=gv.useCallback((function(e){var r="".concat(t.current.get(e)).concat(IT),o=new Set;return Ca(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return gv.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:p,getKeys:function(){var e=Ca(t.current.keys());return o.length&&e.push(RT),e},getSubPathKeys:f}}(),M=j.refreshOverflowKeys,U=j.isSubPathKey,B=j.getKeyPath,H=j.getKeys,z=j.getSubPathKeys,W=gv.useMemo((function(){return{registerPath:F,unregisterPath:L}}),[F=j.registerPath,L=j.unregisterPath]),V=gv.useMemo((function(){return{isSubPathKey:U}}),[U]),gv.useEffect((function(){M($?r$:s.slice(R+1).map((function(e){return e.key})))}),[R,$]),G=Wa(Tl(Ie||Ne&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:Ie}),2),q=G[0],X=G[1],K=Tp((function(e){X(e)})),Y=Tp((function(){X(void 0)})),gv.useImperativeHandle(t,(function(){return{list:p.current,focus:function(e){var t,n,r,o,i=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=p.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Sp(d,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),Q=Wa(Tl(je||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?r$:[e]}}),2),J=Q[0],Z=Q[1],ee=function(e){var t,n,r,o;Re&&(n=J.includes(t=e.key),r=$e?n?J.filter((function(e){return e!==t})):[].concat(Ca(J),[t]):[t],Z(r),o=xa(xa({},e),{},{selectedKeys:r}),n?null==Me||Me(o):null==Le||Le(o)),!$e&&g.length&&"inline"!==E&&b(r$)},te=Tp((function(e){null==Ze||Ze(Lp(e)),ee(e)})),ne=Tp((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==E&&(n=z(e),r=r.filter((function(e){return!n.has(e)}))),Na(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,p=gv.useRef(),d=gv.useRef();return d.current=t,u=function(){wP.cancel(p.current)},gv.useEffect((function(){return function(){u()}}),[]),function(f){var m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P=f.which;if([].concat(PT,[DT,ST,ET,OT]).includes(P)){if((b=function(){return m=new Set,g=new Map,h=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Sp(r,e),"']"));t&&(m.add(t),h.set(t,e),g.set(e,t))})),m})(),y=g.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,m),_=h.get(v),w=function(e,t,n,r){var o,i,a,s,l,c,u,p="prev",d="next",f="children",m="parent";if("inline"===e&&r===DT)return{inlineTrigger:!0};switch(Di(o={},kT,p),Di(o,xT,d),l=o,Di(i={},wT,n?d:p),Di(i,CT,n?p:d),Di(i,xT,f),Di(i,DT,f),c=i,Di(a={},kT,p),Di(a,xT,d),Di(a,DT,f),Di(a,ST,m),Di(a,wT,n?f:m),Di(a,CT,n?m:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case p:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(_,!0).length,n,P),!w&&P!==ET&&P!==OT)return;(PT.includes(P)||[ET,OT].includes(P))&&f.preventDefault(),C=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=h.get(e),s(r),u(),p.current=wP((function(){d.current===r&&t.focus()})))},[ET,OT].includes(P)||w.sibling||!v?(D=Ap(k=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,m),x=P===ET?D[0]:P===OT?D[D.length-1]:Rp(k,m,v,w.offset),C(x)):w.inlineTrigger?l(_):w.offset>0?(l(_,!0),u(),p.current=wP((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=Rp(document.getElementById(e),m),C(t)}),5)):w.offset<0&&(S=a(_,!0),O=g.get(E=S[S.length-2]),l(E,!1),C(O))}null==c||c(f)}}(E,q,f,d,p,H,B,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),gv.useEffect((function(){u(!0)}),[]),oe=gv.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==E||Ce?s:s.map((function(e,t){return gv.createElement(Op,{key:e.key,overflowDisabled:t>R},e)})),ae=gv.createElement(iR,fa({id:be,ref:p,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:_4,className:f0(le,"".concat(le,"-root"),"".concat(le,"-").concat(E),pe,(r={},Di(r,"".concat(le,"-inline-collapsed"),I),Di(r,"".concat(le,"-rtl"),f),r),ce),dir:he,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return gv.createElement(Wp,{eventKey:RT,title:Ye,disabled:$,internalPopupClose:0===t,popupClassName:Qe},n)},maxCount:"horizontal"!==E||Ce?iR.INVALIDATE:iR.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){T(e)},onKeyDown:re},a)),gv.createElement(_T.Provider,{value:oe},gv.createElement(fT.Provider,{value:d},gv.createElement(Op,{prefixCls:le,rootClassName:ce,mode:E,openKeys:g,rtl:f,disabled:we,motion:c?He:null,defaultMotions:c?ze:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:J,inlineIndent:Be,subMenuOpenDelay:xe,subMenuCloseDelay:Se,forceSubMenuRender:Ee,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Je,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},gv.createElement(vT.Provider,{value:V},ae),gv.createElement("div",{style:{display:"none"},"aria-hidden":!0},gv.createElement(bT.Provider,{value:W},s)))))}))).Item=_4,o$.SubMenu=Wp,o$.ItemGroup=Vp,o$.Divider=Gp,globalThis&&globalThis;const w4=gv.createContext({});i$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=i$(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=gv.useContext(H0),a=i("menu",t),s=f0({[`${a}-item-divider-dashed`]:!!r},n);return gv.createElement(Gp,Object.assign({className:s},o))},k4=gv.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x4=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:p}=gv.useContext(k4),{siderCollapsed:d}=gv.useContext(w4);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const m={title:f};d||p||(m.title=null,m.open=!1);const g=Ms(r).length;let h=gv.createElement(_4,Object.assign({},Qs(e,["title","icon","danger"]),{className:f0({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),lc(o,{className:f0(P1(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=gv.createElement("span",{className:`${s}-title-content`},r);return(!o||P1(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?gv.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return u||(h=gv.createElement(h4,Object.assign({},m,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},D4=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=gv.useContext(k4),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Ip();let p;if(r){const e=P1(o)&&"span"===o.type;p=gv.createElement(gv.Fragment,null,lc(r,{className:f0(P1(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:gv.createElement("span",{className:`${s}-title-content`},o))}else p=l&&!u.length&&o&&"string"==typeof o?gv.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):gv.createElement("span",{className:`${s}-title-content`},o);const d=gv.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return gv.createElement(k4.Provider,{value:d},gv.createElement(Wp,Object.assign({},Qs(e,["icon"]),{title:p,popupClassName:f0(s,n,`${s}-${i||c}`)})))},S4={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"},E4=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:S4}))}));globalThis&&globalThis;const O4=gv.createContext(null);a$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},I4=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},N4=e=>Object.assign({},X0(e)),A4=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:d,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:k,dangerItemActiveBg:x,dangerItemSelectedBg:D,itemHoverBg:S,itemActiveBg:E,menuSubMenuBg:O,horizontalItemSelectedColor:P,horizontalItemSelectedBg:I,horizontalItemBorderRadius:N,horizontalItemHoverBg:A,popupBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},N4(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:E}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:S},"&:active":{backgroundColor:E}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:D}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},N4(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:R},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:-p,marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${d} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${p}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:p&&u?{width:`calc(100% + ${p}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},R4=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},T4=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:p,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},R4(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},R4(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${p/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},W0),{paddingInline:f})}}]},$4=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},j4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},F4=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:p,borderRadiusLG:d,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$4(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},$4(e)),j4(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),j4(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};s$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=gv.useContext(O4),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=gv.useContext(H0),u=a(),{prefixCls:p,className:d,style:f,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,items:v,children:_,rootClassName:w,mode:C,selectable:k,onClick:x,overflowedIndicatorPopupClassName:D}=e,S=Qs(s$(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),E=Yp(v)||_;null===(n=i.validator)||void 0===n||n.call(i,{mode:C});const O=Nl((function(){var e;null==x||x.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),P=i.mode||C,I=null!=k?k:i.selectable,N=gv.useMemo((()=>void 0!==y?y:b),[b,y]),A={horizontal:{motionName:`${u}-slide-up`},inline:G2(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",p||i.prefixCls),[T,$]=((e,t)=>Fl("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:p,darkItemSelectedBg:d,darkDangerItemSelectedBg:f,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:h,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:_}=e,w=a/7*5,C=$l(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*w+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=$l(C,{itemColor:s,itemHoverColor:h,groupTitleColor:g,itemSelectedColor:p,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:_,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[F4(C),P4(C),T4(C),A4(C,"light"),A4(k,"dark"),I4(C),H5(C),E5(C,"slide-up"),E5(C,"slide-down"),B5(C,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:p,controlItemBgActive:d,colorBgTextHover:f,controlHeightLG:m,lineHeight:g,colorBgElevated:h,marginXXS:b,padding:y,fontSize:v,controlHeightSM:_,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:k}=e,x=new OP(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:g,collapsedWidth:2*m,popupBg:h,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*m+"px",iconSize:v,iconMarginInlineEnd:_-v,collapsedIconSize:w,groupTitleFontSize:v,darkItemDisabledColor:new OP(C).setAlpha(.25).toRgbString(),darkItemColor:x,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:x,darkItemHoverColor:C,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(R,!o),j=f0(`${R}-${m}`,null==c?void 0:c.className,d);let F;if("function"==typeof g)F=g;else{const e=g||i.expandIcon;F=lc(e,{className:f0(`${R}-submenu-expand-icon`,P1(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const L=gv.useMemo((()=>({prefixCls:R,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:m,mode:P,disableMenuItemTitleTooltip:h})),[R,N,l,h,m]);return T(gv.createElement(O4.Provider,{value:null},gv.createElement(k4.Provider,{value:L},gv.createElement(o$,Object.assign({getPopupContainer:s,overflowedIndicator:gv.createElement(E4,null),overflowedIndicatorPopupClassName:f0(R,`${R}-${m}`,D),mode:P,selectable:I,onClick:O},S,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:j,prefixCls:R,direction:l,defaultMotions:A,expandIcon:F,ref:t,rootClassName:f0(w,$)}),E))))})),M4=gv.forwardRef(((e,t)=>{const n=gv.useRef(null),r=gv.useContext(w4);return gv.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),gv.createElement(L4,Object.assign({ref:n},e,r))}));M4.Item=x4,M4.SubMenu=D4,M4.Divider=C4,M4.ItemGroup=Vp;const U4=M4,B4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),H4=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),z4=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),W4=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},H4($l(e,{inputBorderHoverColor:e.colorBorder})))}),V4=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},G4=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),q4=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},z4($l(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},z4($l(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},X4=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},B4(e.colorTextPlaceholder)),{"&:hover":Object.assign({},H4(e)),"&:focus, &-focused":Object.assign({},z4(e)),"&-disabled, &[disabled]":Object.assign({},W4(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},V4(e)),"&-sm":Object.assign({},G4(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),K4=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},V4(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},G4(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Y4=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),X4(e)),q4(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Q4=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},J4=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X4(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H4(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Q4(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),q4(e,`${t}-affix-wrapper`))}},Z4=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},V0(e)),K4(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},W4(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}}}})}},e8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},t8=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},n8=Fl("Input",(e=>{const t=Qp(e);return[Y4(t),t8(t),J4(t),Z4(t),e8(t),Pc(t)]})),r8=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=f0({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=f0({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=gv.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return gv.createElement("span",{className:f0(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},o8=new UO("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),i8=e=>({height:e,lineHeight:`${e}px`}),a8=e=>Object.assign({width:e},i8(e)),s8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:o8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),l8=e=>Object.assign({width:5*e,minWidth:5*e},i8(e)),c8=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},a8(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},a8(o)),[`${t}${t}-sm`]:Object.assign({},a8(i))}},u8=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},l8(t)),[`${r}-lg`]:Object.assign({},l8(o)),[`${r}-sm`]:Object.assign({},l8(i))}},p8=e=>Object.assign({width:e},i8(e)),d8=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},p8(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},p8(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},f8=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},m8=e=>Object.assign({width:2*e,minWidth:2*e},i8(e)),g8=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},m8(r))},f8(e,r,n)),{[`${n}-lg`]:Object.assign({},m8(o))}),f8(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},m8(i))}),f8(e,i,`${n}-sm`))},h8=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},a8(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},a8(c)),[`${n}-sm`]:Object.assign({},a8(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:p,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:p,borderRadius:h,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},g8(e)),c8(e)),u8(e)),d8(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},s8(e))}}},b8=Fl("Skeleton",(e=>{const{componentCls:t}=e,n=$l(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[h8(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),y8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},v8=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:y8}))})),_8=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=Ca(Array(i)).map(((e,n)=>gv.createElement("li",{key:n,style:{width:t(n)}})));return gv.createElement("ul",{className:f0(n,r),style:o},a)},w8=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return gv.createElement("h3",{className:f0(t,n),style:Object.assign({width:r},o)})},C8=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:p}=e,{getPrefixCls:d,direction:f,skeleton:m}=gv.useContext(H0),g=d("skeleton",t),[h,b]=b8(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Jp(s));a=gv.createElement("div",{className:`${g}-header`},gv.createElement(r8,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Jp(l));r=gv.createElement(w8,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Jp(c));o=gv.createElement(_8,Object.assign({},n))}d=gv.createElement("div",{className:`${g}-content`},r,o)}const y=f0(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:p},null==m?void 0:m.className,r,o,b);return h(gv.createElement("div",{className:y,style:Object.assign(Object.assign({},null==m?void 0:m.style),i)},a,d))}return void 0!==a?a:null};C8.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=gv.useContext(H0),l=s("skeleton",t),[c,u]=b8(l),p=Qs(e,["prefixCls"]),d=f0(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(gv.createElement("div",{className:d},gv.createElement(r8,Object.assign({prefixCls:`${l}-button`,size:a},p))))},C8.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=gv.useContext(H0),l=s("skeleton",t),[c,u]=b8(l),p=Qs(e,["prefixCls","className"]),d=f0(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(gv.createElement("div",{className:d},gv.createElement(r8,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},p))))},C8.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=gv.useContext(H0),l=s("skeleton",t),[c,u]=b8(l),p=Qs(e,["prefixCls"]),d=f0(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(gv.createElement("div",{className:d},gv.createElement(r8,Object.assign({prefixCls:`${l}-input`,size:a},p))))},C8.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=gv.useContext(H0),s=a("skeleton",t),[l,c]=b8(s),u=f0(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(gv.createElement("div",{className:u},gv.createElement("div",{className:f0(`${s}-image`,n),style:o},gv.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},gv.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},C8.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=gv.useContext(H0),l=s("skeleton",t),[c,u]=b8(l),p=f0(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),d=null!=a?a:gv.createElement(v8,null);return c(gv.createElement("div",{className:p},gv.createElement("div",{className:f0(`${l}-image`,n),style:o},d)))};const k8=C8,x8={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"},D8=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:x8}))})),S8=gv.createContext(null);l$=gv.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return gv.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:f0(n,a&&"".concat(n,"-active"),r),ref:t},l)})),c$=["key","forceRender","style","className"],u$={width:0,height:0,left:0,top:0},p$=.1,d$=.01,f$=20,m$=Math.pow(.995,f$),g$={width:0,height:0,left:0,top:0,right:0},h$="TABS_DQ";const E8=gv.forwardRef(id);b$=gv.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==ki(a)||gv.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?gv.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const O8=gv.memo(gv.forwardRef(ad),(function(e,t){return t.tabMoving}));y$=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},v$=function(e,t){return e[t?0:1]};const P8=gv.forwardRef(ld);_$=["renderTabBar"],w$=["label","key"],C$=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],k$=0,x$=gv.forwardRef(ud);const I8={motionAppear:!1,motionEnter:!0,motionLeave:!0};D$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[E5(e,"slide-up"),E5(e,"slide-down")]]},A8=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},R8=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},V0(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},W0),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},T8=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},$8=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j8=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},K0(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},F8=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},L8=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},K0(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j8(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},M8=Fl("Tabs",(e=>{const t=$l(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[$8(t),F8(t),T8(t),R8(t),A8(t),L8(t),N8(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));S$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:p,animated:d,style:f}=e,m=S$(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:g,moreIcon:h=gv.createElement(E4,null)}=m,{direction:b,tabs:y,getPrefixCls:v,getPopupContainer:_}=gv.useContext(H0),w=v("tabs",g),[C,k]=M8(w);let x;"editable-card"===t&&(x={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:gv.createElement(x1,null),addIcon:l||gv.createElement(D8,null),showAdd:!0!==a});const D=v(),S=function(e,t){return e||function(e){return e.filter((e=>e))}(Ms(t).map((e=>{if(gv.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=D$(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(p,u),E=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},I8),{motionName:q2(e,"switch")})),n}(w,d),O=Z1(o),P=Object.assign(Object.assign({},null==y?void 0:y.style),f);return C(gv.createElement(x$,Object.assign({direction:b,getPopupContainer:_,moreTransitionName:`${D}-slide-up`},m,{items:S,className:f0({[`${w}-${O}`]:O,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:"editable-card"===t,[`${w}-centered`]:s},null==y?void 0:y.className,n,r,k),popupClassName:f0(c,k),style:P,editable:x,moreIcon:h,prefixCls:w,animated:E})))};U8.TabPane=()=>null;const B8=U8,H8=gv.createContext({}),z8=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},W8=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},V8=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"},o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),G8=Fl("Grid",(e=>[z8(e)])),q8=Fl("Grid",(e=>{const t=$l(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[W8(t),V8(t,""),V8(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},V8(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));E$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=gv.useContext(H0),{gutter:o,wrap:i,supportFlexGap:a}=gv.useContext(H8),{prefixCls:s,span:l,order:c,offset:u,push:p,pull:d,className:f,children:m,flex:g,style:h}=e,b=E$(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",s),[v,_]=q8(y);let w={};X8.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${y}-rtl`]:"rtl"===r})}));const C=f0(y,{[`${y}-${l}`]:void 0!==l,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${p}`]:p,[`${y}-pull-${d}`]:d},f,w,_),k={};if(o&&o[0]>0){const e=o[0]/2;k.paddingLeft=e,k.paddingRight=e}if(o&&o[1]>0&&!a){const e=o[1]/2;k.paddingTop=e,k.paddingBottom=e}return g&&(k.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(g),!1!==i||k.minWidth||(k.minWidth=0)),v(gv.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},k),h),className:C,ref:t}),m))})),Y8=()=>{const[e,t]=gv.useState(!1);return gv.useEffect((()=>{t((()=>{if(!K2())return!1;if(void 0!==Y2)return Y2;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),Y2=1===e.scrollHeight,document.body.removeChild(t),Y2})())}),[]),e};O$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=O$(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=gv.useContext(H0),[f,m]=gv.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,h]=gv.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=pd(o,g),y=pd(r,g),v=Y8(),_=gv.useRef(l),w=yp();gv.useEffect((()=>{const e=w.subscribe((e=>{h(e);const t=_.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&m(e)}));return()=>w.unsubscribe(e)}),[]);const C=p("row",n),[k,x]=G8(C),D=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?D[0]/-2:void 0,P=null!=D[1]&&D[1]>0?D[1]/-2:void 0;O&&(E.marginLeft=O,E.marginRight=O),v?[,E.rowGap]=D:P&&(E.marginTop=P,E.marginBottom=P);const[I,N]=D,A=gv.useMemo((()=>({gutter:[I,N],wrap:c,supportFlexGap:v})),[I,N,c,v]);return k(gv.createElement(H8.Provider,{value:A},gv.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},E),a),ref:t}),s)))}));(P$=OZ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=Wa(OZ.useState(l||o),2),p=u[0],d=u[1];return OZ.useEffect((function(){(o||l)&&d(!0)}),[o,l]),p?OZ.createElement("div",{ref:t,className:f0("".concat(r,"-content"),(n={},Di(n,"".concat(r,"-content-active"),l),Di(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},OZ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",I$=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],N$=OZ.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,p=e.forceRender,d=e.className,f=e.prefixCls,m=e.collapsible,g=e.accordion,h=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,_=e.openMotion,w=e.destroyInactivePanel,C=e.children,k=Si(e,I$),x="disabled"===m,D="header"===m,S="icon"===m,E=null!=b&&"boolean"!=typeof b,O=function(){null==u||u(h)},P="function"==typeof v?v(e):OZ.createElement("i",{className:"arrow"});return P&&(P=OZ.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},P)),o=f0((Di(n={},"".concat(f,"-item"),!0),Di(n,"".concat(f,"-item-active"),c),Di(n,"".concat(f,"-item-disabled"),x),n),d),i={className:f0(l,(Di(r={},"".concat(f,"-header"),!0),Di(r,"".concat(f,"-header-collapsible-only"),D),Di(r,"".concat(f,"-icon-collapsible-only"),S),r)),"aria-expanded":c,"aria-disabled":x,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==hN.ENTER&&e.which!==hN.ENTER||O()}},D||S||(i.onClick=O,i.role=g?"tab":"button",i.tabIndex=x?-1:0),OZ.createElement("div",fa({},k,{ref:t,className:o}),OZ.createElement("div",i,s&&P,OZ.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===m?O:void 0},y),E&&OZ.createElement("div",{className:"".concat(f,"-extra")},b)),OZ.createElement(s1,fa({visible:c,leavedClassName:"".concat(f,"-content-hidden")},_,{forceRender:p,removeOnLeave:w}),(function(e,t){return OZ.createElement(P$,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:p,role:g?"tabpanel":void 0},C)})))})),A$=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],R$=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,p=e.children,d=e.label,f=e.key,m=e.collapsible,g=e.onItemClick,h=e.destroyInactivePanel,b=Si(e,A$),y=String(null!=f?f:t),v=null!=m?m:o,_=null!=h?h:i;return u=r?s[0]===y:s.indexOf(y)>-1,OZ.createElement(N$,fa({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==g||g(e))},destroyInactivePanel:_}),p)}))},T$=function(e,t,n){var r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,p=e.key||String(t),f=(d=e.props).header,m=d.headerClass,g=d.destroyInactivePanel,h=d.collapsible,b=d.onItemClick,y=o?l[0]===p:l.indexOf(p)>-1,_={key:p,panelKey:p,header:f,headerClass:m,isActive:y,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=h?h:i},"string"==typeof e.type?e:(Object.keys(_).forEach((function(e){void 0===_[e]&&delete _[e]})),OZ.cloneElement(e,_))):null};const J8=Object.assign(OZ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,p=e.openMotion,d=e.expandIcon,f=e.activeKey,m=e.defaultActiveKey,g=e.onChange,h=e.items,b=f0(o,e.className),y=Wa(Tl([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:m,postState:dd}),2),v=y[0],_=y[1];return Ia(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?R$(e,n):Ms(t).map((function(e,t){return T$(e,t,n)}))}(h,c,{prefixCls:o,accordion:l,openMotion:p,expandIcon:d,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return _((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(Ca(v),[e])}))},activeKey:v}),OZ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:N$}),Z8=gv.forwardRef(((e,t)=>{const{getPrefixCls:n}=gv.useContext(H0),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=f0({[`${a}-no-arrow`]:!i},o);return gv.createElement(J8.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),e6=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:p,colorBorder:d,colorText:f,colorTextHeading:m,colorTextDisabled:g,fontSize:h,fontSizeLG:b,lineHeight:y,marginSM:v,paddingSM:_,paddingLG:w,paddingXS:C,motionDurationSlow:k,fontSizeIcon:x}=e,D=`${u}px ${p} ${d}`;return{[t]:Object.assign(Object.assign({},V0(e)),{backgroundColor:i,border:D,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:D,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:_,color:m,lineHeight:y,cursor:"pointer",transition:`all ${k}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*y,display:"flex",alignItems:"center",paddingInlineEnd:v,marginInlineStart:r-_},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:x,svg:{transition:`transform ${k}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:D,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:_-C}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},t6=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},n6=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},r6=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},o6=Fl("Collapse",(e=>{const t=$l(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[e6(t),n6(t),r6(t),t6(t),H5(t)]})),i6=gv.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=gv.useContext(H0),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:p,expandIconPosition:d="start",children:f,expandIcon:m}=e,g=Z1((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),h=n("collapse",i),b=n(),[y,v]=o6(h),_=gv.useMemo((()=>"left"===d?"start":"right"===d?"end":d),[d]),w=f0(`${h}-icon-position-${_}`,{[`${h}-borderless`]:!c,[`${h}-rtl`]:"rtl"===r,[`${h}-ghost`]:!!u,[`${h}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,s,v),C=Object.assign(Object.assign({},G2(b)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),k=gv.useMemo((()=>f?Ms(f).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return lc(e,Object.assign(Object.assign({},Qs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(gv.createElement(J8,Object.assign({ref:t,openMotion:C},Qs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=m?m(t):gv.createElement(y4,{rotate:t.isActive?90:void 0});return lc(n,(()=>({className:f0(n.props.className,`${h}-arrow`)})))},prefixCls:h,className:w,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),k))})),a6=Object.assign(i6,{Panel:Z8}),s6=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},V0(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},l6=Fl("Divider",(e=>{const t=$l(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[s6(t)]}),{sizePaddingEdgeHorizontal:0});$$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:r}=gv.useContext(H0),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:p,plain:d,style:f}=e,m=$$(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[h,b]=l6(g),y=!!u,v="left"===a&&null!=s,_="right"===a&&null!=s,w=f0(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${a.length>0?`-${a}`:a}`]:y,[`${g}-dashed`]:!!p,[`${g}-plain`]:!!d,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:v,[`${g}-no-default-orientation-margin-right`]:_},l,c),C=gv.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),k=Object.assign(Object.assign({},v&&{marginLeft:C}),_&&{marginRight:C});return h(gv.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},m,{role:"separator"}),u&&"vertical"!==i&&gv.createElement("span",{className:`${g}-inner-text`,style:k},u)))},u6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},p6=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:u6}))}));j$=function(){function e(t){var n,r,o,i;Oi(this,e),Di(this,"origin",""),Di(this,"negative",void 0),Di(this,"integer",void 0),Di(this,"decimal",void 0),Di(this,"decimalLen",void 0),Di(this,"empty",void 0),Di(this,"nan",void 0),md(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(hd(n=t)&&(n=Number(n)),vd(n="string"==typeof n?n:yd(n))?(r=gd(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return Ii(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=gd(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":gd("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),F$=function(){function e(t){Oi(this,e),Di(this,"origin",""),Di(this,"number",void 0),Di(this,"empty",void 0),md(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ii(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":yd(this.number)}}]),e}(),L$=function(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,m,g=e.inputElement,h=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,_=e.addonAfter,w=e.className,C=e.style,k=e.disabled,x=e.readOnly,D=e.focused,S=e.triggerFocus,E=e.allowClear,O=e.value,P=e.handleReset,I=e.hidden,N=e.classes,A=e.classNames,R=e.dataAttrs,T=e.styles,$=e.components,j=(null==$?void 0:$.affixWrapper)||"span",F=(null==$?void 0:$.groupWrapper)||"span",L=(null==$?void 0:$.wrapper)||"span",M=(null==$?void 0:$.groupAddon)||"span",U=gv.useRef(null),B=gv.cloneElement(g,{value:O,hidden:I,className:f0(null===(t=g.props)||void 0===t?void 0:t.className,!kd(e)&&!Cd(e)&&w)||null,style:xa(xa({},null===(n=g.props)||void 0===n?void 0:n.style),kd(e)||Cd(e)?{}:C)});return kd(e)&&(o="".concat(h,"-affix-wrapper"),i=f0(o,(Di(r={},"".concat(o,"-disabled"),k),Di(r,"".concat(o,"-focused"),D),Di(r,"".concat(o,"-readonly"),x),Di(r,"".concat(o,"-input-with-clear-btn"),y&&E&&O),r),!Cd(e)&&w,null==N?void 0:N.affixWrapper,null==A?void 0:A.affixWrapper),a=(y||E)&&OZ.createElement("span",{className:f0("".concat(h,"-suffix"),null==A?void 0:A.suffix),style:null==T?void 0:T.suffix},E?(d=!k&&!x&&O,f="".concat(h,"-clear-icon"),m="object"===ki(E)&&null!=E&&E.clearIcon?E.clearIcon:"โœ–",OZ.createElement("span",{onClick:P,onMouseDown:function(e){return e.preventDefault()},className:f0(f,(p={},Di(p,"".concat(f,"-hidden"),!d),Di(p,"".concat(f,"-has-suffix"),!!y),p)),role:"button",tabIndex:-1},m)):null,y),B=OZ.createElement(j,fa({className:i,style:xa(xa({},Cd(e)?void 0:C),null==T?void 0:T.affixWrapper),hidden:!Cd(e)&&I,onClick:function(e){var t;null!==(t=U.current)&&void 0!==t&&t.contains(e.target)&&(null==S||S())}},null==R?void 0:R.affixWrapper,{ref:U}),b&&OZ.createElement("span",{className:f0("".concat(h,"-prefix"),null==A?void 0:A.prefix),style:null==T?void 0:T.prefix},b),gv.cloneElement(g,{value:O,hidden:null}),a)),Cd(e)?(s="".concat(h,"-group"),l="".concat(s,"-addon"),c=f0("".concat(h,"-wrapper"),s,null==N?void 0:N.wrapper),u=f0("".concat(h,"-group-wrapper"),w,null==N?void 0:N.group),OZ.createElement(F,{className:u,style:C,hidden:I},OZ.createElement(L,{className:c},v&&OZ.createElement(M,{className:l},v),gv.cloneElement(B,{hidden:null}),_&&OZ.createElement(M,{className:l},_)))):B},M$=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],U$=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,p=e.onFocus,d=e.onBlur,f=e.onPressEnter,m=e.onKeyDown,g=e.prefixCls,h=void 0===g?"rc-input":g,b=e.disabled,y=e.htmlSize,v=e.className,_=e.maxLength,w=e.suffix,C=e.showCount,k=e.type,x=void 0===k?"text":k,D=e.classes,S=e.classNames,E=e.styles,O=Si(e,M$),P=Wa(Tl(e.defaultValue,{value:e.value}),2),I=P[0],N=P[1],A=Wa(gv.useState(!1),2),R=A[0],T=A[1],$=gv.useRef(null),j=function(e){$.current&&Dd($.current,e)};return gv.useImperativeHandle(t,(function(){return{focus:j,blur:function(){var e;null===(e=$.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=$.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=$.current)||void 0===e||e.select()},input:$.current}})),gv.useEffect((function(){T((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&N(t.target.value),$.current&&xd($.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==m||m(e)},o=function(e){T(!0),null==p||p(e)},i=function(e){T(!1),null==d||d(e)},a=function(e){N(""),j(),$.current&&xd($.current,e,u)},s=function(){var t=Qs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return OZ.createElement("input",fa({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:f0(h,Di({},"".concat(h,"-disabled"),b),null==S?void 0:S.input),style:null==E?void 0:E.input,ref:$,size:y,type:x}))},l=function(){var e,t,n,r=Number(_)>0;return w||C?(t=Ca(e=Sd(I)).length,n="object"===ki(C)?C.formatter({value:e,count:t,maxLength:_}):"".concat(t).concat(r?" / ".concat(_):""),OZ.createElement(OZ.Fragment,null,!!C&&OZ.createElement("span",{className:f0("".concat(h,"-show-count-suffix"),Di({},"".concat(h,"-show-count-has-suffix"),!!w),null==S?void 0:S.count),style:xa({},null==E?void 0:E.count)},n),w)):null},OZ.createElement(L$,fa({},O,{prefixCls:h,className:v,inputElement:s(),handleReset:a,value:Sd(I),focused:R,triggerFocus:j,suffix:l(),disabled:b,classes:D,classNames:S,styles:E}))})),B$=function(){var e=Wa(gv.useState(!1),2),t=e[0],n=e[1];return iO((function(){n(b3())}),[]),t},H$=200,z$=600,W$=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],V$=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],G$=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},q$=function(e){var t=_d(e);return t.isInvalidate()?null:t},X$=gv.forwardRef((function(e,t){function n(e,t){Ce(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N=e.prefixCls,A=void 0===N?"rc-input-number":N,R=e.className,T=e.style,$=e.min,j=e.max,F=e.step,L=void 0===F?1:F,M=e.defaultValue,U=e.value,B=e.disabled,H=e.readOnly,z=e.upHandler,W=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.classNames,K=e.stringMode,Y=e.parser,Q=e.formatter,J=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=Si(e,W$),ie="".concat(A,"-input"),ae=gv.useRef(null),se=Wa(gv.useState(!1),2),le=se[0],ce=se[1],ue=gv.useRef(!1),pe=gv.useRef(!1),de=gv.useRef(!1),fe=Wa(gv.useState((function(){return _d(null!=U?U:M)})),2),me=fe[0],ge=fe[1],he=gv.useCallback((function(e,t){if(!t)return J>=0?J:Math.max(bd(e),bd(L))}),[J,L]),be=gv.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=gv.useRef(""),ve=gv.useCallback((function(e,t){var n,r;return Q?Q(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?yd(e):e,t||(r=he(n,t),vd(n)&&(Z||r>=0)&&(n=wd(n,Z||".",r))),n)}),[Q,he,Z]),_e=Wa(gv.useState((function(){var e=null!=M?M:U;return me.isInvalidate()&&["string","number"].includes(ki(e))?Number.isNaN(e)?"":e:ve(me.toString(),!1)})),2),we=_e[0],Ce=_e[1];return ye.current=we,o=gv.useMemo((function(){return q$(j)}),[j,J]),i=gv.useMemo((function(){return q$($)}),[$,J]),a=gv.useMemo((function(){return!(!o||!me||me.isInvalidate())&&o.lessEquals(me)}),[o,me]),s=gv.useMemo((function(){return!(!i||!me||me.isInvalidate())&&me.lessEquals(i)}),[i,me]),S=ae.current,E=le,O=gv.useRef(null),l=[function(){var e,t,n,r,o;try{t=S.selectionEnd,r=(n=S.value).substring(0,e=S.selectionStart),o=n.substring(t),O.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(LJ){}},function(){var e,t,n,r,o,i;if(S&&O.current&&E)try{n=(t=O.current).beforeTxt,r=t.start,o=(e=S.value).length,e.endsWith(t.afterTxt)?o=e.length-O.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),S.setSelectionRange(o,o)}catch(LJ){Ia(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(LJ.message))}}],c=Wa(l,2),u=c[0],p=c[1],d=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!d(e)},m=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=d(i)||i,a=!0),H||B||!a?me:(r=i.toString(),(o=he(r,t))>=0&&(i=_d(wd(r,".",o)),f(i)||(i=_d(wd(r,".",o,!0)))),i.equals(me)||(void 0===U&&ge(i),null==ee||ee(i.isEmpty()?null:G$(K,i)),void 0===U&&n(i,t)),i)},P=gv.useRef(0),I=function(){wP.cancel(P.current)},gv.useEffect((function(){return I}),[]),g=function(e){I(),P.current=wP((function(){e()}))},h=function e(t){var n;u(),ye.current=t,Ce(t),pe.current||(n=_d(be(t))).isNaN()||m(n,!0),null==te||te(t),g((function(){var n=t;Y||(n=t.replace(/ใ€‚/g,".")),n!==t&&e(n)}))},b=function(){pe.current=!0},y=function(){pe.current=!1,h(ae.current.value)},v=function(e){h(e.target.value)},_=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=_d(de.current?Od(L):L),e||(n=n.negate()),r=(me||_d(0)).add(n.toString()),o=m(r,!1),null==re||re(G$(K,o),{offset:de.current?Od(L):L,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},w=function(e){var t=_d(be(we)),r=t;r=t.isNaN()?m(me,e):m(t,e),void 0!==U?n(me,!1):r.isNaN()||n(r,!1)},C=function(){ue.current=!0},k=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,de.current=n,"Enter"===t&&(pe.current||(ue.current=!1),w(!1),null==ne||ne(e)),!1!==V&&!pe.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(_("Up"===t||"ArrowUp"===t),e.preventDefault())},x=function(){ue.current=!1,de.current=!1},D=function(){w(!1),ce(!1),ue.current=!1},aO((function(){me.isInvalidate()||n(me,!1)}),[J]),aO((function(){var e,t=_d(U);ge(t),e=_d(be(we)),t.equals(e)&&ue.current&&!Q||n(t,ue.current)}),[U]),aO((function(){Q&&p()}),[we]),gv.createElement("div",{className:f0(A,null==X?void 0:X.input,R,(r={},Di(r,"".concat(A,"-focused"),le),Di(r,"".concat(A,"-disabled"),B),Di(r,"".concat(A,"-readonly"),H),Di(r,"".concat(A,"-not-a-number"),me.isNaN()),Di(r,"".concat(A,"-out-of-range"),!me.isInvalidate()&&!f(me)),r)),style:T,onFocus:function(){ce(!0)},onBlur:D,onKeyDown:k,onKeyUp:x,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:C},q&&gv.createElement(Ed,{prefixCls:A,upNode:z,downNode:W,upDisabled:a,downDisabled:s,onStep:_}),gv.createElement("div",{className:"".concat(ie,"-wrap")},gv.createElement("input",fa({autoComplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":j,"aria-valuenow":me.isInvalidate()?null:me.toString(),step:L},oe,{ref:Bs(ae,t),className:ie,value:we,onChange:v,disabled:B,readOnly:H}))))})),(K$=gv.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,p=e.className,d=e.classNames,f=Si(e,V$),m=gv.useRef(null);return gv.createElement(L$,{inputElement:gv.createElement(X$,fa({prefixCls:o,disabled:n,classNames:d,ref:Bs(m,t)},f)),className:p,triggerFocus:function(e){m.current&&Dd(m.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const d6=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},f6=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:p,motionDurationMid:d,colorPrimary:f,inputPaddingHorizontal:m,inputPaddingVertical:g,colorBgContainer:h,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:v,controlWidth:_,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),X4(e)),q4(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:v,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},H4(e)),"&-focused":Object.assign({},z4(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},V0(e)),K4(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:v,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},W4(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{width:"100%",padding:`${g}px ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${d} linear`,appearance:"textfield",fontSize:"inherit"}),B4(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${d} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:p,transition:`all ${d} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},d6(e,"lg")),d6(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:b}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},m6=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},X4(e)),q4(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H4(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},g6=Fl("InputNumber",(e=>{const t=Qp(e);return[f6(t),m6(t),Pc(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));Y$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=gv.useContext(H0),o=gv.useRef(null);gv.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:p,prefix:d,bordered:f=!0,readOnly:m,status:g,controls:h}=e,b=Y$(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,_]=g6(y),{compactSize:w,compactItemClassnames:C}=o2(y,r);let k=gv.createElement(p6,{className:`${y}-handler-up-inner`}),x=gv.createElement(z3,{className:`${y}-handler-down-inner`});const D="boolean"==typeof h?h:void 0;"object"==typeof h&&(k=void 0===h.upIcon?k:gv.createElement("span",{className:`${y}-handler-up-inner`},h.upIcon),x=void 0===h.downIcon?x:gv.createElement("span",{className:`${y}-handler-down-inner`},h.downIcon));const{hasFeedback:S,status:E,isFormItemInput:O,feedbackIcon:P}=gv.useContext(t5),I=_3(E,g),N=Z1((e=>{var t;return null!==(t=null!=s?s:w)&&void 0!==t?t:e})),A=gv.useContext(r1),R=null!=l?l:A,T=f0({[`${y}-lg`]:"large"===N,[`${y}-sm`]:"small"===N,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:O},mp(y,I),C,_),$=`${y}-group`;return v(gv.createElement(K$,Object.assign({ref:o,disabled:R,className:f0(i,a),upHandler:k,downHandler:x,prefixCls:y,readOnly:m,controls:D,prefix:d,suffix:S&&P,addonAfter:p&&gv.createElement(i2,null,gv.createElement(n5,{override:!0,status:!0},p)),addonBefore:u&&gv.createElement(i2,null,gv.createElement(n5,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:f0(mp(`${y}-affix-wrapper`,I,S),{[`${y}-affix-wrapper-sm`]:"small"===N,[`${y}-affix-wrapper-lg`]:"large"===N,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},_),wrapper:f0({[`${$}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:R},_),group:f0({[`${y}-group-wrapper-sm`]:"small"===N,[`${y}-group-wrapper-lg`]:"large"===N,[`${y}-group-wrapper-rtl`]:"rtl"===r},mp(`${y}-group-wrapper`,I,S),_)}},b)))})),b6=h6;b6._InternalPanelDoNotUseOrYouWillBeFired=e=>gv.createElement(g1,{theme:{components:{InputNumber:{handleVisible:!0}}}},gv.createElement(h6,Object.assign({},e)));const y6=b6;Q$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:p,addonAfter:d,addonBefore:f,className:m,style:g,styles:h,rootClassName:b,onChange:y,classNames:v}=e,_=Q$(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:C,input:k}=OZ.useContext(H0),x=w("input",r),D=gv.useRef(null),[S,E]=n8(x),{compactSize:O,compactItemClassnames:P}=o2(x,C),I=Z1((e=>{var t;return null!==(t=null!=a?a:O)&&void 0!==t?t:e})),N=OZ.useContext(r1),A=null!=s?s:N,{status:R,hasFeedback:T,feedbackIcon:$}=gv.useContext(t5),j=_3(R,i),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T,L=gv.useRef(F);gv.useEffect((()=>{L.current=F}),[F]);const M=Pd(D,!0),U=(T||u)&&OZ.createElement(OZ.Fragment,null,u,T&&$);let B;return"object"==typeof p&&(null==p?void 0:p.clearIcon)?B=p:p&&(B={clearIcon:OZ.createElement(C1,null)}),S(OZ.createElement(U$,Object.assign({ref:Bs(t,D),prefixCls:x,autoComplete:null==k?void 0:k.autoComplete},_,{disabled:A,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),g),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),h),suffix:U,allowClear:B,className:f0(m,b,P,null==k?void 0:k.className),onChange:e=>{M(),null==y||y(e)},addonAfter:d&&OZ.createElement(i2,null,OZ.createElement(n5,{override:!0,status:!0},d)),addonBefore:f&&OZ.createElement(i2,null,OZ.createElement(n5,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==k?void 0:k.classNames),{input:f0({[`${x}-sm`]:"small"===I,[`${x}-lg`]:"large"===I,[`${x}-rtl`]:"rtl"===C,[`${x}-borderless`]:!o},!F&&mp(x,j),null==v?void 0:v.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,E)}),classes:{affixWrapper:f0({[`${x}-affix-wrapper-sm`]:"small"===I,[`${x}-affix-wrapper-lg`]:"large"===I,[`${x}-affix-wrapper-rtl`]:"rtl"===C,[`${x}-affix-wrapper-borderless`]:!o},mp(`${x}-affix-wrapper`,j,T),E),wrapper:f0({[`${x}-group-rtl`]:"rtl"===C},E),group:f0({[`${x}-group-wrapper-sm`]:"small"===I,[`${x}-group-wrapper-lg`]:"large"===I,[`${x}-group-wrapper-rtl`]:"rtl"===C,[`${x}-group-wrapper-disabled`]:A},mp(`${x}-group-wrapper`,j,T),E)}})))})),_6=v6,w6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},C6=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:w6}))})),k6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},x6=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:k6}))}));J$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rgv.createElement(e?x6:C6,null),S6={click:"onClick",hover:"onMouseOver"},E6=gv.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=gv.useState((()=>!!r&&n.visible)),a=gv.useRef(null);gv.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=Pd(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:p,size:d}=e,f=J$(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=gv.useContext(H0),g=m("input",p),h=m("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=D6}=e,i=S6[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return gv.cloneElement(gv.isValidElement(a)?a:gv.createElement("span",null,a),s)})(h),y=f0(h,c,{[`${h}-${d}`]:!!d}),v=Object.assign(Object.assign({},Qs(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:g,suffix:b});return d&&(v.size=d),gv.createElement(_6,Object.assign({ref:Bs(t,a)},v))})),O6=E6;Z$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:f,onCompositionEnd:m}=e,g=Z$(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=gv.useContext(H0),y=gv.useRef(!1),v=h("input-search",n),_=h("input",r),{compactSize:w}=o2(v,b),C=Z1((e=>{var t;return null!==(t=null!=i?i:w)&&void 0!==t?t:e})),k=gv.useRef(null),x=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},D=e=>{var t,n;p&&p(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},S="boolean"==typeof s?gv.createElement(V3,null):null,E=`${v}-button`;let O;const P=s||{},I=P.type&&!0===P.type.__ANT_BUTTON;O=I||"button"===P.type?lc(P,Object.assign({onMouseDown:x,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),D(e)},key:"enterButton"},I?{className:E,size:C}:{})):gv.createElement(U2,{className:E,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:x,onClick:D,loading:c,icon:S},s),l&&(O=[O,lc(l,{key:"addonAfter"})]);const N=f0(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${C}`]:!!C,[`${v}-with-button`]:!!s},o);return gv.createElement(_6,Object.assign({ref:Bs(k,t),onPressEnter:e=>{y.current||c||D(e)}},g,{size:C,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:_,addonAfter:O,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),d&&d(e)},className:N,disabled:u}))})),I6=P6;ej=["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"],tj={},rj=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oj=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E,O,P,I,N,A,R=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Si(e,rj),d=(p=Wa(Tl(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=p[1],m=function(e){f(e.target.value),null==c||c(e)},g=gv.useRef(),gv.useImperativeHandle(t,(function(){return{textArea:g.current}})),h=Wa(gv.useMemo((function(){return o&&"object"===ki(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=h[0],y=h[1],v=!!o,_=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(LJ){}},w=Wa(gv.useState(2),2),C=w[0],k=w[1],D=(x=Wa(gv.useState(),2))[0],S=x[1],E=function(){k(0)},iO((function(){v&&E()}),[r,b,y,v]),iO((function(){if(0===C)k(1);else if(1===C){var e=function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,m=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,h=arguments.length>3&&void 0!==r?r:null;return nj||((nj=document.createElement("textarea")).setAttribute("tab-index","-1"),nj.setAttribute("aria-hidden","true"),document.body.appendChild(nj)),e.getAttribute("wrap")?nj.setAttribute("wrap",e.getAttribute("wrap")):nj.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&tj[l]?tj[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:ej.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(tj[l]=a),a)}(e,m),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,nj.setAttribute("style","".concat(o.sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),nj.value=e.value||e.placeholder||"",l=void 0,c=void 0,p=nj.scrollHeight,"border-box"===s?p+=a:"content-box"===s&&(p-=i),null===g&&null===h||(nj.value=" ",d=nj.scrollHeight-i,null!==g&&(l=d*g,"border-box"===s&&(l=l+i+a),p=Math.max(l,p)),null!==h&&(c=d*h,"border-box"===s&&(c=c+i+a),u=p>c?"":"hidden",p=Math.min(c,p))),f={height:p,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(g.current,!1,b,y);k(2),S(e)}else _()}),[C]),O=gv.useRef(),P=function(){wP.cancel(O.current)},I=function(e){2===C&&(null==i||i(e),o&&(P(),O.current=wP((function(){E()}))))},gv.useEffect((function(){return P}),[]),N=v?D:null,A=xa(xa({},s),N),0!==C&&1!==C||(A.overflowY="hidden",A.overflowX="hidden"),gv.createElement(hP,{onResize:I,disabled:!(o||i)},gv.createElement("textarea",fa({},u,{ref:g,style:A,className:f0(R,a,Di({},"".concat(R,"-disabled"),l)),disabled:l,value:d,onChange:m})))})),ij=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],aj=OZ.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b=e.defaultValue,y=e.value,v=e.onFocus,_=e.onBlur,w=e.onChange,C=e.allowClear,k=e.maxLength,x=e.onCompositionStart,D=e.onCompositionEnd,S=e.suffix,E=e.prefixCls,O=void 0===E?"rc-textarea":E,P=e.classes,I=e.showCount,N=e.className,A=e.style,R=e.disabled,T=e.hidden,$=e.classNames,j=e.styles,F=e.onResize,L=Si(e,ij),M=Wa(Tl(b,{value:y,defaultValue:b}),2),U=M[0],B=M[1],H=gv.useRef(null),z=Wa(OZ.useState(!1),2),W=z[0],V=z[1],G=Wa(OZ.useState(!1),2),q=G[0],X=G[1],K=OZ.useRef(),Y=OZ.useRef(0),Q=Wa(OZ.useState(null),2),J=Q[0],Z=Q[1],ee=function(){var e;null===(e=H.current)||void 0===e||e.textArea.focus()};return gv.useImperativeHandle(t,(function(){return{resizableTextArea:H.current,focus:ee,blur:function(){var e;null===(e=H.current)||void 0===e||e.textArea.blur()}}})),gv.useEffect((function(){V((function(e){return!R&&e}))}),[R]),r=Number(k)>0,o=function(e){X(!0),K.current=U,Y.current=e.currentTarget.selectionStart,null==x||x(e)},i=function(e){var t,n;X(!1),t=e.currentTarget.value,r&&(t=Nd(Y.current>=k+1||Y.current===(null===(n=K.current)||void 0===n?void 0:n.length),K.current,t,k)),t!==U&&(B(t),xd(e.currentTarget,e,w,t)),null==D||D(e)},a=function(e){var t=e.target.value;!q&&r&&(t=Nd(e.target.selectionStart>=k+1||e.target.selectionStart===t.length||!e.target.selectionStart,U,t,k)),B(t),xd(e.currentTarget,e,w,t)},s=function(e){var t=L.onPressEnter,n=L.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){V(!0),null==v||v(e)},c=function(e){V(!1),null==_||_(e)},u=function(e){var t;B(""),ee(),xd(null===(t=H.current)||void 0===t?void 0:t.textArea,e,w)},p=Sd(U),!q&&r&&null==y&&(p=Id(p,k)),d=S,I&&(m=Ca(p).length,f="object"===ki(I)?I.formatter({value:p,count:m,maxLength:k}):"".concat(m).concat(r?" / ".concat(k):""),d=OZ.createElement(OZ.Fragment,null,d,OZ.createElement("span",{className:f0("".concat(O,"-data-count"),null==$?void 0:$.count),style:null==j?void 0:j.count},f))),g=function(e){var t;null==F||F(e),null!==(t=H.current)&&void 0!==t&&t.textArea.style.height&&Z(!0)},h=!L.autoSize&&!I&&!C,OZ.createElement(L$,{value:p,allowClear:C,handleReset:u,suffix:d,prefixCls:O,classes:{affixWrapper:f0(null==P?void 0:P.affixWrapper,(n={},Di(n,"".concat(O,"-show-count"),I),Di(n,"".concat(O,"-textarea-allow-clear"),C),n))},disabled:R,focused:W,className:N,style:xa(xa({},A),J&&!h?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:T,inputElement:OZ.createElement(oj,fa({},L,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==$?void 0:$.textarea,style:xa(xa({},null==j?void 0:j.textarea),{},{resize:null==A?void 0:A.resize}),disabled:R,prefixCls:O,onResize:g,ref:H}))})})),sj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=sj(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:p,direction:d}=gv.useContext(H0),f=Z1(o),m=gv.useContext(r1),g=null!=i?i:m,{status:h,hasFeedback:b,feedbackIcon:y}=gv.useContext(t5),v=_3(h,a),_=gv.useRef(null);gv.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=_.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const 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)}}}(null===(n=null===(t=_.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.blur()}}}));const w=p("input",n);let C;"object"==typeof s&&(null==s?void 0:s.clearIcon)?C=s:s&&(C={clearIcon:gv.createElement(C1,null)});const[k,x]=n8(w);return k(gv.createElement(aj,Object.assign({},u,{disabled:g,allowClear:C,classes:{affixWrapper:f0(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:"rtl"===d,[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:"small"===f,[`${w}-affix-wrapper-lg`]:"large"===f,[`${w}-textarea-show-count`]:l},mp(`${w}-affix-wrapper`,v),x)},classNames:Object.assign(Object.assign({},c),{textarea:f0({[`${w}-borderless`]:!r,[`${w}-sm`]:"small"===f,[`${w}-lg`]:"large"===f},mp(w,v),x,null==c?void 0:c.textarea)}),prefixCls:w,suffix:b&&gv.createElement("span",{className:`${w}-textarea-suffix`},y),showCount:l,ref:_})))})),A6=_6;A6.Group=e=>{const{getPrefixCls:t,direction:n}=gv.useContext(H0),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=n8(a),c=f0(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=gv.useContext(t5),p=gv.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(gv.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},gv.createElement(t5.Provider,{value:p},e.children)))},A6.Search=I6,A6.TextArea=N6,A6.Password=O6;const R6=A6;lj=gv.createContext(null),cj=function(e){var t=e.className,n=e.style,r=e.children,o=e.containerRef,i={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp};return gv.createElement(gv.Fragment,null,gv.createElement("div",fa({className:f0("".concat(e.prefixCls,"-content"),t),style:xa({},n),"aria-modal":"true",role:"dialog",ref:o},i),r))},uj={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},pj=gv.forwardRef(Rd),dj=function(e){var t,n,r,o,i,a,s=e.open,l=void 0!==s&&s,c=e.prefixCls,u=void 0===c?"rc-drawer":c,p=e.placement,d=void 0===p?"right":p,f=e.autoFocus,m=void 0===f||f,g=e.keyboard,h=void 0===g||g,b=e.width,y=void 0===b?378:b,v=e.mask,_=void 0===v||v,w=e.maskClosable,C=void 0===w||w,k=e.getContainer,x=e.forceRender,D=e.afterOpenChange,S=e.destroyOnClose,E=e.onMouseEnter,O=e.onMouseOver,P=e.onMouseLeave,I=e.onClick,N=e.onKeyDown,A=e.onKeyUp,R=Wa(gv.useState(!1),2),T=R[0],$=R[1],j=Wa(gv.useState(!1),2),F=j[0],L=j[1];return iO((function(){L(!0)}),[]),t=!!F&&l,n=gv.useRef(),r=gv.useRef(),iO((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;$(e),null==D||D(e),e||!r.current||(null===(t=n.current)||void 0===t?void 0:t.contains(r.current))||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},x||T||t||!S?(i={onMouseEnter:E,onMouseOver:O,onMouseLeave:P,onClick:I,onKeyDown:N,onKeyUp:A},a=xa(xa({},e),{},{open:t,prefixCls:u,placement:d,autoFocus:m,keyboard:h,width:y,mask:_,maskClosable:C,inline:!1===k,afterOpenChange:o,ref:n},i),gv.createElement(MN,{open:t||x||T,autoDestroy:!1,getContainer:k,autoLock:_&&(t||T)},gv.createElement(pj,a))):null};const T6=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closeIcon:i,closable:a,onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:p,children:d}=e,f=gv.useCallback((e=>gv.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[m,g]=Uc(a,i,f,void 0,!0),h=gv.useMemo((()=>n||m?gv.createElement("div",{style:l,className:f0(`${t}-header`,{[`${t}-header-close-only`]:m&&!n&&!o})},gv.createElement("div",{className:`${t}-header-title`},g,n&&gv.createElement("div",{className:`${t}-title`},n)),o&&gv.createElement("div",{className:`${t}-extra`},o)):null),[m,g,o,l,t,n]),b=gv.useMemo((()=>r?gv.createElement("div",{className:`${t}-footer`,style:p},r):null),[r,p,t]);return gv.createElement("div",{className:`${t}-wrapper-body`,style:c},h,gv.createElement("div",{className:`${t}-body`,style:u},d),b)},$6=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},j6=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:p,lineType:d,colorSplit:f,marginSM:m,colorIcon:g,colorIconHover:h,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:_}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${p}px ${d} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:g,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${_}px`,borderTop:`${p}px ${d} ${f}`},"&-rtl":{direction:"rtl"}}}},F6=Fl("Drawer",(e=>{const t=$l(e,{});return[j6(t),$6(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));fj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=L6,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:p,style:d,className:f,visible:m,afterVisibleChange:g}=e,h=fj(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:y,direction:v,drawer:_}=gv.useContext(H0),w=y("drawer",u),[C,k]=F6(w),x=void 0===p&&b?()=>b(document.body):p,D=f0({"no-mask":!i,[`${w}-rtl`]:"rtl"===v},t,k),S=gv.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),E=gv.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),O={motionName:q2(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return C(gv.createElement(i2,null,gv.createElement(n5,{status:!0,override:!0},gv.createElement(dj,Object.assign({prefixCls:w,onClose:c,maskMotion:O,motion:e=>({motionName:q2(w,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},h,{open:null!=s?s:m,mask:i,push:a,width:S,height:E,style:Object.assign(Object.assign({},null==_?void 0:_.style),d),className:f0(null==_?void 0:_.className,f),rootClassName:D,getContainer:x,afterOpenChange:null!=l?l:g}),gv.createElement(T6,Object.assign({prefixCls:w},h,{onClose:c}))))))};M6._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=fj(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=gv.useContext(H0),s=a("drawer",t),[l,c]=F6(s),u=f0(s,`${s}-pure`,`${s}-${o}`,c,r);return l(gv.createElement("div",{className:u,style:n},gv.createElement(T6,Object.assign({prefixCls:s},i))))};const U6=M6,B6=OZ.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),H6=B6.Provider,z6=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:p,supportFlexGap:d}=gv.useContext(B6);let f={};return d||("vertical"===n?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=gv.useContext(H0),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:p,direction:d="horizontal",prefixCls:f,split:m,style:g,wrap:h=!1,classNames:b,styles:y}=e,v=mj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),_=Y8(),[w,C]=gv.useMemo((()=>(Array.isArray(s)?s:[s,s]).map((e=>function(e){return"string"==typeof e?W6[e]:e||0}(e)))),[s]),k=Ms(p,{keepEmpty:!0}),x=void 0===l&&"horizontal"===d?"center":l,D=o("space",f),[S,E]=n2(D),O=f0(D,null==i?void 0:i.className,E,`${D}-${d}`,{[`${D}-rtl`]:"rtl"===a,[`${D}-align-${x}`]:x},c,u),P=f0(`${D}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item),I="rtl"===a?"marginLeft":"marginRight";let N=0;const A=k.map(((e,t)=>{var n,r;return null!=e&&(N=t),gv.createElement(z6,{className:P,key:e&&e.key||`${P}-${t}`,direction:d,index:t,marginDirection:I,split:m,wrap:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),R=gv.useMemo((()=>({horizontalSize:w,verticalSize:C,latestIndex:N,supportFlexGap:_})),[w,C,N,_]);if(0===k.length)return null;const T={};return h&&(T.flexWrap="wrap",_||(T.marginBottom=-C)),_&&(T.columnGap=w,T.rowGap=C),S(gv.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},T),null==i?void 0:i.style),g)},v),gv.createElement(H6,{value:R},A)))}));V6.Compact=e=>{const{getPrefixCls:t,direction:n}=gv.useContext(H0),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=IN(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Z1((e=>null!=r?r:e)),d=t("space-compact",a),[f,m]=n2(d),g=f0(d,m,{[`${d}-rtl`]:"rtl"===n,[`${d}-block`]:i,[`${d}-vertical`]:"vertical"===o},s,l),h=gv.useContext(r2),b=Ms(c),y=gv.useMemo((()=>b.map(((e,t)=>gv.createElement(a2,{key:e&&e.key||`${d}-item-${t}`,compactSize:p,compactDirection:o,isFirstItem:0===t&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:t===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},e)))),[r,b,h]);return 0===b.length?null:f(gv.createElement("div",Object.assign({className:g},u),y))};const G6=V6,q6=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},X6=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),K6=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Y6=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},V0(e)),X6(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},K6(e,e.controlHeightSM)),"&-large":Object.assign({},K6(e,e.controlHeightLG))})}},Q6=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},V0(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:O5,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},J6=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Z6=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},e7=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),t7=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:e7(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},n7=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:e7(e),[`@media (max-width: ${e.screenXSMax}px)`]:[t7(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:e7(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:e7(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:e7(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:e7(e)}}}},r7=Fl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=$l(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Y6(r),Q6(r),q6(r),J6(r),Z6(r),n7(r),H5(r),O5]})),o7=[],i7=e=>{let{help:t,helpStatus:n,errors:r=o7,warnings:o=o7,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=gv.useContext(e5),c=`${l}-item-explain`,[,u]=r7(l),p=gv.useMemo((()=>G2(l)),[l]),d=Td(r),f=Td(o),m=gv.useMemo((()=>null!=t?[$d(t,"help",n)]:[].concat(Ca(d.map(((e,t)=>$d(e,"error","error",t)))),Ca(f.map(((e,t)=>$d(e,"warning","warning",t)))))),[t,n,d,f]),g={};return a&&(g.id=`${a}_help`),gv.createElement(s1,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!m.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return gv.createElement("div",Object.assign({},g,{className:f0(c,t,i,u),style:n,role:"alert"}),gv.createElement(l1,Object.assign({keys:m},G2(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return gv.createElement("div",{key:t,className:f0(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},a7=["parentNode"],s7="form_item";gj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=gv.useContext(r1),{getPrefixCls:r,direction:o,form:i}=gv.useContext(H0),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:p,colon:d,labelAlign:f,labelWrap:m,labelCol:g,wrapperCol:h,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:_,onFinishFailed:w,name:C,style:k}=e,x=gj(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style"]),D=Z1(c),S=gv.useContext(g0),E=gv.useMemo((()=>void 0!==_?_:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,_,i]),O=null!=d?d:null==i?void 0:i.colon,P=r("form",a),[I,N]=r7(P),A=f0(P,`${P}-${y}`,{[`${P}-hide-required-mark`]:!1===E,[`${P}-rtl`]:"rtl"===o,[`${P}-${D}`]:D},N,null==i?void 0:i.className,s,l),[R]=Md(p),{__INTERNAL__:T}=R;T.name=C;const $=gv.useMemo((()=>({name:C,labelAlign:f,labelCol:g,labelWrap:m,wrapperCol:h,vertical:"vertical"===y,colon:O,requiredMark:E,itemRef:T.itemRef,form:R})),[C,f,g,h,y,O,E,R]);gv.useImperativeHandle(t,(()=>R));const j=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),R.scrollToField(t,n)}};return I(gv.createElement(n1,{disabled:u},gv.createElement(i1,{size:D},gv.createElement(Z2,{validateMessages:S},gv.createElement(Q2.Provider,{value:$},gv.createElement(UA,Object.assign({id:C},x,{name:C,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void j(v,t);i&&void 0!==i.scrollToFirstError&&j(i.scrollToFirstError,t)}},form:R,style:Object.assign(Object.assign({},null==i?void 0:i.style),k),className:A})))))))},c7=gv.forwardRef(l7),u7=()=>{const{status:e,errors:t=[],warnings:n=[]}=gv.useContext(t5);return{status:e,errors:t,warnings:n}};u7.Context=t5;const p7=u7,d7=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:p,onErrorVisibleChanged:d}=e,f=`${t}-item`,m=gv.useContext(Q2),g=r||m.wrapperCol||{},h=f0(`${f}-control`,g.className),b=gv.useMemo((()=>Object.assign({},m)),[m]);delete b.labelCol,delete b.wrapperCol;const y=gv.createElement("div",{className:`${f}-control-input`},gv.createElement("div",{className:`${f}-control-input-content`},o)),v=gv.useMemo((()=>({prefixCls:t,status:n})),[t,n]),_=null!==p||i.length||a.length?gv.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},gv.createElement(e5.Provider,{value:v},gv.createElement(i7,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:d})),!!p&&gv.createElement("div",{style:{width:0,height:p}})):null,w={};u&&(w.id=`${u}_extra`);const C=l?gv.createElement("div",Object.assign({},w,{className:`${f}-extra`}),l):null,k=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:_,extra:C}):gv.createElement(gv.Fragment,null,y,_,C);return gv.createElement(Q2.Provider,{value:b},gv.createElement(K8,Object.assign({},g,{className:h}),k))},f7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},m7=gv.forwardRef((function(e,t){return gv.createElement(v1,fa({},e,{ref:t,icon:f7}))}));hj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[p]=x0("Form"),{vertical:d,labelAlign:f,labelCol:m,labelWrap:g,colon:h}=gv.useContext(Q2);if(!n)return null;const b=o||m||{},y=`${t}-item-label`,v=f0(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!g});let _=n;const w=!0===a||!1!==h&&!1!==a;w&&!d&&"string"==typeof n&&""!==n.trim()&&(_=n.replace(/[:|๏ผš]\s*$/,""));const C=function(e){return e?"object"!=typeof e||gv.isValidElement(e)?{title:e}:e:null}(c);if(C){const{icon:e=gv.createElement(m7,null)}=C,n=hj(C,["icon"]),r=gv.createElement(h4,Object.assign({},n),gv.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));_=gv.createElement(gv.Fragment,null,_,r)}"optional"!==l||s||(_=gv.createElement(gv.Fragment,null,_,gv.createElement("span",{className:`${t}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(u=v0.Form)||void 0===u?void 0:u.optional))));const k=f0({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:"optional"===l,[`${t}-item-no-colon`]:!w});return gv.createElement(K8,Object.assign({},b,{className:v}),gv.createElement("label",{htmlFor:r,className:k,title:"string"==typeof n?n:""},_))};bj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),y7=function(e){function t(t,n,i){return r&&!g?t:gv.createElement(Ud,Object.assign({key:"row"},e,{className:f0(o,E),prefixCls:D,fieldId:n,isRequired:i,errors:$,warnings:j,meta:A,onSubItemMetaChange:T}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:p,messageVariables:d,trigger:f="onChange",validateTrigger:m,hidden:g,help:h}=e,{getPrefixCls:b}=gv.useContext(H0),{name:y}=gv.useContext(Q2),v=function(e){if("function"==typeof e)return e;const t=Ms(e);return t.length<=1?t[0]:t}(c),_="function"==typeof v,w=gv.useContext(J2),{validateTrigger:C}=gv.useContext(qN),k=void 0!==m?m:C,x=function(e){return!(null==e)}(n),D=b("form",a),[S,E]=r7(D),O=gv.useContext(XN),P=gv.useRef(),[I,N]=function(){const[e,t]=gv.useState({}),n=gv.useRef(null),r=gv.useRef([]),o=gv.useRef(!1);return gv.useEffect((()=>(o.current=!1,()=>{o.current=!0,wP.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=wP((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[A,R]=Al((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),T=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(Ca(e.name.slice(0,-1)),Ca(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[$,j]=gv.useMemo((()=>{const e=Ca(A.errors),t=Ca(A.warnings);return Object.values(I).forEach((n=>{e.push.apply(e,Ca(n.errors||[])),t.push.apply(t,Ca(n.warnings||[]))})),[e,t]}),[I,A.errors,A.warnings]),F=function(){const{itemRef:e}=gv.useContext(Q2),t=gv.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Bs(e(n),o)),t.current.ref}}();if(!x&&!_&&!i)return S(t(v));let L={};return"string"==typeof p?L.label=p:n&&(L.label=String(n)),d&&(L=Object.assign(Object.assign({},L),d)),S(gv.createElement(fu,Object.assign({},e,{messageVariables:L,trigger:f,validateTrigger:k,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(R(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Ca(r)),P.current=n}w(e,n)}}}),((r,o,a)=>{const c=jd(n).length&&o?o.name:[],p=Fd(c,y),d=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},r);let g=null;if(Array.isArray(v)&&x)g=v;else if(_&&(!s&&!i||x));else if(!i||_||x)if(P1(v)){const t=Object.assign(Object.assign({},v.props),m);if(t.id||(t.id=p),h||$.length>0||j.length>0||e.extra){const n=[];(h||$.length>0)&&n.push(`${p}_help`),e.extra&&n.push(`${p}_extra`),t["aria-describedby"]=n.join(" ")}$.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),zs(v)&&(t.ref=F(c,v)),new Set([].concat(Ca(jd(f)),Ca(jd(k)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=yj(e,["prefixCls","children"]);const{getPrefixCls:o}=gv.useContext(H0),i=o("form",t),a=gv.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return gv.createElement(mu,Object.assign({},r),((e,t,r)=>gv.createElement(e5.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},v7.ErrorList=i7,v7.useForm=Md,v7.useFormInstance=function(){const{form:e}=gv.useContext(Q2);return e},v7.useWatch=yu,v7.Provider=Z2,v7.create=()=>{};const _7=v7;let w7=null,C7=e=>e(),k7=[],x7={};const D7=gv.forwardRef(((e,t)=>{const[n,r]=gv.useState(Bd),[o,i]=pc(n),a=f1(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Bd)};return gv.useEffect(u,[]),gv.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),gv.createElement(g1,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),S7={open:function(e){const t=uc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return k7.push(r),()=>{n?C7((()=>{n()})):r.skipped=!0}}));return Hd(),t},destroy:function(e){k7.push({type:"destroy",key:e}),Hd()},config:function(e){x7=Object.assign(Object.assign({},x7),e),C7((()=>{var e;null===(e=null==w7?void 0:w7.sync)||void 0===e||e.call(w7)}))},useMessage:dc,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=CN(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=gv.useContext(H0),l=t||s("message"),[,c]=U1(l);return gv.createElement(bN,Object.assign({},a,{prefixCls:l,className:f0(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:gv.createElement(H1,{prefixCls:l,type:r,icon:o},i)}))}},E7=S7;["success","info","warning","error","loading"].forEach((e=>{E7[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return k7.push(o),()=>{r?C7((()=>{r()})):o.skipped=!0}}));return Hd(),n}(e,n)}}));const O7=E7;vj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=vj(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=gv.useContext(H0),u=c(),p=t||c("modal"),[,d]=X5(p),f=`${p}-confirm`;let m={};return m=i?{closable:null!=o&&o,title:"",footer:"",children:gv.createElement(wu,Object.assign({},e,{confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?gv.createElement(r5,Object.assign({},e)):e.footer,children:s},gv.createElement(HN,Object.assign({prefixCls:p,className:f0(d,`${p}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:vu(p,r),closable:o},m))})),I7=Y5;I7.useModal=Ou,I7.info=function(e){return Cu(xu(e))},I7.success=function(e){return Cu(Du(e))},I7.error=function(e){return Cu(Su(e))},I7.warning=zd,I7.warn=zd,I7.confirm=function(e){return Cu(Eu(e))},I7.destroyAll=function(){for(;J5.length;){const e=J5.pop();e&&e()}},I7.config=function(e){let{rootPrefixCls:t}=e;Z5=t},I7._InternalPanelDoNotUseOrYouWillBeFired=P7;const N7=I7;let A7=null,R7=e=>e(),T7=[],$7={};const j7=gv.forwardRef(((e,t)=>{const[n,r]=gv.useState(Wd),[o,i]=Iu(n),a=f1(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Wd)};return gv.useEffect(u,[]),gv.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),gv.createElement(g1,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),F7={open:Gd,destroy:function(e){T7.push({type:"destroy",key:e}),Vd()},config:function(e){$7=Object.assign(Object.assign({},$7),e),R7((()=>{var e;null===(e=null==A7?void 0:A7.sync)||void 0===e||e.call(A7)}))},useNotification:Nu,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=WA(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:p}=gv.useContext(H0),d=t||p("notification"),f=`${d}-notice`,[,m]=a3(d);return gv.createElement(bN,Object.assign({},u,{prefixCls:d,className:f0(n,m,`${f}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:Pu(d,c),content:gv.createElement(l3,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})}))}},L7=F7;["success","info","warning","error"].forEach((e=>{L7[e]=t=>Gd(Object.assign(Object.assign({},t),{type:e}))}));const M7=L7;_j=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},wj=function(e){return void 0!==e?"".concat(e,"px"):void 0},Cj=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],kj=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return gv.createElement("label",{className:f0(e.className,Di({},"".concat(t,"-item-disabled"),n))},gv.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),gv.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},xj=gv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,p=e.onChange,d=e.className,f=void 0===d?"":d,m=e.motionName,g=void 0===m?"thumb-motion":m,h=Si(e,Cj),b=gv.useRef(null),y=gv.useMemo((function(){return Bs(b,t)}),[b,t]),v=gv.useMemo((function(){return function(e){return e.map((function(e){if("object"===ki(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==ki(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return xa(xa({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),_=Wa(Tl(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),w=_[0],C=_[1],k=Wa(gv.useState(!1),2),x=k[0],D=k[1],S=function(e,t){l||(C(t),null==p||p(t))},E=Qs(h,["children"]);return gv.createElement("div",fa({},E,{className:f0(i,(r={},Di(r,"".concat(i,"-rtl"),"rtl"===a),Di(r,"".concat(i,"-disabled"),l),r),f),ref:y}),gv.createElement("div",{className:"".concat(i,"-group")},gv.createElement(qd,{prefixCls:i,value:w,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),v.map((function(e){return gv.createElement(kj,fa({},e,{key:e.value,prefixCls:i,className:f0(e.className,"".concat(i,"-item"),Di({},"".concat(i,"-item-selected"),e.value===w&&!x)),checked:e.value===w,onChange:S,disabled:!!l||!!e.disabled}))}))))})),xj.displayName="Segmented",xj.defaultProps={options:[]};const U7=Object.assign({overflow:"hidden"},W0),B7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},Kd(e)),{color:e.itemHoverColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},U7),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Kd(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 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:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Xd(`&-disabled ${t}-item`,e)),Xd(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},H7=Fl("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=$l(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[B7(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i}}));Dj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=Dj(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:p,segmented:d}=gv.useContext(H0),f=u("segmented",n),[m,g]=H7(f),h=Z1(s),b=gv.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=Dj(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:gv.createElement(gv.Fragment,null,gv.createElement("span",{className:`${f}-item-icon`},t),n&&gv.createElement("span",null,n))})}return e}))),[a,f]),y=f0(r,o,null==d?void 0:d.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===h,[`${f}-lg`]:"large"===h},g),v=Object.assign(Object.assign({},null==d?void 0:d.style),l);return m(gv.createElement(xj,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:p})))}));Sj=gv.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),Ej=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Oj=gv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,p=e.onOffsetChange,d=Si(e,Ej),f=gv.useContext(Sj),m=f.min,g=f.max,h=f.direction,b=f.disabled,y=f.keyboard,v=f.range,_=f.tabIndex,w=f.ariaLabelForHandle,C=f.ariaLabelledByForHandle,k=f.ariaValueTextFormatterForHandle,x="".concat(o,"-handle"),D=function(e){b||s(e,a)},S=Qd(h,i,m,g),E=gv.createElement("div",fa({ref:t,className:f0(x,(n={},Di(n,"".concat(x,"-").concat(a+1),v),Di(n,"".concat(x,"-dragging"),u),n)),style:xa(xa({},S),l),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case hN.LEFT:t="ltr"===h||"btt"===h?-1:1;break;case hN.RIGHT:t="ltr"===h||"btt"===h?1:-1;break;case hN.UP:t="ttb"!==h?1:-1;break;case hN.DOWN:t="ttb"!==h?-1:1;break;case hN.HOME:t="min";break;case hN.END:t="max";break;case hN.PAGE_UP:t=2;break;case hN.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),p(t,a))}},tabIndex:b?null:Jd(_,a),role:"slider","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":Jd(w,a),"aria-labelledby":Jd(C,a),"aria-valuetext":null===(r=Jd(k,a))||void 0===r?void 0:r(i)},d));return c&&(E=c(E,{index:a,prefixCls:o,value:i,dragging:u})),E})),Pj=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Ij=gv.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Si(e,Pj),u=gv.useRef({});return gv.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),gv.createElement(gv.Fragment,null,a.map((function(e,t){return gv.createElement(Oj,fa({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:Jd(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),Nj=gv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D=e.prefixCls,S=void 0===D?"rc-slider":D,E=e.className,O=e.style,P=e.disabled,I=void 0!==P&&P,N=e.keyboard,A=void 0===N||N,R=e.autoFocus,T=e.onFocus,$=e.onBlur,j=e.min,F=void 0===j?0:j,L=e.max,M=void 0===L?100:L,U=e.step,B=void 0===U?1:U,H=e.value,z=e.defaultValue,W=e.range,V=e.count,G=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,Q=e.pushable,J=void 0!==Q&&Q,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ie=e.trackStyle,ae=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,pe=e.dots,de=e.handleRender,fe=e.tabIndex,me=void 0===fe?0:fe,ge=e.ariaLabelForHandle,he=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,ye=gv.useRef(),ve=gv.useRef(),_e=gv.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),we=gv.useMemo((function(){return isFinite(F)?F:0}),[F]),Ce=gv.useMemo((function(){return isFinite(M)?M:100}),[M]),ke=gv.useMemo((function(){return null!==B&&B<=0?1:B}),[B]),xe=gv.useMemo((function(){return!0===J?ke:J>=0&&J}),[J,ke]),De=gv.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===ki(t)&&!gv.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),Se=function(e,t,n,r,o,i){var a=gv.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=gv.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=gv.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,p,d,f,m,g,h,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(d=(p=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(p)),m=a>0?1:-1,f.push(s("unit"===y?p+m*n:d)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=p:e>=p})),"unit"===y&&(f=f.filter((function(e){return e!==p}))),g="unit"===y?p:d,u=f[0],h=Math.abs(u-g),f.forEach((function(e){var t=Math.abs(e-g);t1?((b=Ca(i))[l]=u,o(b,a-m,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},p=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==r?r:"unit",x=e.map(l),D=x[n],S=c(x,t,n,k);if(x[n]=S,!1===o)a=i||0,n>0&&x[n-1]!==D&&(x[n]=Math.max(x[n],x[n-1]+a)),n0;m-=1)for(g=!0;p(x[m]-x[m-1])&&g;)h=u(x,-1,m-1),x[m-1]=h.value,g=h.changed;for(b=x.length-1;b>0;b-=1)for(y=!0;p(x[b]-x[b-1])&&y;)v=u(x,-1,b-1),x[b-1]=v.value,y=v.changed;for(_=0;_=0?V+1:2);o.length=0&&ye.current.focus(e)}c(null)}),[l=s[0]]),p=gv.useMemo((function(){return(!Z||null!==ke)&&Z}),[Z,ke]),d=function(e,t,n,o,i,a,s,l,c){var u,p,d,f,m,g=Wa(gv.useState(null),2),h=g[0],b=g[1],y=Wa(gv.useState(-1),2),v=y[0],_=y[1],w=Wa(gv.useState(n),2),C=w[0],k=w[1],x=Wa(gv.useState(n),2),D=x[0],S=x[1],E=gv.useRef(null),O=gv.useRef(null);return gv.useEffect((function(){-1===v&&k(n)}),[n,v]),gv.useEffect((function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",O.current)}}),[]),u=function(e,t){C.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),k(e),s(e))},(d=gv.useRef(p=function(e,t){var n,r,s,l,p,d,f,m;-1===e?(n=D[0],r=i-D[D.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,p=D.map((function(e){return e+s})),u(p)):(d=(i-o)*t,(f=Ca(C))[e]=D[e],m=c(f,d,e,"dist"),u(m.values,m.value))})).current=p,f=function(o,i){var a,s,l,c,u,p;o.stopPropagation(),a=n[i],_(i),b(a),S(n),s=Zd(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,p,f;switch(n.preventDefault(),o=(r=Zd(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,p=s.height,t){case"btt":f=-a/p;break;case"ttb":f=a/p;break;case"rtl":f=-o/u;break;default:f=o/u}d.current(i,f)},p=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),E.current=null,O.current=null,_(-1),null==X||X(r(Te.current))},document.addEventListener("mouseup",p),document.addEventListener("mousemove",u),document.addEventListener("touchend",p),document.addEventListener("touchmove",u),E.current=u,O.current=p},m=gv.useMemo((function(){var e=Ca(n).sort((function(e,t){return e-t})),t=Ca(C).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?C:n}),[n,C]),[v,h,m,f]}(ve,_e,Re,we,Ce,Oe,o,0,Pe),f=Wa(d,4),g=f[1],h=f[2],b=f[3],y=function(e,t){b(e,t),null==q||q(r(Te.current))},gv.useEffect((function(){if(!v){var e=Re.lastIndexOf(g);ye.current.focus(e)}}),[v=-1!==(m=f[0])]),_=gv.useMemo((function(){return Ca(h).sort((function(e,t){return e-t}))}),[h]),w=Wa(gv.useMemo((function(){return W?[_[0],_[_.length-1]]:[we,_[0]]}),[_,W,we]),2),C=w[0],k=w[1],gv.useImperativeHandle(t,(function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e=document.activeElement;ve.current.contains(e)&&(null==e||e.blur())}}})),gv.useEffect((function(){R&&ye.current.focus(0)}),[]),x=gv.useMemo((function(){return{min:we,max:Ce,direction:_e,disabled:I,keyboard:A,step:ke,included:re,includedStart:C,includedEnd:k,range:W,tabIndex:me,ariaLabelForHandle:ge,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:be}}),[we,Ce,_e,I,A,ke,re,C,k,W,me,ge,he,be]),gv.createElement(Sj.Provider,{value:x},gv.createElement("div",{ref:ve,className:f0(S,E,(n={},Di(n,"".concat(S,"-disabled"),I),Di(n,"".concat(S,"-vertical"),te),Di(n,"".concat(S,"-horizontal"),!te),Di(n,"".concat(S,"-with-marks"),De.length),n)),style:O,onMouseDown:a},gv.createElement("div",{className:"".concat(S,"-rail"),style:se}),gv.createElement(tf,{prefixCls:S,style:ie,values:_,startPoint:oe,onStartMove:p?y:null}),gv.createElement(af,{prefixCls:S,marks:De,dots:pe,style:le,activeStyle:ce}),gv.createElement(Ij,{ref:ye,prefixCls:S,style:ae,values:h,draggingIndex:m,onStartMove:y,onOffsetChange:u,onFocus:T,onBlur:$,handleRender:de}),gv.createElement(rf,{prefixCls:S,marks:De,onClick:i})))}));const W7=gv.forwardRef(((e,t)=>{function n(){wP.cancel(i.current),i.current=null}const{open:r}=e,o=gv.useRef(null),i=gv.useRef(null);return gv.useEffect((()=>(r?i.current=wP((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),gv.createElement(h4,Object.assign({ref:Bs(o,t)},e))})),V7=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},V0(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new OP(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},G7=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[l]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},q7=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},G7(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},X7=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},G7(e,!1)),{height:"100%"})}},K7=Fl("Slider",(e=>{const t=$l(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[V7(t),q7(t),X7(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));Aj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",Q7=OZ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:p,tooltipPlacement:d}=e,f=Aj(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:m,slider:g,getPrefixCls:h,getPopupContainer:b}=OZ.useContext(H0),y=OZ.useContext(r1),v=null!=s?s:y,[_,w]=OZ.useState({}),C=(e,t)=>{w((n=>Object.assign(Object.assign({},n),{[e]:t})))},k=(e,t)=>e||(t?"rtl"===m?"left":"right":"top"),x=h("slider",n),[D,S]=K7(x),E=f0(o,null==g?void 0:g.className,i,{[`${x}-rtl`]:"rtl"===m},S);"rtl"!==m||f.vertical||(f.reverse=!f.reverse);const[O,P]=OZ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),I=Object.assign(Object.assign({},null==g?void 0:g.style),a);return D(OZ.createElement(Nj,Object.assign({},f,{step:f.step,range:O,draggableTrack:P,className:E,style:I,disabled:v,ref:t,prefixCls:x,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:m,placement:g,getPopupContainer:y,prefixCls:v,formatter:w}=f;let D;D=w||null===w?w:c||null===c?c:Y7;const S=null!==(r=null!=m?m:u)&&void 0!==r?r:void 0===m&&!!D&&(_[o]||i),E=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>C(o,!0),onMouseLeave:()=>C(o,!1)}),O=h("tooltip",null!=v?v:l);return OZ.createElement(W7,Object.assign({},f,{prefixCls:O,title:D?D(n.value):"",open:S,placement:k(null!=g?g:d,s),key:o,overlayClassName:`${x}-tooltip`,getPopupContainer:y||p||b}),OZ.cloneElement(t,E))}})))}));Rj=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Tj=gv.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==m||m(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,p=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,m=e.onChange,g=e.onKeyDown,h=Si(e,Rj),b=Wa(Tl(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],_=f0(i,a,(Di(r={},"".concat(i,"-checked"),y),Di(r,"".concat(i,"-disabled"),c),r));return gv.createElement("button",fa({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:_,ref:t,onKeyDown:function(e){e.which===hN.LEFT?n(!1,e):e.which===hN.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,gv.createElement("span",{className:"".concat(i,"-inner")},gv.createElement("span",{className:"".concat(i,"-inner-checked")},p),gv.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))})),Tj.displayName="Switch";const J7=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Z7=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},e9=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},t9=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},n9=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},V0(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),K0(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},r9=Fl("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,o=n-4,i=$l(e,{switchMinWidth:2*r+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new OP("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[n9(i),t9(i),e9(i),Z7(i),J7(i)]}));$j=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=$j(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:p,switch:d}=gv.useContext(H0),f=gv.useContext(r1),m=(null!=o?o:f)||i,g=u("switch",n),h=gv.createElement("div",{className:`${g}-handle`},i&&gv.createElement(L1,{className:`${g}-loading-icon`})),[b,y]=r9(g),v=Z1(r),_=f0(null==d?void 0:d.className,{[`${g}-small`]:"small"===v,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===p},a,s,y),w=Object.assign(Object.assign({},null==d?void 0:d.style),l);return b(gv.createElement(J1,{component:"Switch"},gv.createElement(Tj,Object.assign({},c,{prefixCls:g,className:_,style:w,disabled:m,ref:t,loadingIcon:h}))))}));o9.__ANT_SWITCH=!0;const i9=o9,a9=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},s9=e=>Ll(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),l9=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},V0(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},c9=Fl("Tag",(e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=$l(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[l9(o),s9(o),a9(o,"success","Success"),a9(o,"processing","Info"),a9(o,"error","Error"),a9(o,"warning","Warning")]}),(e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText})));jj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:p,bordered:d=!0}=e,f=Fj(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:m,direction:g,tag:h}=gv.useContext(H0),[b,y]=gv.useState(!0);gv.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=kp(l)||function(e){return f4.includes(e)}(l),_=Object.assign(Object.assign({backgroundColor:l&&!v?l:void 0},null==h?void 0:h.style),i),w=m("tag",n),[C,k]=c9(w),x=f0(w,null==h?void 0:h.className,{[`${w}-${l}`]:v,[`${w}-has-color`]:l&&!v,[`${w}-hidden`]:!b,[`${w}-rtl`]:"rtl"===g,[`${w}-borderless`]:!d},r,o,k),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,S]=Uc(p,u,(e=>null===e?gv.createElement(x1,{className:`${w}-close-icon`,onClick:D}):gv.createElement("span",{className:`${w}-close-icon`,onClick:D},e)),null,!1),E="function"==typeof f.onClick||a&&"a"===a.type,O=s||null,P=O?gv.createElement(gv.Fragment,null,O,a&&gv.createElement("span",null,a)):a,I=gv.createElement("span",Object.assign({},f,{ref:t,className:x,style:_}),P,S);return C(E?gv.createElement(J1,{component:"Tag"},I):I)},p9=gv.forwardRef(u9);p9.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=jj(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=gv.useContext(H0),l=s("tag",t),[c,u]=c9(l),p=f0(l,`${l}-checkable`,{[`${l}-checkable-checked`]:r},n,u);return c(gv.createElement("span",Object.assign({},a,{className:p,onClick:e=>{null==o||o(!r),null==i||i(e)}})))};const d9=p9;Lj=function(){return c4.useToken().token},Bj=gv.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(Uj=(Mj=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==Uj&&Uj.matches?"dark":"light"}),Hj=function(){return gv.useContext(Bj)},zj=function(){var e=Lj(),t=Hj(),n=t.appearance,r=t.isDarkMode;return gv.useMemo((function(){return WO(zO({token:e,css:qS,appearance:n,isDarkMode:r}))}),[e,n,r])},Wj=function(){var e=Lj(),t=zj();return gv.useMemo((function(){return cf(cf({},e),{},{stylish:t})}),[e,t])},Vj=function(e){return pf(pf({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},Gj=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=gv.useRef({}),r=function(){const[,e]=gv.useReducer((e=>e+1),0);return e}(),o=yp();return iO((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return gv.useMemo((function(){return Vj(e)}),[e])},qj=function(){var e=Lj(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return gv.useMemo((function(){return Vj(t)}),[e])},Xj=function(e,t){return Object.entries(e).map((function(e){var n=Wa(e,2),r=n[0],o=n[1],i=o;return BS(o)||(i=qS(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},Kj=["stylish","appearance","isDarkMode","prefixCls"],Yj=["prefixCls"],Qj=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var l=n(),c=gv.useContext(r),u=GS(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=u.cx,d=u.css,f=qj(),m=gv.useMemo((function(){var t,n,r,o,c,u,m;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Si(l,Kj),m=function(e){return Xj(e,f)},Object.assign(m,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:p,css:qS,responsive:m},s)):t=e,"object"===ki(t)&&(t=BS(t)?d(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Wa(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===ki(r)?a?[n,d(r,"label:".concat(o))]:[n,d(r)]:[n,r]})))),t}),[s,l]);return gv.useMemo((function(){var e=l.prefixCls,t=Si(l,Yj);return{styles:m,cx:p,theme:t,prefixCls:e}}),[m,l])}}},Jj=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return Cv.jsx(t.Provider,{value:e.theme,children:e.children})}},Zj=TE,eF=NE,tF=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";eF=e.ThemeContext,Zj=Jj(e)};const f9=gv.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=Hj(),l=s.appearance,c=s.isDarkMode,u=Wa(O7.useMessage(null==a?void 0:a.message),2),p=u[0],d=u[1],f=Wa(M7.useNotification(null==a?void 0:a.notification),2),m=f[0],g=f[1],h=Wa(N7.useModal(),2),b=h[0],y=h[1];return gv.useEffect((function(){null==i||i({message:p,modal:b,notification:m})}),[]),t=gv.useMemo((function(){var e,t=c?c4.darkAlgorithm:c4.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],ff(ff({},n),{},{algorithm:n.algorithm?[t].concat(Ca(e)):t})):{algorithm:t}}),[r,c]),Cv.jsxs(g1,{prefixCls:o,theme:t,children:[d,g,y,n]})}));nF=function(e){"function"==typeof gv.startTransition?gv.startTransition(e):e()},oF=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){Mj("dark").matches?n("dark"):n("light")},i=function(){Mj("dark").matches?r("dark"):r("light")};return gv.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),rF||(rF=Mj("dark")),rF.addEventListener("change",o),function(){rF.removeEventListener("change",o)};nF((function(){n(t)}))}),[t]),gv.useLayoutEffect((function(){return rF||(rF=Mj("dark")),rF.addEventListener("change",i),function(){rF.removeEventListener("change",i)}}),[]),null};const m9=gv.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,p=Wa(gf("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),d=p[0],f=p[1],m=Wa(gf("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),g=m[0],h=m[1],b=Wa(gv.useState(null!==(t=Mj("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],_=Wa(gv.useState(!1),2),w=_[0],C=_[1];return gv.useEffect((function(){nF((function(){C(!0)}))}),[]),Cv.jsxs(Bj.Provider,{value:{themeMode:d,setThemeMode:f,appearance:g,setAppearance:h,isDarkMode:"dark"===g,browserPrefers:y},children:[w&&Cv.jsx(oF,{themeMode:d,setAppearance:h,setBrowserPrefers:v}),n]})}));iF=["stylish"];const g9=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=Hj(),c=l.appearance,u=l.isDarkMode,p=Wj(),d=p.stylish,f=Si(p,iF),m=gv.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=gv.useMemo((function(){return bf(bf({},m),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[m,n,f,c]),h=gv.useMemo((function(){return o?o({token:bf(bf({},f),g),stylish:d,appearance:c,isDarkMode:u,css:qS}):{}}),[o,f,g,d,c]),b=gv.useMemo((function(){return bf(bf({},h),d)}),[h,d]),y=bf(bf(bf(bf({},f),g),{},{stylish:b},l),{},{prefixCls:a});return Cv.jsx(s,{theme:y,children:t})};aF=function(e){var t=e.styledConfig?Jj(e.styledConfig):void 0,n=e.StyleEngineContext;return gv.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,p=r.appearance,d=r.defaultAppearance,f=r.onAppearanceChange,m=r.themeMode,g=r.defaultThemeMode,h=r.onThemeModeChange,b=r.styled,y=gv.useContext(n),v=y.prefixCls,_=y.StyledThemeContext,w=y.CustomThemeContext,C=gv.useContext(w),k=b?Jj(b):t||Zj,x=c||v;return Cv.jsx(n.Provider,{value:{prefixCls:x,StyledThemeContext:(null==b?void 0:b.ThemeContext)||_||eF,CustomThemeContext:w},children:Cv.jsx(m9,{themeMode:m,defaultThemeMode:g,onThemeModeChange:h,defaultAppearance:d,appearance:p,onAppearanceChange:f,useTheme:e.useTheme,children:Cv.jsx(f9,{prefixCls:x,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:Cv.jsx(g9,{prefixCls:x,customToken:i,defaultCustomToken:C,customStylish:a,StyledThemeProvider:k,children:o})})})})}))},sF=function(e){return function(){var t=gv.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=Wj(),a=Hj(),s=gv.useContext(r),l=gv.useContext(null!=n?n:eF)||{},c=gv.useMemo((function(){return vf(vf(vf(vf({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},lF=new FS,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=lF),pF=(WJ={key:"acss",speedy:!1},nZ=wf(wf({},WJ),{},{key:null!==(VJ=WJ.key)&&void 0!==VJ?VJ:"zcss",speedy:null!==(GJ=WJ.speedy)&&void 0!==GJ&&GJ}),rZ=NS({key:nZ.key,speedy:nZ.speedy,container:nZ.container}),oZ=XS(rZ),iZ=HO(oZ),rZ.cache=lF.add(rZ.cache),XJ=null===(qJ=nZ.styled)||void 0===qJ?void 0:qJ.ThemeContext,YJ=sF({StyleEngineContext:KJ=gv.createContext({CustomThemeContext:gv.createContext(nZ.customToken?nZ.customToken:{}),StyledThemeContext:XJ,prefixCls:null==nZ?void 0:nZ.prefixCls})}),QJ=Qj({hashPriority:nZ.hashPriority,useTheme:YJ,EmotionContext:oZ}),JJ=jE(YJ),ZJ=FE(QJ),eZ=aF({styledConfig:nZ.styled,StyleEngineContext:KJ,useTheme:YJ}),tZ=GS(rZ.cache,{hashPriority:nZ.hashPriority}),cF={createStyles:QJ,createGlobalStyle:JJ,createStylish:ZJ,css:qS,cx:tZ.cx,keyframes:rZ.keyframes,injectGlobal:rZ.injectGlobal,styleManager:rZ,useTheme:YJ,StyleProvider:iZ,ThemeProvider:eZ}).createGlobalStyle,dF=cF.css,fF=cF.cx,mF=cF.keyframes,gF=cF.ThemeProvider,hF=cF.StyleProvider,bF=cF.useTheme,_F=(uF=cF.createStyles)((function(e){var t=e.css,n=mF(yF||(yF=Ei(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(vF||(vF=Ei(["\n animation: "," 1s linear infinite;\n "])),n)}})),wF=["icon","size","color","fill","className","spin"],CF=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const h9=gv.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=Si(e,wF),l=_F(),c=l.styles,u=l.cx,p=t,d=gv.useMemo((function(){return CF(n)}),[n]),f=d.fontSize,m=d.strokeWidth;return Cv.jsx("span",kf(kf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:Cv.jsx(p,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:m,width:f})}))}));xF=uF((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(kF||(kF=Ei(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),DF=["className","size"],SF=function(){var e=Wa(gv.useState(),2),t=e[0],n=e[1],r=Wa(gv.useState(!0),2),o=r[0],i=r[1],a=gv.useRef();return gv.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const b9=gv.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Si(e,DF),i=Wa(SF(),3),a=i[2],s=xF({offset:i[0],outside:i[1],size:r});return Cv.jsx("div",function(e){var t,n;for(t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o-1},RM=function(e,t){var n=this.__data__,r=PM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},im.prototype.clear=function(){this.__data__=[],this.size=0},im.prototype.delete=IM,im.prototype.get=NM,im.prototype.has=AM,im.prototype.set=RM,$M=TM=im,jM=function(){this.__data__=new $M,this.size=0},FM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},LM=function(e){return this.__data__.get(e)},MM=function(e){return this.__data__.has(e)},UM=bM,BM=nM,HM=function(e){if(!BM(e))return!1;var t=UM(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},EJ=/[^.]+$/.exec((zM=iM["__core-js_shared__"])&&zM.keys&&zM.keys.IE_PROTO||""),WM=EJ?"Symbol(src)_1."+EJ:"",VM=Function.prototype.toString,qM=HM,XM=function(e){return!!WM&&WM in e},KM=nM,YM=GM=function(e){if(null!=e){try{return VM.call(e)}catch(LJ){}try{return e+""}catch(LJ){}}return""},QM=/[\\^$.*+?()[\]{}|]/g,JM=/^\[object .+?Constructor\]$/,ZM=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(QM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eU=function(e,t){return null==e?void 0:e[t]},tU=function(e){return!(!KM(e)||XM(e))&&(qM(e)?ZM:JM).test(YM(e))},nU=eU,rU=function(e,t){var n=nU(e,t);return tU(n)?n:void 0},oU=rU(iM,"Map"),iU=rU(Object,"create"),sU=aU=iU,lU=aU,cU=Object.prototype.hasOwnProperty,uU=aU,pU=Object.prototype.hasOwnProperty,dU=aU,fU=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},mU=function(e){var t,n=this.__data__;return lU?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:cU.call(n,e)?n[e]:void 0},gU=function(e){var t=this.__data__;return uU?void 0!==t[e]:pU.call(t,e)},hU=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=dU&&void 0===t?"__lodash_hash_undefined__":t,this},am.prototype.clear=function(){this.__data__=sU?sU(null):{},this.size=0},am.prototype.delete=fU,am.prototype.get=mU,am.prototype.has=gU,am.prototype.set=hU,bU=am,yU=TM,vU=oU,_U=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},CU=wU=function(e,t){var n=e.__data__;return _U(t)?n["string"==typeof t?"string":"hash"]:n.map},kU=wU,xU=wU,DU=wU,SU=function(e){var t=CU(this,e).delete(e);return this.size-=t?1:0,t},EU=function(e){return kU(this,e).get(e)},OU=function(e){return xU(this,e).has(e)},PU=function(e,t){var n=DU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},sm.prototype.clear=function(){this.size=0,this.__data__={hash:new bU,map:new(vU||yU),string:new bU}},sm.prototype.delete=SU,sm.prototype.get=EU,sm.prototype.has=OU,sm.prototype.set=PU,NU=TM,AU=oU,RU=IU=sm,TU=TM,$U=FM,jU=LM,FU=MM,LU=function(e,t){var n,r=this.__data__;if(r instanceof NU){if(n=r.__data__,!AU||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new RU(n)}return r.set(e,t),this.size=r.size,this},lm.prototype.clear=jM,lm.prototype.delete=$U,lm.prototype.get=jU,lm.prototype.has=FU,lm.prototype.set=LU,MU=lm,UU=IU,BU=function(e){return this.__data__.has(e)},cm.prototype.add=cm.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},cm.prototype.has=BU,WU=HU=cm,VU=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new WU:void 0,i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},PB=yM,(IB={})["[object Float32Array]"]=IB["[object Float64Array]"]=IB["[object Int8Array]"]=IB["[object Int16Array]"]=IB["[object Int32Array]"]=IB["[object Uint8Array]"]=IB["[object Uint8ClampedArray]"]=IB["[object Uint16Array]"]=IB["[object Uint32Array]"]=!0,IB["[object Arguments]"]=IB["[object Array]"]=IB["[object ArrayBuffer]"]=IB["[object Boolean]"]=IB["[object DataView]"]=IB["[object Date]"]=IB["[object Error]"]=IB["[object Function]"]=IB["[object Map]"]=IB["[object Number]"]=IB["[object Object]"]=IB["[object RegExp]"]=IB["[object Set]"]=IB["[object String]"]=IB["[object WeakMap]"]=!1,NB=function(e){return PB(e)&&OB(e.length)&&!!IB[EB(e)]},AB=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&rM.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(LJ){}}();e.exports=i}(RB={exports:{}},RB.exports),TB=NB,FB=(jB=($B=RB.exports)&&$B.isTypedArray)?AB(jB):TB,MB=fB,UB=wB,BB=oB,HB=kB,zB=DB,WB=LB=FB,VB=Object.prototype.hasOwnProperty,GB=function(e,t){var n,r=BB(e),o=!r&&UB(e),i=!r&&!o&&HB(e),a=!r&&!o&&!i&&WB(e),s=r||o||i||a,l=s?MB(e.length,String):[],c=l.length;for(n in e)!t&&!VB.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||zB(n,c))||l.push(n);return l},qB=Object.prototype,XB=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qB)},aZ=Object.keys,sZ=Object,KB=XB,YB=function(e){return aZ(sZ(e))},QB=Object.prototype.hasOwnProperty,JB=function(e){var t,n;if(!KB(e))return YB(e);for(n in t=[],Object(e))QB.call(e,n)&&"constructor"!=n&&t.push(n);return t},ZB=HM,eH=SB,tH=GB,nH=JB,rH=function(e){return null!=e&&eH(e.length)&&!ZB(e)},oH=function(e){return rH(e)?tH(e):nH(e)},iH=sB,aH=dB,sH=oH,lH=function(e){return iH(e,sH,aH)},cH=lH,uH=Object.prototype.hasOwnProperty,pH=function(e,t,n,r,o,i){var a,s,l,c,u,p,d,f,m,g,h,b=1&n,y=cH(e),v=y.length;if(v!=cH(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:uH.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),p=b;++a .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),fz=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const $9=gv.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Si(e,fz),u=dz(l),p=u.styles;return Cv.jsxs(T9,vm(vm({className:(0,u.cx)(p.container,a),onClick:function(){i(!o)}},c),{},{children:[Cv.jsx(v9,{icon:o?a0:KZ,size:"site"}),Cv.jsxs(U6,{bodyStyle:{padding:0},className:p.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:p.drawerRoot,width:"100vw",children:[Cv.jsx(U4,{className:p.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Cv.jsx("div",{className:p.fillRect})]})]}))}));mz=["icon","children","size"],bz=uF((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(gz||(gz=Ei(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(hz||(hz=Ei(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}));const j9=gv.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Si(e,mz),a=bz(),s=a.styles;return Cv.jsx(d9,wm(wm({bordered:!1,className:(0,a.cx)(s.tag,"small"===o&&s.small)},i),{},{children:Cv.jsxs(az,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));yz={exports:{}},vz={},_z=gv,wz="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Cz=_z.useState,kz=_z.useEffect,xz=_z.useLayoutEffect,Dz=_z.useDebugValue,Sz="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=Cz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return xz((function(){o.value=n,o.getSnapshot=t,Cm(o)&&i({inst:o})}),[e,n,t]),kz((function(){return Cm(o)&&i({inst:o}),e((function(){Cm(o)&&i({inst:o})}))}),[e]),Dz(n),n},vz.useSyncExternalStore=void 0!==_z.useSyncExternalStore?_z.useSyncExternalStore:Sz,yz.exports=vz,Ez=yz.exports,Oz={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},Pz=globalThis&&globalThis.__extends||(TJ=function(e,t){return(TJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}TJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Iz=globalThis&&globalThis.__assign||function(){return Iz=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=dF(Zz||(Zz=Ei(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:fF(i,dF(eW||(eW=Ei(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:fF("".concat(yW,"-bottom-handle"),dF(tW||(tW=Ei(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:fF(yW,dF(nW||(nW=Ei(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,yW)),fixed:dF(rW||(rW=Ei(["\n position: relative;\n "]))),fullscreen:dF(oW||(oW=Ei(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:dF(iW||(iW=Ei(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:fF(i,dF(aW||(aW=Ei(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:fF(dF(sW||(sW=Ei(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(yW,"-left-handle")),panel:fF("".concat(yW,"-fixed"),dF(lW||(lW=Ei(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:fF(i,dF(cW||(cW=Ei(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:fF(dF(uW||(uW=Ei(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(yW,"-right-handle")),toggleBottom:fF("".concat(yW,"-toggle"),"".concat(yW,"-toggle-bottom"),o,dF(pW||(pW=Ei(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,bW,40)),toggleLeft:fF("".concat(yW,"-toggle"),"".concat(yW,"-toggle-left"),o,dF(dW||(dW=Ei(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,bW,bW,40)),toggleRight:fF("".concat(yW,"-toggle"),"".concat(yW,"-toggle-right"),o,dF(fW||(fW=Ei(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,bW,bW,40)),toggleTop:fF("".concat(yW,"-toggle"),"".concat(yW,"-toggle-top"),o,dF(mW||(mW=Ei(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,bW,40,bW)),topFloat:fF(i,dF(gW||(gW=Ei(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:fF("".concat(yW,"-top-handle"),dF(hW||(hW=Ei(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),_W=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const F9=gv.memo((function(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,m,g,h,b,y,v,_,w,C,k,x,D,S,E=e.headerHeight,O=void 0===E?0:E,P=e.fullscreen,I=e.maxHeight,N=e.pin,A=void 0===N||N,R=e.mode,T=void 0===R?"fixed":R,$=e.children,j=e.placement,F=void 0===j?"right":j,L=e.resize,M=e.style,U=e.size,B=e.defaultSize,H=e.minWidth,z=e.minHeight,W=e.maxWidth,V=e.onSizeChange,G=e.onSizeDragging,q=e.expandable,X=void 0===q||q,K=e.expand,Y=e.defaultExpand,Q=void 0===Y||Y,J=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=gv.useRef(),ae=(b=ie,v=(y={}).onEnter,_=y.onLeave,w=y.onChange,C=em(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=em(function(e){var t,n;return void 0===e&&(e=!1),t=em(gv.useState(e),2),n=t[1],[t[0],gv.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],gv.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),k=C[0],D=(x=C[1]).setTrue,S=x.setFalse,um("mouseenter",(function(){null==v||v(),D(),null==w||w(!0)}),{target:b}),um("mouseleave",(function(){null==_||_(),S(),null==w||w(!1)}),{target:b}),k),se="top"===F||"bottom"===F,le=vW(O),ce=le.styles,ue=le.cx,pe=Wa(gf(Q,{onChange:J,value:K}),2),de=pe[0],fe=pe[1];return gv.useEffect((function(){A||(ae&&!de?fe(!0):!ae&&de&&fe(!1))}),[A,ae,de]),n=(t=Wa(gv.useState(!0),2))[0],r=t[1],i=(o=Wa(gv.useState(!1),2))[0],a=o[1],l=gv.useMemo((function(){return s?Di({},_W(F),ce["".concat(_W(F),"Handle")]):{}}),[s=!1!==L&&de,F]),c=xm(Di({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},_W(F),!0),L),u=gv.useMemo((function(){return xm(se?{height:180,width:"100%"}:{height:"100%",width:280},B)}),[se]),p=de?{defaultSize:u,maxHeight:"number"==typeof I?Math.max(I,0):I,maxWidth:"number"==typeof W?Math.max(W,0):W,minHeight:"number"==typeof z?Math.max(z,0):z,minWidth:"number"==typeof H?Math.max(H,0):H,size:U}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(d=gv.useMemo((function(){switch(F){case"top":return{Arrow:MZ,className:"Bottom"};case"bottom":return{Arrow:HZ,className:"Top"};case"right":return{Arrow:UZ,className:"Left"};case"left":return{Arrow:BZ,className:"Right"}}}),[ce,F])).Arrow,g=Cv.jsx(T9,{className:ue(ce["toggle".concat(m=d.className)],oe.handle),style:{opacity:de?A?void 0:0:ee?1:0},children:Cv.jsx(T9,{onClick:function(){fe(!de)},style:ne,children:Cv.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(de?180:0,"deg)")},children:Cv.jsx(f,{size:16,strokeWidth:1.5})})})}),h=Cv.jsx(Yz,xm(xm({},p),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==G||G(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==V||V(o,{height:n.style.height,width:n.style.width})},style:xm({transition:i?"unset":void 0},M),children:$})),P?Cv.jsx("div",{className:ue(ce.fullscreen,Z),children:$}):Cv.jsxs("aside",{className:ue(ce.container,ce["fixed"===T?"fixed":"".concat(F,"Float")],Z),ref:ie,style:de?Di({},"border".concat(m,"Width"),1):{},children:[X&&n&&g,te?de&&h:h]})}));DW=uF((function(e){var t=e.css,n=e.token;return{body:t(wW||(wW=Ei(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(CW||(CW=Ei(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(kW||(kW=Ei(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(xW||(xW=Ei(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),SW=["className","children"];const L9=gv.memo((function(e){var t=e.className,n=e.children,r=Si(e,SW),o=DW();return Cv.jsx("div",Sm(Sm({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));EW=["className","children"];const M9=gv.memo((function(e){var t=e.className,n=e.children,r=Si(e,EW),o=DW();return Cv.jsx("div",Om(Om({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));OW=["className","children"];const U9=gv.memo((function(e){var t=e.className,n=e.children,r=Si(e,OW),o=DW();return Cv.jsx("div",Im(Im({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));PW=["pin","setPin","className","setExpand","title","position"];const B9=gv.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=Si(e,PW),c=DW(),u=c.cx,p=c.styles,d=Cv.jsx(v9,{icon:ZZ,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=Cv.jsx(v9,{active:t,icon:t?n0:t0,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Cv.jsxs("div",Am(Am({className:u(p.header,r)},l),{},{children:["left"===s?d:f,i,"left"===s?f:d]}))}));IW=function e(t,n){var r,o,i,a;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const H9=t(IW);NW=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const z9=gv.memo((function(e){var t=e.url;return gv.useEffect((function(){var e=NW(t);document.head.append(e)}),[]),!1}));AW=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return OZ.createElement("div",{className:f0("".concat(t,"-column"),s),style:a},(r||n)&&OZ.createElement("h2",null,n&&OZ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return OZ.createElement("div",{className:f0("".concat(t,"-item"),e.className),style:e.style,key:n},OZ.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&OZ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&OZ.createElement(OZ.Fragment,null,OZ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),OZ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},RW=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],TW=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,p=void 0===u?"dark":u,d=Si(e,RW),f=f0("".concat(n),r,Di({},"".concat(n,"-").concat(p),!!p)),m="number"==typeof s&&s>0;return OZ.createElement("footer",xa(xa({},d),{},{className:f,style:xa(xa({},o),{},{backgroundColor:l})}),OZ.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&OZ.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:m?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.className,a=e.items,l=void 0===a?[]:a,c=xa({},e.style);return m&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),OZ.createElement(AW,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&OZ.createElement("section",{className:"".concat(n,"-bottom")},OZ.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},FW=uF((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n($W||($W=Ei(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(jW||(jW=Ei(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const W9=gv.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=FW({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return Cv.jsx("section",{className:i.container,children:Cv.jsx(TW,{bottom:n,className:i.footer,columns:t,theme:r})})}));GW=uF((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,s=e.responsive;return{footer:r(LW||(LW=Ei(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(MW||(MW=Ei(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .ant-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,i.fontFamilyCode),group:o(a&&r(UW||(UW=Ei(["\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-header {\n background: ",";\n }\n "])),i.colorFillTertiary),r(BW||(BW=Ei(["\n .ant-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .ant-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])))),icon:r(HW||(HW=Ei(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(zW||(zW=Ei(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .ant-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n .ant-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .ant-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),t&&r(WW||(WW=Ei(["\n .ant-form-item-control {\n width: ",";\n }\n "])),(n=t,"number"==typeof n||Pf(n)&&"[object Number]"==Of(n)?"".concat(t,"px"):t)),s.mobile),title:r(VW||(VW=Ei(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),i.colorPrimary)}})),qW=["className","children"];const V9=gv.memo((function(e){var t=e.className,n=e.children,r=Si(e,qW),o=GW();return Cv.jsx("div",Tm(Tm({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));XW=["className","icon","title","children","extra"];const G9=gv.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Si(e,XW),s=GW(),l=s.styles;return Cv.jsx(a6,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .ant-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),n.borderRadius)}})),tV=["className","itemMinWidth","footer","form","items","children"],(nV=gv.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,s=e.children,l=Si(e,tV),c=eV();return Cv.jsxs(_7,Bm(Bm({className:(0,c.cx)(c.styles.form,n),colon:!1,form:i,layout:"horizontal",ref:t},l),{},{children:[null==a?void 0:a.map((function(e,t){return Cv.jsx(G9,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return Cv.jsx(K9,Bm({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&Cv.jsx(V9,{children:o})]}))}))).Item=K9,nV.Group=G9;const Y9=nV;rV={};const Q9=Cv,J9=gv;iV=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:p,theme:d,lang:f,loading:m}){const[g,h]=J9.useState(!1);return J9.useEffect((()=>{g||(Promise.resolve().then((()=>(oV||(oV=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=M(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):pe(e,t)}function i(e){void 0!==this._$AN?(me(this),this._$AM=e,ge(this)):this._$AM=e}function a(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;ie:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,w=window,C=w.trustedTypes,k=C?C.emptyScript:"",x=w.reactiveElementPolyfillSupport,D={toAttribute(e,t){switch(t){case Boolean:e=e?k:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},S=(e,t)=>t!==e&&(t==t||e==e),E={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:S},O="finalized";let P=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=E){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||E}static finalize(){if(this.hasOwnProperty(O))return!1;this[O]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(_(e))}else void 0!==e&&t.push(_(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=m.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=E){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:D).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:D;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||S)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};P[O]=!0,P.elementProperties=new Map,P.elementStyles=[],P.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:P}),(null!==(s=w.reactiveElementVersions)&&void 0!==s?s:w.reactiveElementVersions=[]).push("1.6.2");const I=window,N=I.trustedTypes,A=N?N.createPolicy("lit-html",{createHTML:e=>e}):void 0,R="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,$="?"+T,j=`<${$}>`,F=document,L=()=>F.createComment(""),M=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,B="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,W=/>/g,V=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,q=/"/g,X=/^(?:script|style|textarea|title)$/i,K=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),J=new WeakMap,Z=F.createTreeWalker(F,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",a=H;for(let l=0;l"===s[0]?(a=o??H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?V:'"'===s[3]?q:G):a===q||a===G?a=V:a===z||a===W?a=H:(a=V,o=void 0);const p=a===V&&e[l+1].startsWith("/>")?" ":"";i+=a===H?t+j:c>=0?(r.push(n),t.slice(0,c)+R+t.slice(c)+T+p):t+T+(-2===c?(r.push(void 0),l):p)}const s=i+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length0){r.textContent=N?N.emptyScript:"";for(let n=0;nU(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Q&&M(this._$AH)?this._$AA.nextSibling.data=e:this.$(F.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:F).importNode(n,!0);Z.currentNode=o;let i=Z.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new te(i,i.nextSibling,this,e):1===l.type?t=new l.ctor(i,l.name,l.strings,this,e):6===l.type&&(t=new se(i,this,e)),this._$AV.push(t),l=r[++s]}a!==(null==l?void 0:l.index)&&(i=Z.nextNode(),a++)}return Z.currentNode=F,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new ee(e)),t}T(e){U(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new te(this.k(L()),this.k(L()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!M(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new te(t.insertBefore(L(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}};ce.finalized=!0,ce._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ce});const ue=globalThis.litElementPolyfillSupport;null==ue||ue({LitElement:ce}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const pe=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;let de=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const fe=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),fe(i,t);return!0},me=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},ge=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),he(t)}},he=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class be extends de{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),ge(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(fe(this,e),me(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ye{}const ve=new WeakMap,_e=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends be{render(e){return Q}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),Q}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=ve.get(n);void 0===r&&(r=new WeakMap,ve.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=ve.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?d(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&p(t,n,i),i},t.GiscusWidget=class extends ce{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new ye,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this._host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return K`