From c2582bcf68525b1b13add6380c86d7fe322a7e61 Mon Sep 17 00:00:00 2001 From: a3318375 <184608371@qq.com> Date: Fri, 22 Mar 2024 09:07:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20a3318375?= =?UTF-8?q?/inyaw-admin-antd-vite@284bcf068023a9de4600d923d8ffe273f28e3937?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-BEuEk5br.js => index-_3RnvUGx.js} | 218 +++++++++--------- index.html | 2 +- 2 files changed, 110 insertions(+), 110 deletions(-) rename assets/{index-BEuEk5br.js => index-_3RnvUGx.js} (77%) diff --git a/assets/index-BEuEk5br.js b/assets/index-_3RnvUGx.js similarity index 77% rename from assets/index-BEuEk5br.js rename to assets/index-_3RnvUGx.js index a3e51cd..8b3b7f0 100644 --- a/assets/index-BEuEk5br.js +++ b/assets/index-_3RnvUGx.js @@ -37,11 +37,39 @@ function C5(e,t){for(var n=0;n")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{J0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xd(e):""}function qk(e){switch(e.tag){case 5:return xd(e.type);case 16:return xd("Lazy");case 13:return xd("Suspense");case 19:return xd("SuspenseList");case 0:case 2:case 15:return e=ey(e.type,!1),e;case 11:return e=ey(e.type.render,!1),e;case 1:return e=ey(e.type,!0),e;default:return""}}function Gb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zs:return"Fragment";case Qs:return"Portal";case Wb:return"Profiler";case GS:return"StrictMode";case Kb:return"Suspense";case Ub:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case k5:return(e.displayName||"Context")+".Consumer";case F5:return(e._context.displayName||"Context")+".Provider";case qS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YS:return t=e.displayName||null,t!==null?t:Gb(e.type)||"Memo";case Fi:t=e._payload,e=e._init;try{return Gb(e(t))}catch{}}return null}function Yk(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=t.render,e=e.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 Gb(t);case 8:return t===GS?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function A5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xk(e){var t=A5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ym(e){e._valueTracker||(e._valueTracker=Xk(e))}function B5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=A5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $g(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qb(e,t){var n=t.checked;return Wn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function F$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ll(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function z5(e,t){t=t.checked,t!=null&&US(e,"checked",t,!1)}function Yb(e,t){z5(e,t);var n=ll(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xb(e,t.type,ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function k$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xb(e,t,n){(t!=="number"||$g(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wd=Array.isArray;function Cc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function of(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nd={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},Qk=["Webkit","ms","Moz","O"];Object.keys(Nd).forEach(function(e){Qk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nd[t]=Nd[e]})});function K5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nd.hasOwnProperty(e)&&Nd[e]?(""+t).trim():t+"px"}function U5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=K5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Zk=Wn({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});function Jb(e,t){if(t){if(Zk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(rt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(rt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(rt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(rt(62))}}function e1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var t1=null;function XS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var n1=null,Sc=null,xc=null;function B$(e){if(e=em(e)){if(typeof n1!="function")throw Error(rt(280));var t=e.stateNode;t&&(t=Xp(t),n1(e.stateNode,e.type,t))}}function G5(e){Sc?xc?xc.push(e):xc=[e]:Sc=e}function q5(){if(Sc){var e=Sc,t=xc;if(xc=Sc=null,B$(e),t)for(e=0;e>>=0,e===0?32:31-(cL(e)/uL|0)|0}var Qm=64,Zm=4194304;function $d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ig(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=$d(l):(a&=i,a!==0&&(r=$d(a)))}else i=n&~o,i!==0?r=$d(i):a!==0&&(r=$d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ca(t),e[t]=n}function vL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dd),Y$=" ",X$=!1;function v8(e,t){switch(e){case"keyup":return HL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Js=!1;function WL(e,t){switch(e){case"compositionend":return g8(t);case"keypress":return t.which!==32?null:(X$=!0,Y$);case"textInput":return e=t.data,e===Y$&&X$?null:e;default:return null}}function KL(e,t){if(Js)return e==="compositionend"||!ox&&v8(e,t)?(e=f8(),Hv=tx=Hi=null,Js=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eE(n)}}function b8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C8(){for(var e=window,t=$g();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$g(e.document)}return t}function ax(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function eA(e){var t=C8(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&b8(n.ownerDocument.documentElement,n)){if(r!==null&&ax(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=tE(n,a);var i=tE(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ec=null,s1=null,kd=null,c1=!1;function nE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;c1||ec==null||ec!==$g(r)||(r=ec,"selectionStart"in r&&ax(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kd&&df(kd,r)||(kd=r,r=_g(s1,"onSelect"),0rc||(e.current=g1[rc],g1[rc]=null,rc--)}function Mn(e,t){rc++,g1[rc]=e.current,e.current=t}var sl={},Wr=yl(sl),ao=yl(!1),as=sl;function Dc(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function io(e){return e=e.childContextTypes,e!=null}function Ng(){Nn(ao),Nn(Wr)}function cE(e,t,n){if(Wr.current!==sl)throw Error(rt(168));Mn(Wr,t),Mn(ao,n)}function M8(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(rt(108,Yk(e)||"Unknown",o));return Wn({},n,r)}function jg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,as=Wr.current,Mn(Wr,e),Mn(ao,ao.current),!0}function uE(e,t,n){var r=e.stateNode;if(!r)throw Error(rt(169));n?(e=M8(e,t,as),r.__reactInternalMemoizedMergedChildContext=e,Nn(ao),Nn(Wr),Mn(Wr,e)):Nn(ao),Mn(ao,n)}var Ja=null,Qp=!1,vy=!1;function R8(e){Ja===null?Ja=[e]:Ja.push(e)}function fA(e){Qp=!0,R8(e)}function bl(){if(!vy&&Ja!==null){vy=!0;var e=0,t=yn;try{var n=Ja;for(yn=1;e>=i,o-=i,ni=1<<32-ca(t)+o|n<O?(E=w,w=null):E=w.sibling;var P=m(y,w,C[O],S);if(P===null){w===null&&(w=E);break}e&&w&&P.alternate===null&&t(y,w),b=a(P,b,O),x===null?$=P:x.sibling=P,x=P,w=E}if(O===C.length)return n(y,w),zn&&Nl(y,O),$;if(w===null){for(;OO?(E=w,w=null):E=w.sibling;var M=m(y,w,P.value,S);if(M===null){w===null&&(w=E);break}e&&w&&M.alternate===null&&t(y,w),b=a(M,b,O),x===null?$=M:x.sibling=M,x=M,w=E}if(P.done)return n(y,w),zn&&Nl(y,O),$;if(w===null){for(;!P.done;O++,P=C.next())P=f(y,P.value,S),P!==null&&(b=a(P,b,O),x===null?$=P:x.sibling=P,x=P);return zn&&Nl(y,O),$}for(w=r(y,w);!P.done;O++,P=C.next())P=h(w,y,O,P.value,S),P!==null&&(e&&P.alternate!==null&&w.delete(P.key===null?O:P.key),b=a(P,b,O),x===null?$=P:x.sibling=P,x=P);return e&&w.forEach(function(D){return t(y,D)}),zn&&Nl(y,O),$}function p(y,b,C,S){if(typeof C=="object"&&C!==null&&C.type===Zs&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case qm:e:{for(var $=C.key,x=b;x!==null;){if(x.key===$){if($=C.type,$===Zs){if(x.tag===7){n(y,x.sibling),b=o(x,C.props.children),b.return=y,y=b;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Fi&&hE($)===x.type){n(y,x.sibling),b=o(x,C.props),b.ref=Zu(y,x,C),b.return=y,y=b;break e}n(y,x);break}else t(y,x);x=x.sibling}C.type===Zs?(b=Xl(C.props.children,y.mode,S,C.key),b.return=y,y=b):(S=Xv(C.type,C.key,C.props,null,y.mode,S),S.ref=Zu(y,b,C),S.return=y,y=S)}return i(y);case Qs:e:{for(x=C.key;b!==null;){if(b.key===x)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(y,b.sibling),b=o(b,C.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=xy(C,y.mode,S),b.return=y,y=b}return i(y);case Fi:return x=C._init,p(y,b,x(C._payload),S)}if(wd(C))return g(y,b,C,S);if(Gu(C))return v(y,b,C,S);av(y,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(y,b.sibling),b=o(b,C),b.return=y,y=b):(n(y,b),b=Sy(C,y.mode,S),b.return=y,y=b),i(y)):n(y,b)}return p}var kc=L8(!0),A8=L8(!1),tm={},_a=yl(tm),gf=yl(tm),pf=yl(tm);function zl(e){if(e===tm)throw Error(rt(174));return e}function vx(e,t){switch(Mn(pf,t),Mn(gf,e),Mn(_a,tm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zb(t,e)}Nn(_a),Mn(_a,t)}function Lc(){Nn(_a),Nn(gf),Nn(pf)}function B8(e){zl(pf.current);var t=zl(_a.current),n=Zb(t,e.type);t!==n&&(Mn(gf,e),Mn(_a,n))}function gx(e){gf.current===e&&(Nn(_a),Nn(gf))}var Hn=yl(0);function Bg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gy=[];function px(){for(var e=0;en?n:4,e(!0);var r=py.transition;py.transition={};try{e(!1),t()}finally{yn=n,py.transition=r}}function nM(){return zo().memoizedState}function pA(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rM(e))oM(t,n);else if(n=j8(e,t,n,r),n!==null){var o=Yr();ua(n,e,r,o),aM(n,t,r)}}function hA(e,t,n){var r=el(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rM(e))oM(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,ga(l,i)){var s=t.interleaved;s===null?(o.next=o,fx(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=j8(e,t,o,r),n!==null&&(o=Yr(),ua(n,e,r,o),aM(n,t,r))}}function rM(e){var t=e.alternate;return e===Vn||t!==null&&t===Vn}function oM(e,t){Ld=zg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZS(e,n)}}var Hg={readContext:Bo,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},yA={readContext:Bo,useCallback:function(e,t){return Oa().memoizedState=[e,t===void 0?null:t],e},useContext:Bo,useEffect:bE,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uv(4194308,4,Q8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uv(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pA.bind(null,Vn,e),[r.memoizedState,e]},useRef:function(e){var t=Oa();return e={current:e},t.memoizedState=e},useState:yE,useDebugValue:Sx,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=yE(!1),t=e[0];return e=gA.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vn,o=Oa();if(zn){if(n===void 0)throw Error(rt(407));n=n()}else{if(n=t(),Cr===null)throw Error(rt(349));ls&30||V8(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,bE(K8.bind(null,r,a,e),[e]),r.flags|=2048,bf(9,W8.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Cr.identifierPrefix;if(zn){var n=ri,r=ni;n=(r&~(1<<32-ca(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ia]=t,e[vf]=r,vM(e,t,!1,!1),t.stateNode=e;e:{switch(i=e1(n,r),n){case"dialog":_n("cancel",e),_n("close",e),o=r;break;case"iframe":case"object":case"embed":_n("load",e),o=r;break;case"video":case"audio":for(o=0;oBc&&(t.flags|=128,r=!0,Ju(a,!1),t.lanes=4194304)}else{if(!r)if(e=Bg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ju(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return kr(t),null}else 2*er()-a.renderingStartTime>Bc&&n!==1073741824&&(t.flags|=128,r=!0,Ju(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=er(),t.sibling=null,n=Hn.current,Mn(Hn,r?n&1|2:n&1),t):(kr(t),null);case 22:case 23:return Ox(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?po&1073741824&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(rt(156,t.tag))}function PA(e,t){switch(lx(t),t.tag){case 1:return io(t.type)&&Ng(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lc(),Nn(ao),Nn(Wr),px(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gx(t),null;case 13:if(Nn(Hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(rt(340));Fc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nn(Hn),null;case 4:return Lc(),null;case 10:return dx(t.type._context),null;case 22:case 23:return Ox(),null;case 24:return null;default:return null}}var lv=!1,zr=!1,OA=typeof WeakSet=="function"?WeakSet:Set,wt=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Yn(e,t,r)}else n.current=null}function O1(e,t,n){try{n()}catch(r){Yn(e,t,r)}}var IE=!1;function IA(e,t){if(u1=Mg,e=C8(),ax(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=i),m===a&&++d===r&&(s=i),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(d1={focusedElem:e,selectionRange:n},Mg=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){t=wt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,p=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:na(t.type,v),p);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(rt(163))}}catch(S){Yn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}return g=IE,IE=!1,g}function Ad(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&O1(t,n,a)}o=o.next}while(o!==r)}}function eh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function I1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hM(e){var t=e.alternate;t!==null&&(e.alternate=null,hM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ia],delete t[vf],delete t[v1],delete t[uA],delete t[dA])),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 yM(e){return e.tag===5||e.tag===3||e.tag===4}function ME(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function M1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tg));else if(r!==4&&(e=e.child,e!==null))for(M1(e,t,n),e=e.sibling;e!==null;)M1(e,t,n),e=e.sibling}function R1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(R1(e,t,n),e=e.sibling;e!==null;)R1(e,t,n),e=e.sibling}var Pr=null,ra=!1;function Mi(e,t,n){for(n=n.child;n!==null;)bM(e,t,n),n=n.sibling}function bM(e,t,n){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(Up,n)}catch{}switch(n.tag){case 5:zr||lc(n,t);case 6:var r=Pr,o=ra;Pr=null,Mi(e,t,n),Pr=r,ra=o,Pr!==null&&(ra?(e=Pr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pr.removeChild(n.stateNode));break;case 18:Pr!==null&&(ra?(e=Pr,n=n.stateNode,e.nodeType===8?my(e.parentNode,n):e.nodeType===1&&my(e,n),cf(e)):my(Pr,n.stateNode));break;case 4:r=Pr,o=ra,Pr=n.stateNode.containerInfo,ra=!0,Mi(e,t,n),Pr=r,ra=o;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&O1(n,t,i),o=o.next}while(o!==r)}Mi(e,t,n);break;case 1:if(!zr&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Yn(n,t,l)}Mi(e,t,n);break;case 21:Mi(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Mi(e,t,n),zr=r):Mi(e,t,n);break;default:Mi(e,t,n)}}function RE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OA),t.forEach(function(r){var o=kA.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RA(r/1960))-r,10e?16:e,Vi===null)var r=!1;else{if(e=Vi,Vi=null,Kg=0,dn&6)throw Error(rt(331));var o=dn;for(dn|=4,wt=e.current;wt!==null;){var a=wt,i=a.child;if(wt.flags&16){var l=a.deletions;if(l!==null){for(var s=0;ser()-Ex?Yl(e,0):$x|=n),lo(e,t)}function OM(e,t){t===0&&(e.mode&1?(t=Zm,Zm<<=1,!(Zm&130023424)&&(Zm=4194304)):t=1);var n=Yr();e=ui(e,t),e!==null&&(Zf(e,t,n),lo(e,n))}function FA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OM(e,n)}function kA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(rt(314))}r!==null&&r.delete(t),OM(e,n)}var IM;IM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ao.current)oo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return oo=!1,$A(e,t,n);oo=!!(e.flags&131072)}else oo=!1,zn&&t.flags&1048576&&_8(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gv(e,t),e=t.pendingProps;var o=Dc(t,Wr.current);$c(t,n),o=yx(null,t,r,e,o,n);var a=bx();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,io(r)?(a=!0,jg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mx(t),o.updater=Zp,t.stateNode=o,o._reactInternals=t,C1(t,r,e,n),t=w1(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&ix(t),Ur(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=AA(r),e=na(r,e),o){case 0:t=x1(null,t,r,e,n);break e;case 1:t=EE(null,t,r,e,n);break e;case 11:t=wE(null,t,r,e,n);break e;case 14:t=$E(null,t,r,na(r.type,e),n);break e}throw Error(rt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),x1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),EE(e,t,r,o,n);case 3:e:{if(dM(t),e===null)throw Error(rt(387));r=t.pendingProps,a=t.memoizedState,o=a.element,D8(e,t),Ag(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ac(Error(rt(423)),t),t=PE(e,t,r,n,o);break e}else if(r!==o){o=Ac(Error(rt(424)),t),t=PE(e,t,r,n,o);break e}else for(bo=Qi(t.stateNode.containerInfo.firstChild),xo=t,zn=!0,ia=null,n=A8(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fc(),r===o){t=di(e,t,n);break e}Ur(e,t,r,n)}t=t.child}return t;case 5:return B8(t),e===null&&h1(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,f1(r,o)?i=null:a!==null&&f1(r,a)&&(t.flags|=32),uM(e,t),Ur(e,t,i,n),t.child;case 6:return e===null&&h1(t),null;case 13:return fM(e,t,n);case 4:return vx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kc(t,null,r,n):Ur(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),wE(e,t,r,o,n);case 7:return Ur(e,t,t.pendingProps,n),t.child;case 8:return Ur(e,t,t.pendingProps.children,n),t.child;case 12:return Ur(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Mn(kg,r._currentValue),r._currentValue=i,a!==null)if(ga(a.value,i)){if(a.children===o.children&&!ao.current){t=di(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ai(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),y1(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(rt(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),y1(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ur(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$c(t,n),o=Bo(o),r=r(o),t.flags|=1,Ur(e,t,r,n),t.child;case 14:return r=t.type,o=na(r,t.pendingProps),o=na(r.type,o),$E(e,t,r,o,n);case 15:return sM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),Gv(e,t),t.tag=1,io(r)?(e=!0,jg(t)):e=!1,$c(t,n),k8(t,r,o),C1(t,r,o,n),w1(null,t,r,!0,e,n);case 19:return mM(e,t,n);case 22:return cM(e,t,n)}throw Error(rt(156,t.tag))};function MM(e,t){return t8(e,t)}function LA(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 ko(e,t,n,r){return new LA(e,t,n,r)}function Mx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AA(e){if(typeof e=="function")return Mx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qS)return 11;if(e===YS)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ko(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Mx(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Zs:return Xl(n.children,o,a,t);case GS:i=8,o|=8;break;case Wb:return e=ko(12,n,t,o|2),e.elementType=Wb,e.lanes=a,e;case Kb:return e=ko(13,n,t,o),e.elementType=Kb,e.lanes=a,e;case Ub:return e=ko(19,n,t,o),e.elementType=Ub,e.lanes=a,e;case L5:return nh(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F5:i=10;break e;case k5:i=9;break e;case qS:i=11;break e;case YS:i=14;break e;case Fi:i=16,r=null;break e}throw Error(rt(130,e==null?e:typeof e,""))}return t=ko(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Xl(e,t,n,r){return e=ko(7,e,r,t),e.lanes=n,e}function nh(e,t,n,r){return e=ko(22,e,r,t),e.elementType=L5,e.lanes=n,e.stateNode={isHidden:!1},e}function Sy(e,t,n){return e=ko(6,e,null,t),e.lanes=n,e}function xy(e,t,n){return t=ko(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BA(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=ny(0),this.expirationTimes=ny(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ny(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rx(e,t,n,r,o,a,i,l,s){return e=new BA(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ko(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mx(a),e}function zA(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NM)}catch(e){console.error(e)}}NM(),_5.exports=$o;var ja=_5.exports;const qg=jn(ja),jM=C5({__proto__:null,default:qg},[ja]);var LE=ja;Hb.createRoot=LE.createRoot,Hb.hydrateRoot=LE.hydrateRoot;var DM={exports:{}};/*! +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function by(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function S1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var SA=typeof WeakMap=="function"?WeakMap:Map;function iM(e,t,n){n=ai(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wg||(Wg=!0,_1=r),S1(e,t)},n}function lM(e,t,n){n=ai(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){S1(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){S1(e,t),typeof r!="function"&&(Ji===null?Ji=new Set([this]):Ji.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function CE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new SA;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=DA.bind(null,e,t,n),t.then(e,e))}function SE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xE(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ai(-1,1),t.tag=2,Zi(n,t,1))),n.lanes|=1),e)}var xA=bi.ReactCurrentOwner,oo=!1;function Ur(e,t,n,r){t.child=e===null?A8(t,null,n,r):kc(t,e.child,n,r)}function wE(e,t,n,r,o){n=n.render;var a=t.ref;return $c(t,o),r=yx(e,t,n,r,a,o),n=bx(),e!==null&&!oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(zn&&n&&ix(t),t.flags|=1,Ur(e,t,r,o),t.child)}function $E(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Mx(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,sM(e,t,a,r,o)):(e=Xv(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:df,n(i,r)&&e.ref===t.ref)return di(e,t,o)}return t.flags|=1,e=tl(a,r),e.ref=t.ref,e.return=t,t.child=e}function sM(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(df(a,r)&&e.ref===t.ref)if(oo=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(oo=!0);else return t.lanes=e.lanes,di(e,t,o)}return x1(e,t,n,r,o)}function cM(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mn(sc,po),po|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mn(sc,po),po|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Mn(sc,po),po|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Mn(sc,po),po|=r;return Ur(e,t,o,n),t.child}function uM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function x1(e,t,n,r,o){var a=io(n)?as:Wr.current;return a=Dc(t,a),$c(t,o),n=yx(e,t,n,r,a,o),r=bx(),e!==null&&!oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(zn&&r&&ix(t),t.flags|=1,Ur(e,t,n,o),t.child)}function EE(e,t,n,r,o){if(io(n)){var a=!0;jg(t)}else a=!1;if($c(t,o),t.stateNode===null)Gv(e,t),k8(t,n,r),C1(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bo(u):(u=io(n)?as:Wr.current,u=Dc(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||s!==u)&&pE(t,i,r,u),ki=!1;var m=t.memoizedState;i.state=m,Ag(t,r,i,o),s=t.memoizedState,l!==r||m!==s||ao.current||ki?(typeof d=="function"&&(b1(t,n,d,r),s=t.memoizedState),(l=ki||gE(t,n,l,r,m,s,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,D8(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:na(t.type,l),i.props=u,f=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Bo(s):(s=io(n)?as:Wr.current,s=Dc(t,s));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||m!==s)&&pE(t,i,r,s),ki=!1,m=t.memoizedState,i.state=m,Ag(t,r,i,o);var g=t.memoizedState;l!==f||m!==g||ao.current||ki?(typeof h=="function"&&(b1(t,n,h,r),g=t.memoizedState),(u=ki||gE(t,n,u,r,m,g,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=s,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return w1(e,t,n,r,a,o)}function w1(e,t,n,r,o,a){uM(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&uE(t,n,!1),di(e,t,a);r=t.stateNode,xA.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=kc(t,e.child,null,a),t.child=kc(t,null,l,a)):Ur(e,t,l,a),t.memoizedState=r.state,o&&uE(t,n,!0),t.child}function dM(e){var t=e.stateNode;t.pendingContext?cE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cE(e,t.context,!1),vx(e,t.containerInfo)}function PE(e,t,n,r,o){return Fc(),sx(o),t.flags|=256,Ur(e,t,n,r),t.child}var $1={dehydrated:null,treeContext:null,retryLane:0};function E1(e){return{baseLanes:e,cachePool:null,transitions:null}}function fM(e,t,n){var r=t.pendingProps,o=Hn.current,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Mn(Hn,o&1),e===null)return h1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=nh(i,r,0,null),e=Xl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=E1(n),t.memoizedState=$1,e):xx(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return wA(e,t,i,r,l,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=tl(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=tl(l,a):(a=Xl(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?E1(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=$1,r}return a=e.child,e=a.sibling,r=tl(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xx(e,t){return t=nh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function iv(e,t,n,r){return r!==null&&sx(r),kc(t,e.child,null,n),e=xx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wA(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=by(Error(rt(422))),iv(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=nh({mode:"visible",children:r.children},o,0,null),a=Xl(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&kc(t,e.child,null,i),t.child.memoizedState=E1(i),t.memoizedState=$1,a);if(!(t.mode&1))return iv(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(rt(419)),r=by(a,r,void 0),iv(e,t,i,r)}if(l=(i&e.childLanes)!==0,oo||l){if(r=Cr,r!==null){switch(i&-i){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}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,ui(e,o),ua(r,e,o,-1))}return Ix(),r=by(Error(rt(421))),iv(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=FA.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,bo=Qi(o.nextSibling),xo=t,zn=!0,ia=null,e!==null&&(jo[Do++]=ni,jo[Do++]=ri,jo[Do++]=is,ni=e.id,ri=e.overflow,is=t),t=xx(t,r.children),t.flags|=4096,t)}function OE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),y1(e.return,t,n)}function Cy(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function mM(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ur(e,t,r.children,n),r=Hn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&OE(e,n,t);else if(e.tag===19)OE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mn(Hn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Bg(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Cy(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Bg(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Cy(t,!0,n,null,a);break;case"together":Cy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ss|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(rt(153));if(t.child!==null){for(e=t.child,n=tl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $A(e,t,n){switch(t.tag){case 3:dM(t),Fc();break;case 5:B8(t);break;case 1:io(t.type)&&jg(t);break;case 4:vx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Mn(kg,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mn(Hn,Hn.current&1),t.flags|=128,null):n&t.child.childLanes?fM(e,t,n):(Mn(Hn,Hn.current&1),e=di(e,t,n),e!==null?e.sibling:null);Mn(Hn,Hn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mM(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Mn(Hn,Hn.current),r)break;return null;case 22:case 23:return t.lanes=0,cM(e,t,n)}return di(e,t,n)}var vM,P1,gM,pM;vM=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};P1=function(){};gM=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,zl(_a.current);var a=null;switch(n){case"input":o=qb(e,o),r=qb(e,r),a=[];break;case"select":o=Wn({},o,{value:void 0}),r=Wn({},r,{value:void 0}),a=[];break;case"textarea":o=Qb(e,o),r=Qb(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tg)}Jb(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(rf.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(rf.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&_n("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};pM=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ju(e,t){if(!zn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function EA(e,t,n){var r=t.pendingProps;switch(lx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kr(t),null;case 1:return io(t.type)&&Ng(),kr(t),null;case 3:return r=t.stateNode,Lc(),Nn(ao),Nn(Wr),px(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ov(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ia!==null&&(j1(ia),ia=null))),P1(e,t),kr(t),null;case 5:gx(t);var o=zl(pf.current);if(n=t.type,e!==null&&t.stateNode!=null)gM(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(rt(166));return kr(t),null}if(e=zl(_a.current),ov(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ia]=t,r[vf]=a,e=(t.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ia]=t,e[vf]=r,vM(e,t,!1,!1),t.stateNode=e;e:{switch(i=e1(n,r),n){case"dialog":_n("cancel",e),_n("close",e),o=r;break;case"iframe":case"object":case"embed":_n("load",e),o=r;break;case"video":case"audio":for(o=0;oBc&&(t.flags|=128,r=!0,Ju(a,!1),t.lanes=4194304)}else{if(!r)if(e=Bg(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ju(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zn)return kr(t),null}else 2*er()-a.renderingStartTime>Bc&&n!==1073741824&&(t.flags|=128,r=!0,Ju(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=er(),t.sibling=null,n=Hn.current,Mn(Hn,r?n&1|2:n&1),t):(kr(t),null);case 22:case 23:return Ox(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?po&1073741824&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(rt(156,t.tag))}function PA(e,t){switch(lx(t),t.tag){case 1:return io(t.type)&&Ng(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lc(),Nn(ao),Nn(Wr),px(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gx(t),null;case 13:if(Nn(Hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(rt(340));Fc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nn(Hn),null;case 4:return Lc(),null;case 10:return dx(t.type._context),null;case 22:case 23:return Ox(),null;case 24:return null;default:return null}}var lv=!1,zr=!1,OA=typeof WeakSet=="function"?WeakSet:Set,wt=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Yn(e,t,r)}else n.current=null}function O1(e,t,n){try{n()}catch(r){Yn(e,t,r)}}var IE=!1;function IA(e,t){if(u1=Mg,e=C8(),ax(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=i),m===a&&++d===r&&(s=i),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(d1={focusedElem:e,selectionRange:n},Mg=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){t=wt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,p=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:na(t.type,v),p);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(rt(163))}}catch(S){Yn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}return g=IE,IE=!1,g}function Ad(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&O1(t,n,a)}o=o.next}while(o!==r)}}function eh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function I1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hM(e){var t=e.alternate;t!==null&&(e.alternate=null,hM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ia],delete t[vf],delete t[v1],delete t[uA],delete t[dA])),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 yM(e){return e.tag===5||e.tag===3||e.tag===4}function ME(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function M1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tg));else if(r!==4&&(e=e.child,e!==null))for(M1(e,t,n),e=e.sibling;e!==null;)M1(e,t,n),e=e.sibling}function R1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(R1(e,t,n),e=e.sibling;e!==null;)R1(e,t,n),e=e.sibling}var Pr=null,ra=!1;function Mi(e,t,n){for(n=n.child;n!==null;)bM(e,t,n),n=n.sibling}function bM(e,t,n){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(Up,n)}catch{}switch(n.tag){case 5:zr||lc(n,t);case 6:var r=Pr,o=ra;Pr=null,Mi(e,t,n),Pr=r,ra=o,Pr!==null&&(ra?(e=Pr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pr.removeChild(n.stateNode));break;case 18:Pr!==null&&(ra?(e=Pr,n=n.stateNode,e.nodeType===8?my(e.parentNode,n):e.nodeType===1&&my(e,n),cf(e)):my(Pr,n.stateNode));break;case 4:r=Pr,o=ra,Pr=n.stateNode.containerInfo,ra=!0,Mi(e,t,n),Pr=r,ra=o;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&O1(n,t,i),o=o.next}while(o!==r)}Mi(e,t,n);break;case 1:if(!zr&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Yn(n,t,l)}Mi(e,t,n);break;case 21:Mi(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Mi(e,t,n),zr=r):Mi(e,t,n);break;default:Mi(e,t,n)}}function RE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OA),t.forEach(function(r){var o=kA.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RA(r/1960))-r,10e?16:e,Vi===null)var r=!1;else{if(e=Vi,Vi=null,Kg=0,dn&6)throw Error(rt(331));var o=dn;for(dn|=4,wt=e.current;wt!==null;){var a=wt,i=a.child;if(wt.flags&16){var l=a.deletions;if(l!==null){for(var s=0;ser()-Ex?Yl(e,0):$x|=n),lo(e,t)}function OM(e,t){t===0&&(e.mode&1?(t=Zm,Zm<<=1,!(Zm&130023424)&&(Zm=4194304)):t=1);var n=Yr();e=ui(e,t),e!==null&&(Zf(e,t,n),lo(e,n))}function FA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OM(e,n)}function kA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(rt(314))}r!==null&&r.delete(t),OM(e,n)}var IM;IM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ao.current)oo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return oo=!1,$A(e,t,n);oo=!!(e.flags&131072)}else oo=!1,zn&&t.flags&1048576&&_8(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gv(e,t),e=t.pendingProps;var o=Dc(t,Wr.current);$c(t,n),o=yx(null,t,r,e,o,n);var a=bx();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,io(r)?(a=!0,jg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mx(t),o.updater=Zp,t.stateNode=o,o._reactInternals=t,C1(t,r,e,n),t=w1(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&ix(t),Ur(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=AA(r),e=na(r,e),o){case 0:t=x1(null,t,r,e,n);break e;case 1:t=EE(null,t,r,e,n);break e;case 11:t=wE(null,t,r,e,n);break e;case 14:t=$E(null,t,r,na(r.type,e),n);break e}throw Error(rt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),x1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),EE(e,t,r,o,n);case 3:e:{if(dM(t),e===null)throw Error(rt(387));r=t.pendingProps,a=t.memoizedState,o=a.element,D8(e,t),Ag(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ac(Error(rt(423)),t),t=PE(e,t,r,n,o);break e}else if(r!==o){o=Ac(Error(rt(424)),t),t=PE(e,t,r,n,o);break e}else for(bo=Qi(t.stateNode.containerInfo.firstChild),xo=t,zn=!0,ia=null,n=A8(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fc(),r===o){t=di(e,t,n);break e}Ur(e,t,r,n)}t=t.child}return t;case 5:return B8(t),e===null&&h1(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,f1(r,o)?i=null:a!==null&&f1(r,a)&&(t.flags|=32),uM(e,t),Ur(e,t,i,n),t.child;case 6:return e===null&&h1(t),null;case 13:return fM(e,t,n);case 4:return vx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kc(t,null,r,n):Ur(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),wE(e,t,r,o,n);case 7:return Ur(e,t,t.pendingProps,n),t.child;case 8:return Ur(e,t,t.pendingProps.children,n),t.child;case 12:return Ur(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Mn(kg,r._currentValue),r._currentValue=i,a!==null)if(ga(a.value,i)){if(a.children===o.children&&!ao.current){t=di(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ai(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),y1(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(rt(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),y1(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ur(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$c(t,n),o=Bo(o),r=r(o),t.flags|=1,Ur(e,t,r,n),t.child;case 14:return r=t.type,o=na(r,t.pendingProps),o=na(r.type,o),$E(e,t,r,o,n);case 15:return sM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),Gv(e,t),t.tag=1,io(r)?(e=!0,jg(t)):e=!1,$c(t,n),k8(t,r,o),C1(t,r,o,n),w1(null,t,r,!0,e,n);case 19:return mM(e,t,n);case 22:return cM(e,t,n)}throw Error(rt(156,t.tag))};function MM(e,t){return t8(e,t)}function LA(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 ko(e,t,n,r){return new LA(e,t,n,r)}function Mx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AA(e){if(typeof e=="function")return Mx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qS)return 11;if(e===YS)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ko(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Mx(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Zs:return Xl(n.children,o,a,t);case GS:i=8,o|=8;break;case Wb:return e=ko(12,n,t,o|2),e.elementType=Wb,e.lanes=a,e;case Kb:return e=ko(13,n,t,o),e.elementType=Kb,e.lanes=a,e;case Ub:return e=ko(19,n,t,o),e.elementType=Ub,e.lanes=a,e;case L5:return nh(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F5:i=10;break e;case k5:i=9;break e;case qS:i=11;break e;case YS:i=14;break e;case Fi:i=16,r=null;break e}throw Error(rt(130,e==null?e:typeof e,""))}return t=ko(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Xl(e,t,n,r){return e=ko(7,e,r,t),e.lanes=n,e}function nh(e,t,n,r){return e=ko(22,e,r,t),e.elementType=L5,e.lanes=n,e.stateNode={isHidden:!1},e}function Sy(e,t,n){return e=ko(6,e,null,t),e.lanes=n,e}function xy(e,t,n){return t=ko(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BA(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=ny(0),this.expirationTimes=ny(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ny(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rx(e,t,n,r,o,a,i,l,s){return e=new BA(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ko(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mx(a),e}function zA(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NM)}catch(e){console.error(e)}}NM(),_5.exports=$o;var ja=_5.exports;const qg=jn(ja),jM=C5({__proto__:null,default:qg},[ja]);var LE=ja;Hb.createRoot=LE.createRoot,Hb.hydrateRoot=LE.hydrateRoot;/** + * @remix-run/router v1.15.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GA(){return Math.random().toString(36).substr(2,8)}function BE(e,t){return{usr:e.state,key:e.key,idx:t}}function Sf(e,t,n,r){return n===void 0&&(n=null),Xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ci(t):t,{state:n,key:t&&t.key||r||GA()})}function nm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ci(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qA(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Jn.Pop,s=null,u=d();u==null&&(u=0,i.replaceState(Xn({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Jn.Pop;let p=d(),y=p==null?null:p-u;u=p,s&&s({action:l,location:v.location,delta:y})}function m(p,y){l=Jn.Push;let b=Sf(v.location,p,y);n&&n(b,p),u=d()+1;let C=BE(b,u),S=v.createHref(b);try{i.pushState(C,"",S)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(S)}a&&s&&s({action:l,location:v.location,delta:1})}function h(p,y){l=Jn.Replace;let b=Sf(v.location,p,y);n&&n(b,p),u=d();let C=BE(b,u),S=v.createHref(b);i.replaceState(C,"",S),a&&s&&s({action:l,location:v.location,delta:0})}function g(p){let y=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof p=="string"?p:nm(p);return b=b.replace(/ $/,"%20"),tn(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let v={get action(){return l},get location(){return e(o,i)},listen(p){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(AE,f),s=p,()=>{o.removeEventListener(AE,f),s=null}},createHref(p){return t(o,p)},createURL:g,encodeLocation(p){let y=g(p);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:h,go(p){return i.go(p)}};return v}var qn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qn||(qn={}));const YA=new Set(["lazy","caseSensitive","path","id","index","children"]);function XA(e){return e.index===!0}function D1(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,a],l=typeof o.id=="string"?o.id:i.join("-");if(tn(o.index!==!0||!o.children,"Cannot specify children on an index route"),tn(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),XA(o)){let s=Xn({},o,t(o),{id:l});return r[l]=s,s}else{let s=Xn({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=D1(o.children,t,i,r)),s}})}function cc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ci(t):t,o=rm(r.pathname||"/",n);if(o==null)return null;let a=DM(e);ZA(a);let i=null;for(let l=0;i==null&&l{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(tn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=nl([r,s.relativePath]),d=n.concat(s);a.children&&a.children.length>0&&(tn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),DM(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:aB(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of FM(a.path))o(a,i,s)}),t}function FM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=FM(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function ZA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JA=/^:[\w-]+$/,eB=3,tB=2,nB=1,rB=10,oB=-2,zE=e=>e==="*";function aB(e,t){let n=e.split("/"),r=n.length;return n.some(zE)&&(r+=oB),t&&(r+=tB),n.filter(o=>!zE(o)).reduce((o,a)=>o+(JA.test(a)?eB:a===""?nB:rB),r)}function iB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function lB(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i{let{paramName:m,isOptional:h}=d;if(m==="*"){let v=l[f]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return h&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function sB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function rm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ci(e):e;return{pathname:n?n.startsWith("/")?n:dB(n,t):t,search:mB(r),hash:vB(o)}}function dB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function wy(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function LM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function AM(e,t){let n=LM(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function BM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ci(e):(o=Xn({},e),tn(!o.pathname||!o.pathname.includes("?"),wy("?","pathname","search",o)),tn(!o.pathname||!o.pathname.includes("#"),wy("#","pathname","hash",o)),tn(!o.search||!o.search.includes("#"),wy("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}l=f>=0?t[f]:"/"}let s=uB(o,l),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const nl=e=>e.join("/").replace(/\/\/+/g,"/"),fB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jx{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function zM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const HM=["post","put","patch","delete"],gB=new Set(HM),pB=["get",...HM],hB=new Set(pB),yB=new Set([301,302,303,307,308]),bB=new Set([307,308]),$y={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},CB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},td={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},VM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),WM="remix-router-transitions";function xB(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;tn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ue=e.detectErrorBoundary;o=se=>({hasErrorBoundary:ue(se)})}else o=SB;let a={},i=D1(e.routes,o,void 0,a),l,s=e.basename||"/",u=Xn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,m=null,h=null,g=null,v=e.hydrationData!=null,p=cc(i,e.history.location,s),y=null;if(p==null){let ue=_o(404,{pathname:e.history.location.pathname}),{matches:se,route:pe}=YE(i);p=se,y={[pe.id]:ue}}let b,C=p.some(ue=>ue.route.lazy),S=p.some(ue=>ue.route.loader);if(C)b=!1;else if(!S)b=!0;else if(u.v7_partialHydration){let ue=e.hydrationData?e.hydrationData.loaderData:null,se=e.hydrationData?e.hydrationData.errors:null,pe=Se=>Se.route.loader?Se.route.loader.hydrate===!0?!1:ue&&ue[Se.route.id]!==void 0||se&&se[Se.route.id]!==void 0:!0;if(se){let Se=p.findIndex(xe=>se[xe.route.id]!==void 0);b=p.slice(0,Se+1).every(pe)}else b=p.every(pe)}else b=e.hydrationData!=null;let $,x={historyAction:e.history.action,location:e.history.location,matches:p,initialized:b,navigation:$y,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},w=Jn.Pop,O=!1,E,P=!1,M=new Map,D=null,R=!1,_=!1,T=[],k=[],N=new Map,j=0,A=-1,B=new Map,z=new Set,H=new Map,V=new Map,U=new Set,K=new Map,Y=new Map,G=!1;function q(){if(d=e.history.listen(ue=>{let{action:se,location:pe,delta:Se}=ue;if(G){G=!1;return}zc(Y.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let xe=Ue({currentLocation:x.location,nextLocation:pe,historyAction:se});if(xe&&Se!=null){G=!0,e.history.go(Se*-1),Be(xe,{state:"blocked",location:pe,proceed(){Be(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(Se)},reset(){let Ne=new Map(x.blockers);Ne.set(xe,td),ne({blockers:Ne})}});return}return ee(se,pe)}),n){NB(t,M);let ue=()=>jB(t,M);t.addEventListener("pagehide",ue),D=()=>t.removeEventListener("pagehide",ue)}return x.initialized||ee(Jn.Pop,x.location,{initialHydration:!0}),$}function J(){d&&d(),D&&D(),f.clear(),E&&E.abort(),x.fetchers.forEach((ue,se)=>Oe(se)),x.blockers.forEach((ue,se)=>ke(se))}function Q(ue){return f.add(ue),()=>f.delete(ue)}function ne(ue,se){se===void 0&&(se={}),x=Xn({},x,ue);let pe=[],Se=[];u.v7_fetcherPersist&&x.fetchers.forEach((xe,Ne)=>{xe.state==="idle"&&(U.has(Ne)?Se.push(Ne):pe.push(Ne))}),[...f].forEach(xe=>xe(x,{deletedFetchers:Se,unstable_viewTransitionOpts:se.viewTransitionOpts,unstable_flushSync:se.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(xe=>x.fetchers.delete(xe)),Se.forEach(xe=>Oe(xe)))}function re(ue,se,pe){var Se,xe;let{flushSync:Ne}=pe===void 0?{}:pe,We=x.actionData!=null&&x.navigation.formMethod!=null&&oa(x.navigation.formMethod)&&x.navigation.state==="loading"&&((Se=ue.state)==null?void 0:Se._isRedirect)!==!0,He;se.actionData?Object.keys(se.actionData).length>0?He=se.actionData:He=null:We?He=x.actionData:He=null;let Me=se.loaderData?qE(x.loaderData,se.loaderData,se.matches||[],se.errors):x.loaderData,Le=x.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((it,ot)=>Le.set(ot,td)));let Xe=O===!0||x.navigation.formMethod!=null&&oa(x.navigation.formMethod)&&((xe=ue.state)==null?void 0:xe._isRedirect)!==!0;l&&(i=l,l=void 0),R||w===Jn.Pop||(w===Jn.Push?e.history.push(ue,ue.state):w===Jn.Replace&&e.history.replace(ue,ue.state));let Ke;if(w===Jn.Pop){let it=M.get(x.location.pathname);it&&it.has(ue.pathname)?Ke={currentLocation:x.location,nextLocation:ue}:M.has(ue.pathname)&&(Ke={currentLocation:ue,nextLocation:x.location})}else if(P){let it=M.get(x.location.pathname);it?it.add(ue.pathname):(it=new Set([ue.pathname]),M.set(x.location.pathname,it)),Ke={currentLocation:x.location,nextLocation:ue}}ne(Xn({},se,{actionData:He,loaderData:Me,historyAction:w,location:ue,initialized:!0,navigation:$y,revalidation:"idle",restoreScrollPosition:yt(ue,se.matches||x.matches),preventScrollReset:Xe,blockers:Le}),{viewTransitionOpts:Ke,flushSync:Ne===!0}),w=Jn.Pop,O=!1,P=!1,R=!1,_=!1,T=[],k=[]}async function oe(ue,se){if(typeof ue=="number"){e.history.go(ue);return}let pe=F1(x.location,x.matches,s,u.v7_prependBasename,ue,u.v7_relativeSplatPath,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:Se,submission:xe,error:Ne}=HE(u.v7_normalizeFormMethod,!1,pe,se),We=x.location,He=Sf(x.location,Se,se&&se.state);He=Xn({},He,e.history.encodeLocation(He));let Me=se&&se.replace!=null?se.replace:void 0,Le=Jn.Push;Me===!0?Le=Jn.Replace:Me===!1||xe!=null&&oa(xe.formMethod)&&xe.formAction===x.location.pathname+x.location.search&&(Le=Jn.Replace);let Xe=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,Ke=(se&&se.unstable_flushSync)===!0,it=Ue({currentLocation:We,nextLocation:He,historyAction:Le});if(it){Be(it,{state:"blocked",location:He,proceed(){Be(it,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),oe(ue,se)},reset(){let ot=new Map(x.blockers);ot.set(it,td),ne({blockers:ot})}});return}return await ee(Le,He,{submission:xe,pendingError:Ne,preventScrollReset:Xe,replace:se&&se.replace,enableViewTransition:se&&se.unstable_viewTransition,flushSync:Ke})}function te(){if(ge(),ne({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ee(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ee(w||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ee(ue,se,pe){E&&E.abort(),E=null,w=ue,R=(pe&&pe.startUninterruptedRevalidation)===!0,gt(x.location,x.matches),O=(pe&&pe.preventScrollReset)===!0,P=(pe&&pe.enableViewTransition)===!0;let Se=l||i,xe=pe&&pe.overrideNavigation,Ne=cc(Se,se,s),We=(pe&&pe.flushSync)===!0;if(!Ne){let ot=_o(404,{pathname:se.pathname}),{matches:Mt,route:Ct}=YE(Se);Je(),re(se,{matches:Mt,loaderData:{},errors:{[Ct.id]:ot}},{flushSync:We});return}if(x.initialized&&!_&&OB(x.location,se)&&!(pe&&pe.submission&&oa(pe.submission.formMethod))){re(se,{matches:Ne},{flushSync:We});return}E=new AbortController;let He=rd(e.history,se,E.signal,pe&&pe.submission),Me,Le;if(pe&&pe.pendingError)Le={[Hd(Ne).route.id]:pe.pendingError};else if(pe&&pe.submission&&oa(pe.submission.formMethod)){let ot=await ie(He,se,pe.submission,Ne,{replace:pe.replace,flushSync:We});if(ot.shortCircuited)return;Me=ot.pendingActionData,Le=ot.pendingActionError,xe=Ey(se,pe.submission),We=!1,He=new Request(He.url,{signal:He.signal})}let{shortCircuited:Xe,loaderData:Ke,errors:it}=await de(He,se,Ne,xe,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,We,Me,Le);Xe||(E=null,re(se,Xn({matches:Ne},Me?{actionData:Me}:{},{loaderData:Ke,errors:it})))}async function ie(ue,se,pe,Se,xe){xe===void 0&&(xe={}),ge();let Ne=_B(se,pe);ne({navigation:Ne},{flushSync:xe.flushSync===!0});let We,He=L1(Se,se);if(!He.route.action&&!He.route.lazy)We={type:qn.error,error:_o(405,{method:ue.method,pathname:se.pathname,routeId:He.route.id})};else if(We=await nd("action",ue,He,Se,a,o,s,u.v7_relativeSplatPath),ue.signal.aborted)return{shortCircuited:!0};if(Vl(We)){let Me;return xe&&xe.replace!=null?Me=xe.replace:Me=We.location===x.location.pathname+x.location.search,await me(x,We,{submission:pe,replace:Me}),{shortCircuited:!0}}if(uc(We)){let Me=Hd(Se,He.route.id);return(xe&&xe.replace)!==!0&&(w=Jn.Push),{pendingActionData:{},pendingActionError:{[Me.route.id]:We.error}}}if(Hl(We))throw _o(400,{type:"defer-action"});return{pendingActionData:{[He.route.id]:We.data}}}async function de(ue,se,pe,Se,xe,Ne,We,He,Me,Le,Xe){let Ke=Se||Ey(se,xe),it=xe||Ne||ZE(Ke),ot=l||i,[Mt,Ct]=VE(e.history,x,pe,it,se,u.v7_partialHydration&&He===!0,_,T,k,U,H,z,ot,s,Le,Xe);if(Je(lt=>!(pe&&pe.some(ht=>ht.route.id===lt))||Mt&&Mt.some(ht=>ht.route.id===lt)),A=++j,Mt.length===0&&Ct.length===0){let lt=Fe();return re(se,Xn({matches:pe,loaderData:{},errors:Xe||null},Le?{actionData:Le}:{},lt?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Me}),{shortCircuited:!0}}if(!R&&(!u.v7_partialHydration||!He)){Ct.forEach(ht=>{let ft=x.fetchers.get(ht.key),Lt=od(void 0,ft?ft.data:void 0);x.fetchers.set(ht.key,Lt)});let lt=Le||x.actionData;ne(Xn({navigation:Ke},lt?Object.keys(lt).length===0?{actionData:null}:{actionData:lt}:{},Ct.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Me})}Ct.forEach(lt=>{N.has(lt.key)&&Ee(lt.key),lt.controller&&N.set(lt.key,lt.controller)});let st=()=>Ct.forEach(lt=>Ee(lt.key));E&&E.signal.addEventListener("abort",st);let{results:Qe,loaderResults:Ae,fetcherResults:Pe}=await ye(x.matches,pe,Mt,Ct,ue);if(ue.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",st),Ct.forEach(lt=>N.delete(lt.key));let je=XE(Qe);if(je){if(je.idx>=Mt.length){let lt=Ct[je.idx-Mt.length].key;z.add(lt)}return await me(x,je.result,{replace:We}),{shortCircuited:!0}}let{loaderData:Ve,errors:tt}=GE(x,pe,Mt,Ae,Xe,Ct,Pe,K);K.forEach((lt,ht)=>{lt.subscribe(ft=>{(ft||lt.done)&&K.delete(ht)})}),u.v7_partialHydration&&He&&x.errors&&Object.entries(x.errors).filter(lt=>{let[ht]=lt;return!Mt.some(ft=>ft.route.id===ht)}).forEach(lt=>{let[ht,ft]=lt;tt=Object.assign(tt||{},{[ht]:ft})});let pt=Fe(),ut=qe(A),ct=pt||ut||Ct.length>0;return Xn({loaderData:Ve,errors:tt},ct?{fetchers:new Map(x.fetchers)}:{})}function he(ue,se,pe,Se){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(ue)&&Ee(ue);let xe=(Se&&Se.unstable_flushSync)===!0,Ne=l||i,We=F1(x.location,x.matches,s,u.v7_prependBasename,pe,u.v7_relativeSplatPath,se,Se==null?void 0:Se.relative),He=cc(Ne,We,s);if(!He){$e(ue,se,_o(404,{pathname:We}),{flushSync:xe});return}let{path:Me,submission:Le,error:Xe}=HE(u.v7_normalizeFormMethod,!0,We,Se);if(Xe){$e(ue,se,Xe,{flushSync:xe});return}let Ke=L1(He,Me);if(O=(Se&&Se.preventScrollReset)===!0,Le&&oa(Le.formMethod)){fe(ue,se,Me,Ke,He,xe,Le);return}H.set(ue,{routeId:se,path:Me}),le(ue,se,Me,Ke,He,xe,Le)}async function fe(ue,se,pe,Se,xe,Ne,We){if(ge(),H.delete(ue),!Se.route.action&&!Se.route.lazy){let ht=_o(405,{method:We.formMethod,pathname:pe,routeId:se});$e(ue,se,ht,{flushSync:Ne});return}let He=x.fetchers.get(ue);ve(ue,TB(We,He),{flushSync:Ne});let Me=new AbortController,Le=rd(e.history,pe,Me.signal,We);N.set(ue,Me);let Xe=j,Ke=await nd("action",Le,Se,xe,a,o,s,u.v7_relativeSplatPath);if(Le.signal.aborted){N.get(ue)===Me&&N.delete(ue);return}if(u.v7_fetcherPersist&&U.has(ue)){if(Vl(Ke)||uc(Ke)){ve(ue,ji(void 0));return}}else{if(Vl(Ke))if(N.delete(ue),A>Xe){ve(ue,ji(void 0));return}else return z.add(ue),ve(ue,od(We)),me(x,Ke,{fetcherSubmission:We});if(uc(Ke)){$e(ue,se,Ke.error);return}}if(Hl(Ke))throw _o(400,{type:"defer-action"});let it=x.navigation.location||x.location,ot=rd(e.history,it,Me.signal),Mt=l||i,Ct=x.navigation.state!=="idle"?cc(Mt,x.navigation.location,s):x.matches;tn(Ct,"Didn't find any matches after fetcher action");let st=++j;B.set(ue,st);let Qe=od(We,Ke.data);x.fetchers.set(ue,Qe);let[Ae,Pe]=VE(e.history,x,Ct,We,it,!1,_,T,k,U,H,z,Mt,s,{[Se.route.id]:Ke.data},void 0);Pe.filter(ht=>ht.key!==ue).forEach(ht=>{let ft=ht.key,Lt=x.fetchers.get(ft),Cn=od(void 0,Lt?Lt.data:void 0);x.fetchers.set(ft,Cn),N.has(ft)&&Ee(ft),ht.controller&&N.set(ft,ht.controller)}),ne({fetchers:new Map(x.fetchers)});let je=()=>Pe.forEach(ht=>Ee(ht.key));Me.signal.addEventListener("abort",je);let{results:Ve,loaderResults:tt,fetcherResults:pt}=await ye(x.matches,Ct,Ae,Pe,ot);if(Me.signal.aborted)return;Me.signal.removeEventListener("abort",je),B.delete(ue),N.delete(ue),Pe.forEach(ht=>N.delete(ht.key));let ut=XE(Ve);if(ut){if(ut.idx>=Ae.length){let ht=Pe[ut.idx-Ae.length].key;z.add(ht)}return me(x,ut.result)}let{loaderData:ct,errors:lt}=GE(x,x.matches,Ae,tt,void 0,Pe,pt,K);if(x.fetchers.has(ue)){let ht=ji(Ke.data);x.fetchers.set(ue,ht)}qe(st),x.navigation.state==="loading"&&st>A?(tn(w,"Expected pending action"),E&&E.abort(),re(x.navigation.location,{matches:Ct,loaderData:ct,errors:lt,fetchers:new Map(x.fetchers)})):(ne({errors:lt,loaderData:qE(x.loaderData,ct,Ct,lt),fetchers:new Map(x.fetchers)}),_=!1)}async function le(ue,se,pe,Se,xe,Ne,We){let He=x.fetchers.get(ue);ve(ue,od(We,He?He.data:void 0),{flushSync:Ne});let Me=new AbortController,Le=rd(e.history,pe,Me.signal);N.set(ue,Me);let Xe=j,Ke=await nd("loader",Le,Se,xe,a,o,s,u.v7_relativeSplatPath);if(Hl(Ke)&&(Ke=await GM(Ke,Le.signal,!0)||Ke),N.get(ue)===Me&&N.delete(ue),!Le.signal.aborted){if(U.has(ue)){ve(ue,ji(void 0));return}if(Vl(Ke))if(A>Xe){ve(ue,ji(void 0));return}else{z.add(ue),await me(x,Ke);return}if(uc(Ke)){$e(ue,se,Ke.error);return}tn(!Hl(Ke),"Unhandled fetcher deferred data"),ve(ue,ji(Ke.data))}}async function me(ue,se,pe){let{submission:Se,fetcherSubmission:xe,replace:Ne}=pe===void 0?{}:pe;se.revalidate&&(_=!0);let We=Sf(ue.location,se.location,{_isRedirect:!0});if(tn(We,"Expected a location on the redirect navigation"),n){let it=!1;if(se.reloadDocument)it=!0;else if(VM.test(se.location)){const ot=e.history.createURL(se.location);it=ot.origin!==t.location.origin||rm(ot.pathname,s)==null}if(it){Ne?t.location.replace(se.location):t.location.assign(se.location);return}}E=null;let He=Ne===!0?Jn.Replace:Jn.Push,{formMethod:Me,formAction:Le,formEncType:Xe}=ue.navigation;!Se&&!xe&&Me&&Le&&Xe&&(Se=ZE(ue.navigation));let Ke=Se||xe;if(bB.has(se.status)&&Ke&&oa(Ke.formMethod))await ee(He,We,{submission:Xn({},Ke,{formAction:se.location}),preventScrollReset:O});else{let it=Ey(We,Se);await ee(He,We,{overrideNavigation:it,fetcherSubmission:xe,preventScrollReset:O})}}async function ye(ue,se,pe,Se,xe){let Ne=await Promise.all([...pe.map(Me=>nd("loader",xe,Me,se,a,o,s,u.v7_relativeSplatPath)),...Se.map(Me=>Me.matches&&Me.match&&Me.controller?nd("loader",rd(e.history,Me.path,Me.controller.signal),Me.match,Me.matches,a,o,s,u.v7_relativeSplatPath):{type:qn.error,error:_o(404,{pathname:Me.path})})]),We=Ne.slice(0,pe.length),He=Ne.slice(pe.length);return await Promise.all([QE(ue,pe,We,We.map(()=>xe.signal),!1,x.loaderData),QE(ue,Se.map(Me=>Me.match),He,Se.map(Me=>Me.controller?Me.controller.signal:null),!0)]),{results:Ne,loaderResults:We,fetcherResults:He}}function ge(){_=!0,T.push(...Je()),H.forEach((ue,se)=>{N.has(se)&&(k.push(se),Ee(se))})}function ve(ue,se,pe){pe===void 0&&(pe={}),x.fetchers.set(ue,se),ne({fetchers:new Map(x.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function $e(ue,se,pe,Se){Se===void 0&&(Se={});let xe=Hd(x.matches,se);Oe(ue),ne({errors:{[xe.route.id]:pe},fetchers:new Map(x.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Ce(ue){return u.v7_fetcherPersist&&(V.set(ue,(V.get(ue)||0)+1),U.has(ue)&&U.delete(ue)),x.fetchers.get(ue)||CB}function Oe(ue){let se=x.fetchers.get(ue);N.has(ue)&&!(se&&se.state==="loading"&&B.has(ue))&&Ee(ue),H.delete(ue),B.delete(ue),z.delete(ue),U.delete(ue),x.fetchers.delete(ue)}function Re(ue){if(u.v7_fetcherPersist){let se=(V.get(ue)||0)-1;se<=0?(V.delete(ue),U.add(ue)):V.set(ue,se)}else Oe(ue);ne({fetchers:new Map(x.fetchers)})}function Ee(ue){let se=N.get(ue);tn(se,"Expected fetch controller: "+ue),se.abort(),N.delete(ue)}function _e(ue){for(let se of ue){let pe=Ce(se),Se=ji(pe.data);x.fetchers.set(se,Se)}}function Fe(){let ue=[],se=!1;for(let pe of z){let Se=x.fetchers.get(pe);tn(Se,"Expected fetcher: "+pe),Se.state==="loading"&&(z.delete(pe),ue.push(pe),se=!0)}return _e(ue),se}function qe(ue){let se=[];for(let[pe,Se]of B)if(Se0}function Ze(ue,se){let pe=x.blockers.get(ue)||td;return Y.get(ue)!==se&&Y.set(ue,se),pe}function ke(ue){x.blockers.delete(ue),Y.delete(ue)}function Be(ue,se){let pe=x.blockers.get(ue)||td;tn(pe.state==="unblocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="proceeding"||pe.state==="blocked"&&se.state==="unblocked"||pe.state==="proceeding"&&se.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+se.state);let Se=new Map(x.blockers);Se.set(ue,se),ne({blockers:Se})}function Ue(ue){let{currentLocation:se,nextLocation:pe,historyAction:Se}=ue;if(Y.size===0)return;Y.size>1&&zc(!1,"A router only supports one blocker at a time");let xe=Array.from(Y.entries()),[Ne,We]=xe[xe.length-1],He=x.blockers.get(Ne);if(!(He&&He.state==="proceeding")&&We({currentLocation:se,nextLocation:pe,historyAction:Se}))return Ne}function Je(ue){let se=[];return K.forEach((pe,Se)=>{(!ue||ue(Se))&&(pe.cancel(),se.push(Se),K.delete(Se))}),se}function nt(ue,se,pe){if(m=ue,g=se,h=pe||null,!v&&x.navigation===$y){v=!0;let Se=yt(x.location,x.matches);Se!=null&&ne({restoreScrollPosition:Se})}return()=>{m=null,g=null,h=null}}function mt(ue,se){return h&&h(ue,se.map(Se=>QA(Se,x.loaderData)))||ue.key}function gt(ue,se){if(m&&g){let pe=mt(ue,se);m[pe]=g()}}function yt(ue,se){if(m){let pe=mt(ue,se),Se=m[pe];if(typeof Se=="number")return Se}return null}function It(ue){a={},l=D1(ue,o,void 0,a)}return $={get basename(){return s},get future(){return u},get state(){return x},get routes(){return i},get window(){return t},initialize:q,subscribe:Q,enableScrollRestoration:nt,navigate:oe,fetch:he,revalidate:te,createHref:ue=>e.history.createHref(ue),encodeLocation:ue=>e.history.encodeLocation(ue),getFetcher:Ce,deleteFetcher:Re,dispose:J,getBlocker:Ze,deleteBlocker:ke,_internalFetchControllers:N,_internalActiveDeferreds:K,_internalSetRoutes:It},$}function wB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F1(e,t,n,r,o,a,i,l){let s,u;if(i){s=[];for(let f of t)if(s.push(f),f.route.id===i){u=f;break}}else s=t,u=t[t.length-1];let d=BM(o||".",AM(s,a),rm(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Dx(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:nl([n,d.pathname])),nm(d)}function HE(e,t,n,r){if(!r||!wB(r))return{path:n};if(r.formMethod&&!RB(r.formMethod))return{path:n,error:_o(405,{method:r.formMethod})};let o=()=>({path:n,error:_o(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),l=UM(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!oa(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,g)=>{let[v,p]=g;return""+h+v+"="+p+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!oa(i))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}tn(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=k1(r.formData),u=r.formData;else if(r.body instanceof FormData)s=k1(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=UE(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=UE(s)}catch{return o()}let d={formMethod:i,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(oa(d.formMethod))return{path:n,submission:d};let f=Ci(n);return t&&f.search&&Dx(f.search)&&s.append("index",""),f.search="?"+s,{path:nm(f),submission:d}}function $B(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function VE(e,t,n,r,o,a,i,l,s,u,d,f,m,h,g,v){let p=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,y=e.createURL(t.location),b=e.createURL(o),C=v?Object.keys(v)[0]:void 0,$=$B(n,C).filter((w,O)=>{let{route:E}=w;if(E.lazy)return!0;if(E.loader==null)return!1;if(a)return E.loader.hydrate?!0:t.loaderData[E.id]===void 0&&(!t.errors||t.errors[E.id]===void 0);if(EB(t.loaderData,t.matches[O],w)||l.some(D=>D===w.route.id))return!0;let P=t.matches[O],M=w;return WE(w,Xn({currentUrl:y,currentParams:P.params,nextUrl:b,nextParams:M.params},r,{actionResult:p,defaultShouldRevalidate:i||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||KM(P,M)}))}),x=[];return d.forEach((w,O)=>{if(a||!n.some(R=>R.route.id===w.routeId)||u.has(O))return;let E=cc(m,w.path,h);if(!E){x.push({key:O,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get(O),M=L1(E,w.path),D=!1;f.has(O)?D=!1:s.includes(O)?D=!0:P&&P.state!=="idle"&&P.data===void 0?D=i:D=WE(M,Xn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:i})),D&&x.push({key:O,routeId:w.routeId,path:w.path,matches:E,match:M,controller:new AbortController})}),[$,x]}function EB(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function KM(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function WE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function KE(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];tn(o,"No route found in manifest");let a={};for(let i in r){let s=o[i]!==void 0&&i!=="hasErrorBoundary";zc(!s,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!YA.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,Xn({},t(o),{lazy:void 0}))}async function nd(e,t,n,r,o,a,i,l,s){s===void 0&&(s={});let u,d,f,m=v=>{let p,y=new Promise((b,C)=>p=C);return f=()=>p(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:s.requestContext}),y])};try{let v=n.route[e];if(n.route.lazy)if(v){let p,y=await Promise.all([m(v).catch(b=>{p=b}),KE(n.route,a,o)]);if(p)throw p;d=y[0]}else if(await KE(n.route,a,o),v=n.route[e],v)d=await m(v);else if(e==="action"){let p=new URL(t.url),y=p.pathname+p.search;throw _o(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:qn.data,data:void 0};else if(v)d=await m(v);else{let p=new URL(t.url),y=p.pathname+p.search;throw _o(404,{pathname:y})}tn(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){u=qn.error,d=v}finally{f&&t.signal.removeEventListener("abort",f)}if(MB(d)){let v=d.status;if(yB.has(v)){let y=d.headers.get("Location");if(tn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!VM.test(y))y=F1(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,y,l);else if(!s.isStaticRequest){let b=new URL(t.url),C=y.startsWith("//")?new URL(b.protocol+y):new URL(y),S=rm(C.pathname,i)!=null;C.origin===b.origin&&S&&(y=C.pathname+C.search+C.hash)}if(s.isStaticRequest)throw d.headers.set("Location",y),d;return{type:qn.redirect,status:v,location:y,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===qn.error?qn.error:qn.data,response:d};let p;try{let y=d.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?d.body==null?p=null:p=await d.json():p=await d.text()}catch(y){return{type:qn.error,error:y}}return u===qn.error?{type:u,error:new jx(v,d.statusText,p),headers:d.headers}:{type:qn.data,data:p,statusCode:d.status,headers:d.headers}}if(u===qn.error)return{type:u,error:d};if(IB(d)){var h,g;return{type:qn.deferred,deferredData:d,statusCode:(h=d.init)==null?void 0:h.status,headers:((g=d.init)==null?void 0:g.headers)&&new Headers(d.init.headers)}}return{type:qn.data,data:d}}function rd(e,t,n,r){let o=e.createURL(UM(t)).toString(),a={signal:n};if(r&&oa(r.formMethod)){let{formMethod:i,formEncType:l}=r;a.method=i.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=k1(r.formData):a.body=r.formData}return new Request(o,a)}function k1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function UE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function PB(e,t,n,r,o){let a={},i=null,l,s=!1,u={};return n.forEach((d,f)=>{let m=t[f].route.id;if(tn(!Vl(d),"Cannot handle redirect results in processLoaderData"),uc(d)){let h=Hd(e,m),g=d.error;r&&(g=Object.values(r)[0],r=void 0),i=i||{},i[h.route.id]==null&&(i[h.route.id]=g),a[m]=void 0,s||(s=!0,l=zM(d.error)?d.error.status:500),d.headers&&(u[m]=d.headers)}else Hl(d)?(o.set(m,d.deferredData),a[m]=d.deferredData.data):a[m]=d.data,d.statusCode!=null&&d.statusCode!==200&&!s&&(l=d.statusCode),d.headers&&(u[m]=d.headers)}),r&&(i=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:i,statusCode:l||200,loaderHeaders:u}}function GE(e,t,n,r,o,a,i,l){let{loaderData:s,errors:u}=PB(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function YE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function _o(e,t){let{pathname:n,routeId:r,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",l='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new jx(e||500,i,new Error(l),!0)}function XE(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Vl(n))return{result:n,idx:t}}}function UM(e){let t=typeof e=="string"?Ci(e):e;return nm(Xn({},t,{hash:""}))}function OB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Hl(e){return e.type===qn.deferred}function uc(e){return e.type===qn.error}function Vl(e){return(e&&e.type)===qn.redirect}function IB(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function MB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function RB(e){return hB.has(e.toLowerCase())}function oa(e){return gB.has(e.toLowerCase())}async function QE(e,t,n,r,o,a){for(let i=0;if.route.id===s.route.id),d=u!=null&&!KM(u,s)&&(a&&a[s.route.id])!==void 0;if(Hl(l)&&(o||d)){let f=r[i];tn(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await GM(l,f,o).then(m=>{m&&(n[i]=m||n[i])})}}}async function GM(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:qn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:qn.error,error:o}}return{type:qn.data,data:e.deferredData.data}}}function Dx(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function L1(e,t){let n=typeof t=="string"?Ci(t).search:t.search;if(e[e.length-1].route.index&&Dx(n||""))return e[e.length-1];let r=LM(e);return r[r.length-1]}function ZE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Ey(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _B(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function od(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function TB(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ji(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function NB(e,t){try{let n=e.sessionStorage.getItem(WM);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function jB(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(WM,JSON.stringify(n))}catch(r){zc(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),c.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=BM(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:nl([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}const FB=c.createContext(null);function kB(e){let t=c.useContext(ys).outlet;return t&&c.createElement(FB.Provider,{value:e},t)}function LB(e,t,n,r){uh()||tn(!1);let{navigator:o}=c.useContext(sh),{matches:a}=c.useContext(ys),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=XM(),d;if(t){var f;let p=typeof t=="string"?Ci(t):t;s==="/"||(f=p.pathname)!=null&&f.startsWith(s)||tn(!1),d=p}else d=u;let m=d.pathname||"/",h=m;if(s!=="/"){let p=s.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(p.length).join("/")}let g=cc(e,{pathname:h}),v=VB(g&&g.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:nl([s,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:nl([s,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),a,n,r);return t&&v?c.createElement(ch.Provider,{value:{location:xf({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jn.Pop}},v):v}function AB(){let e=GB(),t=zM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,null)}const BB=c.createElement(AB,null);class zB extends c.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?c.createElement(ys.Provider,{value:this.props.routeContext},c.createElement(YM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HB(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(lh);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(ys.Provider,{value:t},r)}function VB(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||tn(!1),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let h,g=!1,v=null,p=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||BB,s&&(u<0&&m===0?(YB("route-fallback",!1),g=!0,p=null):u===m&&(g=!0,p=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),b=()=>{let C;return h?C=v:g?C=p:f.route.Component?C=c.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,c.createElement(HB,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?c.createElement(zB,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var ZM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ZM||{}),Yg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Yg||{});function WB(e){let t=c.useContext(lh);return t||tn(!1),t}function KB(e){let t=c.useContext(qM);return t||tn(!1),t}function UB(e){let t=c.useContext(ys);return t||tn(!1),t}function JM(e){let t=UB(),n=t.matches[t.matches.length-1];return n.route.id||tn(!1),n.route.id}function GB(){var e;let t=c.useContext(YM),n=KB(Yg.UseRouteError),r=JM(Yg.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qB(){let{router:e}=WB(ZM.UseNavigateStable),t=JM(Yg.UseNavigateStable),n=c.useRef(!1);return QM(()=>{n.current=!0}),c.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xf({fromRouteId:t},a)))},[e,t])}const JE={};function YB(e,t,n){!t&&!JE[e]&&(JE[e]=!0)}function dh(e){return kB(e.context)}function XB(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jn.Pop,navigator:a,static:i=!1,future:l}=e;uh()&&tn(!1);let s=t.replace(/^\/*/,"/"),u=c.useMemo(()=>({basename:s,navigator:a,static:i,future:xf({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=Ci(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:g="default"}=r,v=c.useMemo(()=>{let p=rm(d,s);return p==null?null:{location:{pathname:p,search:f,hash:m,state:h,key:g},navigationType:o}},[s,d,f,m,h,g,o]);return v==null?null:c.createElement(sh.Provider,{value:u},c.createElement(ch.Provider,{children:n,value:v}))}new Promise(()=>{});function QB(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:c.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:c.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:c.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sz(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=c.useState(n.state),[i,l]=c.useState(),[s,u]=c.useState({isTransitioning:!1}),[d,f]=c.useState(),[m,h]=c.useState(),[g,v]=c.useState(),p=c.useRef(new Map),{v7_startTransition:y}=r||{},b=c.useCallback(w=>{y?iz(w):w()},[y]),C=c.useCallback((w,O)=>{let{deletedFetchers:E,unstable_flushSync:P,unstable_viewTransitionOpts:M}=O;E.forEach(R=>p.current.delete(R)),w.fetchers.forEach((R,_)=>{R.data!==void 0&&p.current.set(_,R.data)});let D=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||D){P?ad(()=>a(w)):b(()=>a(w));return}if(P){ad(()=>{m&&(d&&d.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let R=n.window.document.startViewTransition(()=>{ad(()=>a(w))});R.finished.finally(()=>{ad(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),ad(()=>h(R));return}m?(d&&d.resolve(),m.skipTransition(),v({state:w,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,m,d,p,b]);c.useLayoutEffect(()=>n.subscribe(C),[n,C]),c.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new lz)},[s]),c.useEffect(()=>{if(d&&i&&n.window){let w=i,O=d.promise,E=n.window.document.startViewTransition(async()=>{b(()=>a(w)),await O});E.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(E)}},[b,i,d,n.window]),c.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,m,o.location,i]),c.useEffect(()=>{!s.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[s.isTransitioning,g]),c.useEffect(()=>{},[]);let S=c.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,O,E)=>n.navigate(w,{state:O,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(w,O,E)=>n.navigate(w,{replace:!0,state:O,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[n]),$=n.basename||"/",x=c.useMemo(()=>({router:n,navigator:S,static:!1,basename:$}),[n,S,$]);return c.createElement(c.Fragment,null,c.createElement(lh.Provider,{value:x},c.createElement(qM.Provider,{value:o},c.createElement(rz.Provider,{value:p.current},c.createElement(nz.Provider,{value:s},c.createElement(XB,{basename:$,location:o.location,navigationType:o.historyAction,navigator:S,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?c.createElement(cz,{routes:n.routes,future:n.future,state:o}):t))))),null)}function cz(e){let{routes:t,future:n,state:r}=e;return LB(t,void 0,r,n)}var n4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n4||(n4={}));var r4;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(r4||(r4={}));var eR={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return W.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(sr(r)):Hd.isFragment(r)&&r.props?n=n.concat(sr(r.props.children,t)):n.push(r))}),n}var D1={},qA=function(t){};function YA(e,t){}function XA(e,t){}function QA(){D1={}}function AM(e,t,n){!t&&!D1[n]&&(e(!1,n),D1[n]=!0)}function cn(e,t){AM(YA,e,t)}function Sf(e,t){AM(XA,e,t)}cn.preMessage=qA;cn.resetWarned=QA;cn.noteOnce=Sf;function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}function ZA(e,t){if(et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(et(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BM(e){var t=ZA(e,"string");return et(t)=="symbol"?t:t+""}function L(e,t,n){return t=BM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0},e.prototype.connect_=function(){!k1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iB?(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(){!k1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=aB.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),HM=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof zc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new gB(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof zc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new pB(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),WM=typeof WeakMap<"u"?new WeakMap:new zM,KM=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lB.getInstance(),r=new hB(t,n,this);WM.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){KM.prototype[e]=function(){var t;return(t=WM.get(this))[e].apply(t,arguments)}});var yB=function(){return typeof Xg.ResizeObserver<"u"?Xg.ResizeObserver:KM}(),Wi=new Map;function bB(e){e.forEach(function(t){var n,r=t.target;(n=Wi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var UM=new yB(bB);function CB(e,t){Wi.has(e)||(Wi.set(e,new Set),UM.observe(e)),Wi.get(e).add(t)}function SB(e,t){Wi.has(e)&&(Wi.get(e).delete(t),Wi.get(e).size||(UM.unobserve(e),Wi.delete(e)))}function Dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zE(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;HE+=1;var r=HE;function o(a){if(a===0)QM(r),t();else{var i=YM(function(){o(a-1)});Lx.set(r,i)}}return o(n),r};At.cancel=function(e){var t=Lx.get(e);return QM(e),XM(t)};function VE(e){let t;const n=o=>()=>{t=null,e.apply(void 0,Te(o))},r=function(){if(t==null){for(var o=arguments.length,a=new Array(o),i=0;i{At.cancel(t),t=null},r}function ZM(e){if(Array.isArray(e))return e}function MB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){u=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function JM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e,t){return ZM(e)||MB(e,t)||yh(e,t)||JM()}function Zg(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function _r(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function B1(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var WE="data-rc-order",KE="data-rc-priority",RB="rc-util-key",z1=new Map;function eR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):RB}function bh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function _B(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ax(e){return Array.from((z1.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function tR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_r())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=_B(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(WE,i),l&&a&&s.setAttribute(KE,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=bh(t),d=u.firstChild;if(r){if(l){var f=(t.styles||Ax(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(WE)))return!1;var h=Number(m.getAttribute(KE)||0);return a>=h});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function nR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bh(t);return(t.styles||Ax(n)).find(function(r){return r.getAttribute(eR(t))===e})}function Vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=nR(e,t);if(n){var r=bh(t);r.removeChild(n)}}function TB(e,t){var n=z1.get(e);if(!n||!B1(document,n)){var r=tR("",t),o=r.parentNode;z1.set(e,o),e.removeChild(r)}}function fi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bh(n),o=Ax(r),a=I(I({},n),{},{styles:o});TB(r,a);var i=nR(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=tR(e,a);return d.setAttribute(eR(a),t),d}function NB(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function ze(e,t){if(e==null)return{};var n=NB(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(cn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=X(u,2),m=f[1];return o.internalGet(d)[1]0,void 0),UE+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),wy=new Bx;function Kc(e){var t=Array.isArray(e)?e:[e];return wy.has(t)||wy.set(t,new rR(t)),wy.get(t)}var LB=new WeakMap,$y={};function AB(e,t){for(var n=LB,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=I(I({},o),{},(r={},L(r,Wc,t),L(r,da,n),r)),l=Object.keys(i).map(function(s){var u=i[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"")}var aR=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},HB=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=X(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},iR=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,u=X(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var m,h=aR(d,r==null?void 0:r.prefix);o[h]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(h,")")}}),[a,HB(o,n,{scope:r==null?void 0:r.scope})]},YE=_r()?c.useLayoutEffect:c.useEffect,Kt=function(t,n){var r=c.useRef(!0);YE(function(){return t(r.current)},n),YE(function(){return r.current=!1,function(){r.current=!0}},[])},Ql=function(t,n){Kt(function(r){if(!r)return t()},n)},VB=I({},Qf),XE=VB.useInsertionEffect,WB=function(t,n,r){c.useMemo(t,r),Kt(function(){return n(!0)},r)},KB=XE?function(e,t,n){return XE(function(){return e(),t()},n)}:WB,UB=I({},Qf),GB=UB.useInsertionEffect,qB=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},YB=function(){return function(t){t()}},XB=typeof GB<"u"?qB:YB;function zx(e,t,n,r,o){var a=c.useContext(Ch),i=a.cache,l=[e].concat(Te(t)),s=H1(l),u=XB([s]),d=function(g){i.opUpdate(s,function(v){var p=v||[void 0,void 0],y=X(p,2),b=y[0],C=b===void 0?0:b,S=y[1],$=S,x=$||n(),w=[C,x];return g?g(w):w})};c.useMemo(function(){d()},[s]);var f=i.opGet(s),m=f[1];return KB(function(){o==null||o(m)},function(h){return d(function(g){var v=X(g,2),p=v[0],y=v[1];return h&&p===0&&(o==null||o(m)),[p+1,y]}),function(){i.opUpdate(s,function(g){var v=g||[],p=X(v,2),y=p[0],b=y===void 0?0:y,C=p[1],S=b-1;return S===0?(u(function(){(h||!i.opGet(s))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[s]),m}var QB={},ZB="css",Ll=new Map;function JB(e){Ll.set(e,(Ll.get(e)||0)+1)}function ez(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wc,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ki]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var tz=0;function nz(e,t){Ll.set(e,(Ll.get(e)||0)-1);var n=Array.from(Ll.keys()),r=n.filter(function(o){var a=Ll.get(o)||0;return a<=0});n.length-r.length>tz&&r.forEach(function(o){ez(o,t),Ll.delete(o)})}var lR=function(t,n,r,o){var a=r.getDerivativeToken(t),i=I(I({},a),n);return o&&(i=o(i)),i},sR="token";function cR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Ch),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,u=s===void 0?QB:s,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,h=AB(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),g=Wd(h),v=Wd(u),p=m?Wd(m):"",y=zx(sR,[l,e.id,g,v,p],function(){var b,C=f?f(h,u,e):lR(h,u,e,d),S=I({},C),$="";if(m){var x=iR(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),w=X(x,2);C=w[0],$=w[1]}var O=qE(C,l);C._tokenKey=O,S._tokenKey=qE(S,l);var E=(b=m==null?void 0:m.key)!==null&&b!==void 0?b:O;C._themeKey=E,JB(E);var P="".concat(ZB,"-").concat(Zg(O));return C._hashId=P,[C,P,S,$,(m==null?void 0:m.key)||""]},function(b){nz(b[0]._themeKey,o)},function(b){var C=X(b,4),S=C[0],$=C[3];if(m&&$){var x=fi($,Zg("css-variables-".concat(S._themeKey)),{mark:da,prepend:"queue",attachTo:a,priority:-999});x[Ki]=o,x.setAttribute(Wc,S._themeKey)}});return y}var rz=function(t,n,r){var o=X(t,5),a=o[2],i=o[3],l=o[4],s=r||{},u=s.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Jg(i,l,d,m,u);return[f,d,h]},oz={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uR="comm",dR="rule",fR="decl",az="@import",iz="@keyframes",lz="@layer",mR=Math.abs,Hx=String.fromCharCode;function vR(e){return e.trim()}function Qv(e,t,n){return e.replace(t,n)}function sz(e,t,n){return e.indexOf(t,n)}function xf(e,t){return e.charCodeAt(t)|0}function wf(e,t,n){return e.slice(t,n)}function ei(e){return e.length}function cz(e){return e.length}function uv(e,t){return t.push(e),e}var Sh=1,Uc=1,gR=0,Ho=0,ar=0,mu="";function Vx(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Sh,column:Uc,length:i,return:"",siblings:l}}function uz(){return ar}function dz(){return ar=Ho>0?xf(mu,--Ho):0,Uc--,ar===10&&(Uc=1,Sh--),ar}function fa(){return ar=Ho2||W1(ar)>3?"":" "}function gz(e,t){for(;--t&&fa()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return xh(e,Zv()+(t<6&&Zl()==32&&fa()==32))}function K1(e){for(;fa();)switch(ar){case e:return Ho;case 34:case 39:e!==34&&e!==39&&K1(ar);break;case 40:e===41&&K1(e);break;case 92:fa();break}return Ho}function pz(e,t){for(;fa()&&e+ar!==57;)if(e+ar===84&&Zl()===47)break;return"/*"+xh(t,Ho-1)+"*"+Hx(e===47?e:fa())}function hz(e){for(;!W1(Zl());)fa();return xh(e,Ho)}function yz(e){return mz(Jv("",null,null,null,[""],e=fz(e),0,[0],e))}function Jv(e,t,n,r,o,a,i,l,s){for(var u=0,d=0,f=i,m=0,h=0,g=0,v=1,p=1,y=1,b=0,C="",S=o,$=a,x=r,w=C;p;)switch(g=b,b=fa()){case 40:if(g!=108&&xf(w,f-1)==58){sz(w+=Qv(Py(b),"&","&\f"),"&\f",mR(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Py(b);break;case 9:case 10:case 13:case 32:w+=vz(g);break;case 92:w+=gz(Zv()-1,7);continue;case 47:switch(Zl()){case 42:case 47:uv(bz(pz(fa(),Zv()),t,n,s),s);break;default:w+="/"}break;case 123*v:l[u++]=ei(w)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+d:y==-1&&(w=Qv(w,/\f/g,"")),h>0&&ei(w)-f&&uv(h>32?ZE(w+";",r,n,f-1,s):ZE(Qv(w," ","")+";",r,n,f-2,s),s);break;case 59:w+=";";default:if(uv(x=QE(w,t,n,u,d,o,l,C,S=[],$=[],f,a),a),b===123)if(d===0)Jv(w,t,x,x,S,a,f,l,$);else switch(m===99&&xf(w,3)===110?100:m){case 100:case 108:case 109:case 115:Jv(e,x,x,r&&uv(QE(e,x,x,0,0,o,l,C,o,S=[],f,$),$),o,$,f,l,r?S:$);break;default:Jv(w,x,x,x,[""],$,0,l,$)}}u=d=h=0,v=y=1,C=w="",f=i;break;case 58:f=1+ei(w),h=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&dz()==125)continue}switch(w+=Hx(b),b*v){case 38:y=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(ei(w)-1)*y,y=1;break;case 64:Zl()===45&&(w+=Py(fa())),m=Zl(),d=f=ei(C=w+=hz(Zv())),b++;break;case 45:g===45&&ei(w)==2&&(v=0)}}return a}function QE(e,t,n,r,o,a,i,l,s,u,d,f){for(var m=o-1,h=o===0?a:[""],g=cz(h),v=0,p=0,y=0;v0?h[b]+" "+C:Qv(C,/&\f/g,h[b])))&&(s[y++]=S);return Vx(e,t,n,o===0?dR:l,s,u,d,f)}function bz(e,t,n,r){return Vx(e,t,n,uR,Hx(uz()),wf(e,2,-2),0,r)}function ZE(e,t,n,r,o){return Vx(e,t,n,fR,wf(e,0,r),wf(e,r+1,-1),r,o)}function U1(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",h={};function g(C){var S=C.getName(l);if(!h[S]){var $=e(C.style,n,{root:!1,parentSelectors:i}),x=X($,1),w=x[0];h[S]="@keyframes ".concat(C.getName(l)).concat(w)}}function v(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?v($,S):$&&S.push($)}),S}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var S=typeof C=="string"&&!o?{}:C;if(typeof S=="string")m+="".concat(S,` -`);else if(S._keyframe)g(S);else{var $=f.reduce(function(x,w){var O;return(w==null||(O=w.visit)===null||O===void 0?void 0:O.call(w,x))||x},S);Object.keys($).forEach(function(x){var w=$[x];if(et(w)==="object"&&w&&(x!=="animationName"||!w._keyframe)&&!Ez(w)){var O=!1,E=x.trim(),P=!1;(o||a)&&l?E.startsWith("@")?O=!0:E=Pz(x,l,u):o&&!l&&(E==="&"||E==="")&&(E="",P=!0);var M=e(w,n,{root:P,injectHash:O,parentSelectors:[].concat(Te(i),[E])}),D=X(M,2),R=D[0],_=D[1];h=I(I({},h),_),m+="".concat(E).concat(R)}else{let N=function(j,A){var B=j.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=A;!oz[j]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),j==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(g(A),z=A.getName(l)),m+="".concat(B,":").concat(z,";")};var T,k=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;et(w)==="object"&&w!==null&&w!==void 0&&w[yR]&&Array.isArray(k)?k.forEach(function(j){N(x,j)}):N(x,k)}})}}),!o)m="{".concat(m,"}");else if(s&&zB()){var y=s.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m))}return[m,h]};function bR(e,t){return Zg("".concat(e.join("%")).concat(t))}function Iz(){return null}var CR="style";function ep(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,d=c.useContext(Ch),f=d.autoClear;d.mock;var m=d.defaultCache,h=d.hashPriority,g=d.container,v=d.ssrInline,p=d.transformers,y=d.linters,b=d.cache,C=n._tokenKey,S=[C].concat(Te(r)),$=V1,x=zx(CR,S,function(){var M=S.join("|");if(xz(M)){var D=wz(M),R=X(D,2),_=R[0],T=R[1];if(_)return[_,C,T,{},l,u]}var k=t(),N=Oz(k,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:y}),j=X(N,2),A=j[0],B=j[1],z=G1(A),H=bR(S,z);return[z,C,H,B,l,u]},function(M,D){var R=X(M,3),_=R[2];(D||f)&&V1&&Vc(_,{mark:da})},function(M){var D=X(M,4),R=D[0];D[1];var _=D[2],T=D[3];if($&&R!==pR){var k={mark:da,prepend:"queue",attachTo:g,priority:u},N=typeof i=="function"?i():i;N&&(k.csp={nonce:N});var j=fi(R,_,k);j[Ki]=b.instanceId,j.setAttribute(Wc,C),Object.keys(T).forEach(function(A){fi(G1(T[A]),"_effect-".concat(A),k)})}}),w=X(x,3),O=w[0],E=w[1],P=w[2];return function(M){var D;if(!v||$||!m)D=c.createElement(Iz,null);else{var R;D=c.createElement("style",be({},(R={},L(R,Wc,E),L(R,da,P),R),{dangerouslySetInnerHTML:{__html:O}}))}return c.createElement(c.Fragment,null,D,M)}}var Mz=function(t,n,r){var o=X(t,6),a=o[0],i=o[1],l=o[2],s=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var h=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=Jg(a,i,l,g,m),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var p=G1(s[v]);h+=Jg(p,i,"_effect-".concat(v),g,m)}}),[d,l,h]},SR="cssVar",Rz=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,d=c.useContext(Ch),f=d.cache.instanceId,m=d.container,h=l._tokenKey,g=[].concat(Te(t.path),[r,u,h]),v=zx(SR,g,function(){var p=n(),y=iR(p,r,{prefix:o,unitless:a,ignore:i,scope:u}),b=X(y,2),C=b[0],S=b[1],$=bR(g,S);return[C,S,$,r]},function(p){var y=X(p,3),b=y[2];V1&&Vc(b,{mark:da})},function(p){var y=X(p,3),b=y[1],C=y[2];if(b){var S=fi(b,C,{mark:da,prepend:"queue",attachTo:m,priority:-999});S[Ki]=f,S.setAttribute(Wc,r)}});return v},_z=function(t,n,r){var o=X(t,4),a=o[1],i=o[2],l=o[3],s=r||{},u=s.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Jg(a,l,i,f,u);return[d,i,m]},td;td={},L(td,CR,Mz),L(td,sR,rz),L(td,SR,_z);var kt=function(){function e(t,n){Dn(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return Fn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function _s(e){return e.notSplit=!0,e}_s(["borderTop","borderBottom"]),_s(["borderTop"]),_s(["borderBottom"]),_s(["borderLeft","borderRight"]),_s(["borderLeft"]),_s(["borderRight"]);var wh=c.createContext({});function xR(e){return ZM(e)||qM(e)||yh(e)||JM()}function Or(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Or(e,t.slice(0,-1))?e:wR(e,t,n,r)}function Tz(e){return et(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function e4(e){return Array.isArray(e)?[]:{}}var Nz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function cc(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=jz,e},$R=c.createContext(void 0);var ER={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"},Fz={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"};const kz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},PR=kz,Lz={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"]},Fz),timePickerLocale:Object.assign({},PR)},tp=Lz,uo="${label} is not a valid ${type}",Da={locale:"en",Pagination:ER,DatePicker:tp,TimePicker:PR,Calendar:tp,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"},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:uo,method:uo,array:uo,object:uo,number:uo,date:uo,boolean:uo,integer:uo,float:uo,regexp:uo,email:uo,url:uo,hex:uo},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let eg=Object.assign({},Da.Modal),tg=[];const t4=()=>tg.reduce((e,t)=>Object.assign(Object.assign({},e),t),Da.Modal);function Az(e){if(e){const t=Object.assign({},e);return tg.push(t),eg=t4(),()=>{tg=tg.filter(n=>n!==t),eg=t4()}}eg=Object.assign({},Da.Modal)}function Bz(){return eg}const zz=c.createContext(void 0),Wx=zz,xi=(e,t)=>{const n=c.useContext(Wx),r=c.useMemo(()=>{var a;const i=t||Da[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=c.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Da.locale:a},[n]);return[r,o]},Hz="internalMark",Vz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>Az(t&&t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Wx.Provider,{value:o},n)},Wz=Vz;function Mr(e,t){Kz(e)&&(e="100%");var n=Uz(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function dv(e){return Math.min(1,Math.max(0,e))}function Kz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Uz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function OR(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fv(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Hl(e){return e.length===1?"0"+e:String(e)}function Gz(e,t,n){return{r:Mr(e,255)*255,g:Mr(t,255)*255,b:Mr(n,255)*255}}function n4(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qz(e,t,n){var r,o,a;if(e=Mr(e,360),t=Mr(t,100),n=Mr(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Oy(l,i,e+1/3),o=Oy(l,i,e),a=Oy(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function q1(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var X1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qs(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=tH(e)),typeof e=="object"&&(Ga(e.r)&&Ga(e.g)&&Ga(e.b)?(t=Gz(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ga(e.h)&&Ga(e.s)&&Ga(e.v)?(r=fv(e.s),o=fv(e.v),t=Yz(e.h,r,o),i=!0,l="hsv"):Ga(e.h)&&Ga(e.s)&&Ga(e.l)&&(r=fv(e.s),a=fv(e.l),t=qz(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=OR(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Jz="[-\\+]?\\d+%?",eH="[-\\+]?\\d*\\.\\d+%?",Ui="(?:".concat(eH,")|(?:").concat(Jz,")"),Iy="[\\s|\\(]+(".concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")\\s*\\)?"),My="[\\s|\\(]+(".concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")\\s*\\)?"),Zo={CSS_UNIT:new RegExp(Ui),rgb:new RegExp("rgb"+Iy),rgba:new RegExp("rgba"+My),hsl:new RegExp("hsl"+Iy),hsla:new RegExp("hsla"+My),hsv:new RegExp("hsv"+Iy),hsva:new RegExp("hsva"+My),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function tH(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(X1[e])e=X1[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Zo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Zo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Zo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Zo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Zo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Zo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Zo.hex8.exec(e),n?{r:vo(n[1]),g:vo(n[2]),b:vo(n[3]),a:r4(n[4]),format:t?"name":"hex8"}:(n=Zo.hex6.exec(e),n?{r:vo(n[1]),g:vo(n[2]),b:vo(n[3]),format:t?"name":"hex"}:(n=Zo.hex4.exec(e),n?{r:vo(n[1]+n[1]),g:vo(n[2]+n[2]),b:vo(n[3]+n[3]),a:r4(n[4]+n[4]),format:t?"name":"hex8"}:(n=Zo.hex3.exec(e),n?{r:vo(n[1]+n[1]),g:vo(n[2]+n[2]),b:vo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ga(e){return!!Zo.CSS_UNIT.exec(String(e))}var Jt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Zz(t)),this.originalInput=t;var o=qs(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=OR(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=q1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=q1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=n4(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=n4(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Y1(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Xz(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Mr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Mr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Y1(this.r,this.g,this.b,!1),n=0,r=Object.entries(X1);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=dv(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=dv(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=dv(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=dv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-mv*t:Math.round(e.h)+mv*t:r=n?Math.round(e.h)+mv*t:Math.round(e.h)-mv*t,r<0?r+=360:r>=360&&(r-=360),r}function l4(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-o4*t:t===MR?r=e.s+o4:r=e.s+nH*t,r>1&&(r=1),n&&t===IR&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function s4(e,t,n){var r;return n?r=e.v+rH*t:r=e.v-oH*t,r>1&&(r=1),Number(r.toFixed(2))}function Fa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=qs(e),o=IR;o>0;o-=1){var a=a4(r),i=vv(qs({h:i4(a,o,!0),s:l4(a,o,!0),v:s4(a,o,!0)}));n.push(i)}n.push(vv(r));for(var l=1;l<=MR;l+=1){var s=a4(r),u=vv(qs({h:i4(s,l),s:l4(s,l),v:s4(s,l)}));n.push(u)}return t.theme==="dark"?aH.map(function(d){var f=d.index,m=d.opacity,h=vv(iH(qs(t.backgroundColor||"#141414"),qs(n[f]),m*100));return h}):n}var es={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xr={},ng={};Object.keys(es).forEach(function(e){xr[e]=Fa(es[e]),xr[e].primary=xr[e][5],ng[e]=Fa(es[e],{theme:"dark",backgroundColor:"#141414"}),ng[e].primary=ng[e][5]});var lH=xr.red,sH=xr.volcano,cH=xr.gold,uH=xr.orange,dH=xr.yellow,fH=xr.lime,mH=xr.green,vH=xr.cyan,RR=xr.blue,gH=xr.geekblue,pH=xr.purple,hH=xr.magenta,yH=xr.grey,bH=xr.grey;const CH=Object.freeze(Object.defineProperty({__proto__:null,blue:RR,cyan:vH,geekblue:gH,generate:Fa,gold:cH,gray:bH,green:mH,grey:yH,lime:fH,magenta:hH,orange:uH,presetDarkPalettes:ng,presetPalettes:xr,presetPrimaryColors:es,purple:pH,red:lH,volcano:sH,yellow:dH},Symbol.toStringTag,{value:"Module"})),_R=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function SH(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Kx={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"},Gc=Object.assign(Object.assign({},Kx),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var Fx=Symbol.for("react.element"),kx=Symbol.for("react.portal"),fh=Symbol.for("react.fragment"),mh=Symbol.for("react.strict_mode"),vh=Symbol.for("react.profiler"),gh=Symbol.for("react.provider"),ph=Symbol.for("react.context"),uz=Symbol.for("react.server_context"),hh=Symbol.for("react.forward_ref"),yh=Symbol.for("react.suspense"),bh=Symbol.for("react.suspense_list"),Ch=Symbol.for("react.memo"),Sh=Symbol.for("react.lazy"),dz=Symbol.for("react.offscreen"),rR;rR=Symbol.for("react.module.reference");function Wo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Fx:switch(e=e.type,e){case fh:case vh:case mh:case yh:case bh:return e;default:switch(e=e&&e.$$typeof,e){case uz:case ph:case hh:case Sh:case Ch:case gh:return e;default:return t}}case kx:return t}}}bn.ContextConsumer=ph;bn.ContextProvider=gh;bn.Element=Fx;bn.ForwardRef=hh;bn.Fragment=fh;bn.Lazy=Sh;bn.Memo=Ch;bn.Portal=kx;bn.Profiler=vh;bn.StrictMode=mh;bn.Suspense=yh;bn.SuspenseList=bh;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return Wo(e)===ph};bn.isContextProvider=function(e){return Wo(e)===gh};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fx};bn.isForwardRef=function(e){return Wo(e)===hh};bn.isFragment=function(e){return Wo(e)===fh};bn.isLazy=function(e){return Wo(e)===Sh};bn.isMemo=function(e){return Wo(e)===Ch};bn.isPortal=function(e){return Wo(e)===kx};bn.isProfiler=function(e){return Wo(e)===vh};bn.isStrictMode=function(e){return Wo(e)===mh};bn.isSuspense=function(e){return Wo(e)===yh};bn.isSuspenseList=function(e){return Wo(e)===bh};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fh||e===vh||e===mh||e===yh||e===bh||e===dz||typeof e=="object"&&e!==null&&(e.$$typeof===Sh||e.$$typeof===Ch||e.$$typeof===gh||e.$$typeof===ph||e.$$typeof===hh||e.$$typeof===rR||e.getModuleId!==void 0)};bn.typeOf=Wo;nR.exports=bn;var Vd=nR.exports;function sr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return W.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(sr(r)):Vd.isFragment(r)&&r.props?n=n.concat(sr(r.props.children,t)):n.push(r))}),n}var A1={},fz=function(t){};function mz(e,t){}function vz(e,t){}function gz(){A1={}}function oR(e,t,n){!t&&!A1[n]&&(e(!1,n),A1[n]=!0)}function cn(e,t){oR(mz,e,t)}function wf(e,t){oR(vz,e,t)}cn.preMessage=fz;cn.resetWarned=gz;cn.noteOnce=wf;function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}function pz(e,t){if(et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(et(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aR(e){var t=pz(e,"string");return et(t)=="symbol"?t:t+""}function L(e,t,n){return t=aR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0},e.prototype.connect_=function(){!z1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$z?(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(){!z1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=wz.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lR=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Hc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Nz(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new jz(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),cR=typeof WeakMap<"u"?new WeakMap:new iR,uR=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ez.getInstance(),r=new Dz(t,n,this);cR.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){uR.prototype[e]=function(){var t;return(t=cR.get(this))[e].apply(t,arguments)}});var Fz=function(){return typeof Zg.ResizeObserver<"u"?Zg.ResizeObserver:uR}(),Wi=new Map;function kz(e){e.forEach(function(t){var n,r=t.target;(n=Wi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var dR=new Fz(kz);function Lz(e,t){Wi.has(e)||(Wi.set(e,new Set),dR.observe(e)),Wi.get(e).add(t)}function Az(e,t){Wi.has(e)&&(Wi.get(e).delete(t),Wi.get(e).size||(dR.unobserve(e),Wi.delete(e)))}function Dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i4(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;l4+=1;var r=l4;function o(a){if(a===0)pR(r),t();else{var i=vR(function(){o(a-1)});Bx.set(r,i)}}return o(n),r};At.cancel=function(e){var t=Bx.get(e);return pR(e),gR(t)};function s4(e){let t;const n=o=>()=>{t=null,e.apply(void 0,Te(o))},r=function(){if(t==null){for(var o=arguments.length,a=new Array(o),i=0;i{At.cancel(t),t=null},r}function hR(e){if(Array.isArray(e))return e}function Gz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){u=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function yR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e,t){return hR(e)||Gz(e,t)||wh(e,t)||yR()}function ep(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function _r(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function W1(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var c4="data-rc-order",u4="data-rc-priority",qz="rc-util-key",K1=new Map;function bR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qz}function $h(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Yz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zx(e){return Array.from((K1.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function CR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_r())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=Yz(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(c4,i),l&&a&&s.setAttribute(u4,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=$h(t),d=u.firstChild;if(r){if(l){var f=(t.styles||zx(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(c4)))return!1;var h=Number(m.getAttribute(u4)||0);return a>=h});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function SR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$h(t);return(t.styles||zx(n)).find(function(r){return r.getAttribute(bR(t))===e})}function Wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=SR(e,t);if(n){var r=$h(t);r.removeChild(n)}}function Xz(e,t){var n=K1.get(e);if(!n||!W1(document,n)){var r=CR("",t),o=r.parentNode;K1.set(e,o),e.removeChild(r)}}function fi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$h(n),o=zx(r),a=I(I({},n),{},{styles:o});Xz(r,a);var i=SR(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=CR(e,a);return d.setAttribute(bR(a),t),d}function Qz(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function ze(e,t){if(e==null)return{};var n=Qz(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(cn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=X(u,2),m=f[1];return o.internalGet(d)[1]0,void 0),d4+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Py=new Hx;function Uc(e){var t=Array.isArray(e)?e:[e];return Py.has(t)||Py.set(t,new xR(t)),Py.get(t)}var nH=new WeakMap,Oy={};function rH(e,t){for(var n=nH,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=I(I({},o),{},(r={},L(r,Kc,t),L(r,da,n),r)),l=Object.keys(i).map(function(s){var u=i[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"")}var $R=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},iH=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=X(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},ER=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,u=X(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var m,h=$R(d,r==null?void 0:r.prefix);o[h]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(h,")")}}),[a,iH(o,n,{scope:r==null?void 0:r.scope})]},v4=_r()?c.useLayoutEffect:c.useEffect,Kt=function(t,n){var r=c.useRef(!0);v4(function(){return t(r.current)},n),v4(function(){return r.current=!1,function(){r.current=!0}},[])},Ql=function(t,n){Kt(function(r){if(!r)return t()},n)},lH=I({},Qf),g4=lH.useInsertionEffect,sH=function(t,n,r){c.useMemo(t,r),Kt(function(){return n(!0)},r)},cH=g4?function(e,t,n){return g4(function(){return e(),t()},n)}:sH,uH=I({},Qf),dH=uH.useInsertionEffect,fH=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},mH=function(){return function(t){t()}},vH=typeof dH<"u"?fH:mH;function Vx(e,t,n,r,o){var a=c.useContext(Eh),i=a.cache,l=[e].concat(Te(t)),s=U1(l),u=vH([s]),d=function(g){i.opUpdate(s,function(v){var p=v||[void 0,void 0],y=X(p,2),b=y[0],C=b===void 0?0:b,S=y[1],$=S,x=$||n(),w=[C,x];return g?g(w):w})};c.useMemo(function(){d()},[s]);var f=i.opGet(s),m=f[1];return cH(function(){o==null||o(m)},function(h){return d(function(g){var v=X(g,2),p=v[0],y=v[1];return h&&p===0&&(o==null||o(m)),[p+1,y]}),function(){i.opUpdate(s,function(g){var v=g||[],p=X(v,2),y=p[0],b=y===void 0?0:y,C=p[1],S=b-1;return S===0?(u(function(){(h||!i.opGet(s))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[s]),m}var gH={},pH="css",Ll=new Map;function hH(e){Ll.set(e,(Ll.get(e)||0)+1)}function yH(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Kc,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ki]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var bH=0;function CH(e,t){Ll.set(e,(Ll.get(e)||0)-1);var n=Array.from(Ll.keys()),r=n.filter(function(o){var a=Ll.get(o)||0;return a<=0});n.length-r.length>bH&&r.forEach(function(o){yH(o,t),Ll.delete(o)})}var PR=function(t,n,r,o){var a=r.getDerivativeToken(t),i=I(I({},a),n);return o&&(i=o(i)),i},OR="token";function IR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Eh),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,u=s===void 0?gH:s,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,h=rH(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),g=Kd(h),v=Kd(u),p=m?Kd(m):"",y=Vx(OR,[l,e.id,g,v,p],function(){var b,C=f?f(h,u,e):PR(h,u,e,d),S=I({},C),$="";if(m){var x=ER(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),w=X(x,2);C=w[0],$=w[1]}var O=m4(C,l);C._tokenKey=O,S._tokenKey=m4(S,l);var E=(b=m==null?void 0:m.key)!==null&&b!==void 0?b:O;C._themeKey=E,hH(E);var P="".concat(pH,"-").concat(ep(O));return C._hashId=P,[C,P,S,$,(m==null?void 0:m.key)||""]},function(b){CH(b[0]._themeKey,o)},function(b){var C=X(b,4),S=C[0],$=C[3];if(m&&$){var x=fi($,ep("css-variables-".concat(S._themeKey)),{mark:da,prepend:"queue",attachTo:a,priority:-999});x[Ki]=o,x.setAttribute(Kc,S._themeKey)}});return y}var SH=function(t,n,r){var o=X(t,5),a=o[2],i=o[3],l=o[4],s=r||{},u=s.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=tp(i,l,d,m,u);return[f,d,h]},xH={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MR="comm",RR="rule",_R="decl",wH="@import",$H="@keyframes",EH="@layer",TR=Math.abs,Wx=String.fromCharCode;function NR(e){return e.trim()}function Qv(e,t,n){return e.replace(t,n)}function PH(e,t,n){return e.indexOf(t,n)}function $f(e,t){return e.charCodeAt(t)|0}function Ef(e,t,n){return e.slice(t,n)}function ei(e){return e.length}function OH(e){return e.length}function uv(e,t){return t.push(e),e}var Ph=1,Gc=1,jR=0,Ho=0,ar=0,vu="";function Kx(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ph,column:Gc,length:i,return:"",siblings:l}}function IH(){return ar}function MH(){return ar=Ho>0?$f(vu,--Ho):0,Gc--,ar===10&&(Gc=1,Ph--),ar}function fa(){return ar=Ho2||q1(ar)>3?"":" "}function NH(e,t){for(;--t&&fa()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return Oh(e,Zv()+(t<6&&Zl()==32&&fa()==32))}function Y1(e){for(;fa();)switch(ar){case e:return Ho;case 34:case 39:e!==34&&e!==39&&Y1(ar);break;case 40:e===41&&Y1(e);break;case 92:fa();break}return Ho}function jH(e,t){for(;fa()&&e+ar!==57;)if(e+ar===84&&Zl()===47)break;return"/*"+Oh(t,Ho-1)+"*"+Wx(e===47?e:fa())}function DH(e){for(;!q1(Zl());)fa();return Oh(e,Ho)}function FH(e){return _H(Jv("",null,null,null,[""],e=RH(e),0,[0],e))}function Jv(e,t,n,r,o,a,i,l,s){for(var u=0,d=0,f=i,m=0,h=0,g=0,v=1,p=1,y=1,b=0,C="",S=o,$=a,x=r,w=C;p;)switch(g=b,b=fa()){case 40:if(g!=108&&$f(w,f-1)==58){PH(w+=Qv(My(b),"&","&\f"),"&\f",TR(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=My(b);break;case 9:case 10:case 13:case 32:w+=TH(g);break;case 92:w+=NH(Zv()-1,7);continue;case 47:switch(Zl()){case 42:case 47:uv(kH(jH(fa(),Zv()),t,n,s),s);break;default:w+="/"}break;case 123*v:l[u++]=ei(w)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+d:y==-1&&(w=Qv(w,/\f/g,"")),h>0&&ei(w)-f&&uv(h>32?h4(w+";",r,n,f-1,s):h4(Qv(w," ","")+";",r,n,f-2,s),s);break;case 59:w+=";";default:if(uv(x=p4(w,t,n,u,d,o,l,C,S=[],$=[],f,a),a),b===123)if(d===0)Jv(w,t,x,x,S,a,f,l,$);else switch(m===99&&$f(w,3)===110?100:m){case 100:case 108:case 109:case 115:Jv(e,x,x,r&&uv(p4(e,x,x,0,0,o,l,C,o,S=[],f,$),$),o,$,f,l,r?S:$);break;default:Jv(w,x,x,x,[""],$,0,l,$)}}u=d=h=0,v=y=1,C=w="",f=i;break;case 58:f=1+ei(w),h=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&MH()==125)continue}switch(w+=Wx(b),b*v){case 38:y=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(ei(w)-1)*y,y=1;break;case 64:Zl()===45&&(w+=My(fa())),m=Zl(),d=f=ei(C=w+=DH(Zv())),b++;break;case 45:g===45&&ei(w)==2&&(v=0)}}return a}function p4(e,t,n,r,o,a,i,l,s,u,d,f){for(var m=o-1,h=o===0?a:[""],g=OH(h),v=0,p=0,y=0;v0?h[b]+" "+C:Qv(C,/&\f/g,h[b])))&&(s[y++]=S);return Kx(e,t,n,o===0?RR:l,s,u,d,f)}function kH(e,t,n,r){return Kx(e,t,n,MR,Wx(IH()),Ef(e,2,-2),0,r)}function h4(e,t,n,r,o){return Kx(e,t,n,_R,Ef(e,0,r),Ef(e,r+1,-1),r,o)}function X1(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",h={};function g(C){var S=C.getName(l);if(!h[S]){var $=e(C.style,n,{root:!1,parentSelectors:i}),x=X($,1),w=x[0];h[S]="@keyframes ".concat(C.getName(l)).concat(w)}}function v(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?v($,S):$&&S.push($)}),S}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var S=typeof C=="string"&&!o?{}:C;if(typeof S=="string")m+="".concat(S,` +`);else if(S._keyframe)g(S);else{var $=f.reduce(function(x,w){var O;return(w==null||(O=w.visit)===null||O===void 0?void 0:O.call(w,x))||x},S);Object.keys($).forEach(function(x){var w=$[x];if(et(w)==="object"&&w&&(x!=="animationName"||!w._keyframe)&&!VH(w)){var O=!1,E=x.trim(),P=!1;(o||a)&&l?E.startsWith("@")?O=!0:E=WH(x,l,u):o&&!l&&(E==="&"||E==="")&&(E="",P=!0);var M=e(w,n,{root:P,injectHash:O,parentSelectors:[].concat(Te(i),[E])}),D=X(M,2),R=D[0],_=D[1];h=I(I({},h),_),m+="".concat(E).concat(R)}else{let N=function(j,A){var B=j.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=A;!xH[j]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),j==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(g(A),z=A.getName(l)),m+="".concat(B,":").concat(z,";")};var T,k=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;et(w)==="object"&&w!==null&&w!==void 0&&w[kR]&&Array.isArray(k)?k.forEach(function(j){N(x,j)}):N(x,k)}})}}),!o)m="{".concat(m,"}");else if(s&&aH()){var y=s.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m))}return[m,h]};function LR(e,t){return ep("".concat(e.join("%")).concat(t))}function UH(){return null}var AR="style";function np(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,d=c.useContext(Eh),f=d.autoClear;d.mock;var m=d.defaultCache,h=d.hashPriority,g=d.container,v=d.ssrInline,p=d.transformers,y=d.linters,b=d.cache,C=n._tokenKey,S=[C].concat(Te(r)),$=G1,x=Vx(AR,S,function(){var M=S.join("|");if(BH(M)){var D=zH(M),R=X(D,2),_=R[0],T=R[1];if(_)return[_,C,T,{},l,u]}var k=t(),N=KH(k,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:y}),j=X(N,2),A=j[0],B=j[1],z=Q1(A),H=LR(S,z);return[z,C,H,B,l,u]},function(M,D){var R=X(M,3),_=R[2];(D||f)&&G1&&Wc(_,{mark:da})},function(M){var D=X(M,4),R=D[0];D[1];var _=D[2],T=D[3];if($&&R!==DR){var k={mark:da,prepend:"queue",attachTo:g,priority:u},N=typeof i=="function"?i():i;N&&(k.csp={nonce:N});var j=fi(R,_,k);j[Ki]=b.instanceId,j.setAttribute(Kc,C),Object.keys(T).forEach(function(A){fi(Q1(T[A]),"_effect-".concat(A),k)})}}),w=X(x,3),O=w[0],E=w[1],P=w[2];return function(M){var D;if(!v||$||!m)D=c.createElement(UH,null);else{var R;D=c.createElement("style",be({},(R={},L(R,Kc,E),L(R,da,P),R),{dangerouslySetInnerHTML:{__html:O}}))}return c.createElement(c.Fragment,null,D,M)}}var GH=function(t,n,r){var o=X(t,6),a=o[0],i=o[1],l=o[2],s=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var h=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=tp(a,i,l,g,m),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var p=Q1(s[v]);h+=tp(p,i,"_effect-".concat(v),g,m)}}),[d,l,h]},BR="cssVar",qH=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,d=c.useContext(Eh),f=d.cache.instanceId,m=d.container,h=l._tokenKey,g=[].concat(Te(t.path),[r,u,h]),v=Vx(BR,g,function(){var p=n(),y=ER(p,r,{prefix:o,unitless:a,ignore:i,scope:u}),b=X(y,2),C=b[0],S=b[1],$=LR(g,S);return[C,S,$,r]},function(p){var y=X(p,3),b=y[2];G1&&Wc(b,{mark:da})},function(p){var y=X(p,3),b=y[1],C=y[2];if(b){var S=fi(b,C,{mark:da,prepend:"queue",attachTo:m,priority:-999});S[Ki]=f,S.setAttribute(Kc,r)}});return v},YH=function(t,n,r){var o=X(t,4),a=o[1],i=o[2],l=o[3],s=r||{},u=s.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=tp(a,l,i,f,u);return[d,i,m]},id;id={},L(id,AR,GH),L(id,OR,SH),L(id,BR,YH);var kt=function(){function e(t,n){Dn(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return Fn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function _s(e){return e.notSplit=!0,e}_s(["borderTop","borderBottom"]),_s(["borderTop"]),_s(["borderBottom"]),_s(["borderLeft","borderRight"]),_s(["borderLeft"]),_s(["borderRight"]);var Ih=c.createContext({});function zR(e){return hR(e)||mR(e)||wh(e)||yR()}function Or(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Or(e,t.slice(0,-1))?e:HR(e,t,n,r)}function XH(e){return et(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function b4(e){return Array.isArray(e)?[]:{}}var QH=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function dc(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=ZH,e},VR=c.createContext(void 0);var WR={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"},eV={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"};const tV={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},KR=tV,nV={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"]},eV),timePickerLocale:Object.assign({},KR)},rp=nV,uo="${label} is not a valid ${type}",Da={locale:"en",Pagination:WR,DatePicker:rp,TimePicker:KR,Calendar:rp,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"},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:uo,method:uo,array:uo,object:uo,number:uo,date:uo,boolean:uo,integer:uo,float:uo,regexp:uo,email:uo,url:uo,hex:uo},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let eg=Object.assign({},Da.Modal),tg=[];const C4=()=>tg.reduce((e,t)=>Object.assign(Object.assign({},e),t),Da.Modal);function rV(e){if(e){const t=Object.assign({},e);return tg.push(t),eg=C4(),()=>{tg=tg.filter(n=>n!==t),eg=C4()}}eg=Object.assign({},Da.Modal)}function oV(){return eg}const aV=c.createContext(void 0),Ux=aV,wi=(e,t)=>{const n=c.useContext(Ux),r=c.useMemo(()=>{var a;const i=t||Da[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=c.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Da.locale:a},[n]);return[r,o]},iV="internalMark",lV=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>rV(t&&t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Ux.Provider,{value:o},n)},sV=lV;function Mr(e,t){cV(e)&&(e="100%");var n=uV(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function dv(e){return Math.min(1,Math.max(0,e))}function cV(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uV(e){return typeof e=="string"&&e.indexOf("%")!==-1}function UR(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fv(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Wl(e){return e.length===1?"0"+e:String(e)}function dV(e,t,n){return{r:Mr(e,255)*255,g:Mr(t,255)*255,b:Mr(n,255)*255}}function S4(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fV(e,t,n){var r,o,a;if(e=Mr(e,360),t=Mr(t,100),n=Mr(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Ry(l,i,e+1/3),o=Ry(l,i,e),a=Ry(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Z1(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var eC={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qs(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=bV(e)),typeof e=="object"&&(Ga(e.r)&&Ga(e.g)&&Ga(e.b)?(t=dV(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ga(e.h)&&Ga(e.s)&&Ga(e.v)?(r=fv(e.s),o=fv(e.v),t=mV(e.h,r,o),i=!0,l="hsv"):Ga(e.h)&&Ga(e.s)&&Ga(e.l)&&(r=fv(e.s),a=fv(e.l),t=fV(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=UR(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var hV="[-\\+]?\\d+%?",yV="[-\\+]?\\d*\\.\\d+%?",Ui="(?:".concat(yV,")|(?:").concat(hV,")"),_y="[\\s|\\(]+(".concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")\\s*\\)?"),Ty="[\\s|\\(]+(".concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")[,|\\s]+(").concat(Ui,")\\s*\\)?"),Zo={CSS_UNIT:new RegExp(Ui),rgb:new RegExp("rgb"+_y),rgba:new RegExp("rgba"+Ty),hsl:new RegExp("hsl"+_y),hsla:new RegExp("hsla"+Ty),hsv:new RegExp("hsv"+_y),hsva:new RegExp("hsva"+Ty),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function bV(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(eC[e])e=eC[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Zo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Zo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Zo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Zo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Zo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Zo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Zo.hex8.exec(e),n?{r:vo(n[1]),g:vo(n[2]),b:vo(n[3]),a:x4(n[4]),format:t?"name":"hex8"}:(n=Zo.hex6.exec(e),n?{r:vo(n[1]),g:vo(n[2]),b:vo(n[3]),format:t?"name":"hex"}:(n=Zo.hex4.exec(e),n?{r:vo(n[1]+n[1]),g:vo(n[2]+n[2]),b:vo(n[3]+n[3]),a:x4(n[4]+n[4]),format:t?"name":"hex8"}:(n=Zo.hex3.exec(e),n?{r:vo(n[1]+n[1]),g:vo(n[2]+n[2]),b:vo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ga(e){return!!Zo.CSS_UNIT.exec(String(e))}var Jt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=pV(t)),this.originalInput=t;var o=qs(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=UR(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Z1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Z1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=S4(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=S4(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),J1(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),vV(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Mr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Mr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+J1(this.r,this.g,this.b,!1),n=0,r=Object.entries(eC);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=dv(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=dv(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=dv(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=dv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-mv*t:Math.round(e.h)+mv*t:r=n?Math.round(e.h)+mv*t:Math.round(e.h)-mv*t,r<0?r+=360:r>=360&&(r-=360),r}function P4(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-w4*t:t===qR?r=e.s+w4:r=e.s+CV*t,r>1&&(r=1),n&&t===GR&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function O4(e,t,n){var r;return n?r=e.v+SV*t:r=e.v-xV*t,r>1&&(r=1),Number(r.toFixed(2))}function Fa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=qs(e),o=GR;o>0;o-=1){var a=$4(r),i=vv(qs({h:E4(a,o,!0),s:P4(a,o,!0),v:O4(a,o,!0)}));n.push(i)}n.push(vv(r));for(var l=1;l<=qR;l+=1){var s=$4(r),u=vv(qs({h:E4(s,l),s:P4(s,l),v:O4(s,l)}));n.push(u)}return t.theme==="dark"?wV.map(function(d){var f=d.index,m=d.opacity,h=vv($V(qs(t.backgroundColor||"#141414"),qs(n[f]),m*100));return h}):n}var es={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xr={},ng={};Object.keys(es).forEach(function(e){xr[e]=Fa(es[e]),xr[e].primary=xr[e][5],ng[e]=Fa(es[e],{theme:"dark",backgroundColor:"#141414"}),ng[e].primary=ng[e][5]});var EV=xr.red,PV=xr.volcano,OV=xr.gold,IV=xr.orange,MV=xr.yellow,RV=xr.lime,_V=xr.green,TV=xr.cyan,YR=xr.blue,NV=xr.geekblue,jV=xr.purple,DV=xr.magenta,FV=xr.grey,kV=xr.grey;const LV=Object.freeze(Object.defineProperty({__proto__:null,blue:YR,cyan:TV,geekblue:NV,generate:Fa,gold:OV,gray:kV,green:_V,grey:FV,lime:RV,magenta:DV,orange:IV,presetDarkPalettes:ng,presetPalettes:xr,presetPrimaryColors:es,purple:jV,red:EV,volcano:PV,yellow:MV},Symbol.toStringTag,{value:"Module"})),XR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function AV(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Gx={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"},qc=Object.assign(Object.assign({},Gx),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function TR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:d}=e,f=n(s),m=n(o),h=n(a),g=n(i),v=n(l),p=r(u,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const xH=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function wH(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},xH(r))}const qa=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),nd=(e,t)=>new Jt(e).darken(t).toHexString(),$H=e=>{const t=Fa(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]}},EH=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qa(r,.88),colorTextSecondary:qa(r,.65),colorTextTertiary:qa(r,.45),colorTextQuaternary:qa(r,.25),colorFill:qa(r,.15),colorFillSecondary:qa(r,.06),colorFillTertiary:qa(r,.04),colorFillQuaternary:qa(r,.02),colorBgLayout:nd(n,4),colorBgContainer:nd(n,0),colorBgElevated:nd(n,0),colorBgSpotlight:qa(r,.85),colorBgBlur:"transparent",colorBorder:nd(n,15),colorBorderSecondary:nd(n,6)}};function rg(e){return(e+8)/e}function PH(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:rg(n)}))}const NR=e=>{const t=PH(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function nm(e){const t=Object.keys(Kx).map(n=>{const r=Fa(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),TR(e,{generateColorPalettes:$H,generateNeutralColorPalettes:EH})),NR(e.fontSize)),SH(e)),_R(e)),wH(e))}const jR=Kc(nm),$f={token:Gc,override:{override:Gc},hashed:!0},DR=W.createContext($f),Ux="anticon",OH=(e,t)=>t||(e?`ant-${e}`:"ant"),at=c.createContext({getPrefixCls:OH,iconPrefixCls:Ux}),IH=`-ant-${Date.now()}-${Math.random()}`;function MH(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new Jt(i),u=Fa(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Jt(t.primaryColor),l=Fa(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const s=new Jt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.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"),` +'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});function QR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:d}=e,f=n(s),m=n(o),h=n(a),g=n(i),v=n(l),p=r(u,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const BV=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function zV(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},BV(r))}const qa=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),ld=(e,t)=>new Jt(e).darken(t).toHexString(),HV=e=>{const t=Fa(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]}},VV=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qa(r,.88),colorTextSecondary:qa(r,.65),colorTextTertiary:qa(r,.45),colorTextQuaternary:qa(r,.25),colorFill:qa(r,.15),colorFillSecondary:qa(r,.06),colorFillTertiary:qa(r,.04),colorFillQuaternary:qa(r,.02),colorBgLayout:ld(n,4),colorBgContainer:ld(n,0),colorBgElevated:ld(n,0),colorBgSpotlight:qa(r,.85),colorBgBlur:"transparent",colorBorder:ld(n,15),colorBorderSecondary:ld(n,6)}};function rg(e){return(e+8)/e}function WV(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:rg(n)}))}const ZR=e=>{const t=WV(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function om(e){const t=Object.keys(Gx).map(n=>{const r=Fa(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),QR(e,{generateColorPalettes:HV,generateNeutralColorPalettes:VV})),ZR(e.fontSize)),AV(e)),XR(e)),zV(e))}const JR=Uc(om),Pf={token:qc,override:{override:qc},hashed:!0},e_=W.createContext(Pf),qx="anticon",KV=(e,t)=>t||(e?`ant-${e}`:"ant"),at=c.createContext({getPrefixCls:KV,iconPrefixCls:qx}),UV=`-ant-${Date.now()}-${Math.random()}`;function GV(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new Jt(i),u=Fa(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Jt(t.primaryColor),l=Fa(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const s=new Jt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } - `.trim()}function RH(e,t){const n=MH(e,t);_r()&&fi(n,`${IH}-dynamic-theme`)}const Q1=c.createContext(!1),Gx=e=>{let{children:t,disabled:n}=e;const r=c.useContext(Q1);return c.createElement(Q1.Provider,{value:n??r},t)},Kr=Q1,Z1=c.createContext(void 0),_H=e=>{let{children:t,size:n}=e;const r=c.useContext(Z1);return c.createElement(Z1.Provider,{value:n||r},t)},rm=Z1;function TH(){const e=c.useContext(Kr),t=c.useContext(rm);return{componentDisabled:e,componentSize:t}}const Ef=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pa="5.15.3";function Ry(e){return e>=0&&e<=255}function gv(e,t){const{r:n,g:r,b:o,a}=new Jt(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new Jt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-s*(1-u))/u);if(Ry(d)&&Ry(f)&&Ry(m))return new Jt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:o,a:1}).toRgbString()}var NH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:gv(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:gv(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:gv(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:gv(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:` + `.trim()}function qV(e,t){const n=GV(e,t);_r()&&fi(n,`${UV}-dynamic-theme`)}const tC=c.createContext(!1),Yx=e=>{let{children:t,disabled:n}=e;const r=c.useContext(tC);return c.createElement(tC.Provider,{value:n??r},t)},Kr=tC,nC=c.createContext(void 0),YV=e=>{let{children:t,size:n}=e;const r=c.useContext(nC);return c.createElement(nC.Provider,{value:n||r},t)},am=nC;function XV(){const e=c.useContext(Kr),t=c.useContext(am);return{componentDisabled:e,componentSize:t}}const Of=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pa="5.15.3";function Ny(e){return e>=0&&e<=255}function gv(e,t){const{r:n,g:r,b:o,a}=new Jt(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new Jt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-s*(1-u))/u);if(Ny(d)&&Ny(f)&&Ny(m))return new Jt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:o,a:1}).toRgbString()}var QV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:gv(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:gv(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:gv(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:gv(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -91,7 +119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var c4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=c4(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=qx(i),a&&Object.entries(a).forEach(l=>{let[s,u]=l;const{theme:d}=u,f=c4(u,["theme"]);let m=f;d&&(m=LR(Object.assign(Object.assign({},i),f),{override:f},d)),i[s]=m}),i};function cr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=W.useContext(DR),a=`${pa}-${t||""}`,i=n||jR,[l,s,u]=cR(i,[Gc,e],{salt:a,override:r,getComputedToken:LR,formatToken:qx,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:FR,ignore:kR,preserve:jH}});return[i,u,t?s:"",l,o]}function qt(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},gu=()=>({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"}}),np=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),DH=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"}}}),FH=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},cl=e=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ha=e=>({"&:focus-visible":Object.assign({},cl(e))});function Yx(e,t,n){return t=Hc(t),GM(e,kx()?Reflect.construct(t,n||[],Hc(e).constructor):t.apply(e,n))}let kH=Fn(function e(){Dn(this,e)});const AR=kH;let LH=function(e){Ko(t,e);function t(n){var r;return Dn(this,t),r=Yx(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(AR);const BR="CALC_UNIT";function Ty(e){return typeof e=="number"?`${e}${BR}`:e}let AH=function(e){Ko(t,e);function t(n){var r;return Dn(this,t),r=Yx(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=Ty(n):typeof n=="string"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${Ty(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${Ty(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${BR}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(AR);const BH=e=>{const t=e==="css"?AH:LH;return n=>new t(n)};function zH(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rae(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rae(o)).join(",")})`}}}const zR=typeof CSSINJS_STATISTIC<"u";let J1=!0;function _t(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),J1=!0,r}const u4={};function HH(){}const VH=e=>{let t,n=e,r=HH;return zR&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return J1&&t.add(a),o[a]}}),r=(o,a)=>{var i;u4[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=u4[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},HR=(e,t)=>{const[n,r]=cr();return ep({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},gu()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},VR=(e,t,n)=>{var r;return typeof n=="function"?n(_t(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},WR=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[s,u]=l;var d;(o!=null&&o[s]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[s]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},WH=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function $h(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,d,f,m,h]=cr(),{getPrefixCls:g,iconPrefixCls:v,csp:p}=c.useContext(at),y=g(),b=h?"css":"js",C=BH(b),{max:S,min:$}=zH(b),x={theme:u,token:m,hashId:f,nonce:()=>p==null?void 0:p.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ep(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",y]}),()=>[{"&":DH(m)}]),HR(v,p),[ep(Object.assign(Object.assign({},x),{path:[i,l,v]}),()=>{if(r.injectStyle===!1)return[];const{token:O,flush:E}=VH(m),P=VR(a,d,n),M=`.${l}`,D=WR(a,d,P,{deprecatedTokens:r.deprecatedTokens});h&&Object.keys(P).forEach(T=>{P[T]=`var(${aR(T,WH(a,h.prefix))})`});const R=_t(O,{componentCls:M,prefixCls:l,iconCls:`.${v}`,antCls:`.${y}`,calc:C,max:S,min:$},h?P:D),_=t(R,{hashId:f,prefixCls:l,rootPrefixCls:y,iconPrefixCls:v});return E(a,D),[r.resetStyle===!1?null:FH(R,l,s),_]}),f]}}const Eh=(e,t,n,r)=>{const o=$h(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:s=l}=i;return o(l,s),null}},KH=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=cr();return Rz({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},FR),i),ignore:kR,token:m,scope:d},()=>{const h=VR(e,m,t),g=WR(e,m,h,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(h).forEach(v=>{g[r(v)]=g[v],delete g[v]}),g}),null};return u=>{const[,,,,d]=cr();return[f=>a&&d?W.createElement(W.Fragment,null,W.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Ht=(e,t,n,r)=>{const o=$h(e,t,n,r),a=KH(Array.isArray(e)?e[0]:e,n,r);return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,s]=o(i,l),[u,d]=a(l);return[u,s,d]}};function Xx(e,t){return Ef.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const UH=Object.assign({},Qf),{useId:d4}=UH,GH=()=>"",qH=typeof d4>"u"?GH:d4;function YH(e,t,n){var r;vu();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},$f),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:$f.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=qH();return du(()=>{var l,s;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,s)=>l.some((u,d)=>{const f=s[d];return!fu(u,f,!0)}))}var XH=["children"],KR=c.createContext({});function QH(e){var t=e.children,n=ze(e,XH);return c.createElement(KR.Provider,{value:n},t)}var ZH=function(e){Ko(n,e);var t=Si(n);function n(){return Dn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),Dl="none",pv="appear",hv="enter",yv="leave",f4="none",oa="prepare",uc="start",dc="active",Qx="end",UR="prepared";function m4(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 JH(e,t){var n={animationend:m4("Animation","AnimationEnd"),transitionend:m4("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var eV=JH(_r(),typeof window<"u"?window:{}),GR={};if(_r()){var tV=document.createElement("div");GR=tV.style}var bv={};function qR(e){if(bv[e])return bv[e];var t=eV[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=At(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var oV=[oa,uc,dc,Qx],aV=[oa,UR],JR=!1,iV=!0;function e_(e){return e===dc||e===Qx}const lV=function(e,t,n){var r=nl(f4),o=X(r,2),a=o[0],i=o[1],l=rV(),s=X(l,2),u=s[0],d=s[1];function f(){i(oa,!0)}var m=t?aV:oV;return ZR(function(){if(a!==f4&&a!==Qx){var h=m.indexOf(a),g=m[h+1],v=n(a);v===JR?i(g,!0):g&&u(function(p){function y(){p.isCanceled()||i(g,!0)}v===!0?y():Promise.resolve(v).then(y)})}},[e,a]),c.useEffect(function(){return function(){d()}},[]),[f,a]};function sV(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,u=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,E=nl(),P=X(E,2),M=P[0],D=P[1],R=nl(Dl),_=X(R,2),T=_[0],k=_[1],N=nl(null),j=X(N,2),A=j[0],B=j[1],z=c.useRef(!1),H=c.useRef(null);function V(){return n()}var U=c.useRef(!1);function K(){k(Dl,!0),B(null,!0)}function Y(fe){var le=V();if(!(fe&&!fe.deadline&&fe.target!==le)){var me=U.current,ye;T===pv&&me?ye=$==null?void 0:$(le,fe):T===hv&&me?ye=x==null?void 0:x(le,fe):T===yv&&me&&(ye=w==null?void 0:w(le,fe)),T!==Dl&&me&&ye!==!1&&K()}}var G=nV(Y),q=X(G,1),J=q[0],Q=function(le){var me,ye,ge;switch(le){case pv:return me={},L(me,oa,m),L(me,uc,v),L(me,dc,b),me;case hv:return ye={},L(ye,oa,h),L(ye,uc,p),L(ye,dc,C),ye;case yv:return ge={},L(ge,oa,g),L(ge,uc,y),L(ge,dc,S),ge;default:return{}}},ne=c.useMemo(function(){return Q(T)},[T]),re=lV(T,!e,function(fe){if(fe===oa){var le=ne[oa];return le?le(V()):JR}if(ee in ne){var me;B(((me=ne[ee])===null||me===void 0?void 0:me.call(ne,V(),null))||null)}return ee===dc&&(J(V()),d>0&&(clearTimeout(H.current),H.current=setTimeout(function(){Y({deadline:!0})},d))),ee===UR&&K(),iV}),oe=X(re,2),te=oe[0],ee=oe[1],ie=e_(ee);U.current=ie,ZR(function(){D(t);var fe=z.current;z.current=!0;var le;!fe&&t&&l&&(le=pv),fe&&t&&a&&(le=hv),(fe&&!t&&u||!fe&&f&&!t&&u)&&(le=yv);var me=Q(le);le&&(e||me[oa])?(k(le),te()):k(Dl)},[t]),c.useEffect(function(){(T===pv&&!l||T===hv&&!a||T===yv&&!u)&&k(Dl)},[l,a,u]),c.useEffect(function(){return function(){z.current=!1,clearTimeout(H.current)}},[]);var de=c.useRef(!1);c.useEffect(function(){M&&(de.current=!0),M!==void 0&&T===Dl&&((de.current||M)&&(O==null||O(M)),de.current=!0)},[M,T]);var he=A;return ne[oa]&&ee===uc&&(he=I({transition:"none"},he)),[T,ee,he,M??t]}function cV(e){var t=e;et(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=c.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,u=s===void 0?!0:s,d=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=c.useContext(KR),p=v.motion,y=n(o,p),b=c.useRef(),C=c.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:Vd(C.current)}catch{return null}}var $=sV(y,l,S,o),x=X($,4),w=x[0],O=x[1],E=x[2],P=x[3],M=c.useRef(P);P&&(M.current=!0);var D=c.useCallback(function(B){b.current=B,Fx(a,B)},[a]),R,_=I(I({},g),{},{visible:l});if(!f)R=null;else if(w===Dl)P?R=f(I({},_),D):!u&&M.current&&h?R=f(I(I({},_),{},{className:h}),D):d||!u&&!h?R=f(I(I({},_),{},{style:{display:"none"}}),D):R=null;else{var T,k;O===oa?k="prepare":e_(O)?k="active":O===uc&&(k="start");var N=p4(m,"".concat(w,"-").concat(k));R=f(I(I({},_),{},{className:Z(p4(m,w),(T={},L(T,N,N&&k),L(T,m,typeof m=="string"),T)),style:E}),D)}if(c.isValidElement(R)&&Ci(R)){var j=R,A=j.ref;A||(R=c.cloneElement(R,{ref:D}))}return c.createElement(ZH,{ref:C},R)});return r.displayName="CSSMotion",r}const wr=cV(QR);var eC="add",tC="keep",nC="remove",Ny="removed";function uV(e){var t;return e&&et(e)==="object"&&"key"in e?t=e:t={key:e},I(I({},t),{},{key:String(t.key)})}function rC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(uV)}function dV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=rC(e),i=rC(t);a.forEach(function(u){for(var d=!1,f=r;f1});return s.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==nC}),n.forEach(function(d){d.key===u&&(d.status=tC)})}),n}var fV=["component","children","onVisibleChanged","onAllRemoved"],mV=["status"],vV=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wr,n=function(r){Ko(a,r);var o=Si(a);function a(){var i;Dn(this,a);for(var l=arguments.length,s=new Array(l),u=0;unull;var yV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const wV=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(rp=t),n!==void 0&&(n_=n),"holderRender"in e&&(o_=o),r&&(xV(r)?RH(og(),r):r_=r)},$V=()=>({getPrefixCls:(e,t)=>t||(e?`${og()}-${e}`:og()),getIconPrefixCls:SV,getRootPrefixCls:()=>rp||og(),getTheme:()=>r_,holderRender:o_}),EV=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:y,theme:b,componentDisabled:C,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:P,typography:M,checkbox:D,descriptions:R,divider:_,drawer:T,skeleton:k,steps:N,image:j,layout:A,list:B,mentions:z,modal:H,progress:V,result:U,slider:K,breadcrumb:Y,menu:G,pagination:q,input:J,textArea:Q,empty:ne,badge:re,radio:oe,rate:te,switch:ee,transfer:ie,avatar:de,message:he,tag:fe,table:le,card:me,tabs:ye,timeline:ge,timePicker:ve,upload:$e,notification:Ce,tree:Oe,colorPicker:Re,datePicker:Ee,rangePicker:_e,flex:Fe,wave:qe,dropdown:Ze,warning:ke,tour:Be}=e,Ue=c.useCallback((xe,Ne)=>{const{prefixCls:We}=e;if(Ne)return Ne;const He=We||p.getPrefixCls("");return xe?`${He}-${xe}`:He},[p.getPrefixCls,e.prefixCls]),Je=y||p.iconPrefixCls||Ux,nt=n||p.csp;HR(Je,nt);const mt=YH(b,p.theme,{prefixCls:Ue("")}),gt={csp:nt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||v,direction:u,space:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Ue,iconPrefixCls:Je,theme:mt,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:P,typography:M,checkbox:D,descriptions:R,divider:_,drawer:T,skeleton:k,steps:N,image:j,input:J,textArea:Q,layout:A,list:B,mentions:z,modal:H,progress:V,result:U,slider:K,breadcrumb:Y,menu:G,pagination:q,empty:ne,badge:re,radio:oe,rate:te,switch:ee,transfer:ie,avatar:de,message:he,tag:fe,table:le,card:me,tabs:ye,timeline:ge,timePicker:ve,upload:$e,notification:Ce,tree:Oe,colorPicker:Re,datePicker:Ee,rangePicker:_e,flex:Fe,wave:qe,dropdown:Ze,warning:ke,tour:Be},yt=Object.assign({},p);Object.keys(gt).forEach(xe=>{gt[xe]!==void 0&&(yt[xe]=gt[xe])}),bV.forEach(xe=>{const Ne=e[xe];Ne&&(yt[xe]=Ne)});const It=du(()=>yt,yt,(xe,Ne)=>{const We=Object.keys(xe),He=Object.keys(Ne);return We.length!==He.length||We.some(Me=>xe[Me]!==Ne[Me])}),ue=c.useMemo(()=>({prefixCls:Je,csp:nt}),[Je,nt]);let se=c.createElement(c.Fragment,null,c.createElement(hV,{dropdownMatchSelectWidth:m}),t);const pe=c.useMemo(()=>{var xe,Ne,We,He;return cc(((xe=Da.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((We=(Ne=It.locale)===null||Ne===void 0?void 0:Ne.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((He=It.form)===null||He===void 0?void 0:He.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[It,i==null?void 0:i.validateMessages]);Object.keys(pe).length>0&&(se=c.createElement($R.Provider,{value:pe},se)),l&&(se=c.createElement(Wz,{locale:l,_ANT_MARK__:Hz},se)),(Je||nt)&&(se=c.createElement(wh.Provider,{value:ue},se)),s&&(se=c.createElement(_H,{size:s},se)),se=c.createElement(pV,null,se);const Se=c.useMemo(()=>{const xe=mt||{},{algorithm:Ne,token:We,components:He,cssVar:Me}=xe,Le=yV(xe,["algorithm","token","components","cssVar"]),Xe=Ne&&(!Array.isArray(Ne)||Ne.length>0)?Kc(Ne):jR,Ke={};Object.entries(He||{}).forEach(ot=>{let[Mt,Ct]=ot;const st=Object.assign({},Ct);"algorithm"in st&&(st.algorithm===!0?st.theme=Xe:(Array.isArray(st.algorithm)||typeof st.algorithm=="function")&&(st.theme=Kc(st.algorithm)),delete st.algorithm),Ke[Mt]=st});const it=Object.assign(Object.assign({},Gc),We);return Object.assign(Object.assign({},Le),{theme:Xe,token:it,components:Ke,override:Object.assign({override:it},Ke),cssVar:Me})},[mt]);return b&&(se=c.createElement(DR.Provider,{value:Se},se)),It.warning&&(se=c.createElement(Dz.Provider,{value:It.warning},se)),C!==void 0&&(se=c.createElement(Gx,{disabled:C},se)),c.createElement(at.Provider,{value:It},se)},pu=e=>{const t=c.useContext(at),n=c.useContext(Wx);return c.createElement(EV,Object.assign({parentContext:t,legacyLocale:n},e))};pu.ConfigContext=at;pu.SizeContext=rm;pu.config=wV;pu.useConfig=TH;Object.defineProperty(pu,"SizeContext",{get:()=>rm});const bt=pu,PV=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},OV=e=>({zIndexPopup:e.zIndexBase+10}),IV=Ht("Affix",PV,OV);function Cv(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function h4(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function y4(e,t,n){if(n!==void 0&&Math.round(t.bottom){var n;const{style:r,offsetTop:o,offsetBottom:a,prefixCls:i,className:l,rootClassName:s,children:u,target:d,onChange:f}=e,{getPrefixCls:m,getTargetContainer:h}=W.useContext(at),g=m("affix",i),[v,p]=W.useState(!1),[y,b]=W.useState(),[C,S]=W.useState(),$=W.useRef(fc.None),x=W.useRef(null),w=W.useRef(),O=W.useRef(null),E=W.useRef(null),P=W.useRef(null),M=(n=d??h)!==null&&n!==void 0?n:MV,D=a===void 0&&o===void 0?0:o,R=()=>{if($.current!==fc.Prepare||!E.current||!O.current||!M)return;const K=M();if(K){const Y={status:fc.None},G=Cv(O.current);if(G.top===0&&G.left===0&&G.width===0&&G.height===0)return;const q=Cv(K),J=h4(G,q,D),Q=y4(G,q,a);J!==void 0?(Y.affixStyle={position:"fixed",top:J,width:G.width,height:G.height},Y.placeholderStyle={width:G.width,height:G.height}):Q!==void 0&&(Y.affixStyle={position:"fixed",bottom:Q,width:G.width,height:G.height},Y.placeholderStyle={width:G.width,height:G.height}),Y.lastAffix=!!Y.affixStyle,v!==Y.lastAffix&&(f==null||f(Y.lastAffix)),$.current=Y.status,b(Y.affixStyle),S(Y.placeholderStyle),p(Y.lastAffix)}},_=()=>{$.current=fc.Prepare,R()},T=VE(()=>{_()}),k=VE(()=>{if(M&&y){const K=M();if(K&&O.current){const Y=Cv(K),G=Cv(O.current),q=h4(G,Y,D),J=y4(G,Y,a);if(q!==void 0&&y.top===q||J!==void 0&&y.bottom===J)return}}_()}),N=()=>{const K=M==null?void 0:M();K&&(b4.forEach(Y=>{var G;w.current&&((G=x.current)===null||G===void 0||G.removeEventListener(Y,w.current)),K==null||K.addEventListener(Y,k)}),x.current=K,w.current=k)},j=()=>{P.current&&(clearTimeout(P.current),P.current=null);const K=M==null?void 0:M();b4.forEach(Y=>{var G;K==null||K.removeEventListener(Y,k),w.current&&((G=x.current)===null||G===void 0||G.removeEventListener(Y,w.current))}),T.cancel(),k.cancel()};W.useImperativeHandle(t,()=>({updatePosition:T})),W.useEffect(()=>(P.current=setTimeout(N),()=>j()),[]),W.useEffect(()=>{N()},[d,y]),W.useEffect(()=>{T()},[d,o,a]);const[A,B,z]=IV(g),H=Z(s,B,g,z),V=Z({[H]:y});let U=gn(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return A(W.createElement(Sr,{onResize:T},W.createElement("div",Object.assign({style:r,className:l,ref:O},U),y&&W.createElement("div",{style:C,"aria-hidden":"true"}),W.createElement("div",{className:V,ref:E,style:y},W.createElement(Sr,{onResize:T},u)))))}),_V=RV;var TV={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"};const NV=TV;function a_(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jV(e){return a_(e)instanceof ShadowRoot}function op(e){return jV(e)?a_(e):null}function DV(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function oC(e,t){cn(e,"[@ant-design/icons] ".concat(t))}function C4(e){return et(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(et(e.icon)==="object"||typeof e.icon=="function")}function S4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[DV(n)]=r}return t},{})}function aC(e,t,n){return n?W.createElement(e.tag,I(I({key:t},S4(e.attrs)),n),(e.children||[]).map(function(r,o){return aC(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):W.createElement(e.tag,I({key:t},S4(e.attrs)),(e.children||[]).map(function(r,o){return aC(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function i_(e){return Fa(e)[0]}function l_(e){return e?Array.isArray(e)?e:[e]:[]}var FV={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},kV=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var I4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=I4(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xx(i),a&&Object.entries(a).forEach(l=>{let[s,u]=l;const{theme:d}=u,f=I4(u,["theme"]);let m=f;d&&(m=r_(Object.assign(Object.assign({},i),f),{override:f},d)),i[s]=m}),i};function cr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=W.useContext(e_),a=`${pa}-${t||""}`,i=n||JR,[l,s,u]=IR(i,[qc,e],{salt:a,override:r,getComputedToken:r_,formatToken:Xx,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:t_,ignore:n_,preserve:ZV}});return[i,u,t?s:"",l,o]}function qt(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},pu=()=>({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"}}),op=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),JV=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"}}}),eW=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},cl=e=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ha=e=>({"&:focus-visible":Object.assign({},cl(e))});function Qx(e,t,n){return t=Vc(t),fR(e,Ax()?Reflect.construct(t,n||[],Vc(e).constructor):t.apply(e,n))}let tW=Fn(function e(){Dn(this,e)});const o_=tW;let nW=function(e){Ko(t,e);function t(n){var r;return Dn(this,t),r=Qx(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(o_);const a_="CALC_UNIT";function Dy(e){return typeof e=="number"?`${e}${a_}`:e}let rW=function(e){Ko(t,e);function t(n){var r;return Dn(this,t),r=Qx(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=Dy(n):typeof n=="string"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${Dy(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${Dy(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${a_}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(o_);const oW=e=>{const t=e==="css"?rW:nW;return n=>new t(n)};function aW(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rae(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rae(o)).join(",")})`}}}const i_=typeof CSSINJS_STATISTIC<"u";let rC=!0;function _t(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),rC=!0,r}const M4={};function iW(){}const lW=e=>{let t,n=e,r=iW;return i_&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return rC&&t.add(a),o[a]}}),r=(o,a)=>{var i;M4[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=M4[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},l_=(e,t)=>{const[n,r]=cr();return np({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},pu()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},s_=(e,t,n)=>{var r;return typeof n=="function"?n(_t(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},c_=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[s,u]=l;var d;(o!=null&&o[s]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[s]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},sW=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Mh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,d,f,m,h]=cr(),{getPrefixCls:g,iconPrefixCls:v,csp:p}=c.useContext(at),y=g(),b=h?"css":"js",C=oW(b),{max:S,min:$}=aW(b),x={theme:u,token:m,hashId:f,nonce:()=>p==null?void 0:p.nonce,clientOnly:r.clientOnly,order:r.order||-999};return np(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",y]}),()=>[{"&":JV(m)}]),l_(v,p),[np(Object.assign(Object.assign({},x),{path:[i,l,v]}),()=>{if(r.injectStyle===!1)return[];const{token:O,flush:E}=lW(m),P=s_(a,d,n),M=`.${l}`,D=c_(a,d,P,{deprecatedTokens:r.deprecatedTokens});h&&Object.keys(P).forEach(T=>{P[T]=`var(${$R(T,sW(a,h.prefix))})`});const R=_t(O,{componentCls:M,prefixCls:l,iconCls:`.${v}`,antCls:`.${y}`,calc:C,max:S,min:$},h?P:D),_=t(R,{hashId:f,prefixCls:l,rootPrefixCls:y,iconPrefixCls:v});return E(a,D),[r.resetStyle===!1?null:eW(R,l,s),_]}),f]}}const Rh=(e,t,n,r)=>{const o=Mh(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:s=l}=i;return o(l,s),null}},cW=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=cr();return qH({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},t_),i),ignore:n_,token:m,scope:d},()=>{const h=s_(e,m,t),g=c_(e,m,h,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(h).forEach(v=>{g[r(v)]=g[v],delete g[v]}),g}),null};return u=>{const[,,,,d]=cr();return[f=>a&&d?W.createElement(W.Fragment,null,W.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Ht=(e,t,n,r)=>{const o=Mh(e,t,n,r),a=cW(Array.isArray(e)?e[0]:e,n,r);return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,s]=o(i,l),[u,d]=a(l);return[u,s,d]}};function Zx(e,t){return Of.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const uW=Object.assign({},Qf),{useId:R4}=uW,dW=()=>"",fW=typeof R4>"u"?dW:R4;function mW(e,t,n){var r;gu();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Pf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Pf.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=fW();return fu(()=>{var l,s;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,s)=>l.some((u,d)=>{const f=s[d];return!mu(u,f,!0)}))}var vW=["children"],u_=c.createContext({});function gW(e){var t=e.children,n=ze(e,vW);return c.createElement(u_.Provider,{value:n},t)}var pW=function(e){Ko(n,e);var t=xi(n);function n(){return Dn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),Dl="none",pv="appear",hv="enter",yv="leave",_4="none",aa="prepare",fc="start",mc="active",Jx="end",d_="prepared";function T4(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 hW(e,t){var n={animationend:T4("Animation","AnimationEnd"),transitionend:T4("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var yW=hW(_r(),typeof window<"u"?window:{}),f_={};if(_r()){var bW=document.createElement("div");f_=bW.style}var bv={};function m_(e){if(bv[e])return bv[e];var t=yW[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=At(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var xW=[aa,fc,mc,Jx],wW=[aa,d_],y_=!1,$W=!0;function b_(e){return e===mc||e===Jx}const EW=function(e,t,n){var r=rl(_4),o=X(r,2),a=o[0],i=o[1],l=SW(),s=X(l,2),u=s[0],d=s[1];function f(){i(aa,!0)}var m=t?wW:xW;return h_(function(){if(a!==_4&&a!==Jx){var h=m.indexOf(a),g=m[h+1],v=n(a);v===y_?i(g,!0):g&&u(function(p){function y(){p.isCanceled()||i(g,!0)}v===!0?y():Promise.resolve(v).then(y)})}},[e,a]),c.useEffect(function(){return function(){d()}},[]),[f,a]};function PW(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,u=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,E=rl(),P=X(E,2),M=P[0],D=P[1],R=rl(Dl),_=X(R,2),T=_[0],k=_[1],N=rl(null),j=X(N,2),A=j[0],B=j[1],z=c.useRef(!1),H=c.useRef(null);function V(){return n()}var U=c.useRef(!1);function K(){k(Dl,!0),B(null,!0)}function Y(fe){var le=V();if(!(fe&&!fe.deadline&&fe.target!==le)){var me=U.current,ye;T===pv&&me?ye=$==null?void 0:$(le,fe):T===hv&&me?ye=x==null?void 0:x(le,fe):T===yv&&me&&(ye=w==null?void 0:w(le,fe)),T!==Dl&&me&&ye!==!1&&K()}}var G=CW(Y),q=X(G,1),J=q[0],Q=function(le){var me,ye,ge;switch(le){case pv:return me={},L(me,aa,m),L(me,fc,v),L(me,mc,b),me;case hv:return ye={},L(ye,aa,h),L(ye,fc,p),L(ye,mc,C),ye;case yv:return ge={},L(ge,aa,g),L(ge,fc,y),L(ge,mc,S),ge;default:return{}}},ne=c.useMemo(function(){return Q(T)},[T]),re=EW(T,!e,function(fe){if(fe===aa){var le=ne[aa];return le?le(V()):y_}if(ee in ne){var me;B(((me=ne[ee])===null||me===void 0?void 0:me.call(ne,V(),null))||null)}return ee===mc&&(J(V()),d>0&&(clearTimeout(H.current),H.current=setTimeout(function(){Y({deadline:!0})},d))),ee===d_&&K(),$W}),oe=X(re,2),te=oe[0],ee=oe[1],ie=b_(ee);U.current=ie,h_(function(){D(t);var fe=z.current;z.current=!0;var le;!fe&&t&&l&&(le=pv),fe&&t&&a&&(le=hv),(fe&&!t&&u||!fe&&f&&!t&&u)&&(le=yv);var me=Q(le);le&&(e||me[aa])?(k(le),te()):k(Dl)},[t]),c.useEffect(function(){(T===pv&&!l||T===hv&&!a||T===yv&&!u)&&k(Dl)},[l,a,u]),c.useEffect(function(){return function(){z.current=!1,clearTimeout(H.current)}},[]);var de=c.useRef(!1);c.useEffect(function(){M&&(de.current=!0),M!==void 0&&T===Dl&&((de.current||M)&&(O==null||O(M)),de.current=!0)},[M,T]);var he=A;return ne[aa]&&ee===fc&&(he=I({transition:"none"},he)),[T,ee,he,M??t]}function OW(e){var t=e;et(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=c.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,u=s===void 0?!0:s,d=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=c.useContext(u_),p=v.motion,y=n(o,p),b=c.useRef(),C=c.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:Wd(C.current)}catch{return null}}var $=PW(y,l,S,o),x=X($,4),w=x[0],O=x[1],E=x[2],P=x[3],M=c.useRef(P);P&&(M.current=!0);var D=c.useCallback(function(B){b.current=B,Lx(a,B)},[a]),R,_=I(I({},g),{},{visible:l});if(!f)R=null;else if(w===Dl)P?R=f(I({},_),D):!u&&M.current&&h?R=f(I(I({},_),{},{className:h}),D):d||!u&&!h?R=f(I(I({},_),{},{style:{display:"none"}}),D):R=null;else{var T,k;O===aa?k="prepare":b_(O)?k="active":O===fc&&(k="start");var N=D4(m,"".concat(w,"-").concat(k));R=f(I(I({},_),{},{className:Z(D4(m,w),(T={},L(T,N,N&&k),L(T,m,typeof m=="string"),T)),style:E}),D)}if(c.isValidElement(R)&&Si(R)){var j=R,A=j.ref;A||(R=c.cloneElement(R,{ref:D}))}return c.createElement(pW,{ref:C},R)});return r.displayName="CSSMotion",r}const wr=OW(p_);var oC="add",aC="keep",iC="remove",Fy="removed";function IW(e){var t;return e&&et(e)==="object"&&"key"in e?t=e:t={key:e},I(I({},t),{},{key:String(t.key)})}function lC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(IW)}function MW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=lC(e),i=lC(t);a.forEach(function(u){for(var d=!1,f=r;f1});return s.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==iC}),n.forEach(function(d){d.key===u&&(d.status=aC)})}),n}var RW=["component","children","onVisibleChanged","onAllRemoved"],_W=["status"],TW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function NW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wr,n=function(r){Ko(a,r);var o=xi(a);function a(){var i;Dn(this,a);for(var l=arguments.length,s=new Array(l),u=0;unull;var FW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const zW=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(ap=t),n!==void 0&&(S_=n),"holderRender"in e&&(w_=o),r&&(BW(r)?qV(og(),r):x_=r)},HW=()=>({getPrefixCls:(e,t)=>t||(e?`${og()}-${e}`:og()),getIconPrefixCls:AW,getRootPrefixCls:()=>ap||og(),getTheme:()=>x_,holderRender:w_}),VW=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:y,theme:b,componentDisabled:C,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:P,typography:M,checkbox:D,descriptions:R,divider:_,drawer:T,skeleton:k,steps:N,image:j,layout:A,list:B,mentions:z,modal:H,progress:V,result:U,slider:K,breadcrumb:Y,menu:G,pagination:q,input:J,textArea:Q,empty:ne,badge:re,radio:oe,rate:te,switch:ee,transfer:ie,avatar:de,message:he,tag:fe,table:le,card:me,tabs:ye,timeline:ge,timePicker:ve,upload:$e,notification:Ce,tree:Oe,colorPicker:Re,datePicker:Ee,rangePicker:_e,flex:Fe,wave:qe,dropdown:Ze,warning:ke,tour:Be}=e,Ue=c.useCallback((xe,Ne)=>{const{prefixCls:We}=e;if(Ne)return Ne;const He=We||p.getPrefixCls("");return xe?`${He}-${xe}`:He},[p.getPrefixCls,e.prefixCls]),Je=y||p.iconPrefixCls||qx,nt=n||p.csp;l_(Je,nt);const mt=mW(b,p.theme,{prefixCls:Ue("")}),gt={csp:nt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||v,direction:u,space:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Ue,iconPrefixCls:Je,theme:mt,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:P,typography:M,checkbox:D,descriptions:R,divider:_,drawer:T,skeleton:k,steps:N,image:j,input:J,textArea:Q,layout:A,list:B,mentions:z,modal:H,progress:V,result:U,slider:K,breadcrumb:Y,menu:G,pagination:q,empty:ne,badge:re,radio:oe,rate:te,switch:ee,transfer:ie,avatar:de,message:he,tag:fe,table:le,card:me,tabs:ye,timeline:ge,timePicker:ve,upload:$e,notification:Ce,tree:Oe,colorPicker:Re,datePicker:Ee,rangePicker:_e,flex:Fe,wave:qe,dropdown:Ze,warning:ke,tour:Be},yt=Object.assign({},p);Object.keys(gt).forEach(xe=>{gt[xe]!==void 0&&(yt[xe]=gt[xe])}),kW.forEach(xe=>{const Ne=e[xe];Ne&&(yt[xe]=Ne)});const It=fu(()=>yt,yt,(xe,Ne)=>{const We=Object.keys(xe),He=Object.keys(Ne);return We.length!==He.length||We.some(Me=>xe[Me]!==Ne[Me])}),ue=c.useMemo(()=>({prefixCls:Je,csp:nt}),[Je,nt]);let se=c.createElement(c.Fragment,null,c.createElement(DW,{dropdownMatchSelectWidth:m}),t);const pe=c.useMemo(()=>{var xe,Ne,We,He;return dc(((xe=Da.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((We=(Ne=It.locale)===null||Ne===void 0?void 0:Ne.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((He=It.form)===null||He===void 0?void 0:He.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[It,i==null?void 0:i.validateMessages]);Object.keys(pe).length>0&&(se=c.createElement(VR.Provider,{value:pe},se)),l&&(se=c.createElement(sV,{locale:l,_ANT_MARK__:iV},se)),(Je||nt)&&(se=c.createElement(Ih.Provider,{value:ue},se)),s&&(se=c.createElement(YV,{size:s},se)),se=c.createElement(jW,null,se);const Se=c.useMemo(()=>{const xe=mt||{},{algorithm:Ne,token:We,components:He,cssVar:Me}=xe,Le=FW(xe,["algorithm","token","components","cssVar"]),Xe=Ne&&(!Array.isArray(Ne)||Ne.length>0)?Uc(Ne):JR,Ke={};Object.entries(He||{}).forEach(ot=>{let[Mt,Ct]=ot;const st=Object.assign({},Ct);"algorithm"in st&&(st.algorithm===!0?st.theme=Xe:(Array.isArray(st.algorithm)||typeof st.algorithm=="function")&&(st.theme=Uc(st.algorithm)),delete st.algorithm),Ke[Mt]=st});const it=Object.assign(Object.assign({},qc),We);return Object.assign(Object.assign({},Le),{theme:Xe,token:it,components:Ke,override:Object.assign({override:it},Ke),cssVar:Me})},[mt]);return b&&(se=c.createElement(e_.Provider,{value:Se},se)),It.warning&&(se=c.createElement(JH.Provider,{value:It.warning},se)),C!==void 0&&(se=c.createElement(Yx,{disabled:C},se)),c.createElement(at.Provider,{value:It},se)},hu=e=>{const t=c.useContext(at),n=c.useContext(Ux);return c.createElement(VW,Object.assign({parentContext:t,legacyLocale:n},e))};hu.ConfigContext=at;hu.SizeContext=am;hu.config=zW;hu.useConfig=XV;Object.defineProperty(hu,"SizeContext",{get:()=>am});const bt=hu,WW=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},KW=e=>({zIndexPopup:e.zIndexBase+10}),UW=Ht("Affix",WW,KW);function Cv(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function F4(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function k4(e,t,n){if(n!==void 0&&Math.round(t.bottom){var n;const{style:r,offsetTop:o,offsetBottom:a,prefixCls:i,className:l,rootClassName:s,children:u,target:d,onChange:f}=e,{getPrefixCls:m,getTargetContainer:h}=W.useContext(at),g=m("affix",i),[v,p]=W.useState(!1),[y,b]=W.useState(),[C,S]=W.useState(),$=W.useRef(vc.None),x=W.useRef(null),w=W.useRef(),O=W.useRef(null),E=W.useRef(null),P=W.useRef(null),M=(n=d??h)!==null&&n!==void 0?n:GW,D=a===void 0&&o===void 0?0:o,R=()=>{if($.current!==vc.Prepare||!E.current||!O.current||!M)return;const K=M();if(K){const Y={status:vc.None},G=Cv(O.current);if(G.top===0&&G.left===0&&G.width===0&&G.height===0)return;const q=Cv(K),J=F4(G,q,D),Q=k4(G,q,a);J!==void 0?(Y.affixStyle={position:"fixed",top:J,width:G.width,height:G.height},Y.placeholderStyle={width:G.width,height:G.height}):Q!==void 0&&(Y.affixStyle={position:"fixed",bottom:Q,width:G.width,height:G.height},Y.placeholderStyle={width:G.width,height:G.height}),Y.lastAffix=!!Y.affixStyle,v!==Y.lastAffix&&(f==null||f(Y.lastAffix)),$.current=Y.status,b(Y.affixStyle),S(Y.placeholderStyle),p(Y.lastAffix)}},_=()=>{$.current=vc.Prepare,R()},T=s4(()=>{_()}),k=s4(()=>{if(M&&y){const K=M();if(K&&O.current){const Y=Cv(K),G=Cv(O.current),q=F4(G,Y,D),J=k4(G,Y,a);if(q!==void 0&&y.top===q||J!==void 0&&y.bottom===J)return}}_()}),N=()=>{const K=M==null?void 0:M();K&&(L4.forEach(Y=>{var G;w.current&&((G=x.current)===null||G===void 0||G.removeEventListener(Y,w.current)),K==null||K.addEventListener(Y,k)}),x.current=K,w.current=k)},j=()=>{P.current&&(clearTimeout(P.current),P.current=null);const K=M==null?void 0:M();L4.forEach(Y=>{var G;K==null||K.removeEventListener(Y,k),w.current&&((G=x.current)===null||G===void 0||G.removeEventListener(Y,w.current))}),T.cancel(),k.cancel()};W.useImperativeHandle(t,()=>({updatePosition:T})),W.useEffect(()=>(P.current=setTimeout(N),()=>j()),[]),W.useEffect(()=>{N()},[d,y]),W.useEffect(()=>{T()},[d,o,a]);const[A,B,z]=UW(g),H=Z(s,B,g,z),V=Z({[H]:y});let U=gn(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return A(W.createElement(Sr,{onResize:T},W.createElement("div",Object.assign({style:r,className:l,ref:O},U),y&&W.createElement("div",{style:C,"aria-hidden":"true"}),W.createElement("div",{className:V,ref:E,style:y},W.createElement(Sr,{onResize:T},u)))))}),YW=qW;var XW={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"};const QW=XW;function $_(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ZW(e){return $_(e)instanceof ShadowRoot}function ip(e){return ZW(e)?$_(e):null}function JW(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function sC(e,t){cn(e,"[@ant-design/icons] ".concat(t))}function A4(e){return et(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(et(e.icon)==="object"||typeof e.icon=="function")}function B4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[JW(n)]=r}return t},{})}function cC(e,t,n){return n?W.createElement(e.tag,I(I({key:t},B4(e.attrs)),n),(e.children||[]).map(function(r,o){return cC(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):W.createElement(e.tag,I({key:t},B4(e.attrs)),(e.children||[]).map(function(r,o){return cC(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function E_(e){return Fa(e)[0]}function P_(e){return e?Array.isArray(e)?e:[e]:[]}var eK={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},tK=` .anticon { display: inline-flex; alignItems: center; @@ -146,7 +174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,s_=function(t){var n=c.useContext(wh),r=n.csp,o=n.prefixCls,a=kV;o&&(a=a.replace(/anticon/g,o)),c.useEffect(function(){var i=t.current,l=op(i);fi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},LV=["icon","className","onClick","style","primaryColor","secondaryColor"],Ud={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function AV(e){var t=e.primaryColor,n=e.secondaryColor;Ud.primaryColor=t,Ud.secondaryColor=n||i_(t),Ud.calculated=!!n}function BV(){return I({},Ud)}var Ph=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=ze(t,LV),u=c.useRef(),d=Ud;if(i&&(d={primaryColor:i,secondaryColor:l||i_(i)}),s_(u),oC(C4(n),"icon should be icon definiton, but got ".concat(n)),!C4(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=I(I({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),aC(f.icon,"svg-".concat(f.name),I(I({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};Ph.displayName="IconReact";Ph.getTwoToneColors=BV;Ph.setTwoToneColors=AV;const Zx=Ph;function c_(e){var t=l_(e),n=X(t,2),r=n[0],o=n[1];return Zx.setTwoToneColors({primaryColor:r,secondaryColor:o})}function zV(){var e=Zx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var HV=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];c_(RR.primary);var Oh=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=ze(e,HV),d=c.useContext(wh),f=d.prefixCls,m=f===void 0?"anticon":f,h=d.rootClassName,g=Z(h,m,L(L({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),v=i;v===void 0&&l&&(v=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=l_(s),b=X(y,2),C=b[0],S=b[1];return c.createElement("span",be({role:"img","aria-label":r.name},u,{ref:t,tabIndex:v,onClick:l,className:g}),c.createElement(Zx,{icon:r,primaryColor:C,secondaryColor:S,style:p}))});Oh.displayName="AntdIcon";Oh.getTwoToneColor=zV;Oh.setTwoToneColor=c_;const Dt=Oh;var VV=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:NV}))},WV=c.forwardRef(VV);const ys=WV;var KV={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const UV=KV;var GV=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:UV}))},qV=c.forwardRef(GV);const Ha=qV;var YV={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const XV=YV;var QV=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:XV}))},ZV=c.forwardRef(QV);const xa=ZV;var JV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const eW=JV;var tW=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:eW}))},nW=c.forwardRef(tW);const hu=nW;var rW={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"};const oW=rW;var aW=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:oW}))},iW=c.forwardRef(aW);const om=iW;var lW=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,O_=function(t){var n=c.useContext(Ih),r=n.csp,o=n.prefixCls,a=tK;o&&(a=a.replace(/anticon/g,o)),c.useEffect(function(){var i=t.current,l=ip(i);fi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},nK=["icon","className","onClick","style","primaryColor","secondaryColor"],Gd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function rK(e){var t=e.primaryColor,n=e.secondaryColor;Gd.primaryColor=t,Gd.secondaryColor=n||E_(t),Gd.calculated=!!n}function oK(){return I({},Gd)}var _h=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=ze(t,nK),u=c.useRef(),d=Gd;if(i&&(d={primaryColor:i,secondaryColor:l||E_(i)}),O_(u),sC(A4(n),"icon should be icon definiton, but got ".concat(n)),!A4(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=I(I({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),cC(f.icon,"svg-".concat(f.name),I(I({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};_h.displayName="IconReact";_h.getTwoToneColors=oK;_h.setTwoToneColors=rK;const e2=_h;function I_(e){var t=P_(e),n=X(t,2),r=n[0],o=n[1];return e2.setTwoToneColors({primaryColor:r,secondaryColor:o})}function aK(){var e=e2.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var iK=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];I_(YR.primary);var Th=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=ze(e,iK),d=c.useContext(Ih),f=d.prefixCls,m=f===void 0?"anticon":f,h=d.rootClassName,g=Z(h,m,L(L({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),v=i;v===void 0&&l&&(v=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=P_(s),b=X(y,2),C=b[0],S=b[1];return c.createElement("span",be({role:"img","aria-label":r.name},u,{ref:t,tabIndex:v,onClick:l,className:g}),c.createElement(e2,{icon:r,primaryColor:C,secondaryColor:S,style:p}))});Th.displayName="AntdIcon";Th.getTwoToneColor=aK;Th.setTwoToneColor=I_;const Dt=Th;var lK=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:QW}))},sK=c.forwardRef(lK);const bs=sK;var cK={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const uK=cK;var dK=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:uK}))},fK=c.forwardRef(dK);const Ha=fK;var mK={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const vK=mK;var gK=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:vK}))},pK=c.forwardRef(gK);const xa=pK;var hK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const yK=hK;var bK=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:yK}))},CK=c.forwardRef(bK);const yu=CK;var SK={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"};const xK=SK;var wK=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:xK}))},$K=c.forwardRef(wK);const im=$K;var EK=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -157,30 +185,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,sW=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,PK=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,cW="".concat(lW," ").concat(sW).split(/[\s\n]+/),uW="aria-",dW="data-";function x4(e,t){return e.indexOf(t)===0}function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=I({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||x4(o,uW))||n.data&&x4(o,dW)||n.attr&&cW.includes(o))&&(r[o]=e[o])}),r}function u_(e){return e&&W.isValidElement(e)&&e.type===W.Fragment}const d_=(e,t,n)=>W.isValidElement(e)?W.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function tr(e,t){return d_(e,e,t)}const Sv=(e,t,n,r,o)=>({background:e,border:`${ae(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),fW=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:h,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,OK="".concat(EK," ").concat(PK).split(/[\s\n]+/),IK="aria-",MK="data-";function z4(e,t){return e.indexOf(t)===0}function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=I({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||z4(o,IK))||n.data&&z4(o,MK)||n.attr&&OK.includes(o))&&(r[o]=e[o])}),r}function M_(e){return e&&W.isValidElement(e)&&e.type===W.Fragment}const R_=(e,t,n)=>W.isValidElement(e)?W.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function tr(e,t){return R_(e,e,t)}const Sv=(e,t,n,r,o)=>({background:e,border:`${ae(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),RK=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:h,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},mW=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:h}=e;return{[t]:{"&-success":Sv(o,r,n,e,t),"&-info":Sv(h,m,f,e,t),"&-warning":Sv(l,i,a,e,t),"&-error":Object.assign(Object.assign({},Sv(d,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},vW=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:ae(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},gW=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),pW=Ht("Alert",e=>[fW(e),mW(e),vW(e)],gW);var w4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=hW[r]||null;return t?d_(t,c.createElement("span",{className:`${n}-icon`},t),()=>({className:Z(`${n}-icon`,{[t.props.className]:t.props.className})})):c.createElement(o,{className:`${n}-icon`})},bW=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:a}=e,i=r===!0||r===void 0?c.createElement(xa,null):r;return t?c.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a),i):null},CW=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:a,rootClassName:i,style:l,onMouseEnter:s,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:h,closeText:g,closeIcon:v,action:p}=e,y=w4(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[b,C]=c.useState(!1),S=c.useRef(null),{getPrefixCls:$,direction:x,alert:w}=c.useContext(at),O=$("alert",n),[E,P,M]=pW(O),D=B=>{var z;C(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},R=c.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),_=c.useMemo(()=>typeof h=="object"&&h.closeIcon||g?!0:typeof h=="boolean"?h:v!==!1&&v!==null&&v!==void 0?!0:!!(w!=null&&w.closable),[g,v,h,w==null?void 0:w.closable]),T=o&&m===void 0?!0:m,k=Z(O,`${O}-${R}`,{[`${O}-with-description`]:!!t,[`${O}-no-icon`]:!T,[`${O}-banner`]:!!o,[`${O}-rtl`]:x==="rtl"},w==null?void 0:w.className,a,i,M,P),N=Qn(y,{aria:!0,data:!0}),j=c.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:g||(v!==void 0?v:typeof(w==null?void 0:w.closable)=="object"&&(!((B=w==null?void 0:w.closable)===null||B===void 0)&&B.closeIcon)?(z=w==null?void 0:w.closable)===null||z===void 0?void 0:z.closeIcon:w==null?void 0:w.closeIcon)},[v,h,g,w==null?void 0:w.closeIcon]),A=c.useMemo(()=>{const B=h??(w==null?void 0:w.closable);return typeof B=="object"?w4(B,["closeIcon"]):{}},[h,w==null?void 0:w.closable]);return E(c.createElement(wr,{visible:!b,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:f},B=>{let{className:z,style:H}=B;return c.createElement("div",Object.assign({ref:S,"data-show":!b,className:Z(k,z),style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),l),H),onMouseEnter:s,onMouseLeave:u,onClick:d,role:"alert"},N),T?c.createElement(yW,{description:t,icon:e.icon,prefixCls:O,type:R}):null,c.createElement("div",{className:`${O}-content`},r?c.createElement("div",{className:`${O}-message`},r):null,t?c.createElement("div",{className:`${O}-description`},t):null),p?c.createElement("div",{className:`${O}-action`},p):null,c.createElement(bW,{isClosable:_,prefixCls:O,closeIcon:j,handleClose:D,ariaProps:A}))}))},f_=CW;let SW=function(e){Ko(t,e);function t(){var n;return Dn(this,t),n=Yx(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Fn(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,children:a}=this.props,{error:i,info:l}=this.state,s=l&&l.componentStack?l.componentStack:null,u=typeof r>"u"?(i||"").toString():r,d=typeof o>"u"?s:o;return i?c.createElement(f_,{type:"error",message:u,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}]),t}(c.Component);const xW=SW,m_=f_;m_.ErrorBoundary=xW;const wW=m_,$4=e=>typeof e=="object"&&e!=null&&e.nodeType===1,E4=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",jy=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,$W=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},P4=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:k=>k!==u;if(!$4(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let g=e;for(;$4(g)&&f(g);){if(g=$W(g),g===m){h.push(g);break}g!=null&&g===document.body&&jy(g)&&!jy(document.documentElement)||g!=null&&jy(g,d)&&h.push(g)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:y,scrollY:b}=window,{height:C,width:S,top:$,right:x,bottom:w,left:O}=e.getBoundingClientRect(),{top:E,right:P,bottom:M,left:D}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let R=l==="start"||l==="nearest"?$-E:l==="end"?w+M:$+C/2-E+M,_=s==="center"?O+S/2-D+P:s==="end"?x+P:O-D;const T=[];for(let k=0;k=0&&O>=0&&w<=p&&x<=v&&$>=B&&w<=H&&O>=V&&x<=z)return T;const U=getComputedStyle(N),K=parseInt(U.borderLeftWidth,10),Y=parseInt(U.borderTopWidth,10),G=parseInt(U.borderRightWidth,10),q=parseInt(U.borderBottomWidth,10);let J=0,Q=0;const ne="offsetWidth"in N?N.offsetWidth-N.clientWidth-K-G:0,re="offsetHeight"in N?N.offsetHeight-N.clientHeight-Y-q:0,oe="offsetWidth"in N?N.offsetWidth===0?0:A/N.offsetWidth:0,te="offsetHeight"in N?N.offsetHeight===0?0:j/N.offsetHeight:0;if(m===N)J=l==="start"?R:l==="end"?R-p:l==="nearest"?xv(b,b+p,p,Y,q,b+R,b+R+C,C):R-p/2,Q=s==="start"?_:s==="center"?_-v/2:s==="end"?_-v:xv(y,y+v,v,K,G,y+_,y+_+S,S),J=Math.max(0,J+b),Q=Math.max(0,Q+y);else{J=l==="start"?R-B-Y:l==="end"?R-H+q+re:l==="nearest"?xv(B,H,j,Y,q+re,R,R+C,C):R-(B+j/2)+re/2,Q=s==="start"?_-V-K:s==="center"?_-(V+A/2)+ne/2:s==="end"?_-z+G+ne:xv(V,z,A,K,G+ne,_,_+S,S);const{scrollLeft:ee,scrollTop:ie}=N;J=te===0?0:Math.max(0,Math.min(ie+J/te,N.scrollHeight-j/te+re)),Q=oe===0?0:Math.max(0,Math.min(ee+Q/oe,N.scrollWidth-A/oe+ne)),R+=ie-J,_+=ee-Q}T.push({el:N,top:J,left:Q})}return T},EW=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function PW(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(P4(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of P4(e,EW(t))){const l=a-n.top+n.bottom,s=i-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const pn=e=>{const[,,,,t]=cr();return t?`${e}-css-var`:""};var Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ie.F1&&n<=Ie.F12)return!1;switch(n){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ie.ZERO&&t<=Ie.NINE||t>=Ie.NUM_ZERO&&t<=Ie.NUM_MULTIPLY||t>=Ie.A&&t<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},v_=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.eventKey,s=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,h=e.onClick,g=e.onNoticeClose,v=e.times,p=e.hovering,y=c.useState(!1),b=X(y,2),C=b[0],S=b[1],$=p||C,x=function(){g(l)},w=function(P){(P.key==="Enter"||P.code==="Enter"||P.keyCode===Ie.ENTER)&&x()};c.useEffect(function(){if(!$&&i>0){var E=setTimeout(function(){x()},i*1e3);return function(){clearTimeout(E)}}},[i,$,v]);var O="".concat(n,"-notice");return c.createElement("div",be({},m,{ref:t,className:Z(O,o,L({},"".concat(O,"-closable"),u)),style:r,onMouseEnter:function(P){var M;S(!0),m==null||(M=m.onMouseEnter)===null||M===void 0||M.call(m,P)},onMouseLeave:function(P){var M;S(!1),m==null||(M=m.onMouseLeave)===null||M===void 0||M.call(m,P)},onClick:h}),c.createElement("div",{className:"".concat(O,"-content")},s),u&&c.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:w,onClick:function(P){P.preventDefault(),P.stopPropagation(),x()}},f))}),g_=W.createContext({}),p_=function(t){var n=t.children,r=t.classNames;return W.createElement(g_.Provider,{value:{classNames:r}},n)},O4=8,I4=3,M4=16,OW=function(t){var n={offset:O4,threshold:I4,gap:M4};if(t&&et(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:O4,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:I4,n.gap=(a=t.gap)!==null&&a!==void 0?a:M4}return[!!t,n]},IW=["className","style","classNames","styles"],MW=function(t){var n,r=t.configList,o=t.placement,a=t.prefixCls,i=t.className,l=t.style,s=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,f=t.stack,m=c.useContext(g_),h=m.classNames,g=c.useRef({}),v=c.useState(null),p=X(v,2),y=p[0],b=p[1],C=c.useState([]),S=X(C,2),$=S[0],x=S[1],w=r.map(function(N){return{config:N,key:String(N.key)}}),O=OW(f),E=X(O,2),P=E[0],M=E[1],D=M.offset,R=M.threshold,_=M.gap,T=P&&($.length>0||w.length<=R),k=typeof s=="function"?s(o):s;return c.useEffect(function(){P&&$.length>1&&x(function(N){return N.filter(function(j){return w.some(function(A){var B=A.key;return j===B})})})},[$,w,P]),c.useEffect(function(){var N;if(P&&g.current[(N=w[w.length-1])===null||N===void 0?void 0:N.key]){var j;b(g.current[(j=w[w.length-1])===null||j===void 0?void 0:j.key])}},[w,P]),W.createElement(t_,be({key:o,className:Z(a,"".concat(a,"-").concat(o),h==null?void 0:h.list,i,(n={},L(n,"".concat(a,"-stack"),!!P),L(n,"".concat(a,"-stack-expanded"),T),n)),style:l,keys:w,motionAppear:!0},k,{onAllRemoved:function(){u(o)}}),function(N,j){var A=N.config,B=N.className,z=N.style,H=N.index,V=A,U=V.key,K=V.times,Y=String(U),G=A,q=G.className,J=G.style,Q=G.classNames,ne=G.styles,re=ze(G,IW),oe=w.findIndex(function($e){return $e.key===Y}),te={};if(P){var ee=w.length-1-(oe>-1?oe:H-1),ie=o==="top"||o==="bottom"?"-50%":"0";if(ee>0){var de,he,fe;te.height=T?(de=g.current[Y])===null||de===void 0?void 0:de.offsetHeight:y==null?void 0:y.offsetHeight;for(var le=0,me=0;me-1?g.current[Y]=Ce:delete g.current[Y]},prefixCls:a,classNames:Q,styles:ne,className:Z(q,h==null?void 0:h.notice),style:J,times:K,key:U,eventKey:U,onNoticeClose:d,hovering:P&&$.length>0})))})},RW=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=c.useState([]),h=X(m,2),g=h[0],v=h[1],p=function(E){var P,M=g.find(function(D){return D.key===E});M==null||(P=M.onClose)===null||P===void 0||P.call(M),v(function(D){return D.filter(function(R){return R.key!==E})})};c.useImperativeHandle(t,function(){return{open:function(E){v(function(P){var M=Te(P),D=M.findIndex(function(T){return T.key===E.key}),R=I({},E);if(D>=0){var _;R.times=(((_=P[D])===null||_===void 0?void 0:_.times)||0)+1,M[D]=R}else R.times=0,M.push(R);return i>0&&M.length>i&&(M=M.slice(-i)),M})},close:function(E){p(E)},destroy:function(){v([])}}});var y=c.useState({}),b=X(y,2),C=b[0],S=b[1];c.useEffect(function(){var O={};g.forEach(function(E){var P=E.placement,M=P===void 0?"topRight":P;M&&(O[M]=O[M]||[],O[M].push(E))}),Object.keys(C).forEach(function(E){O[E]=O[E]||[]}),S(O)},[g]);var $=function(E){S(function(P){var M=I({},P),D=M[E]||[];return D.length||delete M[E],M})},x=c.useRef(!1);if(c.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[C]),!o)return null;var w=Object.keys(C);return ja.createPortal(c.createElement(c.Fragment,null,w.map(function(O){var E=C[O],P=c.createElement(MW,{key:O,configList:E,placement:O,prefixCls:r,className:l==null?void 0:l(O),style:s==null?void 0:s(O),motion:a,onNoticeClose:p,onAllNoticeRemoved:$,stack:d});return f?f(P,{prefixCls:r,key:O}):P})),o)}),_W=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],TW=function(){return document.body},R4=0;function NW(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?TW:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ze(e,_W),m=c.useState(),h=X(m,2),g=h[0],v=h[1],p=c.useRef(),y=c.createElement(RW,{container:g,ref:p,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:s,stack:u,renderNotifications:d}),b=c.useState([]),C=X(b,2),S=C[0],$=C[1],x=c.useMemo(function(){return{open:function(O){var E=NW(f,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(R4),R4+=1),$(function(P){return[].concat(Te(P),[{type:"open",config:E}])})},close:function(O){$(function(E){return[].concat(Te(E),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(Te(O),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){v(n())}),c.useEffect(function(){p.current&&S.length&&(S.forEach(function(w){switch(w.type){case"open":p.current.open(w.config);break;case"close":p.current.close(w.key);break;case"destroy":p.current.destroy();break}}),$(function(w){return w.filter(function(O){return!S.includes(O)})}))},[S]),[x,y]}var jW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const DW=jW;var FW=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:DW}))},kW=c.forwardRef(FW);const Cl=kW,am=W.createContext(void 0),Fl=100,LW=10,Ih=Fl*LW,y_={Modal:Fl,Drawer:Fl,Popover:Fl,Popconfirm:Fl,Tooltip:Fl,Tour:Fl},AW={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function BW(e){return e in y_}function Uo(e,t){const[,n]=cr(),r=W.useContext(am),o=BW(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+y_[e],a=Math.min(a,n.zIndexPopupBase+Ih)):a+=AW[e],[r===void 0?t:a,a]}const zW=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:h,borderRadiusLG:g,zIndexPopup:v,contentPadding:p,contentBg:y}=e,b=`${t}-notice`,C=new kt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new kt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:h,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:p,background:y,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_K=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:h}=e;return{[t]:{"&-success":Sv(o,r,n,e,t),"&-info":Sv(h,m,f,e,t),"&-warning":Sv(l,i,a,e,t),"&-error":Object.assign(Object.assign({},Sv(d,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},TK=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:ae(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},NK=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),jK=Ht("Alert",e=>[RK(e),_K(e),TK(e)],NK);var H4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=DK[r]||null;return t?R_(t,c.createElement("span",{className:`${n}-icon`},t),()=>({className:Z(`${n}-icon`,{[t.props.className]:t.props.className})})):c.createElement(o,{className:`${n}-icon`})},kK=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:a}=e,i=r===!0||r===void 0?c.createElement(xa,null):r;return t?c.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a),i):null},LK=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:a,rootClassName:i,style:l,onMouseEnter:s,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:h,closeText:g,closeIcon:v,action:p}=e,y=H4(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[b,C]=c.useState(!1),S=c.useRef(null),{getPrefixCls:$,direction:x,alert:w}=c.useContext(at),O=$("alert",n),[E,P,M]=jK(O),D=B=>{var z;C(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},R=c.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),_=c.useMemo(()=>typeof h=="object"&&h.closeIcon||g?!0:typeof h=="boolean"?h:v!==!1&&v!==null&&v!==void 0?!0:!!(w!=null&&w.closable),[g,v,h,w==null?void 0:w.closable]),T=o&&m===void 0?!0:m,k=Z(O,`${O}-${R}`,{[`${O}-with-description`]:!!t,[`${O}-no-icon`]:!T,[`${O}-banner`]:!!o,[`${O}-rtl`]:x==="rtl"},w==null?void 0:w.className,a,i,M,P),N=Qn(y,{aria:!0,data:!0}),j=c.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:g||(v!==void 0?v:typeof(w==null?void 0:w.closable)=="object"&&(!((B=w==null?void 0:w.closable)===null||B===void 0)&&B.closeIcon)?(z=w==null?void 0:w.closable)===null||z===void 0?void 0:z.closeIcon:w==null?void 0:w.closeIcon)},[v,h,g,w==null?void 0:w.closeIcon]),A=c.useMemo(()=>{const B=h??(w==null?void 0:w.closable);return typeof B=="object"?H4(B,["closeIcon"]):{}},[h,w==null?void 0:w.closable]);return E(c.createElement(wr,{visible:!b,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:f},B=>{let{className:z,style:H}=B;return c.createElement("div",Object.assign({ref:S,"data-show":!b,className:Z(k,z),style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),l),H),onMouseEnter:s,onMouseLeave:u,onClick:d,role:"alert"},N),T?c.createElement(FK,{description:t,icon:e.icon,prefixCls:O,type:R}):null,c.createElement("div",{className:`${O}-content`},r?c.createElement("div",{className:`${O}-message`},r):null,t?c.createElement("div",{className:`${O}-description`},t):null),p?c.createElement("div",{className:`${O}-action`},p):null,c.createElement(kK,{isClosable:_,prefixCls:O,closeIcon:j,handleClose:D,ariaProps:A}))}))},__=LK;let AK=function(e){Ko(t,e);function t(){var n;return Dn(this,t),n=Qx(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Fn(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,children:a}=this.props,{error:i,info:l}=this.state,s=l&&l.componentStack?l.componentStack:null,u=typeof r>"u"?(i||"").toString():r,d=typeof o>"u"?s:o;return i?c.createElement(__,{type:"error",message:u,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}]),t}(c.Component);const BK=AK,T_=__;T_.ErrorBoundary=BK;const zK=T_,V4=e=>typeof e=="object"&&e!=null&&e.nodeType===1,W4=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ky=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,HK=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},K4=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:k=>k!==u;if(!V4(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let g=e;for(;V4(g)&&f(g);){if(g=HK(g),g===m){h.push(g);break}g!=null&&g===document.body&&ky(g)&&!ky(document.documentElement)||g!=null&&ky(g,d)&&h.push(g)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:y,scrollY:b}=window,{height:C,width:S,top:$,right:x,bottom:w,left:O}=e.getBoundingClientRect(),{top:E,right:P,bottom:M,left:D}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let R=l==="start"||l==="nearest"?$-E:l==="end"?w+M:$+C/2-E+M,_=s==="center"?O+S/2-D+P:s==="end"?x+P:O-D;const T=[];for(let k=0;k=0&&O>=0&&w<=p&&x<=v&&$>=B&&w<=H&&O>=V&&x<=z)return T;const U=getComputedStyle(N),K=parseInt(U.borderLeftWidth,10),Y=parseInt(U.borderTopWidth,10),G=parseInt(U.borderRightWidth,10),q=parseInt(U.borderBottomWidth,10);let J=0,Q=0;const ne="offsetWidth"in N?N.offsetWidth-N.clientWidth-K-G:0,re="offsetHeight"in N?N.offsetHeight-N.clientHeight-Y-q:0,oe="offsetWidth"in N?N.offsetWidth===0?0:A/N.offsetWidth:0,te="offsetHeight"in N?N.offsetHeight===0?0:j/N.offsetHeight:0;if(m===N)J=l==="start"?R:l==="end"?R-p:l==="nearest"?xv(b,b+p,p,Y,q,b+R,b+R+C,C):R-p/2,Q=s==="start"?_:s==="center"?_-v/2:s==="end"?_-v:xv(y,y+v,v,K,G,y+_,y+_+S,S),J=Math.max(0,J+b),Q=Math.max(0,Q+y);else{J=l==="start"?R-B-Y:l==="end"?R-H+q+re:l==="nearest"?xv(B,H,j,Y,q+re,R,R+C,C):R-(B+j/2)+re/2,Q=s==="start"?_-V-K:s==="center"?_-(V+A/2)+ne/2:s==="end"?_-z+G+ne:xv(V,z,A,K,G+ne,_,_+S,S);const{scrollLeft:ee,scrollTop:ie}=N;J=te===0?0:Math.max(0,Math.min(ie+J/te,N.scrollHeight-j/te+re)),Q=oe===0?0:Math.max(0,Math.min(ee+Q/oe,N.scrollWidth-A/oe+ne)),R+=ie-J,_+=ee-Q}T.push({el:N,top:J,left:Q})}return T},VK=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function WK(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(K4(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of K4(e,VK(t))){const l=a-n.top+n.bottom,s=i-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const pn=e=>{const[,,,,t]=cr();return t?`${e}-css-var`:""};var Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ie.F1&&n<=Ie.F12)return!1;switch(n){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ie.ZERO&&t<=Ie.NINE||t>=Ie.NUM_ZERO&&t<=Ie.NUM_MULTIPLY||t>=Ie.A&&t<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},N_=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.eventKey,s=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,h=e.onClick,g=e.onNoticeClose,v=e.times,p=e.hovering,y=c.useState(!1),b=X(y,2),C=b[0],S=b[1],$=p||C,x=function(){g(l)},w=function(P){(P.key==="Enter"||P.code==="Enter"||P.keyCode===Ie.ENTER)&&x()};c.useEffect(function(){if(!$&&i>0){var E=setTimeout(function(){x()},i*1e3);return function(){clearTimeout(E)}}},[i,$,v]);var O="".concat(n,"-notice");return c.createElement("div",be({},m,{ref:t,className:Z(O,o,L({},"".concat(O,"-closable"),u)),style:r,onMouseEnter:function(P){var M;S(!0),m==null||(M=m.onMouseEnter)===null||M===void 0||M.call(m,P)},onMouseLeave:function(P){var M;S(!1),m==null||(M=m.onMouseLeave)===null||M===void 0||M.call(m,P)},onClick:h}),c.createElement("div",{className:"".concat(O,"-content")},s),u&&c.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:w,onClick:function(P){P.preventDefault(),P.stopPropagation(),x()}},f))}),j_=W.createContext({}),D_=function(t){var n=t.children,r=t.classNames;return W.createElement(j_.Provider,{value:{classNames:r}},n)},U4=8,G4=3,q4=16,KK=function(t){var n={offset:U4,threshold:G4,gap:q4};if(t&&et(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:U4,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:G4,n.gap=(a=t.gap)!==null&&a!==void 0?a:q4}return[!!t,n]},UK=["className","style","classNames","styles"],GK=function(t){var n,r=t.configList,o=t.placement,a=t.prefixCls,i=t.className,l=t.style,s=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,f=t.stack,m=c.useContext(j_),h=m.classNames,g=c.useRef({}),v=c.useState(null),p=X(v,2),y=p[0],b=p[1],C=c.useState([]),S=X(C,2),$=S[0],x=S[1],w=r.map(function(N){return{config:N,key:String(N.key)}}),O=KK(f),E=X(O,2),P=E[0],M=E[1],D=M.offset,R=M.threshold,_=M.gap,T=P&&($.length>0||w.length<=R),k=typeof s=="function"?s(o):s;return c.useEffect(function(){P&&$.length>1&&x(function(N){return N.filter(function(j){return w.some(function(A){var B=A.key;return j===B})})})},[$,w,P]),c.useEffect(function(){var N;if(P&&g.current[(N=w[w.length-1])===null||N===void 0?void 0:N.key]){var j;b(g.current[(j=w[w.length-1])===null||j===void 0?void 0:j.key])}},[w,P]),W.createElement(C_,be({key:o,className:Z(a,"".concat(a,"-").concat(o),h==null?void 0:h.list,i,(n={},L(n,"".concat(a,"-stack"),!!P),L(n,"".concat(a,"-stack-expanded"),T),n)),style:l,keys:w,motionAppear:!0},k,{onAllRemoved:function(){u(o)}}),function(N,j){var A=N.config,B=N.className,z=N.style,H=N.index,V=A,U=V.key,K=V.times,Y=String(U),G=A,q=G.className,J=G.style,Q=G.classNames,ne=G.styles,re=ze(G,UK),oe=w.findIndex(function($e){return $e.key===Y}),te={};if(P){var ee=w.length-1-(oe>-1?oe:H-1),ie=o==="top"||o==="bottom"?"-50%":"0";if(ee>0){var de,he,fe;te.height=T?(de=g.current[Y])===null||de===void 0?void 0:de.offsetHeight:y==null?void 0:y.offsetHeight;for(var le=0,me=0;me-1?g.current[Y]=Ce:delete g.current[Y]},prefixCls:a,classNames:Q,styles:ne,className:Z(q,h==null?void 0:h.notice),style:J,times:K,key:U,eventKey:U,onNoticeClose:d,hovering:P&&$.length>0})))})},qK=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=c.useState([]),h=X(m,2),g=h[0],v=h[1],p=function(E){var P,M=g.find(function(D){return D.key===E});M==null||(P=M.onClose)===null||P===void 0||P.call(M),v(function(D){return D.filter(function(R){return R.key!==E})})};c.useImperativeHandle(t,function(){return{open:function(E){v(function(P){var M=Te(P),D=M.findIndex(function(T){return T.key===E.key}),R=I({},E);if(D>=0){var _;R.times=(((_=P[D])===null||_===void 0?void 0:_.times)||0)+1,M[D]=R}else R.times=0,M.push(R);return i>0&&M.length>i&&(M=M.slice(-i)),M})},close:function(E){p(E)},destroy:function(){v([])}}});var y=c.useState({}),b=X(y,2),C=b[0],S=b[1];c.useEffect(function(){var O={};g.forEach(function(E){var P=E.placement,M=P===void 0?"topRight":P;M&&(O[M]=O[M]||[],O[M].push(E))}),Object.keys(C).forEach(function(E){O[E]=O[E]||[]}),S(O)},[g]);var $=function(E){S(function(P){var M=I({},P),D=M[E]||[];return D.length||delete M[E],M})},x=c.useRef(!1);if(c.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[C]),!o)return null;var w=Object.keys(C);return ja.createPortal(c.createElement(c.Fragment,null,w.map(function(O){var E=C[O],P=c.createElement(GK,{key:O,configList:E,placement:O,prefixCls:r,className:l==null?void 0:l(O),style:s==null?void 0:s(O),motion:a,onNoticeClose:p,onAllNoticeRemoved:$,stack:d});return f?f(P,{prefixCls:r,key:O}):P})),o)}),YK=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],XK=function(){return document.body},Y4=0;function QK(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?XK:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ze(e,YK),m=c.useState(),h=X(m,2),g=h[0],v=h[1],p=c.useRef(),y=c.createElement(qK,{container:g,ref:p,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:s,stack:u,renderNotifications:d}),b=c.useState([]),C=X(b,2),S=C[0],$=C[1],x=c.useMemo(function(){return{open:function(O){var E=QK(f,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(Y4),Y4+=1),$(function(P){return[].concat(Te(P),[{type:"open",config:E}])})},close:function(O){$(function(E){return[].concat(Te(E),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(Te(O),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){v(n())}),c.useEffect(function(){p.current&&S.length&&(S.forEach(function(w){switch(w.type){case"open":p.current.open(w.config);break;case"close":p.current.close(w.key);break;case"destroy":p.current.destroy();break}}),$(function(w){return w.filter(function(O){return!S.includes(O)})}))},[S]),[x,y]}var ZK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const JK=ZK;var eU=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:JK}))},tU=c.forwardRef(eU);const Cl=tU,lm=W.createContext(void 0),Fl=100,nU=10,Nh=Fl*nU,k_={Modal:Fl,Drawer:Fl,Popover:Fl,Popconfirm:Fl,Tooltip:Fl,Tour:Fl},rU={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function oU(e){return e in k_}function Uo(e,t){const[,n]=cr(),r=W.useContext(lm),o=oU(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+k_[e],a=Math.min(a,n.zIndexPopupBase+Nh)):a+=rU[e],[r===void 0?t:a,a]}const aU=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:h,borderRadiusLG:g,zIndexPopup:v,contentPadding:p,contentBg:y}=e,b=`${t}-notice`,C=new kt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new kt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:h,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:p,background:y,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},Wt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},HW=e=>({zIndexPopup:e.zIndexPopupBase+Ih+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),b_=Ht("Message",e=>{const t=_t(e,{height:150});return[zW(t)]},HW);var VW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return c.createElement("div",{className:Z(`${t}-custom-content`,`${t}-${n}`)},r||WW[n],c.createElement("span",null,o))},KW=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=VW(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=c.useContext(at),s=t||l("message"),u=pn(s),[d,f,m]=b_(s,u);return d(c.createElement(v_,Object.assign({},i,{prefixCls:s,className:Z(n,f,`${s}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:c.createElement(C_,{prefixCls:s,type:r,icon:o},a)})))},UW=KW;function GW(e,t){return{motionName:t??`${e}-move-up`}}function Jx(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var qW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=pn(n),[o,a,i]=b_(n,r);return o(c.createElement(p_,{classNames:{list:Z(a,i,r)}},t))},ZW=(e,t)=>{let{prefixCls:n,key:r}=t;return c.createElement(QW,{prefixCls:n,key:r},e)},JW=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=XW,rtl:l,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:h}=c.useContext(at),g=r||d("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??YW}),p=()=>Z({[`${g}-rtl`]:l??h==="rtl"}),y=()=>GW(g,s),b=c.createElement("span",{className:`${g}-close-x`},c.createElement(xa,{className:`${g}-close-icon`})),[C,S]=h_({prefixCls:g,style:v,className:p,motion:y,closable:!1,closeIcon:b,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:ZW});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:g,message:m})),S});let _4=0;function S_(e){const t=c.useRef(null);return vu(),[c.useMemo(()=>{const r=s=>{var u;(u=t.current)===null||u===void 0||u.close(s)},o=s=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:h,icon:g,type:v,key:p,className:y,style:b,onClose:C}=s,S=qW(s,["content","icon","type","key","className","style","onClose"]);let $=p;return $==null&&(_4+=1,$=`antd-message-${_4}`),Jx(x=>(u(Object.assign(Object.assign({},S),{key:$,content:c.createElement(C_,{prefixCls:d,type:v,icon:g},h),placement:"top",className:Z(v&&`${m}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{C==null||C(),x()}})),()=>{r($)}))},i={open:o,destroy:s=>{var u;s!==void 0?r(s):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(d,f,m)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let g,v;typeof f=="function"?v=f:(g=f,v=m);const p=Object.assign(Object.assign({onClose:v,duration:g},h),{type:s});return o(p)};i[s]=u}),i},[]),c.createElement(JW,Object.assign({key:"message-holder"},e,{ref:t}))]}function x_(e){return S_(e)}function eK(){const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Te(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function an(){an=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(k,N,j){k[N]=j.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(k,N,j){return Object.defineProperty(k,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(j,A,B){return j[A]=B}}function d(k,N,j,A){var B=N&&N.prototype instanceof y?N:y,z=Object.create(B.prototype),H=new _(A||[]);return o(z,"_invoke",{value:P(k,j,H)}),z}function f(k,N,j){try{return{type:"normal",arg:k.call(N,j)}}catch(A){return{type:"throw",arg:A}}}t.wrap=d;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",p={};function y(){}function b(){}function C(){}var S={};u(S,i,function(){return this});var $=Object.getPrototypeOf,x=$&&$($(T([])));x&&x!==n&&r.call(x,i)&&(S=x);var w=C.prototype=y.prototype=Object.create(S);function O(k){["next","throw","return"].forEach(function(N){u(k,N,function(j){return this._invoke(N,j)})})}function E(k,N){function j(B,z,H,V){var U=f(k[B],k,z);if(U.type!=="throw"){var K=U.arg,Y=K.value;return Y&&et(Y)=="object"&&r.call(Y,"__await")?N.resolve(Y.__await).then(function(G){j("next",G,H,V)},function(G){j("throw",G,H,V)}):N.resolve(Y).then(function(G){K.value=G,H(K)},function(G){return j("throw",G,H,V)})}V(U.arg)}var A;o(this,"_invoke",{value:function(z,H){function V(){return new N(function(U,K){j(z,H,U,K)})}return A=A?A.then(V,V):V()}})}function P(k,N,j){var A=m;return function(B,z){if(A===g)throw Error("Generator is already running");if(A===v){if(B==="throw")throw z;return{value:e,done:!0}}for(j.method=B,j.arg=z;;){var H=j.delegate;if(H){var V=M(H,j);if(V){if(V===p)continue;return V}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(A===m)throw A=v,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);A=g;var U=f(k,N,j);if(U.type==="normal"){if(A=j.done?v:h,U.arg===p)continue;return{value:U.arg,done:j.done}}U.type==="throw"&&(A=v,j.method="throw",j.arg=U.arg)}}}function M(k,N){var j=N.method,A=k.iterator[j];if(A===e)return N.delegate=null,j==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,M(k,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),p;var B=f(A,k.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,p;var z=B.arg;return z?z.done?(N[k.resultName]=z.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,p):z:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,p)}function D(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function R(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function _(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(D,this),this.reset(!0)}function T(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var j=-1,A=function B(){for(;++j=0;--B){var z=this.tryEntries[B],H=z.completion;if(z.tryLoc==="root")return A("end");if(z.tryLoc<=this.prev){var V=r.call(z,"catchLoc"),U=r.call(z,"finallyLoc");if(V&&U){if(this.prev=0;--A){var B=this.tryEntries[A];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--j){var A=this.tryEntries[j];if(A.finallyLoc===N)return this.complete(A.completion,A.afterLoc),R(A),p}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var A=this.tryEntries[j];if(A.tryLoc===N){var B=A.completion;if(B.type==="throw"){var z=B.arg;R(A)}return z}}throw Error("illegal catch attempt")},delegateYield:function(N,j,A){return this.delegate={iterator:T(N),resultName:j,nextLoc:A},this.method==="next"&&(this.arg=e),p}},t}function T4(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,o)}function Tr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){T4(a,r,o,i,l,"next",s)}function l(s){T4(a,r,o,i,l,"throw",s)}i(void 0)})}}var im=I({},jM),tK=im.version,nK=im.render,rK=im.unmountComponentAtNode,Mh;try{var oK=Number((tK||"").split(".")[0]);oK>=18&&(Mh=im.createRoot)}catch{}function N4(e){var t=im.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&et(t)==="object"&&(t.usingClientEntryPoint=e)}var ap="__rc_react_root__";function aK(e,t){N4(!0);var n=t[ap]||Mh(t);N4(!1),n.render(e),t[ap]=n}function iK(e,t){nK(e,t)}function w_(e,t){if(Mh){aK(e,t);return}iK(e,t)}function lK(e){return iC.apply(this,arguments)}function iC(){return iC=Tr(an().mark(function e(t){return an().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ap])===null||o===void 0||o.unmount(),delete t[ap]}));case 1:case"end":return r.stop()}},e)})),iC.apply(this,arguments)}function sK(e){rK(e)}function cK(e){return lC.apply(this,arguments)}function lC(){return lC=Tr(an().mark(function e(t){return an().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Mh===void 0){r.next=2;break}return r.abrupt("return",lK(t));case 2:sK(t);case 3:case"end":return r.stop()}},e)})),lC.apply(this,arguments)}const Dy=()=>({height:0,opacity:0}),j4=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},uK=e=>({height:e?e.offsetHeight:0}),Fy=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ip=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Dy,onEnterStart:Dy,onAppearActive:j4,onEnterActive:j4,onLeaveStart:uK,onLeaveActive:Dy,onAppearEnd:Fy,onEnterEnd:Fy,onLeaveEnd:Fy,motionDeadline:500}},$r=(e,t,n)=>n!==void 0?n:`${e}-${t}`,lm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},dK=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(",")}}}}},fK=$h("Wave",e=>[dK(e)]);function mK(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ky(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&mK(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function vK(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ky(t)?t:ky(n)?n:ky(r)?r:null}const Rh="ant-wave-target";function Ly(e){return Number.isNaN(e)?0:e}const gK=e=>{const{className:t,target:n,component:r}=e,o=c.useRef(null),[a,i]=c.useState(null),[l,s]=c.useState([]),[u,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=c.useState(0),[v,p]=c.useState(0),[y,b]=c.useState(!1),C={left:u,top:f,width:h,height:v,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(C["--wave-color"]=a);function S(){const x=getComputedStyle(n);i(vK(n));const w=x.position==="static",{borderLeftWidth:O,borderTopWidth:E}=x;d(w?n.offsetLeft:Ly(-parseFloat(O))),m(w?n.offsetTop:Ly(-parseFloat(E))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:M,borderBottomLeftRadius:D,borderBottomRightRadius:R}=x;s([P,M,R,D].map(_=>Ly(parseFloat(_))))}if(c.useEffect(()=>{if(n){const x=At(()=>{S(),b(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(S),w.observe(n)),()=>{At.cancel(x),w==null||w.disconnect()}}},[]),!y)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Rh));return c.createElement(wr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,w)=>{var O;if(w.deadline||w.propertyName==="opacity"){const E=(O=o.current)===null||O===void 0?void 0:O.parentElement;cK(E).then(()=>{E==null||E.remove()})}return!1}},x=>{let{className:w}=x;return c.createElement("div",{ref:o,className:Z(t,{"wave-quick":$},w),style:C})})},pK=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),w_(c.createElement(gK,Object.assign({},t,{target:e})),o)},hK=pK;function yK(e,t,n){const{wave:r}=c.useContext(at),[,o,a]=cr(),i=qt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Rh}`)||d,{showEffect:m}=r||{};(m||hK)(f,{className:t,token:o,component:n,event:u,hashId:a})}),l=c.useRef();return u=>{At.cancel(l.current),l.current=At(()=>{i(u)})}}const bK=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(at),a=c.useRef(null),i=o("wave"),[,l]=fK(i),s=yK(a,Z(i,l),r);if(W.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!lm(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!W.isValidElement(t))return t??null;const u=Ci(t)?Er(t.ref,a):a;return tr(t,{ref:u})},_h=bK,nr=e=>{const t=W.useContext(rm);return W.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},CK=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},SK=CK,xK=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},wK=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}}}},$_=Ht("Space",e=>{const t=_t(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[xK(t),wK(t),SK(t)]},()=>({}),{resetStyle:!1});var E_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c.useContext(Th),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return Z(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ka=e=>{let{children:t}=e;return c.createElement(Th.Provider,{value:null},t)},$K=e=>{var{children:t}=e,n=E_(e,["children"]);return c.createElement(Th.Provider,{value:n},t)},EK=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:u}=e,d=E_(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=nr(C=>r??C),m=t("space-compact",i),[h,g]=$_(m),v=Z(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,s),p=c.useContext(Th),y=sr(u),b=c.useMemo(()=>y.map((C,S)=>{const $=C&&C.key||`${m}-item-${S}`;return c.createElement($K,{key:$,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:S===y.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,y,p]);return y.length===0?null:h(c.createElement("div",Object.assign({className:v},d),b))},PK=EK;var OK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,size:o,className:a}=e,i=OK(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=cr();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=Z(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},a,s);return c.createElement(P_.Provider,{value:o},c.createElement("div",Object.assign({},i,{className:d})))},MK=IK,D4=/^[\u4e00-\u9fa5]{2}$/,sC=D4.test.bind(D4);function O_(e){return e==="danger"?{danger:!0}:{type:e}}function F4(e){return typeof e=="string"}function Ay(e){return e==="text"||e==="link"}function RK(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&F4(e.type)&&sC(e.props.children)?tr(e,{children:e.props.children.split("").join(n)}):F4(e)?sC(e)?W.createElement("span",null,e.split("").join(n)):W.createElement("span",null,e):u_(e)?W.createElement("span",null,e):e}function _K(e,t){let n=!1;const r=[];return W.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),W.Children.map(r,o=>RK(o,t))}const TK=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Z(`${a}-icon`,n);return W.createElement("span",{ref:t,className:i,style:r},o)}),I_=TK,k4=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Z(`${n}-loading-icon`,r);return W.createElement(I_,{prefixCls:n,className:i,style:o,ref:t},W.createElement(Cl,{className:a}))}),By=()=>({width:0,opacity:0,transform:"scale(0)"}),zy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),NK=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?W.createElement(k4,{prefixCls:t,className:o,style:a}):W.createElement(wr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:By,onAppearActive:zy,onEnterStart:By,onEnterActive:zy,onLeaveStart:zy,onLeaveActive:By},(l,s)=>{let{className:u,style:d}=l;return W.createElement(k4,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:s,iconClassName:u})})},jK=NK,L4=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),DK=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${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}},L4(`${t}-primary`,o),L4(`${t}-danger`,a)]}},FK=DK,M_=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return _t(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},R_=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:rg(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:rg(s),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:rg(u);return{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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},kK=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",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",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({},ha(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},vi=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),LK=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),AK=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),BK=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Pf=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},vi(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),e2=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},BK(e))}),__=e=>Object.assign({},e2(e)),lp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),T_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},__(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),vi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Pf(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},vi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Pf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),e2(e))}),zK=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},__(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),vi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Pf(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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},vi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Pf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),e2(e))}),HK=e=>Object.assign(Object.assign({},T_(e)),{borderStyle:"dashed"}),VK=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},vi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),lp(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),lp(e))}),WK=e=>Object.assign(Object.assign(Object.assign({},vi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),lp(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},lp(e)),vi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),KK=e=>{const{componentCls:t}=e;return{[`${t}-default`]:T_(e),[`${t}-primary`]:zK(e),[`${t}-dashed`]:HK(e),[`${t}-link`]:VK(e),[`${t}-text`]:WK(e),[`${t}-ghost`]:Pf(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},t2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${ae(u)} ${ae(l)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:LK(e)},{[`${n}${n}-round${t}`]:AK(e)}]},UK=e=>{const t=_t(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return t2(t,e.componentCls)},GK=e=>{const t=_t(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return t2(t,`${e.componentCls}-sm`)},qK=e=>{const t=_t(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return t2(t,`${e.componentCls}-lg`)},YK=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},XK=Ht("Button",e=>{const t=M_(e);return[kK(t),UK(t),GK(t),qK(t),YK(t),KK(t),FK(t)]},R_,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function QK(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function ZK(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 yu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},QK(e,r,t)),ZK(n,r,t))}}function JK(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eU(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function tU(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},JK(e,t)),eU(e.componentCls,t))}}const nU=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ae(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ae(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},rU=Eh(["Button","compact"],e=>{const t=M_(e);return[yu(t),tU(t),nU(t)]},R_);var oU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:a,type:i,danger:l,shape:s="default",size:u,styles:d,disabled:f,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:y=!1,htmlType:b="button",classNames:C,style:S={}}=e,$=oU(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=i||"default",{getPrefixCls:w,autoInsertSpaceInButton:O,direction:E,button:P}=c.useContext(at),M=w("btn",a),[D,R,_]=XK(M),T=c.useContext(Kr),k=f??T,N=c.useContext(P_),j=c.useMemo(()=>aU(o),[o]),[A,B]=c.useState(j.loading),[z,H]=c.useState(!1),U=Er(t,c.createRef()),K=c.Children.count(g)===1&&!v&&!Ay(x);c.useEffect(()=>{let ye=null;j.delay>0?ye=setTimeout(()=>{ye=null,B(!0)},j.delay):B(j.loading);function ge(){ye&&(clearTimeout(ye),ye=null)}return ge},[j]),c.useEffect(()=>{if(!U||!U.current||O===!1)return;const ye=U.current.textContent;K&&sC(ye)?z||H(!0):z&&H(!1)},[U]);const Y=ye=>{const{onClick:ge}=e;if(A||k){ye.preventDefault();return}ge==null||ge(ye)},G=O!==!1,{compactSize:q,compactItemClassnames:J}=Va(M,E),Q={large:"lg",small:"sm",middle:void 0},ne=nr(ye=>{var ge,ve;return(ve=(ge=u??q)!==null&&ge!==void 0?ge:N)!==null&&ve!==void 0?ve:ye}),re=ne&&Q[ne]||"",oe=A?"loading":v,te=gn($,["navigate"]),ee=Z(M,R,_,{[`${M}-${s}`]:s!=="default"&&s,[`${M}-${x}`]:x,[`${M}-${re}`]:re,[`${M}-icon-only`]:!g&&g!==0&&!!oe,[`${M}-background-ghost`]:p&&!Ay(x),[`${M}-loading`]:A,[`${M}-two-chinese-chars`]:z&&G&&!A,[`${M}-block`]:y,[`${M}-dangerous`]:!!l,[`${M}-rtl`]:E==="rtl"},J,m,h,P==null?void 0:P.className),ie=Object.assign(Object.assign({},P==null?void 0:P.style),S),de=Z(C==null?void 0:C.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),he=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=P==null?void 0:P.styles)===null||r===void 0?void 0:r.icon)||{}),fe=v&&!A?W.createElement(I_,{prefixCls:M,className:de,style:he},v):W.createElement(jK,{existIcon:!!v,prefixCls:M,loading:!!A}),le=g||g===0?_K(g,K&&G):null;if(te.href!==void 0)return D(W.createElement("a",Object.assign({},te,{className:Z(ee,{[`${M}-disabled`]:k}),href:k?void 0:te.href,style:ie,onClick:Y,ref:U,tabIndex:k?-1:0}),fe,le));let me=W.createElement("button",Object.assign({},$,{type:b,className:ee,style:ie,onClick:Y,disabled:k,ref:U}),fe,le,!!J&&W.createElement(rU,{key:"compact",prefixCls:M}));return Ay(x)||(me=W.createElement(_h,{component:"Button",disabled:!!A},me)),D(me)},n2=c.forwardRef(iU);n2.Group=MK;n2.__ANT_BUTTON=!0;const Nr=n2;function A4(e){return!!(e&&e.then)}const lU=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[h,g]=nl(!1),v=function(){a==null||a.apply(void 0,arguments)};c.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus()})),()=>{b&&clearTimeout(b)}},[]);const p=b=>{A4(b)&&(g(!0),b.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},C=>{if(g(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(C)}))},y=b=>{if(f.current)return;if(f.current=!0,!d){v();return}let C;if(l){if(C=d(b),u&&!A4(C)){f.current=!1,v(b);return}}else if(d.length)C=d(a),f.current=!1;else if(C=d(),!C){v();return}p(C)};return c.createElement(Nr,Object.assign({},O_(t),{onClick:y,loading:h,prefixCls:r},o,{ref:m}),n)},N_=lU,sm=W.createContext({}),{Provider:j_}=sm,sU=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=c.useContext(sm);return o?W.createElement(N_,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},B4=sU,cU=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=c.useContext(sm);return W.createElement(N_,{isSilent:n,type:i||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)},z4=cU;var D_=c.createContext(null),H4=[];function uU(e,t){var n=c.useState(function(){if(!_r())return null;var g=document.createElement("div");return g}),r=X(n,1),o=r[0],a=c.useRef(!1),i=c.useContext(D_),l=c.useState(H4),s=X(l,2),u=s[0],d=s[1],f=i||(a.current?void 0:function(g){d(function(v){var p=[g].concat(Te(v));return p})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Kt(function(){return e?i?i(m):m():h(),h},[e]),Kt(function(){u.length&&(u.forEach(function(g){return g()}),d(H4))},[u]),[o,f]}function dU(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";fi(` + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},iU=e=>({zIndexPopup:e.zIndexPopupBase+Nh+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),L_=Ht("Message",e=>{const t=_t(e,{height:150});return[aU(t)]},iU);var lU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return c.createElement("div",{className:Z(`${t}-custom-content`,`${t}-${n}`)},r||sU[n],c.createElement("span",null,o))},cU=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=lU(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=c.useContext(at),s=t||l("message"),u=pn(s),[d,f,m]=L_(s,u);return d(c.createElement(N_,Object.assign({},i,{prefixCls:s,className:Z(n,f,`${s}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:c.createElement(A_,{prefixCls:s,type:r,icon:o},a)})))},uU=cU;function dU(e,t){return{motionName:t??`${e}-move-up`}}function t2(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var fU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=pn(n),[o,a,i]=L_(n,r);return o(c.createElement(D_,{classNames:{list:Z(a,i,r)}},t))},pU=(e,t)=>{let{prefixCls:n,key:r}=t;return c.createElement(gU,{prefixCls:n,key:r},e)},hU=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=vU,rtl:l,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:h}=c.useContext(at),g=r||d("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??mU}),p=()=>Z({[`${g}-rtl`]:l??h==="rtl"}),y=()=>dU(g,s),b=c.createElement("span",{className:`${g}-close-x`},c.createElement(xa,{className:`${g}-close-icon`})),[C,S]=F_({prefixCls:g,style:v,className:p,motion:y,closable:!1,closeIcon:b,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:pU});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:g,message:m})),S});let X4=0;function B_(e){const t=c.useRef(null);return gu(),[c.useMemo(()=>{const r=s=>{var u;(u=t.current)===null||u===void 0||u.close(s)},o=s=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:h,icon:g,type:v,key:p,className:y,style:b,onClose:C}=s,S=fU(s,["content","icon","type","key","className","style","onClose"]);let $=p;return $==null&&(X4+=1,$=`antd-message-${X4}`),t2(x=>(u(Object.assign(Object.assign({},S),{key:$,content:c.createElement(A_,{prefixCls:d,type:v,icon:g},h),placement:"top",className:Z(v&&`${m}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{C==null||C(),x()}})),()=>{r($)}))},i={open:o,destroy:s=>{var u;s!==void 0?r(s):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(d,f,m)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let g,v;typeof f=="function"?v=f:(g=f,v=m);const p=Object.assign(Object.assign({onClose:v,duration:g},h),{type:s});return o(p)};i[s]=u}),i},[]),c.createElement(hU,Object.assign({key:"message-holder"},e,{ref:t}))]}function z_(e){return B_(e)}function yU(){const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Te(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function an(){an=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(k,N,j){k[N]=j.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(k,N,j){return Object.defineProperty(k,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(j,A,B){return j[A]=B}}function d(k,N,j,A){var B=N&&N.prototype instanceof y?N:y,z=Object.create(B.prototype),H=new _(A||[]);return o(z,"_invoke",{value:P(k,j,H)}),z}function f(k,N,j){try{return{type:"normal",arg:k.call(N,j)}}catch(A){return{type:"throw",arg:A}}}t.wrap=d;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",p={};function y(){}function b(){}function C(){}var S={};u(S,i,function(){return this});var $=Object.getPrototypeOf,x=$&&$($(T([])));x&&x!==n&&r.call(x,i)&&(S=x);var w=C.prototype=y.prototype=Object.create(S);function O(k){["next","throw","return"].forEach(function(N){u(k,N,function(j){return this._invoke(N,j)})})}function E(k,N){function j(B,z,H,V){var U=f(k[B],k,z);if(U.type!=="throw"){var K=U.arg,Y=K.value;return Y&&et(Y)=="object"&&r.call(Y,"__await")?N.resolve(Y.__await).then(function(G){j("next",G,H,V)},function(G){j("throw",G,H,V)}):N.resolve(Y).then(function(G){K.value=G,H(K)},function(G){return j("throw",G,H,V)})}V(U.arg)}var A;o(this,"_invoke",{value:function(z,H){function V(){return new N(function(U,K){j(z,H,U,K)})}return A=A?A.then(V,V):V()}})}function P(k,N,j){var A=m;return function(B,z){if(A===g)throw Error("Generator is already running");if(A===v){if(B==="throw")throw z;return{value:e,done:!0}}for(j.method=B,j.arg=z;;){var H=j.delegate;if(H){var V=M(H,j);if(V){if(V===p)continue;return V}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(A===m)throw A=v,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);A=g;var U=f(k,N,j);if(U.type==="normal"){if(A=j.done?v:h,U.arg===p)continue;return{value:U.arg,done:j.done}}U.type==="throw"&&(A=v,j.method="throw",j.arg=U.arg)}}}function M(k,N){var j=N.method,A=k.iterator[j];if(A===e)return N.delegate=null,j==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,M(k,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),p;var B=f(A,k.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,p;var z=B.arg;return z?z.done?(N[k.resultName]=z.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,p):z:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,p)}function D(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function R(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function _(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(D,this),this.reset(!0)}function T(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var j=-1,A=function B(){for(;++j=0;--B){var z=this.tryEntries[B],H=z.completion;if(z.tryLoc==="root")return A("end");if(z.tryLoc<=this.prev){var V=r.call(z,"catchLoc"),U=r.call(z,"finallyLoc");if(V&&U){if(this.prev=0;--A){var B=this.tryEntries[A];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--j){var A=this.tryEntries[j];if(A.finallyLoc===N)return this.complete(A.completion,A.afterLoc),R(A),p}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var A=this.tryEntries[j];if(A.tryLoc===N){var B=A.completion;if(B.type==="throw"){var z=B.arg;R(A)}return z}}throw Error("illegal catch attempt")},delegateYield:function(N,j,A){return this.delegate={iterator:T(N),resultName:j,nextLoc:A},this.method==="next"&&(this.arg=e),p}},t}function Q4(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,o)}function Tr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){Q4(a,r,o,i,l,"next",s)}function l(s){Q4(a,r,o,i,l,"throw",s)}i(void 0)})}}var sm=I({},jM),bU=sm.version,CU=sm.render,SU=sm.unmountComponentAtNode,jh;try{var xU=Number((bU||"").split(".")[0]);xU>=18&&(jh=sm.createRoot)}catch{}function Z4(e){var t=sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&et(t)==="object"&&(t.usingClientEntryPoint=e)}var lp="__rc_react_root__";function wU(e,t){Z4(!0);var n=t[lp]||jh(t);Z4(!1),n.render(e),t[lp]=n}function $U(e,t){CU(e,t)}function H_(e,t){if(jh){wU(e,t);return}$U(e,t)}function EU(e){return uC.apply(this,arguments)}function uC(){return uC=Tr(an().mark(function e(t){return an().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[lp])===null||o===void 0||o.unmount(),delete t[lp]}));case 1:case"end":return r.stop()}},e)})),uC.apply(this,arguments)}function PU(e){SU(e)}function OU(e){return dC.apply(this,arguments)}function dC(){return dC=Tr(an().mark(function e(t){return an().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(jh===void 0){r.next=2;break}return r.abrupt("return",EU(t));case 2:PU(t);case 3:case"end":return r.stop()}},e)})),dC.apply(this,arguments)}const Ly=()=>({height:0,opacity:0}),J4=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},IU=e=>({height:e?e.offsetHeight:0}),Ay=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",sp=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ly,onEnterStart:Ly,onAppearActive:J4,onEnterActive:J4,onLeaveStart:IU,onLeaveActive:Ly,onAppearEnd:Ay,onEnterEnd:Ay,onLeaveEnd:Ay,motionDeadline:500}},$r=(e,t,n)=>n!==void 0?n:`${e}-${t}`,cm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},MU=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(",")}}}}},RU=Mh("Wave",e=>[MU(e)]);function _U(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function By(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&_U(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function TU(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return By(t)?t:By(n)?n:By(r)?r:null}const Dh="ant-wave-target";function zy(e){return Number.isNaN(e)?0:e}const NU=e=>{const{className:t,target:n,component:r}=e,o=c.useRef(null),[a,i]=c.useState(null),[l,s]=c.useState([]),[u,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=c.useState(0),[v,p]=c.useState(0),[y,b]=c.useState(!1),C={left:u,top:f,width:h,height:v,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(C["--wave-color"]=a);function S(){const x=getComputedStyle(n);i(TU(n));const w=x.position==="static",{borderLeftWidth:O,borderTopWidth:E}=x;d(w?n.offsetLeft:zy(-parseFloat(O))),m(w?n.offsetTop:zy(-parseFloat(E))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:M,borderBottomLeftRadius:D,borderBottomRightRadius:R}=x;s([P,M,R,D].map(_=>zy(parseFloat(_))))}if(c.useEffect(()=>{if(n){const x=At(()=>{S(),b(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(S),w.observe(n)),()=>{At.cancel(x),w==null||w.disconnect()}}},[]),!y)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Dh));return c.createElement(wr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,w)=>{var O;if(w.deadline||w.propertyName==="opacity"){const E=(O=o.current)===null||O===void 0?void 0:O.parentElement;OU(E).then(()=>{E==null||E.remove()})}return!1}},x=>{let{className:w}=x;return c.createElement("div",{ref:o,className:Z(t,{"wave-quick":$},w),style:C})})},jU=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),H_(c.createElement(NU,Object.assign({},t,{target:e})),o)},DU=jU;function FU(e,t,n){const{wave:r}=c.useContext(at),[,o,a]=cr(),i=qt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Dh}`)||d,{showEffect:m}=r||{};(m||DU)(f,{className:t,token:o,component:n,event:u,hashId:a})}),l=c.useRef();return u=>{At.cancel(l.current),l.current=At(()=>{i(u)})}}const kU=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(at),a=c.useRef(null),i=o("wave"),[,l]=RU(i),s=FU(a,Z(i,l),r);if(W.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!cm(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!W.isValidElement(t))return t??null;const u=Si(t)?Er(t.ref,a):a;return tr(t,{ref:u})},Fh=kU,nr=e=>{const t=W.useContext(am);return W.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},LU=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},AU=LU,BU=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},zU=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}}}},V_=Ht("Space",e=>{const t=_t(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[BU(t),zU(t),AU(t)]},()=>({}),{resetStyle:!1});var W_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c.useContext(kh),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return Z(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ka=e=>{let{children:t}=e;return c.createElement(kh.Provider,{value:null},t)},HU=e=>{var{children:t}=e,n=W_(e,["children"]);return c.createElement(kh.Provider,{value:n},t)},VU=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:u}=e,d=W_(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=nr(C=>r??C),m=t("space-compact",i),[h,g]=V_(m),v=Z(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,s),p=c.useContext(kh),y=sr(u),b=c.useMemo(()=>y.map((C,S)=>{const $=C&&C.key||`${m}-item-${S}`;return c.createElement(HU,{key:$,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:S===y.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,y,p]);return y.length===0?null:h(c.createElement("div",Object.assign({className:v},d),b))},WU=VU;var KU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,size:o,className:a}=e,i=KU(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=cr();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=Z(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},a,s);return c.createElement(K_.Provider,{value:o},c.createElement("div",Object.assign({},i,{className:d})))},GU=UU,eP=/^[\u4e00-\u9fa5]{2}$/,fC=eP.test.bind(eP);function U_(e){return e==="danger"?{danger:!0}:{type:e}}function tP(e){return typeof e=="string"}function Hy(e){return e==="text"||e==="link"}function qU(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&tP(e.type)&&fC(e.props.children)?tr(e,{children:e.props.children.split("").join(n)}):tP(e)?fC(e)?W.createElement("span",null,e.split("").join(n)):W.createElement("span",null,e):M_(e)?W.createElement("span",null,e):e}function YU(e,t){let n=!1;const r=[];return W.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),W.Children.map(r,o=>qU(o,t))}const XU=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Z(`${a}-icon`,n);return W.createElement("span",{ref:t,className:i,style:r},o)}),G_=XU,nP=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Z(`${n}-loading-icon`,r);return W.createElement(G_,{prefixCls:n,className:i,style:o,ref:t},W.createElement(Cl,{className:a}))}),Vy=()=>({width:0,opacity:0,transform:"scale(0)"}),Wy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),QU=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?W.createElement(nP,{prefixCls:t,className:o,style:a}):W.createElement(wr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Vy,onAppearActive:Wy,onEnterStart:Vy,onEnterActive:Wy,onLeaveStart:Wy,onLeaveActive:Vy},(l,s)=>{let{className:u,style:d}=l;return W.createElement(nP,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:s,iconClassName:u})})},ZU=QU,rP=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),JU=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${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}},rP(`${t}-primary`,o),rP(`${t}-danger`,a)]}},eG=JU,q_=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return _t(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Y_=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:rg(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:rg(s),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:rg(u);return{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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},tG=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",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",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({},ha(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},vi=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),nG=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),rG=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),oG=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),If=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},vi(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),n2=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},oG(e))}),X_=e=>Object.assign({},n2(e)),cp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Q_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X_(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),vi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),If(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},vi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),If(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),n2(e))}),aG=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X_(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),vi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),If(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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},vi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),If(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),n2(e))}),iG=e=>Object.assign(Object.assign({},Q_(e)),{borderStyle:"dashed"}),lG=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},vi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cp(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),cp(e))}),sG=e=>Object.assign(Object.assign(Object.assign({},vi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),cp(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cp(e)),vi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),cG=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Q_(e),[`${t}-primary`]:aG(e),[`${t}-dashed`]:iG(e),[`${t}-link`]:lG(e),[`${t}-text`]:sG(e),[`${t}-ghost`]:If(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},r2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${ae(u)} ${ae(l)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:nG(e)},{[`${n}${n}-round${t}`]:rG(e)}]},uG=e=>{const t=_t(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return r2(t,e.componentCls)},dG=e=>{const t=_t(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return r2(t,`${e.componentCls}-sm`)},fG=e=>{const t=_t(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return r2(t,`${e.componentCls}-lg`)},mG=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},vG=Ht("Button",e=>{const t=q_(e);return[tG(t),uG(t),dG(t),fG(t),mG(t),cG(t),eG(t)]},Y_,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function gG(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function pG(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 bu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},gG(e,r,t)),pG(n,r,t))}}function hG(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function yG(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function bG(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hG(e,t)),yG(e.componentCls,t))}}const CG=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ae(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ae(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},SG=Rh(["Button","compact"],e=>{const t=q_(e);return[bu(t),bG(t),CG(t)]},Y_);var xG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:a,type:i,danger:l,shape:s="default",size:u,styles:d,disabled:f,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:y=!1,htmlType:b="button",classNames:C,style:S={}}=e,$=xG(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=i||"default",{getPrefixCls:w,autoInsertSpaceInButton:O,direction:E,button:P}=c.useContext(at),M=w("btn",a),[D,R,_]=vG(M),T=c.useContext(Kr),k=f??T,N=c.useContext(K_),j=c.useMemo(()=>wG(o),[o]),[A,B]=c.useState(j.loading),[z,H]=c.useState(!1),U=Er(t,c.createRef()),K=c.Children.count(g)===1&&!v&&!Hy(x);c.useEffect(()=>{let ye=null;j.delay>0?ye=setTimeout(()=>{ye=null,B(!0)},j.delay):B(j.loading);function ge(){ye&&(clearTimeout(ye),ye=null)}return ge},[j]),c.useEffect(()=>{if(!U||!U.current||O===!1)return;const ye=U.current.textContent;K&&fC(ye)?z||H(!0):z&&H(!1)},[U]);const Y=ye=>{const{onClick:ge}=e;if(A||k){ye.preventDefault();return}ge==null||ge(ye)},G=O!==!1,{compactSize:q,compactItemClassnames:J}=Va(M,E),Q={large:"lg",small:"sm",middle:void 0},ne=nr(ye=>{var ge,ve;return(ve=(ge=u??q)!==null&&ge!==void 0?ge:N)!==null&&ve!==void 0?ve:ye}),re=ne&&Q[ne]||"",oe=A?"loading":v,te=gn($,["navigate"]),ee=Z(M,R,_,{[`${M}-${s}`]:s!=="default"&&s,[`${M}-${x}`]:x,[`${M}-${re}`]:re,[`${M}-icon-only`]:!g&&g!==0&&!!oe,[`${M}-background-ghost`]:p&&!Hy(x),[`${M}-loading`]:A,[`${M}-two-chinese-chars`]:z&&G&&!A,[`${M}-block`]:y,[`${M}-dangerous`]:!!l,[`${M}-rtl`]:E==="rtl"},J,m,h,P==null?void 0:P.className),ie=Object.assign(Object.assign({},P==null?void 0:P.style),S),de=Z(C==null?void 0:C.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),he=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=P==null?void 0:P.styles)===null||r===void 0?void 0:r.icon)||{}),fe=v&&!A?W.createElement(G_,{prefixCls:M,className:de,style:he},v):W.createElement(ZU,{existIcon:!!v,prefixCls:M,loading:!!A}),le=g||g===0?YU(g,K&&G):null;if(te.href!==void 0)return D(W.createElement("a",Object.assign({},te,{className:Z(ee,{[`${M}-disabled`]:k}),href:k?void 0:te.href,style:ie,onClick:Y,ref:U,tabIndex:k?-1:0}),fe,le));let me=W.createElement("button",Object.assign({},$,{type:b,className:ee,style:ie,onClick:Y,disabled:k,ref:U}),fe,le,!!J&&W.createElement(SG,{key:"compact",prefixCls:M}));return Hy(x)||(me=W.createElement(Fh,{component:"Button",disabled:!!A},me)),D(me)},o2=c.forwardRef($G);o2.Group=GU;o2.__ANT_BUTTON=!0;const Nr=o2;function oP(e){return!!(e&&e.then)}const EG=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[h,g]=rl(!1),v=function(){a==null||a.apply(void 0,arguments)};c.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus()})),()=>{b&&clearTimeout(b)}},[]);const p=b=>{oP(b)&&(g(!0),b.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},C=>{if(g(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(C)}))},y=b=>{if(f.current)return;if(f.current=!0,!d){v();return}let C;if(l){if(C=d(b),u&&!oP(C)){f.current=!1,v(b);return}}else if(d.length)C=d(a),f.current=!1;else if(C=d(),!C){v();return}p(C)};return c.createElement(Nr,Object.assign({},U_(t),{onClick:y,loading:h,prefixCls:r},o,{ref:m}),n)},Z_=EG,um=W.createContext({}),{Provider:J_}=um,PG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=c.useContext(um);return o?W.createElement(Z_,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},aP=PG,OG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=c.useContext(um);return W.createElement(Z_,{isSilent:n,type:i||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)},iP=OG;var eT=c.createContext(null),lP=[];function IG(e,t){var n=c.useState(function(){if(!_r())return null;var g=document.createElement("div");return g}),r=X(n,1),o=r[0],a=c.useRef(!1),i=c.useContext(eT),l=c.useState(lP),s=X(l,2),u=s[0],d=s[1],f=i||(a.current?void 0:function(g){d(function(v){var p=[g].concat(Te(v));return p})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Kt(function(){return e?i?i(m):m():h(),h},[e]),Kt(function(){u.length&&(u.forEach(function(g){return g()}),d(lP))},[u]),[o,f]}function MG(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";fi(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` -}`),t)}catch(g){console.error(g),o=s,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vc(t),{width:m,height:h}}function fU(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:dU(e)}function mU(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vU="rc-util-locker-".concat(Date.now()),V4=0;function gU(e){var t=!!e,n=c.useState(function(){return V4+=1,"".concat(vU,"_").concat(V4)}),r=X(n,1),o=r[0];Kt(function(){if(t){var a=fU(document.body).width,i=mU();fi(` +}`),t)}catch(g){console.error(g),o=s,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Wc(t),{width:m,height:h}}function RG(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:MG(e)}function _G(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var TG="rc-util-locker-".concat(Date.now()),sP=0;function NG(e){var t=!!e,n=c.useState(function(){return sP+=1,"".concat(TG,"_").concat(sP)}),r=X(n,1),o=r[0];Kt(function(){if(t){var a=RG(document.body).width,i=_G();fi(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",` -}`),o)}else Vc(o);return function(){Vc(o)}},[t,o])}var W4=!1;function pU(e){return typeof e=="boolean"&&(W4=e),W4}var K4=function(t){return t===!1?!1:!_r()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},cm=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=c.useState(n),u=X(s,2),d=u[0],f=u[1],m=d||n;c.useEffect(function(){(i||n)&&f(n)},[n,i]);var h=c.useState(function(){return K4(o)}),g=X(h,2),v=g[0],p=g[1];c.useEffect(function(){var M=K4(o);p(M??null)});var y=uU(m&&!v),b=X(y,2),C=b[0],S=b[1],$=v??C;gU(r&&n&&_r()&&($===C||$===document.body));var x=null;if(l&&Ci(l)&&t){var w=l;x=w.ref}var O=za(x,t);if(!m||!_r()||v===void 0)return null;var E=$===!1||pU(),P=l;return t&&(P=c.cloneElement(l,{ref:O})),c.createElement(D_.Provider,{value:S},E?P:ja.createPortal(P,$))}),F_=c.createContext({});function hU(){var e=I({},Qf);return e.useId}var U4=0,G4=hU();const k_=G4?function(t){var n=G4();return t||n}:function(t){var n=c.useState("ssr-id"),r=X(n,2),o=r[0],a=r[1];return c.useEffect(function(){var i=U4;U4+=1,a("rc_unique_".concat(i))},[]),t||o};function q4(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Y4(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function yU(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Y4(o),n.top+=Y4(o,!0),n}const bU=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var X4={width:0,height:0,overflow:"hidden",outline:"none"},CU={outline:"none"},SU=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,h=e.bodyProps,g=e.modalRender,v=e.onMouseDown,p=e.onMouseUp,y=e.holderRef,b=e.visible,C=e.forceRender,S=e.width,$=e.height,x=e.classNames,w=e.styles,O=W.useContext(F_),E=O.panel,P=za(y,E),M=c.useRef(),D=c.useRef(),R=c.useRef();W.useImperativeHandle(t,function(){return{focus:function(){var H;(H=R.current)===null||H===void 0||H.focus()},changeActive:function(H){var V=document,U=V.activeElement;H&&U===D.current?M.current.focus():!H&&U===M.current&&D.current.focus()}}});var _={};S!==void 0&&(_.width=S),$!==void 0&&(_.height=$);var T;l&&(T=W.createElement("div",{className:Z("".concat(n,"-footer"),x==null?void 0:x.footer),style:I({},w==null?void 0:w.footer)},l));var k;a&&(k=W.createElement("div",{className:Z("".concat(n,"-header"),x==null?void 0:x.header),style:I({},w==null?void 0:w.header)},W.createElement("div",{className:"".concat(n,"-title"),id:i},a)));var N=c.useMemo(function(){return et(s)==="object"&&s!==null?s:s?{closeIcon:u??W.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,u]),j=Qn(N,!0),A;s&&(A=W.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},j,{className:"".concat(n,"-close")}),N.closeIcon));var B=W.createElement("div",{className:Z("".concat(n,"-content"),x==null?void 0:x.content),style:w==null?void 0:w.content},A,k,W.createElement("div",be({className:Z("".concat(n,"-body"),x==null?void 0:x.body),style:I(I({},m),w==null?void 0:w.body)},h),f),T);return W.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:P,style:I(I({},o),_),className:Z(n,r),onMouseDown:v,onMouseUp:p},W.createElement("div",{tabIndex:0,ref:M,style:X4,"aria-hidden":"true"}),W.createElement("div",{ref:R,tabIndex:-1,style:CU},W.createElement(bU,{shouldUpdate:b||C},g?g(B):B)),W.createElement("div",{tabIndex:0,ref:D,style:X4,"aria-hidden":"true"}))}),L_=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,s=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,h=c.useRef(),g=c.useState(),v=X(g,2),p=v[0],y=v[1],b={};p&&(b.transformOrigin=p);function C(){var S=yU(h.current);y(m?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return c.createElement(wr,{visible:i,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:l,motionName:u,removeOnLeave:s,ref:h},function(S,$){var x=S.className,w=S.style;return c.createElement(SU,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:I(I(I({},w),o),b),className:Z(a,x)}))})});L_.displayName="Content";function xU(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return c.createElement(wr,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(l,s){var u=l.className,d=l.style;return c.createElement("div",be({ref:s,style:I(I({},d),n),className:Z("".concat(t,"-mask"),u,i)},o))})}function wU(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,a=o===void 0?!1:o,i=e.keyboard,l=i===void 0?!0:i,s=e.focusTriggerAfterClose,u=s===void 0?!0:s,d=e.wrapStyle,f=e.wrapClassName,m=e.wrapProps,h=e.onClose,g=e.afterOpenChange,v=e.afterClose,p=e.transitionName,y=e.animation,b=e.closable,C=b===void 0?!0:b,S=e.mask,$=S===void 0?!0:S,x=e.maskTransitionName,w=e.maskAnimation,O=e.maskClosable,E=O===void 0?!0:O,P=e.maskStyle,M=e.maskProps,D=e.rootClassName,R=e.classNames,_=e.styles,T=c.useRef(),k=c.useRef(),N=c.useRef(),j=c.useState(a),A=X(j,2),B=A[0],z=A[1],H=k_();function V(){B1(k.current,document.activeElement)||(T.current=document.activeElement)}function U(){if(!B1(k.current,document.activeElement)){var oe;(oe=N.current)===null||oe===void 0||oe.focus()}}function K(oe){if(oe)U();else{if(z(!1),$&&T.current&&u){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}B&&(v==null||v())}g==null||g(oe)}function Y(oe){h==null||h(oe)}var G=c.useRef(!1),q=c.useRef(),J=function(){clearTimeout(q.current),G.current=!0},Q=function(){q.current=setTimeout(function(){G.current=!1})},ne=null;E&&(ne=function(te){G.current?G.current=!1:k.current===te.target&&Y(te)});function re(oe){if(l&&oe.keyCode===Ie.ESC){oe.stopPropagation(),Y(oe);return}a&&oe.keyCode===Ie.TAB&&N.current.changeActive(!oe.shiftKey)}return c.useEffect(function(){a&&(z(!0),V())},[a]),c.useEffect(function(){return function(){clearTimeout(q.current)}},[]),c.createElement("div",be({className:Z("".concat(n,"-root"),D)},Qn(e,{data:!0})),c.createElement(xU,{prefixCls:n,visible:$&&a,motionName:q4(n,x,w),style:I(I({zIndex:r},P),_==null?void 0:_.mask),maskProps:M,className:R==null?void 0:R.mask}),c.createElement("div",be({tabIndex:-1,onKeyDown:re,className:Z("".concat(n,"-wrap"),f,R==null?void 0:R.wrapper),ref:k,onClick:ne,style:I(I(I({zIndex:r},d),_==null?void 0:_.wrapper),{},{display:B?null:"none"})},m),c.createElement(L_,be({},e,{onMouseDown:J,onMouseUp:Q,ref:N,closable:C,ariaId:H,prefixCls:n,visible:a&&B,onClose:Y,onVisibleChanged:K,motionName:q4(n,p,y)}))))}var r2=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,l=t.afterClose,s=t.panelRef,u=c.useState(n),d=X(u,2),f=d[0],m=d[1],h=c.useMemo(function(){return{panel:s}},[s]);return c.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:c.createElement(F_.Provider,{value:h},c.createElement(cm,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},c.createElement(wU,be({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1)}}))))};r2.displayName="Dialog";var $U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o_r()&&window.document.documentElement;var Vl="RC_FORM_INTERNAL_HOOKS",xn=function(){cn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ul=c.createContext({getFieldValue:xn,getFieldsValue:xn,getFieldError:xn,getFieldWarning:xn,getFieldsError:xn,isFieldsTouched:xn,isFieldTouched:xn,isFieldValidating:xn,isFieldsValidating:xn,resetFields:xn,setFields:xn,setFieldValue:xn,setFieldsValue:xn,validateFields:xn,submit:xn,getInternalHooks:function(){return xn(),{dispatch:xn,initEntityValue:xn,registerField:xn,useSubscribe:xn,setInitialValues:xn,destroyForm:xn,setCallbacks:xn,registerWatch:xn,getFields:xn,setValidateMessages:xn,setPreserve:xn,getInitialValue:xn}}}),Of=c.createContext(null);function cC(e){return e==null?[]:Array.isArray(e)?e:[e]}function OU(e){return e&&!!e._init}function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ag(e,t,n){return MU()?ag=Reflect.construct.bind():ag=function(o,a,i){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),u=new s;return i&&If(u,i.prototype),u},ag.apply(null,arguments)}function RU(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dC(e){var t=typeof Map=="function"?new Map:void 0;return dC=function(r){if(r===null||!RU(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ag(r,arguments,uC(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),If(o,r)},dC(e)}var _U=/%[sdj%]/g,TU=function(){};function fC(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function NU(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||NU(t)&&typeof e=="string"&&!e)}function jU(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Q4(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l_r()&&window.document.documentElement;var Kl="RC_FORM_INTERNAL_HOOKS",xn=function(){cn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ul=c.createContext({getFieldValue:xn,getFieldsValue:xn,getFieldError:xn,getFieldWarning:xn,getFieldsError:xn,isFieldsTouched:xn,isFieldTouched:xn,isFieldValidating:xn,isFieldsValidating:xn,resetFields:xn,setFields:xn,setFieldValue:xn,setFieldsValue:xn,validateFields:xn,submit:xn,getInternalHooks:function(){return xn(),{dispatch:xn,initEntityValue:xn,registerField:xn,useSubscribe:xn,setInitialValues:xn,destroyForm:xn,setCallbacks:xn,registerWatch:xn,getFields:xn,setValidateMessages:xn,setPreserve:xn,getInitialValue:xn}}}),Mf=c.createContext(null);function mC(e){return e==null?[]:Array.isArray(e)?e:[e]}function KG(e){return e&&!!e._init}function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ag(e,t,n){return GG()?ag=Reflect.construct.bind():ag=function(o,a,i){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),u=new s;return i&&Rf(u,i.prototype),u},ag.apply(null,arguments)}function qG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gC(e){var t=typeof Map=="function"?new Map:void 0;return gC=function(r){if(r===null||!qG(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ag(r,arguments,vC(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Rf(o,r)},gC(e)}var YG=/%[sdj%]/g,XG=function(){};function pC(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function QG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||QG(t)&&typeof e=="string"&&!e)}function ZG(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function pP(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pd={integer:function(t){return Pd.number(t)&&parseInt(t,10)===t},float:function(t){return Pd.number(t)&&!Pd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Pd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(tP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(BU())},hex:function(t){return typeof t=="string"&&!!t.match(tP.hex)}},zU=function(t,n,r,o,a){if(t.required&&n===void 0){B_(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Pd[l](n)||o.push(Co(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Co(a.messages.types[l],t.fullField,t.type))},HU=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(m?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),h&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Co(a.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(Co(a.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(Co(a.messages[f].range,t.fullField,t.min,t.max))},Ts="enum",VU=function(t,n,r,o,a){t[Ts]=Array.isArray(t[Ts])?t[Ts]:[],t[Ts].indexOf(n)===-1&&o.push(Co(a.messages[Ts],t.fullField,t[Ts].join(", ")))},WU=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},nn={required:B_,whitespace:AU,type:zU,range:HU,enum:VU,pattern:WU},KU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"string")&&!t.required)return r();nn.required(t,n,o,i,a,"string"),hr(n,"string")||(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a),nn.pattern(t,n,o,i,a),t.whitespace===!0&&nn.whitespace(t,n,o,i,a))}r(i)},UU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},GU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},qU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},YU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),hr(n)||nn.type(t,n,o,i,a)}r(i)},XU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},QU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},ZU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();nn.required(t,n,o,i,a,"array"),n!=null&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},JU=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},eG="enum",tG=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn[eG](t,n,o,i,a)}r(i)},nG=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"string")&&!t.required)return r();nn.required(t,n,o,i,a),hr(n,"string")||nn.pattern(t,n,o,i,a)}r(i)},rG=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"date")&&!t.required)return r();if(nn.required(t,n,o,i,a),!hr(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),nn.type(t,s,o,i,a),s&&nn.range(t,s.getTime(),o,i,a)}}r(i)},oG=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;nn.required(t,n,o,i,a,l),r(i)},Hy=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(hr(n,i)&&!t.required)return r();nn.required(t,n,o,l,a,i),hr(n,i)||nn.type(t,n,o,l,a)}r(l)},aG=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a)}r(i)},Gd={string:KU,method:UU,number:GU,boolean:qU,regexp:YU,integer:XU,float:QU,array:ZU,object:JU,enum:tG,pattern:nG,date:rG,url:Hy,hex:Hy,email:Hy,required:oG,any:aG};function mC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vC=mC(),um=function(){function e(n){this.rules=null,this._messages=vC,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=eP(mC(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,s=o,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(v){var p=[],y={};function b(S){if(Array.isArray(S)){var $;p=($=p).concat.apply($,S)}else p.push(S)}for(var C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return H_(t,r,n)})}function H_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function uG(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||et(e)!=="object"||et(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Te(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function dG(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&et(t.target)==="object"&&e in t.target?t.target[e]:t}function aP(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Te(e.slice(0,n)),[o],Te(e.slice(n,t)),Te(e.slice(t+1,r))):a<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[o],Te(e.slice(n+1,r))):e}var fG=["name"],Io=[];function iP(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var o2=function(e){Ko(n,e);var t=Si(n);function n(r){var o;if(Dn(this,n),o=t.call(this,r),L(Ye(o),"state",{resetCount:0}),L(Ye(o),"cancelRegisterFunc",null),L(Ye(o),"mounted",!1),L(Ye(o),"touched",!1),L(Ye(o),"dirty",!1),L(Ye(o),"validatePromise",void 0),L(Ye(o),"prevValidating",void 0),L(Ye(o),"errors",Io),L(Ye(o),"warnings",Io),L(Ye(o),"cancelRegister",function(){var s=o.props,u=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Zn(f)),o.cancelRegisterFunc=null}),L(Ye(o),"getNamePath",function(){var s=o.props,u=s.name,d=s.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(Te(m),Te(u)):[]}),L(Ye(o),"getRules",function(){var s=o.props,u=s.rules,d=u===void 0?[]:u,f=s.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),L(Ye(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),L(Ye(o),"metaCache",null),L(Ye(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var d=I(I({},o.getMeta()),{},{destroy:s});fu(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),L(Ye(o),"onStoreChange",function(s,u,d){var f=o.props,m=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,v=f.onReset,p=d.store,y=o.getNamePath(),b=o.getValue(s),C=o.getValue(p),S=u&&Pc(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&b!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Io,o.warnings=Io,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=d.data;if(S){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Io),"warnings"in $&&(o.warnings=$.warnings||Io),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Pc(u,y,!0)){o.reRender();return}if(m&&!y.length&&iP(m,s,p,b,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=g.map(Zn);if(x.some(function(w){return Pc(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!g.length||y.length||m)&&iP(m,s,p,b,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),L(Ye(o),"validateRules",function(s){var u=o.getNamePath(),d=o.getValue(),f=s||{},m=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Tr(an().mark(function p(){var y,b,C,S,$,x,w;return an().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(y=o.props,b=y.validateFirst,C=b===void 0?!1:b,S=y.messageVariables,$=y.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var D=cC(M);return D.includes(m)})),!($&&m)){E.next=10;break}return E.next=8,new Promise(function(P){setTimeout(P,$)});case 8:if(o.validatePromise===v){E.next=10;break}return E.abrupt("return",[]);case 10:return w=lG(u,d,x,s,C,S),w.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Io;if(o.validatePromise===v){var M;o.validatePromise=null;var D=[],R=[];(M=P.forEach)===null||M===void 0||M.call(P,function(_){var T=_.rule.warningOnly,k=_.errors,N=k===void 0?Io:k;T?R.push.apply(R,Te(N)):D.push.apply(D,Te(N))}),o.errors=D,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",w);case 13:case"end":return E.stop()}},p)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),o.reRender()),v}),L(Ye(o),"isFieldValidating",function(){return!!o.validatePromise}),L(Ye(o),"isFieldTouched",function(){return o.touched}),L(Ye(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(Vl),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),L(Ye(o),"getErrors",function(){return o.errors}),L(Ye(o),"getWarnings",function(){return o.warnings}),L(Ye(o),"isListField",function(){return o.props.isListField}),L(Ye(o),"isList",function(){return o.props.isList}),L(Ye(o),"isPreserve",function(){return o.props.preserve}),L(Ye(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),L(Ye(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return I(I({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=sr(s);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ye(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Or(s||u(!0),d)}),L(Ye(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,h=u.normalize,g=u.valuePropName,v=u.getValueProps,p=u.fieldContext,y=f!==void 0?f:p.validateTrigger,b=o.getNamePath(),C=p.getInternalHooks,S=p.getFieldsValue,$=C(Vl),x=$.dispatch,w=o.getValue(),O=v||function(R){return L({},g,R)},E=s[d],P=O(w),M=I(I({},s),P);M[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,_=arguments.length,T=new Array(_),k=0;k<_;k++)T[k]=arguments[k];m?R=m.apply(void 0,T):R=dG.apply(void 0,[g].concat(T)),h&&(R=h(R,w,S(!0))),x({type:"updateValue",namePath:b,value:R}),E&&E.apply(void 0,T)};var D=cC(y||[]);return D.forEach(function(R){var _=M[R];M[R]=function(){_&&_.apply(void 0,arguments);var T=o.props.rules;T&&T.length&&x({type:"validateField",namePath:b,triggerName:R})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Vl),l=i.initEntityValue;l(Ye(o))}return o}return Fn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(Vl),u=s.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.isFunction,u;return s?u=l:c.isValidElement(l)?u=c.cloneElement(l,this.getControlled(l.props)):(cn(!l,"`children` of Field is not validate ReactElement."),u=l),c.createElement(c.Fragment,{key:o},u)}}]),n}(c.Component);L(o2,"contextType",ul);L(o2,"defaultProps",{trigger:"onChange",valuePropName:"value"});function a2(e){var t=e.name,n=ze(e,fG),r=c.useContext(ul),o=c.useContext(Of),a=t!==void 0?Zn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),c.createElement(o2,be({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function V_(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=c.useContext(ul),s=c.useContext(Of),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var v=Zn(l.prefixName)||[];return[].concat(Te(v),Te(Zn(t)))},[l.prefixName,t]),m=c.useMemo(function(){return I(I({},l),{},{prefixName:f})},[l,f]),h=c.useMemo(function(){return{getKey:function(p){var y=f.length,b=p[y];return[d.keys[b],p.slice(y+1)]}}},[f]);if(typeof r!="function")return cn(!1,"Form.List only accepts function as children."),null;var g=function(p,y,b){var C=b.source;return C==="internal"?!1:p!==y};return c.createElement(Of.Provider,{value:h},c.createElement(ul.Provider,{value:m},c.createElement(a2,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(v,p){var y=v.value,b=y===void 0?[]:y,C=v.onChange,S=l.getFieldValue,$=function(){var E=S(f||[]);return E||[]},x={add:function(E,P){var M=$();P>=0&&P<=M.length?(d.keys=[].concat(Te(d.keys.slice(0,P)),[d.id],Te(d.keys.slice(P))),C([].concat(Te(M.slice(0,P)),[E],Te(M.slice(P))))):(d.keys=[].concat(Te(d.keys),[d.id]),C([].concat(Te(M),[E]))),d.id+=1},remove:function(E){var P=$(),M=new Set(Array.isArray(E)?E:[E]);M.size<=0||(d.keys=d.keys.filter(function(D,R){return!M.has(R)}),C(P.filter(function(D,R){return!M.has(R)})))},move:function(E,P){if(E!==P){var M=$();E<0||E>=M.length||P<0||P>=M.length||(d.keys=aP(d.keys,E,P),C(aP(M,E,P)))}}},w=b||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,E){var P=d.keys[E];return P===void 0&&(d.keys[E]=d.id,P=d.keys[E],d.id+=1),{name:E,key:P,isListField:!0}}),x,p)})))}function mG(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var W_="__@field_split__";function Vy(e){return e.map(function(t){return"".concat(et(t),":").concat(t)}).join(W_)}var Ns=function(){function e(){Dn(this,e),L(this,"kvs",new Map)}return Fn(e,[{key:"set",value:function(n,r){this.kvs.set(Vy(n),r)}},{key:"get",value:function(n){return this.kvs.get(Vy(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Vy(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var o=X(r,2),a=o[0],i=o[1],l=a.split(W_);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),d=X(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),vG=["name"],gG=Fn(function e(t){var n=this;Dn(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),L(this,"getInternalHooks",function(r){return r===Vl?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(cn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(r){n.subscribable=r}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=cc(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=or(i,s,Or(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),L(this,"destroyForm",function(){var r=new Ns;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),L(this,"getInitialValue",function(r){var o=Or(n.initialValues,r);return r.length?cc(o):o}),L(this,"setCallbacks",function(r){n.callbacks=r}),L(this,"setValidateMessages",function(r){n.validateMessages=r}),L(this,"setPreserve",function(r){n.preserve=r}),L(this,"watchList",[]),L(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),L(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){}),L(this,"updateStore",function(r){n.store=r}),L(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),L(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ns;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Zn(a);return o.get(i)||{INVALIDATE_NAME_PATH:Zn(a)}})}),L(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&et(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return s.forEach(function(d){var f,m,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,v;if((g=(v=d).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(h);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(h)}}),oP(n.store,u.map(Zn))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var o=Zn(r);return Or(n.store,o)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Zn(r[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var o=Zn(r),a=n.getFieldsError([o])[0];return a.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Zn(r),a=n.getFieldsError([o])[0];return a.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new Ns,a=n.getFieldEntities(!0);a.forEach(function(s){var u=s.props.initialValue,d=s.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),h=n.getInitialValue(m);if(h!==void 0)cn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)cn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(or(n.store,m,Te(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var d;(d=l).push.apply(d,Te(Te(u).map(function(f){return f.entity})))}})):l=a,i(l)}),L(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(cc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Zn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(or(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),L(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=ze(i,vG),u=Zn(l);a.push(u),"value"in s&&n.updateStore(or(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=I(I({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),L(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Or(n.store,a);i===void 0&&n.updateStore(or(n.store,a,o))}}),L(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),L(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!H_(f.getNamePath(),o)})){var d=n.store;n.updateStore(or(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),L(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),L(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=I(I({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Te(a))}),a}),L(this,"updateValue",function(r,o){var a=Zn(r),i=n.store;n.updateStore(or(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var u=oP(n.store,[a]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Te(l)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=cc(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),L(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),L(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Ns;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(d){var f=Zn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(s),m})})});var l=function s(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),s(m))}})};return l(r),a}),L(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new Ns;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=i.filter(function(u){var d=u.name;return Pc(r,d)});s.length&&a(s,i)}}),L(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(Zn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},h=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(b){if(l||s.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(g&&!b.isFieldDirty())){var C=b.getNamePath();if(f.add(C.join(d)),!l||Pc(s,C,h)){var S=b.validateRules(I({validateMessages:I(I({},z_),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function($){var x,w=[],O=[];return(x=$.forEach)===null||x===void 0||x.call($,function(E){var P=E.rule.warningOnly,M=E.errors;P?O.push.apply(O,Te(M)):w.push.apply(w,Te(M))}),w.length?Promise.reject({name:C,errors:w,warnings:O}):{name:C,errors:w,warnings:O}}))}}});var v=mG(u);n.lastValidatePromise=v,v.catch(function(b){return b}).then(function(b){var C=b.map(function(S){var $=S.name;return $});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,b)});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(b){var C=b.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(b){return b});var y=s.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(y),p}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function i2(e){var t=c.useRef(),n=c.useState({}),r=X(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new gG(a);t.current=i.getForm()}return[t.current]}var bC=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),K_=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=c.useContext(bC),l=c.useRef({});return c.createElement(bC.Provider,{value:I(I({},i),{},{validateMessages:I(I({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=I(I({},l.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=I({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},a)},pG=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],hG=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,g=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,y=t.onFinishFailed,b=ze(t,pG),C=c.useContext(bC),S=i2(i),$=X(S,1),x=$[0],w=x.getInternalHooks(Vl),O=w.useSubscribe,E=w.setInitialValues,P=w.setCallbacks,M=w.setValidateMessages,D=w.setPreserve,R=w.destroyForm;c.useImperativeHandle(n,function(){return x}),c.useEffect(function(){return C.registerForm(r,x),function(){C.unregisterForm(r)}},[C,x,r]),M(I(I({},C.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(H){if(C.triggerFormChange(r,H),v){for(var V=arguments.length,U=new Array(V>1?V-1:0),K=1;K{}}),G_=c.createContext(null),q_=e=>{const t=gn(e,["prefixCls"]);return c.createElement(K_,Object.assign({},t))},l2=c.createContext({prefixCls:""}),yr=c.createContext({}),us=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(yr),a=c.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return c.createElement(yr.Provider,{value:a},t)},Y_=c.createContext(void 0);function sP(){}const bG=c.createContext({add:sP,remove:sP});function X_(e){const t=c.useContext(bG),n=c.useRef();return qt(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const CG=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(sm);return W.createElement(Nr,Object.assign({onClick:n},e),t)},cP=CG,SG=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(sm);return W.createElement(Nr,Object.assign({},O_(n),{loading:e,onClick:o},t),r)},uP=SG;function xG(e,t){return W.createElement("span",{className:`${e}-close-x`},t||W.createElement(xa,{className:`${e}-close-icon`}))}const wG=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:u}=e,[d]=xi("Modal",Bz()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),h={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},g=W.useMemo(()=>h,Te(Object.values(h)));let v;return typeof u=="function"||typeof u>"u"?(v=W.createElement(W.Fragment,null,W.createElement(cP,null),W.createElement(uP,null)),typeof u=="function"&&(v=u(v,{OkBtn:uP,CancelBtn:cP})),v=W.createElement(j_,{value:g},v)):v=u,W.createElement(Gx,{disabled:!1},v)},$G=e=>({animationDuration:e,animationFillMode:"both"}),EG=e=>({animationDuration:e,animationFillMode:"both"}),Nh=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(S){return S&&S.exact?a:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+o+t(S)+")","g")};s.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},s.v6=function(C){return C&&C.exact?l:new RegExp(""+t(C)+o+t(C),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=s.v4().source,m=s.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+m+"|"+h+g+v+")"+p+y;return wv=new RegExp("(?:^"+b+"$)","i"),wv},CP={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pd={integer:function(t){return Pd.number(t)&&parseInt(t,10)===t},float:function(t){return Pd.number(t)&&!Pd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Pd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(CP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(oq())},hex:function(t){return typeof t=="string"&&!!t.match(CP.hex)}},aq=function(t,n,r,o,a){if(t.required&&n===void 0){aT(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Pd[l](n)||o.push(Co(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Co(a.messages.types[l],t.fullField,t.type))},iq=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(m?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),h&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Co(a.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(Co(a.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(Co(a.messages[f].range,t.fullField,t.min,t.max))},Ts="enum",lq=function(t,n,r,o,a){t[Ts]=Array.isArray(t[Ts])?t[Ts]:[],t[Ts].indexOf(n)===-1&&o.push(Co(a.messages[Ts],t.fullField,t[Ts].join(", ")))},sq=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},nn={required:aT,whitespace:rq,type:aq,range:iq,enum:lq,pattern:sq},cq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"string")&&!t.required)return r();nn.required(t,n,o,i,a,"string"),hr(n,"string")||(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a),nn.pattern(t,n,o,i,a),t.whitespace===!0&&nn.whitespace(t,n,o,i,a))}r(i)},uq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},dq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},fq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},mq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),hr(n)||nn.type(t,n,o,i,a)}r(i)},vq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},gq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},pq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();nn.required(t,n,o,i,a,"array"),n!=null&&(nn.type(t,n,o,i,a),nn.range(t,n,o,i,a))}r(i)},hq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn.type(t,n,o,i,a)}r(i)},yq="enum",bq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a),n!==void 0&&nn[yq](t,n,o,i,a)}r(i)},Cq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"string")&&!t.required)return r();nn.required(t,n,o,i,a),hr(n,"string")||nn.pattern(t,n,o,i,a)}r(i)},Sq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n,"date")&&!t.required)return r();if(nn.required(t,n,o,i,a),!hr(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),nn.type(t,s,o,i,a),s&&nn.range(t,s.getTime(),o,i,a)}}r(i)},xq=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;nn.required(t,n,o,i,a,l),r(i)},Ky=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(hr(n,i)&&!t.required)return r();nn.required(t,n,o,l,a,i),hr(n,i)||nn.type(t,n,o,l,a)}r(l)},wq=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(hr(n)&&!t.required)return r();nn.required(t,n,o,i,a)}r(i)},qd={string:cq,method:uq,number:dq,boolean:fq,regexp:mq,integer:vq,float:gq,array:pq,object:hq,enum:bq,pattern:Cq,date:Sq,url:Ky,hex:Ky,email:Ky,required:xq,any:wq};function hC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var yC=hC(),fm=function(){function e(n){this.rules=null,this._messages=yC,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=bP(hC(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,s=o,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(v){var p=[],y={};function b(S){if(Array.isArray(S)){var $;p=($=p).concat.apply($,S)}else p.push(S)}for(var C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lT(t,r,n)})}function lT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function Iq(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||et(e)!=="object"||et(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Te(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Mq(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&et(t.target)==="object"&&e in t.target?t.target[e]:t}function $P(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Te(e.slice(0,n)),[o],Te(e.slice(n,t)),Te(e.slice(t+1,r))):a<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[o],Te(e.slice(n+1,r))):e}var Rq=["name"],Io=[];function EP(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var i2=function(e){Ko(n,e);var t=xi(n);function n(r){var o;if(Dn(this,n),o=t.call(this,r),L(Ye(o),"state",{resetCount:0}),L(Ye(o),"cancelRegisterFunc",null),L(Ye(o),"mounted",!1),L(Ye(o),"touched",!1),L(Ye(o),"dirty",!1),L(Ye(o),"validatePromise",void 0),L(Ye(o),"prevValidating",void 0),L(Ye(o),"errors",Io),L(Ye(o),"warnings",Io),L(Ye(o),"cancelRegister",function(){var s=o.props,u=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Zn(f)),o.cancelRegisterFunc=null}),L(Ye(o),"getNamePath",function(){var s=o.props,u=s.name,d=s.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(Te(m),Te(u)):[]}),L(Ye(o),"getRules",function(){var s=o.props,u=s.rules,d=u===void 0?[]:u,f=s.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),L(Ye(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),L(Ye(o),"metaCache",null),L(Ye(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var d=I(I({},o.getMeta()),{},{destroy:s});mu(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),L(Ye(o),"onStoreChange",function(s,u,d){var f=o.props,m=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,v=f.onReset,p=d.store,y=o.getNamePath(),b=o.getValue(s),C=o.getValue(p),S=u&&Pc(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&b!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Io,o.warnings=Io,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=d.data;if(S){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Io),"warnings"in $&&(o.warnings=$.warnings||Io),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Pc(u,y,!0)){o.reRender();return}if(m&&!y.length&&EP(m,s,p,b,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=g.map(Zn);if(x.some(function(w){return Pc(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!g.length||y.length||m)&&EP(m,s,p,b,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),L(Ye(o),"validateRules",function(s){var u=o.getNamePath(),d=o.getValue(),f=s||{},m=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Tr(an().mark(function p(){var y,b,C,S,$,x,w;return an().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(y=o.props,b=y.validateFirst,C=b===void 0?!1:b,S=y.messageVariables,$=y.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var D=mC(M);return D.includes(m)})),!($&&m)){E.next=10;break}return E.next=8,new Promise(function(P){setTimeout(P,$)});case 8:if(o.validatePromise===v){E.next=10;break}return E.abrupt("return",[]);case 10:return w=Eq(u,d,x,s,C,S),w.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Io;if(o.validatePromise===v){var M;o.validatePromise=null;var D=[],R=[];(M=P.forEach)===null||M===void 0||M.call(P,function(_){var T=_.rule.warningOnly,k=_.errors,N=k===void 0?Io:k;T?R.push.apply(R,Te(N)):D.push.apply(D,Te(N))}),o.errors=D,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",w);case 13:case"end":return E.stop()}},p)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),o.reRender()),v}),L(Ye(o),"isFieldValidating",function(){return!!o.validatePromise}),L(Ye(o),"isFieldTouched",function(){return o.touched}),L(Ye(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(Kl),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),L(Ye(o),"getErrors",function(){return o.errors}),L(Ye(o),"getWarnings",function(){return o.warnings}),L(Ye(o),"isListField",function(){return o.props.isListField}),L(Ye(o),"isList",function(){return o.props.isList}),L(Ye(o),"isPreserve",function(){return o.props.preserve}),L(Ye(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),L(Ye(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return I(I({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=sr(s);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ye(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Or(s||u(!0),d)}),L(Ye(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,h=u.normalize,g=u.valuePropName,v=u.getValueProps,p=u.fieldContext,y=f!==void 0?f:p.validateTrigger,b=o.getNamePath(),C=p.getInternalHooks,S=p.getFieldsValue,$=C(Kl),x=$.dispatch,w=o.getValue(),O=v||function(R){return L({},g,R)},E=s[d],P=O(w),M=I(I({},s),P);M[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,_=arguments.length,T=new Array(_),k=0;k<_;k++)T[k]=arguments[k];m?R=m.apply(void 0,T):R=Mq.apply(void 0,[g].concat(T)),h&&(R=h(R,w,S(!0))),x({type:"updateValue",namePath:b,value:R}),E&&E.apply(void 0,T)};var D=mC(y||[]);return D.forEach(function(R){var _=M[R];M[R]=function(){_&&_.apply(void 0,arguments);var T=o.props.rules;T&&T.length&&x({type:"validateField",namePath:b,triggerName:R})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Kl),l=i.initEntityValue;l(Ye(o))}return o}return Fn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(Kl),u=s.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.isFunction,u;return s?u=l:c.isValidElement(l)?u=c.cloneElement(l,this.getControlled(l.props)):(cn(!l,"`children` of Field is not validate ReactElement."),u=l),c.createElement(c.Fragment,{key:o},u)}}]),n}(c.Component);L(i2,"contextType",ul);L(i2,"defaultProps",{trigger:"onChange",valuePropName:"value"});function l2(e){var t=e.name,n=ze(e,Rq),r=c.useContext(ul),o=c.useContext(Mf),a=t!==void 0?Zn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),c.createElement(i2,be({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function sT(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=c.useContext(ul),s=c.useContext(Mf),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var v=Zn(l.prefixName)||[];return[].concat(Te(v),Te(Zn(t)))},[l.prefixName,t]),m=c.useMemo(function(){return I(I({},l),{},{prefixName:f})},[l,f]),h=c.useMemo(function(){return{getKey:function(p){var y=f.length,b=p[y];return[d.keys[b],p.slice(y+1)]}}},[f]);if(typeof r!="function")return cn(!1,"Form.List only accepts function as children."),null;var g=function(p,y,b){var C=b.source;return C==="internal"?!1:p!==y};return c.createElement(Mf.Provider,{value:h},c.createElement(ul.Provider,{value:m},c.createElement(l2,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(v,p){var y=v.value,b=y===void 0?[]:y,C=v.onChange,S=l.getFieldValue,$=function(){var E=S(f||[]);return E||[]},x={add:function(E,P){var M=$();P>=0&&P<=M.length?(d.keys=[].concat(Te(d.keys.slice(0,P)),[d.id],Te(d.keys.slice(P))),C([].concat(Te(M.slice(0,P)),[E],Te(M.slice(P))))):(d.keys=[].concat(Te(d.keys),[d.id]),C([].concat(Te(M),[E]))),d.id+=1},remove:function(E){var P=$(),M=new Set(Array.isArray(E)?E:[E]);M.size<=0||(d.keys=d.keys.filter(function(D,R){return!M.has(R)}),C(P.filter(function(D,R){return!M.has(R)})))},move:function(E,P){if(E!==P){var M=$();E<0||E>=M.length||P<0||P>=M.length||(d.keys=$P(d.keys,E,P),C($P(M,E,P)))}}},w=b||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,E){var P=d.keys[E];return P===void 0&&(d.keys[E]=d.id,P=d.keys[E],d.id+=1),{name:E,key:P,isListField:!0}}),x,p)})))}function _q(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var cT="__@field_split__";function Uy(e){return e.map(function(t){return"".concat(et(t),":").concat(t)}).join(cT)}var Ns=function(){function e(){Dn(this,e),L(this,"kvs",new Map)}return Fn(e,[{key:"set",value:function(n,r){this.kvs.set(Uy(n),r)}},{key:"get",value:function(n){return this.kvs.get(Uy(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Uy(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var o=X(r,2),a=o[0],i=o[1],l=a.split(cT);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),d=X(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),Tq=["name"],Nq=Fn(function e(t){var n=this;Dn(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),L(this,"getInternalHooks",function(r){return r===Kl?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(cn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(r){n.subscribable=r}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=dc(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=or(i,s,Or(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),L(this,"destroyForm",function(){var r=new Ns;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),L(this,"getInitialValue",function(r){var o=Or(n.initialValues,r);return r.length?dc(o):o}),L(this,"setCallbacks",function(r){n.callbacks=r}),L(this,"setValidateMessages",function(r){n.validateMessages=r}),L(this,"setPreserve",function(r){n.preserve=r}),L(this,"watchList",[]),L(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),L(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){}),L(this,"updateStore",function(r){n.store=r}),L(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),L(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ns;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Zn(a);return o.get(i)||{INVALIDATE_NAME_PATH:Zn(a)}})}),L(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&et(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return s.forEach(function(d){var f,m,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,v;if((g=(v=d).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(h);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(h)}}),wP(n.store,u.map(Zn))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var o=Zn(r);return Or(n.store,o)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Zn(r[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var o=Zn(r),a=n.getFieldsError([o])[0];return a.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Zn(r),a=n.getFieldsError([o])[0];return a.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new Ns,a=n.getFieldEntities(!0);a.forEach(function(s){var u=s.props.initialValue,d=s.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),h=n.getInitialValue(m);if(h!==void 0)cn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)cn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(or(n.store,m,Te(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var d;(d=l).push.apply(d,Te(Te(u).map(function(f){return f.entity})))}})):l=a,i(l)}),L(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(dc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Zn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(or(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),L(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=ze(i,Tq),u=Zn(l);a.push(u),"value"in s&&n.updateStore(or(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=I(I({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),L(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Or(n.store,a);i===void 0&&n.updateStore(or(n.store,a,o))}}),L(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),L(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!lT(f.getNamePath(),o)})){var d=n.store;n.updateStore(or(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),L(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),L(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=I(I({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Te(a))}),a}),L(this,"updateValue",function(r,o){var a=Zn(r),i=n.store;n.updateStore(or(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var u=wP(n.store,[a]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Te(l)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=dc(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),L(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),L(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Ns;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(d){var f=Zn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(s),m})})});var l=function s(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),s(m))}})};return l(r),a}),L(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new Ns;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=i.filter(function(u){var d=u.name;return Pc(r,d)});s.length&&a(s,i)}}),L(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(Zn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},h=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(b){if(l||s.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(g&&!b.isFieldDirty())){var C=b.getNamePath();if(f.add(C.join(d)),!l||Pc(s,C,h)){var S=b.validateRules(I({validateMessages:I(I({},iT),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function($){var x,w=[],O=[];return(x=$.forEach)===null||x===void 0||x.call($,function(E){var P=E.rule.warningOnly,M=E.errors;P?O.push.apply(O,Te(M)):w.push.apply(w,Te(M))}),w.length?Promise.reject({name:C,errors:w,warnings:O}):{name:C,errors:w,warnings:O}}))}}});var v=_q(u);n.lastValidatePromise=v,v.catch(function(b){return b}).then(function(b){var C=b.map(function(S){var $=S.name;return $});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,b)});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(b){var C=b.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(b){return b});var y=s.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(y),p}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function s2(e){var t=c.useRef(),n=c.useState({}),r=X(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new Nq(a);t.current=i.getForm()}return[t.current]}var wC=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),uT=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=c.useContext(wC),l=c.useRef({});return c.createElement(wC.Provider,{value:I(I({},i),{},{validateMessages:I(I({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=I(I({},l.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=I({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},a)},jq=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Dq=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,g=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,y=t.onFinishFailed,b=ze(t,jq),C=c.useContext(wC),S=s2(i),$=X(S,1),x=$[0],w=x.getInternalHooks(Kl),O=w.useSubscribe,E=w.setInitialValues,P=w.setCallbacks,M=w.setValidateMessages,D=w.setPreserve,R=w.destroyForm;c.useImperativeHandle(n,function(){return x}),c.useEffect(function(){return C.registerForm(r,x),function(){C.unregisterForm(r)}},[C,x,r]),M(I(I({},C.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(H){if(C.triggerFormChange(r,H),v){for(var V=arguments.length,U=new Array(V>1?V-1:0),K=1;K{}}),fT=c.createContext(null),mT=e=>{const t=gn(e,["prefixCls"]);return c.createElement(uT,Object.assign({},t))},c2=c.createContext({prefixCls:""}),yr=c.createContext({}),us=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(yr),a=c.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return c.createElement(yr.Provider,{value:a},t)},vT=c.createContext(void 0);function OP(){}const kq=c.createContext({add:OP,remove:OP});function gT(e){const t=c.useContext(kq),n=c.useRef();return qt(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const Lq=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(um);return W.createElement(Nr,Object.assign({onClick:n},e),t)},IP=Lq,Aq=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(um);return W.createElement(Nr,Object.assign({},U_(n),{loading:e,onClick:o},t),r)},MP=Aq;function Bq(e,t){return W.createElement("span",{className:`${e}-close-x`},t||W.createElement(xa,{className:`${e}-close-icon`}))}const zq=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:u}=e,[d]=wi("Modal",oV()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),h={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},g=W.useMemo(()=>h,Te(Object.values(h)));let v;return typeof u=="function"||typeof u>"u"?(v=W.createElement(W.Fragment,null,W.createElement(IP,null),W.createElement(MP,null)),typeof u=="function"&&(v=u(v,{OkBtn:MP,CancelBtn:IP})),v=W.createElement(J_,{value:g},v)):v=u,W.createElement(Yx,{disabled:!1},v)},Hq=e=>({animationDuration:e,animationFillMode:"both"}),Vq=e=>({animationDuration:e,animationFillMode:"both"}),Lh=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear - `]:Object.assign(Object.assign({},$G(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},EG(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},Hq(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Vq(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},PG=new kt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),OG=new kt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Q_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Nh(r,PG,OG,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Wq=new kt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Kq=new kt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Lh(r,Wq,Kq,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},IG=new kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MG=new kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),RG=new kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_G=new kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),TG=new kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NG=new kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jG=new kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DG=new kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),FG={"move-up":{inKeyframes:jG,outKeyframes:DG},"move-down":{inKeyframes:IG,outKeyframes:MG},"move-left":{inKeyframes:RG,outKeyframes:_G},"move-right":{inKeyframes:TG,outKeyframes:NG}},qc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=FG[t];return[Nh(r,o,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Uq=new kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gq=new kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qq=new kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Yq=new kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xq=new kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Qq=new kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Zq=new kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jq=new kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),eY={"move-up":{inKeyframes:Zq,outKeyframes:Jq},"move-down":{inKeyframes:Uq,outKeyframes:Gq},"move-left":{inKeyframes:qq,outKeyframes:Yq},"move-right":{inKeyframes:Xq,outKeyframes:Qq}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=eY[t];return[Lh(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jh=new kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Dh=new kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fh=new kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),kh=new kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kG=new kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),LG=new kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),AG=new kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),BG=new kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),zG={"slide-up":{inKeyframes:jh,outKeyframes:Dh},"slide-down":{inKeyframes:Fh,outKeyframes:kh},"slide-left":{inKeyframes:kG,outKeyframes:LG},"slide-right":{inKeyframes:AG,outKeyframes:BG}},La=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=zG[t];return[Nh(r,o,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ah=new kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Bh=new kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zh=new kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hh=new kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tY=new kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nY=new kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),rY=new kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),oY=new kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),aY={"slide-up":{inKeyframes:Ah,outKeyframes:Bh},"slide-down":{inKeyframes:zh,outKeyframes:Hh},"slide-left":{inKeyframes:tY,outKeyframes:nY},"slide-right":{inKeyframes:rY,outKeyframes:oY}},La=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=aY[t];return[Lh(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},s2=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),HG=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),dP=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fP=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),VG=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),WG=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),KG=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),UG=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),GG=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),qG=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),YG=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),XG=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),QG={zoom:{inKeyframes:s2,outKeyframes:HG},"zoom-big":{inKeyframes:dP,outKeyframes:fP},"zoom-big-fast":{inKeyframes:dP,outKeyframes:fP},"zoom-left":{inKeyframes:KG,outKeyframes:UG},"zoom-right":{inKeyframes:GG,outKeyframes:qG},"zoom-up":{inKeyframes:VG,outKeyframes:WG},"zoom-down":{inKeyframes:YG,outKeyframes:XG}},Cu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=QG[t];return[Nh(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},u2=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iY=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),RP=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_P=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lY=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),sY=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cY=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),uY=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),dY=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fY=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mY=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),vY=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),gY={zoom:{inKeyframes:u2,outKeyframes:iY},"zoom-big":{inKeyframes:RP,outKeyframes:_P},"zoom-big-fast":{inKeyframes:RP,outKeyframes:_P},"zoom-left":{inKeyframes:cY,outKeyframes:uY},"zoom-right":{inKeyframes:dY,outKeyframes:fY},"zoom-up":{inKeyframes:lY,outKeyframes:sY},"zoom-down":{inKeyframes:mY,outKeyframes:vY}},Su=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=gY[t];return[Lh(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Lh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Vh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function mP(e){return{position:e,inset:0}}const Z_=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({},mP("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},mP("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Q_(e)}]},ZG=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}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Wt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,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.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${ae(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ha(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function TP(e){return{position:e,inset:0}}const hT=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({},TP("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},TP("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pT(e)}]},pY=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}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Wt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,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.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${ae(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ha(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},JG=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},J_=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return _t(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},eT=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),eq=Ht("Modal",e=>{const t=J_(e);return[ZG(t),JG(t),Z_(t),Cu(t,"zoom")]},eT,{unitless:{titleLineHeight:!0}});var tq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{CC={x:e.pageX,y:e.pageY},setTimeout(()=>{CC=null},100)};PU()&&document.documentElement.addEventListener("click",nq,!0);const rq=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=c.useContext(at),i=H=>{const{onCancel:V}=e;V==null||V(H)},l=H=>{const{onOk:V}=e;V==null||V(H)},{prefixCls:s,className:u,rootClassName:d,open:f,wrapClassName:m,centered:h,getContainer:g,closeIcon:v,closable:p,focusTriggerAfterClose:y=!0,style:b,visible:C,width:S=520,footer:$,classNames:x,styles:w}=e,O=tq(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),E=r("modal",s),P=r(),M=pn(E),[D,R,_]=eq(E,M),T=Z(m,{[`${E}-centered`]:!!h,[`${E}-wrap-rtl`]:o==="rtl"}),k=$!==null&&c.createElement(wG,Object.assign({},e,{onOk:l,onCancel:i})),[N,j]=A_({closable:p,closeIcon:typeof v<"u"?v:a==null?void 0:a.closeIcon,customCloseIconRender:H=>xG(E,H),defaultCloseIcon:c.createElement(xa,{className:`${E}-close-icon`}),defaultClosable:!0}),A=X_(`.${E}-content`),[B,z]=Uo("Modal",O.zIndex);return D(c.createElement(ka,null,c.createElement(us,{status:!0,override:!0},c.createElement(am.Provider,{value:z},c.createElement(r2,Object.assign({width:S},O,{zIndex:B,getContainer:g===void 0?n:g,prefixCls:E,rootClassName:Z(R,d,_,M),footer:k,visible:f??C,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:CC,onClose:i,closable:N,closeIcon:j,focusTriggerAfterClose:y,transitionName:$r(P,"zoom",e.transitionName),maskTransitionName:$r(P,"fade",e.maskTransitionName),className:Z(R,u,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),b),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),x),{wrapper:Z(T,x==null?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:A}))))))},oq=rq,aq=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},np()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},iq=Eh(["Modal","confirm"],e=>{const t=J_(e);return[aq(t)]},eT,{order:-1e3});var lq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ob,Te(Object.values(b))),S=c.createElement(c.Fragment,null,c.createElement(B4,null),c.createElement(z4,null)),$=e.title!==void 0&&e.title!==null,x=`${a}-body`;return c.createElement("div",{className:`${a}-body-wrapper`},c.createElement("div",{className:Z(x,{[`${x}-has-title`]:$})},f,c.createElement("div",{className:`${a}-paragraph`},$&&c.createElement("span",{className:`${a}-title`},e.title),c.createElement("div",{className:`${a}-content`},e.content))),s===void 0||typeof s=="function"?c.createElement(j_,{value:C},c.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(S,{OkBtn:z4,CancelBtn:B4}):S)):s,c.createElement(iq,{prefixCls:t}))}const cq=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:s,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:h,closable:g=!1,closeIcon:v,modalRender:p,focusTriggerAfterClose:y,onConfirm:b,styles:C}=e,S=`${d}-confirm`,$=e.width||416,x=e.style||{},w=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,E=Z(S,`${S}-${e.type}`,{[`${S}-rtl`]:u==="rtl"},e.className),[,P]=cr(),M=c.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Ih,[n,P]);return c.createElement(oq,{prefixCls:d,className:E,wrapClassName:Z({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:o,title:"",footer:null,transitionName:$r(m||"","zoom",e.transitionName),maskTransitionName:$r(m||"","fade",e.maskTransitionName),mask:w,maskClosable:O,style:x,styles:Object.assign({body:h,mask:s},C),width:$,zIndex:M,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:g,closeIcon:v,modalRender:p,focusTriggerAfterClose:y},c.createElement(sq,Object.assign({},e,{confirmPrefixCls:S})))},uq=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(bt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(cq,Object.assign({},e)))},dq=uq;function fq(e){return Object.assign(Object.assign({},e),{type:"warning"})}function mq(e){return Object.assign(Object.assign({},e),{type:"info"})}function vq(e){return Object.assign(Object.assign({},e),{type:"success"})}function gq(e){return Object.assign(Object.assign({},e),{type:"error"})}function pq(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var hq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,a=hq(e,["afterClose","config"]);const[i,l]=c.useState(!0),[s,u]=c.useState(o),{direction:d,getPrefixCls:f}=c.useContext(at),m=f("modal"),h=f(),g=()=>{var b;r(),(b=s.afterClose)===null||b===void 0||b.call(s)},v=function(){l(!1);for(var b=arguments.length,C=new Array(b),S=0;Sx&&x.triggerCancel);s.onCancel&&$&&s.onCancel.apply(s,[()=>{}].concat(Te(C.slice(1))))};c.useImperativeHandle(t,()=>({destroy:v,update:b=>{u(C=>Object.assign(Object.assign({},C),b))}}));const p=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[y]=xi("Modal",Da.Modal);return c.createElement(dq,Object.assign({prefixCls:m,rootPrefixCls:h},s,{close:v,open:i,afterClose:g,okText:s.okText||(p?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:s.direction||d,cancelText:s.cancelText||(y==null?void 0:y.cancelText)},a))},bq=c.forwardRef(yq);let vP=0;const Cq=c.memo(c.forwardRef((e,t)=>{const[n,r]=eK();return c.useImperativeHandle(t,()=>({patchElement:r}),[]),c.createElement(c.Fragment,null,n)}));function Sq(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Te(t).forEach(i=>{i()}),n([]))},[t]);const r=c.useCallback(a=>function(l){var s;vP+=1;const u=c.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,h;const g=c.createElement(bq,{key:`modal-${vP}`,config:a(l),ref:u,afterClose:()=>{h==null||h()},isSilent:()=>m,onConfirm:p=>{d(p)}});return h=(s=e.current)===null||s===void 0?void 0:s.patchElement(g),{destroy:()=>{function p(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?p():n(y=>[].concat(Te(y),[p]))},update:p=>{function y(){var b;(b=u.current)===null||b===void 0||b.update(p)}u.current?y():n(b=>[].concat(Te(b),[y]))},then:p=>(m=!0,f.then(p))}},[]);return[c.useMemo(()=>({info:r(mq),success:r(vq),error:r(gq),warning:r(fq),confirm:r(pq)}),[]),c.createElement(Cq,{key:"modal-holder",ref:e})]}const xq=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new kt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new kt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new kt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new kt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},wq=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],$q={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Eq=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[$q[t]]:{value:0,_skip_check_:!0}}}}},Pq=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Oq=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Pq(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Oq(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},wq.map(n=>Eq(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Mq=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,fontSize:v,lineHeight:p,width:y,notificationIconSize:b,colorText:C}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[S]:{padding:h,width:y,maxWidth:`calc(100vw - ${ae(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:v,color:C},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${S}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({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.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},ha(e)),[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Rq=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new kt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},Mq(e))}}]},_q=e=>({zIndexPopup:e.zIndexPopupBase+Ih+50,width:384}),Tq=e=>{const t=e.paddingMD,n=e.paddingLG;return _t(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Nq=Ht("Notification",e=>{const t=Tq(e);return[Rq(t),xq(t),Iq(t)]},_q);function tT(e,t){return t===null||t===!1?null:t||c.createElement(xa,{className:`${e}-close-icon`})}const jq={success:ys,info:om,error:Ha,warning:hu},Dq=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:l="alert"}=e;let s=null;return n?s=c.createElement("span",{className:`${t}-icon`},n):r&&(s=c.createElement(jq[r]||null,{className:Z(`${t}-icon`,`${t}-icon-${r}`)})),c.createElement("div",{className:Z({[`${t}-with-icon`]:s}),role:l},s,c.createElement("div",{className:`${t}-message`},o),c.createElement("div",{className:`${t}-description`},a),i&&c.createElement("div",{className:`${t}-btn`},i))};function Fq(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};break}return r}function kq(e){return{motionName:`${e}-fade`}}var Lq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=pn(n),[o,a,i]=Nq(n,r);return o(W.createElement(p_,{classNames:{list:Z(a,i,r)}},t))},Hq=(e,t)=>{let{prefixCls:n,key:r}=t;return W.createElement(zq,{prefixCls:n,key:r},e)},Vq=W.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:s,stack:u,duration:d}=e,{getPrefixCls:f,getPopupContainer:m,notification:h,direction:g}=c.useContext(at),[,v]=cr(),p=o||f("notification"),y=x=>Fq(x,n??gP,r??gP),b=()=>Z({[`${p}-rtl`]:l??g==="rtl"}),C=()=>kq(p),[S,$]=h_({prefixCls:p,style:y,className:b,motion:C,closable:!0,closeIcon:tT(p),duration:d??Aq,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:Hq,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:v.margin}});return W.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:p,notification:h})),$});function Wq(e){const t=W.useRef(null);return vu(),[W.useMemo(()=>{const r=l=>{var s;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:h,description:g,icon:v,type:p,btn:y,className:b,style:C,role:S="alert",closeIcon:$}=l,x=Lq(l,["message","description","icon","type","btn","className","style","role","closeIcon"]),w=tT(m,typeof $<"u"?$:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(s=e==null?void 0:e.placement)!==null&&s!==void 0?s:Bq},x),{content:W.createElement(Dq,{prefixCls:m,icon:v,type:p,message:h,description:g,btn:y,role:S}),className:Z(p&&`${m}-${p}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),closeIcon:w,closable:!!w}))},a={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.current)===null||s===void 0||s.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=s=>r(Object.assign(Object.assign({},s),{type:l}))}),a},[]),W.createElement(Vq,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Kq(e){return Wq(e)}const SC=W.createContext({}),Uq=W.createContext({message:{},notification:{},modal:{}}),nT=Uq,Gq=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},qq=()=>({}),Yq=Ht("App",Gq,qq),Xq=()=>W.useContext(nT),rT=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:s="div"}=e,{getPrefixCls:u}=c.useContext(at),d=u("app",t),[f,m,h]=Yq(d),g=Z(m,d,r,o,h),v=c.useContext(SC),p=W.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),i)}),[a,i,v.message,v.notification]),[y,b]=x_(p.message),[C,S]=Kq(p.notification),[$,x]=Sq(),w=W.useMemo(()=>({message:y,notification:C,modal:$}),[y,C,$]),O=s===!1?W.Fragment:s,E={className:g,style:l};return f(W.createElement(nT.Provider,{value:w},W.createElement(SC.Provider,{value:p},W.createElement(O,Object.assign({},s===!1?void 0:E),x,b,S,n))))};rT.useApp=Xq;const oT=rT;function Qq(e){return t=>c.createElement(bt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const Sl=(e,t,n,r)=>Qq(a=>{const{prefixCls:i,style:l}=a,s=c.useRef(null),[u,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=Pt(!1,{value:a.open}),{getPrefixCls:v}=c.useContext(at),p=v(t||"select",i);c.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver($=>{const x=$[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var $;const x=n?`.${n(p)}`:`.${p}-dropdown`,w=($=s.current)===null||$===void 0?void 0:$.querySelector(x);w&&(clearInterval(S),C.observe(w))},10);return()=>{clearInterval(S),C.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});r&&(y=r(y));const b={paddingBottom:u,position:"relative",minWidth:f};return c.createElement("div",{ref:s,style:b},c.createElement(e,Object.assign({},y)))}),Ah=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Bh=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:Z(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},Zq=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=W.useMemo(function(){if(et(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=W.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:W.createElement(Bh,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},aT=c.createContext(null);function c2(){return c.useContext(aT)}function Jq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=X(t,2),r=n[0],o=n[1],a=c.useRef(null),i=function(){window.clearTimeout(a.current)};c.useEffect(function(){return i},[]);var l=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,i]}function iT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function eY(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function tY(e){return![Ie.ESC,Ie.SHIFT,Ie.BACKSPACE,Ie.TAB,Ie.WIN_KEY,Ie.ALT,Ie.META,Ie.WIN_KEY_RIGHT,Ie.CTRL,Ie.SEMICOLON,Ie.EQUALS,Ie.CAPS_LOCK,Ie.CONTEXT_MENU,Ie.F1,Ie.F2,Ie.F3,Ie.F4,Ie.F5,Ie.F6,Ie.F7,Ie.F8,Ie.F9,Ie.F10,Ie.F11,Ie.F12].includes(e)}var nY=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],js=void 0;function rY(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,y=ze(e,nY),b=i&&!h;function C(O){s(u,O)}c.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==js?a(o):m,$;r||($={opacity:b?0:1,height:b?0:js,overflowY:b?"hidden":js,order:i?g:js,pointerEvents:b?"none":js,position:b?"absolute":js});var x={};b&&(x["aria-hidden"]=!0);var w=c.createElement(p,be({className:Z(!r&&n,d),style:I(I({},$),f)},x,y,{ref:t}),S);return i&&(w=c.createElement(Sr,{onResize:function(E){var P=E.offsetWidth;C(P)},disabled:l},w)),w}var qd=c.forwardRef(rY);qd.displayName="Item";function oY(e){if(typeof MessageChannel>"u")At(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aY(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],oY(function(){ja.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function rd(e,t){var n=c.useState(t),r=X(n,2),o=r[0],a=r[1],i=qt(function(l){e(function(){a(l)})});return[o,i]}var sp=W.createContext(null),iY=["component"],lY=["className"],sY=["className"],cY=function(t,n){var r=c.useContext(sp);if(!r){var o=t.component,a=o===void 0?"div":o,i=ze(t,iY);return c.createElement(a,be({},i,{ref:n}))}var l=r.className,s=ze(r,lY),u=t.className,d=ze(t,sY);return c.createElement(sp.Provider,{value:null},c.createElement(qd,be({ref:n,className:Z(l,u)},s,d)))},lT=c.forwardRef(cY);lT.displayName="RawItem";var uY=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sT="responsive",cT="invalidate";function dY(e){return"+ ".concat(e.length," ...")}function fY(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,y=e.suffix,b=e.component,C=b===void 0?"div":b,S=e.itemComponent,$=e.onVisibleChange,x=ze(e,uY),w=f==="full",O=aY(),E=rd(O,null),P=X(E,2),M=P[0],D=P[1],R=M||0,_=rd(O,new Map),T=X(_,2),k=T[0],N=T[1],j=rd(O,0),A=X(j,2),B=A[0],z=A[1],H=rd(O,0),V=X(H,2),U=V[0],K=V[1],Y=rd(O,0),G=X(Y,2),q=G[0],J=G[1],Q=c.useState(null),ne=X(Q,2),re=ne[0],oe=ne[1],te=c.useState(null),ee=X(te,2),ie=ee[0],de=ee[1],he=c.useMemo(function(){return ie===null&&w?Number.MAX_SAFE_INTEGER:ie||0},[ie,M]),fe=c.useState(!1),le=X(fe,2),me=le[0],ye=le[1],ge="".concat(r,"-item"),ve=Math.max(B,U),$e=g===sT,Ce=a.length&&$e,Oe=g===cT,Re=Ce||typeof g=="number"&&a.length>g,Ee=c.useMemo(function(){var xe=a;return Ce?M===null&&w?xe=a:xe=a.slice(0,Math.min(a.length,R/d)):typeof g=="number"&&(xe=a.slice(0,g)),xe},[a,d,M,g,Ce]),_e=c.useMemo(function(){return Ce?a.slice(he+1):a.slice(Ee.length)},[a,Ee,Ce,he]),Fe=c.useCallback(function(xe,Ne){var We;return typeof s=="function"?s(xe):(We=s&&(xe==null?void 0:xe[s]))!==null&&We!==void 0?We:Ne},[s]),qe=c.useCallback(i||function(xe){return xe},[i]);function Ze(xe,Ne,We){ie===xe&&(Ne===void 0||Ne===re)||(de(xe),We||(ye(xeR){Ze(He-1,xe-Me-q+U);break}}y&&nt(0)+q>R&&oe(null)}},[R,k,U,q,Fe,Ee]);var mt=me&&!!_e.length,gt={};re!==null&&Ce&&(gt={position:"absolute",left:re,top:0});var yt={prefixCls:ge,responsive:Ce,component:S,invalidate:Oe},It=l?function(xe,Ne){var We=Fe(xe,Ne);return c.createElement(sp.Provider,{key:We,value:I(I({},yt),{},{order:Ne,item:xe,itemKey:We,registerSize:Be,display:Ne<=he})},l(xe,Ne))}:function(xe,Ne){var We=Fe(xe,Ne);return c.createElement(qd,be({},yt,{order:Ne,key:We,item:xe,renderItem:qe,itemKey:We,registerSize:Be,display:Ne<=he}))},ue,se={order:mt?he:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:Ue,display:mt};if(p)p&&(ue=c.createElement(sp.Provider,{value:I(I({},yt),se)},p(_e)));else{var pe=v||dY;ue=c.createElement(qd,be({},yt,se),typeof pe=="function"?pe(_e):pe)}var Se=c.createElement(C,be({className:Z(!Oe&&r,h),style:m,ref:t},x),Ee.map(It),Re?ue:null,y&&c.createElement(qd,be({},yt,{responsive:$e,responsiveDisabled:!Ce,order:he,className:"".concat(ge,"-suffix"),registerSize:Je,display:!0,style:gt}),y));return $e&&(Se=c.createElement(Sr,{onResize:ke,disabled:!Ce},Se)),Se}var ma=c.forwardRef(fY);ma.displayName="Overflow";ma.Item=lT;ma.RESPONSIVE=sT;ma.INVALIDATE=cT;var mY=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,h=t.value,g=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,y=t.onChange,b=t.onPaste,C=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,w=i||c.createElement("input",null),O=w,E=O.ref,P=O.props,M=P.onKeyDown,D=P.onChange,R=P.onMouseDown,_=P.onCompositionStart,T=P.onCompositionEnd,k=P.style;return"maxLength"in w.props,w=c.cloneElement(w,I(I(I({type:"search"},P),{},{id:a,ref:Er(n,E),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:Z("".concat(o,"-selection-search-input"),(r=w)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?m:void 0},x),{},{value:f?h:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:I(I({},k),{},{opacity:f?null:0}),onKeyDown:function(j){v(j),M&&M(j)},onMouseDown:function(j){p(j),R&&R(j)},onChange:function(j){y(j),D&&D(j)},onCompositionStart:function(j){C(j),_&&_(j)},onCompositionEnd:function(j){S(j),T&&T(j)},onPaste:b})),w},uT=c.forwardRef(mY);function dT(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var vY=typeof window<"u"&&window.document&&window.document.documentElement,gY=vY;function pY(e){return e!=null}function hY(e){return!e&&e!==0}function pP(e){return["string","number"].includes(et(e))}function fT(e){var t=void 0;return e&&(pP(e.title)?t=e.title.toString():pP(e.label)&&(t=e.label.toString())),t}function yY(e,t){gY?c.useLayoutEffect(e,t):c.useEffect(e,t)}function bY(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var hP=function(t){t.preventDefault(),t.stopPropagation()},CY=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,$=S===void 0?function(oe){return"+ ".concat(oe.length," ...")}:S,x=t.tagRender,w=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,P=t.onInputPaste,M=t.onInputKeyDown,D=t.onInputMouseDown,R=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=c.useRef(null),k=c.useState(0),N=X(k,2),j=N[0],A=N[1],B=c.useState(!1),z=X(B,2),H=z[0],V=z[1],U="".concat(r,"-selection"),K=a||f==="multiple"&&l===!1||f==="tags"?i:"",Y=f==="tags"||f==="multiple"&&l===!1||m&&(a||H);yY(function(){A(T.current.scrollWidth)},[K]);var G=function(te,ee,ie,de,he){return c.createElement("span",{title:fT(te),className:Z("".concat(U,"-item"),L({},"".concat(U,"-item-disabled"),ie))},c.createElement("span",{className:"".concat(U,"-item-content")},ee),de&&c.createElement(Bh,{className:"".concat(U,"-item-remove"),onMouseDown:hP,onClick:he,customizeIcon:y},"×"))},q=function(te,ee,ie,de,he){var fe=function(me){hP(me),w(!a)};return c.createElement("span",{onMouseDown:fe},x({label:ee,value:te,disabled:ie,closable:de,onClose:he}))},J=function(te){var ee=te.disabled,ie=te.label,de=te.value,he=!d&&!ee,fe=ie;if(typeof C=="number"&&(typeof ie=="string"||typeof ie=="number")){var le=String(fe);le.length>C&&(fe="".concat(le.slice(0,C),"..."))}var me=function(ge){ge&&ge.stopPropagation(),O(te)};return typeof x=="function"?q(de,fe,ee,he,me):G(te,fe,ee,he,me)},Q=function(te){var ee=typeof $=="function"?$(te):$;return G({title:ee},ee,!1)},ne=c.createElement("div",{className:"".concat(U,"-search"),style:{width:j},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},c.createElement(uT,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:Y,activeDescendantId:v,value:K,onKeyDown:M,onMouseDown:D,onChange:E,onPaste:P,onCompositionStart:R,onCompositionEnd:_,tabIndex:p,attrs:Qn(t,!0)}),c.createElement("span",{ref:T,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},K," ")),re=c.createElement(ma,{prefixCls:"".concat(U,"-overflow"),data:o,renderItem:J,renderRest:Q,suffix:ne,itemKey:bY,maxCount:b});return c.createElement(c.Fragment,null,re,!o.length&&!K&&c.createElement("span",{className:"".concat(U,"-placeholder")},u))},SY=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,y=t.activeValue,b=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.title,P=c.useState(!1),M=X(P,2),D=M[0],R=M[1],_=d==="combobox",T=_||v,k=m[0],N=p||"";_&&y&&!D&&(N=y),c.useEffect(function(){_&&R(!1)},[_,y]);var j=d!=="combobox"&&!f&&!v?!1:!!N,A=E===void 0?fT(k):E,B=c.useMemo(function(){return k?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},h)},[k,j,h,r]);return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(uT,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:T,activeDescendantId:u,value:N,onKeyDown:C,onMouseDown:S,onChange:function(H){R(!0),$(H)},onPaste:x,onCompositionStart:w,onCompositionEnd:O,tabIndex:g,attrs:Qn(t,!0),maxLength:_?b:void 0})),!_&&k?c.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:j?{visibility:"hidden"}:void 0},k.label):null,B)},xY=function(t,n){var r=c.useRef(null),o=c.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var p=iT(0),y=X(p,2),b=y[0],C=y[1],S=function(N){var j=N.which;(j===Ie.UP||j===Ie.DOWN)&&N.preventDefault(),g&&g(N),j===Ie.ENTER&&l==="tags"&&!o.current&&!i&&(m==null||m(N.target.value)),tY(j)&&h(!0)},$=function(){C(!0)},x=c.useRef(null),w=function(N){f(N,!0,o.current)!==!1&&h(!0)},O=function(){o.current=!0},E=function(N){o.current=!1,l!=="combobox"&&w(N.target.value)},P=function(N){var j=N.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var A=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(A,x.current)}x.current=null,w(j)},M=function(N){var j=N.clipboardData,A=j==null?void 0:j.getData("text");x.current=A||""},D=function(N){var j=N.target;if(j!==r.current){var A=document.body.style.msTouchAction!==void 0;A?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(N){var j=b();N.target!==r.current&&!j&&l!=="combobox"&&N.preventDefault(),(l!=="combobox"&&(!s||!j)||!i)&&(i&&d!==!1&&f("",!0,!1),h())},_={inputRef:r,onInputKeyDown:S,onInputMouseDown:$,onInputChange:P,onInputPaste:M,onInputCompositionStart:O,onInputCompositionEnd:E},T=l==="multiple"||l==="tags"?c.createElement(CY,be({},t,_)):c.createElement(SY,be({},t,_));return c.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:D,onMouseDown:R},T)},wY=c.forwardRef(xY);function $Y(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,u=s===void 0?0:s,d=o.y,f=d===void 0?0:d,m=c.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],y=g[1],b=v[0],C=v[1];p===b||!["t","b"].includes(p)?h.top=f:p==="t"?h.top=0:h.bottom=0,y===C||!["l","r"].includes(y)?h.left=u:y==="l"?h.left=0:h.right=0}return c.createElement("div",{ref:m,className:Z("".concat(t,"-arrow"),i),style:h},l)}function EY(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?c.createElement(wr,be({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return c.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),l)})}):null}var PY=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),OY=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,p=e.motion,y=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,P=e.ready,M=e.offsetX,D=e.offsetY,R=e.offsetR,_=e.offsetB,T=e.onAlign,k=e.onPrepare,N=e.stretch,j=e.targetWidth,A=e.targetHeight,B=typeof n=="function"?n():n,z=s||u,H=(C==null?void 0:C.length)>0,V=c.useState(!C||!H),U=X(V,2),K=U[0],Y=U[1];if(Kt(function(){!K&&H&&i&&Y(!0)},[K,H,i]),!K)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(P||!s){var J,Q=v.points,ne=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),re=ne&&Q[0][1]==="r",oe=ne&&Q[0][0]==="b";re?(q.right=R,q.left=G):(q.left=M,q.right=G),oe?(q.bottom=_,q.top=G):(q.top=D,q.bottom=G)}var te={};return N&&(N.includes("height")&&A?te.height=A:N.includes("minHeight")&&A&&(te.minHeight=A),N.includes("width")&&j?te.width=j:N.includes("minWidth")&&j&&(te.minWidth=j)),s||(te.pointerEvents="none"),c.createElement($,{open:b||z,getContainer:C&&function(){return C(i)},autoDestroy:S},c.createElement(EY,{prefixCls:o,open:s,zIndex:x,mask:m,motion:y}),c.createElement(Sr,{onResize:T,disabled:!s},function(ee){return c.createElement(wr,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:k,onEnterPrepare:k,visible:s,onVisibleChanged:function(de){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,de),l(de)}}),function(ie,de){var he=ie.className,fe=ie.style,le=Z(o,he,r);return c.createElement("div",{ref:Er(ee,t,de),className:le,style:I(I(I(I({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},q),te),fe),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:E,onClick:f},h&&c.createElement($Y,{prefixCls:o,arrow:h,arrowPos:g,align:v}),c.createElement(PY,{cache:!s&&!d},B))})}))}),IY=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ci(n),a=c.useCallback(function(l){Fx(t,r?r(l):l)},[r]),i=za(a,n.ref);return o?c.cloneElement(n,{ref:i}):n}),yP=c.createContext(null);function bP(e){return e?Array.isArray(e)?e:[e]:[]}function MY(e,t,n,r){return c.useMemo(function(){var o=bP(n??t),a=bP(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function RY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _Y(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function od(e){return Mf(parseFloat(e),0)}function SP(e,t){var n=I({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=dm(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=od(l),y=od(s),b=od(u),C=od(d),S=Mf(Math.round(f.width/g*1e3)/1e3),$=Mf(Math.round(f.height/m*1e3)/1e3),x=(g-v-b-C)*S,w=(m-h-p-y)*$,O=p*$,E=y*$,P=b*S,M=C*S,D=0,R=0;if(a==="clip"){var _=od(i);D=_*S,R=_*$}var T=f.x+P-D,k=f.y+O-R,N=T+f.width+2*D-P-M-x,j=k+f.height+2*R-O-E-w;n.left=Math.max(n.left,T),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,j)}}),n}function xP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function wP(e,t){var n=t||[],r=X(n,2),o=r[0],a=r[1];return[xP(e.width,o),xP(e.height,a)]}function $P(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ds(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Ri(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function TY(e,t,n,r,o,a,i){var l=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=X(l,2),u=s[0],d=s[1],f=c.useRef(0),m=c.useMemo(function(){return t?xC(t):[]},[t]),h=c.useRef({}),g=function(){h.current={}};e||g();var v=qt(function(){if(t&&n&&e){let Xt=function(Oi,Xo){var Ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le,Ii=B.x+Oi,Ea=B.y+Xo,Ol=Ii+J,Il=Ea+q,Ml=Math.max(Ii,Ua.left),Ku=Math.max(Ea,Ua.top),xt=Math.min(Ol,Ua.right),Nt=Math.min(Il,Ua.bottom);return Math.max(0,(xt-Ml)*(Nt-Ku))},Jr=function(){Ct=B.y+pe,st=Ct+q,Qe=B.x+se,Ae=Qe+J};var Ft=Xt,Gt=Jr,b,C,S=t,$=S.ownerDocument,x=dm(S),w=x.getComputedStyle(S),O=w.width,E=w.height,P=w.position,M=S.style.left,D=S.style.top,R=S.style.right,_=S.style.bottom,T=S.style.overflow,k=I(I({},o[r]),a),N=$.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(N),N.style.left="".concat(S.offsetLeft,"px"),N.style.top="".concat(S.offsetTop,"px"),N.style.position=P,N.style.height="".concat(S.offsetHeight,"px"),N.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();j={x:A.x,y:A.y,width:A.width,height:A.height}}var B=S.getBoundingClientRect(),z=$.documentElement,H=z.clientWidth,V=z.clientHeight,U=z.scrollWidth,K=z.scrollHeight,Y=z.scrollTop,G=z.scrollLeft,q=B.height,J=B.width,Q=j.height,ne=j.width,re={left:0,top:0,right:H,bottom:V},oe={left:-G,top:-Y,right:U-G,bottom:K-Y},te=k.htmlRegion,ee="visible",ie="visibleFirst";te!=="scroll"&&te!==ie&&(te=ee);var de=te===ie,he=SP(oe,m),fe=SP(re,m),le=te===ee?fe:he,me=de?fe:le;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ye=S.getBoundingClientRect();S.style.left=M,S.style.top=D,S.style.right=R,S.style.bottom=_,S.style.overflow=T,(C=S.parentElement)===null||C===void 0||C.removeChild(N);var ge=Mf(Math.round(J/parseFloat(O)*1e3)/1e3),ve=Mf(Math.round(q/parseFloat(E)*1e3)/1e3);if(ge===0||ve===0||Yg(n)&&!lm(n))return;var $e=k.offset,Ce=k.targetOffset,Oe=wP(B,$e),Re=X(Oe,2),Ee=Re[0],_e=Re[1],Fe=wP(j,Ce),qe=X(Fe,2),Ze=qe[0],ke=qe[1];j.x-=Ze,j.y-=ke;var Be=k.points||[],Ue=X(Be,2),Je=Ue[0],nt=Ue[1],mt=$P(nt),gt=$P(Je),yt=Ds(j,mt),It=Ds(B,gt),ue=I({},k),se=yt.x-It.x+Ee,pe=yt.y-It.y+_e,Se=Xt(se,pe),xe=Xt(se,pe,fe),Ne=Ds(j,["t","l"]),We=Ds(B,["t","l"]),He=Ds(j,["b","r"]),Me=Ds(B,["b","r"]),Le=k.overflow||{},Xe=Le.adjustX,Ke=Le.adjustY,it=Le.shiftX,ot=Le.shiftY,Mt=function(Xo){return typeof Xo=="boolean"?Xo:Xo>=0},Ct,st,Qe,Ae;Jr();var Pe=Mt(Ke),je=gt[0]===mt[0];if(Pe&>[0]==="t"&&(st>me.bottom||h.current.bt)){var Ve=pe;je?Ve-=q-Q:Ve=Ne.y-Me.y-_e;var tt=Xt(se,Ve),pt=Xt(se,Ve,fe);tt>Se||tt===Se&&(!de||pt>=xe)?(h.current.bt=!0,pe=Ve,_e=-_e,ue.points=[Ri(gt,0),Ri(mt,0)]):h.current.bt=!1}if(Pe&>[0]==="b"&&(CtSe||ct===Se&&(!de||lt>=xe)?(h.current.tb=!0,pe=ut,_e=-_e,ue.points=[Ri(gt,0),Ri(mt,0)]):h.current.tb=!1}var ht=Mt(Xe),ft=gt[1]===mt[1];if(ht&>[1]==="l"&&(Ae>me.right||h.current.rl)){var Lt=se;ft?Lt-=J-ne:Lt=Ne.x-Me.x-Ee;var Cn=Xt(Lt,pe),mn=Xt(Lt,pe,fe);Cn>Se||Cn===Se&&(!de||mn>=xe)?(h.current.rl=!0,se=Lt,Ee=-Ee,ue.points=[Ri(gt,1),Ri(mt,1)]):h.current.rl=!1}if(ht&>[1]==="r"&&(QeSe||Tt===Se&&(!de||jt>=xe)?(h.current.lr=!0,se=dt,Ee=-Ee,ue.points=[Ri(gt,1),Ri(mt,1)]):h.current.lr=!1}Jr();var Qt=it===!0?0:it;typeof Qt=="number"&&(Qefe.right&&(se-=Ae-fe.right-Ee,j.x>fe.right-Qt&&(se+=j.x-fe.right+Qt)));var kn=ot===!0?0:ot;typeof kn=="number"&&(Ctfe.bottom&&(pe-=st-fe.bottom-_e,j.y>fe.bottom-kn&&(pe+=j.y-fe.bottom+kn)));var jr=B.x+se,Dr=jr+J,dr=B.y+pe,Zr=dr+q,Yt=j.x,Bt=Yt+ne,vt=j.y,$t=vt+Q,Ut=Math.max(jr,Yt),vn=Math.min(Dr,Bt),Zt=(Ut+vn)/2,hn=Zt-jr,Ot=Math.max(dr,vt),St=Math.min(Zr,$t),en=(Ot+St)/2,$n=en-dr;i==null||i(t,ue);var Gn=ye.right-B.x-(se+B.width),Vt=ye.bottom-B.y-(pe+B.height);d({ready:!0,offsetX:se/ge,offsetY:pe/ve,offsetR:Gn/ge,offsetB:Vt/ve,arrowX:hn/ge,arrowY:$n/ve,scaleX:ge,scaleY:ve,align:ue})}}),p=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&v()})},y=function(){d(function(C){return I(I({},C),{},{ready:!1})})};return Kt(y,[r]),Kt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function NY(e,t,n,r,o){Kt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,a=t,i=n,l=xC(a),s=xC(i),u=dm(i),d=new Set([u].concat(Te(l),Te(s)));return d.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(h){h.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function jY(e,t,n,r,o,a,i,l){var s=c.useRef(e);s.current=e,c.useEffect(function(){if(t&&r&&(!o||a)){var u=function(h){var g=h.target;s.current&&!i(g)&&l(!1)},d=dm(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=op(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,a])}var DY=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function FY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cm,t=c.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,y=p===void 0?.1:p,b=n.focusDelay,C=n.blurDelay,S=n.mask,$=n.maskClosable,x=$===void 0?!0:$,w=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,P=n.destroyPopupOnHide,M=n.popup,D=n.popupClassName,R=n.popupStyle,_=n.popupPlacement,T=n.builtinPlacements,k=T===void 0?{}:T,N=n.popupAlign,j=n.zIndex,A=n.stretch,B=n.getPopupClassNameFromAlign,z=n.fresh,H=n.alignPoint,V=n.onPopupClick,U=n.onPopupAlign,K=n.arrow,Y=n.popupMotion,G=n.maskMotion,q=n.popupTransitionName,J=n.popupAnimation,Q=n.maskTransitionName,ne=n.maskAnimation,re=n.className,oe=n.getTriggerDOMNode,te=ze(n,DY),ee=E||P||!1,ie=c.useState(!1),de=X(ie,2),he=de[0],fe=de[1];Kt(function(){fe(Ah())},[]);var le=c.useRef({}),me=c.useContext(yP),ye=c.useMemo(function(){return{registerSubPopup:function(Nt,Rn){le.current[Nt]=Rn,me==null||me.registerSubPopup(Nt,Rn)}}},[me]),ge=k_(),ve=c.useState(null),$e=X(ve,2),Ce=$e[0],Oe=$e[1],Re=qt(function(xt){Yg(xt)&&Ce!==xt&&Oe(xt),me==null||me.registerSubPopup(ge,xt)}),Ee=c.useState(null),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=c.useRef(null),ke=qt(function(xt){Yg(xt)&&Fe!==xt&&(qe(xt),Ze.current=xt)}),Be=c.Children.only(i),Ue=(Be==null?void 0:Be.props)||{},Je={},nt=qt(function(xt){var Nt,Rn,En=Fe;return(En==null?void 0:En.contains(xt))||((Nt=op(En))===null||Nt===void 0?void 0:Nt.host)===xt||xt===En||(Ce==null?void 0:Ce.contains(xt))||((Rn=op(Ce))===null||Rn===void 0?void 0:Rn.host)===xt||xt===Ce||Object.values(le.current).some(function(Sn){return(Sn==null?void 0:Sn.contains(xt))||xt===Sn})}),mt=CP(a,Y,J,q),gt=CP(a,G,ne,Q),yt=c.useState(m||!1),It=X(yt,2),ue=It[0],se=It[1],pe=f??ue,Se=qt(function(xt){f===void 0&&se(xt)});Kt(function(){se(f||!1)},[f]);var xe=c.useRef(pe);xe.current=pe;var Ne=c.useRef([]);Ne.current=[];var We=qt(function(xt){var Nt;Se(xt),((Nt=Ne.current[Ne.current.length-1])!==null&&Nt!==void 0?Nt:pe)!==xt&&(Ne.current.push(xt),h==null||h(xt))}),He=c.useRef(),Me=function(){clearTimeout(He.current)},Le=function(Nt){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Me(),Rn===0?We(Nt):He.current=setTimeout(function(){We(Nt)},Rn*1e3)};c.useEffect(function(){return Me},[]);var Xe=c.useState(!1),Ke=X(Xe,2),it=Ke[0],ot=Ke[1];Kt(function(xt){(!xt||pe)&&ot(!0)},[pe]);var Mt=c.useState(null),Ct=X(Mt,2),st=Ct[0],Qe=Ct[1],Ae=c.useState([0,0]),Pe=X(Ae,2),je=Pe[0],Ve=Pe[1],tt=function(Nt){Ve([Nt.clientX,Nt.clientY])},pt=TY(pe,Ce,H?je:Fe,_,k,N,U),ut=X(pt,11),ct=ut[0],lt=ut[1],ht=ut[2],ft=ut[3],Lt=ut[4],Cn=ut[5],mn=ut[6],dt=ut[7],Tt=ut[8],jt=ut[9],Qt=ut[10],kn=MY(he,s,u,d),jr=X(kn,2),Dr=jr[0],dr=jr[1],Zr=Dr.has("click"),Yt=dr.has("click")||dr.has("contextMenu"),Bt=qt(function(){it||Qt()}),vt=function(){xe.current&&H&&Yt&&Le(!1)};NY(pe,Fe,Ce,Bt,vt),Kt(function(){Bt()},[je,_]),Kt(function(){pe&&!(k!=null&&k[_])&&Bt()},[JSON.stringify(N)]);var $t=c.useMemo(function(){var xt=_Y(k,a,jt,H);return Z(xt,B==null?void 0:B(jt))},[jt,B,k,a,H]);c.useImperativeHandle(r,function(){return{nativeElement:Ze.current,forceAlign:Bt}});var Ut=c.useState(0),vn=X(Ut,2),Zt=vn[0],hn=vn[1],Ot=c.useState(0),St=X(Ot,2),en=St[0],$n=St[1],Gn=function(){if(A&&Fe){var Nt=Fe.getBoundingClientRect();hn(Nt.width),$n(Nt.height)}},Vt=function(){Gn(),Bt()},Ft=function(Nt){ot(!1),Qt(),g==null||g(Nt)},Gt=function(){return new Promise(function(Nt){Gn(),Qe(function(){return Nt})})};Kt(function(){st&&(Qt(),st(),Qe(null))},[st]);function Xt(xt,Nt,Rn,En){Je[xt]=function(Sn){var Is;En==null||En(Sn),Le(Nt,Rn);for(var Ms=arguments.length,Um=new Array(Ms>1?Ms-1:0),Rl=1;Rl1?Rn-1:0),Sn=1;Sn1?Rn-1:0),Sn=1;Sn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=mT(n,!1),i=a.label,l=a.value,s=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(h){if(m||!(s in h)){var g=h[l];o.push({key:EP(h,o.length),groupOption:m,data:h,label:h[i],value:g})}else{var v=h[u];v===void 0&&r&&(v=h.label),o.push({key:EP(h,o.length),group:!0,data:h,label:v}),d(h[s],!0)}})}return d(e,!1),o}function $C(e){var t=I({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var HY=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,u){var d=xR(u),f=d[0],m=d.slice(1);if(!f)return[s];var h=s.split(f);return o=o||h.length>1,h.reduce(function(g,v){return[].concat(Te(g),Te(l(v,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},u2=c.createContext(null),VY=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],WY=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],EC=function(t){return t==="tags"||t==="multiple"},d2=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,v=e.onClear,p=e.mode,y=e.disabled,b=e.loading,C=e.getInputElement,S=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,P=e.activeDescendantId,M=e.searchValue,D=e.autoClearSearchValue,R=e.onSearch,_=e.onSearchSplit,T=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,j=e.clearIcon,A=e.OptionList,B=e.animation,z=e.transitionName,H=e.dropdownStyle,V=e.dropdownClassName,U=e.dropdownMatchSelectWidth,K=e.dropdownRender,Y=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,J=e.getPopupContainer,Q=e.showAction,ne=Q===void 0?[]:Q,re=e.onFocus,oe=e.onBlur,te=e.onKeyUp,ee=e.onKeyDown,ie=e.onMouseDown,de=ze(e,VY),he=EC(p),fe=(i!==void 0?i:he)||p==="combobox",le=I({},de);WY.forEach(function(vt){delete le[vt]}),u==null||u.forEach(function(vt){delete le[vt]});var me=c.useState(!1),ye=X(me,2),ge=ye[0],ve=ye[1];c.useEffect(function(){ve(Ah())},[]);var $e=c.useRef(null),Ce=c.useRef(null),Oe=c.useRef(null),Re=c.useRef(null),Ee=c.useRef(null),_e=c.useRef(!1),Fe=Jq(),qe=X(Fe,3),Ze=qe[0],ke=qe[1],Be=qe[2];c.useImperativeHandle(t,function(){var vt,$t;return{focus:(vt=Re.current)===null||vt===void 0?void 0:vt.focus,blur:($t=Re.current)===null||$t===void 0?void 0:$t.blur,scrollTo:function(vn){var Zt;return(Zt=Ee.current)===null||Zt===void 0?void 0:Zt.scrollTo(vn)}}});var Ue=c.useMemo(function(){var vt;if(p!=="combobox")return M;var $t=(vt=d[0])===null||vt===void 0?void 0:vt.value;return typeof $t=="string"||typeof $t=="number"?String($t):""},[M,p,d]),Je=p==="combobox"&&typeof C=="function"&&C()||null,nt=typeof S=="function"&&S(),mt=za(Ce,nt==null||(n=nt.props)===null||n===void 0?void 0:n.ref),gt=c.useState(!1),yt=X(gt,2),It=yt[0],ue=yt[1];Kt(function(){ue(!0)},[]);var se=Pt(!1,{defaultValue:x,value:$}),pe=X(se,2),Se=pe[0],xe=pe[1],Ne=It?Se:!1,We=!g&&m;(y||We&&Ne&&p==="combobox")&&(Ne=!1);var He=We?!1:Ne,Me=c.useCallback(function(vt){var $t=vt!==void 0?vt:!Ne;y||(xe($t),Ne!==$t&&(w==null||w($t)))},[y,Ne,xe,w]),Le=c.useMemo(function(){return(T||[]).some(function(vt){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},hY=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},yT=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return _t(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},bT=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),yY=Ht("Modal",e=>{const t=yT(e);return[pY(t),hY(t),hT(t),Su(t,"zoom")]},bT,{unitless:{titleLineHeight:!0}});var bY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{$C={x:e.pageX,y:e.pageY},setTimeout(()=>{$C=null},100)};WG()&&document.documentElement.addEventListener("click",CY,!0);const SY=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=c.useContext(at),i=H=>{const{onCancel:V}=e;V==null||V(H)},l=H=>{const{onOk:V}=e;V==null||V(H)},{prefixCls:s,className:u,rootClassName:d,open:f,wrapClassName:m,centered:h,getContainer:g,closeIcon:v,closable:p,focusTriggerAfterClose:y=!0,style:b,visible:C,width:S=520,footer:$,classNames:x,styles:w}=e,O=bY(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),E=r("modal",s),P=r(),M=pn(E),[D,R,_]=yY(E,M),T=Z(m,{[`${E}-centered`]:!!h,[`${E}-wrap-rtl`]:o==="rtl"}),k=$!==null&&c.createElement(zq,Object.assign({},e,{onOk:l,onCancel:i})),[N,j]=oT({closable:p,closeIcon:typeof v<"u"?v:a==null?void 0:a.closeIcon,customCloseIconRender:H=>Bq(E,H),defaultCloseIcon:c.createElement(xa,{className:`${E}-close-icon`}),defaultClosable:!0}),A=gT(`.${E}-content`),[B,z]=Uo("Modal",O.zIndex);return D(c.createElement(ka,null,c.createElement(us,{status:!0,override:!0},c.createElement(lm.Provider,{value:z},c.createElement(a2,Object.assign({width:S},O,{zIndex:B,getContainer:g===void 0?n:g,prefixCls:E,rootClassName:Z(R,d,_,M),footer:k,visible:f??C,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:$C,onClose:i,closable:N,closeIcon:j,focusTriggerAfterClose:y,transitionName:$r(P,"zoom",e.transitionName),maskTransitionName:$r(P,"fade",e.maskTransitionName),className:Z(R,u,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),b),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),x),{wrapper:Z(T,x==null?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:A}))))))},xY=SY,wY=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},op()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},$Y=Rh(["Modal","confirm"],e=>{const t=yT(e);return[wY(t)]},bT,{order:-1e3});var EY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ob,Te(Object.values(b))),S=c.createElement(c.Fragment,null,c.createElement(aP,null),c.createElement(iP,null)),$=e.title!==void 0&&e.title!==null,x=`${a}-body`;return c.createElement("div",{className:`${a}-body-wrapper`},c.createElement("div",{className:Z(x,{[`${x}-has-title`]:$})},f,c.createElement("div",{className:`${a}-paragraph`},$&&c.createElement("span",{className:`${a}-title`},e.title),c.createElement("div",{className:`${a}-content`},e.content))),s===void 0||typeof s=="function"?c.createElement(J_,{value:C},c.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(S,{OkBtn:iP,CancelBtn:aP}):S)):s,c.createElement($Y,{prefixCls:t}))}const OY=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:s,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:h,closable:g=!1,closeIcon:v,modalRender:p,focusTriggerAfterClose:y,onConfirm:b,styles:C}=e,S=`${d}-confirm`,$=e.width||416,x=e.style||{},w=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,E=Z(S,`${S}-${e.type}`,{[`${S}-rtl`]:u==="rtl"},e.className),[,P]=cr(),M=c.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Nh,[n,P]);return c.createElement(xY,{prefixCls:d,className:E,wrapClassName:Z({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:o,title:"",footer:null,transitionName:$r(m||"","zoom",e.transitionName),maskTransitionName:$r(m||"","fade",e.maskTransitionName),mask:w,maskClosable:O,style:x,styles:Object.assign({body:h,mask:s},C),width:$,zIndex:M,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:g,closeIcon:v,modalRender:p,focusTriggerAfterClose:y},c.createElement(PY,Object.assign({},e,{confirmPrefixCls:S})))},IY=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(bt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(OY,Object.assign({},e)))},MY=IY;function RY(e){return Object.assign(Object.assign({},e),{type:"warning"})}function _Y(e){return Object.assign(Object.assign({},e),{type:"info"})}function TY(e){return Object.assign(Object.assign({},e),{type:"success"})}function NY(e){return Object.assign(Object.assign({},e),{type:"error"})}function jY(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var DY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,a=DY(e,["afterClose","config"]);const[i,l]=c.useState(!0),[s,u]=c.useState(o),{direction:d,getPrefixCls:f}=c.useContext(at),m=f("modal"),h=f(),g=()=>{var b;r(),(b=s.afterClose)===null||b===void 0||b.call(s)},v=function(){l(!1);for(var b=arguments.length,C=new Array(b),S=0;Sx&&x.triggerCancel);s.onCancel&&$&&s.onCancel.apply(s,[()=>{}].concat(Te(C.slice(1))))};c.useImperativeHandle(t,()=>({destroy:v,update:b=>{u(C=>Object.assign(Object.assign({},C),b))}}));const p=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[y]=wi("Modal",Da.Modal);return c.createElement(MY,Object.assign({prefixCls:m,rootPrefixCls:h},s,{close:v,open:i,afterClose:g,okText:s.okText||(p?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:s.direction||d,cancelText:s.cancelText||(y==null?void 0:y.cancelText)},a))},kY=c.forwardRef(FY);let NP=0;const LY=c.memo(c.forwardRef((e,t)=>{const[n,r]=yU();return c.useImperativeHandle(t,()=>({patchElement:r}),[]),c.createElement(c.Fragment,null,n)}));function AY(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Te(t).forEach(i=>{i()}),n([]))},[t]);const r=c.useCallback(a=>function(l){var s;NP+=1;const u=c.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,h;const g=c.createElement(kY,{key:`modal-${NP}`,config:a(l),ref:u,afterClose:()=>{h==null||h()},isSilent:()=>m,onConfirm:p=>{d(p)}});return h=(s=e.current)===null||s===void 0?void 0:s.patchElement(g),{destroy:()=>{function p(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?p():n(y=>[].concat(Te(y),[p]))},update:p=>{function y(){var b;(b=u.current)===null||b===void 0||b.update(p)}u.current?y():n(b=>[].concat(Te(b),[y]))},then:p=>(m=!0,f.then(p))}},[]);return[c.useMemo(()=>({info:r(_Y),success:r(TY),error:r(NY),warning:r(RY),confirm:r(jY)}),[]),c.createElement(LY,{key:"modal-holder",ref:e})]}const BY=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new kt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new kt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new kt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new kt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},zY=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],HY={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},VY=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[HY[t]]:{value:0,_skip_check_:!0}}}}},WY=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},KY=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},WY(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},KY(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},zY.map(n=>VY(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},GY=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,fontSize:v,lineHeight:p,width:y,notificationIconSize:b,colorText:C}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[S]:{padding:h,width:y,maxWidth:`calc(100vw - ${ae(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:v,color:C},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${S}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({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.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},ha(e)),[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},qY=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new kt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},GY(e))}}]},YY=e=>({zIndexPopup:e.zIndexPopupBase+Nh+50,width:384}),XY=e=>{const t=e.paddingMD,n=e.paddingLG;return _t(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},QY=Ht("Notification",e=>{const t=XY(e);return[qY(t),BY(t),UY(t)]},YY);function CT(e,t){return t===null||t===!1?null:t||c.createElement(xa,{className:`${e}-close-icon`})}const ZY={success:bs,info:im,error:Ha,warning:yu},JY=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:l="alert"}=e;let s=null;return n?s=c.createElement("span",{className:`${t}-icon`},n):r&&(s=c.createElement(ZY[r]||null,{className:Z(`${t}-icon`,`${t}-icon-${r}`)})),c.createElement("div",{className:Z({[`${t}-with-icon`]:s}),role:l},s,c.createElement("div",{className:`${t}-message`},o),c.createElement("div",{className:`${t}-description`},a),i&&c.createElement("div",{className:`${t}-btn`},i))};function eX(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};break}return r}function tX(e){return{motionName:`${e}-fade`}}var nX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=pn(n),[o,a,i]=QY(n,r);return o(W.createElement(D_,{classNames:{list:Z(a,i,r)}},t))},iX=(e,t)=>{let{prefixCls:n,key:r}=t;return W.createElement(aX,{prefixCls:n,key:r},e)},lX=W.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:s,stack:u,duration:d}=e,{getPrefixCls:f,getPopupContainer:m,notification:h,direction:g}=c.useContext(at),[,v]=cr(),p=o||f("notification"),y=x=>eX(x,n??jP,r??jP),b=()=>Z({[`${p}-rtl`]:l??g==="rtl"}),C=()=>tX(p),[S,$]=F_({prefixCls:p,style:y,className:b,motion:C,closable:!0,closeIcon:CT(p),duration:d??rX,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:iX,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:v.margin}});return W.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:p,notification:h})),$});function sX(e){const t=W.useRef(null);return gu(),[W.useMemo(()=>{const r=l=>{var s;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:h,description:g,icon:v,type:p,btn:y,className:b,style:C,role:S="alert",closeIcon:$}=l,x=nX(l,["message","description","icon","type","btn","className","style","role","closeIcon"]),w=CT(m,typeof $<"u"?$:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(s=e==null?void 0:e.placement)!==null&&s!==void 0?s:oX},x),{content:W.createElement(JY,{prefixCls:m,icon:v,type:p,message:h,description:g,btn:y,role:S}),className:Z(p&&`${m}-${p}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),closeIcon:w,closable:!!w}))},a={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.current)===null||s===void 0||s.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=s=>r(Object.assign(Object.assign({},s),{type:l}))}),a},[]),W.createElement(lX,Object.assign({key:"notification-holder"},e,{ref:t}))]}function cX(e){return sX(e)}const EC=W.createContext({}),uX=W.createContext({message:{},notification:{},modal:{}}),ST=uX,dX=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},fX=()=>({}),mX=Ht("App",dX,fX),vX=()=>W.useContext(ST),xT=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:s="div"}=e,{getPrefixCls:u}=c.useContext(at),d=u("app",t),[f,m,h]=mX(d),g=Z(m,d,r,o,h),v=c.useContext(EC),p=W.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),i)}),[a,i,v.message,v.notification]),[y,b]=z_(p.message),[C,S]=cX(p.notification),[$,x]=AY(),w=W.useMemo(()=>({message:y,notification:C,modal:$}),[y,C,$]),O=s===!1?W.Fragment:s,E={className:g,style:l};return f(W.createElement(ST.Provider,{value:w},W.createElement(EC.Provider,{value:p},W.createElement(O,Object.assign({},s===!1?void 0:E),x,b,S,n))))};xT.useApp=vX;const wT=xT;function gX(e){return t=>c.createElement(bt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const Sl=(e,t,n,r)=>gX(a=>{const{prefixCls:i,style:l}=a,s=c.useRef(null),[u,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=Pt(!1,{value:a.open}),{getPrefixCls:v}=c.useContext(at),p=v(t||"select",i);c.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver($=>{const x=$[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var $;const x=n?`.${n(p)}`:`.${p}-dropdown`,w=($=s.current)===null||$===void 0?void 0:$.querySelector(x);w&&(clearInterval(S),C.observe(w))},10);return()=>{clearInterval(S),C.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});r&&(y=r(y));const b={paddingBottom:u,position:"relative",minWidth:f};return c.createElement("div",{ref:s,style:b},c.createElement(e,Object.assign({},y)))}),Wh=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Kh=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:Z(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},pX=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=W.useMemo(function(){if(et(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=W.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:W.createElement(Kh,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},$T=c.createContext(null);function d2(){return c.useContext($T)}function hX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=X(t,2),r=n[0],o=n[1],a=c.useRef(null),i=function(){window.clearTimeout(a.current)};c.useEffect(function(){return i},[]);var l=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,i]}function ET(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function yX(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function bX(e){return![Ie.ESC,Ie.SHIFT,Ie.BACKSPACE,Ie.TAB,Ie.WIN_KEY,Ie.ALT,Ie.META,Ie.WIN_KEY_RIGHT,Ie.CTRL,Ie.SEMICOLON,Ie.EQUALS,Ie.CAPS_LOCK,Ie.CONTEXT_MENU,Ie.F1,Ie.F2,Ie.F3,Ie.F4,Ie.F5,Ie.F6,Ie.F7,Ie.F8,Ie.F9,Ie.F10,Ie.F11,Ie.F12].includes(e)}var CX=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],js=void 0;function SX(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,y=ze(e,CX),b=i&&!h;function C(O){s(u,O)}c.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==js?a(o):m,$;r||($={opacity:b?0:1,height:b?0:js,overflowY:b?"hidden":js,order:i?g:js,pointerEvents:b?"none":js,position:b?"absolute":js});var x={};b&&(x["aria-hidden"]=!0);var w=c.createElement(p,be({className:Z(!r&&n,d),style:I(I({},$),f)},x,y,{ref:t}),S);return i&&(w=c.createElement(Sr,{onResize:function(E){var P=E.offsetWidth;C(P)},disabled:l},w)),w}var Yd=c.forwardRef(SX);Yd.displayName="Item";function xX(e){if(typeof MessageChannel>"u")At(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function wX(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],xX(function(){ja.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function sd(e,t){var n=c.useState(t),r=X(n,2),o=r[0],a=r[1],i=qt(function(l){e(function(){a(l)})});return[o,i]}var up=W.createContext(null),$X=["component"],EX=["className"],PX=["className"],OX=function(t,n){var r=c.useContext(up);if(!r){var o=t.component,a=o===void 0?"div":o,i=ze(t,$X);return c.createElement(a,be({},i,{ref:n}))}var l=r.className,s=ze(r,EX),u=t.className,d=ze(t,PX);return c.createElement(up.Provider,{value:null},c.createElement(Yd,be({ref:n,className:Z(l,u)},s,d)))},PT=c.forwardRef(OX);PT.displayName="RawItem";var IX=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OT="responsive",IT="invalidate";function MX(e){return"+ ".concat(e.length," ...")}function RX(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,y=e.suffix,b=e.component,C=b===void 0?"div":b,S=e.itemComponent,$=e.onVisibleChange,x=ze(e,IX),w=f==="full",O=wX(),E=sd(O,null),P=X(E,2),M=P[0],D=P[1],R=M||0,_=sd(O,new Map),T=X(_,2),k=T[0],N=T[1],j=sd(O,0),A=X(j,2),B=A[0],z=A[1],H=sd(O,0),V=X(H,2),U=V[0],K=V[1],Y=sd(O,0),G=X(Y,2),q=G[0],J=G[1],Q=c.useState(null),ne=X(Q,2),re=ne[0],oe=ne[1],te=c.useState(null),ee=X(te,2),ie=ee[0],de=ee[1],he=c.useMemo(function(){return ie===null&&w?Number.MAX_SAFE_INTEGER:ie||0},[ie,M]),fe=c.useState(!1),le=X(fe,2),me=le[0],ye=le[1],ge="".concat(r,"-item"),ve=Math.max(B,U),$e=g===OT,Ce=a.length&&$e,Oe=g===IT,Re=Ce||typeof g=="number"&&a.length>g,Ee=c.useMemo(function(){var xe=a;return Ce?M===null&&w?xe=a:xe=a.slice(0,Math.min(a.length,R/d)):typeof g=="number"&&(xe=a.slice(0,g)),xe},[a,d,M,g,Ce]),_e=c.useMemo(function(){return Ce?a.slice(he+1):a.slice(Ee.length)},[a,Ee,Ce,he]),Fe=c.useCallback(function(xe,Ne){var We;return typeof s=="function"?s(xe):(We=s&&(xe==null?void 0:xe[s]))!==null&&We!==void 0?We:Ne},[s]),qe=c.useCallback(i||function(xe){return xe},[i]);function Ze(xe,Ne,We){ie===xe&&(Ne===void 0||Ne===re)||(de(xe),We||(ye(xeR){Ze(He-1,xe-Me-q+U);break}}y&&nt(0)+q>R&&oe(null)}},[R,k,U,q,Fe,Ee]);var mt=me&&!!_e.length,gt={};re!==null&&Ce&&(gt={position:"absolute",left:re,top:0});var yt={prefixCls:ge,responsive:Ce,component:S,invalidate:Oe},It=l?function(xe,Ne){var We=Fe(xe,Ne);return c.createElement(up.Provider,{key:We,value:I(I({},yt),{},{order:Ne,item:xe,itemKey:We,registerSize:Be,display:Ne<=he})},l(xe,Ne))}:function(xe,Ne){var We=Fe(xe,Ne);return c.createElement(Yd,be({},yt,{order:Ne,key:We,item:xe,renderItem:qe,itemKey:We,registerSize:Be,display:Ne<=he}))},ue,se={order:mt?he:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:Ue,display:mt};if(p)p&&(ue=c.createElement(up.Provider,{value:I(I({},yt),se)},p(_e)));else{var pe=v||MX;ue=c.createElement(Yd,be({},yt,se),typeof pe=="function"?pe(_e):pe)}var Se=c.createElement(C,be({className:Z(!Oe&&r,h),style:m,ref:t},x),Ee.map(It),Re?ue:null,y&&c.createElement(Yd,be({},yt,{responsive:$e,responsiveDisabled:!Ce,order:he,className:"".concat(ge,"-suffix"),registerSize:Je,display:!0,style:gt}),y));return $e&&(Se=c.createElement(Sr,{onResize:ke,disabled:!Ce},Se)),Se}var ma=c.forwardRef(RX);ma.displayName="Overflow";ma.Item=PT;ma.RESPONSIVE=OT;ma.INVALIDATE=IT;var _X=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,h=t.value,g=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,y=t.onChange,b=t.onPaste,C=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,w=i||c.createElement("input",null),O=w,E=O.ref,P=O.props,M=P.onKeyDown,D=P.onChange,R=P.onMouseDown,_=P.onCompositionStart,T=P.onCompositionEnd,k=P.style;return"maxLength"in w.props,w=c.cloneElement(w,I(I(I({type:"search"},P),{},{id:a,ref:Er(n,E),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:Z("".concat(o,"-selection-search-input"),(r=w)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?m:void 0},x),{},{value:f?h:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:I(I({},k),{},{opacity:f?null:0}),onKeyDown:function(j){v(j),M&&M(j)},onMouseDown:function(j){p(j),R&&R(j)},onChange:function(j){y(j),D&&D(j)},onCompositionStart:function(j){C(j),_&&_(j)},onCompositionEnd:function(j){S(j),T&&T(j)},onPaste:b})),w},MT=c.forwardRef(_X);function RT(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var TX=typeof window<"u"&&window.document&&window.document.documentElement,NX=TX;function jX(e){return e!=null}function DX(e){return!e&&e!==0}function DP(e){return["string","number"].includes(et(e))}function _T(e){var t=void 0;return e&&(DP(e.title)?t=e.title.toString():DP(e.label)&&(t=e.label.toString())),t}function FX(e,t){NX?c.useLayoutEffect(e,t):c.useEffect(e,t)}function kX(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var FP=function(t){t.preventDefault(),t.stopPropagation()},LX=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,$=S===void 0?function(oe){return"+ ".concat(oe.length," ...")}:S,x=t.tagRender,w=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,P=t.onInputPaste,M=t.onInputKeyDown,D=t.onInputMouseDown,R=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=c.useRef(null),k=c.useState(0),N=X(k,2),j=N[0],A=N[1],B=c.useState(!1),z=X(B,2),H=z[0],V=z[1],U="".concat(r,"-selection"),K=a||f==="multiple"&&l===!1||f==="tags"?i:"",Y=f==="tags"||f==="multiple"&&l===!1||m&&(a||H);FX(function(){A(T.current.scrollWidth)},[K]);var G=function(te,ee,ie,de,he){return c.createElement("span",{title:_T(te),className:Z("".concat(U,"-item"),L({},"".concat(U,"-item-disabled"),ie))},c.createElement("span",{className:"".concat(U,"-item-content")},ee),de&&c.createElement(Kh,{className:"".concat(U,"-item-remove"),onMouseDown:FP,onClick:he,customizeIcon:y},"×"))},q=function(te,ee,ie,de,he){var fe=function(me){FP(me),w(!a)};return c.createElement("span",{onMouseDown:fe},x({label:ee,value:te,disabled:ie,closable:de,onClose:he}))},J=function(te){var ee=te.disabled,ie=te.label,de=te.value,he=!d&&!ee,fe=ie;if(typeof C=="number"&&(typeof ie=="string"||typeof ie=="number")){var le=String(fe);le.length>C&&(fe="".concat(le.slice(0,C),"..."))}var me=function(ge){ge&&ge.stopPropagation(),O(te)};return typeof x=="function"?q(de,fe,ee,he,me):G(te,fe,ee,he,me)},Q=function(te){var ee=typeof $=="function"?$(te):$;return G({title:ee},ee,!1)},ne=c.createElement("div",{className:"".concat(U,"-search"),style:{width:j},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},c.createElement(MT,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:Y,activeDescendantId:v,value:K,onKeyDown:M,onMouseDown:D,onChange:E,onPaste:P,onCompositionStart:R,onCompositionEnd:_,tabIndex:p,attrs:Qn(t,!0)}),c.createElement("span",{ref:T,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},K," ")),re=c.createElement(ma,{prefixCls:"".concat(U,"-overflow"),data:o,renderItem:J,renderRest:Q,suffix:ne,itemKey:kX,maxCount:b});return c.createElement(c.Fragment,null,re,!o.length&&!K&&c.createElement("span",{className:"".concat(U,"-placeholder")},u))},AX=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,y=t.activeValue,b=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.title,P=c.useState(!1),M=X(P,2),D=M[0],R=M[1],_=d==="combobox",T=_||v,k=m[0],N=p||"";_&&y&&!D&&(N=y),c.useEffect(function(){_&&R(!1)},[_,y]);var j=d!=="combobox"&&!f&&!v?!1:!!N,A=E===void 0?_T(k):E,B=c.useMemo(function(){return k?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},h)},[k,j,h,r]);return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(MT,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:T,activeDescendantId:u,value:N,onKeyDown:C,onMouseDown:S,onChange:function(H){R(!0),$(H)},onPaste:x,onCompositionStart:w,onCompositionEnd:O,tabIndex:g,attrs:Qn(t,!0),maxLength:_?b:void 0})),!_&&k?c.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:j?{visibility:"hidden"}:void 0},k.label):null,B)},BX=function(t,n){var r=c.useRef(null),o=c.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var p=ET(0),y=X(p,2),b=y[0],C=y[1],S=function(N){var j=N.which;(j===Ie.UP||j===Ie.DOWN)&&N.preventDefault(),g&&g(N),j===Ie.ENTER&&l==="tags"&&!o.current&&!i&&(m==null||m(N.target.value)),bX(j)&&h(!0)},$=function(){C(!0)},x=c.useRef(null),w=function(N){f(N,!0,o.current)!==!1&&h(!0)},O=function(){o.current=!0},E=function(N){o.current=!1,l!=="combobox"&&w(N.target.value)},P=function(N){var j=N.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var A=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(A,x.current)}x.current=null,w(j)},M=function(N){var j=N.clipboardData,A=j==null?void 0:j.getData("text");x.current=A||""},D=function(N){var j=N.target;if(j!==r.current){var A=document.body.style.msTouchAction!==void 0;A?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(N){var j=b();N.target!==r.current&&!j&&l!=="combobox"&&N.preventDefault(),(l!=="combobox"&&(!s||!j)||!i)&&(i&&d!==!1&&f("",!0,!1),h())},_={inputRef:r,onInputKeyDown:S,onInputMouseDown:$,onInputChange:P,onInputPaste:M,onInputCompositionStart:O,onInputCompositionEnd:E},T=l==="multiple"||l==="tags"?c.createElement(LX,be({},t,_)):c.createElement(AX,be({},t,_));return c.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:D,onMouseDown:R},T)},zX=c.forwardRef(BX);function HX(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,u=s===void 0?0:s,d=o.y,f=d===void 0?0:d,m=c.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],y=g[1],b=v[0],C=v[1];p===b||!["t","b"].includes(p)?h.top=f:p==="t"?h.top=0:h.bottom=0,y===C||!["l","r"].includes(y)?h.left=u:y==="l"?h.left=0:h.right=0}return c.createElement("div",{ref:m,className:Z("".concat(t,"-arrow"),i),style:h},l)}function VX(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?c.createElement(wr,be({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return c.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),l)})}):null}var WX=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),KX=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,p=e.motion,y=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,P=e.ready,M=e.offsetX,D=e.offsetY,R=e.offsetR,_=e.offsetB,T=e.onAlign,k=e.onPrepare,N=e.stretch,j=e.targetWidth,A=e.targetHeight,B=typeof n=="function"?n():n,z=s||u,H=(C==null?void 0:C.length)>0,V=c.useState(!C||!H),U=X(V,2),K=U[0],Y=U[1];if(Kt(function(){!K&&H&&i&&Y(!0)},[K,H,i]),!K)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(P||!s){var J,Q=v.points,ne=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),re=ne&&Q[0][1]==="r",oe=ne&&Q[0][0]==="b";re?(q.right=R,q.left=G):(q.left=M,q.right=G),oe?(q.bottom=_,q.top=G):(q.top=D,q.bottom=G)}var te={};return N&&(N.includes("height")&&A?te.height=A:N.includes("minHeight")&&A&&(te.minHeight=A),N.includes("width")&&j?te.width=j:N.includes("minWidth")&&j&&(te.minWidth=j)),s||(te.pointerEvents="none"),c.createElement($,{open:b||z,getContainer:C&&function(){return C(i)},autoDestroy:S},c.createElement(VX,{prefixCls:o,open:s,zIndex:x,mask:m,motion:y}),c.createElement(Sr,{onResize:T,disabled:!s},function(ee){return c.createElement(wr,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:k,onEnterPrepare:k,visible:s,onVisibleChanged:function(de){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,de),l(de)}}),function(ie,de){var he=ie.className,fe=ie.style,le=Z(o,he,r);return c.createElement("div",{ref:Er(ee,t,de),className:le,style:I(I(I(I({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},q),te),fe),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:E,onClick:f},h&&c.createElement(HX,{prefixCls:o,arrow:h,arrowPos:g,align:v}),c.createElement(WX,{cache:!s&&!d},B))})}))}),UX=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Si(n),a=c.useCallback(function(l){Lx(t,r?r(l):l)},[r]),i=za(a,n.ref);return o?c.cloneElement(n,{ref:i}):n}),kP=c.createContext(null);function LP(e){return e?Array.isArray(e)?e:[e]:[]}function GX(e,t,n,r){return c.useMemo(function(){var o=LP(n??t),a=LP(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function qX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function YX(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function cd(e){return _f(parseFloat(e),0)}function BP(e,t){var n=I({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=mm(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=cd(l),y=cd(s),b=cd(u),C=cd(d),S=_f(Math.round(f.width/g*1e3)/1e3),$=_f(Math.round(f.height/m*1e3)/1e3),x=(g-v-b-C)*S,w=(m-h-p-y)*$,O=p*$,E=y*$,P=b*S,M=C*S,D=0,R=0;if(a==="clip"){var _=cd(i);D=_*S,R=_*$}var T=f.x+P-D,k=f.y+O-R,N=T+f.width+2*D-P-M-x,j=k+f.height+2*R-O-E-w;n.left=Math.max(n.left,T),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,j)}}),n}function zP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function HP(e,t){var n=t||[],r=X(n,2),o=r[0],a=r[1];return[zP(e.width,o),zP(e.height,a)]}function VP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ds(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Ri(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function XX(e,t,n,r,o,a,i){var l=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=X(l,2),u=s[0],d=s[1],f=c.useRef(0),m=c.useMemo(function(){return t?PC(t):[]},[t]),h=c.useRef({}),g=function(){h.current={}};e||g();var v=qt(function(){if(t&&n&&e){let Xt=function(Oi,Xo){var Ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le,Ii=B.x+Oi,Ea=B.y+Xo,Ol=Ii+J,Il=Ea+q,Ml=Math.max(Ii,Ua.left),Ku=Math.max(Ea,Ua.top),xt=Math.min(Ol,Ua.right),Nt=Math.min(Il,Ua.bottom);return Math.max(0,(xt-Ml)*(Nt-Ku))},Jr=function(){Ct=B.y+pe,st=Ct+q,Qe=B.x+se,Ae=Qe+J};var Ft=Xt,Gt=Jr,b,C,S=t,$=S.ownerDocument,x=mm(S),w=x.getComputedStyle(S),O=w.width,E=w.height,P=w.position,M=S.style.left,D=S.style.top,R=S.style.right,_=S.style.bottom,T=S.style.overflow,k=I(I({},o[r]),a),N=$.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(N),N.style.left="".concat(S.offsetLeft,"px"),N.style.top="".concat(S.offsetTop,"px"),N.style.position=P,N.style.height="".concat(S.offsetHeight,"px"),N.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();j={x:A.x,y:A.y,width:A.width,height:A.height}}var B=S.getBoundingClientRect(),z=$.documentElement,H=z.clientWidth,V=z.clientHeight,U=z.scrollWidth,K=z.scrollHeight,Y=z.scrollTop,G=z.scrollLeft,q=B.height,J=B.width,Q=j.height,ne=j.width,re={left:0,top:0,right:H,bottom:V},oe={left:-G,top:-Y,right:U-G,bottom:K-Y},te=k.htmlRegion,ee="visible",ie="visibleFirst";te!=="scroll"&&te!==ie&&(te=ee);var de=te===ie,he=BP(oe,m),fe=BP(re,m),le=te===ee?fe:he,me=de?fe:le;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ye=S.getBoundingClientRect();S.style.left=M,S.style.top=D,S.style.right=R,S.style.bottom=_,S.style.overflow=T,(C=S.parentElement)===null||C===void 0||C.removeChild(N);var ge=_f(Math.round(J/parseFloat(O)*1e3)/1e3),ve=_f(Math.round(q/parseFloat(E)*1e3)/1e3);if(ge===0||ve===0||Qg(n)&&!cm(n))return;var $e=k.offset,Ce=k.targetOffset,Oe=HP(B,$e),Re=X(Oe,2),Ee=Re[0],_e=Re[1],Fe=HP(j,Ce),qe=X(Fe,2),Ze=qe[0],ke=qe[1];j.x-=Ze,j.y-=ke;var Be=k.points||[],Ue=X(Be,2),Je=Ue[0],nt=Ue[1],mt=VP(nt),gt=VP(Je),yt=Ds(j,mt),It=Ds(B,gt),ue=I({},k),se=yt.x-It.x+Ee,pe=yt.y-It.y+_e,Se=Xt(se,pe),xe=Xt(se,pe,fe),Ne=Ds(j,["t","l"]),We=Ds(B,["t","l"]),He=Ds(j,["b","r"]),Me=Ds(B,["b","r"]),Le=k.overflow||{},Xe=Le.adjustX,Ke=Le.adjustY,it=Le.shiftX,ot=Le.shiftY,Mt=function(Xo){return typeof Xo=="boolean"?Xo:Xo>=0},Ct,st,Qe,Ae;Jr();var Pe=Mt(Ke),je=gt[0]===mt[0];if(Pe&>[0]==="t"&&(st>me.bottom||h.current.bt)){var Ve=pe;je?Ve-=q-Q:Ve=Ne.y-Me.y-_e;var tt=Xt(se,Ve),pt=Xt(se,Ve,fe);tt>Se||tt===Se&&(!de||pt>=xe)?(h.current.bt=!0,pe=Ve,_e=-_e,ue.points=[Ri(gt,0),Ri(mt,0)]):h.current.bt=!1}if(Pe&>[0]==="b"&&(CtSe||ct===Se&&(!de||lt>=xe)?(h.current.tb=!0,pe=ut,_e=-_e,ue.points=[Ri(gt,0),Ri(mt,0)]):h.current.tb=!1}var ht=Mt(Xe),ft=gt[1]===mt[1];if(ht&>[1]==="l"&&(Ae>me.right||h.current.rl)){var Lt=se;ft?Lt-=J-ne:Lt=Ne.x-Me.x-Ee;var Cn=Xt(Lt,pe),mn=Xt(Lt,pe,fe);Cn>Se||Cn===Se&&(!de||mn>=xe)?(h.current.rl=!0,se=Lt,Ee=-Ee,ue.points=[Ri(gt,1),Ri(mt,1)]):h.current.rl=!1}if(ht&>[1]==="r"&&(QeSe||Tt===Se&&(!de||jt>=xe)?(h.current.lr=!0,se=dt,Ee=-Ee,ue.points=[Ri(gt,1),Ri(mt,1)]):h.current.lr=!1}Jr();var Qt=it===!0?0:it;typeof Qt=="number"&&(Qefe.right&&(se-=Ae-fe.right-Ee,j.x>fe.right-Qt&&(se+=j.x-fe.right+Qt)));var kn=ot===!0?0:ot;typeof kn=="number"&&(Ctfe.bottom&&(pe-=st-fe.bottom-_e,j.y>fe.bottom-kn&&(pe+=j.y-fe.bottom+kn)));var jr=B.x+se,Dr=jr+J,dr=B.y+pe,Zr=dr+q,Yt=j.x,Bt=Yt+ne,vt=j.y,$t=vt+Q,Ut=Math.max(jr,Yt),vn=Math.min(Dr,Bt),Zt=(Ut+vn)/2,hn=Zt-jr,Ot=Math.max(dr,vt),St=Math.min(Zr,$t),en=(Ot+St)/2,$n=en-dr;i==null||i(t,ue);var Gn=ye.right-B.x-(se+B.width),Vt=ye.bottom-B.y-(pe+B.height);d({ready:!0,offsetX:se/ge,offsetY:pe/ve,offsetR:Gn/ge,offsetB:Vt/ve,arrowX:hn/ge,arrowY:$n/ve,scaleX:ge,scaleY:ve,align:ue})}}),p=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&v()})},y=function(){d(function(C){return I(I({},C),{},{ready:!1})})};return Kt(y,[r]),Kt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function QX(e,t,n,r,o){Kt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,a=t,i=n,l=PC(a),s=PC(i),u=mm(i),d=new Set([u].concat(Te(l),Te(s)));return d.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(h){h.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function ZX(e,t,n,r,o,a,i,l){var s=c.useRef(e);s.current=e,c.useEffect(function(){if(t&&r&&(!o||a)){var u=function(h){var g=h.target;s.current&&!i(g)&&l(!1)},d=mm(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=ip(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,a])}var JX=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function eQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dm,t=c.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,y=p===void 0?.1:p,b=n.focusDelay,C=n.blurDelay,S=n.mask,$=n.maskClosable,x=$===void 0?!0:$,w=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,P=n.destroyPopupOnHide,M=n.popup,D=n.popupClassName,R=n.popupStyle,_=n.popupPlacement,T=n.builtinPlacements,k=T===void 0?{}:T,N=n.popupAlign,j=n.zIndex,A=n.stretch,B=n.getPopupClassNameFromAlign,z=n.fresh,H=n.alignPoint,V=n.onPopupClick,U=n.onPopupAlign,K=n.arrow,Y=n.popupMotion,G=n.maskMotion,q=n.popupTransitionName,J=n.popupAnimation,Q=n.maskTransitionName,ne=n.maskAnimation,re=n.className,oe=n.getTriggerDOMNode,te=ze(n,JX),ee=E||P||!1,ie=c.useState(!1),de=X(ie,2),he=de[0],fe=de[1];Kt(function(){fe(Wh())},[]);var le=c.useRef({}),me=c.useContext(kP),ye=c.useMemo(function(){return{registerSubPopup:function(Nt,Rn){le.current[Nt]=Rn,me==null||me.registerSubPopup(Nt,Rn)}}},[me]),ge=nT(),ve=c.useState(null),$e=X(ve,2),Ce=$e[0],Oe=$e[1],Re=qt(function(xt){Qg(xt)&&Ce!==xt&&Oe(xt),me==null||me.registerSubPopup(ge,xt)}),Ee=c.useState(null),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=c.useRef(null),ke=qt(function(xt){Qg(xt)&&Fe!==xt&&(qe(xt),Ze.current=xt)}),Be=c.Children.only(i),Ue=(Be==null?void 0:Be.props)||{},Je={},nt=qt(function(xt){var Nt,Rn,En=Fe;return(En==null?void 0:En.contains(xt))||((Nt=ip(En))===null||Nt===void 0?void 0:Nt.host)===xt||xt===En||(Ce==null?void 0:Ce.contains(xt))||((Rn=ip(Ce))===null||Rn===void 0?void 0:Rn.host)===xt||xt===Ce||Object.values(le.current).some(function(Sn){return(Sn==null?void 0:Sn.contains(xt))||xt===Sn})}),mt=AP(a,Y,J,q),gt=AP(a,G,ne,Q),yt=c.useState(m||!1),It=X(yt,2),ue=It[0],se=It[1],pe=f??ue,Se=qt(function(xt){f===void 0&&se(xt)});Kt(function(){se(f||!1)},[f]);var xe=c.useRef(pe);xe.current=pe;var Ne=c.useRef([]);Ne.current=[];var We=qt(function(xt){var Nt;Se(xt),((Nt=Ne.current[Ne.current.length-1])!==null&&Nt!==void 0?Nt:pe)!==xt&&(Ne.current.push(xt),h==null||h(xt))}),He=c.useRef(),Me=function(){clearTimeout(He.current)},Le=function(Nt){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Me(),Rn===0?We(Nt):He.current=setTimeout(function(){We(Nt)},Rn*1e3)};c.useEffect(function(){return Me},[]);var Xe=c.useState(!1),Ke=X(Xe,2),it=Ke[0],ot=Ke[1];Kt(function(xt){(!xt||pe)&&ot(!0)},[pe]);var Mt=c.useState(null),Ct=X(Mt,2),st=Ct[0],Qe=Ct[1],Ae=c.useState([0,0]),Pe=X(Ae,2),je=Pe[0],Ve=Pe[1],tt=function(Nt){Ve([Nt.clientX,Nt.clientY])},pt=XX(pe,Ce,H?je:Fe,_,k,N,U),ut=X(pt,11),ct=ut[0],lt=ut[1],ht=ut[2],ft=ut[3],Lt=ut[4],Cn=ut[5],mn=ut[6],dt=ut[7],Tt=ut[8],jt=ut[9],Qt=ut[10],kn=GX(he,s,u,d),jr=X(kn,2),Dr=jr[0],dr=jr[1],Zr=Dr.has("click"),Yt=dr.has("click")||dr.has("contextMenu"),Bt=qt(function(){it||Qt()}),vt=function(){xe.current&&H&&Yt&&Le(!1)};QX(pe,Fe,Ce,Bt,vt),Kt(function(){Bt()},[je,_]),Kt(function(){pe&&!(k!=null&&k[_])&&Bt()},[JSON.stringify(N)]);var $t=c.useMemo(function(){var xt=YX(k,a,jt,H);return Z(xt,B==null?void 0:B(jt))},[jt,B,k,a,H]);c.useImperativeHandle(r,function(){return{nativeElement:Ze.current,forceAlign:Bt}});var Ut=c.useState(0),vn=X(Ut,2),Zt=vn[0],hn=vn[1],Ot=c.useState(0),St=X(Ot,2),en=St[0],$n=St[1],Gn=function(){if(A&&Fe){var Nt=Fe.getBoundingClientRect();hn(Nt.width),$n(Nt.height)}},Vt=function(){Gn(),Bt()},Ft=function(Nt){ot(!1),Qt(),g==null||g(Nt)},Gt=function(){return new Promise(function(Nt){Gn(),Qe(function(){return Nt})})};Kt(function(){st&&(Qt(),st(),Qe(null))},[st]);function Xt(xt,Nt,Rn,En){Je[xt]=function(Sn){var Is;En==null||En(Sn),Le(Nt,Rn);for(var Ms=arguments.length,Um=new Array(Ms>1?Ms-1:0),Rl=1;Rl1?Rn-1:0),Sn=1;Sn1?Rn-1:0),Sn=1;Sn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=TT(n,!1),i=a.label,l=a.value,s=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(h){if(m||!(s in h)){var g=h[l];o.push({key:WP(h,o.length),groupOption:m,data:h,label:h[i],value:g})}else{var v=h[u];v===void 0&&r&&(v=h.label),o.push({key:WP(h,o.length),group:!0,data:h,label:v}),d(h[s],!0)}})}return d(e,!1),o}function IC(e){var t=I({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var iQ=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,u){var d=zR(u),f=d[0],m=d.slice(1);if(!f)return[s];var h=s.split(f);return o=o||h.length>1,h.reduce(function(g,v){return[].concat(Te(g),Te(l(v,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},f2=c.createContext(null),lQ=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sQ=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],MC=function(t){return t==="tags"||t==="multiple"},m2=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,v=e.onClear,p=e.mode,y=e.disabled,b=e.loading,C=e.getInputElement,S=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,P=e.activeDescendantId,M=e.searchValue,D=e.autoClearSearchValue,R=e.onSearch,_=e.onSearchSplit,T=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,j=e.clearIcon,A=e.OptionList,B=e.animation,z=e.transitionName,H=e.dropdownStyle,V=e.dropdownClassName,U=e.dropdownMatchSelectWidth,K=e.dropdownRender,Y=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,J=e.getPopupContainer,Q=e.showAction,ne=Q===void 0?[]:Q,re=e.onFocus,oe=e.onBlur,te=e.onKeyUp,ee=e.onKeyDown,ie=e.onMouseDown,de=ze(e,lQ),he=MC(p),fe=(i!==void 0?i:he)||p==="combobox",le=I({},de);sQ.forEach(function(vt){delete le[vt]}),u==null||u.forEach(function(vt){delete le[vt]});var me=c.useState(!1),ye=X(me,2),ge=ye[0],ve=ye[1];c.useEffect(function(){ve(Wh())},[]);var $e=c.useRef(null),Ce=c.useRef(null),Oe=c.useRef(null),Re=c.useRef(null),Ee=c.useRef(null),_e=c.useRef(!1),Fe=hX(),qe=X(Fe,3),Ze=qe[0],ke=qe[1],Be=qe[2];c.useImperativeHandle(t,function(){var vt,$t;return{focus:(vt=Re.current)===null||vt===void 0?void 0:vt.focus,blur:($t=Re.current)===null||$t===void 0?void 0:$t.blur,scrollTo:function(vn){var Zt;return(Zt=Ee.current)===null||Zt===void 0?void 0:Zt.scrollTo(vn)}}});var Ue=c.useMemo(function(){var vt;if(p!=="combobox")return M;var $t=(vt=d[0])===null||vt===void 0?void 0:vt.value;return typeof $t=="string"||typeof $t=="number"?String($t):""},[M,p,d]),Je=p==="combobox"&&typeof C=="function"&&C()||null,nt=typeof S=="function"&&S(),mt=za(Ce,nt==null||(n=nt.props)===null||n===void 0?void 0:n.ref),gt=c.useState(!1),yt=X(gt,2),It=yt[0],ue=yt[1];Kt(function(){ue(!0)},[]);var se=Pt(!1,{defaultValue:x,value:$}),pe=X(se,2),Se=pe[0],xe=pe[1],Ne=It?Se:!1,We=!g&&m;(y||We&&Ne&&p==="combobox")&&(Ne=!1);var He=We?!1:Ne,Me=c.useCallback(function(vt){var $t=vt!==void 0?vt:!Ne;y||(xe($t),Ne!==$t&&(w==null||w($t)))},[y,Ne,xe,w]),Le=c.useMemo(function(){return(T||[]).some(function(vt){return[` `,`\r -`].includes(vt)})},[T]),Xe=c.useContext(u2)||{},Ke=Xe.maxCount,it=Xe.rawValues,ot=function($t,Ut,vn){if(!(he&&wC(Ke)&&(it==null?void 0:it.size)>=Ke)){var Zt=!0,hn=$t;E==null||E(null);var Ot=HY($t,T,wC(Ke)?Ke-it.size:void 0),St=vn?null:Ot;return p!=="combobox"&&St&&(hn="",_==null||_(St),Me(!1),Zt=!1),R&&Ue!==hn&&R(hn,{source:Ut?"typing":"effect"}),Zt}},Mt=function($t){!$t||!$t.trim()||R($t,{source:"submit"})};c.useEffect(function(){!Ne&&!he&&p!=="combobox"&&ot("",!1,!1)},[Ne]),c.useEffect(function(){Se&&y&&xe(!1),y&&!_e.current&&ke(!1)},[y]);var Ct=iT(),st=X(Ct,2),Qe=st[0],Ae=st[1],Pe=function($t){var Ut=Qe(),vn=$t.which;if(vn===Ie.ENTER&&(p!=="combobox"&&$t.preventDefault(),Ne||Me(!0)),Ae(!!Ue),vn===Ie.BACKSPACE&&!Ut&&he&&!Ue&&d.length){for(var Zt=Te(d),hn=null,Ot=Zt.length-1;Ot>=0;Ot-=1){var St=Zt[Ot];if(!St.disabled){Zt.splice(Ot,1),hn=St;break}}hn&&f(Zt,{type:"remove",values:[hn]})}for(var en=arguments.length,$n=new Array(en>1?en-1:0),Gn=1;Gn1?Ut-1:0),Zt=1;Zt1?Ot-1:0),en=1;en0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(p,y){if(p&&p.offsetParent){var b=Vd(p),C=b.offsetHeight;s.current.get(y)!==C&&s.current.set(y,b.offsetHeight)}}),i(function(p){return p+1})};h?g():u.current=At(g)}function m(h,g){var v=e(h),p=l.current.get(v);g?(l.current.set(v,g),f()):l.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h))}return c.useEffect(function(){return d},[]),[m,f,s.current,a]}var YY=10;function XY(e,t,n,r,o,a,i,l){var s=c.useRef(),u=c.useState(null),d=X(u,2),f=d[0],m=d[1];return Kt(function(){if(f&&f.times=0;_-=1){var T=o(t[_]),k=n.get(T);if(k===void 0){b=!0;break}if(R-=k,R<=0)break}switch($){case"top":S=w-p;break;case"bottom":S=O-y+p;break;default:{var N=e.current.scrollTop,j=N+y;wj&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(b=!0)}b&&m(I(I({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(h){if(h==null){l();return}if(At.cancel(s.current),typeof h=="number")i(h);else if(h&&et(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=t.findIndex(function(b){return o(b)===h.key});var p=h.offset,y=p===void 0?0:p;m({times:0,index:g,offset:y,originAlign:v})}}}function QY(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r"u"?"undefined":et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const gT=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=c.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&a.current.top||i>0&&a.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function JY(e,t,n,r,o){var a=c.useRef(0),i=c.useRef(null),l=c.useRef(null),s=c.useRef(!1),u=gT(t,n);function d(p,y){At.cancel(i.current),a.current+=y,l.current=y,!u(y)&&(IP||p.preventDefault(),i.current=At(function(){var b=s.current?10:1;o(a.current*b),a.current=0}))}function f(p,y){o(y,!0),IP||p.preventDefault()}var m=c.useRef(null),h=c.useRef(null);function g(p){if(e){At.cancel(h.current),h.current=At(function(){m.current=null},2);var y=p.deltaX,b=p.deltaY,C=p.shiftKey,S=y,$=b;(m.current==="sx"||!m.current&&C&&b&&!y)&&(S=b,$=0,m.current="sx");var x=Math.abs(S),w=Math.abs($);m.current===null&&(m.current=r&&x>w?"x":"y"),m.current==="y"?d(p,$):f(p,S)}}function v(p){e&&(s.current=p.detail===l.current)}return[g,v]}var eX=14/15;function tX(e,t,n){var r=c.useRef(!1),o=c.useRef(0),a=c.useRef(null),i=c.useRef(null),l,s=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=eX,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.current)},16)}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",u))};l=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",u))},Kt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(i.current)}},[e])}var nX=20;function MP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,nX),Math.floor(n)}function rX(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=X(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),h=i.get(f);if(m===void 0||h===void 0)for(var g=e.length,v=l.length;va||!!v),M=g==="rtl",D=Z(r,L({},"".concat(r,"-rtl"),M),o),R=d||aX,_=c.useRef(),T=c.useRef(),k=c.useState(0),N=X(k,2),j=N[0],A=N[1],B=c.useState(0),z=X(B,2),H=z[0],V=z[1],U=c.useState(!1),K=X(U,2),Y=K[0],G=K[1],q=function(){G(!0)},J=function(){G(!1)},Q=c.useCallback(function(Pe){return typeof m=="function"?m(Pe):Pe==null?void 0:Pe[m]},[m]),ne={getKey:Q};function re(Pe){A(function(je){var Ve;typeof Pe=="function"?Ve=Pe(je):Ve=Pe;var tt=gt(Ve);return _.current.scrollTop=tt,tt})}var oe=c.useRef({start:0,end:R.length}),te=c.useRef(),ee=ZY(R,Q),ie=X(ee,1),de=ie[0];te.current=de;var he=qY(Q,null,null),fe=X(he,4),le=fe[0],me=fe[1],ye=fe[2],ge=fe[3],ve=c.useMemo(function(){if(!E)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!P){var Pe;return{scrollHeight:((Pe=T.current)===null||Pe===void 0?void 0:Pe.offsetHeight)||0,start:0,end:R.length-1,offset:void 0}}for(var je=0,Ve,tt,pt,ut=R.length,ct=0;ct=j&&Ve===void 0&&(Ve=ct,tt=je),Lt>j+a&&pt===void 0&&(pt=ct),je=Lt}return Ve===void 0&&(Ve=0,tt=0,pt=Math.ceil(a/i)),pt===void 0&&(pt=R.length-1),pt=Math.min(pt+1,R.length-1),{scrollHeight:je,start:Ve,end:pt,offset:tt}},[P,E,j,R,ge,a]),$e=ve.scrollHeight,Ce=ve.start,Oe=ve.end,Re=ve.offset;oe.current.start=Ce,oe.current.end=Oe;var Ee=c.useState({width:0,height:a}),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=function(je){qe({width:je.width||je.offsetWidth,height:je.height||je.offsetHeight})},ke=c.useRef(),Be=c.useRef(),Ue=c.useMemo(function(){return MP(Fe.width,v)},[Fe.width,v]),Je=c.useMemo(function(){return MP(Fe.height,$e)},[Fe.height,$e]),nt=$e-a,mt=c.useRef(nt);mt.current=nt;function gt(Pe){var je=Pe;return Number.isNaN(mt.current)||(je=Math.min(je,mt.current)),je=Math.max(je,0),je}var yt=j<=0,It=j>=nt,ue=gT(yt,It),se=function(){return{x:M?-H:H,y:j}},pe=c.useRef(se()),Se=qt(function(){if(C){var Pe=se();(pe.current.x!==Pe.x||pe.current.y!==Pe.y)&&(C(Pe),pe.current=Pe)}});function xe(Pe,je){var Ve=Pe;je?(ja.flushSync(function(){V(Ve)}),Se()):re(Ve)}function Ne(Pe){var je=Pe.currentTarget.scrollTop;je!==j&&re(je),b==null||b(Pe),Se()}var We=function(je){var Ve=je,tt=v-Fe.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,tt),Ve},He=qt(function(Pe,je){je?(ja.flushSync(function(){V(function(Ve){var tt=Ve+(M?-Pe:Pe);return We(tt)})}),Se()):re(function(Ve){var tt=Ve+Pe;return tt})}),Me=JY(E,yt,It,!!v,He),Le=X(Me,2),Xe=Le[0],Ke=Le[1];tX(E,_,function(Pe,je){return ue(Pe,je)?!1:(Xe({preventDefault:function(){},deltaY:Pe}),!0)}),Kt(function(){function Pe(Ve){E&&Ve.preventDefault()}var je=_.current;return je.addEventListener("wheel",Xe),je.addEventListener("DOMMouseScroll",Ke),je.addEventListener("MozMousePixelScroll",Pe),function(){je.removeEventListener("wheel",Xe),je.removeEventListener("DOMMouseScroll",Ke),je.removeEventListener("MozMousePixelScroll",Pe)}},[E]),Kt(function(){v&&V(function(Pe){return We(Pe)})},[Fe.width,v]);var it=function(){var je,Ve;(je=ke.current)===null||je===void 0||je.delayHidden(),(Ve=Be.current)===null||Ve===void 0||Ve.delayHidden()},ot=XY(_,R,ye,i,Q,function(){return me(!0)},re,it);c.useImperativeHandle(t,function(){return{getScrollInfo:se,scrollTo:function(je){function Ve(tt){return tt&&et(tt)==="object"&&("left"in tt||"top"in tt)}Ve(je)?(je.left!==void 0&&V(We(je.left)),ot(je.top)):ot(je)}}}),Kt(function(){if(S){var Pe=R.slice(Ce,Oe+1);S(Pe,R)}},[Ce,Oe,R]);var Mt=rX(R,Q,ye,i),Ct=x==null?void 0:x({start:Ce,end:Oe,virtual:P,offsetX:H,offsetY:Re,rtl:M,getSize:Mt}),st=UY(R,Ce,Oe,v,le,f,ne),Qe=null;a&&(Qe=I(L({},s?"height":"maxHeight",a),iX),E&&(Qe.overflowY="hidden",v&&(Qe.overflowX="hidden"),Y&&(Qe.pointerEvents="none")));var Ae={};return M&&(Ae.dir="rtl"),c.createElement("div",be({style:I(I({},u),{},{position:"relative"}),className:D},Ae,O),c.createElement(Sr,{onResize:Ze},c.createElement(y,{className:"".concat(r,"-holder"),style:Qe,ref:_,onScroll:Ne,onMouseEnter:it},c.createElement(vT,{prefixCls:r,height:$e,offsetX:H,offsetY:Re,scrollWidth:v,onInnerResize:me,ref:T,innerProps:$,rtl:M,extra:Ct},st))),P&&$e>a&&c.createElement(OP,{ref:ke,prefixCls:r,scrollOffset:j,scrollRange:$e,rtl:M,onScroll:xe,onStartMove:q,onStopMove:J,spinSize:Je,containerSize:Fe.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),P&&v>Fe.width&&c.createElement(OP,{ref:Be,prefixCls:r,scrollOffset:H,scrollRange:v,rtl:M,onScroll:xe,onStartMove:q,onStopMove:J,spinSize:Ue,containerSize:Fe.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var v2=c.forwardRef(lX);v2.displayName="List";function sX(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cX=["disabled","title","children","style","className"];function RP(e){return typeof e=="string"||typeof e=="number"}var uX=function(t,n){var r=c2(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,h=c.useContext(u2),g=h.maxCount,v=h.flattenOptions,p=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,C=h.menuItemSelectedIcon,S=h.rawValues,$=h.fieldNames,x=h.virtual,w=h.direction,O=h.listHeight,E=h.listItemHeight,P=h.optionRender,M="".concat(o,"-item"),D=du(function(){return v},[i,v],function(Q,ne){return ne[0]&&Q[1]!==ne[1]}),R=c.useRef(null),_=c.useMemo(function(){return l&&wC(g)&&(S==null?void 0:S.size)>=g},[l,g,S==null?void 0:S.size]),T=function(ne){ne.preventDefault()},k=function(ne){var re;(re=R.current)===null||re===void 0||re.scrollTo(typeof ne=="number"?{index:ne}:ne)},N=function(ne){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=D.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;z(ne);var oe={source:re?"keyboard":"mouse"},te=D[ne];if(!te){p(null,-1,oe);return}p(te.value,ne,oe)};c.useEffect(function(){H(y!==!1?N(0):-1)},[D.length,u]);var V=c.useCallback(function(Q){return S.has(Q)&&s!=="combobox"},[s,Te(S).toString(),S.size]);c.useEffect(function(){var Q=setTimeout(function(){if(!l&&i&&S.size===1){var re=Array.from(S)[0],oe=D.findIndex(function(te){var ee=te.data;return ee.value===re});oe!==-1&&(H(oe),k(oe))}});if(i){var ne;(ne=R.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(Q)}},[i,u]);var U=function(ne){ne!==void 0&&b(ne,{selected:!S.has(ne)}),l||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var re=ne.which,oe=ne.ctrlKey;switch(re){case Ie.N:case Ie.P:case Ie.UP:case Ie.DOWN:{var te=0;if(re===Ie.UP?te=-1:re===Ie.DOWN?te=1:sX()&&oe&&(re===Ie.N?te=1:re===Ie.P&&(te=-1)),te!==0){var ee=N(B+te,te);k(ee),H(ee,!0)}break}case Ie.ENTER:{var ie,de=D[B];de&&!(de!=null&&(ie=de.data)!==null&&ie!==void 0&&ie.disabled)&&!_?U(de.value):U(void 0),i&&ne.preventDefault();break}case Ie.ESC:d(!1),i&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){k(ne)}}}),D.length===0)return c.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:T},f);var K=Object.keys($).map(function(Q){return $[Q]}),Y=function(ne){return ne.label};function G(Q,ne){var re=Q.group;return{role:re?"presentation":"option",id:"".concat(a,"_list_").concat(ne)}}var q=function(ne){var re=D[ne];if(!re)return null;var oe=re.data||{},te=oe.value,ee=re.group,ie=Qn(oe,!0),de=Y(re);return re?c.createElement("div",be({"aria-label":typeof de=="string"&&!ee?de:null},ie,{key:ne},G(re,ne),{"aria-selected":V(te)}),te):null},J={role:"listbox",id:"".concat(a,"_list")};return c.createElement(c.Fragment,null,x&&c.createElement("div",be({},J,{style:{height:0,width:0,overflow:"hidden"}}),q(B-1),q(B),q(B+1)),c.createElement(v2,{itemKey:"key",ref:R,data:D,height:O,itemHeight:E,fullHeight:!1,onMouseDown:T,onScroll:m,virtual:x,direction:w,innerProps:x?null:J},function(Q,ne){var re=Q.group,oe=Q.groupOption,te=Q.data,ee=Q.label,ie=Q.value,de=te.key;if(re){var he,fe=(he=te.title)!==null&&he!==void 0?he:RP(ee)?ee.toString():void 0;return c.createElement("div",{className:Z(M,"".concat(M,"-group"),te.className),title:fe},ee!==void 0?ee:de)}var le=te.disabled,me=te.title;te.children;var ye=te.style,ge=te.className,ve=ze(te,cX),$e=gn(ve,K),Ce=V(ie),Oe=le||!Ce&&_,Re="".concat(M,"-option"),Ee=Z(M,Re,ge,L(L(L(L({},"".concat(Re,"-grouped"),oe),"".concat(Re,"-active"),B===ne&&!Oe),"".concat(Re,"-disabled"),Oe),"".concat(Re,"-selected"),Ce)),_e=Y(Q),Fe=!C||typeof C=="function"||Ce,qe=typeof _e=="number"?_e:_e||ie,Ze=RP(qe)?qe.toString():void 0;return me!==void 0&&(Ze=me),c.createElement("div",be({},Qn($e),x?{}:G(Q,ne),{"aria-selected":Ce,className:Ee,title:Ze,onMouseMove:function(){B===ne||Oe||H(ne)},onClick:function(){Oe||U(ie)},style:ye}),c.createElement("div",{className:"".concat(Re,"-content")},typeof P=="function"?P(Q,{index:ne}):qe),c.isValidElement(C)||Ce,Fe&&c.createElement(Bh,{className:"".concat(M,"-option-state"),customizeIcon:C,customizeIconProps:{value:ie,disabled:Oe,isSelected:Ce}},Ce?"✓":null))}))},dX=c.forwardRef(uX);const fX=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var m;return I(I({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return s.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,s},[e,t]),o=c.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Wy(e,t){return dT(e).join("").toUpperCase().includes(t)}const mX=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(h,g){return o?Wy(g[o],d):g[a]?Wy(g[i!=="children"?i:"label"],d):Wy(g[l],d)},m=u?function(h){return $C(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=f(n,m(h));if(g)s.push(h);else{var v=h[a].filter(function(p){return f(n,m(p))});v.length&&s.push(I(I({},h),{},L({},a,v)))}return}f(n,m(h))&&s.push(h)}),s},[e,r,o,n,t])};var _P=0,vX=_r();function gX(){var e;return vX?(e=_P,_P+=1):e="TEST_OR_SSR",e}function g2(e){var t=c.useState(),n=X(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(gX()))},[]),e||r}var pX=["children","value"],hX=["children"];function yX(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=ze(r,pX);return I({key:n,value:a!==void 0?a:n,children:o},i)}function pT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sr(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=ze(l,hX);return t||!a?yX(n):I(I({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:pT(s)})}).filter(function(n){return n})}var bX=function(t,n,r,o,a){return c.useMemo(function(){var i=t,l=!t;l&&(i=pT(n));var s=new Map,u=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)},f=function m(h){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v2&&arguments[2]!==void 0?arguments[2]:{},Ke=Xe.source,it=Ke===void 0?"keyboard":Ke;It(Le),i&&r==="combobox"&&Me!==null&&it==="keyboard"&&nt(String(Me))},[i,r]),pe=function(Le,Xe,Ke){var it=function(){var tt,pt=$e(Le);return[A?{label:pt==null?void 0:pt[G.label],value:Le,key:(tt=pt==null?void 0:pt.key)!==null&&tt!==void 0?tt:Le}:Le,$C(pt)]};if(Xe&&h){var ot=it(),Mt=X(ot,2),Ct=Mt[0],st=Mt[1];h(Ct,st)}else if(!Xe&&g&&Ke!=="clear"){var Qe=it(),Ae=X(Qe,2),Pe=Ae[0],je=Ae[1];g(Pe,je)}},Se=TP(function(Me,Le){var Xe,Ke=U?Le.selected:!0;Ke?Xe=U?[].concat(Te(ve),[Me]):[Me]:Xe=ve.filter(function(it){return it.value!==Me}),ke(Xe),pe(Me,Ke),r==="combobox"?nt(""):(!EC||m)&&(ne(""),nt(""))}),xe=function(Le,Xe){ke(Le);var Ke=Xe.type,it=Xe.values;(Ke==="remove"||Ke==="clear")&&it.forEach(function(ot){pe(ot.value,!1,Ke)})},Ne=function(Le,Xe){if(ne(Le),nt(null),Xe.source==="submit"){var Ke=(Le||"").trim();if(Ke){var it=Array.from(new Set([].concat(Te(Oe),[Ke])));ke(it),pe(Ke,!0),ne("")}return}Xe.source!=="blur"&&(r==="combobox"&&ke(Le),d==null||d(Le))},We=function(Le){var Xe=Le;r!=="tags"&&(Xe=Le.map(function(it){var ot=te.get(it);return ot==null?void 0:ot.value}).filter(function(it){return it!==void 0}));var Ke=Array.from(new Set([].concat(Te(Oe),Te(Xe))));ke(Ke),Ke.forEach(function(it){pe(it,!0)})},He=c.useMemo(function(){var Me=P!==!1&&p!==!1;return I(I({},re),{},{flattenOptions:Ze,onActiveValue:se,defaultActiveFirstOption:ue,onSelect:Se,menuItemSelectedIcon:E,rawValues:Oe,fieldNames:G,virtual:Me,direction:M,listHeight:R,listItemHeight:T,childrenAsData:K,maxCount:z,optionRender:x})},[z,re,Ze,se,ue,Se,E,Oe,G,P,p,M,R,T,K,x]);return c.createElement(u2.Provider,{value:He},c.createElement(d2,be({},H,{id:V,prefixCls:a,ref:t,omitDomProps:SX,mode:r,displayValues:Ce,onDisplayValuesChange:xe,direction:M,searchValue:Q,onSearch:Ne,autoClearSearchValue:m,onSearchSplit:We,dropdownMatchSelectWidth:p,OptionList:dX,emptyOptions:!Ze.length,activeValue:Je,activeDescendantId:"".concat(V,"_list_").concat(yt)})))}),p2=wX;p2.Option=m2;p2.OptGroup=f2;function ya(e,t,n){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const xl=(e,t)=>t||e,$X=()=>{const[,e]=cr(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},EX=$X,PX=()=>{const[,e]=cr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=c.useMemo(()=>({borderColor:new Jt(t).onBackground(o).toHexShortString(),shadowColor:new Jt(n).onBackground(o).toHexShortString(),contentColor:new Jt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:a},c.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"}),c.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:l}))))},OX=PX,IX=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},MX=Ht("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=_t(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[IX(o)]});var RX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=hT,description:a,children:i,imageStyle:l,style:s}=e,u=RX(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=c.useContext(at),h=d("empty",r),[g,v,p]=MX(h),[y]=xi("Empty"),b=typeof a<"u"?a:y==null?void 0:y.description,C=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=c.createElement("img",{alt:C,src:o}):S=o,g(c.createElement("div",Object.assign({className:Z(v,p,h,m==null?void 0:m.className,{[`${h}-normal`]:o===yT,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},u),c.createElement("div",{className:`${h}-image`,style:l},S),b&&c.createElement("div",{className:`${h}-description`},b),i&&c.createElement("div",{className:`${h}-footer`},i)))};h2.PRESENTED_IMAGE_DEFAULT=hT;h2.PRESENTED_IMAGE_SIMPLE=yT;const ad=h2,_X=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(at),r=n("empty");switch(t){case"Table":case"List":return W.createElement(ad,{image:ad.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return W.createElement(ad,{image:ad.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return W.createElement(ad,null)}},mm=_X,TX=["outlined","borderless","filled"],wl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=c.useContext(Y_);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=TX.includes(r);return[r,o]},NX=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function y2(e,t){return e||NX(t)}const NP=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"}},jX=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Wt(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,[` +`].includes(vt)})},[T]),Xe=c.useContext(f2)||{},Ke=Xe.maxCount,it=Xe.rawValues,ot=function($t,Ut,vn){if(!(he&&OC(Ke)&&(it==null?void 0:it.size)>=Ke)){var Zt=!0,hn=$t;E==null||E(null);var Ot=iQ($t,T,OC(Ke)?Ke-it.size:void 0),St=vn?null:Ot;return p!=="combobox"&&St&&(hn="",_==null||_(St),Me(!1),Zt=!1),R&&Ue!==hn&&R(hn,{source:Ut?"typing":"effect"}),Zt}},Mt=function($t){!$t||!$t.trim()||R($t,{source:"submit"})};c.useEffect(function(){!Ne&&!he&&p!=="combobox"&&ot("",!1,!1)},[Ne]),c.useEffect(function(){Se&&y&&xe(!1),y&&!_e.current&&ke(!1)},[y]);var Ct=ET(),st=X(Ct,2),Qe=st[0],Ae=st[1],Pe=function($t){var Ut=Qe(),vn=$t.which;if(vn===Ie.ENTER&&(p!=="combobox"&&$t.preventDefault(),Ne||Me(!0)),Ae(!!Ue),vn===Ie.BACKSPACE&&!Ut&&he&&!Ue&&d.length){for(var Zt=Te(d),hn=null,Ot=Zt.length-1;Ot>=0;Ot-=1){var St=Zt[Ot];if(!St.disabled){Zt.splice(Ot,1),hn=St;break}}hn&&f(Zt,{type:"remove",values:[hn]})}for(var en=arguments.length,$n=new Array(en>1?en-1:0),Gn=1;Gn1?Ut-1:0),Zt=1;Zt1?Ot-1:0),en=1;en0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(p,y){if(p&&p.offsetParent){var b=Wd(p),C=b.offsetHeight;s.current.get(y)!==C&&s.current.set(y,b.offsetHeight)}}),i(function(p){return p+1})};h?g():u.current=At(g)}function m(h,g){var v=e(h),p=l.current.get(v);g?(l.current.set(v,g),f()):l.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h))}return c.useEffect(function(){return d},[]),[m,f,s.current,a]}var mQ=10;function vQ(e,t,n,r,o,a,i,l){var s=c.useRef(),u=c.useState(null),d=X(u,2),f=d[0],m=d[1];return Kt(function(){if(f&&f.times=0;_-=1){var T=o(t[_]),k=n.get(T);if(k===void 0){b=!0;break}if(R-=k,R<=0)break}switch($){case"top":S=w-p;break;case"bottom":S=O-y+p;break;default:{var N=e.current.scrollTop,j=N+y;wj&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(b=!0)}b&&m(I(I({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(h){if(h==null){l();return}if(At.cancel(s.current),typeof h=="number")i(h);else if(h&&et(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=t.findIndex(function(b){return o(b)===h.key});var p=h.offset,y=p===void 0?0:p;m({times:0,index:g,offset:y,originAlign:v})}}}function gQ(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r"u"?"undefined":et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const jT=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=c.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&a.current.top||i>0&&a.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function hQ(e,t,n,r,o){var a=c.useRef(0),i=c.useRef(null),l=c.useRef(null),s=c.useRef(!1),u=jT(t,n);function d(p,y){At.cancel(i.current),a.current+=y,l.current=y,!u(y)&&(GP||p.preventDefault(),i.current=At(function(){var b=s.current?10:1;o(a.current*b),a.current=0}))}function f(p,y){o(y,!0),GP||p.preventDefault()}var m=c.useRef(null),h=c.useRef(null);function g(p){if(e){At.cancel(h.current),h.current=At(function(){m.current=null},2);var y=p.deltaX,b=p.deltaY,C=p.shiftKey,S=y,$=b;(m.current==="sx"||!m.current&&C&&b&&!y)&&(S=b,$=0,m.current="sx");var x=Math.abs(S),w=Math.abs($);m.current===null&&(m.current=r&&x>w?"x":"y"),m.current==="y"?d(p,$):f(p,S)}}function v(p){e&&(s.current=p.detail===l.current)}return[g,v]}var yQ=14/15;function bQ(e,t,n){var r=c.useRef(!1),o=c.useRef(0),a=c.useRef(null),i=c.useRef(null),l,s=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=yQ,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.current)},16)}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",u))};l=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",u))},Kt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(i.current)}},[e])}var CQ=20;function qP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,CQ),Math.floor(n)}function SQ(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=X(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),h=i.get(f);if(m===void 0||h===void 0)for(var g=e.length,v=l.length;va||!!v),M=g==="rtl",D=Z(r,L({},"".concat(r,"-rtl"),M),o),R=d||wQ,_=c.useRef(),T=c.useRef(),k=c.useState(0),N=X(k,2),j=N[0],A=N[1],B=c.useState(0),z=X(B,2),H=z[0],V=z[1],U=c.useState(!1),K=X(U,2),Y=K[0],G=K[1],q=function(){G(!0)},J=function(){G(!1)},Q=c.useCallback(function(Pe){return typeof m=="function"?m(Pe):Pe==null?void 0:Pe[m]},[m]),ne={getKey:Q};function re(Pe){A(function(je){var Ve;typeof Pe=="function"?Ve=Pe(je):Ve=Pe;var tt=gt(Ve);return _.current.scrollTop=tt,tt})}var oe=c.useRef({start:0,end:R.length}),te=c.useRef(),ee=pQ(R,Q),ie=X(ee,1),de=ie[0];te.current=de;var he=fQ(Q,null,null),fe=X(he,4),le=fe[0],me=fe[1],ye=fe[2],ge=fe[3],ve=c.useMemo(function(){if(!E)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!P){var Pe;return{scrollHeight:((Pe=T.current)===null||Pe===void 0?void 0:Pe.offsetHeight)||0,start:0,end:R.length-1,offset:void 0}}for(var je=0,Ve,tt,pt,ut=R.length,ct=0;ct=j&&Ve===void 0&&(Ve=ct,tt=je),Lt>j+a&&pt===void 0&&(pt=ct),je=Lt}return Ve===void 0&&(Ve=0,tt=0,pt=Math.ceil(a/i)),pt===void 0&&(pt=R.length-1),pt=Math.min(pt+1,R.length-1),{scrollHeight:je,start:Ve,end:pt,offset:tt}},[P,E,j,R,ge,a]),$e=ve.scrollHeight,Ce=ve.start,Oe=ve.end,Re=ve.offset;oe.current.start=Ce,oe.current.end=Oe;var Ee=c.useState({width:0,height:a}),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=function(je){qe({width:je.width||je.offsetWidth,height:je.height||je.offsetHeight})},ke=c.useRef(),Be=c.useRef(),Ue=c.useMemo(function(){return qP(Fe.width,v)},[Fe.width,v]),Je=c.useMemo(function(){return qP(Fe.height,$e)},[Fe.height,$e]),nt=$e-a,mt=c.useRef(nt);mt.current=nt;function gt(Pe){var je=Pe;return Number.isNaN(mt.current)||(je=Math.min(je,mt.current)),je=Math.max(je,0),je}var yt=j<=0,It=j>=nt,ue=jT(yt,It),se=function(){return{x:M?-H:H,y:j}},pe=c.useRef(se()),Se=qt(function(){if(C){var Pe=se();(pe.current.x!==Pe.x||pe.current.y!==Pe.y)&&(C(Pe),pe.current=Pe)}});function xe(Pe,je){var Ve=Pe;je?(ja.flushSync(function(){V(Ve)}),Se()):re(Ve)}function Ne(Pe){var je=Pe.currentTarget.scrollTop;je!==j&&re(je),b==null||b(Pe),Se()}var We=function(je){var Ve=je,tt=v-Fe.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,tt),Ve},He=qt(function(Pe,je){je?(ja.flushSync(function(){V(function(Ve){var tt=Ve+(M?-Pe:Pe);return We(tt)})}),Se()):re(function(Ve){var tt=Ve+Pe;return tt})}),Me=hQ(E,yt,It,!!v,He),Le=X(Me,2),Xe=Le[0],Ke=Le[1];bQ(E,_,function(Pe,je){return ue(Pe,je)?!1:(Xe({preventDefault:function(){},deltaY:Pe}),!0)}),Kt(function(){function Pe(Ve){E&&Ve.preventDefault()}var je=_.current;return je.addEventListener("wheel",Xe),je.addEventListener("DOMMouseScroll",Ke),je.addEventListener("MozMousePixelScroll",Pe),function(){je.removeEventListener("wheel",Xe),je.removeEventListener("DOMMouseScroll",Ke),je.removeEventListener("MozMousePixelScroll",Pe)}},[E]),Kt(function(){v&&V(function(Pe){return We(Pe)})},[Fe.width,v]);var it=function(){var je,Ve;(je=ke.current)===null||je===void 0||je.delayHidden(),(Ve=Be.current)===null||Ve===void 0||Ve.delayHidden()},ot=vQ(_,R,ye,i,Q,function(){return me(!0)},re,it);c.useImperativeHandle(t,function(){return{getScrollInfo:se,scrollTo:function(je){function Ve(tt){return tt&&et(tt)==="object"&&("left"in tt||"top"in tt)}Ve(je)?(je.left!==void 0&&V(We(je.left)),ot(je.top)):ot(je)}}}),Kt(function(){if(S){var Pe=R.slice(Ce,Oe+1);S(Pe,R)}},[Ce,Oe,R]);var Mt=SQ(R,Q,ye,i),Ct=x==null?void 0:x({start:Ce,end:Oe,virtual:P,offsetX:H,offsetY:Re,rtl:M,getSize:Mt}),st=uQ(R,Ce,Oe,v,le,f,ne),Qe=null;a&&(Qe=I(L({},s?"height":"maxHeight",a),$Q),E&&(Qe.overflowY="hidden",v&&(Qe.overflowX="hidden"),Y&&(Qe.pointerEvents="none")));var Ae={};return M&&(Ae.dir="rtl"),c.createElement("div",be({style:I(I({},u),{},{position:"relative"}),className:D},Ae,O),c.createElement(Sr,{onResize:Ze},c.createElement(y,{className:"".concat(r,"-holder"),style:Qe,ref:_,onScroll:Ne,onMouseEnter:it},c.createElement(NT,{prefixCls:r,height:$e,offsetX:H,offsetY:Re,scrollWidth:v,onInnerResize:me,ref:T,innerProps:$,rtl:M,extra:Ct},st))),P&&$e>a&&c.createElement(UP,{ref:ke,prefixCls:r,scrollOffset:j,scrollRange:$e,rtl:M,onScroll:xe,onStartMove:q,onStopMove:J,spinSize:Je,containerSize:Fe.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),P&&v>Fe.width&&c.createElement(UP,{ref:Be,prefixCls:r,scrollOffset:H,scrollRange:v,rtl:M,onScroll:xe,onStartMove:q,onStopMove:J,spinSize:Ue,containerSize:Fe.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var p2=c.forwardRef(EQ);p2.displayName="List";function PQ(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var OQ=["disabled","title","children","style","className"];function YP(e){return typeof e=="string"||typeof e=="number"}var IQ=function(t,n){var r=d2(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,h=c.useContext(f2),g=h.maxCount,v=h.flattenOptions,p=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,C=h.menuItemSelectedIcon,S=h.rawValues,$=h.fieldNames,x=h.virtual,w=h.direction,O=h.listHeight,E=h.listItemHeight,P=h.optionRender,M="".concat(o,"-item"),D=fu(function(){return v},[i,v],function(Q,ne){return ne[0]&&Q[1]!==ne[1]}),R=c.useRef(null),_=c.useMemo(function(){return l&&OC(g)&&(S==null?void 0:S.size)>=g},[l,g,S==null?void 0:S.size]),T=function(ne){ne.preventDefault()},k=function(ne){var re;(re=R.current)===null||re===void 0||re.scrollTo(typeof ne=="number"?{index:ne}:ne)},N=function(ne){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=D.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;z(ne);var oe={source:re?"keyboard":"mouse"},te=D[ne];if(!te){p(null,-1,oe);return}p(te.value,ne,oe)};c.useEffect(function(){H(y!==!1?N(0):-1)},[D.length,u]);var V=c.useCallback(function(Q){return S.has(Q)&&s!=="combobox"},[s,Te(S).toString(),S.size]);c.useEffect(function(){var Q=setTimeout(function(){if(!l&&i&&S.size===1){var re=Array.from(S)[0],oe=D.findIndex(function(te){var ee=te.data;return ee.value===re});oe!==-1&&(H(oe),k(oe))}});if(i){var ne;(ne=R.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(Q)}},[i,u]);var U=function(ne){ne!==void 0&&b(ne,{selected:!S.has(ne)}),l||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var re=ne.which,oe=ne.ctrlKey;switch(re){case Ie.N:case Ie.P:case Ie.UP:case Ie.DOWN:{var te=0;if(re===Ie.UP?te=-1:re===Ie.DOWN?te=1:PQ()&&oe&&(re===Ie.N?te=1:re===Ie.P&&(te=-1)),te!==0){var ee=N(B+te,te);k(ee),H(ee,!0)}break}case Ie.ENTER:{var ie,de=D[B];de&&!(de!=null&&(ie=de.data)!==null&&ie!==void 0&&ie.disabled)&&!_?U(de.value):U(void 0),i&&ne.preventDefault();break}case Ie.ESC:d(!1),i&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){k(ne)}}}),D.length===0)return c.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:T},f);var K=Object.keys($).map(function(Q){return $[Q]}),Y=function(ne){return ne.label};function G(Q,ne){var re=Q.group;return{role:re?"presentation":"option",id:"".concat(a,"_list_").concat(ne)}}var q=function(ne){var re=D[ne];if(!re)return null;var oe=re.data||{},te=oe.value,ee=re.group,ie=Qn(oe,!0),de=Y(re);return re?c.createElement("div",be({"aria-label":typeof de=="string"&&!ee?de:null},ie,{key:ne},G(re,ne),{"aria-selected":V(te)}),te):null},J={role:"listbox",id:"".concat(a,"_list")};return c.createElement(c.Fragment,null,x&&c.createElement("div",be({},J,{style:{height:0,width:0,overflow:"hidden"}}),q(B-1),q(B),q(B+1)),c.createElement(p2,{itemKey:"key",ref:R,data:D,height:O,itemHeight:E,fullHeight:!1,onMouseDown:T,onScroll:m,virtual:x,direction:w,innerProps:x?null:J},function(Q,ne){var re=Q.group,oe=Q.groupOption,te=Q.data,ee=Q.label,ie=Q.value,de=te.key;if(re){var he,fe=(he=te.title)!==null&&he!==void 0?he:YP(ee)?ee.toString():void 0;return c.createElement("div",{className:Z(M,"".concat(M,"-group"),te.className),title:fe},ee!==void 0?ee:de)}var le=te.disabled,me=te.title;te.children;var ye=te.style,ge=te.className,ve=ze(te,OQ),$e=gn(ve,K),Ce=V(ie),Oe=le||!Ce&&_,Re="".concat(M,"-option"),Ee=Z(M,Re,ge,L(L(L(L({},"".concat(Re,"-grouped"),oe),"".concat(Re,"-active"),B===ne&&!Oe),"".concat(Re,"-disabled"),Oe),"".concat(Re,"-selected"),Ce)),_e=Y(Q),Fe=!C||typeof C=="function"||Ce,qe=typeof _e=="number"?_e:_e||ie,Ze=YP(qe)?qe.toString():void 0;return me!==void 0&&(Ze=me),c.createElement("div",be({},Qn($e),x?{}:G(Q,ne),{"aria-selected":Ce,className:Ee,title:Ze,onMouseMove:function(){B===ne||Oe||H(ne)},onClick:function(){Oe||U(ie)},style:ye}),c.createElement("div",{className:"".concat(Re,"-content")},typeof P=="function"?P(Q,{index:ne}):qe),c.isValidElement(C)||Ce,Fe&&c.createElement(Kh,{className:"".concat(M,"-option-state"),customizeIcon:C,customizeIconProps:{value:ie,disabled:Oe,isSelected:Ce}},Ce?"✓":null))}))},MQ=c.forwardRef(IQ);const RQ=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var m;return I(I({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return s.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,s},[e,t]),o=c.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Gy(e,t){return RT(e).join("").toUpperCase().includes(t)}const _Q=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(h,g){return o?Gy(g[o],d):g[a]?Gy(g[i!=="children"?i:"label"],d):Gy(g[l],d)},m=u?function(h){return IC(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=f(n,m(h));if(g)s.push(h);else{var v=h[a].filter(function(p){return f(n,m(p))});v.length&&s.push(I(I({},h),{},L({},a,v)))}return}f(n,m(h))&&s.push(h)}),s},[e,r,o,n,t])};var XP=0,TQ=_r();function NQ(){var e;return TQ?(e=XP,XP+=1):e="TEST_OR_SSR",e}function h2(e){var t=c.useState(),n=X(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(NQ()))},[]),e||r}var jQ=["children","value"],DQ=["children"];function FQ(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=ze(r,jQ);return I({key:n,value:a!==void 0?a:n,children:o},i)}function DT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sr(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=ze(l,DQ);return t||!a?FQ(n):I(I({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:DT(s)})}).filter(function(n){return n})}var kQ=function(t,n,r,o,a){return c.useMemo(function(){var i=t,l=!t;l&&(i=DT(n));var s=new Map,u=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)},f=function m(h){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v2&&arguments[2]!==void 0?arguments[2]:{},Ke=Xe.source,it=Ke===void 0?"keyboard":Ke;It(Le),i&&r==="combobox"&&Me!==null&&it==="keyboard"&&nt(String(Me))},[i,r]),pe=function(Le,Xe,Ke){var it=function(){var tt,pt=$e(Le);return[A?{label:pt==null?void 0:pt[G.label],value:Le,key:(tt=pt==null?void 0:pt.key)!==null&&tt!==void 0?tt:Le}:Le,IC(pt)]};if(Xe&&h){var ot=it(),Mt=X(ot,2),Ct=Mt[0],st=Mt[1];h(Ct,st)}else if(!Xe&&g&&Ke!=="clear"){var Qe=it(),Ae=X(Qe,2),Pe=Ae[0],je=Ae[1];g(Pe,je)}},Se=QP(function(Me,Le){var Xe,Ke=U?Le.selected:!0;Ke?Xe=U?[].concat(Te(ve),[Me]):[Me]:Xe=ve.filter(function(it){return it.value!==Me}),ke(Xe),pe(Me,Ke),r==="combobox"?nt(""):(!MC||m)&&(ne(""),nt(""))}),xe=function(Le,Xe){ke(Le);var Ke=Xe.type,it=Xe.values;(Ke==="remove"||Ke==="clear")&&it.forEach(function(ot){pe(ot.value,!1,Ke)})},Ne=function(Le,Xe){if(ne(Le),nt(null),Xe.source==="submit"){var Ke=(Le||"").trim();if(Ke){var it=Array.from(new Set([].concat(Te(Oe),[Ke])));ke(it),pe(Ke,!0),ne("")}return}Xe.source!=="blur"&&(r==="combobox"&&ke(Le),d==null||d(Le))},We=function(Le){var Xe=Le;r!=="tags"&&(Xe=Le.map(function(it){var ot=te.get(it);return ot==null?void 0:ot.value}).filter(function(it){return it!==void 0}));var Ke=Array.from(new Set([].concat(Te(Oe),Te(Xe))));ke(Ke),Ke.forEach(function(it){pe(it,!0)})},He=c.useMemo(function(){var Me=P!==!1&&p!==!1;return I(I({},re),{},{flattenOptions:Ze,onActiveValue:se,defaultActiveFirstOption:ue,onSelect:Se,menuItemSelectedIcon:E,rawValues:Oe,fieldNames:G,virtual:Me,direction:M,listHeight:R,listItemHeight:T,childrenAsData:K,maxCount:z,optionRender:x})},[z,re,Ze,se,ue,Se,E,Oe,G,P,p,M,R,T,K,x]);return c.createElement(f2.Provider,{value:He},c.createElement(m2,be({},H,{id:V,prefixCls:a,ref:t,omitDomProps:AQ,mode:r,displayValues:Ce,onDisplayValuesChange:xe,direction:M,searchValue:Q,onSearch:Ne,autoClearSearchValue:m,onSearchSplit:We,dropdownMatchSelectWidth:p,OptionList:MQ,emptyOptions:!Ze.length,activeValue:Je,activeDescendantId:"".concat(V,"_list_").concat(yt)})))}),y2=zQ;y2.Option=g2;y2.OptGroup=v2;function ya(e,t,n){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const xl=(e,t)=>t||e,HQ=()=>{const[,e]=cr(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},VQ=HQ,WQ=()=>{const[,e]=cr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=c.useMemo(()=>({borderColor:new Jt(t).onBackground(o).toHexShortString(),shadowColor:new Jt(n).onBackground(o).toHexShortString(),contentColor:new Jt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:a},c.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"}),c.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:l}))))},KQ=WQ,UQ=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},GQ=Ht("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=_t(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[UQ(o)]});var qQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=FT,description:a,children:i,imageStyle:l,style:s}=e,u=qQ(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=c.useContext(at),h=d("empty",r),[g,v,p]=GQ(h),[y]=wi("Empty"),b=typeof a<"u"?a:y==null?void 0:y.description,C=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=c.createElement("img",{alt:C,src:o}):S=o,g(c.createElement("div",Object.assign({className:Z(v,p,h,m==null?void 0:m.className,{[`${h}-normal`]:o===kT,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},u),c.createElement("div",{className:`${h}-image`,style:l},S),b&&c.createElement("div",{className:`${h}-description`},b),i&&c.createElement("div",{className:`${h}-footer`},i)))};b2.PRESENTED_IMAGE_DEFAULT=FT;b2.PRESENTED_IMAGE_SIMPLE=kT;const ud=b2,YQ=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(at),r=n("empty");switch(t){case"Table":case"List":return W.createElement(ud,{image:ud.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return W.createElement(ud,{image:ud.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return W.createElement(ud,null)}},gm=YQ,XQ=["outlined","borderless","filled"],wl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=c.useContext(vT);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=XQ.includes(r);return[r,o]},QQ=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function C2(e,t){return e||QQ(t)}const ZP=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"}},ZQ=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${l}bottomLeft, ${a}${l}bottomLeft - `]:{animationName:jh},[` + `]:{animationName:Ah},[` ${o}${l}topLeft, ${a}${l}topLeft, ${o}${l}topRight, ${a}${l}topRight - `]:{animationName:Fh},[`${i}${l}bottomLeft`]:{animationName:Dh},[` + `]:{animationName:zh},[`${i}${l}bottomLeft`]:{animationName:Bh},[` ${i}${l}topLeft, ${i}${l}topRight - `]:{animationName:kh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},NP(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"},mi),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},NP(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},La(e,"slide-up"),La(e,"slide-down"),qc(e,"move-up"),qc(e,"move-down")]},cp=2,bT=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(cp).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},DX=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},CT=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:cp,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(cp).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},gu()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},FX=(e,t)=>{const{componentCls:n}=e,r=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=DX(e),i=t?`${n}-${t}`:"",l=bT(e);return{[`${n}-multiple${i}`]:Object.assign(Object.assign({},CT(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(cp)} 0`,lineHeight:ae(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ae(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ae(o),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 Ky(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{animationName:Hh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ZP(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"},mi),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ZP(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},La(e,"slide-up"),La(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down")]},dp=2,LT=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(dp).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},JQ=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},AT=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:dp,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(dp).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},pu()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},eZ=(e,t)=>{const{componentCls:n}=e,r=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=JQ(e),i=t?`${n}-${t}`:"",l=LT(e);return{[`${n}-multiple${i}`]:Object.assign(Object.assign({},AT(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(dp)} 0`,lineHeight:ae(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ae(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ae(o),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 qy(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[FX(e,t),o]}const kX=e=>{const{componentCls:t}=e,n=_t(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=_t(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ky(e),Ky(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ky(r,"lg")]};function Uy(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Wt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[eZ(e,t),o]}const tZ=e=>{const{componentCls:t}=e,n=_t(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=_t(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[qy(e),qy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},qy(r,"lg")]};function Yy(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Wt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${ae(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ae(a)}}},[`&${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 ${ae(r)}`,"&:after":{display:"none"}}}}}}}function LX(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Uy(e),Uy(_t(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 ${ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${ae(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ae(a)}}},[`&${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 ${ae(r)}`,"&:after":{display:"none"}}}}}}}function nZ(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Yy(e),Yy(_t(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 ${ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Uy(_t(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const AX=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:i,controlPaddingHorizontal:l,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:p}=e,y=r-i*2,b=o-i*2,C=a-i*2;return{zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightSM:b,multipleItemHeightLG:C,multipleSelectorBgDisabled:v,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},ST=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ae(o)} ${t.activeShadowColor}`,outline:0}}}},jP=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ST(e,t))}),BX=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ST(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),jP(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),jP(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),xT=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},DP=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},xT(e,t))}),zX=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},xT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),DP(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),DP(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),HX=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),VX=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},BX(e)),zX(e)),HX(e))}),WX=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},KX=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},UX=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},WX(e)),KX(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},mi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},mi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},gu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},GX=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},UX(e),LX(e),kX(e),jX(e),{[`${t}-rtl`]:{direction:"rtl"}},yu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},b2=Ht("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=_t(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[GX(r),VX(r)]},AX,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var qX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const YX=qX;var XX=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:YX}))},QX=c.forwardRef(XX);const zh=QX;var ZX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const JX=ZX;var eQ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:JX}))},tQ=c.forwardRef(eQ);const Hh=tQ;var nQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const rQ=nQ;var oQ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:rQ}))},aQ=c.forwardRef(oQ);const Vh=aQ;function Wh(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const h=n??c.createElement(Ha,null),g=b=>t===null&&!l&&!f?null:c.createElement(c.Fragment,null,u!==!1&&b,l&&d);let v=null;if(t!==void 0)v=g(t);else if(a)v=g(c.createElement(Cl,{spin:!0}));else{const b=`${s}-suffix`;v=C=>{let{open:S,showSearch:$}=C;return g(S&&$?c.createElement(Vh,{className:b}):c.createElement(Hh,{className:b}))}}let p=null;r!==void 0?p=r:i?p=c.createElement(zh,null):p=null;let y=null;return o!==void 0?y=o:y=c.createElement(xa,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:y}}function C2(e,t){return t!==void 0?t:e!==null}var iQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:v,status:p,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,direction:S,style:$,allowClear:x,variant:w,dropdownStyle:O,transitionName:E,tagRender:P,maxCount:M}=e,D=iQ(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:_,renderEmpty:T,direction:k,virtual:N,popupMatchSelectWidth:j,popupOverflow:A,select:B}=c.useContext(at),[,z]=cr(),H=m??(z==null?void 0:z.controlHeight),V=_("select",r),U=_(),K=S??k,{compactSize:Y,compactItemClassnames:G}=Va(V,K),[q,J]=wl(w,o),Q=pn(V),[ne,re,oe]=b2(V,Q),te=c.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===wT?"combobox":Je},[e.mode]),ee=te==="multiple"||te==="tags",ie=C2(e.suffixIcon,e.showArrow),de=(n=C??b)!==null&&n!==void 0?n:j,{status:he,hasFeedback:fe,isFormItemInput:le,feedbackIcon:me}=c.useContext(yr),ye=xl(he,p);let ge;v!==void 0?ge=v:te==="combobox"?ge=null:ge=(T==null?void 0:T("Select"))||c.createElement(mm,{componentName:"Select"});const{suffixIcon:ve,itemIcon:$e,removeIcon:Ce,clearIcon:Oe}=Wh(Object.assign(Object.assign({},D),{multiple:ee,hasFeedback:fe,feedbackIcon:me,showSuffixIcon:ie,prefixCls:V,componentName:"Select"})),Re=x===!0?{clearIcon:Oe}:x,Ee=gn(D,["suffixIcon","itemIcon"]),_e=Z(s||u,{[`${V}-dropdown-${K}`]:K==="rtl"},i,oe,Q,re),Fe=nr(Je=>{var nt;return(nt=h??Y)!==null&&nt!==void 0?nt:Je}),qe=c.useContext(Kr),Ze=g??qe,ke=Z({[`${V}-lg`]:Fe==="large",[`${V}-sm`]:Fe==="small",[`${V}-rtl`]:K==="rtl",[`${V}-${q}`]:J,[`${V}-in-form-item`]:le},ya(V,ye,fe),G,B==null?void 0:B.className,a,i,oe,Q,re),Be=c.useMemo(()=>f!==void 0?f:K==="rtl"?"bottomRight":"bottomLeft",[f,K]),[Ue]=Uo("SelectLike",O==null?void 0:O.zIndex);return ne(c.createElement(p2,Object.assign({ref:t,virtual:N,showSearch:B==null?void 0:B.showSearch},Ee,{style:Object.assign(Object.assign({},B==null?void 0:B.style),$),dropdownMatchSelectWidth:de,transitionName:$r(U,"slide-up",E),builtinPlacements:y2(y,A),listHeight:d,listItemHeight:H,mode:te,prefixCls:V,placement:Be,direction:K,suffixIcon:ve,menuItemSelectedIcon:$e,removeIcon:Ce,allowClear:Re,notFoundContent:ge,className:ke,getPopupContainer:l||R,dropdownClassName:_e,disabled:Ze,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:Ue}),maxCount:ee?M:void 0,tagRender:ee?P:void 0})))},Su=c.forwardRef(lQ),sQ=Sl(Su);Su.SECRET_COMBOBOX_MODE_DO_NOT_USE=wT;Su.Option=m2;Su.OptGroup=f2;Su._InternalPanelDoNotUseOrYouWillBeFired=sQ;const Ta=Su,dl=["xxl","xl","lg","md","sm","xs"],cQ=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)`}),uQ=e=>{const t=e,n=[].concat(dl).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},s=window.matchMedia(i);s.addListener(l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function dQ(){const[,e]=c.useReducer(t=>t+1,0);return e}function S2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=dQ(),r=$T();return Kt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const fQ=c.createContext({}),PC=fQ,mQ=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:l,containerSizeSM:s,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,y=(b,C,S)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${ae(v)} ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,u,m)),{"&-lg":Object.assign({},y(l,d,h)),"&-sm":Object.assign({},y(s,f,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},vQ=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},gQ=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:l,marginXS:s,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-s,groupBorderColor:d}},ET=Ht("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=_t(e,{avatarBg:n,avatarColor:t});return[mQ(r),vQ(r)]},gQ);var pQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=c.useState(1),[o,a]=c.useState(!1),[i,l]=c.useState(!0),s=c.useRef(null),u=c.useRef(null),d=Er(t,s),{getPrefixCls:f,avatar:m}=c.useContext(at),h=c.useContext(PC),g=()=>{if(!u.current||!s.current)return;const q=u.current.offsetWidth,J=s.current.offsetWidth;if(q!==0&&J!==0){const{gap:Q=4}=e;Q*2{a(!0)},[]),c.useEffect(()=>{l(!0),r(1)},[e.src]),c.useEffect(g,[e.gap]);const v=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&l(!1)},{prefixCls:p,shape:y,size:b,src:C,srcSet:S,icon:$,className:x,rootClassName:w,alt:O,draggable:E,children:P,crossOrigin:M}=e,D=pQ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),R=nr(q=>{var J,Q;return(Q=(J=b??(h==null?void 0:h.size))!==null&&J!==void 0?J:q)!==null&&Q!==void 0?Q:"default"}),_=Object.keys(typeof R=="object"?R||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),T=S2(_),k=c.useMemo(()=>{if(typeof R!="object")return{};const q=dl.find(Q=>T[Q]),J=R[q];return J?{width:J,height:J,fontSize:J&&($||P)?J/2:18}:{}},[T,R]),N=f("avatar",p),j=pn(N),[A,B,z]=ET(N,j),H=Z({[`${N}-lg`]:R==="large",[`${N}-sm`]:R==="small"}),V=c.isValidElement(C),U=y||(h==null?void 0:h.shape)||"circle",K=Z(N,H,m==null?void 0:m.className,`${N}-${U}`,{[`${N}-image`]:V||C&&i,[`${N}-icon`]:!!$},z,j,x,w,B),Y=typeof R=="number"?{width:R,height:R,fontSize:$?R/2:18}:{};let G;if(typeof C=="string"&&i)G=c.createElement("img",{src:C,draggable:E,srcSet:S,onError:v,alt:O,crossOrigin:M});else if(V)G=C;else if($)G=$;else if(o||n!==1){const q=`scale(${n})`,J={msTransform:q,WebkitTransform:q,transform:q};G=c.createElement(Sr,{onResize:g},c.createElement("span",{className:`${N}-string`,ref:u,style:Object.assign({},J)},P))}else G=c.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:u},P);return delete D.onError,delete D.gap,A(c.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Y),k),m==null?void 0:m.style),D.style),className:K,ref:d}),G))},yQ=c.forwardRef(hQ),PT=yQ,up=e=>e?typeof e=="function"?e():e:null;function x2(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(n,"-content"),a),style:i},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Fs={shiftX:64,adjustY:1},ks={adjustX:1,shiftY:!0},Mo=[0,0],bQ={left:{points:["cr","cl"],overflow:ks,offset:[-4,0],targetOffset:Mo},right:{points:["cl","cr"],overflow:ks,offset:[4,0],targetOffset:Mo},top:{points:["bc","tc"],overflow:Fs,offset:[0,-4],targetOffset:Mo},bottom:{points:["tc","bc"],overflow:Fs,offset:[0,4],targetOffset:Mo},topLeft:{points:["bl","tl"],overflow:Fs,offset:[0,-4],targetOffset:Mo},leftTop:{points:["tr","tl"],overflow:ks,offset:[-4,0],targetOffset:Mo},topRight:{points:["br","tr"],overflow:Fs,offset:[0,-4],targetOffset:Mo},rightTop:{points:["tl","tr"],overflow:ks,offset:[4,0],targetOffset:Mo},bottomRight:{points:["tr","br"],overflow:Fs,offset:[0,4],targetOffset:Mo},rightBottom:{points:["bl","br"],overflow:ks,offset:[4,0],targetOffset:Mo},bottomLeft:{points:["tl","bl"],overflow:Fs,offset:[0,4],targetOffset:Mo},leftBottom:{points:["br","bl"],overflow:ks,offset:[-4,0],targetOffset:Mo}},CQ=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],SQ=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,s=t.mouseLeaveDelay,u=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,y=t.animation,b=t.motion,C=t.placement,S=C===void 0?"right":C,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,E=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,R=t.id,_=t.showArrow,T=_===void 0?!0:_,k=ze(t,CQ),N=c.useRef(null);c.useImperativeHandle(n,function(){return N.current});var j=I({},k);"visible"in t&&(j.popupVisible=t.visible);var A=function(){return c.createElement(x2,{key:"content",prefixCls:m,id:R,overlayInnerStyle:M},D)};return c.createElement(fm,be({popupClassName:r,prefixCls:m,popup:A,action:a,builtinPlacements:bQ,popupPlacement:S,ref:N,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:y,popupMotion:b,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:T},j),h)};const xQ=c.forwardRef(SQ);function Kh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,h=2*o-l,g=s,v=2*o-a,p=i,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${h} ${g} A ${r} ${r} 0 0 0 ${v} ${p} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:C}}const OT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},IT=8;function Uh(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?IT:r}}function $v(e,t){return e?t:{}}function w2(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},OT(e,t,o)),{"&:before":{background:t}})]},$v(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),$v(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),$v(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),$v(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function wQ(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const FP={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},$Q={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},EQ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function MT(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,s={};return Object.keys(FP).forEach(u=>{const d=r&&$Q[u]||FP[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=f,EQ.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Uh({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+l;break}f.overflow=wQ(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),s}const PQ=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${ae(e.calc(u).div(2).equal())} ${ae(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,IT)}},[`${t}-content`]:{position:"relative"}}),Xx(e,(f,m)=>{let{darkColor:h}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},w2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},OQ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Uh({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Kh(_t(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),RT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ht("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=_t(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[PQ(l),Cu(r,"zoom-big-fast")]},OQ,{resetStyle:!1,injectStyle:t})(e)},IQ=Ef.map(e=>`${e}-inverse`);function $2(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(IQ),Te(Ef)).includes(e):Ef.includes(e)}function _T(e,t){const n=$2(t),r=Z({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const MQ=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=c.useContext(at),s=l("tooltip",t),[u,d,f]=RT(s),m=_T(s,a),h=m.arrowStyle,g=Object.assign(Object.assign({},i),m.overlayStyle),v=Z(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,m.className);return u(c.createElement("div",{className:v,style:h},c.createElement("div",{className:`${s}-arrow`}),c.createElement(x2,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),o)))},RQ=MQ;var _Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:C=!0}=e,S=!!g,[,$]=cr(),{getPopupContainer:x,getPrefixCls:w,direction:O}=c.useContext(at),E=vu(),P=c.useRef(null),M=()=>{var ge;(ge=P.current)===null||ge===void 0||ge.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:M,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),M()}}));const[D,R]=Pt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),_=!v&&!p&&v!==0,T=ge=>{var ve,$e;R(_?!1:ge),_||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,ge),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,ge))},k=c.useMemo(()=>{var ge,ve;let $e=b;return typeof g=="object"&&($e=(ve=(ge=g.pointAtCenter)!==null&&ge!==void 0?ge:g.arrowPointAtCenter)!==null&&ve!==void 0?ve:b),y||MT({arrowPointAtCenter:$e,autoAdjustOverflow:C,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[b,g,y,$]),N=c.useMemo(()=>v===0?v:p||v||"",[p,v]),j=c.createElement(ka,null,typeof N=="function"?N():N),{getPopupContainer:A,placement:B="top",mouseEnterDelay:z=.1,mouseLeaveDelay:H=.1,overlayStyle:V,rootClassName:U}=e,K=_Q(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=w("tooltip",o),G=w(),q=e["data-popover-inject"];let J=D;!("open"in e)&&!("visible"in e)&&_&&(J=!1);const Q=c.isValidElement(d)&&!u_(d)?d:c.createElement("span",null,d),ne=Q.props,re=!ne.className||typeof ne.className=="string"?Z(ne.className,a||`${Y}-open`):ne.className,[oe,te,ee]=RT(Y,!q),ie=_T(Y,s),de=ie.arrowStyle,he=Object.assign(Object.assign({},u),ie.overlayStyle),fe=Z(l,{[`${Y}-rtl`]:O==="rtl"},ie.className,U,te,ee),[le,me]=Uo("Tooltip",K.zIndex),ye=c.createElement(xQ,Object.assign({},K,{zIndex:le,showArrow:S,placement:B,mouseEnterDelay:z,mouseLeaveDelay:H,prefixCls:Y,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},de),V),getTooltipContainer:A||i||x,ref:P,builtinPlacements:k,overlay:j,visible:J,onVisibleChange:T,afterVisibleChange:f??m,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:$r(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),J?tr(Q,{className:re}):Q);return oe(c.createElement(am.Provider,{value:me},ye))});TT._InternalPanelDoNotUseOrYouWillBeFired=RQ;const Go=TT,TQ=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:h,innerContentPadding:g,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:h,padding:v},[`${t}-inner-content`]:{color:n,padding:g}})},w2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},NQ=e=>{const{componentCls:t}=e;return{[t]:Ef.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},jQ=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:s,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,h=m/2,g=m/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Kh(e)),Uh({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:s,titlePadding:a?`${h}px ${v}px ${g}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},NT=Ht("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=_t(e,{popoverBg:t,popoverColor:n});return[TQ(r),NQ(r),Cu(r,"zoom-big")]},jQ,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var DQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${e}-title`},up(t)),c.createElement("div",{className:`${e}-inner-content`},up(n))),kQ=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:s}=e;return c.createElement("div",{className:Z(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(x2,Object.assign({},e,{className:t,prefixCls:n}),s||FQ(n,i,l)))},LQ=e=>{const{prefixCls:t,className:n}=e,r=DQ(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(at),a=o("popover",t),[i,l,s]=NT(a);return i(c.createElement(kQ,Object.assign({},r,{prefixCls:a,hashId:l,className:Z(n,s)})))},AQ=LQ;var BQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${r}-title`},up(t)),c.createElement("div",{className:`${r}-inner-content`},up(n)))},jT=c.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:u=.1,overlayStyle:d={}}=e,f=BQ(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=c.useContext(at),h=m("popover",n),[g,v,p]=NT(h),y=m(),b=Z(a,v,p);return g(c.createElement(Go,Object.assign({placement:i,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:u,overlayStyle:d},f,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?c.createElement(zQ,{prefixCls:h,title:r,content:o}):null,transitionName:$r(y,"zoom-big",f.transitionName),"data-popover-inject":!0})))});jT._InternalPanelDoNotUseOrYouWillBeFired=AQ;const bs=jT,kP=e=>{const{size:t,shape:n}=c.useContext(PC),r=c.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return c.createElement(PC.Provider,{value:r},e.children)},HQ=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:l,maxStyle:s,size:u,shape:d,maxPopoverPlacement:f="top",maxPopoverTrigger:m="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,p=pn(g),[y,b,C]=ET(g,p),S=Z(v,{[`${v}-rtl`]:n==="rtl"},C,p,o,a,b),$=sr(h).map((w,O)=>tr(w,{key:`avatar-key-${O}`})),x=$.length;if(l&&l{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:l,statusSize:s,dotSize:u,textFontWeight:d,indicatorHeight:f,indicatorHeightSM:m,marginXS:h,calc:g}=e,v=`${r}-scroll-number`,p=Xx(e,(y,b)=>{let{darkColor:C}=b;return{[`&${t} ${t}-color-${y}`]:{background:C,[`&:not(${t}-count)`]:{color:C}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:f,height:f,color:e.badgeTextColor,fontWeight:d,fontSize:i,lineHeight:ae(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(f).div(2).equal(),boxShadow:`0 0 0 ${ae(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:l,lineHeight:ae(m),borderRadius:g(m).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ae(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ae(o)} ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:YQ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:WQ,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),p),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:KQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:UQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:GQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:qQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:f,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:f,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},FT=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorBgContainer,s=e.colorError,u=e.colorErrorHover;return _t(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},kT=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},QQ=Ht("Badge",e=>{const t=FT(e);return XQ(t)},kT),ZQ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Xx(e,(u,d)=>{let{darkColor:f}=d;return{[`&${i}-color-${u}`]:{background:f,color:f}}});return{[`${l}`]:{position:"relative"},[`${i}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:r,padding:`0 ${ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ae(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.colorTextLightSolid},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${ae(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},JQ=Ht(["Badge","Ribbon"],e=>{const t=FT(e);return ZQ(t)},kT),eZ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:u,direction:d}=c.useContext(at),f=u("ribbon",n),m=`${f}-wrapper`,[h,g,v]=JQ(f,m),p=$2(o,!1),y=Z(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:p},t),b={},C={};return o&&!p&&(b.background=o,C.color=o),h(c.createElement("div",{className:Z(m,s,g,v)},a,c.createElement("div",{className:Z(y,g),style:Object.assign(Object.assign({},b),r)},c.createElement("span",{className:`${f}-text`},i),c.createElement("div",{className:`${f}-corner`,style:C}))))},tZ=eZ;function LP(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:a,className:Z(`${t}-only-unit`,{current:r})},n)}function nZ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function rZ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=c.useState(o),[s,u]=c.useState(a),d=()=>{l(o),u(a)};c.useEffect(()=>{const h=setTimeout(()=>{d()},1e3);return()=>{clearTimeout(h)}},[o]);let f,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[c.createElement(LP,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const h=o+10,g=[];for(let y=o;y<=h;y+=1)g.push(y);const v=g.findIndex(y=>y%10===i);f=g.map((y,b)=>{const C=y%10;return c.createElement(LP,Object.assign({},e,{key:y,value:C,offset:b-v,current:b===v}))});const p=s{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:u="sup",children:d}=e,f=oZ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=c.useContext(at),h=m("scroll-number",n),g=Object.assign(Object.assign({},f),{"data-show":s,style:i,className:Z(h,o,a),title:l});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=c.createElement("bdi",null,p.map((y,b)=>c.createElement(rZ,{prefixCls:h,count:Number(r),value:y,key:p.length-b})))}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?tr(d,p=>({className:Z(`${h}-custom-component`,p==null?void 0:p.className,a)})):c.createElement(u,Object.assign({},g,{ref:t}),v)}),iZ=aZ;var lZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:u,status:d,text:f,color:m,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:y,offset:b,style:C,className:S,rootClassName:$,classNames:x,styles:w,showZero:O=!1}=e,E=lZ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:M,badge:D}=c.useContext(at),R=P("badge",l),[_,T,k]=QQ(R),N=h>g?`${g}+`:h,j=N==="0"||N===0,A=h===null||j&&!O,B=(d!=null||m!=null)&&A,z=v&&!j,H=z?"":N,V=c.useMemo(()=>(H==null||H===""||j&&!O)&&!z,[H,j,O,z]),U=c.useRef(h);V||(U.current=h);const K=U.current,Y=c.useRef(H);V||(Y.current=H);const G=Y.current,q=c.useRef(z);V||(q.current=z);const J=c.useMemo(()=>{if(!b)return Object.assign(Object.assign({},D==null?void 0:D.style),C);const de={marginTop:b[1]};return M==="rtl"?de.left=parseInt(b[0],10):de.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},de),D==null?void 0:D.style),C)},[M,b,C,D==null?void 0:D.style]),Q=y??(typeof K=="string"||typeof K=="number"?K:void 0),ne=V||!f?null:c.createElement("span",{className:`${R}-status-text`},f),re=!K||typeof K!="object"?void 0:tr(K,de=>({style:Object.assign(Object.assign({},J),de.style)})),oe=$2(m,!1),te=Z(x==null?void 0:x.indicator,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.indicator,{[`${R}-status-dot`]:B,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:oe}),ee={};m&&!oe&&(ee.color=m,ee.background=m);const ie=Z(R,{[`${R}-status`]:B,[`${R}-not-a-wrapper`]:!u,[`${R}-rtl`]:M==="rtl"},S,$,D==null?void 0:D.className,(r=D==null?void 0:D.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,T,k);if(!u&&B){const de=J.color;return _(c.createElement("span",Object.assign({},E,{className:ie,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(o=D==null?void 0:D.styles)===null||o===void 0?void 0:o.root),J)}),c.createElement("span",{className:te,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.indicator),ee)}),f&&c.createElement("span",{style:{color:de},className:`${R}-status-text`},f)))}return _(c.createElement("span",Object.assign({ref:t},E,{className:ie,style:Object.assign(Object.assign({},(i=D==null?void 0:D.styles)===null||i===void 0?void 0:i.root),w==null?void 0:w.root)}),u,c.createElement(wr,{visible:!V,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},de=>{let{className:he,ref:fe}=de;var le,me;const ye=P("scroll-number",s),ge=q.current,ve=Z(x==null?void 0:x.indicator,(le=D==null?void 0:D.classNames)===null||le===void 0?void 0:le.indicator,{[`${R}-dot`]:ge,[`${R}-count`]:!ge,[`${R}-count-sm`]:p==="small",[`${R}-multiple-words`]:!ge&&G&&G.toString().length>1,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:oe});let $e=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(me=D==null?void 0:D.styles)===null||me===void 0?void 0:me.indicator),J);return m&&!oe&&($e=$e||{},$e.background=m),c.createElement(iZ,{prefixCls:ye,show:!V,motionClassName:he,className:ve,count:G,title:Q,style:$e,key:"scrollNumber",ref:fe},re)}),ne))},LT=c.forwardRef(sZ);LT.Ribbon=tZ;const Jo=LT;var cZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const uZ=cZ;var dZ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:uZ}))},fZ=c.forwardRef(dZ);const pi=fZ;var mZ=Ie.ESC,vZ=Ie.TAB;function gZ(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=c.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},s=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case mZ:l();break;case vZ:{var m=!1;i.current||(m=s()),m?f.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&At(s,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var pZ=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=c.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Er(t,a==null?void 0:a.ref);return W.createElement(W.Fragment,null,r&&W.createElement("div",{className:"".concat(o,"-arrow")}),W.cloneElement(a,{ref:Ci(a)?i:void 0}))}),Ls={adjustX:1,adjustY:1},As=[0,0],hZ={topLeft:{points:["bl","tl"],overflow:Ls,offset:[0,-4],targetOffset:As},top:{points:["bc","tc"],overflow:Ls,offset:[0,-4],targetOffset:As},topRight:{points:["br","tr"],overflow:Ls,offset:[0,-4],targetOffset:As},bottomLeft:{points:["tl","bl"],overflow:Ls,offset:[0,4],targetOffset:As},bottom:{points:["tc","bc"],overflow:Ls,offset:[0,4],targetOffset:As},bottomRight:{points:["tr","br"],overflow:Ls,offset:[0,4],targetOffset:As}},yZ=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function bZ(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?hZ:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,C=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,w=e.overlay,O=e.children,E=e.onVisibleChange,P=ze(e,yZ),M=W.useState(),D=X(M,2),R=D[0],_=D[1],T="visible"in e?C:R,k=W.useRef(null),N=W.useRef(null),j=W.useRef(null);W.useImperativeHandle(t,function(){return k.current});var A=function(q){_(q),E==null||E(q)};gZ({visible:T,triggerRef:j,onVisibleChange:A,autoFocus:x,overlayRef:N});var B=function(q){var J=e.onOverlayClick;_(!1),J&&J(q)},z=function(){return W.createElement(pZ,{ref:N,overlay:w,prefixCls:i,arrow:o})},H=function(){return typeof w=="function"?z:z()},V=function(){var q=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!J},U=function(){var q=e.openClassName;return q!==void 0?q:"".concat(i,"-open")},K=W.cloneElement(O,{className:Z((n=O.props)===null||n===void 0?void 0:n.className,T&&U()),ref:Ci(O)?Er(j,O.ref):void 0}),Y=p;return!Y&&$.indexOf("contextMenu")!==-1&&(Y=["click"]),W.createElement(fm,be({builtinPlacements:h},P,{prefixCls:i,ref:k,popupClassName:Z(y,L({},"".concat(i,"-show-arrow"),o)),popupStyle:b,action:$,showAction:v,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:T,stretch:V()?"minWidth":"",popup:H(),onPopupVisibleChange:A,onPopupClick:B,getPopupContainer:g}),K)}const AT=W.forwardRef(bZ);var BT=c.createContext(null);function zT(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function HT(e){var t=c.useContext(BT);return zT(t,e)}var CZ=["children","locked"],ba=c.createContext(null);function SZ(e,t){var n=I({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Rf(e){var t=e.children,n=e.locked,r=ze(e,CZ),o=c.useContext(ba),a=du(function(){return SZ(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!fu(i[1],l[1],!0))});return c.createElement(ba.Provider,{value:a},t)}var xZ=[],VT=c.createContext(null);function qh(){return c.useContext(VT)}var WT=c.createContext(xZ);function xu(e){var t=c.useContext(WT);return c.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var KT=c.createContext(null),E2=c.createContext({});function AP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lm(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function wZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return AP(r,t)});return AP(e,t)&&n.unshift(e),n}var OC=Ie.LEFT,IC=Ie.RIGHT,MC=Ie.UP,ig=Ie.DOWN,lg=Ie.ENTER,UT=Ie.ESC,id=Ie.HOME,ld=Ie.END,BP=[MC,ig,OC,IC];function $Z(e,t,n,r){var o,a="prev",i="next",l="children",s="parent";if(e==="inline"&&r===lg)return{inlineTrigger:!0};var u=L(L({},MC,a),ig,i),d=L(L(L(L({},OC,n?i:a),IC,n?a:i),ig,l),lg,l),f=L(L(L(L(L(L({},MC,a),ig,i),lg,l),UT,s),OC,n?l:s),IC,n?s:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},h=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(h){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function EZ(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function PZ(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function P2(e,t){var n=wZ(e,!0);return n.filter(function(r){return t.has(r)})}function zP(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=P2(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var RC=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(zT(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function OZ(e,t,n,r,o,a,i,l,s,u){var d=c.useRef(),f=c.useRef();f.current=t;var m=function(){At.cancel(d.current)};return c.useEffect(function(){return function(){m()}},[]),function(h){var g=h.which;if([].concat(BP,[lg,UT,id,ld]).includes(g)){var v=a(),p=RC(v,r),y=p,b=y.elements,C=y.key2element,S=y.element2key,$=C.get(t),x=PZ($,b),w=S.get(x),O=$Z(e,i(w,!0).length===1,n,g);if(!O&&g!==id&&g!==ld)return;(BP.includes(g)||[id,ld].includes(g))&&h.preventDefault();var E=function(N){if(N){var j=N,A=N.querySelector("a");A!=null&&A.getAttribute("href")&&(j=A);var B=S.get(N);l(B),m(),d.current=At(function(){f.current===B&&j.focus()})}};if([id,ld].includes(g)||O.sibling||!x){var P;!x||e==="inline"?P=o.current:P=EZ(x);var M,D=P2(P,b);g===id?M=D[0]:g===ld?M=D[D.length-1]:M=zP(P,b,x,O.offset),E(M)}else if(O.inlineTrigger)s(w);else if(O.offset>0)s(w,!0),m(),d.current=At(function(){p=RC(v,r);var k=x.getAttribute("aria-controls"),N=document.getElementById(k),j=zP(N,p.elements);E(j)},5);else if(O.offset<0){var R=i(w,!0),_=R[R.length-2],T=C.get(_);s(_,!1),E(T)}}u==null||u(h)}}function IZ(e){Promise.resolve().then(e)}var O2="__RC_UTIL_PATH_SPLIT__",HP=function(t){return t.join(O2)},MZ=function(t){return t.split(O2)},_C="rc-menu-more";function RZ(){var e=c.useState({}),t=X(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),a=c.useState([]),i=X(a,2),l=i[0],s=i[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},m=c.useCallback(function(C,S){var $=HP(S);o.current.set($,C),r.current.set(C,$),u.current+=1;var x=u.current;IZ(function(){x===u.current&&f()})},[]),h=c.useCallback(function(C,S){var $=HP(S);o.current.delete($),r.current.delete(C)},[]),g=c.useCallback(function(C){s(C)},[]),v=c.useCallback(function(C,S){var $=r.current.get(C)||"",x=MZ($);return S&&l.includes(x[0])&&x.unshift(_C),x},[l]),p=c.useCallback(function(C,S){return C.some(function($){var x=v($,!0);return x.includes(S)})},[v]),y=function(){var S=Te(r.current.keys());return l.length&&S.push(_C),S},b=c.useCallback(function(C){var S="".concat(r.current.get(C)).concat(O2),$=new Set;return Te(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:y,getSubPathKeys:b}}function Od(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(b.motionAppear=!1);var C=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!m.current&&!S&&p(!0),C==null?void 0:C(S)},v?null:c.createElement(Rf,{mode:a,locked:!m.current},c.createElement(wr,be({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var $=S.className,x=S.style;return c.createElement(I2,{id:t,className:$,style:x},o)}))}var GZ=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],qZ=["active"],YZ=function(t){var n=t.style,r=t.className,o=t.title,a=t.eventKey;t.warnKey;var i=t.disabled,l=t.internalPopupClose,s=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,m=t.popupOffset,h=t.popupStyle,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,y=t.onTitleClick,b=t.onTitleMouseEnter,C=t.onTitleMouseLeave,S=ze(t,GZ),$=HT(a),x=c.useContext(ba),w=x.prefixCls,O=x.mode,E=x.openKeys,P=x.disabled,M=x.overflowDisabled,D=x.activeKey,R=x.selectedKeys,_=x.itemIcon,T=x.expandIcon,k=x.onItemClick,N=x.onOpenChange,j=x.onActive,A=c.useContext(E2),B=A._internalRenderSubMenuItem,z=c.useContext(KT),H=z.isSubPathKey,V=xu(),U="".concat(w,"-submenu"),K=P||i,Y=c.useRef(),G=c.useRef(),q=u??_,J=d??T,Q=E.includes(a),ne=!M&&Q,re=H(R,a),oe=GT(a,K,b,C),te=oe.active,ee=ze(oe,qZ),ie=c.useState(!1),de=X(ie,2),he=de[0],fe=de[1],le=function(Be){K||fe(Be)},me=function(Be){le(!0),v==null||v({key:a,domEvent:Be})},ye=function(Be){le(!1),p==null||p({key:a,domEvent:Be})},ge=c.useMemo(function(){return te||(O!=="inline"?he||H([D],a):!1)},[O,te,D,he,a,H]),ve=qT(V.length),$e=function(Be){K||(y==null||y({key:a,domEvent:Be}),O==="inline"&&N(a,!Q))},Ce=Od(function(ke){g==null||g(dp(ke)),k(ke)}),Oe=function(Be){O!=="inline"&&N(a,Be)},Re=function(){j(a)},Ee=$&&"".concat($,"-popup"),_e=c.createElement("div",be({role:"menuitem",style:ve,className:"".concat(U,"-title"),tabIndex:K?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":M&&$?null:$,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":K,onClick:$e,onFocus:Re},ee),o,c.createElement(YT,{icon:O!=="horizontal"?J:void 0,props:I(I({},t),{},{isOpen:ne,isSubMenu:!0})},c.createElement("i",{className:"".concat(U,"-arrow")}))),Fe=c.useRef(O);if(O!=="inline"&&V.length>1?Fe.current="vertical":Fe.current=O,!M){var qe=Fe.current;_e=c.createElement(KZ,{mode:qe,prefixCls:U,visible:!l&&ne&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:h,popup:c.createElement(Rf,{mode:qe==="horizontal"?"vertical":qe},c.createElement(I2,{id:Ee,ref:G},s)),disabled:K,onVisibleChange:Oe},_e)}var Ze=c.createElement(ma.Item,be({role:"none"},S,{component:"li",style:n,className:Z(U,"".concat(U,"-").concat(O),r,L(L(L(L({},"".concat(U,"-open"),ne),"".concat(U,"-active"),ge),"".concat(U,"-selected"),re),"".concat(U,"-disabled"),K)),onMouseEnter:me,onMouseLeave:ye}),_e,!M&&c.createElement(UZ,{id:Ee,open:ne,keyPath:V},s));return B&&(Ze=B(Ze,t,{selected:re,active:ge,open:ne,disabled:K})),c.createElement(Rf,{onItemClick:Ce,mode:O==="horizontal"?"vertical":O,itemIcon:q,expandIcon:J},Ze)};function Yh(e){var t=e.eventKey,n=e.children,r=xu(t),o=M2(n,r),a=qh();c.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var i;return a?i=o:i=c.createElement(YZ,e,o),c.createElement(WT.Provider,{value:r},i)}var XZ=["className","title","eventKey","children"],QZ=["children"],ZZ=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=ze(t,XZ),i=c.useContext(ba),l=i.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",be({role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Z(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Xh(e){var t=e.children,n=ze(e,QZ),r=xu(n.eventKey),o=M2(t,r),a=qh();return a?o:c.createElement(ZZ,gn(n,["warnKey"]),o)}function R2(e){var t=e.className,n=e.style,r=c.useContext(ba),o=r.prefixCls,a=qh();return a?null:c.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),t),style:n})}var JZ=["label","children","key","type"];function TC(e){return(e||[]).map(function(t,n){if(t&&et(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,s=ze(r,JZ),u=i??"tmp-".concat(n);return a||l==="group"?l==="group"?c.createElement(Xh,be({key:u},s,{title:o}),TC(a)):c.createElement(Yh,be({key:u},s,{title:o}),TC(a)):l==="divider"?c.createElement(R2,be({key:u},s)):c.createElement(vm,be({key:u},s),o)}return null}).filter(function(t){return t})}function eJ(e,t,n){var r=e;return t&&(r=TC(t)),M2(r,n)}var tJ=["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"],Bs=[],nJ=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,l=r.style,s=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,h=r.direction,g=r.id,v=r.mode,p=v===void 0?"vertical":v,y=r.inlineCollapsed,b=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,$=S===void 0?.1:S,x=r.subMenuCloseDelay,w=x===void 0?.1:x,O=r.forceSubMenuRender,E=r.defaultOpenKeys,P=r.openKeys,M=r.activeKey,D=r.defaultActiveFirst,R=r.selectable,_=R===void 0?!0:R,T=r.multiple,k=T===void 0?!1:T,N=r.defaultSelectedKeys,j=r.selectedKeys,A=r.onSelect,B=r.onDeselect,z=r.inlineIndent,H=z===void 0?24:z,V=r.motion,U=r.defaultMotions,K=r.triggerSubMenuAction,Y=K===void 0?"hover":K,G=r.builtinPlacements,q=r.itemIcon,J=r.expandIcon,Q=r.overflowedIndicator,ne=Q===void 0?"...":Q,re=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,te=r.onClick,ee=r.onOpenChange,ie=r.onKeyDown;r.openAnimation,r.openTransitionName;var de=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,fe=ze(r,tJ),le=c.useMemo(function(){return eJ(m,f,Bs)},[m,f]),me=c.useState(!1),ye=X(me,2),ge=ye[0],ve=ye[1],$e=c.useRef(),Ce=TZ(g),Oe=h==="rtl",Re=Pt(E,{value:P,postState:function(Bt){return Bt||Bs}}),Ee=X(Re,2),_e=Ee[0],Fe=Ee[1],qe=function(Bt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function $t(){Fe(Bt),ee==null||ee(Bt)}vt?ja.flushSync($t):$t()},Ze=c.useState(_e),ke=X(Ze,2),Be=ke[0],Ue=ke[1],Je=c.useRef(!1),nt=c.useMemo(function(){return(p==="inline"||p==="vertical")&&y?["vertical",y]:[p,!1]},[p,y]),mt=X(nt,2),gt=mt[0],yt=mt[1],It=gt==="inline",ue=c.useState(gt),se=X(ue,2),pe=se[0],Se=se[1],xe=c.useState(yt),Ne=X(xe,2),We=Ne[0],He=Ne[1];c.useEffect(function(){Se(gt),He(yt),Je.current&&(It?Fe(Be):qe(Bs))},[gt,yt]);var Me=c.useState(0),Le=X(Me,2),Xe=Le[0],Ke=Le[1],it=Xe>=le.length-1||pe!=="horizontal"||C;c.useEffect(function(){It&&Ue(_e)},[_e]),c.useEffect(function(){return Je.current=!0,function(){Je.current=!1}},[]);var ot=RZ(),Mt=ot.registerPath,Ct=ot.unregisterPath,st=ot.refreshOverflowKeys,Qe=ot.isSubPathKey,Ae=ot.getKeyPath,Pe=ot.getKeys,je=ot.getSubPathKeys,Ve=c.useMemo(function(){return{registerPath:Mt,unregisterPath:Ct}},[Mt,Ct]),tt=c.useMemo(function(){return{isSubPathKey:Qe}},[Qe]);c.useEffect(function(){st(it?Bs:le.slice(Xe+1).map(function(Yt){return Yt.key}))},[Xe,it]);var pt=Pt(M||D&&((n=le[0])===null||n===void 0?void 0:n.key),{value:M}),ut=X(pt,2),ct=ut[0],lt=ut[1],ht=Od(function(Yt){lt(Yt)}),ft=Od(function(){lt(void 0)});c.useImperativeHandle(t,function(){return{list:$e.current,focus:function(Bt){var vt,$t=Pe(),Ut=RC($t,Ce),vn=Ut.elements,Zt=Ut.key2element,hn=Ut.element2key,Ot=P2($e.current,vn),St=ct??(Ot[0]?hn.get(Ot[0]):(vt=le.find(function(Gn){return!Gn.props.disabled}))===null||vt===void 0?void 0:vt.key),en=Zt.get(St);if(St&&en){var $n;en==null||($n=en.focus)===null||$n===void 0||$n.call(en,Bt)}}}});var Lt=Pt(N||[],{value:j,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Bs:[Bt]}}),Cn=X(Lt,2),mn=Cn[0],dt=Cn[1],Tt=function(Bt){if(_){var vt=Bt.key,$t=mn.includes(vt),Ut;k?$t?Ut=mn.filter(function(Zt){return Zt!==vt}):Ut=[].concat(Te(mn),[vt]):Ut=[vt],dt(Ut);var vn=I(I({},Bt),{},{selectedKeys:Ut});$t?B==null||B(vn):A==null||A(vn)}!k&&_e.length&&pe!=="inline"&&qe(Bs)},jt=Od(function(Yt){te==null||te(dp(Yt)),Tt(Yt)}),Qt=Od(function(Yt,Bt){var vt=_e.filter(function(Ut){return Ut!==Yt});if(Bt)vt.push(Yt);else if(pe!=="inline"){var $t=je(Yt);vt=vt.filter(function(Ut){return!$t.has(Ut)})}fu(_e,vt,!0)||qe(vt,!0)}),kn=function(Bt,vt){var $t=vt??!_e.includes(Bt);Qt(Bt,$t)},jr=OZ(pe,ct,Oe,Ce,$e,Pe,Ae,lt,kn,ie);c.useEffect(function(){ve(!0)},[]);var Dr=c.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),dr=pe!=="horizontal"||C?le:le.map(function(Yt,Bt){return c.createElement(Rf,{key:Yt.key,overflowDisabled:Bt>Xe},Yt)}),Zr=c.createElement(ma,be({id:g,ref:$e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:vm,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(pe),s,L(L({},"".concat(a,"-inline-collapsed"),We),"".concat(a,"-rtl"),Oe),i),dir:h,style:l,role:"menu",tabIndex:d,data:dr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var vt=Bt.length,$t=vt?le.slice(-vt):null;return c.createElement(Yh,{eventKey:_C,title:ne,disabled:it,internalPopupClose:vt===0,popupClassName:re},$t)},maxCount:pe!=="horizontal"||C?ma.INVALIDATE:ma.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Ke(Bt)},onKeyDown:jr},fe));return c.createElement(E2.Provider,{value:Dr},c.createElement(BT.Provider,{value:Ce},c.createElement(Rf,{prefixCls:a,rootClassName:i,mode:pe,openKeys:_e,rtl:Oe,disabled:b,motion:ge?V:null,defaultMotions:ge?U:null,activeKey:ct,onActive:ht,onInactive:ft,selectedKeys:mn,inlineIndent:H,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:G,triggerSubMenuAction:Y,getPopupContainer:oe,itemIcon:q,expandIcon:J,onItemClick:jt,onOpenChange:Qt},c.createElement(KT.Provider,{value:tt},Zr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(VT.Provider,{value:Ve},le)))))}),wu=nJ;wu.Item=vm;wu.SubMenu=Yh;wu.ItemGroup=Xh;wu.Divider=R2;var rJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const oJ=rJ;var aJ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:oJ}))},iJ=c.forwardRef(aJ);const lJ=iJ;var sJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const cJ=sJ;var uJ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:cJ}))},dJ=c.forwardRef(uJ);const Yc=dJ,fJ=e=>!isNaN(parseFloat(e))&&isFinite(e),QT=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),gJ=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:s={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:p}=e,y=mJ(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=c.useContext(QT),[C,S]=c.useState("collapsed"in e?e.collapsed:i),[$,x]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(R,_)=>{"collapsed"in e||S(R),v==null||v(R,_)},O=c.useRef();O.current=R=>{x(R.matches),p==null||p(R.matches),C!==R.matches&&w(R.matches,"responsive")},c.useEffect(()=>{function R(T){return O.current(T)}let _;if(typeof window<"u"){const{matchMedia:T}=window;if(T&&g&&g in WP){_=T(`screen and (max-width: ${WP[g]})`);try{_.addEventListener("change",R)}catch{_.addListener(R)}R(_)}}return()=>{try{_==null||_.removeEventListener("change",R)}catch{_==null||_.removeListener(R)}}},[g]),c.useEffect(()=>{const R=vJ("ant-sider-");return b.addSider(R),()=>b.removeSider(R)},[]);const E=()=>{w(!C,"clickTrigger")},{getPrefixCls:P}=c.useContext(at),M=()=>{const R=P("layout-sider",n),_=gn(y,["collapsed"]),T=C?m:f,k=fJ(T)?`${T}px`:String(T),N=parseFloat(String(m||0))===0?c.createElement("span",{onClick:E,className:Z(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:h},o||c.createElement(lJ,null)):null,B={expanded:d?c.createElement(pi,null):c.createElement(Yc,null),collapsed:d?c.createElement(Yc,null):c.createElement(pi,null)}[C?"collapsed":"expanded"],z=o!==null?N||c.createElement("div",{className:`${R}-trigger`,onClick:E,style:{width:k}},o||B):null,H=Object.assign(Object.assign({},s),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),V=Z(R,`${R}-${l}`,{[`${R}-collapsed`]:!!C,[`${R}-has-trigger`]:u&&o!==null&&!N,[`${R}-below`]:!!$,[`${R}-zero-width`]:parseFloat(k)===0},r);return c.createElement("aside",Object.assign({className:V},_,{style:H,ref:t}),c.createElement("div",{className:`${R}-children`},a),u||$&&N?z:null)},D=c.useMemo(()=>({siderCollapsed:C}),[C]);return c.createElement(Qh.Provider,{value:D},M())}),ZT=gJ;var pJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const hJ=pJ;var yJ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:hJ}))},bJ=c.forwardRef(yJ);const _2=bJ;var CJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=CJ(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=c.useContext(at),i=a("menu",t),l=Z({[`${i}-item-divider-dashed`]:!!r},n);return c.createElement(R2,Object.assign({className:l},o))},JT=SJ,xJ=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),fp=xJ,wJ=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=c.useContext(fp),m=b=>{const C=c.createElement("span",{className:`${l}-title-content`},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&b&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=c.useContext(Qh);let g=a;typeof a>"u"?g=s?r:"":a===!1&&(g="");const v={title:g};!h&&!f&&(v.title=null,v.open=!1);const p=sr(r).length;let y=c.createElement(vm,Object.assign({},gn(e,["title","icon","danger"]),{className:Z({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),tr(o,{className:Z(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(y=c.createElement(Go,Object.assign({},v,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},eN=wJ,$J=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=c.useContext(fp),{prefixCls:l,inlineCollapsed:s,theme:u}=i,d=xu();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const g=c.isValidElement(o)&&o.type==="span";f=c.createElement(c.Fragment,null,tr(r,{className:Z(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:c.createElement("span",{className:`${l}-title-content`},o))}const m=c.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=Uo("Menu");return c.createElement(fp.Provider,{value:m},c.createElement(Yh,Object.assign({},gn(e,["icon"]),{title:f,popupClassName:Z(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))},tN=$J;var EJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,s=EJ(r,["label","children","key","type"]),u=i??`tmp-${n}`;return a||l==="group"?l==="group"?c.createElement(Xh,Object.assign({key:u},s,{title:o}),NC(a)):c.createElement(tN,Object.assign({key:u},s,{title:o}),NC(a)):l==="divider"?c.createElement(JT,Object.assign({key:u},s)):c.createElement(eN,Object.assign({key:u},s),o)}return null}).filter(t=>t)}function PJ(e){return c.useMemo(()=>e&&NC(e),[e])}var OJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=OJ(e,["children"]),o=c.useContext(mp),a=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=JA(n),l=za(t,i?n.ref:null);return c.createElement(mp.Provider,{value:a},c.createElement(ka,null,i?c.cloneElement(n,{ref:l}):n))}),MJ=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Yy(_t(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const rZ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:i,controlPaddingHorizontal:l,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:p}=e,y=r-i*2,b=o-i*2,C=a-i*2;return{zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightSM:b,multipleItemHeightLG:C,multipleSelectorBgDisabled:v,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},BT=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ae(o)} ${t.activeShadowColor}`,outline:0}}}},JP=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BT(e,t))}),oZ=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},BT(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),JP(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),JP(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zT=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},e3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zT(e,t))}),aZ=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},zT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),e3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),e3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),iZ=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),lZ=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},oZ(e)),aZ(e)),iZ(e))}),sZ=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},cZ=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},uZ=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},sZ(e)),cZ(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},mi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},mi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},pu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},dZ=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},uZ(e),nZ(e),tZ(e),ZQ(e),{[`${t}-rtl`]:{direction:"rtl"}},bu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},S2=Ht("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=_t(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dZ(r),lZ(r)]},rZ,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var fZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const mZ=fZ;var vZ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:mZ}))},gZ=c.forwardRef(vZ);const Uh=gZ;var pZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const hZ=pZ;var yZ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:hZ}))},bZ=c.forwardRef(yZ);const Gh=bZ;var CZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const SZ=CZ;var xZ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:SZ}))},wZ=c.forwardRef(xZ);const qh=wZ;function Yh(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const h=n??c.createElement(Ha,null),g=b=>t===null&&!l&&!f?null:c.createElement(c.Fragment,null,u!==!1&&b,l&&d);let v=null;if(t!==void 0)v=g(t);else if(a)v=g(c.createElement(Cl,{spin:!0}));else{const b=`${s}-suffix`;v=C=>{let{open:S,showSearch:$}=C;return g(S&&$?c.createElement(qh,{className:b}):c.createElement(Gh,{className:b}))}}let p=null;r!==void 0?p=r:i?p=c.createElement(Uh,null):p=null;let y=null;return o!==void 0?y=o:y=c.createElement(xa,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:y}}function x2(e,t){return t!==void 0?t:e!==null}var $Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:v,status:p,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,direction:S,style:$,allowClear:x,variant:w,dropdownStyle:O,transitionName:E,tagRender:P,maxCount:M}=e,D=$Z(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:_,renderEmpty:T,direction:k,virtual:N,popupMatchSelectWidth:j,popupOverflow:A,select:B}=c.useContext(at),[,z]=cr(),H=m??(z==null?void 0:z.controlHeight),V=_("select",r),U=_(),K=S??k,{compactSize:Y,compactItemClassnames:G}=Va(V,K),[q,J]=wl(w,o),Q=pn(V),[ne,re,oe]=S2(V,Q),te=c.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===HT?"combobox":Je},[e.mode]),ee=te==="multiple"||te==="tags",ie=x2(e.suffixIcon,e.showArrow),de=(n=C??b)!==null&&n!==void 0?n:j,{status:he,hasFeedback:fe,isFormItemInput:le,feedbackIcon:me}=c.useContext(yr),ye=xl(he,p);let ge;v!==void 0?ge=v:te==="combobox"?ge=null:ge=(T==null?void 0:T("Select"))||c.createElement(gm,{componentName:"Select"});const{suffixIcon:ve,itemIcon:$e,removeIcon:Ce,clearIcon:Oe}=Yh(Object.assign(Object.assign({},D),{multiple:ee,hasFeedback:fe,feedbackIcon:me,showSuffixIcon:ie,prefixCls:V,componentName:"Select"})),Re=x===!0?{clearIcon:Oe}:x,Ee=gn(D,["suffixIcon","itemIcon"]),_e=Z(s||u,{[`${V}-dropdown-${K}`]:K==="rtl"},i,oe,Q,re),Fe=nr(Je=>{var nt;return(nt=h??Y)!==null&&nt!==void 0?nt:Je}),qe=c.useContext(Kr),Ze=g??qe,ke=Z({[`${V}-lg`]:Fe==="large",[`${V}-sm`]:Fe==="small",[`${V}-rtl`]:K==="rtl",[`${V}-${q}`]:J,[`${V}-in-form-item`]:le},ya(V,ye,fe),G,B==null?void 0:B.className,a,i,oe,Q,re),Be=c.useMemo(()=>f!==void 0?f:K==="rtl"?"bottomRight":"bottomLeft",[f,K]),[Ue]=Uo("SelectLike",O==null?void 0:O.zIndex);return ne(c.createElement(y2,Object.assign({ref:t,virtual:N,showSearch:B==null?void 0:B.showSearch},Ee,{style:Object.assign(Object.assign({},B==null?void 0:B.style),$),dropdownMatchSelectWidth:de,transitionName:$r(U,"slide-up",E),builtinPlacements:C2(y,A),listHeight:d,listItemHeight:H,mode:te,prefixCls:V,placement:Be,direction:K,suffixIcon:ve,menuItemSelectedIcon:$e,removeIcon:Ce,allowClear:Re,notFoundContent:ge,className:ke,getPopupContainer:l||R,dropdownClassName:_e,disabled:Ze,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:Ue}),maxCount:ee?M:void 0,tagRender:ee?P:void 0})))},xu=c.forwardRef(EZ),PZ=Sl(xu);xu.SECRET_COMBOBOX_MODE_DO_NOT_USE=HT;xu.Option=g2;xu.OptGroup=v2;xu._InternalPanelDoNotUseOrYouWillBeFired=PZ;const Ta=xu,dl=["xxl","xl","lg","md","sm","xs"],OZ=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)`}),IZ=e=>{const t=e,n=[].concat(dl).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},s=window.matchMedia(i);s.addListener(l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function MZ(){const[,e]=c.useReducer(t=>t+1,0);return e}function w2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=MZ(),r=VT();return Kt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const RZ=c.createContext({}),RC=RZ,_Z=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:l,containerSizeSM:s,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,y=(b,C,S)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${ae(v)} ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,u,m)),{"&-lg":Object.assign({},y(l,d,h)),"&-sm":Object.assign({},y(s,f,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},TZ=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},NZ=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:l,marginXS:s,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-s,groupBorderColor:d}},WT=Ht("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=_t(e,{avatarBg:n,avatarColor:t});return[_Z(r),TZ(r)]},NZ);var jZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=c.useState(1),[o,a]=c.useState(!1),[i,l]=c.useState(!0),s=c.useRef(null),u=c.useRef(null),d=Er(t,s),{getPrefixCls:f,avatar:m}=c.useContext(at),h=c.useContext(RC),g=()=>{if(!u.current||!s.current)return;const q=u.current.offsetWidth,J=s.current.offsetWidth;if(q!==0&&J!==0){const{gap:Q=4}=e;Q*2{a(!0)},[]),c.useEffect(()=>{l(!0),r(1)},[e.src]),c.useEffect(g,[e.gap]);const v=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&l(!1)},{prefixCls:p,shape:y,size:b,src:C,srcSet:S,icon:$,className:x,rootClassName:w,alt:O,draggable:E,children:P,crossOrigin:M}=e,D=jZ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),R=nr(q=>{var J,Q;return(Q=(J=b??(h==null?void 0:h.size))!==null&&J!==void 0?J:q)!==null&&Q!==void 0?Q:"default"}),_=Object.keys(typeof R=="object"?R||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),T=w2(_),k=c.useMemo(()=>{if(typeof R!="object")return{};const q=dl.find(Q=>T[Q]),J=R[q];return J?{width:J,height:J,fontSize:J&&($||P)?J/2:18}:{}},[T,R]),N=f("avatar",p),j=pn(N),[A,B,z]=WT(N,j),H=Z({[`${N}-lg`]:R==="large",[`${N}-sm`]:R==="small"}),V=c.isValidElement(C),U=y||(h==null?void 0:h.shape)||"circle",K=Z(N,H,m==null?void 0:m.className,`${N}-${U}`,{[`${N}-image`]:V||C&&i,[`${N}-icon`]:!!$},z,j,x,w,B),Y=typeof R=="number"?{width:R,height:R,fontSize:$?R/2:18}:{};let G;if(typeof C=="string"&&i)G=c.createElement("img",{src:C,draggable:E,srcSet:S,onError:v,alt:O,crossOrigin:M});else if(V)G=C;else if($)G=$;else if(o||n!==1){const q=`scale(${n})`,J={msTransform:q,WebkitTransform:q,transform:q};G=c.createElement(Sr,{onResize:g},c.createElement("span",{className:`${N}-string`,ref:u,style:Object.assign({},J)},P))}else G=c.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:u},P);return delete D.onError,delete D.gap,A(c.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Y),k),m==null?void 0:m.style),D.style),className:K,ref:d}),G))},FZ=c.forwardRef(DZ),KT=FZ,fp=e=>e?typeof e=="function"?e():e:null;function $2(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(n,"-content"),a),style:i},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Fs={shiftX:64,adjustY:1},ks={adjustX:1,shiftY:!0},Mo=[0,0],kZ={left:{points:["cr","cl"],overflow:ks,offset:[-4,0],targetOffset:Mo},right:{points:["cl","cr"],overflow:ks,offset:[4,0],targetOffset:Mo},top:{points:["bc","tc"],overflow:Fs,offset:[0,-4],targetOffset:Mo},bottom:{points:["tc","bc"],overflow:Fs,offset:[0,4],targetOffset:Mo},topLeft:{points:["bl","tl"],overflow:Fs,offset:[0,-4],targetOffset:Mo},leftTop:{points:["tr","tl"],overflow:ks,offset:[-4,0],targetOffset:Mo},topRight:{points:["br","tr"],overflow:Fs,offset:[0,-4],targetOffset:Mo},rightTop:{points:["tl","tr"],overflow:ks,offset:[4,0],targetOffset:Mo},bottomRight:{points:["tr","br"],overflow:Fs,offset:[0,4],targetOffset:Mo},rightBottom:{points:["bl","br"],overflow:ks,offset:[4,0],targetOffset:Mo},bottomLeft:{points:["tl","bl"],overflow:Fs,offset:[0,4],targetOffset:Mo},leftBottom:{points:["br","bl"],overflow:ks,offset:[-4,0],targetOffset:Mo}},LZ=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],AZ=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,s=t.mouseLeaveDelay,u=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,y=t.animation,b=t.motion,C=t.placement,S=C===void 0?"right":C,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,E=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,R=t.id,_=t.showArrow,T=_===void 0?!0:_,k=ze(t,LZ),N=c.useRef(null);c.useImperativeHandle(n,function(){return N.current});var j=I({},k);"visible"in t&&(j.popupVisible=t.visible);var A=function(){return c.createElement($2,{key:"content",prefixCls:m,id:R,overlayInnerStyle:M},D)};return c.createElement(vm,be({popupClassName:r,prefixCls:m,popup:A,action:a,builtinPlacements:kZ,popupPlacement:S,ref:N,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:y,popupMotion:b,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:T},j),h)};const BZ=c.forwardRef(AZ);function Xh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,h=2*o-l,g=s,v=2*o-a,p=i,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${h} ${g} A ${r} ${r} 0 0 0 ${v} ${p} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:C}}const UT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},GT=8;function Qh(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?GT:r}}function $v(e,t){return e?t:{}}function E2(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},UT(e,t,o)),{"&:before":{background:t}})]},$v(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),$v(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),$v(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),$v(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function zZ(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const t3={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},HZ={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},VZ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function qT(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,s={};return Object.keys(t3).forEach(u=>{const d=r&&HZ[u]||t3[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=f,VZ.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Qh({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+l;break}f.overflow=zZ(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),s}const WZ=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${ae(e.calc(u).div(2).equal())} ${ae(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,GT)}},[`${t}-content`]:{position:"relative"}}),Zx(e,(f,m)=>{let{darkColor:h}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},E2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},KZ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qh({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Xh(_t(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),YT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ht("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=_t(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[WZ(l),Su(r,"zoom-big-fast")]},KZ,{resetStyle:!1,injectStyle:t})(e)},UZ=Of.map(e=>`${e}-inverse`);function P2(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(UZ),Te(Of)).includes(e):Of.includes(e)}function XT(e,t){const n=P2(t),r=Z({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const GZ=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=c.useContext(at),s=l("tooltip",t),[u,d,f]=YT(s),m=XT(s,a),h=m.arrowStyle,g=Object.assign(Object.assign({},i),m.overlayStyle),v=Z(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,m.className);return u(c.createElement("div",{className:v,style:h},c.createElement("div",{className:`${s}-arrow`}),c.createElement($2,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),o)))},qZ=GZ;var YZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:C=!0}=e,S=!!g,[,$]=cr(),{getPopupContainer:x,getPrefixCls:w,direction:O}=c.useContext(at),E=gu(),P=c.useRef(null),M=()=>{var ge;(ge=P.current)===null||ge===void 0||ge.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:M,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),M()}}));const[D,R]=Pt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),_=!v&&!p&&v!==0,T=ge=>{var ve,$e;R(_?!1:ge),_||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,ge),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,ge))},k=c.useMemo(()=>{var ge,ve;let $e=b;return typeof g=="object"&&($e=(ve=(ge=g.pointAtCenter)!==null&&ge!==void 0?ge:g.arrowPointAtCenter)!==null&&ve!==void 0?ve:b),y||qT({arrowPointAtCenter:$e,autoAdjustOverflow:C,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[b,g,y,$]),N=c.useMemo(()=>v===0?v:p||v||"",[p,v]),j=c.createElement(ka,null,typeof N=="function"?N():N),{getPopupContainer:A,placement:B="top",mouseEnterDelay:z=.1,mouseLeaveDelay:H=.1,overlayStyle:V,rootClassName:U}=e,K=YZ(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=w("tooltip",o),G=w(),q=e["data-popover-inject"];let J=D;!("open"in e)&&!("visible"in e)&&_&&(J=!1);const Q=c.isValidElement(d)&&!M_(d)?d:c.createElement("span",null,d),ne=Q.props,re=!ne.className||typeof ne.className=="string"?Z(ne.className,a||`${Y}-open`):ne.className,[oe,te,ee]=YT(Y,!q),ie=XT(Y,s),de=ie.arrowStyle,he=Object.assign(Object.assign({},u),ie.overlayStyle),fe=Z(l,{[`${Y}-rtl`]:O==="rtl"},ie.className,U,te,ee),[le,me]=Uo("Tooltip",K.zIndex),ye=c.createElement(BZ,Object.assign({},K,{zIndex:le,showArrow:S,placement:B,mouseEnterDelay:z,mouseLeaveDelay:H,prefixCls:Y,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},de),V),getTooltipContainer:A||i||x,ref:P,builtinPlacements:k,overlay:j,visible:J,onVisibleChange:T,afterVisibleChange:f??m,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:$r(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),J?tr(Q,{className:re}):Q);return oe(c.createElement(lm.Provider,{value:me},ye))});QT._InternalPanelDoNotUseOrYouWillBeFired=qZ;const Go=QT,XZ=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:h,innerContentPadding:g,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:h,padding:v},[`${t}-inner-content`]:{color:n,padding:g}})},E2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},QZ=e=>{const{componentCls:t}=e;return{[t]:Of.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},ZZ=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:s,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,h=m/2,g=m/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Xh(e)),Qh({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:s,titlePadding:a?`${h}px ${v}px ${g}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},ZT=Ht("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=_t(e,{popoverBg:t,popoverColor:n});return[XZ(r),QZ(r),Su(r,"zoom-big")]},ZZ,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var JZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${e}-title`},fp(t)),c.createElement("div",{className:`${e}-inner-content`},fp(n))),tJ=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:s}=e;return c.createElement("div",{className:Z(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement($2,Object.assign({},e,{className:t,prefixCls:n}),s||eJ(n,i,l)))},nJ=e=>{const{prefixCls:t,className:n}=e,r=JZ(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(at),a=o("popover",t),[i,l,s]=ZT(a);return i(c.createElement(tJ,Object.assign({},r,{prefixCls:a,hashId:l,className:Z(n,s)})))},rJ=nJ;var oJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${r}-title`},fp(t)),c.createElement("div",{className:`${r}-inner-content`},fp(n)))},JT=c.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:u=.1,overlayStyle:d={}}=e,f=oJ(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=c.useContext(at),h=m("popover",n),[g,v,p]=ZT(h),y=m(),b=Z(a,v,p);return g(c.createElement(Go,Object.assign({placement:i,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:u,overlayStyle:d},f,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?c.createElement(aJ,{prefixCls:h,title:r,content:o}):null,transitionName:$r(y,"zoom-big",f.transitionName),"data-popover-inject":!0})))});JT._InternalPanelDoNotUseOrYouWillBeFired=rJ;const Cs=JT,n3=e=>{const{size:t,shape:n}=c.useContext(RC),r=c.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return c.createElement(RC.Provider,{value:r},e.children)},iJ=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:l,maxStyle:s,size:u,shape:d,maxPopoverPlacement:f="top",maxPopoverTrigger:m="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,p=pn(g),[y,b,C]=WT(g,p),S=Z(v,{[`${v}-rtl`]:n==="rtl"},C,p,o,a,b),$=sr(h).map((w,O)=>tr(w,{key:`avatar-key-${O}`})),x=$.length;if(l&&l{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:l,statusSize:s,dotSize:u,textFontWeight:d,indicatorHeight:f,indicatorHeightSM:m,marginXS:h,calc:g}=e,v=`${r}-scroll-number`,p=Zx(e,(y,b)=>{let{darkColor:C}=b;return{[`&${t} ${t}-color-${y}`]:{background:C,[`&:not(${t}-count)`]:{color:C}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:f,height:f,color:e.badgeTextColor,fontWeight:d,fontSize:i,lineHeight:ae(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(f).div(2).equal(),boxShadow:`0 0 0 ${ae(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:l,lineHeight:ae(m),borderRadius:g(m).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ae(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ae(o)} ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:mJ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:sJ,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),p),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:cJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:uJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:fJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:f,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:f,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},tN=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorBgContainer,s=e.colorError,u=e.colorErrorHover;return _t(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},nN=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},gJ=Ht("Badge",e=>{const t=tN(e);return vJ(t)},nN),pJ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Zx(e,(u,d)=>{let{darkColor:f}=d;return{[`&${i}-color-${u}`]:{background:f,color:f}}});return{[`${l}`]:{position:"relative"},[`${i}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:r,padding:`0 ${ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ae(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.colorTextLightSolid},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${ae(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},hJ=Ht(["Badge","Ribbon"],e=>{const t=tN(e);return pJ(t)},nN),yJ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:u,direction:d}=c.useContext(at),f=u("ribbon",n),m=`${f}-wrapper`,[h,g,v]=hJ(f,m),p=P2(o,!1),y=Z(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:p},t),b={},C={};return o&&!p&&(b.background=o,C.color=o),h(c.createElement("div",{className:Z(m,s,g,v)},a,c.createElement("div",{className:Z(y,g),style:Object.assign(Object.assign({},b),r)},c.createElement("span",{className:`${f}-text`},i),c.createElement("div",{className:`${f}-corner`,style:C}))))},bJ=yJ;function r3(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:a,className:Z(`${t}-only-unit`,{current:r})},n)}function CJ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function SJ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=c.useState(o),[s,u]=c.useState(a),d=()=>{l(o),u(a)};c.useEffect(()=>{const h=setTimeout(()=>{d()},1e3);return()=>{clearTimeout(h)}},[o]);let f,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[c.createElement(r3,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const h=o+10,g=[];for(let y=o;y<=h;y+=1)g.push(y);const v=g.findIndex(y=>y%10===i);f=g.map((y,b)=>{const C=y%10;return c.createElement(r3,Object.assign({},e,{key:y,value:C,offset:b-v,current:b===v}))});const p=s{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:u="sup",children:d}=e,f=xJ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=c.useContext(at),h=m("scroll-number",n),g=Object.assign(Object.assign({},f),{"data-show":s,style:i,className:Z(h,o,a),title:l});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=c.createElement("bdi",null,p.map((y,b)=>c.createElement(SJ,{prefixCls:h,count:Number(r),value:y,key:p.length-b})))}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?tr(d,p=>({className:Z(`${h}-custom-component`,p==null?void 0:p.className,a)})):c.createElement(u,Object.assign({},g,{ref:t}),v)}),$J=wJ;var EJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:u,status:d,text:f,color:m,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:y,offset:b,style:C,className:S,rootClassName:$,classNames:x,styles:w,showZero:O=!1}=e,E=EJ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:M,badge:D}=c.useContext(at),R=P("badge",l),[_,T,k]=gJ(R),N=h>g?`${g}+`:h,j=N==="0"||N===0,A=h===null||j&&!O,B=(d!=null||m!=null)&&A,z=v&&!j,H=z?"":N,V=c.useMemo(()=>(H==null||H===""||j&&!O)&&!z,[H,j,O,z]),U=c.useRef(h);V||(U.current=h);const K=U.current,Y=c.useRef(H);V||(Y.current=H);const G=Y.current,q=c.useRef(z);V||(q.current=z);const J=c.useMemo(()=>{if(!b)return Object.assign(Object.assign({},D==null?void 0:D.style),C);const de={marginTop:b[1]};return M==="rtl"?de.left=parseInt(b[0],10):de.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},de),D==null?void 0:D.style),C)},[M,b,C,D==null?void 0:D.style]),Q=y??(typeof K=="string"||typeof K=="number"?K:void 0),ne=V||!f?null:c.createElement("span",{className:`${R}-status-text`},f),re=!K||typeof K!="object"?void 0:tr(K,de=>({style:Object.assign(Object.assign({},J),de.style)})),oe=P2(m,!1),te=Z(x==null?void 0:x.indicator,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.indicator,{[`${R}-status-dot`]:B,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:oe}),ee={};m&&!oe&&(ee.color=m,ee.background=m);const ie=Z(R,{[`${R}-status`]:B,[`${R}-not-a-wrapper`]:!u,[`${R}-rtl`]:M==="rtl"},S,$,D==null?void 0:D.className,(r=D==null?void 0:D.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,T,k);if(!u&&B){const de=J.color;return _(c.createElement("span",Object.assign({},E,{className:ie,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(o=D==null?void 0:D.styles)===null||o===void 0?void 0:o.root),J)}),c.createElement("span",{className:te,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.indicator),ee)}),f&&c.createElement("span",{style:{color:de},className:`${R}-status-text`},f)))}return _(c.createElement("span",Object.assign({ref:t},E,{className:ie,style:Object.assign(Object.assign({},(i=D==null?void 0:D.styles)===null||i===void 0?void 0:i.root),w==null?void 0:w.root)}),u,c.createElement(wr,{visible:!V,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},de=>{let{className:he,ref:fe}=de;var le,me;const ye=P("scroll-number",s),ge=q.current,ve=Z(x==null?void 0:x.indicator,(le=D==null?void 0:D.classNames)===null||le===void 0?void 0:le.indicator,{[`${R}-dot`]:ge,[`${R}-count`]:!ge,[`${R}-count-sm`]:p==="small",[`${R}-multiple-words`]:!ge&&G&&G.toString().length>1,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:oe});let $e=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(me=D==null?void 0:D.styles)===null||me===void 0?void 0:me.indicator),J);return m&&!oe&&($e=$e||{},$e.background=m),c.createElement($J,{prefixCls:ye,show:!V,motionClassName:he,className:ve,count:G,title:Q,style:$e,key:"scrollNumber",ref:fe},re)}),ne))},rN=c.forwardRef(PJ);rN.Ribbon=bJ;const Jo=rN;var OJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const IJ=OJ;var MJ=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:IJ}))},RJ=c.forwardRef(MJ);const pi=RJ;var _J=Ie.ESC,TJ=Ie.TAB;function NJ(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=c.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},s=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case _J:l();break;case TJ:{var m=!1;i.current||(m=s()),m?f.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&At(s,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var jJ=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=c.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Er(t,a==null?void 0:a.ref);return W.createElement(W.Fragment,null,r&&W.createElement("div",{className:"".concat(o,"-arrow")}),W.cloneElement(a,{ref:Si(a)?i:void 0}))}),Ls={adjustX:1,adjustY:1},As=[0,0],DJ={topLeft:{points:["bl","tl"],overflow:Ls,offset:[0,-4],targetOffset:As},top:{points:["bc","tc"],overflow:Ls,offset:[0,-4],targetOffset:As},topRight:{points:["br","tr"],overflow:Ls,offset:[0,-4],targetOffset:As},bottomLeft:{points:["tl","bl"],overflow:Ls,offset:[0,4],targetOffset:As},bottom:{points:["tc","bc"],overflow:Ls,offset:[0,4],targetOffset:As},bottomRight:{points:["tr","br"],overflow:Ls,offset:[0,4],targetOffset:As}},FJ=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function kJ(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?DJ:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,C=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,w=e.overlay,O=e.children,E=e.onVisibleChange,P=ze(e,FJ),M=W.useState(),D=X(M,2),R=D[0],_=D[1],T="visible"in e?C:R,k=W.useRef(null),N=W.useRef(null),j=W.useRef(null);W.useImperativeHandle(t,function(){return k.current});var A=function(q){_(q),E==null||E(q)};NJ({visible:T,triggerRef:j,onVisibleChange:A,autoFocus:x,overlayRef:N});var B=function(q){var J=e.onOverlayClick;_(!1),J&&J(q)},z=function(){return W.createElement(jJ,{ref:N,overlay:w,prefixCls:i,arrow:o})},H=function(){return typeof w=="function"?z:z()},V=function(){var q=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!J},U=function(){var q=e.openClassName;return q!==void 0?q:"".concat(i,"-open")},K=W.cloneElement(O,{className:Z((n=O.props)===null||n===void 0?void 0:n.className,T&&U()),ref:Si(O)?Er(j,O.ref):void 0}),Y=p;return!Y&&$.indexOf("contextMenu")!==-1&&(Y=["click"]),W.createElement(vm,be({builtinPlacements:h},P,{prefixCls:i,ref:k,popupClassName:Z(y,L({},"".concat(i,"-show-arrow"),o)),popupStyle:b,action:$,showAction:v,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:T,stretch:V()?"minWidth":"",popup:H(),onPopupVisibleChange:A,onPopupClick:B,getPopupContainer:g}),K)}const oN=W.forwardRef(kJ);var aN=c.createContext(null);function iN(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function lN(e){var t=c.useContext(aN);return iN(t,e)}var LJ=["children","locked"],ba=c.createContext(null);function AJ(e,t){var n=I({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Tf(e){var t=e.children,n=e.locked,r=ze(e,LJ),o=c.useContext(ba),a=fu(function(){return AJ(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!mu(i[1],l[1],!0))});return c.createElement(ba.Provider,{value:a},t)}var BJ=[],sN=c.createContext(null);function Jh(){return c.useContext(sN)}var cN=c.createContext(BJ);function wu(e){var t=c.useContext(cN);return c.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var uN=c.createContext(null),O2=c.createContext({});function o3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cm(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function zJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return o3(r,t)});return o3(e,t)&&n.unshift(e),n}var _C=Ie.LEFT,TC=Ie.RIGHT,NC=Ie.UP,ig=Ie.DOWN,lg=Ie.ENTER,dN=Ie.ESC,dd=Ie.HOME,fd=Ie.END,a3=[NC,ig,_C,TC];function HJ(e,t,n,r){var o,a="prev",i="next",l="children",s="parent";if(e==="inline"&&r===lg)return{inlineTrigger:!0};var u=L(L({},NC,a),ig,i),d=L(L(L(L({},_C,n?i:a),TC,n?a:i),ig,l),lg,l),f=L(L(L(L(L(L({},NC,a),ig,i),lg,l),dN,s),_C,n?l:s),TC,n?s:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},h=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(h){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function VJ(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function WJ(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function I2(e,t){var n=zJ(e,!0);return n.filter(function(r){return t.has(r)})}function i3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=I2(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var jC=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(iN(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function KJ(e,t,n,r,o,a,i,l,s,u){var d=c.useRef(),f=c.useRef();f.current=t;var m=function(){At.cancel(d.current)};return c.useEffect(function(){return function(){m()}},[]),function(h){var g=h.which;if([].concat(a3,[lg,dN,dd,fd]).includes(g)){var v=a(),p=jC(v,r),y=p,b=y.elements,C=y.key2element,S=y.element2key,$=C.get(t),x=WJ($,b),w=S.get(x),O=HJ(e,i(w,!0).length===1,n,g);if(!O&&g!==dd&&g!==fd)return;(a3.includes(g)||[dd,fd].includes(g))&&h.preventDefault();var E=function(N){if(N){var j=N,A=N.querySelector("a");A!=null&&A.getAttribute("href")&&(j=A);var B=S.get(N);l(B),m(),d.current=At(function(){f.current===B&&j.focus()})}};if([dd,fd].includes(g)||O.sibling||!x){var P;!x||e==="inline"?P=o.current:P=VJ(x);var M,D=I2(P,b);g===dd?M=D[0]:g===fd?M=D[D.length-1]:M=i3(P,b,x,O.offset),E(M)}else if(O.inlineTrigger)s(w);else if(O.offset>0)s(w,!0),m(),d.current=At(function(){p=jC(v,r);var k=x.getAttribute("aria-controls"),N=document.getElementById(k),j=i3(N,p.elements);E(j)},5);else if(O.offset<0){var R=i(w,!0),_=R[R.length-2],T=C.get(_);s(_,!1),E(T)}}u==null||u(h)}}function UJ(e){Promise.resolve().then(e)}var M2="__RC_UTIL_PATH_SPLIT__",l3=function(t){return t.join(M2)},GJ=function(t){return t.split(M2)},DC="rc-menu-more";function qJ(){var e=c.useState({}),t=X(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),a=c.useState([]),i=X(a,2),l=i[0],s=i[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},m=c.useCallback(function(C,S){var $=l3(S);o.current.set($,C),r.current.set(C,$),u.current+=1;var x=u.current;UJ(function(){x===u.current&&f()})},[]),h=c.useCallback(function(C,S){var $=l3(S);o.current.delete($),r.current.delete(C)},[]),g=c.useCallback(function(C){s(C)},[]),v=c.useCallback(function(C,S){var $=r.current.get(C)||"",x=GJ($);return S&&l.includes(x[0])&&x.unshift(DC),x},[l]),p=c.useCallback(function(C,S){return C.some(function($){var x=v($,!0);return x.includes(S)})},[v]),y=function(){var S=Te(r.current.keys());return l.length&&S.push(DC),S},b=c.useCallback(function(C){var S="".concat(r.current.get(C)).concat(M2),$=new Set;return Te(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:y,getSubPathKeys:b}}function Od(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(b.motionAppear=!1);var C=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!m.current&&!S&&p(!0),C==null?void 0:C(S)},v?null:c.createElement(Tf,{mode:a,locked:!m.current},c.createElement(wr,be({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var $=S.className,x=S.style;return c.createElement(R2,{id:t,className:$,style:x},o)}))}var dee=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],fee=["active"],mee=function(t){var n=t.style,r=t.className,o=t.title,a=t.eventKey;t.warnKey;var i=t.disabled,l=t.internalPopupClose,s=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,m=t.popupOffset,h=t.popupStyle,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,y=t.onTitleClick,b=t.onTitleMouseEnter,C=t.onTitleMouseLeave,S=ze(t,dee),$=lN(a),x=c.useContext(ba),w=x.prefixCls,O=x.mode,E=x.openKeys,P=x.disabled,M=x.overflowDisabled,D=x.activeKey,R=x.selectedKeys,_=x.itemIcon,T=x.expandIcon,k=x.onItemClick,N=x.onOpenChange,j=x.onActive,A=c.useContext(O2),B=A._internalRenderSubMenuItem,z=c.useContext(uN),H=z.isSubPathKey,V=wu(),U="".concat(w,"-submenu"),K=P||i,Y=c.useRef(),G=c.useRef(),q=u??_,J=d??T,Q=E.includes(a),ne=!M&&Q,re=H(R,a),oe=fN(a,K,b,C),te=oe.active,ee=ze(oe,fee),ie=c.useState(!1),de=X(ie,2),he=de[0],fe=de[1],le=function(Be){K||fe(Be)},me=function(Be){le(!0),v==null||v({key:a,domEvent:Be})},ye=function(Be){le(!1),p==null||p({key:a,domEvent:Be})},ge=c.useMemo(function(){return te||(O!=="inline"?he||H([D],a):!1)},[O,te,D,he,a,H]),ve=mN(V.length),$e=function(Be){K||(y==null||y({key:a,domEvent:Be}),O==="inline"&&N(a,!Q))},Ce=Od(function(ke){g==null||g(mp(ke)),k(ke)}),Oe=function(Be){O!=="inline"&&N(a,Be)},Re=function(){j(a)},Ee=$&&"".concat($,"-popup"),_e=c.createElement("div",be({role:"menuitem",style:ve,className:"".concat(U,"-title"),tabIndex:K?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":M&&$?null:$,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":K,onClick:$e,onFocus:Re},ee),o,c.createElement(vN,{icon:O!=="horizontal"?J:void 0,props:I(I({},t),{},{isOpen:ne,isSubMenu:!0})},c.createElement("i",{className:"".concat(U,"-arrow")}))),Fe=c.useRef(O);if(O!=="inline"&&V.length>1?Fe.current="vertical":Fe.current=O,!M){var qe=Fe.current;_e=c.createElement(cee,{mode:qe,prefixCls:U,visible:!l&&ne&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:h,popup:c.createElement(Tf,{mode:qe==="horizontal"?"vertical":qe},c.createElement(R2,{id:Ee,ref:G},s)),disabled:K,onVisibleChange:Oe},_e)}var Ze=c.createElement(ma.Item,be({role:"none"},S,{component:"li",style:n,className:Z(U,"".concat(U,"-").concat(O),r,L(L(L(L({},"".concat(U,"-open"),ne),"".concat(U,"-active"),ge),"".concat(U,"-selected"),re),"".concat(U,"-disabled"),K)),onMouseEnter:me,onMouseLeave:ye}),_e,!M&&c.createElement(uee,{id:Ee,open:ne,keyPath:V},s));return B&&(Ze=B(Ze,t,{selected:re,active:ge,open:ne,disabled:K})),c.createElement(Tf,{onItemClick:Ce,mode:O==="horizontal"?"vertical":O,itemIcon:q,expandIcon:J},Ze)};function e0(e){var t=e.eventKey,n=e.children,r=wu(t),o=_2(n,r),a=Jh();c.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var i;return a?i=o:i=c.createElement(mee,e,o),c.createElement(cN.Provider,{value:r},i)}var vee=["className","title","eventKey","children"],gee=["children"],pee=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=ze(t,vee),i=c.useContext(ba),l=i.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",be({role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Z(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function t0(e){var t=e.children,n=ze(e,gee),r=wu(n.eventKey),o=_2(t,r),a=Jh();return a?o:c.createElement(pee,gn(n,["warnKey"]),o)}function T2(e){var t=e.className,n=e.style,r=c.useContext(ba),o=r.prefixCls,a=Jh();return a?null:c.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),t),style:n})}var hee=["label","children","key","type"];function FC(e){return(e||[]).map(function(t,n){if(t&&et(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,s=ze(r,hee),u=i??"tmp-".concat(n);return a||l==="group"?l==="group"?c.createElement(t0,be({key:u},s,{title:o}),FC(a)):c.createElement(e0,be({key:u},s,{title:o}),FC(a)):l==="divider"?c.createElement(T2,be({key:u},s)):c.createElement(pm,be({key:u},s),o)}return null}).filter(function(t){return t})}function yee(e,t,n){var r=e;return t&&(r=FC(t)),_2(r,n)}var bee=["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"],Bs=[],Cee=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,l=r.style,s=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,h=r.direction,g=r.id,v=r.mode,p=v===void 0?"vertical":v,y=r.inlineCollapsed,b=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,$=S===void 0?.1:S,x=r.subMenuCloseDelay,w=x===void 0?.1:x,O=r.forceSubMenuRender,E=r.defaultOpenKeys,P=r.openKeys,M=r.activeKey,D=r.defaultActiveFirst,R=r.selectable,_=R===void 0?!0:R,T=r.multiple,k=T===void 0?!1:T,N=r.defaultSelectedKeys,j=r.selectedKeys,A=r.onSelect,B=r.onDeselect,z=r.inlineIndent,H=z===void 0?24:z,V=r.motion,U=r.defaultMotions,K=r.triggerSubMenuAction,Y=K===void 0?"hover":K,G=r.builtinPlacements,q=r.itemIcon,J=r.expandIcon,Q=r.overflowedIndicator,ne=Q===void 0?"...":Q,re=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,te=r.onClick,ee=r.onOpenChange,ie=r.onKeyDown;r.openAnimation,r.openTransitionName;var de=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,fe=ze(r,bee),le=c.useMemo(function(){return yee(m,f,Bs)},[m,f]),me=c.useState(!1),ye=X(me,2),ge=ye[0],ve=ye[1],$e=c.useRef(),Ce=XJ(g),Oe=h==="rtl",Re=Pt(E,{value:P,postState:function(Bt){return Bt||Bs}}),Ee=X(Re,2),_e=Ee[0],Fe=Ee[1],qe=function(Bt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function $t(){Fe(Bt),ee==null||ee(Bt)}vt?ja.flushSync($t):$t()},Ze=c.useState(_e),ke=X(Ze,2),Be=ke[0],Ue=ke[1],Je=c.useRef(!1),nt=c.useMemo(function(){return(p==="inline"||p==="vertical")&&y?["vertical",y]:[p,!1]},[p,y]),mt=X(nt,2),gt=mt[0],yt=mt[1],It=gt==="inline",ue=c.useState(gt),se=X(ue,2),pe=se[0],Se=se[1],xe=c.useState(yt),Ne=X(xe,2),We=Ne[0],He=Ne[1];c.useEffect(function(){Se(gt),He(yt),Je.current&&(It?Fe(Be):qe(Bs))},[gt,yt]);var Me=c.useState(0),Le=X(Me,2),Xe=Le[0],Ke=Le[1],it=Xe>=le.length-1||pe!=="horizontal"||C;c.useEffect(function(){It&&Ue(_e)},[_e]),c.useEffect(function(){return Je.current=!0,function(){Je.current=!1}},[]);var ot=qJ(),Mt=ot.registerPath,Ct=ot.unregisterPath,st=ot.refreshOverflowKeys,Qe=ot.isSubPathKey,Ae=ot.getKeyPath,Pe=ot.getKeys,je=ot.getSubPathKeys,Ve=c.useMemo(function(){return{registerPath:Mt,unregisterPath:Ct}},[Mt,Ct]),tt=c.useMemo(function(){return{isSubPathKey:Qe}},[Qe]);c.useEffect(function(){st(it?Bs:le.slice(Xe+1).map(function(Yt){return Yt.key}))},[Xe,it]);var pt=Pt(M||D&&((n=le[0])===null||n===void 0?void 0:n.key),{value:M}),ut=X(pt,2),ct=ut[0],lt=ut[1],ht=Od(function(Yt){lt(Yt)}),ft=Od(function(){lt(void 0)});c.useImperativeHandle(t,function(){return{list:$e.current,focus:function(Bt){var vt,$t=Pe(),Ut=jC($t,Ce),vn=Ut.elements,Zt=Ut.key2element,hn=Ut.element2key,Ot=I2($e.current,vn),St=ct??(Ot[0]?hn.get(Ot[0]):(vt=le.find(function(Gn){return!Gn.props.disabled}))===null||vt===void 0?void 0:vt.key),en=Zt.get(St);if(St&&en){var $n;en==null||($n=en.focus)===null||$n===void 0||$n.call(en,Bt)}}}});var Lt=Pt(N||[],{value:j,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Bs:[Bt]}}),Cn=X(Lt,2),mn=Cn[0],dt=Cn[1],Tt=function(Bt){if(_){var vt=Bt.key,$t=mn.includes(vt),Ut;k?$t?Ut=mn.filter(function(Zt){return Zt!==vt}):Ut=[].concat(Te(mn),[vt]):Ut=[vt],dt(Ut);var vn=I(I({},Bt),{},{selectedKeys:Ut});$t?B==null||B(vn):A==null||A(vn)}!k&&_e.length&&pe!=="inline"&&qe(Bs)},jt=Od(function(Yt){te==null||te(mp(Yt)),Tt(Yt)}),Qt=Od(function(Yt,Bt){var vt=_e.filter(function(Ut){return Ut!==Yt});if(Bt)vt.push(Yt);else if(pe!=="inline"){var $t=je(Yt);vt=vt.filter(function(Ut){return!$t.has(Ut)})}mu(_e,vt,!0)||qe(vt,!0)}),kn=function(Bt,vt){var $t=vt??!_e.includes(Bt);Qt(Bt,$t)},jr=KJ(pe,ct,Oe,Ce,$e,Pe,Ae,lt,kn,ie);c.useEffect(function(){ve(!0)},[]);var Dr=c.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),dr=pe!=="horizontal"||C?le:le.map(function(Yt,Bt){return c.createElement(Tf,{key:Yt.key,overflowDisabled:Bt>Xe},Yt)}),Zr=c.createElement(ma,be({id:g,ref:$e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:pm,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(pe),s,L(L({},"".concat(a,"-inline-collapsed"),We),"".concat(a,"-rtl"),Oe),i),dir:h,style:l,role:"menu",tabIndex:d,data:dr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var vt=Bt.length,$t=vt?le.slice(-vt):null;return c.createElement(e0,{eventKey:DC,title:ne,disabled:it,internalPopupClose:vt===0,popupClassName:re},$t)},maxCount:pe!=="horizontal"||C?ma.INVALIDATE:ma.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Ke(Bt)},onKeyDown:jr},fe));return c.createElement(O2.Provider,{value:Dr},c.createElement(aN.Provider,{value:Ce},c.createElement(Tf,{prefixCls:a,rootClassName:i,mode:pe,openKeys:_e,rtl:Oe,disabled:b,motion:ge?V:null,defaultMotions:ge?U:null,activeKey:ct,onActive:ht,onInactive:ft,selectedKeys:mn,inlineIndent:H,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:G,triggerSubMenuAction:Y,getPopupContainer:oe,itemIcon:q,expandIcon:J,onItemClick:jt,onOpenChange:Qt},c.createElement(uN.Provider,{value:tt},Zr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(sN.Provider,{value:Ve},le)))))}),$u=Cee;$u.Item=pm;$u.SubMenu=e0;$u.ItemGroup=t0;$u.Divider=T2;var See={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const xee=See;var wee=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:xee}))},$ee=c.forwardRef(wee);const Eee=$ee;var Pee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Oee=Pee;var Iee=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Oee}))},Mee=c.forwardRef(Iee);const Xc=Mee,Ree=e=>!isNaN(parseFloat(e))&&isFinite(e),pN=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var _ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Nee=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:s={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:p}=e,y=_ee(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=c.useContext(pN),[C,S]=c.useState("collapsed"in e?e.collapsed:i),[$,x]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(R,_)=>{"collapsed"in e||S(R),v==null||v(R,_)},O=c.useRef();O.current=R=>{x(R.matches),p==null||p(R.matches),C!==R.matches&&w(R.matches,"responsive")},c.useEffect(()=>{function R(T){return O.current(T)}let _;if(typeof window<"u"){const{matchMedia:T}=window;if(T&&g&&g in c3){_=T(`screen and (max-width: ${c3[g]})`);try{_.addEventListener("change",R)}catch{_.addListener(R)}R(_)}}return()=>{try{_==null||_.removeEventListener("change",R)}catch{_==null||_.removeListener(R)}}},[g]),c.useEffect(()=>{const R=Tee("ant-sider-");return b.addSider(R),()=>b.removeSider(R)},[]);const E=()=>{w(!C,"clickTrigger")},{getPrefixCls:P}=c.useContext(at),M=()=>{const R=P("layout-sider",n),_=gn(y,["collapsed"]),T=C?m:f,k=Ree(T)?`${T}px`:String(T),N=parseFloat(String(m||0))===0?c.createElement("span",{onClick:E,className:Z(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:h},o||c.createElement(Eee,null)):null,B={expanded:d?c.createElement(pi,null):c.createElement(Xc,null),collapsed:d?c.createElement(Xc,null):c.createElement(pi,null)}[C?"collapsed":"expanded"],z=o!==null?N||c.createElement("div",{className:`${R}-trigger`,onClick:E,style:{width:k}},o||B):null,H=Object.assign(Object.assign({},s),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),V=Z(R,`${R}-${l}`,{[`${R}-collapsed`]:!!C,[`${R}-has-trigger`]:u&&o!==null&&!N,[`${R}-below`]:!!$,[`${R}-zero-width`]:parseFloat(k)===0},r);return c.createElement("aside",Object.assign({className:V},_,{style:H,ref:t}),c.createElement("div",{className:`${R}-children`},a),u||$&&N?z:null)},D=c.useMemo(()=>({siderCollapsed:C}),[C]);return c.createElement(n0.Provider,{value:D},M())}),hN=Nee;var jee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const Dee=jee;var Fee=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Dee}))},kee=c.forwardRef(Fee);const N2=kee;var Lee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=Lee(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=c.useContext(at),i=a("menu",t),l=Z({[`${i}-item-divider-dashed`]:!!r},n);return c.createElement(T2,Object.assign({className:l},o))},yN=Aee,Bee=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),vp=Bee,zee=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=c.useContext(vp),m=b=>{const C=c.createElement("span",{className:`${l}-title-content`},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&b&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=c.useContext(n0);let g=a;typeof a>"u"?g=s?r:"":a===!1&&(g="");const v={title:g};!h&&!f&&(v.title=null,v.open=!1);const p=sr(r).length;let y=c.createElement(pm,Object.assign({},gn(e,["title","icon","danger"]),{className:Z({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),tr(o,{className:Z(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(y=c.createElement(Go,Object.assign({},v,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},bN=zee,Hee=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=c.useContext(vp),{prefixCls:l,inlineCollapsed:s,theme:u}=i,d=wu();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const g=c.isValidElement(o)&&o.type==="span";f=c.createElement(c.Fragment,null,tr(r,{className:Z(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:c.createElement("span",{className:`${l}-title-content`},o))}const m=c.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=Uo("Menu");return c.createElement(vp.Provider,{value:m},c.createElement(e0,Object.assign({},gn(e,["icon"]),{title:f,popupClassName:Z(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))},CN=Hee;var Vee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,s=Vee(r,["label","children","key","type"]),u=i??`tmp-${n}`;return a||l==="group"?l==="group"?c.createElement(t0,Object.assign({key:u},s,{title:o}),kC(a)):c.createElement(CN,Object.assign({key:u},s,{title:o}),kC(a)):l==="divider"?c.createElement(yN,Object.assign({key:u},s)):c.createElement(bN,Object.assign({key:u},s),o)}return null}).filter(t=>t)}function Wee(e){return c.useMemo(()=>e&&kC(e),[e])}var Kee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=Kee(e,["children"]),o=c.useContext(gp),a=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=hz(n),l=za(t,i?n.ref:null);return c.createElement(gp.Provider,{value:a},c.createElement(ka,null,i?c.cloneElement(n,{ref:l}):n))}),Gee=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},RJ=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(n)})`}}}}},KP=e=>Object.assign({},cl(e)),UP=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:y,lineType:b,colorSplit:C,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:E,popupBg:P,itemHoverBg:M,itemActiveBg:D,menuSubMenuBg:R,horizontalItemSelectedColor:_,horizontalItemSelectedBg:T,horizontalItemBorderRadius:k,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},KP(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},KP(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${ae(u)} solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:u,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(f)} ${b} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},GP=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item, + > ${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"}}}},qee=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(n)})`}}}}},u3=e=>Object.assign({},cl(e)),d3=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:y,lineType:b,colorSplit:C,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:E,popupBg:P,itemHoverBg:M,itemActiveBg:D,menuSubMenuBg:R,horizontalItemSelectedColor:_,horizontalItemSelectedBg:T,horizontalItemBorderRadius:k,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},u3(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},u3(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${ae(u)} solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:u,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(f)} ${b} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},f3=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ae(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},_J=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,y={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},GP(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},GP(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ae(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},Yee=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,y={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},f3(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},f3(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ae(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ae(e.calc(f).div(2).equal())} - ${ae(d)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:ae(r),"+ 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({},mi),{paddingInline:h})}}]},qP=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},gu()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},YP=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(i)})`}}}}},TJ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},np()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),np()),{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:`${ae(l)} ${ae(s)}`,fontSize:b,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qP(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ae(e.calc(r).mul(2).equal())} ${ae(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},qP(e)),YP(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\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}}}),YP(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(v)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},NJ=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:y,lineHeight:b,colorBgElevated:C,marginXXS:S,padding:$,fontSize:x,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:P}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new Jt(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:D,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${y*1.15}px`,iconSize:x,iconMarginInlineEnd:w-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new Jt(E).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:E,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${D}px)`:`calc(100% - ${R*2}px)`}},jJ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Ht("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:l,darkItemColor:s,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:h,darkDangerItemSelectedBg:g,darkItemHoverBg:v,darkGroupTitleColor:p,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:w}=o,O=o.calc(l).div(7).mul(5).equal(),E=_t(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),P=_t(E,{itemColor:s,itemHoverColor:y,groupTitleColor:p,itemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:h});return[TJ(E),MJ(E),_J(E),UP(E,"light"),UP(P,"dark"),RJ(E),Lh(E),La(E,"slide-up"),La(E,"slide-down"),Cu(E,"zoom-big")]},NJ,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var DJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=c.useContext(mp),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:l,menu:s}=c.useContext(at),u=a(),{prefixCls:d,className:f,style:m,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:p,siderCollapsed:y,items:b,children:C,rootClassName:S,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,E=DJ(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=gn(E,["collapsedWidth"]),M=PJ(b)||C;(n=o.validator)===null||n===void 0||n.call(o,{mode:$});const D=qt(function(){var K;w==null||w.apply(void 0,arguments),(K=o.onClick)===null||K===void 0||K.call(o)}),R=o.mode||$,_=x??o.selectable,T=c.useMemo(()=>y!==void 0?y:p,[p,y]),k={horizontal:{motionName:`${u}-slide-up`},inline:ip(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||o.prefixCls),j=pn(N),[A,B,z]=jJ(N,j,!r),H=Z(`${N}-${h}`,s==null?void 0:s.className,f),V=c.useMemo(()=>{var K,Y;if(typeof g=="function"||Gy(g))return g||null;if(typeof o.expandIcon=="function"||Gy(o.expandIcon))return o.expandIcon||null;if(typeof(s==null?void 0:s.expandIcon)=="function"||Gy(s==null?void 0:s.expandIcon))return(s==null?void 0:s.expandIcon)||null;const G=(K=g??(o==null?void 0:o.expandIcon))!==null&&K!==void 0?K:s==null?void 0:s.expandIcon;return tr(G,{className:Z(`${N}-submenu-expand-icon`,c.isValidElement(G)?(Y=G.props)===null||Y===void 0?void 0:Y.className:void 0)})},[g,o==null?void 0:o.expandIcon,s==null?void 0:s.expandIcon,N]),U=c.useMemo(()=>({prefixCls:N,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:h,mode:R,disableMenuItemTitleTooltip:v}),[N,T,l,v,h]);return A(c.createElement(mp.Provider,{value:null},c.createElement(fp.Provider,{value:U},c.createElement(wu,Object.assign({getPopupContainer:i,overflowedIndicator:c.createElement(_2,null),overflowedIndicatorPopupClassName:Z(N,`${N}-${h}`,O),mode:R,selectable:_,onClick:D},P,{inlineCollapsed:T,style:Object.assign(Object.assign({},s==null?void 0:s.style),m),className:H,prefixCls:N,direction:l,defaultMotions:k,expandIcon:V,ref:t,rootClassName:Z(S,B,o.rootClassName,z,j)}),M))))}),kJ=FJ,gm=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(Qh);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),c.createElement(kJ,Object.assign({ref:n},e,r))});gm.Item=eN;gm.SubMenu=tN;gm.Divider=JT;gm.ItemGroup=Xh;const T2=gm,LJ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},AJ=LJ,BJ=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:ae(r),"+ 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({},mi),{paddingInline:h})}}]},m3=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},pu()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},v3=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(i)})`}}}}},Xee=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},op()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),op()),{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:`${ae(l)} ${ae(s)}`,fontSize:b,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),m3(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ae(e.calc(r).mul(2).equal())} ${ae(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},m3(e)),v3(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\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}}}),v3(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(v)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Qee=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:y,lineHeight:b,colorBgElevated:C,marginXXS:S,padding:$,fontSize:x,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:P}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new Jt(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:D,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${y*1.15}px`,iconSize:x,iconMarginInlineEnd:w-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new Jt(E).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:E,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${D}px)`:`calc(100% - ${R*2}px)`}},Zee=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Ht("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:l,darkItemColor:s,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:h,darkDangerItemSelectedBg:g,darkItemHoverBg:v,darkGroupTitleColor:p,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:w}=o,O=o.calc(l).div(7).mul(5).equal(),E=_t(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),P=_t(E,{itemColor:s,itemHoverColor:y,groupTitleColor:p,itemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:h});return[Xee(E),Gee(E),Yee(E),d3(E,"light"),d3(P,"dark"),qee(E),Vh(E),La(E,"slide-up"),La(E,"slide-down"),Su(E,"zoom-big")]},Qee,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var Jee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=c.useContext(gp),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:l,menu:s}=c.useContext(at),u=a(),{prefixCls:d,className:f,style:m,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:p,siderCollapsed:y,items:b,children:C,rootClassName:S,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,E=Jee(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=gn(E,["collapsedWidth"]),M=Wee(b)||C;(n=o.validator)===null||n===void 0||n.call(o,{mode:$});const D=qt(function(){var K;w==null||w.apply(void 0,arguments),(K=o.onClick)===null||K===void 0||K.call(o)}),R=o.mode||$,_=x??o.selectable,T=c.useMemo(()=>y!==void 0?y:p,[p,y]),k={horizontal:{motionName:`${u}-slide-up`},inline:sp(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||o.prefixCls),j=pn(N),[A,B,z]=Zee(N,j,!r),H=Z(`${N}-${h}`,s==null?void 0:s.className,f),V=c.useMemo(()=>{var K,Y;if(typeof g=="function"||Xy(g))return g||null;if(typeof o.expandIcon=="function"||Xy(o.expandIcon))return o.expandIcon||null;if(typeof(s==null?void 0:s.expandIcon)=="function"||Xy(s==null?void 0:s.expandIcon))return(s==null?void 0:s.expandIcon)||null;const G=(K=g??(o==null?void 0:o.expandIcon))!==null&&K!==void 0?K:s==null?void 0:s.expandIcon;return tr(G,{className:Z(`${N}-submenu-expand-icon`,c.isValidElement(G)?(Y=G.props)===null||Y===void 0?void 0:Y.className:void 0)})},[g,o==null?void 0:o.expandIcon,s==null?void 0:s.expandIcon,N]),U=c.useMemo(()=>({prefixCls:N,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:h,mode:R,disableMenuItemTitleTooltip:v}),[N,T,l,v,h]);return A(c.createElement(gp.Provider,{value:null},c.createElement(vp.Provider,{value:U},c.createElement($u,Object.assign({getPopupContainer:i,overflowedIndicator:c.createElement(N2,null),overflowedIndicatorPopupClassName:Z(N,`${N}-${h}`,O),mode:R,selectable:_,onClick:D},P,{inlineCollapsed:T,style:Object.assign(Object.assign({},s==null?void 0:s.style),m),className:H,prefixCls:N,direction:l,defaultMotions:k,expandIcon:V,ref:t,rootClassName:Z(S,B,o.rootClassName,z,j)}),M))))}),tte=ete,hm=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(n0);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),c.createElement(tte,Object.assign({ref:n},e,r))});hm.Item=bN;hm.SubMenu=CN;hm.Divider=yN;hm.ItemGroup=t0;const j2=hm,nte=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},rte=nte,ote=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return[{[t]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:jh},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ah},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fh},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:zh},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Dh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Bh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:kh}})},w2(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ha(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(u)} ${ae(g)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ae(u)} ${ae(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ha(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[La(e,"slide-up"),La(e,"slide-down"),qc(e,"move-up"),qc(e,"move-down"),Cu(e,"zoom-big")]]},zJ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Uh({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Kh(e)),HJ=Ht("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=_t(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[BJ(a),AJ(a)]},zJ),N2=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:s,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:w,direction:O,dropdown:E}=c.useContext(at);vu();const P=c.useMemo(()=>{const re=w();return $!==void 0?$:C.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[w,C,$]),M=c.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:O==="rtl"?"bottomRight":"bottomLeft",[C,O]),D=w("dropdown",r),R=pn(D),[_,T,k]=HJ(D,R),[,N]=cr(),j=c.Children.only(o),A=tr(j,{className:Z(`${D}-trigger`,{[`${D}-rtl`]:O==="rtl"},j.props.className),disabled:i}),B=i?[]:a;let z;B&&B.includes("contextMenu")&&(z=!0);const[H,V]=Pt(!1,{value:m??g}),U=qt(re=>{h==null||h(re,{source:"trigger"}),v==null||v(re),V(re)}),K=Z(u,d,T,k,R,E==null?void 0:E.className,{[`${D}-rtl`]:O==="rtl"}),Y=MT({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:N.marginXXS,arrowWidth:n?N.sizePopupArrow:0,borderRadius:N.borderRadius}),G=c.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(h==null||h(!1,{source:"menu"}),V(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),q=()=>{let re;return t!=null&&t.items?re=c.createElement(T2,Object.assign({},t)):typeof S=="function"?re=S():re=S,l&&(re=l(re)),re=c.Children.only(typeof re=="string"?c.createElement("span",null,re):re),c.createElement(IJ,{prefixCls:`${D}-menu`,rootClassName:Z(k,R),expandIcon:c.createElement("span",{className:`${D}-menu-submenu-arrow`},c.createElement(pi,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:oe=>{}},re)},[J,Q]=Uo("Dropdown",f==null?void 0:f.zIndex);let ne=c.createElement(AT,Object.assign({alignPoint:z},gn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:y,visible:H,builtinPlacements:Y,arrow:!!n,overlayClassName:K,prefixCls:D,getPopupContainer:s||x,transitionName:P,trigger:B,overlay:q,placement:M,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),f),{zIndex:J})}),A);return J&&(ne=c.createElement(am.Provider,{value:Q},ne)),_(ne)};function VJ(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const WJ=Sl(N2,"dropdown",e=>e,VJ),KJ=e=>c.createElement(WJ,Object.assign({},e),c.createElement("span",null));N2._InternalPanelDoNotUseOrYouWillBeFired=KJ;const j2=N2,nN=e=>{let{children:t}=e;const{getPrefixCls:n}=c.useContext(at),r=n("breadcrumb");return c.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};nN.__ANT_BREADCRUMB_SEPARATOR=!0;const D2=nN;var UJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot[o]||r)}function rN(e,t,n,r){if(n==null)return null;const{className:o,onClick:a}=t,i=UJ(t,["className","onClick"]),l=Object.assign(Object.assign({},Qn(i,{data:!0,aria:!0})),{onClick:a});return r!==void 0?c.createElement("a",Object.assign({},l,{className:Z(`${e}-link`,o),href:r}),n):c.createElement("span",Object.assign({},l,{className:Z(`${e}-link`,o)}),n)}function qJ(e,t){return(r,o,a,i,l)=>{if(t)return t(r,o,a,i);const s=GJ(r,o);return rN(e,r,s,l)}}var jC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:l}=e,u=(d=>{if(o||a){const f=Object.assign({},i);if(o){const m=o||{},{items:h}=m,g=jC(m,["items"]);f.menu=Object.assign(Object.assign({},g),{items:h==null?void 0:h.map((v,p)=>{var{key:y,title:b,label:C,path:S}=v,$=jC(v,["key","title","label","path"]);let x=C??b;return S&&(x=c.createElement("a",{href:`${l}${S}`},x)),Object.assign(Object.assign({},$),{key:y??p,label:x})})})}else a&&(f.overlay=a);return c.createElement(j2,Object.assign({placement:"bottom"},f),c.createElement("span",{className:`${t}-overlay-link`},d,c.createElement(Hh,null)))}return d})(r);return u!=null?c.createElement(c.Fragment,null,c.createElement("li",null,u),n&&c.createElement(D2,null,n)):null},aN=e=>{const{prefixCls:t,children:n,href:r}=e,o=jC(e,["prefixCls","children","href"]),{getPrefixCls:a}=c.useContext(at),i=a("breadcrumb",t);return c.createElement(oN,Object.assign({},o,{prefixCls:i}),rN(i,o,n,r))};aN.__ANT_BREADCRUMB_ITEM=!0;const YJ=aN,XJ=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ae(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ha(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Hh}})},E2(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ha(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(u)} ${ae(g)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ae(u)} ${ae(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ha(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[La(e,"slide-up"),La(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down"),Su(e,"zoom-big")]]},ate=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Qh({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Xh(e)),ite=Ht("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=_t(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[ote(a),rte(a)]},ate),D2=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:s,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:w,direction:O,dropdown:E}=c.useContext(at);gu();const P=c.useMemo(()=>{const re=w();return $!==void 0?$:C.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[w,C,$]),M=c.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:O==="rtl"?"bottomRight":"bottomLeft",[C,O]),D=w("dropdown",r),R=pn(D),[_,T,k]=ite(D,R),[,N]=cr(),j=c.Children.only(o),A=tr(j,{className:Z(`${D}-trigger`,{[`${D}-rtl`]:O==="rtl"},j.props.className),disabled:i}),B=i?[]:a;let z;B&&B.includes("contextMenu")&&(z=!0);const[H,V]=Pt(!1,{value:m??g}),U=qt(re=>{h==null||h(re,{source:"trigger"}),v==null||v(re),V(re)}),K=Z(u,d,T,k,R,E==null?void 0:E.className,{[`${D}-rtl`]:O==="rtl"}),Y=qT({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:N.marginXXS,arrowWidth:n?N.sizePopupArrow:0,borderRadius:N.borderRadius}),G=c.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(h==null||h(!1,{source:"menu"}),V(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),q=()=>{let re;return t!=null&&t.items?re=c.createElement(j2,Object.assign({},t)):typeof S=="function"?re=S():re=S,l&&(re=l(re)),re=c.Children.only(typeof re=="string"?c.createElement("span",null,re):re),c.createElement(Uee,{prefixCls:`${D}-menu`,rootClassName:Z(k,R),expandIcon:c.createElement("span",{className:`${D}-menu-submenu-arrow`},c.createElement(pi,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:oe=>{}},re)},[J,Q]=Uo("Dropdown",f==null?void 0:f.zIndex);let ne=c.createElement(oN,Object.assign({alignPoint:z},gn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:y,visible:H,builtinPlacements:Y,arrow:!!n,overlayClassName:K,prefixCls:D,getPopupContainer:s||x,transitionName:P,trigger:B,overlay:q,placement:M,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),f),{zIndex:J})}),A);return J&&(ne=c.createElement(lm.Provider,{value:Q},ne)),_(ne)};function lte(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ste=Sl(D2,"dropdown",e=>e,lte),cte=e=>c.createElement(ste,Object.assign({},e),c.createElement("span",null));D2._InternalPanelDoNotUseOrYouWillBeFired=cte;const F2=D2,SN=e=>{let{children:t}=e;const{getPrefixCls:n}=c.useContext(at),r=n("breadcrumb");return c.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};SN.__ANT_BREADCRUMB_SEPARATOR=!0;const k2=SN;var ute=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot[o]||r)}function xN(e,t,n,r){if(n==null)return null;const{className:o,onClick:a}=t,i=ute(t,["className","onClick"]),l=Object.assign(Object.assign({},Qn(i,{data:!0,aria:!0})),{onClick:a});return r!==void 0?c.createElement("a",Object.assign({},l,{className:Z(`${e}-link`,o),href:r}),n):c.createElement("span",Object.assign({},l,{className:Z(`${e}-link`,o)}),n)}function fte(e,t){return(r,o,a,i,l)=>{if(t)return t(r,o,a,i);const s=dte(r,o);return xN(e,r,s,l)}}var LC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:l}=e,u=(d=>{if(o||a){const f=Object.assign({},i);if(o){const m=o||{},{items:h}=m,g=LC(m,["items"]);f.menu=Object.assign(Object.assign({},g),{items:h==null?void 0:h.map((v,p)=>{var{key:y,title:b,label:C,path:S}=v,$=LC(v,["key","title","label","path"]);let x=C??b;return S&&(x=c.createElement("a",{href:`${l}${S}`},x)),Object.assign(Object.assign({},$),{key:y??p,label:x})})})}else a&&(f.overlay=a);return c.createElement(F2,Object.assign({placement:"bottom"},f),c.createElement("span",{className:`${t}-overlay-link`},d,c.createElement(Gh,null)))}return d})(r);return u!=null?c.createElement(c.Fragment,null,c.createElement("li",null,u),n&&c.createElement(k2,null,n)):null},$N=e=>{const{prefixCls:t,children:n,href:r}=e,o=LC(e,["prefixCls","children","href"]),{getPrefixCls:a}=c.useContext(at),i=a("breadcrumb",t);return c.createElement(wN,Object.assign({},o,{prefixCls:i}),xN(i,o,n,r))};$N.__ANT_BREADCRUMB_ITEM=!0;const mte=$N,vte=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ae(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ha(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ae(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},QJ=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),ZJ=Ht("Breadcrumb",e=>{const t=_t(e,{});return XJ(t)},QJ);var XP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:i}=a,l=XP(a,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),o}function eee(e,t){return c.useMemo(()=>e||(t?t.map(JJ):null),[e,t])}var tee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},F2=e=>{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:a,routes:i,items:l,children:s,itemRender:u,params:d={}}=e,f=tee(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:h,breadcrumb:g}=c.useContext(at);let v;const p=m("breadcrumb",t),[y,b,C]=ZJ(p),S=eee(l,i),$=qJ(p,u);if(S&&S.length>0){const O=[],E=l||i;v=S.map((P,M)=>{const{path:D,key:R,type:_,menu:T,overlay:k,onClick:N,className:j,separator:A,dropdownProps:B}=P,z=nee(d,D);z!==void 0&&O.push(z);const H=R??M;if(_==="separator")return c.createElement(D2,{key:H},A);const V={},U=M===S.length-1;T?V.menu=T:k&&(V.overlay=k);let{href:K}=P;return O.length&&z!==void 0&&(K=`#/${O.join("/")}`),c.createElement(oN,Object.assign({key:H},V,Qn(P,{data:!0,aria:!0}),{className:j,dropdownProps:B,href:K,separator:U?"":n,onClick:N,prefixCls:p}),$(P,d,E,O,K))})}else if(s){const O=sr(s).length;v=sr(s).map((E,P)=>{if(!E)return E;const M=P===O-1;return tr(E,{separator:M?"":n,key:P})})}const x=Z(p,g==null?void 0:g.className,{[`${p}-rtl`]:h==="rtl"},o,a,b,C),w=Object.assign(Object.assign({},g==null?void 0:g.style),r);return y(c.createElement("nav",Object.assign({className:x,style:w},f),c.createElement("ol",null,v)))};F2.Item=YJ;F2.Separator=D2;const ree=F2;var iN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",u="day",d="week",f="month",m="quarter",h="year",g="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],k=_%100;return"["+_+(T[(k-20)%10]||T[k]||T[0])+"]"}},C=function(_,T,k){var N=String(_);return!N||N.length>=T?_:""+Array(T+1-N.length).join(k)+_},S={s:C,z:function(_){var T=-_.utcOffset(),k=Math.abs(T),N=Math.floor(k/60),j=k%60;return(T<=0?"+":"-")+C(N,2,"0")+":"+C(j,2,"0")},m:function _(T,k){if(T.date()1)return _(B[0])}else{var z=T.name;x[z]=T,j=z}return!N&&j&&($=j),j||!N&&$},P=function(_,T){if(O(_))return _.clone();var k=typeof T=="object"?T:{};return k.date=_,k.args=arguments,new D(k)},M=S;M.l=E,M.i=O,M.w=function(_,T){return P(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var D=function(){function _(k){this.$L=E(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[w]=!0}var T=_.prototype;return T.parse=function(k){this.$d=function(N){var j=N.date,A=N.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(p);if(B){var z=B[2]-1||0,H=(B[7]||"0").substring(0,3);return A?new Date(Date.UTC(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(j)}(k),this.init()},T.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},T.$utils=function(){return M},T.isValid=function(){return this.$d.toString()!==v},T.isSame=function(k,N){var j=P(k);return this.startOf(N)<=j&&j<=this.endOf(N)},T.isAfter=function(k,N){return P(k)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(m,n,!0);return h<0?i(this).startOf("week").week():Math.ceil(h)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(fN);var iee=fN.exports;const k2=jn(iee);var mN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(mN);var lee=mN.exports;const see=jn(lee);var vN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(vN);var cee=vN.exports;const gN=jn(cee);var pN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},s=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(p){this[v]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var y=p.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(v)}],f=function(v){var p=l[v];return p&&(p.indexOf?p:p.s.concat(p.f))},m=function(v,p){var y,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,p))>-1){y=C>12;break}}else y=v===(p?"pm":"PM");return y},h={A:[i,function(v){this.afternoon=m(v,!1)}],a:[i,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[i,function(v){var p=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],p)for(var b=1;b<=31;b+=1)p(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(v){var p=f("months"),y=(f("monthsShort")||p.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(v){var p=f("months").indexOf(v)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=s(v)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(v){var p,y;p=v,y=l&&l.formats;for(var b=(v=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,P,M){var D=M&&M.toUpperCase();return P||y[M]||n[M]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,_,T){return _||T.slice(1)})})).match(r),C=b.length,S=0;S-1)return new Date((N==="X"?1e3:1)*k);var A=g(N)(k),B=A.year,z=A.month,H=A.day,V=A.hours,U=A.minutes,K=A.seconds,Y=A.milliseconds,G=A.zone,q=new Date,J=H||(B||z?1:q.getDate()),Q=B||q.getFullYear(),ne=0;B&&!z||(ne=z>0?z-1:q.getMonth());var re=V||0,oe=U||0,te=K||0,ee=Y||0;return G?new Date(Date.UTC(Q,ne,J,re,oe,te,ee+60*G.offset*1e3)):j?new Date(Date.UTC(Q,ne,J,re,oe,te,ee)):new Date(Q,ne,J,re,oe,te,ee)}catch{return new Date("")}}($,O,x),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&$!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var R=O.length,_=1;_<=R;_+=1){w[1]=O[_-1];var T=y.apply(this,w);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}_===R&&(this.$d=new Date(""))}else C.call(this,S)}}})})(pN);var uee=pN.exports;const hN=jn(uee);zt.extend(hN);zt.extend(gN);zt.extend(cN);zt.extend(dN);zt.extend(k2);zt.extend(see);zt.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var dee={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},_l=function(t){var n=dee[t];return n||t.split("_")[0]},QP=function(){Sf(!1,"Not match any format. Please help to fire a issue about this.")},fee={getNow:function(){return zt()},getFixedDate:function(t){return zt(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return zt().locale(_l(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(_l(t)).weekday(0)},getWeek:function(t,n){return n.locale(_l(t)).week()},getShortWeekDays:function(t){return zt().locale(_l(t)).localeData().weekdaysMin()},getShortMonths:function(t){return zt().locale(_l(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(_l(t)).format(r)},parse:function(t,n,r){for(var o=_l(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),o=X(r,2),a=o[0],i=o[1],l=function(d,f){i(function(m){return Yd(m,f,d)})},s=c.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[s,l]}function xN(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function vee(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,h=e.yearFormat,g=e.cellYearFormat,v=e.cellQuarterFormat,p=e.dayFormat,y=e.cellDateFormat,b=xN(t,n,r,o,a);return I(I({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:y||p||"D"})}function wN(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return W.useMemo(function(){return vee(e,n,r,o,a,i)},[e,n,r,o,a,i])}function sd(e,t,n){return n??t.some(function(r){return e.includes(r)})}var gee=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pee(e){var t=Zh(e,gee),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=et(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function hee(e){return e&&typeof e=="string"}function $N(e){var t=e.showTime,n=pee(e),r=X(n,2),o=r[0],a=r[1],i=t&&et(t)==="object"?t:{},l=I(I({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),s=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond;return!u&&!d&&!f&&!s&&(u=!0,d=!0,f=!0),[l,I(I({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:s}),l.format,a]}function EN(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,l=bN(e,o,null),s=l,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function pr(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function vp(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,l){n?r=e[i](r,e[o[l]](n)):r=e[i](r,0)}),r}function See(e,t,n,r,o){var a=qt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!Hr(e,t,r,i,l.type)||o&&e.isAfter(i,o)&&!Hr(e,t,o,i,l.type))});return a}function xee(e,t,n){return c.useMemo(function(){var r=bN(e,t,n),o=Cs(r),a=o[0],i=et(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function wee(e,t,n){return typeof e[0]=="function"||n?!0:t}function $ee(e,t,n,r){var o=qt(function(a,i){var l=I({type:t},i);if(delete l.activeIndex,!e.isValidate(a)||n&&n(a,l))return!0;if((t==="date"||t==="time")&&r){var s,u=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,a,i&&i.activeIndex===1?"end":"start"))||{},d=u.disabledHours,f=u.disabledMinutes,m=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,p=r.disabledSeconds,y=d||g,b=f||v,C=m||p,S=e.getHour(a),$=e.getMinute(a),x=e.getSecond(a),w=e.getMillisecond(a);if(y&&y().includes(S)||b&&b(S).includes($)||C&&C(S,$).includes(x)||h&&h(S,$,x).includes(w))return!0}return!1});return o}function Pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&Cs(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function IN(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,u=s===void 0?{}:s,d=e.classNames,f=d===void 0?{}:d,m=e.order,h=m===void 0?!0:m,g=e.components,v=g===void 0?{}:g,p=e.inputRender,y=e.allowClear,b=e.clearIcon,C=e.needConfirm,S=e.multiple,$=e.format,x=e.inputReadOnly,w=e.disabledDate,O=e.minDate,E=e.maxDate,P=e.showTime,M=e.value,D=e.defaultValue,R=e.pickerValue,_=e.defaultPickerValue,T=Pv(M),k=Pv(D),N=Pv(R),j=Pv(_),A=a==="date"&&P?"datetime":a,B=A==="time"||A==="datetime",z=B||S,H=C??B,V=$N(e),U=X(V,4),K=U[0],Y=U[1],G=U[2],q=U[3],J=wN(r,Y),Q=c.useMemo(function(){return EN(A,G,q,K,J)},[A,G,q,K,J]),ne=c.useMemo(function(){return I(I({},e),{},{prefixCls:l,locale:J,picker:a,styles:u,classNames:f,order:h,components:I({input:p},v),clearIcon:yee(l,y,b),showTime:Q,value:T,defaultValue:k,pickerValue:N,defaultPickerValue:j},t==null?void 0:t())},[e]),re=xee(A,J,$),oe=X(re,2),te=oe[0],ee=oe[1],ie=wee(te,x,S),de=See(n,r,w,O,E),he=$ee(n,a,w,Q),fe=c.useMemo(function(){return I(I({},ne),{},{needConfirm:H,inputReadOnly:ie,disabledDate:de})},[ne,H,ie,de]);return[fe,A,z,te,ee,he]}function Eee(e,t,n){var r=Pt(t,{value:e}),o=X(r,2),a=o[0],i=o[1],l=W.useRef(e),s=W.useRef(),u=function(){At.cancel(s.current)},d=qt(function(){i(l.current),n&&a!==l.current&&n(l.current)}),f=qt(function(m,h){u(),l.current=m,m||h?d():s.current=At(d)});return W.useEffect(function(){return u},[]),[a,f]}function MN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=Eee(o,t||!1,r),i=X(a,2),l=i[0],s=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(d,f.force)}return[l,u]}function RN(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function _N(e,t){return c.useMemo(function(){return e||(t?(cn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=X(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function H2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,Ql(function(){if(e)r.current(e);else{var o=At(function(){r.current(e)},n);return function(){At.cancel(o)}}},[e])}function TN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=c.useState(0),r=X(n,2),o=r[0],a=r[1],i=c.useState(!1),l=X(i,2),s=l[0],u=l[1],d=c.useRef([]),f=c.useRef(null),m=function(p){u(p)},h=function(p){return p&&(f.current=p),f.current},g=function(p){var y=d.current,b=new Set(y.filter(function(S){return p[S]||t[S]})),C=y[y.length-1]===0?1:0;return b.size>=2||e[C]?null:C};return H2(s,function(){s||(d.current=[])}),c.useEffect(function(){s&&d.current.push(o)},[s,o]),[s,m,h,o,a,g,d.current]}function Pee(e,t,n,r,o,a){var i=n[n.length-1],l=n.find(function(u){return e[u]}),s=function(d,f){var m=X(e,2),h=m[0],g=m[1],v=I(I({},f),{},{from:i!==l?e[l]:void 0});return i===1&&t[0]&&h&&!Hr(r,o,h,d,v.type)&&r.isAfter(h,d)||i===0&&t[1]&&g&&!Hr(r,o,g,d,v.type)&&r.isAfter(d,g)?!0:a==null?void 0:a(d,v)};return s}function Md(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Yy=[];function NN(e,t,n,r,o,a,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Yy,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Yy,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Yy,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,g=i==="time",v=a||0,p=function(N){var j=e.getNow();return g&&(j=vp(e,j)),s[N]||n[N]||j},y=X(u,2),b=y[0],C=y[1],S=Pt(function(){return p(0)},{value:b}),$=X(S,2),x=$[0],w=$[1],O=Pt(function(){return p(1)},{value:C}),E=X(O,2),P=E[0],M=E[1],D=c.useMemo(function(){var k=[x,P][v];return g?k:vp(e,k,d[v])},[g,x,P,v,e,d]),R=function(N){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",A=[w,M][v];A(N);var B=[x,P];B[v]=N,f&&(!Hr(e,t,x,B[0],i)||!Hr(e,t,P,B[1],i))&&f(B,{source:j,range:v===1?"end":"start",mode:r})},_=function(N,j){if(l){var A={date:"month",week:"month",month:"year",quarter:"year"},B=A[i];if(B&&!Hr(e,t,N,j,B))return Md(e,i,j,-1);if(i==="year"){var z=Math.floor(e.getYear(N)/10),H=Math.floor(e.getYear(j)/10);if(z!==H)return Md(e,i,j,-1)}}return j},T=c.useRef(null);return Kt(function(){if(o&&!s[v]){var k=g?null:e.getNow();if(T.current!==null&&T.current!==v?k=[x,P][v^1]:n[v]?k=v===0?n[0]:_(n[0],n[1]):n[v^1]&&(k=n[v^1]),k){m&&e.isAfter(m,k)&&(k=m);var N=l?Md(e,i,k,1):k;h&&e.isAfter(N,h)&&(k=l?Md(e,i,h,-1):h),R(k,"reset")}}},[o,v,n[v]]),c.useEffect(function(){o?T.current=v:T.current=null},[o,v]),Kt(function(){o&&s&&s[v]&&R(s[v],"reset")},[o,v]),[D,R]}function jN(e,t){var n=c.useRef(e),r=c.useState({}),o=X(r,2),a=o[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,a({})};return[i,l,i(!0)]}var Oee=[];function DN(e,t,n){var r=function(i){return i.map(function(l){return pr(l,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,l){for(var s=Math.max(i.length,l.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var u=o.includes(s);(!u||!r)&&i.push({label:L2(s,a),value:s,disabled:u})}return i}function V2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,l=r.minuteStep,s=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,h=r.hideDisabledOptions,g=r.disabledTime,v=r.disabledHours,p=r.disabledMinutes,y=r.disabledSeconds,b=c.useMemo(function(){return n||e.getNow()},[n,e]),C=c.useCallback(function(j){var A=(g==null?void 0:g(j))||{};return[A.disabledHours||v||Ov,A.disabledMinutes||p||Ov,A.disabledSeconds||y||Ov,A.disabledMilliseconds||Ov]},[g,v,p,y]),S=c.useMemo(function(){return C(b)},[b,C]),$=X(S,4),x=$[0],w=$[1],O=$[2],E=$[3],P=c.useCallback(function(j,A,B,z){var H=Iv(0,23,i,h,j()),V=o?H.map(function(G){return I(I({},G),{},{label:L2(G.value%12||12,2)})}):H,U=function(q){return Iv(0,59,s,h,A(q))},K=function(q,J){return Iv(0,59,d,h,B(q,J))},Y=function(q,J,Q){return Iv(0,999,m,h,z(q,J,Q),3)};return[V,U,K,Y]},[h,i,o,m,s,d]),M=c.useMemo(function(){return P(x,w,O,E)},[P,x,w,O,E]),D=X(M,4),R=D[0],_=D[1],T=D[2],k=D[3],N=function(A,B){var z=function(){return R},H=_,V=T,U=k;if(B){var K=C(B),Y=X(K,4),G=Y[0],q=Y[1],J=Y[2],Q=Y[3],ne=P(G,q,J,Q),re=X(ne,4),oe=re[0],te=re[1],ee=re[2],ie=re[3];z=function(){return oe},H=te,V=ee,U=ie}var de=Mee(A,z,H,V,U,e);return de};return[N,R,_,T,k]}function Ree(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=c.useContext(wa),h=m.prefixCls,g=m.locale,v=m.button,p=v===void 0?"button":v,y=d.getNow(),b=V2(d,a,y),C=X(b,1),S=C[0],$=r==null?void 0:r(t),x=f(y,{type:t}),w=function(){if(!x){var _=S(y);l(_)}},O="".concat(h,"-now"),E="".concat(O,"-btn"),P=o&&c.createElement("li",{className:O},c.createElement("a",{className:Z(E,x&&"".concat(E,"-disabled")),"aria-disabled":x,onClick:w},n==="date"?g.today:g.now)),M=u&&c.createElement("li",{className:"".concat(h,"-ok")},c.createElement(p,{disabled:s,onClick:i},g.ok)),D=(P||M)&&c.createElement("ul",{className:"".concat(h,"-ranges")},P,M);return!$&&!D?null:c.createElement("div",{className:"".concat(h,"-footer")},$&&c.createElement("div",{className:"".concat(h,"-footer-extra")},$),D)}function BN(e,t,n){function r(o,a){var i=o.findIndex(function(s){return Hr(e,t,s,a,n)});if(i===-1)return[].concat(Te(o),[a]);var l=Te(o);return l.splice(i,1),l}return r}var Ss=c.createContext(null);function e0(){return c.useContext(Ss)}function $u(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,h=e.pickerValue,g=e.onSelect,v=e.prevIcon,p=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,C=r.getNow(),S={now:C,values:m,pickerValue:h,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:s,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:g,panelType:t,prevIcon:v,nextIcon:p,superPrevIcon:y,superNextIcon:b};return[S,C]}var rl=c.createContext({});function pm(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,h=e.disabledDate,g=e0(),v=g.prefixCls,p=g.panelType,y=g.now,b=g.disabledDate,C=g.cellRender,S=g.onHover,$=g.hoverValue,x=g.hoverRangeValue,w=g.generateConfig,O=g.values,E=g.locale,P=g.onSelect,M=h||b,D="".concat(v,"-cell"),R=c.useContext(rl),_=R.onCellDblClick,T=function(V){return O.some(function(U){return U&&Hr(w,E,V,U,p)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;ye(Be),p==null||p(Be),Ue&&ge(Be)},$e=function(Be,Ue){J(Be),Ue&&ve(Ue),ge(Ue,Be)},Ce=function(Be){if(he(Be),ve(Be),q!==S){var Ue=["decade","year"],Je=[].concat(Ue,["month"]),nt={quarter:[].concat(Ue,["quarter"]),week:[].concat(Te(Je),["week"]),date:[].concat(Te(Je),["date"])},mt=nt[S]||Je,gt=mt.indexOf(q),yt=mt[gt+1];yt&&$e(yt,Be)}},Oe=c.useMemo(function(){var ke,Be;if(Array.isArray(w)){var Ue=X(w,2);ke=Ue[0],Be=Ue[1]}else ke=w;return!ke&&!Be?null:(ke=ke||Be,Be=Be||ke,o.isAfter(ke,Be)?[Be,ke]:[ke,Be])},[w,o]),Re=A2(O,E,P),Ee=D[Q]||zee[Q]||t0,_e=c.useContext(rl),Fe=c.useMemo(function(){return I(I({},_e),{},{hideHeader:R})},[_e,R]),qe="".concat(_,"-panel"),Ze=Zh(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(rl.Provider,{value:Fe},c.createElement("div",{ref:T,tabIndex:s,className:Z(qe,L({},"".concat(qe,"-rtl"),a==="rtl"))},c.createElement(Ee,be({},Ze,{showTime:U,prefixCls:_,locale:H,generateConfig:o,onModeChange:$e,pickerValue:me,onPickerValueChange:function(Be){ve(Be,!0)},value:ie[0],onSelect:Ce,values:ie,cellRender:Re,hoverRangeValue:Oe,hoverValue:x}))))}var Xy=c.memo(c.forwardRef(Hee));function Vee(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,u=c.useContext(wa),d=u.prefixCls,f=u.generateConfig,m=c.useCallback(function(b,C){return Md(f,t,b,C)},[f,t]),h=c.useMemo(function(){return m(r,1)},[r,m]),g=function(C){o(m(C,-1))},v={onCellDblClick:function(){a&&i()}},p=t==="time",y=I(I({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return l?y.hoverRangeValue=s:y.hoverValue=s,n?c.createElement("div",{className:"".concat(d,"-panels")},c.createElement(rl.Provider,{value:I(I({},v),{},{hideNext:!0})},c.createElement(Xy,y)),c.createElement(rl.Provider,{value:I(I({},v),{},{hidePrev:!0})},c.createElement(Xy,be({},y,{pickerValue:h,onPickerValueChange:g})))):c.createElement(rl.Provider,{value:I({},v)},c.createElement(Xy,y))}function JP(e){return typeof e=="function"?e():e}function Wee(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(a,i){var l=a.label,s=a.value;return c.createElement("li",{key:i,onClick:function(){r(JP(s))},onMouseEnter:function(){o(JP(s))},onMouseLeave:function(){o(null)}},l)}))):null}function HN(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeOffset,s=l===void 0?0:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,g=e.direction,v=e.value,p=e.onSelect,y=e.isInvalid,b=e.defaultOpenValue,C=e.onOk,S=e.onSubmit,$=c.useContext(wa),x=$.prefixCls,w="".concat(x,"-panel"),O=g==="rtl",E=c.useRef(null),P=c.useRef(null),M=c.useState(0),D=X(M,2),R=D[0],_=D[1],T=c.useState(0),k=X(T,2),N=k[0],j=k[1],A=function(oe){oe.offsetWidth&&_(oe.offsetWidth)};c.useEffect(function(){if(a){var re,oe=((re=E.current)===null||re===void 0?void 0:re.offsetWidth)||0,te=R-oe;s<=te?j(0):j(s+oe-R)}},[R,s,a]);function B(re){return re.filter(function(oe){return oe})}var z=c.useMemo(function(){return B(Cs(v))},[v]),H=r==="time"&&!z.length,V=c.useMemo(function(){return H?B([b]):z},[H,z,b]),U=H?b:z,K=c.useMemo(function(){return V.length?V.some(function(re){return y(re)}):!0},[V,y]),Y=function(){H&&p(b),C(),S()},G=c.createElement("div",{className:"".concat(x,"-panel-layout")},c.createElement(Wee,{prefixCls:x,presets:u,onClick:f,onHover:d}),c.createElement("div",null,c.createElement(Vee,be({},e,{value:U})),c.createElement(Ree,be({},e,{showNow:i?!1:o,invalid:K,onSubmit:Y}))));t&&(G=t(G));var q="".concat(w,"-container"),J="marginLeft",Q="marginRight",ne=c.createElement("div",{tabIndex:-1,className:Z(q,"".concat(x,"-").concat(n,"-panel-container")),style:L(L({},O?Q:J,N),O?J:Q,"auto"),onFocus:m,onBlur:h},G);return a&&(ne=c.createElement("div",{ref:P,className:Z("".concat(x,"-range-wrapper"),"".concat(x,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:E,className:"".concat(x,"-range-arrow"),style:L({},O?"right":"left",s)}),c.createElement(Sr,{onResize:A},ne))),ne}function VN(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,h=e.onInputChange,g=e.onInvalid,v=e.open,p=e.onOpenChange,y=e.onKeyDown,b=e.onChange,C=e.activeHelp,S=e.name,$=e.autoComplete,x=e.id,w=e.value,O=e.invalid,E=e.placeholder,P=e.disabled,M=e.activeIndex,D=e.allHelp,R=e.picker,_=function(H,V){var U=o.locale.parse(a.locale,H,[V]);return U&&o.isValidate(U)?U:null},T=n[0],k=c.useCallback(function(z){return pr(z,{locale:a,format:T,generateConfig:o})},[a,o,T]),N=c.useMemo(function(){return w.map(k)},[w,k]),j=c.useMemo(function(){var z=R==="time"?8:10,H=typeof T=="function"?T(o.getNow()).length:T.length;return Math.max(z,H)+2},[T,R,o]),A=function(H){for(var V=0;V=l&&n<=s)return a;var u=Math.min(Math.abs(n-l),Math.abs(n-s));u0?xe:Ne));var Le=Me+se,Xe=Ne-xe+1;return String(xe+(Xe+Le-xe)%Xe)};switch(Be){case"Backspace":case"Delete":Ue="",Je=mt;break;case"ArrowLeft":Ue="",gt(-1);break;case"ArrowRight":Ue="",gt(1);break;case"ArrowUp":Ue="",Je=yt(1);break;case"ArrowDown":Ue="",Je=yt(-1);break;default:isNaN(Number(Be))||(Ue=z+Be,Je=Ue);break}if(Ue!==null&&(H(Ue),Ue.length>=nt&&(gt(1),H(""))),Je!==null){var It=ne.slice(0,de)+L2(Je,nt)+ne.slice(he);le(It.slice(0,i.length))}Q({})},Fe=c.useRef();Kt(function(){if(!(!R||!i||ge.current)){if(!te.match(ne)){le(i);return}return oe.current.setSelectionRange(de,he),Fe.current=At(function(){oe.current.setSelectionRange(de,he)}),function(){At.cancel(Fe.current)}}},[te,i,R,ne,K,de,he,J,le]);var qe=i?{onFocus:Ce,onBlur:Re,onKeyDown:_e,onMouseDown:ve,onMouseUp:$e,onPaste:ye}:{};return c.createElement("div",{ref:re,className:Z(P,L(L({},"".concat(P,"-active"),n&&o),"".concat(P,"-placeholder"),u))},c.createElement(E,be({ref:oe,"aria-invalid":v,autoComplete:"off"},y,{onKeyDown:Ee,onBlur:Oe},qe,{value:ne,onChange:me})),c.createElement(n0,{type:"suffix",icon:a}),p)}),Qee=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],Zee=["index"];function Jee(e,t){var n=e.id,r=e.clearIcon,o=e.suffixIcon,a=e.separator,i=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,m=e.onClick,h=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,p=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,C=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,$=ze(e,Qee),x=y==="rtl",w=c.useContext(wa),O=w.prefixCls,E=c.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),P=c.useRef(),M=c.useRef(),D=c.useRef(),R=function(J){var Q;return(Q=[M,D][J])===null||Q===void 0?void 0:Q.current};c.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(J){if(et(J)==="object"){var Q,ne=J||{},re=ne.index,oe=re===void 0?0:re,te=ze(ne,Zee);(Q=R(oe))===null||Q===void 0||Q.focus(te)}else{var ee;(ee=R(J??0))===null||ee===void 0||ee.focus()}},blur:function(){var J,Q;(J=R(0))===null||J===void 0||J.blur(),(Q=R(1))===null||Q===void 0||Q.blur()}}});var _=WN($),T=c.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),k=VN(I(I({},e),{},{id:E,placeholder:T})),N=X(k,1),j=N[0],A=x?"right":"left",B=c.useState(L({position:"absolute",width:0},A,0)),z=X(B,2),H=z[0],V=z[1],U=qt(function(){var q=R(l);if(q){var J=q.nativeElement,Q=J.offsetWidth,ne=J.offsetLeft,re=J.offsetParent,oe=ne;if(x){var te=re,ee=getComputedStyle(te);oe=te.offsetWidth-parseFloat(ee.borderRightWidth)-parseFloat(ee.borderLeftWidth)-ne-Q}V(function(ie){return I(I({},ie),{},L({width:Q},A,oe))}),b(l===0?0:oe)}});c.useEffect(function(){U()},[l]);var K=r&&(g[0]&&!v[0]||g[1]&&!v[1]),Y=S&&!v[0],G=S&&!Y&&!v[1];return c.createElement(Sr,{onResize:U},c.createElement("div",be({},_,{className:Z(O,"".concat(O,"-range"),L(L(L(L({},"".concat(O,"-focused"),s),"".concat(O,"-disabled"),v.every(function(q){return q})),"".concat(O,"-invalid"),p.some(function(q){return q})),"".concat(O,"-rtl"),x),d),style:f,ref:P,onClick:m,onMouseDown:function(J){var Q=J.target;Q!==M.current.inputElement&&Q!==D.current.inputElement&&J.preventDefault(),C==null||C(J)}}),c.createElement(kC,be({ref:M},j(0),{autoFocus:Y,"date-range":"start"})),c.createElement("div",{className:"".concat(O,"-range-separator")},i),c.createElement(kC,be({ref:D},j(1),{autoFocus:G,"date-range":"end"})),c.createElement("div",{className:"".concat(O,"-active-bar"),style:H}),c.createElement(n0,{type:"suffix",icon:o}),K&&c.createElement(FC,{icon:r,onClear:h})))}var ete=c.forwardRef(Jee);function t3(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Rv(e){return e===1?"end":"start"}function tte(e,t){var n=IN(e,function(){var Vt=e.disabled,Ft=e.allowEmpty,Gt=t3(Vt,!1),Xt=t3(Ft,!1);return{disabled:Gt,allowEmpty:Xt}}),r=X(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o.prefixCls,f=o.styles,m=o.classNames,h=o.defaultValue,g=o.value,v=o.needConfirm,p=o.onKeyDown,y=o.disabled,b=o.allowEmpty,C=o.disabledDate,S=o.minDate,$=o.maxDate,x=o.defaultOpen,w=o.open,O=o.onOpenChange,E=o.locale,P=o.generateConfig,M=o.picker,D=o.showNow,R=o.showToday,_=o.showTime,T=o.mode,k=o.onPanelChange,N=o.onCalendarChange,j=o.onOk,A=o.defaultPickerValue,B=o.pickerValue,z=o.onPickerValueChange,H=o.inputReadOnly,V=o.suffixIcon,U=o.onFocus,K=o.onBlur,Y=o.presets,G=o.ranges,q=o.components,J=o.cellRender,Q=o.dateRender,ne=o.monthCellRender,re=o.onClick,oe=RN(t),te=MN(w,x,y,O),ee=X(te,2),ie=ee[0],de=ee[1],he=function(Ft,Gt){(y.some(function(Xt){return!Xt})||!Ft)&&de(Ft,Gt)},fe=kN(P,E,l,!0,!1,h,g,N,j),le=X(fe,5),me=le[0],ye=le[1],ge=le[2],ve=le[3],$e=le[4],Ce=ge(),Oe=TN(y,b),Re=X(Oe,7),Ee=Re[0],_e=Re[1],Fe=Re[2],qe=Re[3],Ze=Re[4],ke=Re[5],Be=Re[6],Ue=function(Ft,Gt){_e(!0),U==null||U(Ft,{range:Rv(Gt??qe)})},Je=function(Ft,Gt){_e(!1),K==null||K(Ft,{range:Rv(Gt??qe)})},nt=c.useMemo(function(){if(!_)return null;var Vt=_.disabledTime,Ft=Vt?function(Gt){var Xt=Rv(qe);return Vt(Gt,Xt)}:void 0;return I(I({},_),{},{disabledTime:Ft})},[_,qe]),mt=Pt([M,M],{value:T}),gt=X(mt,2),yt=gt[0],It=gt[1],ue=yt[qe]||M,se=ue==="date"&&nt?"datetime":ue,pe=se===M&&se!=="time",Se=AN(M,ue,D,R,!0),xe=LN(o,me,ye,ge,ve,y,l,Ee,ie,u),Ne=X(xe,2),We=Ne[0],He=Ne[1],Me=Pee(Ce,y,Be,P,E,C),Le=SN(Ce,u,b),Xe=X(Le,2),Ke=Xe[0],it=Xe[1],ot=NN(P,E,Ce,yt,ie,qe,a,pe,A,B,nt==null?void 0:nt.defaultOpenValue,z,S,$),Mt=X(ot,2),Ct=Mt[0],st=Mt[1],Qe=qt(function(Vt,Ft,Gt){var Xt=Yd(yt,qe,Ft);if((Xt[0]!==yt[0]||Xt[1]!==yt[1])&&It(Xt),k&&Gt!==!1){var Jr=Te(Ce);Vt&&(Jr[qe]=Vt),k(Jr,Xt)}}),Ae=function(Ft,Gt){return Yd(Ce,Gt,Ft)},Pe=function(Ft,Gt){var Xt=Ce;Ft&&(Xt=Ae(Ft,qe));var Jr=ke(Xt);ve(Xt),We(qe,Jr===null),Jr===null?he(!1,{force:!0}):Gt||oe.current.focus({index:Jr})},je=function(Ft){if(!oe.current.nativeElement.contains(document.activeElement)){var Gt=y.findIndex(function(Xt){return!Xt});Gt>=0&&oe.current.focus({index:Gt})}he(!0),re==null||re(Ft)},Ve=function(){He(null),he(!1,{force:!0})},tt=c.useState(null),pt=X(tt,2),ut=pt[0],ct=pt[1],lt=c.useState(null),ht=X(lt,2),ft=ht[0],Lt=ht[1],Cn=c.useMemo(function(){return ft||Ce},[Ce,ft]);c.useEffect(function(){ie||Lt(null)},[ie]);var mn=c.useState(0),dt=X(mn,2),Tt=dt[0],jt=dt[1],Qt=_N(Y,G),kn=function(Ft){Lt(Ft),ct("preset")},jr=function(Ft){var Gt=He(Ft);Gt&&he(!1,{force:!0})},Dr=function(Ft){Pe(Ft)},dr=function(Ft){Lt(Ft?Ae(Ft,qe):null),ct("cell")},Zr=function(Ft){he(!0),Ue(Ft)},Yt=function(Ft){Fe("panel");var Gt=Yd(Ce,qe,Ft);ve(Gt),!v&&!i&&a===se&&Pe(Ft)},Bt=function(){he(!1)},vt=A2(J,Q,ne,Rv(qe)),$t=Ce[qe]||null,Ut=qt(function(Vt){return u(Vt,{activeIndex:qe})}),vn=c.useMemo(function(){var Vt=Qn(o,!1),Ft=gn(o,[].concat(Te(Object.keys(Vt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Ft},[o]),Zt=c.createElement(HN,be({},vn,{showNow:Se,showTime:nt,range:!0,multiplePanel:pe,activeOffset:Tt,disabledDate:Me,onFocus:Zr,onBlur:Je,picker:M,mode:ue,internalMode:se,onPanelChange:Qe,format:s,value:$t,isInvalid:Ut,onChange:null,onSelect:Yt,pickerValue:Ct,defaultOpenValue:Cs(_==null?void 0:_.defaultOpenValue)[qe],onPickerValueChange:st,hoverValue:Cn,onHover:dr,needConfirm:v,onSubmit:Pe,onOk:$e,presets:Qt,onPresetHover:kn,onPresetSubmit:jr,onNow:Dr,cellRender:vt})),hn=function(Ft,Gt){var Xt=Ae(Ft,Gt);ve(Xt)},Ot=function(){Fe("input")},St=function(Ft,Gt){Fe("input"),he(!0,{inherit:!0}),Ze(Gt),Ue(Ft,Gt)},en=function(Ft,Gt){he(!1),Je(Ft,Gt)},$n=function(Ft,Gt){Ft.key==="Tab"&&Pe(null,!0),p==null||p(Ft,Gt)},Gn=c.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:P,button:q.button,input:q.input}},[d,E,P,q.button,q.input]);return Kt(function(){ie&&qe!==void 0&&Qe(null,M,!1)},[ie,qe,M]),Kt(function(){var Vt=Fe();!ie&&Vt==="input"&&(he(!1),Pe(null,!0)),!ie&&i&&!v&&Vt==="panel"&&(he(!0),Pe())},[ie]),c.createElement(wa.Provider,{value:Gn},c.createElement(yN,be({},CN(o),{popupElement:Zt,popupStyle:f.popup,popupClassName:m.popup,visible:ie,onClose:Bt,range:!0}),c.createElement(ete,be({},o,{ref:oe,suffixIcon:V,activeIndex:Ee||ie?qe:null,activeHelp:!!ft,allHelp:!!ft&&ut==="preset",focused:Ee,onFocus:St,onBlur:en,onKeyDown:$n,onSubmit:Pe,value:Cn,maskFormat:s,onChange:hn,onInputChange:Ot,format:l,inputReadOnly:H,disabled:y,open:ie,onOpenChange:he,onClick:je,onClear:Ve,invalid:Ke,onInvalid:it,onActiveOffset:jt}))))}var nte=c.forwardRef(tte);function rte(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,l=e.disabled,s=e.maxTagCount,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function m(v,p){return c.createElement("span",{className:Z("".concat(d,"-item")),title:typeof v=="string"?v:null},c.createElement("span",{className:"".concat(d,"-item-content")},v),!l&&p&&c.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:p,className:"".concat(d,"-item-remove")},a))}function h(v){var p=i(v),y=function(C){C&&C.stopPropagation(),r(v)};return m(p,y)}function g(v){var p="+ ".concat(v.length," ...");return m(p)}return c.createElement("div",{className:u},c.createElement(ma,{prefixCls:f,data:n,renderItem:h,renderRest:g,itemKey:function(p){return i(p)},maxCount:s}))}var ote=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function ate(e,t){e.id;var n=e.open,r=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,l=e.generateConfig;e.placeholder;var s=e.className,u=e.style,d=e.onClick,f=e.onClear,m=e.internalPicker,h=e.value,g=e.onChange,v=e.onSubmit;e.onInputChange;var p=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var $=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,w=e.removeIcon,O=ze(e,ote),E=S==="rtl",P=c.useContext(wa),M=P.prefixCls,D=c.useRef(),R=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(U){var K;(K=R.current)===null||K===void 0||K.focus(U)},blur:function(){var U;(U=R.current)===null||U===void 0||U.blur()}}});var _=WN(O),T=function(U){g([U])},k=function(U){var K=h.filter(function(Y){return Y&&!Hr(l,i,Y,U,m)});g(K),n||v()},N=VN(I(I({},e),{},{onChange:T}),function(V){var U=V.valueTexts;return{value:U[0]||"",active:a}}),j=X(N,2),A=j[0],B=j[1],z=!!(r&&h.length&&!b),H=p?c.createElement(c.Fragment,null,c.createElement(rte,{prefixCls:M,value:h,onRemove:k,formatDate:B,maxTagCount:y,disabled:b,removeIcon:w}),c.createElement("input",{className:"".concat(M,"-multiple-input"),value:h.map(B).join(","),ref:R,readOnly:!0,autoFocus:x}),c.createElement(n0,{type:"suffix",icon:o}),z&&c.createElement(FC,{icon:r,onClear:f})):c.createElement(kC,be({ref:R},A(),{autoFocus:x,suffixIcon:o,clearIcon:z&&c.createElement(FC,{icon:r,onClear:f}),showActiveCls:!1}));return c.createElement("div",be({},_,{className:Z(M,L(L(L(L(L({},"".concat(M,"-multiple"),p),"".concat(M,"-focused"),a),"".concat(M,"-disabled"),b),"".concat(M,"-invalid"),C),"".concat(M,"-rtl"),E),s),style:u,ref:D,onClick:d,onMouseDown:function(U){var K,Y=U.target;Y!==((K=R.current)===null||K===void 0?void 0:K.inputElement)&&U.preventDefault(),$==null||$(U)}}),H)}var ite=c.forwardRef(ate);function lte(e,t){var n=IN(e),r=X(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o,f=d.prefixCls,m=d.styles,h=d.classNames,g=d.order,v=d.defaultValue,p=d.value,y=d.needConfirm,b=d.onChange,C=d.onKeyDown,S=d.disabled,$=d.disabledDate,x=d.minDate,w=d.maxDate,O=d.defaultOpen,E=d.open,P=d.onOpenChange,M=d.locale,D=d.generateConfig,R=d.picker,_=d.showNow,T=d.showToday,k=d.showTime,N=d.mode,j=d.onPanelChange,A=d.onCalendarChange,B=d.onOk,z=d.multiple,H=d.defaultPickerValue,V=d.pickerValue,U=d.onPickerValueChange,K=d.inputReadOnly,Y=d.suffixIcon,G=d.removeIcon,q=d.onFocus,J=d.onBlur,Q=d.presets,ne=d.components,re=d.cellRender,oe=d.dateRender,te=d.monthCellRender,ee=d.onClick,ie=RN(t);function de(Ot){return Ot===null?null:z?Ot:Ot[0]}var he=BN(D,M,a),fe=MN(E,O,[S],P),le=X(fe,2),me=le[0],ye=le[1],ge=function(St,en,$n){if(A){var Gn=I({},$n);delete Gn.range,A(de(St),de(en),Gn)}},ve=function(St){B==null||B(de(St))},$e=kN(D,M,l,!1,g,v,p,ge,ve),Ce=X($e,5),Oe=Ce[0],Re=Ce[1],Ee=Ce[2],_e=Ce[3],Fe=Ce[4],qe=Ee(),Ze=TN([S]),ke=X(Ze,4),Be=ke[0],Ue=ke[1],Je=ke[2],nt=ke[3],mt=function(St){Ue(!0),q==null||q(St,{})},gt=function(St){Ue(!1),J==null||J(St,{})},yt=Pt(R,{value:N}),It=X(yt,2),ue=It[0],se=It[1],pe=ue==="date"&&k?"datetime":ue,Se=AN(R,ue,_,T),xe=b&&function(Ot,St){b(de(Ot),de(St))},Ne=LN(I(I({},o),{},{onChange:xe}),Oe,Re,Ee,_e,[],l,Be,me,u),We=X(Ne,2),He=We[1],Me=SN(qe,u),Le=X(Me,2),Xe=Le[0],Ke=Le[1],it=c.useMemo(function(){return Xe.some(function(Ot){return Ot})},[Xe]),ot=function(St,en){if(U){var $n=I(I({},en),{},{mode:en.mode[0]});delete $n.range,U(St[0],$n)}},Mt=NN(D,M,qe,[ue],me,nt,a,!1,H,V,Cs(k==null?void 0:k.defaultOpenValue),ot,x,w),Ct=X(Mt,2),st=Ct[0],Qe=Ct[1],Ae=qt(function(Ot,St,en){if(se(St),j&&en!==!1){var $n=Ot||qe[qe.length-1];j($n,St)}}),Pe=function(){He(Ee()),ye(!1,{force:!0})},je=function(St){!S&&!ie.current.nativeElement.contains(document.activeElement)&&ie.current.focus(),ye(!0),ee==null||ee(St)},Ve=function(){He(null),ye(!1,{force:!0})},tt=c.useState(null),pt=X(tt,2),ut=pt[0],ct=pt[1],lt=c.useState(null),ht=X(lt,2),ft=ht[0],Lt=ht[1],Cn=c.useMemo(function(){var Ot=[ft].concat(Te(qe)).filter(function(St){return St});return z?Ot:Ot.slice(0,1)},[qe,ft,z]),mn=c.useMemo(function(){return!z&&ft?[ft]:qe.filter(function(Ot){return Ot})},[qe,ft,z]);c.useEffect(function(){me||Lt(null)},[me]);var dt=_N(Q),Tt=function(St){Lt(St),ct("preset")},jt=function(St){var en=z?he(Ee(),St):[St],$n=He(en);$n&&!z&&ye(!1,{force:!0})},Qt=function(St){jt(St)},kn=function(St){Lt(St),ct("cell")},jr=function(St){ye(!0),mt(St)},Dr=function(St){Je("panel");var en=z?he(Ee(),St):[St];_e(en),!y&&!i&&a===pe&&Pe()},dr=function(){ye(!1)},Zr=A2(re,oe,te),Yt=c.useMemo(function(){var Ot=Qn(o,!1),St=gn(o,[].concat(Te(Object.keys(Ot)),["onChange","onCalendarChange","style","className","onPanelChange"]));return I(I({},St),{},{multiple:o.multiple})},[o]),Bt=c.createElement(HN,be({},Yt,{showNow:Se,showTime:k,disabledDate:$,onFocus:jr,onBlur:gt,picker:R,mode:ue,internalMode:pe,onPanelChange:Ae,format:s,value:qe,isInvalid:u,onChange:null,onSelect:Dr,pickerValue:st,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:Qe,hoverValue:Cn,onHover:kn,needConfirm:y,onSubmit:Pe,onOk:Fe,presets:dt,onPresetHover:Tt,onPresetSubmit:jt,onNow:Qt,cellRender:Zr})),vt=function(St){_e(St)},$t=function(){Je("input")},Ut=function(St){Je("input"),ye(!0,{inherit:!0}),mt(St)},vn=function(St){ye(!1),gt(St)},Zt=function(St,en){St.key==="Tab"&&Pe(),C==null||C(St,en)},hn=c.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:D,button:ne.button,input:ne.input}},[f,M,D,ne.button,ne.input]);return Kt(function(){me&&nt!==void 0&&Ae(null,R,!1)},[me,nt,R]),Kt(function(){var Ot=Je();!me&&Ot==="input"&&(ye(!1),Pe()),!me&&i&&!y&&Ot==="panel"&&(ye(!0),Pe())},[me]),c.createElement(wa.Provider,{value:hn},c.createElement(yN,be({},CN(o),{popupElement:Bt,popupStyle:m.popup,popupClassName:h.popup,visible:me,onClose:dr}),c.createElement(ite,be({},o,{ref:ie,suffixIcon:Y,removeIcon:G,activeHelp:!!ft,allHelp:!!ft&&ut==="preset",focused:Be,onFocus:Ut,onBlur:vn,onKeyDown:Zt,onSubmit:Pe,value:mn,maskFormat:s,onChange:vt,onInputChange:$t,internalPicker:a,format:l,inputReadOnly:K,disabled:S,open:me,onOpenChange:ye,onClick:je,onClear:Ve,invalid:it,onInvalid:function(St){Ke(St,0)}}))))}var ste=c.forwardRef(lte);const KN=c.createContext(null),cte=KN.Provider,UN=c.createContext(null),ute=UN.Provider;var dte=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],GN=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,u=s===void 0?!1:s,d=e.type,f=d===void 0?"checkbox":d,m=e.title,h=e.onChange,g=ze(e,dte),v=c.useRef(null),p=Pt(u,{value:i}),y=X(p,2),b=y[0],C=y[1];c.useImperativeHandle(t,function(){return{focus:function(w){var O;(O=v.current)===null||O===void 0||O.focus(w)},blur:function(){var w;(w=v.current)===null||w===void 0||w.blur()},input:v.current}});var S=Z(r,o,L(L({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),l)),$=function(w){l||("checked"in e||C(w.target.checked),h==null||h({target:I(I({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:m,style:a},c.createElement("input",be({},g,{className:"".concat(r,"-input"),ref:v,onChange:$,disabled:l,checked:!!b,type:f})),c.createElement("span",{className:"".concat(r,"-inner")}))});const fte=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Wt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},mte=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:h,dotColorDisabled:g,lineType:v,radioColor:p,radioBgColor:y,calc:b}=e,C=`${t}-inner`,$=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ae(d)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},cl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},vte=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:O,colorPrimary:E,colorPrimaryHover:P,colorPrimaryActive:M,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:_,calc:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:ae(T(n).sub(T(o).mul(2)).equal()),background:f,border:`${ae(o)} ${a} ${i}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${ae(o)} ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:ae(T(h).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:T(v).sub(o).equal(),paddingBlock:0,lineHeight:ae(T(g).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},cl(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:C,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:D,borderColor:D,"&:hover":{color:S,background:R,borderColor:R},"&:active":{color:S,background:_,borderColor:_}},"&-disabled":{color:$,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},gte=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:h,colorWhite:g}=e,v=4,p=a,y=t?p-v*2:p-(v+o)*2;return{radioSize:p,dotSize:y,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?l:f}},qN=Ht("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ae(n)} ${t}`,a=_t(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[fte(a),mte(a),vte(a)]},gte,{unitless:{radioSize:!0,dotSize:!0}});var pte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=c.useContext(KN),a=c.useContext(UN),{getPrefixCls:i,direction:l,radio:s}=c.useContext(at),u=c.useRef(null),d=Er(t,u),{isFormItemInput:f}=c.useContext(yr),m=_=>{var T,k;(T=e.onChange)===null||T===void 0||T.call(e,_),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,_)},{prefixCls:h,className:g,rootClassName:v,children:p,style:y,title:b}=e,C=pte(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",h),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,w=pn(S),[O,E,P]=qN(S,w),M=Object.assign({},C),D=c.useContext(Kr);o&&(M.name=o.name,M.onChange=m,M.checked=e.value===o.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:o.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:D;const R=Z(`${x}-wrapper`,{[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:M.disabled,[`${x}-wrapper-rtl`]:l==="rtl",[`${x}-wrapper-in-form-item`]:f},s==null?void 0:s.className,g,v,E,P,w);return O(c.createElement(_h,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:R,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},c.createElement(GN,Object.assign({},M,{className:Z(M.className,!$&&Rh),type:"radio",prefixCls:x,ref:d})),p!==void 0?c.createElement("span",null,p):null)))},gp=c.forwardRef(hte),yte=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(at),[o,a]=Pt(e.defaultValue,{value:e.value}),i=_=>{const T=o,k=_.target.value;"value"in e||a(k);const{onChange:N}=e;N&&k!==T&&N(_)},{prefixCls:l,className:s,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:y,onMouseLeave:b,onFocus:C,onBlur:S}=e,$=n("radio",l),x=`${$}-group`,w=pn($),[O,E,P]=qN($,w);let M=h;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(gp,{key:_.toString(),prefixCls:$,disabled:m,value:_,checked:o===_},_):c.createElement(gp,{key:`radio-group-value-options-${_.value}`,prefixCls:$,disabled:_.disabled||m,value:_.value,checked:o===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const D=nr(g),R=Z(x,`${x}-${f}`,{[`${x}-${D}`]:D,[`${x}-rtl`]:r==="rtl"},s,u,E,P,w);return O(c.createElement("div",Object.assign({},Qn(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:y,onMouseLeave:b,onFocus:C,onBlur:S,id:p,ref:t}),c.createElement(cte,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),bte=c.memo(yte);var Cte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=c.useContext(at),{prefixCls:r}=e,o=Cte(e,["prefixCls"]),a=n("radio",r);return c.createElement(ute,{value:"button"},c.createElement(gp,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},xte=c.forwardRef(Ste),r0=gp;r0.Button=xte;r0.Group=bte;r0.__ANT_RADIO=!0;function o0(e){return _t(e,{inputAffixPadding:e.paddingXXS})}const a0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:C}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${y}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},wte=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},wte(_t(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),W2=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),n3=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},W2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),K2=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W2(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},i0(e))}),n3(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),n3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),r3=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),YN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},r3(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),r3(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},i0(e))}})}),U2=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),XN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),o3=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},XN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),G2=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},i0(e))}),o3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),o3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),a3=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),QN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},a3(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),a3(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),q2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ZN=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ae(t)} ${ae(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Y2=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},q2(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ZN(e)),"&-sm":Object.assign({},Y2(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),JN=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({},ZN(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Y2(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 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-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"},np()),{[`${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},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ae(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},gte=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),pte=Ht("Breadcrumb",e=>{const t=_t(e,{});return vte(t)},gte);var g3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:i}=a,l=g3(a,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),o}function yte(e,t){return c.useMemo(()=>e||(t?t.map(hte):null),[e,t])}var bte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},L2=e=>{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:a,routes:i,items:l,children:s,itemRender:u,params:d={}}=e,f=bte(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:h,breadcrumb:g}=c.useContext(at);let v;const p=m("breadcrumb",t),[y,b,C]=pte(p),S=yte(l,i),$=fte(p,u);if(S&&S.length>0){const O=[],E=l||i;v=S.map((P,M)=>{const{path:D,key:R,type:_,menu:T,overlay:k,onClick:N,className:j,separator:A,dropdownProps:B}=P,z=Cte(d,D);z!==void 0&&O.push(z);const H=R??M;if(_==="separator")return c.createElement(k2,{key:H},A);const V={},U=M===S.length-1;T?V.menu=T:k&&(V.overlay=k);let{href:K}=P;return O.length&&z!==void 0&&(K=`#/${O.join("/")}`),c.createElement(wN,Object.assign({key:H},V,Qn(P,{data:!0,aria:!0}),{className:j,dropdownProps:B,href:K,separator:U?"":n,onClick:N,prefixCls:p}),$(P,d,E,O,K))})}else if(s){const O=sr(s).length;v=sr(s).map((E,P)=>{if(!E)return E;const M=P===O-1;return tr(E,{separator:M?"":n,key:P})})}const x=Z(p,g==null?void 0:g.className,{[`${p}-rtl`]:h==="rtl"},o,a,b,C),w=Object.assign(Object.assign({},g==null?void 0:g.style),r);return y(c.createElement("nav",Object.assign({className:x,style:w},f),c.createElement("ol",null,v)))};L2.Item=mte;L2.Separator=k2;const Ste=L2;var EN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",u="day",d="week",f="month",m="quarter",h="year",g="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],k=_%100;return"["+_+(T[(k-20)%10]||T[k]||T[0])+"]"}},C=function(_,T,k){var N=String(_);return!N||N.length>=T?_:""+Array(T+1-N.length).join(k)+_},S={s:C,z:function(_){var T=-_.utcOffset(),k=Math.abs(T),N=Math.floor(k/60),j=k%60;return(T<=0?"+":"-")+C(N,2,"0")+":"+C(j,2,"0")},m:function _(T,k){if(T.date()1)return _(B[0])}else{var z=T.name;x[z]=T,j=z}return!N&&j&&($=j),j||!N&&$},P=function(_,T){if(O(_))return _.clone();var k=typeof T=="object"?T:{};return k.date=_,k.args=arguments,new D(k)},M=S;M.l=E,M.i=O,M.w=function(_,T){return P(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var D=function(){function _(k){this.$L=E(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[w]=!0}var T=_.prototype;return T.parse=function(k){this.$d=function(N){var j=N.date,A=N.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(p);if(B){var z=B[2]-1||0,H=(B[7]||"0").substring(0,3);return A?new Date(Date.UTC(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(j)}(k),this.init()},T.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},T.$utils=function(){return M},T.isValid=function(){return this.$d.toString()!==v},T.isSame=function(k,N){var j=P(k);return this.startOf(N)<=j&&j<=this.endOf(N)},T.isAfter=function(k,N){return P(k)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(m,n,!0);return h<0?i(this).startOf("week").week():Math.ceil(h)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(_N);var $te=_N.exports;const A2=jn($te);var TN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(TN);var Ete=TN.exports;const Pte=jn(Ete);var NN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(NN);var Ote=NN.exports;const jN=jn(Ote);var DN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},s=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(p){this[v]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var y=p.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(v)}],f=function(v){var p=l[v];return p&&(p.indexOf?p:p.s.concat(p.f))},m=function(v,p){var y,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,p))>-1){y=C>12;break}}else y=v===(p?"pm":"PM");return y},h={A:[i,function(v){this.afternoon=m(v,!1)}],a:[i,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[i,function(v){var p=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],p)for(var b=1;b<=31;b+=1)p(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(v){var p=f("months"),y=(f("monthsShort")||p.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(v){var p=f("months").indexOf(v)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=s(v)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(v){var p,y;p=v,y=l&&l.formats;for(var b=(v=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,P,M){var D=M&&M.toUpperCase();return P||y[M]||n[M]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,_,T){return _||T.slice(1)})})).match(r),C=b.length,S=0;S-1)return new Date((N==="X"?1e3:1)*k);var A=g(N)(k),B=A.year,z=A.month,H=A.day,V=A.hours,U=A.minutes,K=A.seconds,Y=A.milliseconds,G=A.zone,q=new Date,J=H||(B||z?1:q.getDate()),Q=B||q.getFullYear(),ne=0;B&&!z||(ne=z>0?z-1:q.getMonth());var re=V||0,oe=U||0,te=K||0,ee=Y||0;return G?new Date(Date.UTC(Q,ne,J,re,oe,te,ee+60*G.offset*1e3)):j?new Date(Date.UTC(Q,ne,J,re,oe,te,ee)):new Date(Q,ne,J,re,oe,te,ee)}catch{return new Date("")}}($,O,x),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&$!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var R=O.length,_=1;_<=R;_+=1){w[1]=O[_-1];var T=y.apply(this,w);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}_===R&&(this.$d=new Date(""))}else C.call(this,S)}}})})(DN);var Ite=DN.exports;const FN=jn(Ite);zt.extend(FN);zt.extend(jN);zt.extend(IN);zt.extend(RN);zt.extend(A2);zt.extend(Pte);zt.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var Mte={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},_l=function(t){var n=Mte[t];return n||t.split("_")[0]},p3=function(){wf(!1,"Not match any format. Please help to fire a issue about this.")},Rte={getNow:function(){return zt()},getFixedDate:function(t){return zt(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return zt().locale(_l(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(_l(t)).weekday(0)},getWeek:function(t,n){return n.locale(_l(t)).week()},getShortWeekDays:function(t){return zt().locale(_l(t)).localeData().weekdaysMin()},getShortMonths:function(t){return zt().locale(_l(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(_l(t)).format(r)},parse:function(t,n,r){for(var o=_l(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),o=X(r,2),a=o[0],i=o[1],l=function(d,f){i(function(m){return Xd(m,f,d)})},s=c.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[s,l]}function zN(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function Tte(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,h=e.yearFormat,g=e.cellYearFormat,v=e.cellQuarterFormat,p=e.dayFormat,y=e.cellDateFormat,b=zN(t,n,r,o,a);return I(I({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:y||p||"D"})}function HN(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return W.useMemo(function(){return Tte(e,n,r,o,a,i)},[e,n,r,o,a,i])}function md(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Nte=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function jte(e){var t=r0(e,Nte),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=et(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function Dte(e){return e&&typeof e=="string"}function VN(e){var t=e.showTime,n=jte(e),r=X(n,2),o=r[0],a=r[1],i=t&&et(t)==="object"?t:{},l=I(I({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),s=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond;return!u&&!d&&!f&&!s&&(u=!0,d=!0,f=!0),[l,I(I({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:s}),l.format,a]}function WN(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,l=LN(e,o,null),s=l,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function pr(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function pp(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,l){n?r=e[i](r,e[o[l]](n)):r=e[i](r,0)}),r}function Ate(e,t,n,r,o){var a=qt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!Hr(e,t,r,i,l.type)||o&&e.isAfter(i,o)&&!Hr(e,t,o,i,l.type))});return a}function Bte(e,t,n){return c.useMemo(function(){var r=LN(e,t,n),o=Ss(r),a=o[0],i=et(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function zte(e,t,n){return typeof e[0]=="function"||n?!0:t}function Hte(e,t,n,r){var o=qt(function(a,i){var l=I({type:t},i);if(delete l.activeIndex,!e.isValidate(a)||n&&n(a,l))return!0;if((t==="date"||t==="time")&&r){var s,u=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,a,i&&i.activeIndex===1?"end":"start"))||{},d=u.disabledHours,f=u.disabledMinutes,m=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,p=r.disabledSeconds,y=d||g,b=f||v,C=m||p,S=e.getHour(a),$=e.getMinute(a),x=e.getSecond(a),w=e.getMillisecond(a);if(y&&y().includes(S)||b&&b(S).includes($)||C&&C(S,$).includes(x)||h&&h(S,$,x).includes(w))return!0}return!1});return o}function Pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&Ss(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function GN(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,u=s===void 0?{}:s,d=e.classNames,f=d===void 0?{}:d,m=e.order,h=m===void 0?!0:m,g=e.components,v=g===void 0?{}:g,p=e.inputRender,y=e.allowClear,b=e.clearIcon,C=e.needConfirm,S=e.multiple,$=e.format,x=e.inputReadOnly,w=e.disabledDate,O=e.minDate,E=e.maxDate,P=e.showTime,M=e.value,D=e.defaultValue,R=e.pickerValue,_=e.defaultPickerValue,T=Pv(M),k=Pv(D),N=Pv(R),j=Pv(_),A=a==="date"&&P?"datetime":a,B=A==="time"||A==="datetime",z=B||S,H=C??B,V=VN(e),U=X(V,4),K=U[0],Y=U[1],G=U[2],q=U[3],J=HN(r,Y),Q=c.useMemo(function(){return WN(A,G,q,K,J)},[A,G,q,K,J]),ne=c.useMemo(function(){return I(I({},e),{},{prefixCls:l,locale:J,picker:a,styles:u,classNames:f,order:h,components:I({input:p},v),clearIcon:Fte(l,y,b),showTime:Q,value:T,defaultValue:k,pickerValue:N,defaultPickerValue:j},t==null?void 0:t())},[e]),re=Bte(A,J,$),oe=X(re,2),te=oe[0],ee=oe[1],ie=zte(te,x,S),de=Ate(n,r,w,O,E),he=Hte(n,a,w,Q),fe=c.useMemo(function(){return I(I({},ne),{},{needConfirm:H,inputReadOnly:ie,disabledDate:de})},[ne,H,ie,de]);return[fe,A,z,te,ee,he]}function Vte(e,t,n){var r=Pt(t,{value:e}),o=X(r,2),a=o[0],i=o[1],l=W.useRef(e),s=W.useRef(),u=function(){At.cancel(s.current)},d=qt(function(){i(l.current),n&&a!==l.current&&n(l.current)}),f=qt(function(m,h){u(),l.current=m,m||h?d():s.current=At(d)});return W.useEffect(function(){return u},[]),[a,f]}function qN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=Vte(o,t||!1,r),i=X(a,2),l=i[0],s=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(d,f.force)}return[l,u]}function YN(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function XN(e,t){return c.useMemo(function(){return e||(t?(cn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=X(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function W2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,Ql(function(){if(e)r.current(e);else{var o=At(function(){r.current(e)},n);return function(){At.cancel(o)}}},[e])}function QN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=c.useState(0),r=X(n,2),o=r[0],a=r[1],i=c.useState(!1),l=X(i,2),s=l[0],u=l[1],d=c.useRef([]),f=c.useRef(null),m=function(p){u(p)},h=function(p){return p&&(f.current=p),f.current},g=function(p){var y=d.current,b=new Set(y.filter(function(S){return p[S]||t[S]})),C=y[y.length-1]===0?1:0;return b.size>=2||e[C]?null:C};return W2(s,function(){s||(d.current=[])}),c.useEffect(function(){s&&d.current.push(o)},[s,o]),[s,m,h,o,a,g,d.current]}function Wte(e,t,n,r,o,a){var i=n[n.length-1],l=n.find(function(u){return e[u]}),s=function(d,f){var m=X(e,2),h=m[0],g=m[1],v=I(I({},f),{},{from:i!==l?e[l]:void 0});return i===1&&t[0]&&h&&!Hr(r,o,h,d,v.type)&&r.isAfter(h,d)||i===0&&t[1]&&g&&!Hr(r,o,g,d,v.type)&&r.isAfter(d,g)?!0:a==null?void 0:a(d,v)};return s}function Md(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Zy=[];function ZN(e,t,n,r,o,a,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Zy,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Zy,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Zy,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,g=i==="time",v=a||0,p=function(N){var j=e.getNow();return g&&(j=pp(e,j)),s[N]||n[N]||j},y=X(u,2),b=y[0],C=y[1],S=Pt(function(){return p(0)},{value:b}),$=X(S,2),x=$[0],w=$[1],O=Pt(function(){return p(1)},{value:C}),E=X(O,2),P=E[0],M=E[1],D=c.useMemo(function(){var k=[x,P][v];return g?k:pp(e,k,d[v])},[g,x,P,v,e,d]),R=function(N){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",A=[w,M][v];A(N);var B=[x,P];B[v]=N,f&&(!Hr(e,t,x,B[0],i)||!Hr(e,t,P,B[1],i))&&f(B,{source:j,range:v===1?"end":"start",mode:r})},_=function(N,j){if(l){var A={date:"month",week:"month",month:"year",quarter:"year"},B=A[i];if(B&&!Hr(e,t,N,j,B))return Md(e,i,j,-1);if(i==="year"){var z=Math.floor(e.getYear(N)/10),H=Math.floor(e.getYear(j)/10);if(z!==H)return Md(e,i,j,-1)}}return j},T=c.useRef(null);return Kt(function(){if(o&&!s[v]){var k=g?null:e.getNow();if(T.current!==null&&T.current!==v?k=[x,P][v^1]:n[v]?k=v===0?n[0]:_(n[0],n[1]):n[v^1]&&(k=n[v^1]),k){m&&e.isAfter(m,k)&&(k=m);var N=l?Md(e,i,k,1):k;h&&e.isAfter(N,h)&&(k=l?Md(e,i,h,-1):h),R(k,"reset")}}},[o,v,n[v]]),c.useEffect(function(){o?T.current=v:T.current=null},[o,v]),Kt(function(){o&&s&&s[v]&&R(s[v],"reset")},[o,v]),[D,R]}function JN(e,t){var n=c.useRef(e),r=c.useState({}),o=X(r,2),a=o[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,a({})};return[i,l,i(!0)]}var Kte=[];function e7(e,t,n){var r=function(i){return i.map(function(l){return pr(l,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,l){for(var s=Math.max(i.length,l.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var u=o.includes(s);(!u||!r)&&i.push({label:B2(s,a),value:s,disabled:u})}return i}function K2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,l=r.minuteStep,s=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,h=r.hideDisabledOptions,g=r.disabledTime,v=r.disabledHours,p=r.disabledMinutes,y=r.disabledSeconds,b=c.useMemo(function(){return n||e.getNow()},[n,e]),C=c.useCallback(function(j){var A=(g==null?void 0:g(j))||{};return[A.disabledHours||v||Ov,A.disabledMinutes||p||Ov,A.disabledSeconds||y||Ov,A.disabledMilliseconds||Ov]},[g,v,p,y]),S=c.useMemo(function(){return C(b)},[b,C]),$=X(S,4),x=$[0],w=$[1],O=$[2],E=$[3],P=c.useCallback(function(j,A,B,z){var H=Iv(0,23,i,h,j()),V=o?H.map(function(G){return I(I({},G),{},{label:B2(G.value%12||12,2)})}):H,U=function(q){return Iv(0,59,s,h,A(q))},K=function(q,J){return Iv(0,59,d,h,B(q,J))},Y=function(q,J,Q){return Iv(0,999,m,h,z(q,J,Q),3)};return[V,U,K,Y]},[h,i,o,m,s,d]),M=c.useMemo(function(){return P(x,w,O,E)},[P,x,w,O,E]),D=X(M,4),R=D[0],_=D[1],T=D[2],k=D[3],N=function(A,B){var z=function(){return R},H=_,V=T,U=k;if(B){var K=C(B),Y=X(K,4),G=Y[0],q=Y[1],J=Y[2],Q=Y[3],ne=P(G,q,J,Q),re=X(ne,4),oe=re[0],te=re[1],ee=re[2],ie=re[3];z=function(){return oe},H=te,V=ee,U=ie}var de=Gte(A,z,H,V,U,e);return de};return[N,R,_,T,k]}function qte(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=c.useContext(wa),h=m.prefixCls,g=m.locale,v=m.button,p=v===void 0?"button":v,y=d.getNow(),b=K2(d,a,y),C=X(b,1),S=C[0],$=r==null?void 0:r(t),x=f(y,{type:t}),w=function(){if(!x){var _=S(y);l(_)}},O="".concat(h,"-now"),E="".concat(O,"-btn"),P=o&&c.createElement("li",{className:O},c.createElement("a",{className:Z(E,x&&"".concat(E,"-disabled")),"aria-disabled":x,onClick:w},n==="date"?g.today:g.now)),M=u&&c.createElement("li",{className:"".concat(h,"-ok")},c.createElement(p,{disabled:s,onClick:i},g.ok)),D=(P||M)&&c.createElement("ul",{className:"".concat(h,"-ranges")},P,M);return!$&&!D?null:c.createElement("div",{className:"".concat(h,"-footer")},$&&c.createElement("div",{className:"".concat(h,"-footer-extra")},$),D)}function a7(e,t,n){function r(o,a){var i=o.findIndex(function(s){return Hr(e,t,s,a,n)});if(i===-1)return[].concat(Te(o),[a]);var l=Te(o);return l.splice(i,1),l}return r}var xs=c.createContext(null);function a0(){return c.useContext(xs)}function Eu(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,h=e.pickerValue,g=e.onSelect,v=e.prevIcon,p=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,C=r.getNow(),S={now:C,values:m,pickerValue:h,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:s,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:g,panelType:t,prevIcon:v,nextIcon:p,superPrevIcon:y,superNextIcon:b};return[S,C]}var ol=c.createContext({});function ym(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,h=e.disabledDate,g=a0(),v=g.prefixCls,p=g.panelType,y=g.now,b=g.disabledDate,C=g.cellRender,S=g.onHover,$=g.hoverValue,x=g.hoverRangeValue,w=g.generateConfig,O=g.values,E=g.locale,P=g.onSelect,M=h||b,D="".concat(v,"-cell"),R=c.useContext(ol),_=R.onCellDblClick,T=function(V){return O.some(function(U){return U&&Hr(w,E,V,U,p)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;ye(Be),p==null||p(Be),Ue&&ge(Be)},$e=function(Be,Ue){J(Be),Ue&&ve(Ue),ge(Ue,Be)},Ce=function(Be){if(he(Be),ve(Be),q!==S){var Ue=["decade","year"],Je=[].concat(Ue,["month"]),nt={quarter:[].concat(Ue,["quarter"]),week:[].concat(Te(Je),["week"]),date:[].concat(Te(Je),["date"])},mt=nt[S]||Je,gt=mt.indexOf(q),yt=mt[gt+1];yt&&$e(yt,Be)}},Oe=c.useMemo(function(){var ke,Be;if(Array.isArray(w)){var Ue=X(w,2);ke=Ue[0],Be=Ue[1]}else ke=w;return!ke&&!Be?null:(ke=ke||Be,Be=Be||ke,o.isAfter(ke,Be)?[Be,ke]:[ke,Be])},[w,o]),Re=z2(O,E,P),Ee=D[Q]||ane[Q]||i0,_e=c.useContext(ol),Fe=c.useMemo(function(){return I(I({},_e),{},{hideHeader:R})},[_e,R]),qe="".concat(_,"-panel"),Ze=r0(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(ol.Provider,{value:Fe},c.createElement("div",{ref:T,tabIndex:s,className:Z(qe,L({},"".concat(qe,"-rtl"),a==="rtl"))},c.createElement(Ee,be({},Ze,{showTime:U,prefixCls:_,locale:H,generateConfig:o,onModeChange:$e,pickerValue:me,onPickerValueChange:function(Be){ve(Be,!0)},value:ie[0],onSelect:Ce,values:ie,cellRender:Re,hoverRangeValue:Oe,hoverValue:x}))))}var Jy=c.memo(c.forwardRef(ine));function lne(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,u=c.useContext(wa),d=u.prefixCls,f=u.generateConfig,m=c.useCallback(function(b,C){return Md(f,t,b,C)},[f,t]),h=c.useMemo(function(){return m(r,1)},[r,m]),g=function(C){o(m(C,-1))},v={onCellDblClick:function(){a&&i()}},p=t==="time",y=I(I({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return l?y.hoverRangeValue=s:y.hoverValue=s,n?c.createElement("div",{className:"".concat(d,"-panels")},c.createElement(ol.Provider,{value:I(I({},v),{},{hideNext:!0})},c.createElement(Jy,y)),c.createElement(ol.Provider,{value:I(I({},v),{},{hidePrev:!0})},c.createElement(Jy,be({},y,{pickerValue:h,onPickerValueChange:g})))):c.createElement(ol.Provider,{value:I({},v)},c.createElement(Jy,y))}function y3(e){return typeof e=="function"?e():e}function sne(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(a,i){var l=a.label,s=a.value;return c.createElement("li",{key:i,onClick:function(){r(y3(s))},onMouseEnter:function(){o(y3(s))},onMouseLeave:function(){o(null)}},l)}))):null}function l7(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeOffset,s=l===void 0?0:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,g=e.direction,v=e.value,p=e.onSelect,y=e.isInvalid,b=e.defaultOpenValue,C=e.onOk,S=e.onSubmit,$=c.useContext(wa),x=$.prefixCls,w="".concat(x,"-panel"),O=g==="rtl",E=c.useRef(null),P=c.useRef(null),M=c.useState(0),D=X(M,2),R=D[0],_=D[1],T=c.useState(0),k=X(T,2),N=k[0],j=k[1],A=function(oe){oe.offsetWidth&&_(oe.offsetWidth)};c.useEffect(function(){if(a){var re,oe=((re=E.current)===null||re===void 0?void 0:re.offsetWidth)||0,te=R-oe;s<=te?j(0):j(s+oe-R)}},[R,s,a]);function B(re){return re.filter(function(oe){return oe})}var z=c.useMemo(function(){return B(Ss(v))},[v]),H=r==="time"&&!z.length,V=c.useMemo(function(){return H?B([b]):z},[H,z,b]),U=H?b:z,K=c.useMemo(function(){return V.length?V.some(function(re){return y(re)}):!0},[V,y]),Y=function(){H&&p(b),C(),S()},G=c.createElement("div",{className:"".concat(x,"-panel-layout")},c.createElement(sne,{prefixCls:x,presets:u,onClick:f,onHover:d}),c.createElement("div",null,c.createElement(lne,be({},e,{value:U})),c.createElement(qte,be({},e,{showNow:i?!1:o,invalid:K,onSubmit:Y}))));t&&(G=t(G));var q="".concat(w,"-container"),J="marginLeft",Q="marginRight",ne=c.createElement("div",{tabIndex:-1,className:Z(q,"".concat(x,"-").concat(n,"-panel-container")),style:L(L({},O?Q:J,N),O?J:Q,"auto"),onFocus:m,onBlur:h},G);return a&&(ne=c.createElement("div",{ref:P,className:Z("".concat(x,"-range-wrapper"),"".concat(x,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:E,className:"".concat(x,"-range-arrow"),style:L({},O?"right":"left",s)}),c.createElement(Sr,{onResize:A},ne))),ne}function s7(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,h=e.onInputChange,g=e.onInvalid,v=e.open,p=e.onOpenChange,y=e.onKeyDown,b=e.onChange,C=e.activeHelp,S=e.name,$=e.autoComplete,x=e.id,w=e.value,O=e.invalid,E=e.placeholder,P=e.disabled,M=e.activeIndex,D=e.allHelp,R=e.picker,_=function(H,V){var U=o.locale.parse(a.locale,H,[V]);return U&&o.isValidate(U)?U:null},T=n[0],k=c.useCallback(function(z){return pr(z,{locale:a,format:T,generateConfig:o})},[a,o,T]),N=c.useMemo(function(){return w.map(k)},[w,k]),j=c.useMemo(function(){var z=R==="time"?8:10,H=typeof T=="function"?T(o.getNow()).length:T.length;return Math.max(z,H)+2},[T,R,o]),A=function(H){for(var V=0;V=l&&n<=s)return a;var u=Math.min(Math.abs(n-l),Math.abs(n-s));u0?xe:Ne));var Le=Me+se,Xe=Ne-xe+1;return String(xe+(Xe+Le-xe)%Xe)};switch(Be){case"Backspace":case"Delete":Ue="",Je=mt;break;case"ArrowLeft":Ue="",gt(-1);break;case"ArrowRight":Ue="",gt(1);break;case"ArrowUp":Ue="",Je=yt(1);break;case"ArrowDown":Ue="",Je=yt(-1);break;default:isNaN(Number(Be))||(Ue=z+Be,Je=Ue);break}if(Ue!==null&&(H(Ue),Ue.length>=nt&&(gt(1),H(""))),Je!==null){var It=ne.slice(0,de)+B2(Je,nt)+ne.slice(he);le(It.slice(0,i.length))}Q({})},Fe=c.useRef();Kt(function(){if(!(!R||!i||ge.current)){if(!te.match(ne)){le(i);return}return oe.current.setSelectionRange(de,he),Fe.current=At(function(){oe.current.setSelectionRange(de,he)}),function(){At.cancel(Fe.current)}}},[te,i,R,ne,K,de,he,J,le]);var qe=i?{onFocus:Ce,onBlur:Re,onKeyDown:_e,onMouseDown:ve,onMouseUp:$e,onPaste:ye}:{};return c.createElement("div",{ref:re,className:Z(P,L(L({},"".concat(P,"-active"),n&&o),"".concat(P,"-placeholder"),u))},c.createElement(E,be({ref:oe,"aria-invalid":v,autoComplete:"off"},y,{onKeyDown:Ee,onBlur:Oe},qe,{value:ne,onChange:me})),c.createElement(l0,{type:"suffix",icon:a}),p)}),gne=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],pne=["index"];function hne(e,t){var n=e.id,r=e.clearIcon,o=e.suffixIcon,a=e.separator,i=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,m=e.onClick,h=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,p=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,C=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,$=ze(e,gne),x=y==="rtl",w=c.useContext(wa),O=w.prefixCls,E=c.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),P=c.useRef(),M=c.useRef(),D=c.useRef(),R=function(J){var Q;return(Q=[M,D][J])===null||Q===void 0?void 0:Q.current};c.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(J){if(et(J)==="object"){var Q,ne=J||{},re=ne.index,oe=re===void 0?0:re,te=ze(ne,pne);(Q=R(oe))===null||Q===void 0||Q.focus(te)}else{var ee;(ee=R(J??0))===null||ee===void 0||ee.focus()}},blur:function(){var J,Q;(J=R(0))===null||J===void 0||J.blur(),(Q=R(1))===null||Q===void 0||Q.blur()}}});var _=c7($),T=c.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),k=s7(I(I({},e),{},{id:E,placeholder:T})),N=X(k,1),j=N[0],A=x?"right":"left",B=c.useState(L({position:"absolute",width:0},A,0)),z=X(B,2),H=z[0],V=z[1],U=qt(function(){var q=R(l);if(q){var J=q.nativeElement,Q=J.offsetWidth,ne=J.offsetLeft,re=J.offsetParent,oe=ne;if(x){var te=re,ee=getComputedStyle(te);oe=te.offsetWidth-parseFloat(ee.borderRightWidth)-parseFloat(ee.borderLeftWidth)-ne-Q}V(function(ie){return I(I({},ie),{},L({width:Q},A,oe))}),b(l===0?0:oe)}});c.useEffect(function(){U()},[l]);var K=r&&(g[0]&&!v[0]||g[1]&&!v[1]),Y=S&&!v[0],G=S&&!Y&&!v[1];return c.createElement(Sr,{onResize:U},c.createElement("div",be({},_,{className:Z(O,"".concat(O,"-range"),L(L(L(L({},"".concat(O,"-focused"),s),"".concat(O,"-disabled"),v.every(function(q){return q})),"".concat(O,"-invalid"),p.some(function(q){return q})),"".concat(O,"-rtl"),x),d),style:f,ref:P,onClick:m,onMouseDown:function(J){var Q=J.target;Q!==M.current.inputElement&&Q!==D.current.inputElement&&J.preventDefault(),C==null||C(J)}}),c.createElement(zC,be({ref:M},j(0),{autoFocus:Y,"date-range":"start"})),c.createElement("div",{className:"".concat(O,"-range-separator")},i),c.createElement(zC,be({ref:D},j(1),{autoFocus:G,"date-range":"end"})),c.createElement("div",{className:"".concat(O,"-active-bar"),style:H}),c.createElement(l0,{type:"suffix",icon:o}),K&&c.createElement(BC,{icon:r,onClear:h})))}var yne=c.forwardRef(hne);function C3(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Rv(e){return e===1?"end":"start"}function bne(e,t){var n=GN(e,function(){var Vt=e.disabled,Ft=e.allowEmpty,Gt=C3(Vt,!1),Xt=C3(Ft,!1);return{disabled:Gt,allowEmpty:Xt}}),r=X(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o.prefixCls,f=o.styles,m=o.classNames,h=o.defaultValue,g=o.value,v=o.needConfirm,p=o.onKeyDown,y=o.disabled,b=o.allowEmpty,C=o.disabledDate,S=o.minDate,$=o.maxDate,x=o.defaultOpen,w=o.open,O=o.onOpenChange,E=o.locale,P=o.generateConfig,M=o.picker,D=o.showNow,R=o.showToday,_=o.showTime,T=o.mode,k=o.onPanelChange,N=o.onCalendarChange,j=o.onOk,A=o.defaultPickerValue,B=o.pickerValue,z=o.onPickerValueChange,H=o.inputReadOnly,V=o.suffixIcon,U=o.onFocus,K=o.onBlur,Y=o.presets,G=o.ranges,q=o.components,J=o.cellRender,Q=o.dateRender,ne=o.monthCellRender,re=o.onClick,oe=YN(t),te=qN(w,x,y,O),ee=X(te,2),ie=ee[0],de=ee[1],he=function(Ft,Gt){(y.some(function(Xt){return!Xt})||!Ft)&&de(Ft,Gt)},fe=n7(P,E,l,!0,!1,h,g,N,j),le=X(fe,5),me=le[0],ye=le[1],ge=le[2],ve=le[3],$e=le[4],Ce=ge(),Oe=QN(y,b),Re=X(Oe,7),Ee=Re[0],_e=Re[1],Fe=Re[2],qe=Re[3],Ze=Re[4],ke=Re[5],Be=Re[6],Ue=function(Ft,Gt){_e(!0),U==null||U(Ft,{range:Rv(Gt??qe)})},Je=function(Ft,Gt){_e(!1),K==null||K(Ft,{range:Rv(Gt??qe)})},nt=c.useMemo(function(){if(!_)return null;var Vt=_.disabledTime,Ft=Vt?function(Gt){var Xt=Rv(qe);return Vt(Gt,Xt)}:void 0;return I(I({},_),{},{disabledTime:Ft})},[_,qe]),mt=Pt([M,M],{value:T}),gt=X(mt,2),yt=gt[0],It=gt[1],ue=yt[qe]||M,se=ue==="date"&&nt?"datetime":ue,pe=se===M&&se!=="time",Se=o7(M,ue,D,R,!0),xe=r7(o,me,ye,ge,ve,y,l,Ee,ie,u),Ne=X(xe,2),We=Ne[0],He=Ne[1],Me=Wte(Ce,y,Be,P,E,C),Le=BN(Ce,u,b),Xe=X(Le,2),Ke=Xe[0],it=Xe[1],ot=ZN(P,E,Ce,yt,ie,qe,a,pe,A,B,nt==null?void 0:nt.defaultOpenValue,z,S,$),Mt=X(ot,2),Ct=Mt[0],st=Mt[1],Qe=qt(function(Vt,Ft,Gt){var Xt=Xd(yt,qe,Ft);if((Xt[0]!==yt[0]||Xt[1]!==yt[1])&&It(Xt),k&&Gt!==!1){var Jr=Te(Ce);Vt&&(Jr[qe]=Vt),k(Jr,Xt)}}),Ae=function(Ft,Gt){return Xd(Ce,Gt,Ft)},Pe=function(Ft,Gt){var Xt=Ce;Ft&&(Xt=Ae(Ft,qe));var Jr=ke(Xt);ve(Xt),We(qe,Jr===null),Jr===null?he(!1,{force:!0}):Gt||oe.current.focus({index:Jr})},je=function(Ft){if(!oe.current.nativeElement.contains(document.activeElement)){var Gt=y.findIndex(function(Xt){return!Xt});Gt>=0&&oe.current.focus({index:Gt})}he(!0),re==null||re(Ft)},Ve=function(){He(null),he(!1,{force:!0})},tt=c.useState(null),pt=X(tt,2),ut=pt[0],ct=pt[1],lt=c.useState(null),ht=X(lt,2),ft=ht[0],Lt=ht[1],Cn=c.useMemo(function(){return ft||Ce},[Ce,ft]);c.useEffect(function(){ie||Lt(null)},[ie]);var mn=c.useState(0),dt=X(mn,2),Tt=dt[0],jt=dt[1],Qt=XN(Y,G),kn=function(Ft){Lt(Ft),ct("preset")},jr=function(Ft){var Gt=He(Ft);Gt&&he(!1,{force:!0})},Dr=function(Ft){Pe(Ft)},dr=function(Ft){Lt(Ft?Ae(Ft,qe):null),ct("cell")},Zr=function(Ft){he(!0),Ue(Ft)},Yt=function(Ft){Fe("panel");var Gt=Xd(Ce,qe,Ft);ve(Gt),!v&&!i&&a===se&&Pe(Ft)},Bt=function(){he(!1)},vt=z2(J,Q,ne,Rv(qe)),$t=Ce[qe]||null,Ut=qt(function(Vt){return u(Vt,{activeIndex:qe})}),vn=c.useMemo(function(){var Vt=Qn(o,!1),Ft=gn(o,[].concat(Te(Object.keys(Vt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Ft},[o]),Zt=c.createElement(l7,be({},vn,{showNow:Se,showTime:nt,range:!0,multiplePanel:pe,activeOffset:Tt,disabledDate:Me,onFocus:Zr,onBlur:Je,picker:M,mode:ue,internalMode:se,onPanelChange:Qe,format:s,value:$t,isInvalid:Ut,onChange:null,onSelect:Yt,pickerValue:Ct,defaultOpenValue:Ss(_==null?void 0:_.defaultOpenValue)[qe],onPickerValueChange:st,hoverValue:Cn,onHover:dr,needConfirm:v,onSubmit:Pe,onOk:$e,presets:Qt,onPresetHover:kn,onPresetSubmit:jr,onNow:Dr,cellRender:vt})),hn=function(Ft,Gt){var Xt=Ae(Ft,Gt);ve(Xt)},Ot=function(){Fe("input")},St=function(Ft,Gt){Fe("input"),he(!0,{inherit:!0}),Ze(Gt),Ue(Ft,Gt)},en=function(Ft,Gt){he(!1),Je(Ft,Gt)},$n=function(Ft,Gt){Ft.key==="Tab"&&Pe(null,!0),p==null||p(Ft,Gt)},Gn=c.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:P,button:q.button,input:q.input}},[d,E,P,q.button,q.input]);return Kt(function(){ie&&qe!==void 0&&Qe(null,M,!1)},[ie,qe,M]),Kt(function(){var Vt=Fe();!ie&&Vt==="input"&&(he(!1),Pe(null,!0)),!ie&&i&&!v&&Vt==="panel"&&(he(!0),Pe())},[ie]),c.createElement(wa.Provider,{value:Gn},c.createElement(kN,be({},AN(o),{popupElement:Zt,popupStyle:f.popup,popupClassName:m.popup,visible:ie,onClose:Bt,range:!0}),c.createElement(yne,be({},o,{ref:oe,suffixIcon:V,activeIndex:Ee||ie?qe:null,activeHelp:!!ft,allHelp:!!ft&&ut==="preset",focused:Ee,onFocus:St,onBlur:en,onKeyDown:$n,onSubmit:Pe,value:Cn,maskFormat:s,onChange:hn,onInputChange:Ot,format:l,inputReadOnly:H,disabled:y,open:ie,onOpenChange:he,onClick:je,onClear:Ve,invalid:Ke,onInvalid:it,onActiveOffset:jt}))))}var Cne=c.forwardRef(bne);function Sne(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,l=e.disabled,s=e.maxTagCount,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function m(v,p){return c.createElement("span",{className:Z("".concat(d,"-item")),title:typeof v=="string"?v:null},c.createElement("span",{className:"".concat(d,"-item-content")},v),!l&&p&&c.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:p,className:"".concat(d,"-item-remove")},a))}function h(v){var p=i(v),y=function(C){C&&C.stopPropagation(),r(v)};return m(p,y)}function g(v){var p="+ ".concat(v.length," ...");return m(p)}return c.createElement("div",{className:u},c.createElement(ma,{prefixCls:f,data:n,renderItem:h,renderRest:g,itemKey:function(p){return i(p)},maxCount:s}))}var xne=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function wne(e,t){e.id;var n=e.open,r=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,l=e.generateConfig;e.placeholder;var s=e.className,u=e.style,d=e.onClick,f=e.onClear,m=e.internalPicker,h=e.value,g=e.onChange,v=e.onSubmit;e.onInputChange;var p=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var $=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,w=e.removeIcon,O=ze(e,xne),E=S==="rtl",P=c.useContext(wa),M=P.prefixCls,D=c.useRef(),R=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(U){var K;(K=R.current)===null||K===void 0||K.focus(U)},blur:function(){var U;(U=R.current)===null||U===void 0||U.blur()}}});var _=c7(O),T=function(U){g([U])},k=function(U){var K=h.filter(function(Y){return Y&&!Hr(l,i,Y,U,m)});g(K),n||v()},N=s7(I(I({},e),{},{onChange:T}),function(V){var U=V.valueTexts;return{value:U[0]||"",active:a}}),j=X(N,2),A=j[0],B=j[1],z=!!(r&&h.length&&!b),H=p?c.createElement(c.Fragment,null,c.createElement(Sne,{prefixCls:M,value:h,onRemove:k,formatDate:B,maxTagCount:y,disabled:b,removeIcon:w}),c.createElement("input",{className:"".concat(M,"-multiple-input"),value:h.map(B).join(","),ref:R,readOnly:!0,autoFocus:x}),c.createElement(l0,{type:"suffix",icon:o}),z&&c.createElement(BC,{icon:r,onClear:f})):c.createElement(zC,be({ref:R},A(),{autoFocus:x,suffixIcon:o,clearIcon:z&&c.createElement(BC,{icon:r,onClear:f}),showActiveCls:!1}));return c.createElement("div",be({},_,{className:Z(M,L(L(L(L(L({},"".concat(M,"-multiple"),p),"".concat(M,"-focused"),a),"".concat(M,"-disabled"),b),"".concat(M,"-invalid"),C),"".concat(M,"-rtl"),E),s),style:u,ref:D,onClick:d,onMouseDown:function(U){var K,Y=U.target;Y!==((K=R.current)===null||K===void 0?void 0:K.inputElement)&&U.preventDefault(),$==null||$(U)}}),H)}var $ne=c.forwardRef(wne);function Ene(e,t){var n=GN(e),r=X(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o,f=d.prefixCls,m=d.styles,h=d.classNames,g=d.order,v=d.defaultValue,p=d.value,y=d.needConfirm,b=d.onChange,C=d.onKeyDown,S=d.disabled,$=d.disabledDate,x=d.minDate,w=d.maxDate,O=d.defaultOpen,E=d.open,P=d.onOpenChange,M=d.locale,D=d.generateConfig,R=d.picker,_=d.showNow,T=d.showToday,k=d.showTime,N=d.mode,j=d.onPanelChange,A=d.onCalendarChange,B=d.onOk,z=d.multiple,H=d.defaultPickerValue,V=d.pickerValue,U=d.onPickerValueChange,K=d.inputReadOnly,Y=d.suffixIcon,G=d.removeIcon,q=d.onFocus,J=d.onBlur,Q=d.presets,ne=d.components,re=d.cellRender,oe=d.dateRender,te=d.monthCellRender,ee=d.onClick,ie=YN(t);function de(Ot){return Ot===null?null:z?Ot:Ot[0]}var he=a7(D,M,a),fe=qN(E,O,[S],P),le=X(fe,2),me=le[0],ye=le[1],ge=function(St,en,$n){if(A){var Gn=I({},$n);delete Gn.range,A(de(St),de(en),Gn)}},ve=function(St){B==null||B(de(St))},$e=n7(D,M,l,!1,g,v,p,ge,ve),Ce=X($e,5),Oe=Ce[0],Re=Ce[1],Ee=Ce[2],_e=Ce[3],Fe=Ce[4],qe=Ee(),Ze=QN([S]),ke=X(Ze,4),Be=ke[0],Ue=ke[1],Je=ke[2],nt=ke[3],mt=function(St){Ue(!0),q==null||q(St,{})},gt=function(St){Ue(!1),J==null||J(St,{})},yt=Pt(R,{value:N}),It=X(yt,2),ue=It[0],se=It[1],pe=ue==="date"&&k?"datetime":ue,Se=o7(R,ue,_,T),xe=b&&function(Ot,St){b(de(Ot),de(St))},Ne=r7(I(I({},o),{},{onChange:xe}),Oe,Re,Ee,_e,[],l,Be,me,u),We=X(Ne,2),He=We[1],Me=BN(qe,u),Le=X(Me,2),Xe=Le[0],Ke=Le[1],it=c.useMemo(function(){return Xe.some(function(Ot){return Ot})},[Xe]),ot=function(St,en){if(U){var $n=I(I({},en),{},{mode:en.mode[0]});delete $n.range,U(St[0],$n)}},Mt=ZN(D,M,qe,[ue],me,nt,a,!1,H,V,Ss(k==null?void 0:k.defaultOpenValue),ot,x,w),Ct=X(Mt,2),st=Ct[0],Qe=Ct[1],Ae=qt(function(Ot,St,en){if(se(St),j&&en!==!1){var $n=Ot||qe[qe.length-1];j($n,St)}}),Pe=function(){He(Ee()),ye(!1,{force:!0})},je=function(St){!S&&!ie.current.nativeElement.contains(document.activeElement)&&ie.current.focus(),ye(!0),ee==null||ee(St)},Ve=function(){He(null),ye(!1,{force:!0})},tt=c.useState(null),pt=X(tt,2),ut=pt[0],ct=pt[1],lt=c.useState(null),ht=X(lt,2),ft=ht[0],Lt=ht[1],Cn=c.useMemo(function(){var Ot=[ft].concat(Te(qe)).filter(function(St){return St});return z?Ot:Ot.slice(0,1)},[qe,ft,z]),mn=c.useMemo(function(){return!z&&ft?[ft]:qe.filter(function(Ot){return Ot})},[qe,ft,z]);c.useEffect(function(){me||Lt(null)},[me]);var dt=XN(Q),Tt=function(St){Lt(St),ct("preset")},jt=function(St){var en=z?he(Ee(),St):[St],$n=He(en);$n&&!z&&ye(!1,{force:!0})},Qt=function(St){jt(St)},kn=function(St){Lt(St),ct("cell")},jr=function(St){ye(!0),mt(St)},Dr=function(St){Je("panel");var en=z?he(Ee(),St):[St];_e(en),!y&&!i&&a===pe&&Pe()},dr=function(){ye(!1)},Zr=z2(re,oe,te),Yt=c.useMemo(function(){var Ot=Qn(o,!1),St=gn(o,[].concat(Te(Object.keys(Ot)),["onChange","onCalendarChange","style","className","onPanelChange"]));return I(I({},St),{},{multiple:o.multiple})},[o]),Bt=c.createElement(l7,be({},Yt,{showNow:Se,showTime:k,disabledDate:$,onFocus:jr,onBlur:gt,picker:R,mode:ue,internalMode:pe,onPanelChange:Ae,format:s,value:qe,isInvalid:u,onChange:null,onSelect:Dr,pickerValue:st,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:Qe,hoverValue:Cn,onHover:kn,needConfirm:y,onSubmit:Pe,onOk:Fe,presets:dt,onPresetHover:Tt,onPresetSubmit:jt,onNow:Qt,cellRender:Zr})),vt=function(St){_e(St)},$t=function(){Je("input")},Ut=function(St){Je("input"),ye(!0,{inherit:!0}),mt(St)},vn=function(St){ye(!1),gt(St)},Zt=function(St,en){St.key==="Tab"&&Pe(),C==null||C(St,en)},hn=c.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:D,button:ne.button,input:ne.input}},[f,M,D,ne.button,ne.input]);return Kt(function(){me&&nt!==void 0&&Ae(null,R,!1)},[me,nt,R]),Kt(function(){var Ot=Je();!me&&Ot==="input"&&(ye(!1),Pe()),!me&&i&&!y&&Ot==="panel"&&(ye(!0),Pe())},[me]),c.createElement(wa.Provider,{value:hn},c.createElement(kN,be({},AN(o),{popupElement:Bt,popupStyle:m.popup,popupClassName:h.popup,visible:me,onClose:dr}),c.createElement($ne,be({},o,{ref:ie,suffixIcon:Y,removeIcon:G,activeHelp:!!ft,allHelp:!!ft&&ut==="preset",focused:Be,onFocus:Ut,onBlur:vn,onKeyDown:Zt,onSubmit:Pe,value:mn,maskFormat:s,onChange:vt,onInputChange:$t,internalPicker:a,format:l,inputReadOnly:K,disabled:S,open:me,onOpenChange:ye,onClick:je,onClear:Ve,invalid:it,onInvalid:function(St){Ke(St,0)}}))))}var Pne=c.forwardRef(Ene);const u7=c.createContext(null),One=u7.Provider,d7=c.createContext(null),Ine=d7.Provider;var Mne=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f7=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,u=s===void 0?!1:s,d=e.type,f=d===void 0?"checkbox":d,m=e.title,h=e.onChange,g=ze(e,Mne),v=c.useRef(null),p=Pt(u,{value:i}),y=X(p,2),b=y[0],C=y[1];c.useImperativeHandle(t,function(){return{focus:function(w){var O;(O=v.current)===null||O===void 0||O.focus(w)},blur:function(){var w;(w=v.current)===null||w===void 0||w.blur()},input:v.current}});var S=Z(r,o,L(L({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),l)),$=function(w){l||("checked"in e||C(w.target.checked),h==null||h({target:I(I({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:m,style:a},c.createElement("input",be({},g,{className:"".concat(r,"-input"),ref:v,onChange:$,disabled:l,checked:!!b,type:f})),c.createElement("span",{className:"".concat(r,"-inner")}))});const Rne=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Wt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},_ne=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:h,dotColorDisabled:g,lineType:v,radioColor:p,radioBgColor:y,calc:b}=e,C=`${t}-inner`,$=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ae(d)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},cl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Tne=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:O,colorPrimary:E,colorPrimaryHover:P,colorPrimaryActive:M,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:_,calc:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:ae(T(n).sub(T(o).mul(2)).equal()),background:f,border:`${ae(o)} ${a} ${i}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${ae(o)} ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:ae(T(h).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:T(v).sub(o).equal(),paddingBlock:0,lineHeight:ae(T(g).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},cl(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:C,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:D,borderColor:D,"&:hover":{color:S,background:R,borderColor:R},"&:active":{color:S,background:_,borderColor:_}},"&-disabled":{color:$,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},Nne=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:h,colorWhite:g}=e,v=4,p=a,y=t?p-v*2:p-(v+o)*2;return{radioSize:p,dotSize:y,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?l:f}},m7=Ht("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ae(n)} ${t}`,a=_t(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Rne(a),_ne(a),Tne(a)]},Nne,{unitless:{radioSize:!0,dotSize:!0}});var jne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=c.useContext(u7),a=c.useContext(d7),{getPrefixCls:i,direction:l,radio:s}=c.useContext(at),u=c.useRef(null),d=Er(t,u),{isFormItemInput:f}=c.useContext(yr),m=_=>{var T,k;(T=e.onChange)===null||T===void 0||T.call(e,_),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,_)},{prefixCls:h,className:g,rootClassName:v,children:p,style:y,title:b}=e,C=jne(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",h),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,w=pn(S),[O,E,P]=m7(S,w),M=Object.assign({},C),D=c.useContext(Kr);o&&(M.name=o.name,M.onChange=m,M.checked=e.value===o.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:o.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:D;const R=Z(`${x}-wrapper`,{[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:M.disabled,[`${x}-wrapper-rtl`]:l==="rtl",[`${x}-wrapper-in-form-item`]:f},s==null?void 0:s.className,g,v,E,P,w);return O(c.createElement(Fh,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:R,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},c.createElement(f7,Object.assign({},M,{className:Z(M.className,!$&&Dh),type:"radio",prefixCls:x,ref:d})),p!==void 0?c.createElement("span",null,p):null)))},hp=c.forwardRef(Dne),Fne=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(at),[o,a]=Pt(e.defaultValue,{value:e.value}),i=_=>{const T=o,k=_.target.value;"value"in e||a(k);const{onChange:N}=e;N&&k!==T&&N(_)},{prefixCls:l,className:s,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:y,onMouseLeave:b,onFocus:C,onBlur:S}=e,$=n("radio",l),x=`${$}-group`,w=pn($),[O,E,P]=m7($,w);let M=h;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(hp,{key:_.toString(),prefixCls:$,disabled:m,value:_,checked:o===_},_):c.createElement(hp,{key:`radio-group-value-options-${_.value}`,prefixCls:$,disabled:_.disabled||m,value:_.value,checked:o===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const D=nr(g),R=Z(x,`${x}-${f}`,{[`${x}-${D}`]:D,[`${x}-rtl`]:r==="rtl"},s,u,E,P,w);return O(c.createElement("div",Object.assign({},Qn(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:y,onMouseLeave:b,onFocus:C,onBlur:S,id:p,ref:t}),c.createElement(One,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),kne=c.memo(Fne);var Lne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=c.useContext(at),{prefixCls:r}=e,o=Lne(e,["prefixCls"]),a=n("radio",r);return c.createElement(Ine,{value:"button"},c.createElement(hp,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},Bne=c.forwardRef(Ane),s0=hp;s0.Button=Bne;s0.Group=kne;s0.__ANT_RADIO=!0;function c0(e){return _t(e,{inputAffixPadding:e.paddingXXS})}const u0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:C}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${y}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},zne=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),d0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},zne(_t(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),U2=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),S3=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},U2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),G2=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U2(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},d0(e))}),S3(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),S3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),x3=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),v7=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},x3(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),x3(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},d0(e))}})}),q2=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),g7=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),w3=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},g7(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Y2=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},d0(e))}),w3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),w3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),$3=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),p7=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},$3(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),$3(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),X2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),h7=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ae(t)} ${ae(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Q2=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},X2(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},h7(e)),"&-sm":Object.assign({},Q2(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),y7=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({},h7(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Q2(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 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-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"},op()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -282,64 +310,64 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${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}}}})}},$te=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),hm(e)),K2(e)),G2(e)),U2(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ete=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 ${ae(e.inputAffixPadding)}`}}}},Pte=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},hm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ete(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},Ote=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Wt(e)),JN(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},YN(e)),QN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Ite=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.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,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.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{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}}}})}},Hne=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),bm(e)),G2(e)),Y2(e)),q2(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Vne=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 ${ae(e.inputAffixPadding)}`}}}},Wne=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},bm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Vne(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},Kne=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Wt(e)),y7(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},v7(e)),p7(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Une=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.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,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.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Mte=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.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),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",background:"transparent","&: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"}}}}}},Rte=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},X2=Ht("Input",e=>{const t=_t(e,o0(e));return[$te(t),Mte(t),Pte(t),Ote(t),Ite(t),Rte(t),yu(t)]},a0),Zy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=bT(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ae(a.itemLineHeight)}}}]},_te=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=_t(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=_t(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Zy(o,"small"),Zy(e),Zy(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}}},CT(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Tte=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:h,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ae(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view), + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Gne=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.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),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",background:"transparent","&: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"}}}}}},qne=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Z2=Ht("Input",e=>{const t=_t(e,c0(e));return[Hne(t),Gne(t),Wne(t),Kne(t),Une(t),qne(t),bu(t)]},u0),tb=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=LT(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ae(a.itemLineHeight)}}}]},Yne=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=_t(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=_t(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[tb(o,"small"),tb(e),tb(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}}},AT(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Xne=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:h,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ae(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ae(l)} ${s} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:g}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},Nte=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:h,colorPrimary:g,colorTextHeading:v,colorSplit:p,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:C,motionDurationMid:S,colorIconHover:$,fontWeightStrong:x,cellHeight:w,pickerCellPaddingVertical:O,colorTextDisabled:E,colorText:P,fontSize:M,motionDurationSlow:D,withoutTimeCellHeight:R,pickerQuarterPanelContentHeight:_,borderRadiusSM:T,colorTextLightSolid:k,cellHoverBg:N,timeColumnHeight:j,timeColumnWidth:A,timeCellHeight:B,controlItemBgActive:z,marginXXS:H,pickerDatePanelPaddingHorizontal:V,pickerControlIconMargin:U}=e,K=e.calc(i).mul(7).add(e.calc(V).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:g}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},Qne=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:h,colorPrimary:g,colorTextHeading:v,colorSplit:p,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:C,motionDurationMid:S,colorIconHover:$,fontWeightStrong:x,cellHeight:w,pickerCellPaddingVertical:O,colorTextDisabled:E,colorText:P,fontSize:M,motionDurationSlow:D,withoutTimeCellHeight:R,pickerQuarterPanelContentHeight:_,borderRadiusSM:T,colorTextLightSolid:k,cellHoverBg:N,timeColumnHeight:j,timeColumnWidth:A,timeCellHeight:B,controlItemBgActive:z,marginXXS:H,pickerDatePanelPaddingHorizontal:V,pickerControlIconMargin:U}=e,K=e.calc(i).mul(7).add(e.calc(V).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:K},"&-header":{display:"flex",padding:`0 ${ae(s)}`,color:v,borderBottom:`${ae(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:ae(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:ae(C),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(O).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ae(O)} 0`,color:E,cursor:"pointer","&-in-view":{color:P}},Tte(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(R).mul(4).equal()},[r]:{padding:`0 ${ae(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${ae(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ae(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ae(s)} ${ae(V)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:K},"&-header":{display:"flex",padding:`0 ${ae(s)}`,color:v,borderBottom:`${ae(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:ae(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:ae(C),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(O).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ae(O)} 0`,color:E,cursor:"pointer","&-in-view":{color:P}},Xne(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(R).mul(4).equal()},[r]:{padding:`0 ${ae(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${ae(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ae(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ae(s)} ${ae(V)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:T,borderEndStartRadius:T},"&:last-child:before":{borderStartEndRadius:T,borderEndEndRadius:T}},"&:hover td":{"&:before":{background:N}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${n}`]:{"&:before":{background:g},[`&${t}-cell-week`]:{color:new Jt(k).setAlpha(.5).toHexString()},[r]:{color:k}}},"&-range-hover td:before":{background:z}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ae(s)} ${ae(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ae(f)} ${m} ${p}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${D}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:A,margin:`${ae(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(B).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${ae(f)} ${m} ${p}`},"&-active":{background:new Jt(z).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:H,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(H).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(B).div(2).equal(),color:P,lineHeight:ae(B),borderRadius:T,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},jte=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ae(r)} ${u} ${d}`,"&-extra":{padding:`0 ${ae(o)}`,lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ae(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ae(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Dte=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},Fte=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Jt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Jt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:n-a*2,multipleItemHeightSM:r-a*2,multipleItemHeightLG:o-a*2,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},kte=e=>Object.assign(Object.assign(Object.assign(Object.assign({},a0(e)),Fte(e)),Kh(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Lte=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},K2(e)),G2(e)),U2(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Jy=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${ae(a)} ${ae(r)} ${ae(i)}`}},Ate=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Bte=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:h,controlHeightSM:g,paddingInlineSM:v,paddingXS:p,marginXS:y,colorTextDescription:b,lineWidthBold:C,colorPrimary:S,motionDurationSlow:$,zIndexPopup:x,paddingXXS:w,sizePopupArrow:O,colorBgElevated:E,borderRadiusLG:P,boxShadowSecondary:M,borderRadiusSM:D,colorSplit:R,cellHoverBg:_,presetsWidth:T,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:j,fontHeightLG:A,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Wt(e)),Jy(e,r,j,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},q2(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},Jy(e,m,A,o)),{[`${t}-input > input`]:{fontSize:h,lineHeight:B}}),"&-small":Object.assign({},Jy(e,g,j,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(p).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:d,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ae(p)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Wt(e)),Nte(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:A,margin:`${ae(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(B).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${ae(f)} ${m} ${p}`},"&-active":{background:new Jt(z).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:H,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(H).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(B).div(2).equal(),color:P,lineHeight:ae(B),borderRadius:T,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},Zne=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ae(r)} ${u} ${d}`,"&-extra":{padding:`0 ${ae(o)}`,lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ae(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ae(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Jne=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},ere=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Jt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Jt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:n-a*2,multipleItemHeightSM:r-a*2,multipleItemHeightLG:o-a*2,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},tre=e=>Object.assign(Object.assign(Object.assign(Object.assign({},u0(e)),ere(e)),Xh(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),nre=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},G2(e)),Y2(e)),q2(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},nb=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${ae(a)} ${ae(r)} ${ae(i)}`}},rre=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},ore=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:h,controlHeightSM:g,paddingInlineSM:v,paddingXS:p,marginXS:y,colorTextDescription:b,lineWidthBold:C,colorPrimary:S,motionDurationSlow:$,zIndexPopup:x,paddingXXS:w,sizePopupArrow:O,colorBgElevated:E,borderRadiusLG:P,boxShadowSecondary:M,borderRadiusSM:D,colorSplit:R,cellHoverBg:_,presetsWidth:T,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:j,fontHeightLG:A,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Wt(e)),nb(e,r,j,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},X2(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},nb(e,m,A,o)),{[`${t}-input > input`]:{fontSize:h,lineHeight:B}}),"&-small":Object.assign({},nb(e,g,j,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(p).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:d,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ae(p)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Wt(e)),Qne(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fh},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zh},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:jh},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:kh},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Dh},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${$} ease-out`},OT(e,E,N)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:P,boxShadow:M,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:p,borderInlineEnd:`${ae(a)} ${i} ${R}`,li:Object.assign(Object.assign({},mi),{borderRadius:D,paddingInline:p,paddingBlock:e.calc(g).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:y},"&:hover":{background:_}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ae(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},La(e,"slide-up"),La(e,"slide-down"),qc(e,"move-up"),qc(e,"move-down")]},e7=Ht("DatePicker",e=>{const t=_t(o0(e),Dte(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[jte(t),Bte(t),Lte(t),Ate(t),_te(t),yu(e,{focusElCls:`${e.componentCls}-focused`})]},kte),zte=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Z({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=Z({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),s=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:Z(t,i,l,n),style:Object.assign(Object.assign({},s),r)})},l0=zte,Hte=new kt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),s0=e=>({height:e,lineHeight:ae(e)}),Oc=e=>Object.assign({width:e},s0(e)),Vte=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Hte,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),eb=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},s0(e)),Wte=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Oc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Oc(o)),[`${t}${t}-sm`]:Object.assign({},Oc(a))}},Kte=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},eb(t,l)),[`${r}-lg`]:Object.assign({},eb(o,l)),[`${r}-sm`]:Object.assign({},eb(a,l))}},i3=e=>Object.assign({width:e},s0(e)),Ute=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},i3(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},i3(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},tb=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},nb=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},s0(e)),Gte=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},nb(r,l))},tb(e,r,n)),{[`${n}-lg`]:Object.assign({},nb(o,l))}),tb(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},nb(a,l))}),tb(e,a,`${n}-sm`))},qte=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:h,borderRadius:g,titleHeight:v,blockRadius:p,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Oc(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Oc(u)),[`${n}-sm`]:Object.assign({},Oc(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:f,borderRadius:p,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Gte(e)),Wte(e)),Kte(e)),Ute(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ah},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Hh},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Bh},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${$} ease-out`},UT(e,E,N)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:P,boxShadow:M,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:p,borderInlineEnd:`${ae(a)} ${i} ${R}`,li:Object.assign(Object.assign({},mi),{borderRadius:D,paddingInline:p,paddingBlock:e.calc(g).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:y},"&:hover":{background:_}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ae(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},La(e,"slide-up"),La(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down")]},b7=Ht("DatePicker",e=>{const t=_t(c0(e),Jne(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Zne(t),ore(t),nre(t),rre(t),Yne(t),bu(e,{focusElCls:`${e.componentCls}-focused`})]},tre),are=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Z({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=Z({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),s=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:Z(t,i,l,n),style:Object.assign(Object.assign({},s),r)})},f0=are,ire=new kt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),m0=e=>({height:e,lineHeight:ae(e)}),Oc=e=>Object.assign({width:e},m0(e)),lre=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ire,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),rb=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},m0(e)),sre=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Oc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Oc(o)),[`${t}${t}-sm`]:Object.assign({},Oc(a))}},cre=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},rb(t,l)),[`${r}-lg`]:Object.assign({},rb(o,l)),[`${r}-sm`]:Object.assign({},rb(a,l))}},E3=e=>Object.assign({width:e},m0(e)),ure=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},E3(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},E3(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ob=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ab=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},m0(e)),dre=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},ab(r,l))},ob(e,r,n)),{[`${n}-lg`]:Object.assign({},ab(o,l))}),ob(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ab(a,l))}),ob(e,a,`${n}-sm`))},fre=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:h,borderRadius:g,titleHeight:v,blockRadius:p,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Oc(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Oc(u)),[`${n}-sm`]:Object.assign({},Oc(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:f,borderRadius:p,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},dre(e)),sre(e)),cre(e)),ure(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${a}, ${i}, ${l} - `]:Object.assign({},Vte(e))}}},Yte=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Pu=Ht("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=_t(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[qte(r)]},Yte,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Xte=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Pu(s),m=gn(e,["prefixCls","className"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(l0,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},m))))},Qte=Xte,Zte=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Pu(s),m=gn(e,["prefixCls"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(l0,Object.assign({prefixCls:`${s}-button`,size:i},m))))},Jte=Zte,ene="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",tne=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=c.useContext(at),l=i("skeleton",t),[s,u,d]=Pu(l),f=Z(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return s(c.createElement("div",{className:f},c.createElement("div",{className:Z(`${l}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},c.createElement("path",{d:ene,className:`${l}-image-path`})))))},nne=tne,rne=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Pu(s),m=gn(e,["prefixCls"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(l0,Object.assign({prefixCls:`${s}-input`,size:i},m))))},one=rne;var ane={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"};const ine=ane;var lne=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ine}))},sne=c.forwardRef(lne);const cne=sne,une=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Pu(s),m=Z(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),h=i??c.createElement(cne,null);return u(c.createElement("div",{className:m},c.createElement("div",{className:Z(`${s}-image`,n),style:o},h)))},dne=une,fne=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},mne=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=Te(Array(o)).map((i,l)=>c.createElement("li",{key:l,style:{width:fne(l,e)}}));return c.createElement("ul",{className:Z(t,n),style:r},a)},vne=mne,gne=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return c.createElement("h3",{className:Z(t,n),style:Object.assign({width:r},o)})},pne=gne;function rb(e){return e&&typeof e=="object"?e:{}}function hne(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function yne(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function bne(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ou=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:h,skeleton:g}=c.useContext(at),v=m("skeleton",t),[p,y,b]=Pu(v);if(n||!("loading"in e)){const C=!!l,S=!!s,$=!!u;let x;if(C){const E=Object.assign(Object.assign({prefixCls:`${v}-avatar`},hne(S,$)),rb(l));x=c.createElement("div",{className:`${v}-header`},c.createElement(l0,Object.assign({},E)))}let w;if(S||$){let E;if(S){const M=Object.assign(Object.assign({prefixCls:`${v}-title`},yne(C,$)),rb(s));E=c.createElement(pne,Object.assign({},M))}let P;if($){const M=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},bne(C,S)),rb(u));P=c.createElement(vne,Object.assign({},M))}w=c.createElement("div",{className:`${v}-content`},E,P)}const O=Z(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:d,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},g==null?void 0:g.className,r,o,y,b);return p(c.createElement("div",{className:O,style:Object.assign(Object.assign({},g==null?void 0:g.style),a)},x,w))}return i??null};Ou.Button=Jte;Ou.Avatar=Qte;Ou.Input=one;Ou.Image=nne;Ou.Node=dne;const Cne=Ou;var Sne={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"};const xne=Sne;var wne=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:xne}))},$ne=c.forwardRef(wne);const Ene=$ne,c0=c.createContext(null);var Pne=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,u=s===void 0?"center":s,d=c.useState(),f=X(d,2),m=f[0],h=f[1],g=c.useRef(),v=W.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function p(){At.cancel(g.current)}return c.useEffect(function(){var y={};if(n)if(r){y.width=v(n.width);var b=o?"right":"left";u==="start"&&(y[b]=n[b]),u==="center"&&(y[b]=n[b]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=v(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return p(),g.current=At(function(){h(y)}),p},[n,r,o,u,v]),{style:m}},l3={width:0,height:0,left:0,top:0};function One(e,t,n){return c.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||l3,i=a.left+a.width,l=0;l_?(D=P,x.current="x"):(D=M,x.current="y"),t(-D,-D)&&E.preventDefault()}var O=c.useRef(null);O.current={onTouchStart:C,onTouchMove:S,onTouchEnd:$,onWheel:w},c.useEffect(function(){function E(R){O.current.onTouchStart(R)}function P(R){O.current.onTouchMove(R)}function M(R){O.current.onTouchEnd(R)}function D(R){O.current.onWheel(R)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",D),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",M)}},[])}function t7(e){var t=c.useState(0),n=X(t,2),r=n[0],o=n[1],a=c.useRef(0),i=c.useRef();return i.current=e,Ql(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function Rne(e){var t=c.useRef([]),n=c.useState({}),r=X(n,2),o=r[1],a=c.useRef(typeof e=="function"?e():e),i=t7(function(){var s=a.current;t.current.forEach(function(u){s=u(s)}),t.current=[],a.current=s,o({})});function l(s){t.current.push(s),i()}return[a.current,l]}var d3={width:0,height:0,left:0,top:0,right:0};function _ne(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(s)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),c.useMemo(function(){if(!l.length)return[0,0];for(var h=l.length,g=h,v=0;vm+t){g=v-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var C=e.get(l[b].key)||d3;if(C[f]=g?[0,0]:[y,g]},[e,t,r,o,a,m,s,l.map(function(h){return h.key}).join("_"),u])}function f3(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Tne="TABS_DQ";function n7(e){return String(e).replace(/"/g,Tne)}function r7(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var o7=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),m3=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return et(o)==="object"&&!c.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),Nne=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,u=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,y=e.getPopupContainer,b=e.popupClassName,C=c.useState(!1),S=X(C,2),$=S[0],x=S[1],w=c.useState(null),O=X(w,2),E=O[0],P=O[1],M="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),R=E!==null?"".concat(M,"-").concat(E):null,_=a==null?void 0:a.dropdownAriaLabel;function T(H,V){H.preventDefault(),H.stopPropagation(),m.onEdit("remove",{key:V,event:H})}var k=c.createElement(wu,{onClick:function(V){var U=V.key,K=V.domEvent;p(U,K),x(!1)},prefixCls:"".concat(D,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(H){var V=H.closable,U=H.disabled,K=H.closeIcon,Y=H.key,G=H.label,q=r7(V,K,m,U);return c.createElement(vm,{key:Y,id:"".concat(M,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:U},c.createElement("span",null,G),q&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(Q){Q.stopPropagation(),T(Q,Y)}},K||m.removeIcon||"×"))}));function N(H){for(var V=o.filter(function(q){return!q.disabled}),U=V.findIndex(function(q){return q.key===E})||0,K=V.length,Y=0;YQe?"left":"right"})}),R=X(D,2),_=R[0],T=R[1],k=s3(0,function(st,Qe){!M&&v&&v({direction:st>Qe?"top":"bottom"})}),N=X(k,2),j=N[0],A=N[1],B=c.useState([0,0]),z=X(B,2),H=z[0],V=z[1],U=c.useState([0,0]),K=X(U,2),Y=K[0],G=K[1],q=c.useState([0,0]),J=X(q,2),Q=J[0],ne=J[1],re=c.useState([0,0]),oe=X(re,2),te=oe[0],ee=oe[1],ie=Rne(new Map),de=X(ie,2),he=de[0],fe=de[1],le=One(C,he,Y[0]),me=_v(H,M),ye=_v(Y,M),ge=_v(Q,M),ve=_v(te,M),$e=meEe?Ee:st}var Fe=c.useRef(null),qe=c.useState(),Ze=X(qe,2),ke=Ze[0],Be=Ze[1];function Ue(){Be(Date.now())}function Je(){Fe.current&&clearTimeout(Fe.current)}Mne(w,function(st,Qe){function Ae(Pe,je){Pe(function(Ve){var tt=_e(Ve+je);return tt})}return $e?(M?Ae(T,st):Ae(A,Qe),Je(),Ue(),!0):!1}),c.useEffect(function(){return Je(),ke&&(Fe.current=setTimeout(function(){Be(0)},100)),Je},[ke]);var nt=_ne(le,Ce,M?_:j,ye,ge,ve,I(I({},e),{},{tabs:C})),mt=X(nt,2),gt=mt[0],yt=mt[1],It=qt(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Qe=le.get(st)||{width:0,height:0,left:0,right:0,top:0};if(M){var Ae=_;l?Qe.right<_?Ae=Qe.right:Qe.right+Qe.width>_+Ce&&(Ae=Qe.right+Qe.width-Ce):Qe.left<-_?Ae=-Qe.left:Qe.left+Qe.width>-_+Ce&&(Ae=-(Qe.left+Qe.width-Ce)),A(0),T(_e(Ae))}else{var Pe=j;Qe.top<-j?Pe=-Qe.top:Qe.top+Qe.height>-j+Ce&&(Pe=-(Qe.top+Qe.height-Ce)),T(0),A(_e(Pe))}}),ue={};f==="top"||f==="bottom"?ue[l?"marginRight":"marginLeft"]=m:ue.marginTop=m;var se=C.map(function(st,Qe){var Ae=st.key;return c.createElement(Dne,{id:o,prefixCls:b,key:Ae,tab:st,style:Qe===0?void 0:ue,closable:st.closable,editable:u,active:Ae===i,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(je){g(Ae,je)},onFocus:function(){It(Ae),Ue(),w.current&&(l||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),pe=function(){return fe(function(){var Qe,Ae=new Map,Pe=(Qe=O.current)===null||Qe===void 0?void 0:Qe.getBoundingClientRect();return C.forEach(function(je){var Ve,tt=je.key,pt=(Ve=O.current)===null||Ve===void 0?void 0:Ve.querySelector('[data-node-key="'.concat(n7(tt),'"]'));if(pt){var ut=Fne(pt,Pe),ct=X(ut,4),lt=ct[0],ht=ct[1],ft=ct[2],Lt=ct[3];Ae.set(tt,{width:lt,height:ht,left:ft,top:Lt})}}),Ae})};c.useEffect(function(){pe()},[C.map(function(st){return st.key}).join("_")]);var Se=t7(function(){var st=zs(S),Qe=zs($),Ae=zs(x);V([st[0]-Qe[0]-Ae[0],st[1]-Qe[1]-Ae[1]]);var Pe=zs(P);ne(Pe);var je=zs(E);ee(je);var Ve=zs(O);G([Ve[0]-Pe[0],Ve[1]-Pe[1]]),pe()}),xe=C.slice(0,gt),Ne=C.slice(yt+1),We=[].concat(Te(xe),Te(Ne)),He=le.get(i),Me=Pne({activeTabOffset:He,horizontal:M,indicator:p,rtl:l}),Le=Me.style;c.useEffect(function(){It()},[i,Re,Ee,f3(He),f3(le),M]),c.useEffect(function(){Se()},[l]);var Xe=!!We.length,Ke="".concat(b,"-nav-wrap"),it,ot,Mt,Ct;return M?l?(ot=_>0,it=_!==Ee):(it=_<0,ot=_!==Re):(Mt=j<0,Ct=j!==Re),c.createElement(Sr,{onResize:Se},c.createElement("div",{ref:za(t,S),role:"tablist",className:Z("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ue()}},c.createElement(m3,{ref:$,position:"left",extra:s,prefixCls:b}),c.createElement(Sr,{onResize:Se},c.createElement("div",{className:Z(Ke,L(L(L(L({},"".concat(Ke,"-ping-left"),it),"".concat(Ke,"-ping-right"),ot),"".concat(Ke,"-ping-top"),Mt),"".concat(Ke,"-ping-bottom"),Ct)),ref:w},c.createElement(Sr,{onResize:Se},c.createElement("div",{ref:O,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(j,"px)"),transition:ke?"none":void 0}},se,c.createElement(o7,{ref:P,prefixCls:b,locale:d,editable:u,style:I(I({},se.length===0?void 0:ue),{},{visibility:Xe?"hidden":null})}),c.createElement("div",{className:Z("".concat(b,"-ink-bar"),L({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:Le}))))),c.createElement(jne,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:b,tabs:We,className:!Xe&&Oe,tabMoving:!!ke})),c.createElement(m3,{ref:x,position:"right",extra:s,prefixCls:b})))}),a7=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return c.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:Z(n,i&&"".concat(n,"-active"),r),ref:t},s)}),kne=["renderTabBar"],Lne=["label","key"],Ane=function(t){var n=t.renderTabBar,r=ze(t,kne),o=c.useContext(c0),a=o.tabs;if(n){var i=I(I({},r),{},{panes:a.map(function(l){var s=l.label,u=l.key,d=ze(l,Lne);return c.createElement(a7,be({tab:s,key:u,tabKey:u},d))})});return n(i,v3)}return c.createElement(v3,r)},Bne=["key","forceRender","style","className","destroyInactiveTabPane"],zne=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=c.useContext(c0),s=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return c.createElement("div",{className:Z("".concat(s,"-content-holder"))},c.createElement("div",{className:Z("".concat(s,"-content"),"".concat(s,"-content-").concat(a),L({},"".concat(s,"-content-animated"),d))},u.map(function(m){var h=m.key,g=m.forceRender,v=m.style,p=m.className,y=m.destroyInactiveTabPane,b=ze(m,Bne),C=h===r;return c.createElement(wr,be({key:h,visible:C,forceRender:g,removeOnLeave:!!(i||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,$){var x=S.style,w=S.className;return c.createElement(a7,be({},b,{prefixCls:f,id:n,tabKey:h,animated:d,active:C,style:I(I({},v),x),className:Z(p,w),ref:$}))})})))};function Hne(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=I({inkBar:!0},et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Vne=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],g3=0,Wne=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,g=e.tabBarGutter,v=e.tabBarStyle,p=e.tabBarExtraContent,y=e.locale,b=e.moreIcon,C=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,P=e.popupClassName,M=e.indicator,D=ze(e,Vne),R=c.useMemo(function(){return(i||[]).filter(function(ee){return ee&&et(ee)==="object"&&"key"in ee})},[i]),_=l==="rtl",T=Hne(f),k=c.useState(!1),N=X(k,2),j=N[0],A=N[1];c.useEffect(function(){A(Ah())},[]);var B=Pt(function(){var ee;return(ee=R[0])===null||ee===void 0?void 0:ee.key},{value:s,defaultValue:u}),z=X(B,2),H=z[0],V=z[1],U=c.useState(function(){return R.findIndex(function(ee){return ee.key===H})}),K=X(U,2),Y=K[0],G=K[1];c.useEffect(function(){var ee=R.findIndex(function(de){return de.key===H});if(ee===-1){var ie;ee=Math.max(0,Math.min(Y,R.length-1)),V((ie=R[ee])===null||ie===void 0?void 0:ie.key)}G(ee)},[R.map(function(ee){return ee.key}).join("_"),H,Y]);var q=Pt(null,{value:n}),J=X(q,2),Q=J[0],ne=J[1];c.useEffect(function(){n||(ne("rc-tabs-".concat(g3)),g3+=1)},[]);function re(ee,ie){w==null||w(ee,ie);var de=ee!==H;V(ee),de&&(x==null||x(ee))}var oe={id:Q,activeKey:H,animated:T,tabPosition:h,rtl:_,mobile:j},te=I(I({},oe),{},{editable:d,locale:y,moreIcon:b,moreTransitionName:C,tabBarGutter:g,onTabClick:re,onTabScroll:O,extra:p,style:v,panes:null,getPopupContainer:E,popupClassName:P,indicator:M});return c.createElement(c0.Provider,{value:{tabs:R,prefixCls:o}},c.createElement("div",be({ref:t,id:n,className:Z(o,"".concat(o,"-").concat(h),L(L(L({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),_),a)},D),c.createElement(Ane,be({},te,{renderTabBar:$})),c.createElement(zne,be({destroyInactiveTabPane:S},oe,{animated:T}))))});const Kne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Une(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Kne),{motionName:$r(e,"switch")})),n}var Gne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function Yne(e,t){if(e)return e;const n=sr(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=Gne(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return qne(n)}const Xne=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[La(e,"slide-up"),La(e,"slide-down")]]},Qne=Xne,Zne=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Jne=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Wt(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:`${ae(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},mi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.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"}}})}})}},ere=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=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:`${ae(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + `]:Object.assign({},lre(e))}}},mre=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ou=Ht("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=_t(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[fre(r)]},mre,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),vre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Ou(s),m=gn(e,["prefixCls","className"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(f0,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},m))))},gre=vre,pre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Ou(s),m=gn(e,["prefixCls"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(f0,Object.assign({prefixCls:`${s}-button`,size:i},m))))},hre=pre,yre="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",bre=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=c.useContext(at),l=i("skeleton",t),[s,u,d]=Ou(l),f=Z(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return s(c.createElement("div",{className:f},c.createElement("div",{className:Z(`${l}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},c.createElement("path",{d:yre,className:`${l}-image-path`})))))},Cre=bre,Sre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Ou(s),m=gn(e,["prefixCls"]),h=Z(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(f0,Object.assign({prefixCls:`${s}-input`,size:i},m))))},xre=Sre;var wre={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"};const $re=wre;var Ere=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:$re}))},Pre=c.forwardRef(Ere);const Ore=Pre,Ire=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=c.useContext(at),s=l("skeleton",t),[u,d,f]=Ou(s),m=Z(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),h=i??c.createElement(Ore,null);return u(c.createElement("div",{className:m},c.createElement("div",{className:Z(`${s}-image`,n),style:o},h)))},Mre=Ire,Rre=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},_re=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=Te(Array(o)).map((i,l)=>c.createElement("li",{key:l,style:{width:Rre(l,e)}}));return c.createElement("ul",{className:Z(t,n),style:r},a)},Tre=_re,Nre=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return c.createElement("h3",{className:Z(t,n),style:Object.assign({width:r},o)})},jre=Nre;function ib(e){return e&&typeof e=="object"?e:{}}function Dre(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Fre(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function kre(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Iu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:h,skeleton:g}=c.useContext(at),v=m("skeleton",t),[p,y,b]=Ou(v);if(n||!("loading"in e)){const C=!!l,S=!!s,$=!!u;let x;if(C){const E=Object.assign(Object.assign({prefixCls:`${v}-avatar`},Dre(S,$)),ib(l));x=c.createElement("div",{className:`${v}-header`},c.createElement(f0,Object.assign({},E)))}let w;if(S||$){let E;if(S){const M=Object.assign(Object.assign({prefixCls:`${v}-title`},Fre(C,$)),ib(s));E=c.createElement(jre,Object.assign({},M))}let P;if($){const M=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},kre(C,S)),ib(u));P=c.createElement(Tre,Object.assign({},M))}w=c.createElement("div",{className:`${v}-content`},E,P)}const O=Z(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:d,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},g==null?void 0:g.className,r,o,y,b);return p(c.createElement("div",{className:O,style:Object.assign(Object.assign({},g==null?void 0:g.style),a)},x,w))}return i??null};Iu.Button=hre;Iu.Avatar=gre;Iu.Input=xre;Iu.Image=Cre;Iu.Node=Mre;const Lre=Iu;var Are={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"};const Bre=Are;var zre=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Bre}))},Hre=c.forwardRef(zre);const Vre=Hre,v0=c.createContext(null);var Wre=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,u=s===void 0?"center":s,d=c.useState(),f=X(d,2),m=f[0],h=f[1],g=c.useRef(),v=W.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function p(){At.cancel(g.current)}return c.useEffect(function(){var y={};if(n)if(r){y.width=v(n.width);var b=o?"right":"left";u==="start"&&(y[b]=n[b]),u==="center"&&(y[b]=n[b]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=v(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return p(),g.current=At(function(){h(y)}),p},[n,r,o,u,v]),{style:m}},P3={width:0,height:0,left:0,top:0};function Kre(e,t,n){return c.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||P3,i=a.left+a.width,l=0;l_?(D=P,x.current="x"):(D=M,x.current="y"),t(-D,-D)&&E.preventDefault()}var O=c.useRef(null);O.current={onTouchStart:C,onTouchMove:S,onTouchEnd:$,onWheel:w},c.useEffect(function(){function E(R){O.current.onTouchStart(R)}function P(R){O.current.onTouchMove(R)}function M(R){O.current.onTouchEnd(R)}function D(R){O.current.onWheel(R)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",D),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",M)}},[])}function C7(e){var t=c.useState(0),n=X(t,2),r=n[0],o=n[1],a=c.useRef(0),i=c.useRef();return i.current=e,Ql(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function qre(e){var t=c.useRef([]),n=c.useState({}),r=X(n,2),o=r[1],a=c.useRef(typeof e=="function"?e():e),i=C7(function(){var s=a.current;t.current.forEach(function(u){s=u(s)}),t.current=[],a.current=s,o({})});function l(s){t.current.push(s),i()}return[a.current,l]}var R3={width:0,height:0,left:0,top:0,right:0};function Yre(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(s)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),c.useMemo(function(){if(!l.length)return[0,0];for(var h=l.length,g=h,v=0;vm+t){g=v-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var C=e.get(l[b].key)||R3;if(C[f]=g?[0,0]:[y,g]},[e,t,r,o,a,m,s,l.map(function(h){return h.key}).join("_"),u])}function _3(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Xre="TABS_DQ";function S7(e){return String(e).replace(/"/g,Xre)}function x7(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var w7=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),T3=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return et(o)==="object"&&!c.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),Qre=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,u=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,y=e.getPopupContainer,b=e.popupClassName,C=c.useState(!1),S=X(C,2),$=S[0],x=S[1],w=c.useState(null),O=X(w,2),E=O[0],P=O[1],M="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),R=E!==null?"".concat(M,"-").concat(E):null,_=a==null?void 0:a.dropdownAriaLabel;function T(H,V){H.preventDefault(),H.stopPropagation(),m.onEdit("remove",{key:V,event:H})}var k=c.createElement($u,{onClick:function(V){var U=V.key,K=V.domEvent;p(U,K),x(!1)},prefixCls:"".concat(D,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(H){var V=H.closable,U=H.disabled,K=H.closeIcon,Y=H.key,G=H.label,q=x7(V,K,m,U);return c.createElement(pm,{key:Y,id:"".concat(M,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:U},c.createElement("span",null,G),q&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(Q){Q.stopPropagation(),T(Q,Y)}},K||m.removeIcon||"×"))}));function N(H){for(var V=o.filter(function(q){return!q.disabled}),U=V.findIndex(function(q){return q.key===E})||0,K=V.length,Y=0;YQe?"left":"right"})}),R=X(D,2),_=R[0],T=R[1],k=O3(0,function(st,Qe){!M&&v&&v({direction:st>Qe?"top":"bottom"})}),N=X(k,2),j=N[0],A=N[1],B=c.useState([0,0]),z=X(B,2),H=z[0],V=z[1],U=c.useState([0,0]),K=X(U,2),Y=K[0],G=K[1],q=c.useState([0,0]),J=X(q,2),Q=J[0],ne=J[1],re=c.useState([0,0]),oe=X(re,2),te=oe[0],ee=oe[1],ie=qre(new Map),de=X(ie,2),he=de[0],fe=de[1],le=Kre(C,he,Y[0]),me=_v(H,M),ye=_v(Y,M),ge=_v(Q,M),ve=_v(te,M),$e=meEe?Ee:st}var Fe=c.useRef(null),qe=c.useState(),Ze=X(qe,2),ke=Ze[0],Be=Ze[1];function Ue(){Be(Date.now())}function Je(){Fe.current&&clearTimeout(Fe.current)}Gre(w,function(st,Qe){function Ae(Pe,je){Pe(function(Ve){var tt=_e(Ve+je);return tt})}return $e?(M?Ae(T,st):Ae(A,Qe),Je(),Ue(),!0):!1}),c.useEffect(function(){return Je(),ke&&(Fe.current=setTimeout(function(){Be(0)},100)),Je},[ke]);var nt=Yre(le,Ce,M?_:j,ye,ge,ve,I(I({},e),{},{tabs:C})),mt=X(nt,2),gt=mt[0],yt=mt[1],It=qt(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Qe=le.get(st)||{width:0,height:0,left:0,right:0,top:0};if(M){var Ae=_;l?Qe.right<_?Ae=Qe.right:Qe.right+Qe.width>_+Ce&&(Ae=Qe.right+Qe.width-Ce):Qe.left<-_?Ae=-Qe.left:Qe.left+Qe.width>-_+Ce&&(Ae=-(Qe.left+Qe.width-Ce)),A(0),T(_e(Ae))}else{var Pe=j;Qe.top<-j?Pe=-Qe.top:Qe.top+Qe.height>-j+Ce&&(Pe=-(Qe.top+Qe.height-Ce)),T(0),A(_e(Pe))}}),ue={};f==="top"||f==="bottom"?ue[l?"marginRight":"marginLeft"]=m:ue.marginTop=m;var se=C.map(function(st,Qe){var Ae=st.key;return c.createElement(Jre,{id:o,prefixCls:b,key:Ae,tab:st,style:Qe===0?void 0:ue,closable:st.closable,editable:u,active:Ae===i,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(je){g(Ae,je)},onFocus:function(){It(Ae),Ue(),w.current&&(l||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),pe=function(){return fe(function(){var Qe,Ae=new Map,Pe=(Qe=O.current)===null||Qe===void 0?void 0:Qe.getBoundingClientRect();return C.forEach(function(je){var Ve,tt=je.key,pt=(Ve=O.current)===null||Ve===void 0?void 0:Ve.querySelector('[data-node-key="'.concat(S7(tt),'"]'));if(pt){var ut=eoe(pt,Pe),ct=X(ut,4),lt=ct[0],ht=ct[1],ft=ct[2],Lt=ct[3];Ae.set(tt,{width:lt,height:ht,left:ft,top:Lt})}}),Ae})};c.useEffect(function(){pe()},[C.map(function(st){return st.key}).join("_")]);var Se=C7(function(){var st=zs(S),Qe=zs($),Ae=zs(x);V([st[0]-Qe[0]-Ae[0],st[1]-Qe[1]-Ae[1]]);var Pe=zs(P);ne(Pe);var je=zs(E);ee(je);var Ve=zs(O);G([Ve[0]-Pe[0],Ve[1]-Pe[1]]),pe()}),xe=C.slice(0,gt),Ne=C.slice(yt+1),We=[].concat(Te(xe),Te(Ne)),He=le.get(i),Me=Wre({activeTabOffset:He,horizontal:M,indicator:p,rtl:l}),Le=Me.style;c.useEffect(function(){It()},[i,Re,Ee,_3(He),_3(le),M]),c.useEffect(function(){Se()},[l]);var Xe=!!We.length,Ke="".concat(b,"-nav-wrap"),it,ot,Mt,Ct;return M?l?(ot=_>0,it=_!==Ee):(it=_<0,ot=_!==Re):(Mt=j<0,Ct=j!==Re),c.createElement(Sr,{onResize:Se},c.createElement("div",{ref:za(t,S),role:"tablist",className:Z("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ue()}},c.createElement(T3,{ref:$,position:"left",extra:s,prefixCls:b}),c.createElement(Sr,{onResize:Se},c.createElement("div",{className:Z(Ke,L(L(L(L({},"".concat(Ke,"-ping-left"),it),"".concat(Ke,"-ping-right"),ot),"".concat(Ke,"-ping-top"),Mt),"".concat(Ke,"-ping-bottom"),Ct)),ref:w},c.createElement(Sr,{onResize:Se},c.createElement("div",{ref:O,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(j,"px)"),transition:ke?"none":void 0}},se,c.createElement(w7,{ref:P,prefixCls:b,locale:d,editable:u,style:I(I({},se.length===0?void 0:ue),{},{visibility:Xe?"hidden":null})}),c.createElement("div",{className:Z("".concat(b,"-ink-bar"),L({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:Le}))))),c.createElement(Zre,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:b,tabs:We,className:!Xe&&Oe,tabMoving:!!ke})),c.createElement(T3,{ref:x,position:"right",extra:s,prefixCls:b})))}),$7=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return c.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:Z(n,i&&"".concat(n,"-active"),r),ref:t},s)}),toe=["renderTabBar"],noe=["label","key"],roe=function(t){var n=t.renderTabBar,r=ze(t,toe),o=c.useContext(v0),a=o.tabs;if(n){var i=I(I({},r),{},{panes:a.map(function(l){var s=l.label,u=l.key,d=ze(l,noe);return c.createElement($7,be({tab:s,key:u,tabKey:u},d))})});return n(i,N3)}return c.createElement(N3,r)},ooe=["key","forceRender","style","className","destroyInactiveTabPane"],aoe=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=c.useContext(v0),s=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return c.createElement("div",{className:Z("".concat(s,"-content-holder"))},c.createElement("div",{className:Z("".concat(s,"-content"),"".concat(s,"-content-").concat(a),L({},"".concat(s,"-content-animated"),d))},u.map(function(m){var h=m.key,g=m.forceRender,v=m.style,p=m.className,y=m.destroyInactiveTabPane,b=ze(m,ooe),C=h===r;return c.createElement(wr,be({key:h,visible:C,forceRender:g,removeOnLeave:!!(i||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,$){var x=S.style,w=S.className;return c.createElement($7,be({},b,{prefixCls:f,id:n,tabKey:h,animated:d,active:C,style:I(I({},v),x),className:Z(p,w),ref:$}))})})))};function ioe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=I({inkBar:!0},et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var loe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],j3=0,soe=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,g=e.tabBarGutter,v=e.tabBarStyle,p=e.tabBarExtraContent,y=e.locale,b=e.moreIcon,C=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,P=e.popupClassName,M=e.indicator,D=ze(e,loe),R=c.useMemo(function(){return(i||[]).filter(function(ee){return ee&&et(ee)==="object"&&"key"in ee})},[i]),_=l==="rtl",T=ioe(f),k=c.useState(!1),N=X(k,2),j=N[0],A=N[1];c.useEffect(function(){A(Wh())},[]);var B=Pt(function(){var ee;return(ee=R[0])===null||ee===void 0?void 0:ee.key},{value:s,defaultValue:u}),z=X(B,2),H=z[0],V=z[1],U=c.useState(function(){return R.findIndex(function(ee){return ee.key===H})}),K=X(U,2),Y=K[0],G=K[1];c.useEffect(function(){var ee=R.findIndex(function(de){return de.key===H});if(ee===-1){var ie;ee=Math.max(0,Math.min(Y,R.length-1)),V((ie=R[ee])===null||ie===void 0?void 0:ie.key)}G(ee)},[R.map(function(ee){return ee.key}).join("_"),H,Y]);var q=Pt(null,{value:n}),J=X(q,2),Q=J[0],ne=J[1];c.useEffect(function(){n||(ne("rc-tabs-".concat(j3)),j3+=1)},[]);function re(ee,ie){w==null||w(ee,ie);var de=ee!==H;V(ee),de&&(x==null||x(ee))}var oe={id:Q,activeKey:H,animated:T,tabPosition:h,rtl:_,mobile:j},te=I(I({},oe),{},{editable:d,locale:y,moreIcon:b,moreTransitionName:C,tabBarGutter:g,onTabClick:re,onTabScroll:O,extra:p,style:v,panes:null,getPopupContainer:E,popupClassName:P,indicator:M});return c.createElement(v0.Provider,{value:{tabs:R,prefixCls:o}},c.createElement("div",be({ref:t,id:n,className:Z(o,"".concat(o,"-").concat(h),L(L(L({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),_),a)},D),c.createElement(roe,be({},te,{renderTabBar:$})),c.createElement(aoe,be({destroyInactiveTabPane:S},oe,{animated:T}))))});const coe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function uoe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},coe),{motionName:$r(e,"switch")})),n}var doe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function moe(e,t){if(e)return e;const n=sr(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=doe(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return foe(n)}const voe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[La(e,"slide-up"),La(e,"slide-down")]]},goe=voe,poe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},hoe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Wt(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:`${ae(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},mi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.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"}}})}})}},yoe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=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:`${ae(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tre=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},nre=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ha(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},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},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},rre=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ore=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${ae(e.paddingXS)}`,background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ha(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),nre(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"}}}}}},are=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},ire=Ht("Tabs",e=>{const t=_t(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[tre(t),rre(t),ere(t),Jne(t),Zne(t),ore(t),Qne(t)]},are),lre=()=>null,sre=lre;var cre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,a,i,l,s;const{type:u,className:d,rootClassName:f,size:m,onEdit:h,hideAdd:g,centered:v,addIcon:p,removeIcon:y,moreIcon:b,popupClassName:C,children:S,items:$,animated:x,style:w,indicatorSize:O,indicator:E}=e,P=cre(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:M}=P,{direction:D,tabs:R,getPrefixCls:_,getPopupContainer:T}=c.useContext(at),k=_("tabs",M),N=pn(k),[j,A,B]=ire(k,N);let z;u==="editable-card"&&(z={onEdit:(q,J)=>{let{key:Q,event:ne}=J;h==null||h(q==="add"?ne:Q,q)},removeIcon:(t=y??(R==null?void 0:R.removeIcon))!==null&&t!==void 0?t:c.createElement(xa,null),addIcon:(p??(R==null?void 0:R.addIcon))||c.createElement(Ene,null),showAdd:g!==!0});const H=_(),V=nr(m),U=Yne($,S),K=Une(k,x),Y=Object.assign(Object.assign({},R==null?void 0:R.style),w),G={align:(n=E==null?void 0:E.align)!==null&&n!==void 0?n:(r=R==null?void 0:R.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=E==null?void 0:E.size)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:(i=R==null?void 0:R.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:R==null?void 0:R.indicatorSize};return j(c.createElement(Wne,Object.assign({direction:D,getPopupContainer:T,moreTransitionName:`${H}-slide-up`},P,{items:U,className:Z({[`${k}-${V}`]:V,[`${k}-card`]:["card","editable-card"].includes(u),[`${k}-editable-card`]:u==="editable-card",[`${k}-centered`]:v},R==null?void 0:R.className,d,f,A,B,N),popupClassName:Z(C,A,B,N),style:Y,editable:z,moreIcon:(s=b??(R==null?void 0:R.moreIcon))!==null&&s!==void 0?s:c.createElement(_2,null),prefixCls:k,animated:K,indicator:G})))};i7.TabPane=sre;const LC=i7;function ure(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,u=s===void 0?void 0:s,d,f=!1,m=0;function h(){d&&clearTimeout(d)}function g(p){var y=p||{},b=y.upcomingOnly,C=b===void 0?!1:b;h(),f=!C}function v(){for(var p=arguments.length,y=new Array(p),b=0;be?l?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return v.cancel=g,v}function dre(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return ure(e,t,{debounceMode:a!==!1})}var Iu=c.createContext(null),Ic="__rc_cascader_search_mark__",fre=function(t,n,r){var o=r.label;return n.some(function(a){return String(a[o]).toLowerCase().includes(t.toLowerCase())})},mre=function(t,n,r,o){return n.map(function(a){return a[o.label]}).join(" / ")};const vre=function(e,t,n,r,o,a){var i=o.filter,l=i===void 0?fre:i,s=o.render,u=s===void 0?mre:s,d=o.limit,f=d===void 0?50:d,m=o.sort;return c.useMemo(function(){var h=[];if(!e)return[];function g(v,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!m&&f!==!1&&f>0&&h.length>=f)){var C=[].concat(Te(p),[b]),S=b[n.children],$=y||b.disabled;if((!S||S.length===0||a)&&l(e,C,{label:n.label})){var x;h.push(I(I({},b),{},(x={disabled:$},L(x,n.label,u(e,C,r,n)),L(x,Ic,C),L(x,n.children,void 0),x)))}S&&g(b[n.children],C,$)}})}return g(t,[]),m&&h.sort(function(v,p){return m(v[Ic],p[Ic],e,n)}),f!==!1&&f>0?h.slice(0,f):h},[e,t,n,r,u,a,l,m,f])};var Q2="__RC_CASCADER_SPLIT__",l7="SHOW_PARENT",s7="SHOW_CHILD";function va(e){return e.join(Q2)}function Xc(e){return e.map(va)}function gre(e){return e.split(Q2)}function c7(e){var t=e||{},n=t.label,r=t.value,o=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:o||"children"}}function Rd(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function pre(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function u7(e,t){return e.map(function(n){var r;return(r=n[Ic])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function hre(e){return Array.isArray(e)&&Array.isArray(e[0])}function pp(e){return e?hre(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function d7(e,t,n){var r=new Set(e),o=t();return e.filter(function(a){var i=o[a],l=i?i.parent:null,s=i?i.children:null;return i&&i.node.disabled?!0:n===s7?!(s&&s.some(function(u){return u.key&&r.has(u.key)})):!(l&&!l.node.disabled&&r.has(l.key))})}function Qc(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,a=[],i=function(){var u,d,f,m=e[l],h=(u=o)===null||u===void 0?void 0:u.findIndex(function(v){var p=v[n.value];return r?String(p)===String(m):p===m}),g=h!==-1?(d=o)===null||d===void 0?void 0:d[h]:null;a.push({value:(f=g==null?void 0:g[n.value])!==null&&f!==void 0?f:m,index:h,option:g}),o=g==null?void 0:g[n.children]},l=0;l1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,h){for(var g=m7(f?f.pos:"0",h),v=ym(m[a],g),p,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,u=a||s,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),xre(e,function(h){var g=h.node,v=h.index,p=h.pos,y=h.key,b=h.parentPos,C=h.level,S=h.nodes,$={node:g,nodes:S,index:v,key:y,pos:p,level:C},x=ym(y,p);d[p]=$,f[x]=$,$.parent=d[b],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(m),m}function Xd(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=ho(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1};return m}function rr(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,h=e.eventKey,g=I(I({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:h});return"props"in g||Object.defineProperty(g,"props",{get:function(){return cn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}const wre=function(e,t){var n=c.useRef({options:null,info:null}),r=c.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Z2(e,{fieldNames:t,initWrapper:function(a){return I(I({},a),{},{pathKeyEntities:{}})},processEntity:function(a,i){var l=a.nodes.map(function(s){return s[t.value]}).join(Q2);i.pathKeyEntities[l]=a,a.key=l}})),n.current.info.pathKeyEntities},[t,e]);return r};function v7(e,t){var n=c.useMemo(function(){return t||[]},[t]),r=wre(n,e),o=c.useCallback(function(a){var i=r();return a.map(function(l){var s=i[l].nodes;return s.map(function(u){return u[e.value]})})},[r,e]);return[n,r,o]}function $re(e){return c.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&et(e)==="object"&&(t=I(I({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function g7(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Ere(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function Pre(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,h=f.node,g=f.children,v=g===void 0?[]:g;o.has(m)&&!r(h)&&v.filter(function(p){return!r(p.node)}).forEach(function(p){o.add(p.key)})})}for(var s=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,h=f.node;if(!(r(h)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(m.key);return}var g=!0,v=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var y=p.key,b=o.has(y);g&&!b&&(g=!1),!v&&(b||a.has(y))&&(v=!0)}),g&&o.add(m.key),v&&a.add(m.key),s.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(g7(a,o))}}function Ore(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(m){var h=m.key,g=m.node,v=m.children,p=v===void 0?[]:v;!a.has(h)&&!i.has(h)&&!o(g)&&p.filter(function(y){return!o(y.node)}).forEach(function(y){a.delete(y.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var h=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(h.key);return}var v=!0,p=!1;(h.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var b=y.key,C=a.has(b);v&&!C&&(v=!1),!p&&(C||i.has(b))&&(p=!0)}),v||a.delete(h.key),p&&i.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g7(i,a))}}function ii(e,t,n,r){var o=[],a;r?a=r:a=Ere;var i=new Set(e.filter(function(d){var f=!!ho(n,d);return f||o.push(d),f})),l=new Map,s=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,h=l.get(m);h||(h=new Set,l.set(m,h)),h.add(f),s=Math.max(s,m)}),cn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=Pre(i,l,s,a):u=Ore(i,t.halfCheckedKeys,l,s,a),u}function p7(e,t,n,r,o,a,i,l){return function(s){if(!e)t(s);else{var u=va(s),d=Xc(n),f=Xc(r),m=d.includes(u),h=o.some(function(x){return va(x)===u}),g=n,v=o;if(h&&!m)v=o.filter(function(x){return va(x)!==u});else{var p=m?d.filter(function(x){return x!==u}):[].concat(Te(d),[u]),y=a(),b;if(m){var C=ii(p,{checked:!1,halfCheckedKeys:f},y);b=C.checkedKeys}else{var S=ii(p,!0,y);b=S.checkedKeys}var $=d7(b,a,l);g=i($)}t([].concat(Te(v),Te(g)))}}}function h7(e,t,n,r,o){return c.useMemo(function(){var a=o(t),i=X(a,2),l=i[0],s=i[1];if(!e||!t.length)return[l,[],s];var u=Xc(l),d=n(),f=ii(u,!0,d),m=f.checkedKeys,h=f.halfCheckedKeys;return[r(m),r(h),s]},[e,t,n,r,o])}var Ire=c.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function Mre(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,a=e.disabled,i=e.onClick,l=e.disableCheckbox,s=c.useContext(Iu),u=s.checkable,d=typeof u!="boolean"?u:null;return c.createElement("span",{className:Z("".concat(n),(t={},L(t,"".concat(n,"-checked"),r),L(t,"".concat(n,"-indeterminate"),!r&&o),L(t,"".concat(n,"-disabled"),a||l),t)),onClick:i},d)}var y7="__cascader_fix_label__";function Rre(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,a=e.prevValuePath,i=e.onToggleOpen,l=e.onSelect,s=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,h=e.searchValue,g="".concat(t,"-menu"),v="".concat(t,"-menu-item"),p=c.useContext(Iu),y=p.fieldNames,b=p.changeOnSelect,C=p.expandTrigger,S=p.expandIcon,$=p.loadingIcon,x=p.dropdownMenuColumnStyle,w=p.optionRender,O=C==="hover",E=c.useMemo(function(){return r.map(function(P){var M,D=P.disabled,R=P.disableCheckbox,_=P[Ic],T=(M=P[y7])!==null&&M!==void 0?M:P[y.label],k=P[y.value],N=Rd(P,y),j=_?_.map(function(V){return V[y.value]}):[].concat(Te(a),[k]),A=va(j),B=f.includes(A),z=u.has(A),H=d.has(A);return{disabled:D,label:T,value:k,isLeaf:N,isLoading:B,checked:z,halfChecked:H,option:P,disableCheckbox:R,fullPath:j,fullPathKey:A}})},[r,u,y,d,f,a]);return c.createElement("ul",{className:g,role:"menu"},E.map(function(P){var M,D=P.disabled,R=P.label,_=P.value,T=P.isLeaf,k=P.isLoading,N=P.checked,j=P.halfChecked,A=P.option,B=P.fullPath,z=P.fullPathKey,H=P.disableCheckbox,V=function(){if(!(D||h)){var G=Te(B);O&&T&&G.pop(),s(G)}},U=function(){m(A)&&l(B,T)},K;return typeof A.title=="string"?K=A.title:typeof R=="string"&&(K=R),c.createElement("li",{key:z,className:Z(v,(M={},L(M,"".concat(v,"-expand"),!T),L(M,"".concat(v,"-active"),o===_||o===z),L(M,"".concat(v,"-disabled"),D),L(M,"".concat(v,"-loading"),k),M)),style:x,role:"menuitemcheckbox",title:K,"aria-checked":N,"data-path-key":z,onClick:function(){V(),!H&&(!n||T)&&U()},onDoubleClick:function(){b&&i(!1)},onMouseEnter:function(){O&&V()},onMouseDown:function(G){G.preventDefault()}},n&&c.createElement(Mre,{prefixCls:"".concat(t,"-checkbox"),checked:N,halfChecked:j,disabled:D||H,disableCheckbox:H,onClick:function(G){H||(G.stopPropagation(),U())}}),c.createElement("div",{className:"".concat(v,"-content")},w?w(A):R),!k&&S&&!T&&c.createElement("div",{className:"".concat(v,"-expand-icon")},S),k&&$&&c.createElement("div",{className:"".concat(v,"-loading-icon")},$))}))}const _re=function(e,t){var n=c.useContext(Iu),r=n.values,o=r[0],a=c.useState([]),i=X(a,2),l=i[0],s=i[1];return c.useEffect(function(){t&&!e&&s(o||[])},[t,o]),[l,s]},Tre=function(e,t,n,r,o,a,i){var l=i.direction,s=i.searchValue,u=i.toggleOpen,d=i.open,f=l==="rtl",m=c.useMemo(function(){for(var x=-1,w=t,O=[],E=[],P=r.length,M=u7(t,n),D=function(N){var j=w.findIndex(function(A,B){return(M[B]?va(M[B]):A[n.value])===r[N]});if(j===-1)return 1;x=j,O.push(x),E.push(r[N]),w=w[x][n.children]},R=0;R1){var w=g.slice(0,-1);b(w)}else u(!1)},$=function(){var w,O=((w=p[v])===null||w===void 0?void 0:w[n.children])||[],E=O.find(function(M){return!M.disabled});if(E){var P=[].concat(Te(g),[E[n.value]]);b(P)}};c.useImperativeHandle(e,function(){return{onKeyDown:function(w){var O=w.which;switch(O){case Ie.UP:case Ie.DOWN:{var E=0;O===Ie.UP?E=-1:O===Ie.DOWN&&(E=1),E!==0&&C(E);break}case Ie.LEFT:{if(s)break;f?$():S();break}case Ie.RIGHT:{if(s)break;f?S():$();break}case Ie.BACKSPACE:{s||S();break}case Ie.ENTER:{if(g.length){var P=p[v],M=(P==null?void 0:P[Ic])||[];M.length?a(M.map(function(D){return D[n.value]}),M[M.length-1]):a(g,p[v])}break}case Ie.ESC:u(!1),d&&w.stopPropagation()}},onKeyUp:function(){}}})};var b7=c.forwardRef(function(e,t){var n,r,o,a=e.prefixCls,i=e.multiple,l=e.searchValue,s=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=c.useRef(),h=d==="rtl",g=c.useContext(Iu),v=g.options,p=g.values,y=g.halfValues,b=g.fieldNames,C=g.changeOnSelect,S=g.onSelect,$=g.searchOptions,x=g.dropdownPrefixCls,w=g.loadData,O=g.expandTrigger,E=x||a,P=c.useState([]),M=X(P,2),D=M[0],R=M[1],_=function(oe){if(!(!w||l)){var te=Qc(oe,v,b),ee=te.map(function(he){var fe=he.option;return fe}),ie=ee[ee.length-1];if(ie&&!Rd(ie,b)){var de=va(oe);R(function(he){return[].concat(Te(he),[de])}),w(ee)}}};c.useEffect(function(){D.length&&D.forEach(function(re){var oe=gre(re),te=Qc(oe,v,b,!0).map(function(ie){var de=ie.option;return de}),ee=te[te.length-1];(!ee||ee[b.children]||Rd(ee,b))&&R(function(ie){return ie.filter(function(de){return de!==re})})})},[v,D,b]);var T=c.useMemo(function(){return new Set(Xc(p))},[p]),k=c.useMemo(function(){return new Set(Xc(y))},[y]),N=_re(i,f),j=X(N,2),A=j[0],B=j[1],z=function(oe){B(oe),_(oe)},H=function(oe){var te=oe.disabled,ee=Rd(oe,b);return!te&&(ee||C||i)},V=function(oe,te){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;S(oe),!i&&(te||C&&(O==="hover"||ee))&&s(!1)},U=c.useMemo(function(){return l?$:v},[l,$,v]),K=c.useMemo(function(){for(var re=[{options:U}],oe=U,te=u7(oe,b),ee=function(){var he=A[ie],fe=oe.find(function(me,ye){return(te[ye]?va(te[ye]):me[b.value])===he}),le=fe==null?void 0:fe[b.children];if(!(le!=null&&le.length))return 1;oe=le,re.push({options:le})},ie=0;ie":y,C=n.loadingIcon,S=n.direction,$=n.notFoundContent,x=$===void 0?"Not Found":$,w=!!s,O=Pt(u,{value:d,postState:pp}),E=X(O,2),P=E[0],M=E[1],D=c.useMemo(function(){return c7(f)},[JSON.stringify(f)]),R=v7(D,l),_=X(R,3),T=_[0],k=_[1],N=_[2],j=f7(T,D),A=h7(w,P,k,N,j),B=X(A,3),z=B[0],H=B[1],V=B[2],U=qt(function(Q){if(M(Q),h){var ne=pp(Q),re=ne.map(function(ee){return Qc(ee,T,D).map(function(ie){return ie.option})}),oe=w?ne:ne[0],te=w?re:re[0];h(oe,te)}}),K=p7(w,U,z,H,V,k,N,g),Y=qt(function(Q){K(Q)}),G=c.useMemo(function(){return{options:T,fieldNames:D,values:z,halfValues:H,changeOnSelect:m,onSelect:Y,checkable:s,searchOptions:[],dropdownPrefixCls:null,loadData:v,expandTrigger:p,expandIcon:b,loadingIcon:C,dropdownMenuColumnStyle:null}},[T,D,z,H,m,Y,s,v,p,b,C]),q="".concat(o,"-panel"),J=!T.length;return c.createElement(Iu.Provider,{value:G},c.createElement("div",{className:Z(q,(t={},L(t,"".concat(q,"-rtl"),S==="rtl"),L(t,"".concat(q,"-empty"),J),t),i),style:a},J?x:c.createElement(b7,{prefixCls:o,searchValue:null,multiple:w,toggleOpen:jre,open:!0,direction:S})))}var Dre=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],bm=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,a=e.fieldNames,i=e.defaultValue,l=e.value,s=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,h=m===void 0?!0:m,g=e.searchValue,v=e.onSearch,p=e.showSearch,y=e.expandTrigger,b=e.options,C=e.dropdownPrefixCls,S=e.loadData,$=e.popupVisible,x=e.open,w=e.popupClassName,O=e.dropdownClassName,E=e.dropdownMenuColumnStyle,P=e.dropdownStyle,M=e.popupPlacement,D=e.placement,R=e.onDropdownVisibleChange,_=e.onPopupVisibleChange,T=e.expandIcon,k=T===void 0?">":T,N=e.loadingIcon,j=e.children,A=e.dropdownMatchSelectWidth,B=A===void 0?!1:A,z=e.showCheckedStrategy,H=z===void 0?l7:z,V=e.optionRender,U=ze(e,Dre),K=g2(n),Y=!!f,G=Pt(i,{value:l,postState:pp}),q=X(G,2),J=q[0],Q=q[1],ne=c.useMemo(function(){return c7(a)},[JSON.stringify(a)]),re=v7(ne,b),oe=X(re,3),te=oe[0],ee=oe[1],ie=oe[2],de=Pt("",{value:g,postState:function(xe){return xe||""}}),he=X(de,2),fe=he[0],le=he[1],me=function(xe,Ne){le(xe),Ne.source!=="blur"&&v&&v(xe)},ye=$re(p),ge=X(ye,2),ve=ge[0],$e=ge[1],Ce=vre(fe,te,ne,C||o,$e,s),Oe=f7(te,ne),Re=h7(Y,J,ee,ie,Oe),Ee=X(Re,3),_e=Ee[0],Fe=Ee[1],qe=Ee[2],Ze=c.useMemo(function(){var Se=Xc(_e),xe=d7(Se,ee,H);return[].concat(Te(qe),Te(ie(xe)))},[_e,ee,ie,qe,H]),ke=yre(Ze,te,ne,Y,d),Be=qt(function(Se){if(Q(Se),u){var xe=pp(Se),Ne=xe.map(function(Me){return Qc(Me,te,ne).map(function(Le){return Le.option})}),We=Y?xe:xe[0],He=Y?Ne:Ne[0];u(We,He)}}),Ue=p7(Y,Be,_e,Fe,qe,ee,ie,H),Je=qt(function(Se){(!Y||h)&&le(""),Ue(Se)}),nt=function(xe,Ne){if(Ne.type==="clear"){Be([]);return}var We=Ne.values[0],He=We.valueCells;Je(He)},mt=x!==void 0?x:$,gt=O||w,yt=D||M,It=function(xe){R==null||R(xe),_==null||_(xe)},ue=c.useMemo(function(){return{options:te,fieldNames:ne,values:_e,halfValues:Fe,changeOnSelect:s,onSelect:Je,checkable:f,searchOptions:Ce,dropdownPrefixCls:C,loadData:S,expandTrigger:y,expandIcon:k,loadingIcon:N,dropdownMenuColumnStyle:E,optionRender:V}},[te,ne,_e,Fe,s,Je,f,Ce,C,S,y,k,N,E,V]),se=!(fe?Ce:te).length,pe=fe&&$e.matchInputWidth||se?{}:{minWidth:"auto"};return c.createElement(Iu.Provider,{value:ue},c.createElement(d2,be({},U,{ref:t,id:K,prefixCls:o,autoClearSearchValue:h,dropdownMatchSelectWidth:B,dropdownStyle:I(I({},pe),P),displayValues:ke,onDisplayValuesChange:nt,mode:Y?"multiple":void 0,searchValue:fe,onSearch:me,showSearch:ve,OptionList:Nre,emptyOptions:se,open:mt,dropdownClassName:gt,placement:yt,onDropdownVisibleChange:It,getRawInputElement:function(){return j}})))});bm.SHOW_PARENT=l7;bm.SHOW_CHILD=s7;bm.Panel=C7;function S7(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=c.useContext(at),a=t||r,i=n("select",e),l=n("cascader",e);return[i,l,a,o]}function x7(e,t){return c.useMemo(()=>t?c.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}function w7(e,t,n){let r=n;n||(r=t?c.createElement(Yc,null):c.createElement(pi,null));const o=c.createElement("span",{className:`${e}-menu-item-loading-icon`},c.createElement(Cl,{spin:!0}));return[r,o]}const Fre=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},cl(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},boe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Coe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ha(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},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},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},Soe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},xoe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${ae(e.paddingXS)}`,background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ha(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Coe(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"}}}}}},woe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},$oe=Ht("Tabs",e=>{const t=_t(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[boe(t),Soe(t),yoe(t),hoe(t),poe(t),xoe(t),goe(t)]},woe),Eoe=()=>null,Poe=Eoe;var Ooe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,a,i,l,s;const{type:u,className:d,rootClassName:f,size:m,onEdit:h,hideAdd:g,centered:v,addIcon:p,removeIcon:y,moreIcon:b,popupClassName:C,children:S,items:$,animated:x,style:w,indicatorSize:O,indicator:E}=e,P=Ooe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:M}=P,{direction:D,tabs:R,getPrefixCls:_,getPopupContainer:T}=c.useContext(at),k=_("tabs",M),N=pn(k),[j,A,B]=$oe(k,N);let z;u==="editable-card"&&(z={onEdit:(q,J)=>{let{key:Q,event:ne}=J;h==null||h(q==="add"?ne:Q,q)},removeIcon:(t=y??(R==null?void 0:R.removeIcon))!==null&&t!==void 0?t:c.createElement(xa,null),addIcon:(p??(R==null?void 0:R.addIcon))||c.createElement(Vre,null),showAdd:g!==!0});const H=_(),V=nr(m),U=moe($,S),K=uoe(k,x),Y=Object.assign(Object.assign({},R==null?void 0:R.style),w),G={align:(n=E==null?void 0:E.align)!==null&&n!==void 0?n:(r=R==null?void 0:R.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=E==null?void 0:E.size)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:(i=R==null?void 0:R.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:R==null?void 0:R.indicatorSize};return j(c.createElement(soe,Object.assign({direction:D,getPopupContainer:T,moreTransitionName:`${H}-slide-up`},P,{items:U,className:Z({[`${k}-${V}`]:V,[`${k}-card`]:["card","editable-card"].includes(u),[`${k}-editable-card`]:u==="editable-card",[`${k}-centered`]:v},R==null?void 0:R.className,d,f,A,B,N),popupClassName:Z(C,A,B,N),style:Y,editable:z,moreIcon:(s=b??(R==null?void 0:R.moreIcon))!==null&&s!==void 0?s:c.createElement(N2,null),prefixCls:k,animated:K,indicator:G})))};E7.TabPane=Poe;const HC=E7;function Ioe(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,u=s===void 0?void 0:s,d,f=!1,m=0;function h(){d&&clearTimeout(d)}function g(p){var y=p||{},b=y.upcomingOnly,C=b===void 0?!1:b;h(),f=!C}function v(){for(var p=arguments.length,y=new Array(p),b=0;be?l?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return v.cancel=g,v}function Moe(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return Ioe(e,t,{debounceMode:a!==!1})}var Mu=c.createContext(null),Ic="__rc_cascader_search_mark__",Roe=function(t,n,r){var o=r.label;return n.some(function(a){return String(a[o]).toLowerCase().includes(t.toLowerCase())})},_oe=function(t,n,r,o){return n.map(function(a){return a[o.label]}).join(" / ")};const Toe=function(e,t,n,r,o,a){var i=o.filter,l=i===void 0?Roe:i,s=o.render,u=s===void 0?_oe:s,d=o.limit,f=d===void 0?50:d,m=o.sort;return c.useMemo(function(){var h=[];if(!e)return[];function g(v,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!m&&f!==!1&&f>0&&h.length>=f)){var C=[].concat(Te(p),[b]),S=b[n.children],$=y||b.disabled;if((!S||S.length===0||a)&&l(e,C,{label:n.label})){var x;h.push(I(I({},b),{},(x={disabled:$},L(x,n.label,u(e,C,r,n)),L(x,Ic,C),L(x,n.children,void 0),x)))}S&&g(b[n.children],C,$)}})}return g(t,[]),m&&h.sort(function(v,p){return m(v[Ic],p[Ic],e,n)}),f!==!1&&f>0?h.slice(0,f):h},[e,t,n,r,u,a,l,m,f])};var J2="__RC_CASCADER_SPLIT__",P7="SHOW_PARENT",O7="SHOW_CHILD";function va(e){return e.join(J2)}function Qc(e){return e.map(va)}function Noe(e){return e.split(J2)}function I7(e){var t=e||{},n=t.label,r=t.value,o=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:o||"children"}}function Rd(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function joe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function M7(e,t){return e.map(function(n){var r;return(r=n[Ic])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function Doe(e){return Array.isArray(e)&&Array.isArray(e[0])}function yp(e){return e?Doe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function R7(e,t,n){var r=new Set(e),o=t();return e.filter(function(a){var i=o[a],l=i?i.parent:null,s=i?i.children:null;return i&&i.node.disabled?!0:n===O7?!(s&&s.some(function(u){return u.key&&r.has(u.key)})):!(l&&!l.node.disabled&&r.has(l.key))})}function Zc(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,a=[],i=function(){var u,d,f,m=e[l],h=(u=o)===null||u===void 0?void 0:u.findIndex(function(v){var p=v[n.value];return r?String(p)===String(m):p===m}),g=h!==-1?(d=o)===null||d===void 0?void 0:d[h]:null;a.push({value:(f=g==null?void 0:g[n.value])!==null&&f!==void 0?f:m,index:h,option:g}),o=g==null?void 0:g[n.children]},l=0;l1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,h){for(var g=T7(f?f.pos:"0",h),v=Cm(m[a],g),p,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,u=a||s,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),Boe(e,function(h){var g=h.node,v=h.index,p=h.pos,y=h.key,b=h.parentPos,C=h.level,S=h.nodes,$={node:g,nodes:S,index:v,key:y,pos:p,level:C},x=Cm(y,p);d[p]=$,f[x]=$,$.parent=d[b],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(m),m}function Qd(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=ho(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1};return m}function rr(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,h=e.eventKey,g=I(I({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:h});return"props"in g||Object.defineProperty(g,"props",{get:function(){return cn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}const zoe=function(e,t){var n=c.useRef({options:null,info:null}),r=c.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=ew(e,{fieldNames:t,initWrapper:function(a){return I(I({},a),{},{pathKeyEntities:{}})},processEntity:function(a,i){var l=a.nodes.map(function(s){return s[t.value]}).join(J2);i.pathKeyEntities[l]=a,a.key=l}})),n.current.info.pathKeyEntities},[t,e]);return r};function N7(e,t){var n=c.useMemo(function(){return t||[]},[t]),r=zoe(n,e),o=c.useCallback(function(a){var i=r();return a.map(function(l){var s=i[l].nodes;return s.map(function(u){return u[e.value]})})},[r,e]);return[n,r,o]}function Hoe(e){return c.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&et(e)==="object"&&(t=I(I({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function j7(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Voe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function Woe(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,h=f.node,g=f.children,v=g===void 0?[]:g;o.has(m)&&!r(h)&&v.filter(function(p){return!r(p.node)}).forEach(function(p){o.add(p.key)})})}for(var s=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,h=f.node;if(!(r(h)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(m.key);return}var g=!0,v=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var y=p.key,b=o.has(y);g&&!b&&(g=!1),!v&&(b||a.has(y))&&(v=!0)}),g&&o.add(m.key),v&&a.add(m.key),s.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(j7(a,o))}}function Koe(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(m){var h=m.key,g=m.node,v=m.children,p=v===void 0?[]:v;!a.has(h)&&!i.has(h)&&!o(g)&&p.filter(function(y){return!o(y.node)}).forEach(function(y){a.delete(y.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var h=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(h.key);return}var v=!0,p=!1;(h.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var b=y.key,C=a.has(b);v&&!C&&(v=!1),!p&&(C||i.has(b))&&(p=!0)}),v||a.delete(h.key),p&&i.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(j7(i,a))}}function ii(e,t,n,r){var o=[],a;r?a=r:a=Voe;var i=new Set(e.filter(function(d){var f=!!ho(n,d);return f||o.push(d),f})),l=new Map,s=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,h=l.get(m);h||(h=new Set,l.set(m,h)),h.add(f),s=Math.max(s,m)}),cn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=Woe(i,l,s,a):u=Koe(i,t.halfCheckedKeys,l,s,a),u}function D7(e,t,n,r,o,a,i,l){return function(s){if(!e)t(s);else{var u=va(s),d=Qc(n),f=Qc(r),m=d.includes(u),h=o.some(function(x){return va(x)===u}),g=n,v=o;if(h&&!m)v=o.filter(function(x){return va(x)!==u});else{var p=m?d.filter(function(x){return x!==u}):[].concat(Te(d),[u]),y=a(),b;if(m){var C=ii(p,{checked:!1,halfCheckedKeys:f},y);b=C.checkedKeys}else{var S=ii(p,!0,y);b=S.checkedKeys}var $=R7(b,a,l);g=i($)}t([].concat(Te(v),Te(g)))}}}function F7(e,t,n,r,o){return c.useMemo(function(){var a=o(t),i=X(a,2),l=i[0],s=i[1];if(!e||!t.length)return[l,[],s];var u=Qc(l),d=n(),f=ii(u,!0,d),m=f.checkedKeys,h=f.halfCheckedKeys;return[r(m),r(h),s]},[e,t,n,r,o])}var Uoe=c.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function Goe(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,a=e.disabled,i=e.onClick,l=e.disableCheckbox,s=c.useContext(Mu),u=s.checkable,d=typeof u!="boolean"?u:null;return c.createElement("span",{className:Z("".concat(n),(t={},L(t,"".concat(n,"-checked"),r),L(t,"".concat(n,"-indeterminate"),!r&&o),L(t,"".concat(n,"-disabled"),a||l),t)),onClick:i},d)}var k7="__cascader_fix_label__";function qoe(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,a=e.prevValuePath,i=e.onToggleOpen,l=e.onSelect,s=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,h=e.searchValue,g="".concat(t,"-menu"),v="".concat(t,"-menu-item"),p=c.useContext(Mu),y=p.fieldNames,b=p.changeOnSelect,C=p.expandTrigger,S=p.expandIcon,$=p.loadingIcon,x=p.dropdownMenuColumnStyle,w=p.optionRender,O=C==="hover",E=c.useMemo(function(){return r.map(function(P){var M,D=P.disabled,R=P.disableCheckbox,_=P[Ic],T=(M=P[k7])!==null&&M!==void 0?M:P[y.label],k=P[y.value],N=Rd(P,y),j=_?_.map(function(V){return V[y.value]}):[].concat(Te(a),[k]),A=va(j),B=f.includes(A),z=u.has(A),H=d.has(A);return{disabled:D,label:T,value:k,isLeaf:N,isLoading:B,checked:z,halfChecked:H,option:P,disableCheckbox:R,fullPath:j,fullPathKey:A}})},[r,u,y,d,f,a]);return c.createElement("ul",{className:g,role:"menu"},E.map(function(P){var M,D=P.disabled,R=P.label,_=P.value,T=P.isLeaf,k=P.isLoading,N=P.checked,j=P.halfChecked,A=P.option,B=P.fullPath,z=P.fullPathKey,H=P.disableCheckbox,V=function(){if(!(D||h)){var G=Te(B);O&&T&&G.pop(),s(G)}},U=function(){m(A)&&l(B,T)},K;return typeof A.title=="string"?K=A.title:typeof R=="string"&&(K=R),c.createElement("li",{key:z,className:Z(v,(M={},L(M,"".concat(v,"-expand"),!T),L(M,"".concat(v,"-active"),o===_||o===z),L(M,"".concat(v,"-disabled"),D),L(M,"".concat(v,"-loading"),k),M)),style:x,role:"menuitemcheckbox",title:K,"aria-checked":N,"data-path-key":z,onClick:function(){V(),!H&&(!n||T)&&U()},onDoubleClick:function(){b&&i(!1)},onMouseEnter:function(){O&&V()},onMouseDown:function(G){G.preventDefault()}},n&&c.createElement(Goe,{prefixCls:"".concat(t,"-checkbox"),checked:N,halfChecked:j,disabled:D||H,disableCheckbox:H,onClick:function(G){H||(G.stopPropagation(),U())}}),c.createElement("div",{className:"".concat(v,"-content")},w?w(A):R),!k&&S&&!T&&c.createElement("div",{className:"".concat(v,"-expand-icon")},S),k&&$&&c.createElement("div",{className:"".concat(v,"-loading-icon")},$))}))}const Yoe=function(e,t){var n=c.useContext(Mu),r=n.values,o=r[0],a=c.useState([]),i=X(a,2),l=i[0],s=i[1];return c.useEffect(function(){t&&!e&&s(o||[])},[t,o]),[l,s]},Xoe=function(e,t,n,r,o,a,i){var l=i.direction,s=i.searchValue,u=i.toggleOpen,d=i.open,f=l==="rtl",m=c.useMemo(function(){for(var x=-1,w=t,O=[],E=[],P=r.length,M=M7(t,n),D=function(N){var j=w.findIndex(function(A,B){return(M[B]?va(M[B]):A[n.value])===r[N]});if(j===-1)return 1;x=j,O.push(x),E.push(r[N]),w=w[x][n.children]},R=0;R1){var w=g.slice(0,-1);b(w)}else u(!1)},$=function(){var w,O=((w=p[v])===null||w===void 0?void 0:w[n.children])||[],E=O.find(function(M){return!M.disabled});if(E){var P=[].concat(Te(g),[E[n.value]]);b(P)}};c.useImperativeHandle(e,function(){return{onKeyDown:function(w){var O=w.which;switch(O){case Ie.UP:case Ie.DOWN:{var E=0;O===Ie.UP?E=-1:O===Ie.DOWN&&(E=1),E!==0&&C(E);break}case Ie.LEFT:{if(s)break;f?$():S();break}case Ie.RIGHT:{if(s)break;f?S():$();break}case Ie.BACKSPACE:{s||S();break}case Ie.ENTER:{if(g.length){var P=p[v],M=(P==null?void 0:P[Ic])||[];M.length?a(M.map(function(D){return D[n.value]}),M[M.length-1]):a(g,p[v])}break}case Ie.ESC:u(!1),d&&w.stopPropagation()}},onKeyUp:function(){}}})};var L7=c.forwardRef(function(e,t){var n,r,o,a=e.prefixCls,i=e.multiple,l=e.searchValue,s=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=c.useRef(),h=d==="rtl",g=c.useContext(Mu),v=g.options,p=g.values,y=g.halfValues,b=g.fieldNames,C=g.changeOnSelect,S=g.onSelect,$=g.searchOptions,x=g.dropdownPrefixCls,w=g.loadData,O=g.expandTrigger,E=x||a,P=c.useState([]),M=X(P,2),D=M[0],R=M[1],_=function(oe){if(!(!w||l)){var te=Zc(oe,v,b),ee=te.map(function(he){var fe=he.option;return fe}),ie=ee[ee.length-1];if(ie&&!Rd(ie,b)){var de=va(oe);R(function(he){return[].concat(Te(he),[de])}),w(ee)}}};c.useEffect(function(){D.length&&D.forEach(function(re){var oe=Noe(re),te=Zc(oe,v,b,!0).map(function(ie){var de=ie.option;return de}),ee=te[te.length-1];(!ee||ee[b.children]||Rd(ee,b))&&R(function(ie){return ie.filter(function(de){return de!==re})})})},[v,D,b]);var T=c.useMemo(function(){return new Set(Qc(p))},[p]),k=c.useMemo(function(){return new Set(Qc(y))},[y]),N=Yoe(i,f),j=X(N,2),A=j[0],B=j[1],z=function(oe){B(oe),_(oe)},H=function(oe){var te=oe.disabled,ee=Rd(oe,b);return!te&&(ee||C||i)},V=function(oe,te){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;S(oe),!i&&(te||C&&(O==="hover"||ee))&&s(!1)},U=c.useMemo(function(){return l?$:v},[l,$,v]),K=c.useMemo(function(){for(var re=[{options:U}],oe=U,te=M7(oe,b),ee=function(){var he=A[ie],fe=oe.find(function(me,ye){return(te[ye]?va(te[ye]):me[b.value])===he}),le=fe==null?void 0:fe[b.children];if(!(le!=null&&le.length))return 1;oe=le,re.push({options:le})},ie=0;ie":y,C=n.loadingIcon,S=n.direction,$=n.notFoundContent,x=$===void 0?"Not Found":$,w=!!s,O=Pt(u,{value:d,postState:yp}),E=X(O,2),P=E[0],M=E[1],D=c.useMemo(function(){return I7(f)},[JSON.stringify(f)]),R=N7(D,l),_=X(R,3),T=_[0],k=_[1],N=_[2],j=_7(T,D),A=F7(w,P,k,N,j),B=X(A,3),z=B[0],H=B[1],V=B[2],U=qt(function(Q){if(M(Q),h){var ne=yp(Q),re=ne.map(function(ee){return Zc(ee,T,D).map(function(ie){return ie.option})}),oe=w?ne:ne[0],te=w?re:re[0];h(oe,te)}}),K=D7(w,U,z,H,V,k,N,g),Y=qt(function(Q){K(Q)}),G=c.useMemo(function(){return{options:T,fieldNames:D,values:z,halfValues:H,changeOnSelect:m,onSelect:Y,checkable:s,searchOptions:[],dropdownPrefixCls:null,loadData:v,expandTrigger:p,expandIcon:b,loadingIcon:C,dropdownMenuColumnStyle:null}},[T,D,z,H,m,Y,s,v,p,b,C]),q="".concat(o,"-panel"),J=!T.length;return c.createElement(Mu.Provider,{value:G},c.createElement("div",{className:Z(q,(t={},L(t,"".concat(q,"-rtl"),S==="rtl"),L(t,"".concat(q,"-empty"),J),t),i),style:a},J?x:c.createElement(L7,{prefixCls:o,searchValue:null,multiple:w,toggleOpen:Zoe,open:!0,direction:S})))}var Joe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Sm=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,a=e.fieldNames,i=e.defaultValue,l=e.value,s=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,h=m===void 0?!0:m,g=e.searchValue,v=e.onSearch,p=e.showSearch,y=e.expandTrigger,b=e.options,C=e.dropdownPrefixCls,S=e.loadData,$=e.popupVisible,x=e.open,w=e.popupClassName,O=e.dropdownClassName,E=e.dropdownMenuColumnStyle,P=e.dropdownStyle,M=e.popupPlacement,D=e.placement,R=e.onDropdownVisibleChange,_=e.onPopupVisibleChange,T=e.expandIcon,k=T===void 0?">":T,N=e.loadingIcon,j=e.children,A=e.dropdownMatchSelectWidth,B=A===void 0?!1:A,z=e.showCheckedStrategy,H=z===void 0?P7:z,V=e.optionRender,U=ze(e,Joe),K=h2(n),Y=!!f,G=Pt(i,{value:l,postState:yp}),q=X(G,2),J=q[0],Q=q[1],ne=c.useMemo(function(){return I7(a)},[JSON.stringify(a)]),re=N7(ne,b),oe=X(re,3),te=oe[0],ee=oe[1],ie=oe[2],de=Pt("",{value:g,postState:function(xe){return xe||""}}),he=X(de,2),fe=he[0],le=he[1],me=function(xe,Ne){le(xe),Ne.source!=="blur"&&v&&v(xe)},ye=Hoe(p),ge=X(ye,2),ve=ge[0],$e=ge[1],Ce=Toe(fe,te,ne,C||o,$e,s),Oe=_7(te,ne),Re=F7(Y,J,ee,ie,Oe),Ee=X(Re,3),_e=Ee[0],Fe=Ee[1],qe=Ee[2],Ze=c.useMemo(function(){var Se=Qc(_e),xe=R7(Se,ee,H);return[].concat(Te(qe),Te(ie(xe)))},[_e,ee,ie,qe,H]),ke=Foe(Ze,te,ne,Y,d),Be=qt(function(Se){if(Q(Se),u){var xe=yp(Se),Ne=xe.map(function(Me){return Zc(Me,te,ne).map(function(Le){return Le.option})}),We=Y?xe:xe[0],He=Y?Ne:Ne[0];u(We,He)}}),Ue=D7(Y,Be,_e,Fe,qe,ee,ie,H),Je=qt(function(Se){(!Y||h)&&le(""),Ue(Se)}),nt=function(xe,Ne){if(Ne.type==="clear"){Be([]);return}var We=Ne.values[0],He=We.valueCells;Je(He)},mt=x!==void 0?x:$,gt=O||w,yt=D||M,It=function(xe){R==null||R(xe),_==null||_(xe)},ue=c.useMemo(function(){return{options:te,fieldNames:ne,values:_e,halfValues:Fe,changeOnSelect:s,onSelect:Je,checkable:f,searchOptions:Ce,dropdownPrefixCls:C,loadData:S,expandTrigger:y,expandIcon:k,loadingIcon:N,dropdownMenuColumnStyle:E,optionRender:V}},[te,ne,_e,Fe,s,Je,f,Ce,C,S,y,k,N,E,V]),se=!(fe?Ce:te).length,pe=fe&&$e.matchInputWidth||se?{}:{minWidth:"auto"};return c.createElement(Mu.Provider,{value:ue},c.createElement(m2,be({},U,{ref:t,id:K,prefixCls:o,autoClearSearchValue:h,dropdownMatchSelectWidth:B,dropdownStyle:I(I({},pe),P),displayValues:ke,onDisplayValuesChange:nt,mode:Y?"multiple":void 0,searchValue:fe,onSearch:me,showSearch:ve,OptionList:Qoe,emptyOptions:se,open:mt,dropdownClassName:gt,placement:yt,onDropdownVisibleChange:It,getRawInputElement:function(){return j}})))});Sm.SHOW_PARENT=P7;Sm.SHOW_CHILD=O7;Sm.Panel=A7;function B7(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=c.useContext(at),a=t||r,i=n("select",e),l=n("cascader",e);return[i,l,a,o]}function z7(e,t){return c.useMemo(()=>t?c.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}function H7(e,t,n){let r=n;n||(r=t?c.createElement(Xc,null):c.createElement(pi,null));const o=c.createElement("span",{className:`${e}-menu-item-loading-icon`},c.createElement(Cl,{spin:!0}));return[r,o]}const eae=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Wt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},cl(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function u0(e,t){const n=_t(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Fre(n)]}const $7=Ht("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[u0(n,e)]}),kre=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function g0(e,t){const n=_t(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[eae(n)]}const V7=Ht("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[g0(n,e)]}),tae=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon -`;return[u0(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},mi),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},E7=kre,Lre=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},E7(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},yu(e)]},P7=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},O7=Ht("Cascader",e=>[Lre(e)],P7),Are=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[E7(e),{display:"inline-flex",border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Bre=$h(["Cascader","Panel"],e=>Are(e),P7),zre=e=>{const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:a,direction:i,expandIcon:l}=e,[s,u,d,f]=S7(t,i),m=pn(u),[h,g,v]=O7(u,m);Bre(u);const p=d==="rtl",[y,b]=w7(s,p,l),C=a||(f==null?void 0:f("Cascader"))||c.createElement(mm,{componentName:"Cascader"}),S=x7(u,r);return h(c.createElement(C7,Object.assign({},e,{checkable:S,prefixCls:u,className:Z(n,g,o,v,m),notFoundContent:C,direction:d,expandIcon:y,loadingIcon:b})))},Hre=zre;var Vre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);os===0?[l]:[].concat(Te(i),[t,l]),[]),o=[];let a=0;return r.forEach((i,l)=>{const s=a+i.length;let u=e.slice(a,s);a=s,l%2===1&&(u=c.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${l}`},u)),o.push(u)}),o}const Gre=(e,t,n,r)=>{const o=[],a=e.toLowerCase();return t.forEach((i,l)=>{l!==0&&o.push(" / ");let s=i[r.label];const u=typeof s;(u==="string"||u==="number")&&(s=Ure(String(s),a,n)),o.push(s)}),o},Mu=c.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:a,className:i,rootClassName:l,multiple:s,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:m,dropdownClassName:h,expandIcon:g,placement:v,showSearch:p,allowClear:y=!0,notFoundContent:b,direction:C,getPopupContainer:S,status:$,showArrow:x,builtinPlacements:w,style:O,variant:E}=e,P=Vre(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=gn(P,["suffixIcon"]),{getPopupContainer:D,getPrefixCls:R,popupOverflow:_,cascader:T}=c.useContext(at),{status:k,hasFeedback:N,isFormItemInput:j,feedbackIcon:A}=c.useContext(yr),B=xl(k,$),[z,H,V,U]=S7(r,C),K=V==="rtl",Y=R(),G=pn(z),[q,J,Q]=b2(z,G),ne=pn(H),[re]=O7(H,ne),{compactSize:oe,compactItemClassnames:te}=Va(z,C),[ee,ie]=wl(E,u),de=b||(U==null?void 0:U("Cascader"))||c.createElement(mm,{componentName:"Cascader"}),he=Z(m||h,`${H}-dropdown`,{[`${H}-dropdown-rtl`]:V==="rtl"},l,G,ne,J,Q),fe=c.useMemo(()=>{if(!p)return p;let ke={render:Gre};return typeof p=="object"&&(ke=Object.assign(Object.assign({},ke),p)),ke},[p]),le=nr(ke=>{var Be;return(Be=o??oe)!==null&&Be!==void 0?Be:ke}),me=c.useContext(Kr),ye=a??me,[ge,ve]=w7(z,K,g),$e=x7(H,s),Ce=C2(e.suffixIcon,x),{suffixIcon:Oe,removeIcon:Re,clearIcon:Ee}=Wh(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:A,showSuffixIcon:Ce,multiple:s,prefixCls:z,componentName:"Cascader"})),_e=c.useMemo(()=>v!==void 0?v:K?"bottomRight":"bottomLeft",[v,K]),Fe=y===!0?{clearIcon:Ee}:y,[qe]=Uo("SelectLike",(n=M.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Ze=c.createElement(bm,Object.assign({prefixCls:z,className:Z(!r&&H,{[`${z}-lg`]:le==="large",[`${z}-sm`]:le==="small",[`${z}-rtl`]:K,[`${z}-${ee}`]:ie,[`${z}-in-form-item`]:j},ya(z,B,N),te,T==null?void 0:T.className,i,l,G,ne,J,Q),disabled:ye,style:Object.assign(Object.assign({},T==null?void 0:T.style),O)},M,{builtinPlacements:y2(w,_),direction:V,placement:_e,notFoundContent:de,allowClear:Fe,showSearch:fe,expandIcon:ge,suffixIcon:Oe,removeIcon:Re,loadingIcon:ve,checkable:$e,dropdownClassName:he,dropdownPrefixCls:r||H,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:qe}),choiceTransitionName:$r(Y,"",f),transitionName:$r(Y,"slide-up",d),getPopupContainer:S||D,ref:t}));return re(q(Ze))}),qre=Sl(Mu);Mu.SHOW_PARENT=Kre;Mu.SHOW_CHILD=Wre;Mu.Panel=Hre;Mu._InternalPanelDoNotUseOrYouWillBeFired=qre;const Yre=Mu,Xre=W.createContext(null),I7=Xre;var Qre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,h=Qre(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=c.useContext(at),y=c.useContext(I7),{isFormItemInput:b}=c.useContext(yr),C=c.useContext(Kr),S=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:C,$=c.useRef(h.value);c.useEffect(()=>{y==null||y.registerValue(h.value)},[]),c.useEffect(()=>{if(!f)return h.value!==$.current&&(y==null||y.cancelValue($.current),y==null||y.registerValue(h.value),$.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]);const x=g("checkbox",r),w=pn(x),[O,E,P]=$7(x,w),M=Object.assign({},h);y&&!f&&(M.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:i,value:h.value})},M.name=y.name,M.checked=y.value.includes(h.value));const D=Z(`${x}-wrapper`,{[`${x}-rtl`]:v==="rtl",[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:b},p==null?void 0:p.className,o,a,P,w,E),R=Z({[`${x}-indeterminate`]:l},Rh,E),_=l?"mixed":void 0;return O(c.createElement(_h,{component:"Checkbox",disabled:S},c.createElement("label",{className:D,style:Object.assign(Object.assign({},p==null?void 0:p.style),s),onMouseEnter:u,onMouseLeave:d},c.createElement(GN,Object.assign({"aria-checked":_},M,{prefixCls:x,className:R,disabled:S,ref:t})),i!==void 0&&c.createElement("span",null,i))))},Jre=c.forwardRef(Zre),M7=Jre;var eoe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:s,onChange:u}=e,d=eoe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=c.useContext(at),[h,g]=c.useState(d.value||n||[]),[v,p]=c.useState([]);c.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const y=c.useMemo(()=>o.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[o]),b=T=>{p(k=>k.filter(N=>N!==T))},C=T=>{p(k=>[].concat(Te(k),[T]))},S=T=>{const k=h.indexOf(T.value),N=Te(h);k===-1?N.push(T.value):N.splice(k,1),"value"in d||g(N),u==null||u(N.filter(j=>v.includes(j)).sort((j,A)=>{const B=y.findIndex(H=>H.value===j),z=y.findIndex(H=>H.value===A);return B-z}))},$=f("checkbox",a),x=`${$}-group`,w=pn($),[O,E,P]=$7($,w),M=gn(d,["value","disabled"]),D=o.length?y.map(T=>c.createElement(M7,{prefixCls:$,key:T.value.toString(),disabled:"disabled"in T?T.disabled:d.disabled,value:T.value,checked:h.includes(T.value),onChange:T.onChange,className:`${x}-item`,style:T.style,title:T.title,id:T.id,required:T.required},T.label)):r,R={toggleOption:S,value:h,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:b},_=Z(x,{[`${x}-rtl`]:m==="rtl"},i,l,P,w,E);return O(c.createElement("div",Object.assign({className:_,style:s},M,{ref:t}),c.createElement(I7.Provider,{value:R},D)))}),noe=toe,J2=M7;J2.Group=noe;J2.__ANT_CHECKBOX=!0;const R7=J2,roe=c.createContext({}),_7=roe,ooe=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"}}}},aoe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ioe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},AC=(e,t)=>ioe(e,t),loe=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},AC(e,n))}),soe=()=>({}),coe=()=>({}),uoe=Ht("Grid",ooe,soe),doe=Ht("Grid",e=>{const t=_t(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[aoe(t),AC(t,""),AC(t,"-xs"),Object.keys(n).map(r=>loe(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},coe);var foe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=c.useContext(at),{gutter:o,wrap:a}=c.useContext(_7),{prefixCls:i,span:l,order:s,offset:u,push:d,pull:f,className:m,children:h,flex:g,style:v}=e,p=foe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",i),[b,C,S]=doe(y),$={};let x={};moe.forEach(E=>{let P={};const M=e[E];typeof M=="number"?P.span=M:typeof M=="object"&&(P=M||{}),delete p[E],x=Object.assign(Object.assign({},x),{[`${y}-${E}-${P.span}`]:P.span!==void 0,[`${y}-${E}-order-${P.order}`]:P.order||P.order===0,[`${y}-${E}-offset-${P.offset}`]:P.offset||P.offset===0,[`${y}-${E}-push-${P.push}`]:P.push||P.push===0,[`${y}-${E}-pull-${P.pull}`]:P.pull||P.pull===0,[`${y}-rtl`]:r==="rtl"}),P.flex&&(x[`${y}-${E}-flex`]=!0,$[`--${y}-${E}-flex`]=p3(P.flex))});const w=Z(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,x,C,S),O={};if(o&&o[0]>0){const E=o[0]/2;O.paddingLeft=E,O.paddingRight=E}return g&&(O.flex=p3(g),a===!1&&!O.minWidth&&(O.minWidth=0)),b(c.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},O),v),$),className:w,ref:t}),h))}),fl=voe;var goe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const poe=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:s=0,wrap:u}=e,d=goe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=c.useContext(at),[h,g]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,p]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=h3(o,v),b=h3(r,v),C=c.useRef(s),S=$T();c.useEffect(()=>{const N=S.subscribe(j=>{p(j);const A=C.current||0;(!Array.isArray(A)&&typeof A=="object"||Array.isArray(A)&&(typeof A[0]=="object"||typeof A[1]=="object"))&&g(j)});return()=>S.unsubscribe(N)},[]);const $=()=>{const N=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((A,B)=>{if(typeof A=="object")for(let z=0;z0?P[0]/-2:void 0;R&&(D.marginLeft=R,D.marginRight=R);const[_,T]=P;D.rowGap=T;const k=c.useMemo(()=>({gutter:[_,T],wrap:u}),[_,T,u]);return w(c.createElement(_7.Provider,{value:k},c.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},D),i),ref:t}),l)))}),Cm=poe;var T7=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,i=e.children,l=e.isActive,s=e.role,u=W.useState(l||r),d=X(u,2),f=d[0],m=d[1];return W.useEffect(function(){(r||l)&&m(!0)},[r,l]),f?W.createElement("div",{ref:t,className:Z("".concat(n,"-content"),L(L({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),o),style:a,role:s},W.createElement("div",{className:"".concat(n,"-content-box")},i)):null});T7.displayName="PanelContent";var hoe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],N7=W.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,a=e.isActive,i=e.onItemClick,l=e.forceRender,s=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,m=e.panelKey,h=e.extra,g=e.header,v=e.expandIcon,p=e.openMotion,y=e.destroyInactivePanel,b=e.children,C=ze(e,hoe),S=d==="disabled",$=d==="header",x=d==="icon",w=h!=null&&typeof h!="boolean",O=function(){i==null||i(m)},E=function(T){(T.key==="Enter"||T.keyCode===Ie.ENTER||T.which===Ie.ENTER)&&O()},P=typeof v=="function"?v(e):W.createElement("i",{className:"arrow"});P&&(P=W.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?O:void 0},P));var M=Z(L(L(L({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),s),D=Z(o,L(L(L({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),$),"".concat(u,"-icon-collapsible-only"),x)),R={className:D,"aria-expanded":a,"aria-disabled":S,onKeyDown:E};return!$&&!x&&(R.onClick=O,R.role=f?"tab":"button",R.tabIndex=S?-1:0),W.createElement("div",be({},C,{ref:t,className:M}),W.createElement("div",R,r&&P,W.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?O:void 0},g),w&&W.createElement("div",{className:"".concat(u,"-extra")},h)),W.createElement(wr,be({visible:a,leavedClassName:"".concat(u,"-content-hidden")},p,{forceRender:l,removeOnLeave:y}),function(_,T){var k=_.className,N=_.style;return W.createElement(T7,{ref:T,prefixCls:u,className:k,style:N,isActive:a,forceRender:l,role:f?"tabpanel":void 0},b)}))}),yoe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],boe=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var h=f.children,g=f.label,v=f.key,p=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,C=ze(f,yoe),S=String(v??m),$=p??a,x=b??i,w=function(P){$!=="disabled"&&(l(P),y==null||y(P))},O=!1;return o?O=s[0]===S:O=s.indexOf(S)>-1,W.createElement(N7,be({},C,{prefixCls:r,key:S,panelKey:S,isActive:O,accordion:o,openMotion:u,expandIcon:d,header:g,collapsible:$,onItemClick:w,destroyInactivePanel:x}),h)})},Coe=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,C=!1;a?C=u[0]===m:C=u.indexOf(m)>-1;var S=y??i,$=function(O){S!=="disabled"&&(s(O),b==null||b(O))},x={key:m,panelKey:m,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??l,openMotion:d,accordion:a,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(w){typeof x[w]>"u"&&delete x[w]}),W.cloneElement(t,x))};function Soe(e,t,n){return Array.isArray(e)?boe(e,n):sr(t).map(function(r,o){return Coe(r,o,n)})}function xoe(e){var t=e;if(!Array.isArray(t)){var n=et(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var woe=W.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,l=e.accordion,s=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,y=Z(r,s),b=Pt([],{value:h,onChange:function(E){return v==null?void 0:v(E)},defaultValue:g,postState:xoe}),C=X(b,2),S=C[0],$=C[1],x=function(E){return $(function(){if(l)return S[0]===E?[]:[E];var P=S.indexOf(E),M=P>-1;return M?S.filter(function(D){return D!==E}):[].concat(Te(S),[E])})};cn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=Soe(p,u,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:x,activeKey:S});return W.createElement("div",be({ref:t,className:y,style:i,role:l?"tablist":void 0},Qn(e,{aria:!0,data:!0})),w)});const ew=Object.assign(woe,{Panel:N7});ew.Panel;const $oe=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(at),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),l=Z({[`${i}-no-arrow`]:!a},o);return c.createElement(ew.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),Eoe=$oe,Poe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:h,colorTextDisabled:g,fontSizeLG:v,lineHeight:p,lineHeightLG:y,marginSM:b,paddingSM:C,paddingLG:S,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w,contentPadding:O,fontHeight:E,fontHeightLG:P}=e,M=`${ae(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Wt(e)),{backgroundColor:o,border:M,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[` +`;return[g0(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},mi),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},W7=tae,nae=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},W7(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},bu(e)]},K7=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},U7=Ht("Cascader",e=>[nae(e)],K7),rae=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[W7(e),{display:"inline-flex",border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},oae=Mh(["Cascader","Panel"],e=>rae(e),K7),aae=e=>{const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:a,direction:i,expandIcon:l}=e,[s,u,d,f]=B7(t,i),m=pn(u),[h,g,v]=U7(u,m);oae(u);const p=d==="rtl",[y,b]=H7(s,p,l),C=a||(f==null?void 0:f("Cascader"))||c.createElement(gm,{componentName:"Cascader"}),S=z7(u,r);return h(c.createElement(A7,Object.assign({},e,{checkable:S,prefixCls:u,className:Z(n,g,o,v,m),notFoundContent:C,direction:d,expandIcon:y,loadingIcon:b})))},iae=aae;var lae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);os===0?[l]:[].concat(Te(i),[t,l]),[]),o=[];let a=0;return r.forEach((i,l)=>{const s=a+i.length;let u=e.slice(a,s);a=s,l%2===1&&(u=c.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${l}`},u)),o.push(u)}),o}const dae=(e,t,n,r)=>{const o=[],a=e.toLowerCase();return t.forEach((i,l)=>{l!==0&&o.push(" / ");let s=i[r.label];const u=typeof s;(u==="string"||u==="number")&&(s=uae(String(s),a,n)),o.push(s)}),o},Ru=c.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:a,className:i,rootClassName:l,multiple:s,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:m,dropdownClassName:h,expandIcon:g,placement:v,showSearch:p,allowClear:y=!0,notFoundContent:b,direction:C,getPopupContainer:S,status:$,showArrow:x,builtinPlacements:w,style:O,variant:E}=e,P=lae(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=gn(P,["suffixIcon"]),{getPopupContainer:D,getPrefixCls:R,popupOverflow:_,cascader:T}=c.useContext(at),{status:k,hasFeedback:N,isFormItemInput:j,feedbackIcon:A}=c.useContext(yr),B=xl(k,$),[z,H,V,U]=B7(r,C),K=V==="rtl",Y=R(),G=pn(z),[q,J,Q]=S2(z,G),ne=pn(H),[re]=U7(H,ne),{compactSize:oe,compactItemClassnames:te}=Va(z,C),[ee,ie]=wl(E,u),de=b||(U==null?void 0:U("Cascader"))||c.createElement(gm,{componentName:"Cascader"}),he=Z(m||h,`${H}-dropdown`,{[`${H}-dropdown-rtl`]:V==="rtl"},l,G,ne,J,Q),fe=c.useMemo(()=>{if(!p)return p;let ke={render:dae};return typeof p=="object"&&(ke=Object.assign(Object.assign({},ke),p)),ke},[p]),le=nr(ke=>{var Be;return(Be=o??oe)!==null&&Be!==void 0?Be:ke}),me=c.useContext(Kr),ye=a??me,[ge,ve]=H7(z,K,g),$e=z7(H,s),Ce=x2(e.suffixIcon,x),{suffixIcon:Oe,removeIcon:Re,clearIcon:Ee}=Yh(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:A,showSuffixIcon:Ce,multiple:s,prefixCls:z,componentName:"Cascader"})),_e=c.useMemo(()=>v!==void 0?v:K?"bottomRight":"bottomLeft",[v,K]),Fe=y===!0?{clearIcon:Ee}:y,[qe]=Uo("SelectLike",(n=M.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Ze=c.createElement(Sm,Object.assign({prefixCls:z,className:Z(!r&&H,{[`${z}-lg`]:le==="large",[`${z}-sm`]:le==="small",[`${z}-rtl`]:K,[`${z}-${ee}`]:ie,[`${z}-in-form-item`]:j},ya(z,B,N),te,T==null?void 0:T.className,i,l,G,ne,J,Q),disabled:ye,style:Object.assign(Object.assign({},T==null?void 0:T.style),O)},M,{builtinPlacements:C2(w,_),direction:V,placement:_e,notFoundContent:de,allowClear:Fe,showSearch:fe,expandIcon:ge,suffixIcon:Oe,removeIcon:Re,loadingIcon:ve,checkable:$e,dropdownClassName:he,dropdownPrefixCls:r||H,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:qe}),choiceTransitionName:$r(Y,"",f),transitionName:$r(Y,"slide-up",d),getPopupContainer:S||D,ref:t}));return re(q(Ze))}),fae=Sl(Ru);Ru.SHOW_PARENT=cae;Ru.SHOW_CHILD=sae;Ru.Panel=iae;Ru._InternalPanelDoNotUseOrYouWillBeFired=fae;const mae=Ru,vae=W.createContext(null),G7=vae;var gae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,h=gae(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=c.useContext(at),y=c.useContext(G7),{isFormItemInput:b}=c.useContext(yr),C=c.useContext(Kr),S=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:C,$=c.useRef(h.value);c.useEffect(()=>{y==null||y.registerValue(h.value)},[]),c.useEffect(()=>{if(!f)return h.value!==$.current&&(y==null||y.cancelValue($.current),y==null||y.registerValue(h.value),$.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]);const x=g("checkbox",r),w=pn(x),[O,E,P]=V7(x,w),M=Object.assign({},h);y&&!f&&(M.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:i,value:h.value})},M.name=y.name,M.checked=y.value.includes(h.value));const D=Z(`${x}-wrapper`,{[`${x}-rtl`]:v==="rtl",[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:b},p==null?void 0:p.className,o,a,P,w,E),R=Z({[`${x}-indeterminate`]:l},Dh,E),_=l?"mixed":void 0;return O(c.createElement(Fh,{component:"Checkbox",disabled:S},c.createElement("label",{className:D,style:Object.assign(Object.assign({},p==null?void 0:p.style),s),onMouseEnter:u,onMouseLeave:d},c.createElement(f7,Object.assign({"aria-checked":_},M,{prefixCls:x,className:R,disabled:S,ref:t})),i!==void 0&&c.createElement("span",null,i))))},hae=c.forwardRef(pae),q7=hae;var yae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:s,onChange:u}=e,d=yae(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=c.useContext(at),[h,g]=c.useState(d.value||n||[]),[v,p]=c.useState([]);c.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const y=c.useMemo(()=>o.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[o]),b=T=>{p(k=>k.filter(N=>N!==T))},C=T=>{p(k=>[].concat(Te(k),[T]))},S=T=>{const k=h.indexOf(T.value),N=Te(h);k===-1?N.push(T.value):N.splice(k,1),"value"in d||g(N),u==null||u(N.filter(j=>v.includes(j)).sort((j,A)=>{const B=y.findIndex(H=>H.value===j),z=y.findIndex(H=>H.value===A);return B-z}))},$=f("checkbox",a),x=`${$}-group`,w=pn($),[O,E,P]=V7($,w),M=gn(d,["value","disabled"]),D=o.length?y.map(T=>c.createElement(q7,{prefixCls:$,key:T.value.toString(),disabled:"disabled"in T?T.disabled:d.disabled,value:T.value,checked:h.includes(T.value),onChange:T.onChange,className:`${x}-item`,style:T.style,title:T.title,id:T.id,required:T.required},T.label)):r,R={toggleOption:S,value:h,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:b},_=Z(x,{[`${x}-rtl`]:m==="rtl"},i,l,P,w,E);return O(c.createElement("div",Object.assign({className:_,style:s},M,{ref:t}),c.createElement(G7.Provider,{value:R},D)))}),Cae=bae,tw=q7;tw.Group=Cae;tw.__ANT_CHECKBOX=!0;const Y7=tw,Sae=c.createContext({}),X7=Sae,xae=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"}}}},wae=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},$ae=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},VC=(e,t)=>$ae(e,t),Eae=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},VC(e,n))}),Pae=()=>({}),Oae=()=>({}),Iae=Ht("Grid",xae,Pae),Mae=Ht("Grid",e=>{const t=_t(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[wae(t),VC(t,""),VC(t,"-xs"),Object.keys(n).map(r=>Eae(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},Oae);var Rae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=c.useContext(at),{gutter:o,wrap:a}=c.useContext(X7),{prefixCls:i,span:l,order:s,offset:u,push:d,pull:f,className:m,children:h,flex:g,style:v}=e,p=Rae(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",i),[b,C,S]=Mae(y),$={};let x={};_ae.forEach(E=>{let P={};const M=e[E];typeof M=="number"?P.span=M:typeof M=="object"&&(P=M||{}),delete p[E],x=Object.assign(Object.assign({},x),{[`${y}-${E}-${P.span}`]:P.span!==void 0,[`${y}-${E}-order-${P.order}`]:P.order||P.order===0,[`${y}-${E}-offset-${P.offset}`]:P.offset||P.offset===0,[`${y}-${E}-push-${P.push}`]:P.push||P.push===0,[`${y}-${E}-pull-${P.pull}`]:P.pull||P.pull===0,[`${y}-rtl`]:r==="rtl"}),P.flex&&(x[`${y}-${E}-flex`]=!0,$[`--${y}-${E}-flex`]=D3(P.flex))});const w=Z(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,x,C,S),O={};if(o&&o[0]>0){const E=o[0]/2;O.paddingLeft=E,O.paddingRight=E}return g&&(O.flex=D3(g),a===!1&&!O.minWidth&&(O.minWidth=0)),b(c.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},O),v),$),className:w,ref:t}),h))}),fl=Tae;var Nae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const jae=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:s=0,wrap:u}=e,d=Nae(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=c.useContext(at),[h,g]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,p]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=F3(o,v),b=F3(r,v),C=c.useRef(s),S=VT();c.useEffect(()=>{const N=S.subscribe(j=>{p(j);const A=C.current||0;(!Array.isArray(A)&&typeof A=="object"||Array.isArray(A)&&(typeof A[0]=="object"||typeof A[1]=="object"))&&g(j)});return()=>S.unsubscribe(N)},[]);const $=()=>{const N=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((A,B)=>{if(typeof A=="object")for(let z=0;z0?P[0]/-2:void 0;R&&(D.marginLeft=R,D.marginRight=R);const[_,T]=P;D.rowGap=T;const k=c.useMemo(()=>({gutter:[_,T],wrap:u}),[_,T,u]);return w(c.createElement(X7.Provider,{value:k},c.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},D),i),ref:t}),l)))}),xm=jae;var Q7=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,i=e.children,l=e.isActive,s=e.role,u=W.useState(l||r),d=X(u,2),f=d[0],m=d[1];return W.useEffect(function(){(r||l)&&m(!0)},[r,l]),f?W.createElement("div",{ref:t,className:Z("".concat(n,"-content"),L(L({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),o),style:a,role:s},W.createElement("div",{className:"".concat(n,"-content-box")},i)):null});Q7.displayName="PanelContent";var Dae=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Z7=W.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,a=e.isActive,i=e.onItemClick,l=e.forceRender,s=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,m=e.panelKey,h=e.extra,g=e.header,v=e.expandIcon,p=e.openMotion,y=e.destroyInactivePanel,b=e.children,C=ze(e,Dae),S=d==="disabled",$=d==="header",x=d==="icon",w=h!=null&&typeof h!="boolean",O=function(){i==null||i(m)},E=function(T){(T.key==="Enter"||T.keyCode===Ie.ENTER||T.which===Ie.ENTER)&&O()},P=typeof v=="function"?v(e):W.createElement("i",{className:"arrow"});P&&(P=W.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?O:void 0},P));var M=Z(L(L(L({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),s),D=Z(o,L(L(L({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),$),"".concat(u,"-icon-collapsible-only"),x)),R={className:D,"aria-expanded":a,"aria-disabled":S,onKeyDown:E};return!$&&!x&&(R.onClick=O,R.role=f?"tab":"button",R.tabIndex=S?-1:0),W.createElement("div",be({},C,{ref:t,className:M}),W.createElement("div",R,r&&P,W.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?O:void 0},g),w&&W.createElement("div",{className:"".concat(u,"-extra")},h)),W.createElement(wr,be({visible:a,leavedClassName:"".concat(u,"-content-hidden")},p,{forceRender:l,removeOnLeave:y}),function(_,T){var k=_.className,N=_.style;return W.createElement(Q7,{ref:T,prefixCls:u,className:k,style:N,isActive:a,forceRender:l,role:f?"tabpanel":void 0},b)}))}),Fae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],kae=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var h=f.children,g=f.label,v=f.key,p=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,C=ze(f,Fae),S=String(v??m),$=p??a,x=b??i,w=function(P){$!=="disabled"&&(l(P),y==null||y(P))},O=!1;return o?O=s[0]===S:O=s.indexOf(S)>-1,W.createElement(Z7,be({},C,{prefixCls:r,key:S,panelKey:S,isActive:O,accordion:o,openMotion:u,expandIcon:d,header:g,collapsible:$,onItemClick:w,destroyInactivePanel:x}),h)})},Lae=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,C=!1;a?C=u[0]===m:C=u.indexOf(m)>-1;var S=y??i,$=function(O){S!=="disabled"&&(s(O),b==null||b(O))},x={key:m,panelKey:m,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??l,openMotion:d,accordion:a,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(w){typeof x[w]>"u"&&delete x[w]}),W.cloneElement(t,x))};function Aae(e,t,n){return Array.isArray(e)?kae(e,n):sr(t).map(function(r,o){return Lae(r,o,n)})}function Bae(e){var t=e;if(!Array.isArray(t)){var n=et(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var zae=W.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,l=e.accordion,s=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,y=Z(r,s),b=Pt([],{value:h,onChange:function(E){return v==null?void 0:v(E)},defaultValue:g,postState:Bae}),C=X(b,2),S=C[0],$=C[1],x=function(E){return $(function(){if(l)return S[0]===E?[]:[E];var P=S.indexOf(E),M=P>-1;return M?S.filter(function(D){return D!==E}):[].concat(Te(S),[E])})};cn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=Aae(p,u,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:x,activeKey:S});return W.createElement("div",be({ref:t,className:y,style:i,role:l?"tablist":void 0},Qn(e,{aria:!0,data:!0})),w)});const nw=Object.assign(zae,{Panel:Z7});nw.Panel;const Hae=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(at),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),l=Z({[`${i}-no-arrow`]:!a},o);return c.createElement(nw.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),Vae=Hae,Wae=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:h,colorTextDisabled:g,fontSizeLG:v,lineHeight:p,lineHeightLG:y,marginSM:b,paddingSM:C,paddingLG:S,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w,contentPadding:O,fontHeight:E,fontHeightLG:P}=e,M=`${ae(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Wt(e)),{backgroundColor:o,border:M,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${ae(s)} ${ae(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:p,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},gu()),{fontSize:w,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:M,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:y,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${ae(s)} ${ae(s)}`}},[`& ${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:b}}}}})}},Ooe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Ioe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${ae(s)} ${ae(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:p,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},pu()),{fontSize:w,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:M,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:y,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${ae(s)} ${ae(s)}`}},[`& ${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:b}}}}})}},Kae=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Uae=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Moe=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}}}}}},Roe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),_oe=Ht("Collapse",e=>{const t=_t(e,{collapseHeaderPaddingSM:`${ae(e.paddingXS)} ${ae(e.paddingSM)}`,collapseHeaderPaddingLG:`${ae(e.padding)} ${ae(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Poe(t),Ioe(t),Moe(t),Ooe(t),Lh(t)]},Roe),Toe=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=c.useContext(at),{prefixCls:a,className:i,rootClassName:l,style:s,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=nr(M=>{var D;return(D=f??M)!==null&&D!==void 0?D:"middle"}),p=n("collapse",a),y=n(),[b,C,S]=_oe(p),$=c.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=g??(o==null?void 0:o.expandIcon),w=c.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const D=typeof x=="function"?x(M):c.createElement(pi,{rotate:M.isActive?90:void 0});return tr(D,()=>{var R;return{className:Z((R=D==null?void 0:D.props)===null||R===void 0?void 0:R.className,`${p}-arrow`)}})},[x,p]),O=Z(`${p}-icon-position-${$}`,{[`${p}-borderless`]:!u,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!d,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,l,C,S),E=Object.assign(Object.assign({},ip(y)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),P=c.useMemo(()=>h?sr(h).map((M,D)=>{var R,_;if(!((R=M.props)===null||R===void 0)&&R.disabled){const T=(_=M.key)!==null&&_!==void 0?_:String(D),{disabled:k,collapsible:N}=M.props,j=Object.assign(Object.assign({},gn(M.props,["disabled"])),{key:T,collapsible:N??(k?"disabled":void 0)});return tr(M,j)}return M}):null,[h]);return b(c.createElement(ew,Object.assign({ref:t,openMotion:E},gn(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:O,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),P))}),Noe=Object.assign(Toe,{Panel:Eoe}),joe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{borderBlockStart:`${ae(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ae(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ae(o)} 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}}})}},Doe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Foe=Ht("Divider",e=>{const t=_t(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[joe(t)]},Doe,{unitless:{orientationMargin:!0}});var koe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=c.useContext(at),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:l,className:s,rootClassName:u,children:d,dashed:f,plain:m,style:h}=e,g=koe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,y,b]=Foe(v),C=i.length>0?`-${i}`:i,S=!!d,$=i==="left"&&l!=null,x=i==="right"&&l!=null,w=Z(v,r==null?void 0:r.className,y,b,`${v}-${a}`,{[`${v}-with-text`]:S,[`${v}-with-text${C}`]:S,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:$,[`${v}-no-default-orientation-margin-right`]:x},s,u),O=c.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),E=Object.assign(Object.assign({},$&&{marginLeft:O}),x&&{marginRight:O});return p(c.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),d&&a!=="vertical"&&c.createElement("span",{className:`${v}-inner-text`,style:E},d)))},mc=Loe;var Aoe=["b"],Boe=["v"],ab=function(t){return Math.round(Number(t||0))},zoe=function(t){if(t&&et(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=ze(n,Aoe);return I(I({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},yp=function(e){Ko(n,e);var t=Si(n);function n(r){return Dn(this,n),t.call(this,zoe(r))}return Fn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=ab(o.s*100),i=ab(o.b*100),l=ab(o.h),s=o.a,u="hsb(".concat(l,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(a,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv();et(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=ze(a,Boe);return I(I({},i),{},{b:o.v,a:this.a})}}]),n}(Jt),Hoe="rc-color-picker",ol=function(t){return t instanceof yp?t:new yp(t)},Voe=ol("#1677ff"),j7=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,l=o.current.getBoundingClientRect(),s=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,h=f/2,g=m/2,v=(n.x+h)/s,p=1-(n.y+g)/u,y=a.toHsb(),b=v,C=(n.x+h)/s*360;if(i)switch(i){case"hue":return ol(I(I({},y),{},{h:C<=0?0:C}));case"alpha":return ol(I(I({},y),{},{a:b<=0?0:b}))}return ol({h:y.h,s:v<=0?0:v,b:p>=1?1:p,a:y.a})},D7=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,l=a.height,s=n.current.getBoundingClientRect(),u=s.width,d=s.height,f=u/2,m=d/2,h=r.toHsb();if(!(u===0&&d===0||u!==d)){if(o)switch(o){case"hue":return{x:h.h/360*i-f,y:-m/3};case"alpha":return{x:h.a/1*i-f,y:-m/3}}return{x:h.s*i-f,y:(1-h.b)*l-m}}},tw=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,l="".concat(r,"-color-block");return W.createElement("div",{className:Z(l,o),style:a,onClick:i},W.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function Woe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function F7(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,l=e.calculate,s=e.color,u=e.disabledDrag,d=c.useState(t||{x:0,y:0}),f=X(d,2),m=f[0],h=f[1],g=c.useRef(null),v=c.useRef(null),p=c.useRef({flag:!1});c.useEffect(function(){if(p.current.flag===!1){var $=l==null?void 0:l(r);$&&h($)}},[s,r]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null}},[]);var y=function(x){var w=Woe(x),O=w.pageX,E=w.pageY,P=r.current.getBoundingClientRect(),M=P.x,D=P.y,R=P.width,_=P.height,T=n.current.getBoundingClientRect(),k=T.width,N=T.height,j=k/2,A=N/2,B=Math.max(0,Math.min(O-M,R))-j,z=Math.max(0,Math.min(E-D,_))-A,H={x:B,y:o==="x"?m.y:z};if(k===0&&N===0||k!==N)return!1;h(H),a==null||a(H)},b=function(x){x.preventDefault(),y(x)},C=function(x){x.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,i==null||i()},S=function(x){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),!u&&(y(x),p.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.addEventListener("touchmove",b),document.addEventListener("touchend",C),g.current=b,v.current=C)};return[m,S]}var k7=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return W.createElement("div",{className:Z("".concat(a,"-handler"),L({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},L7=function(t){var n=t.children,r=t.style,o=t.prefixCls;return W.createElement("div",{className:"".concat(o,"-palette"),style:I({position:"relative"},r)},n)},A7=c.forwardRef(function(e,t){var n=e.children,r=e.offset;return W.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Koe=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,l=c.useRef(),s=c.useRef(),u=c.useRef(n),d=qt(function(v){var p=j7({offset:v,targetRef:s,containerRef:l,color:n});u.current=p,r(p)}),f=F7({color:n,containerRef:l,targetRef:s,calculate:function(p){return D7(p,s,n)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:i}),m=X(f,2),h=m[0],g=m[1];return W.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},W.createElement(L7,{prefixCls:o},W.createElement(A7,{offset:h,ref:s},W.createElement(k7,{color:n.toRgbString(),prefixCls:o})),W.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Uoe=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,l=t.prefixCls,s=c.useMemo(function(){return n.map(function(u,d){var f=ol(u);return i==="alpha"&&d===n.length-1&&f.setAlpha(1),f.toRgbString()}).join(",")},[n,i]);return W.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},r)},y3=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,l=t.value,s=t.onChange,u=t.onChangeComplete,d=t.disabled,f=t.prefixCls,m=c.useRef(),h=c.useRef(),g=c.useRef(i),v=qt(function(S){var $=j7({offset:S,targetRef:h,containerRef:m,color:i,type:a});g.current=$,s($)}),p=F7({color:i,targetRef:h,containerRef:m,calculate:function($){return D7($,h,i,a)},onDragChange:v,onDragChangeComplete:function(){u==null||u(g.current,a)},direction:"x",disabledDrag:d}),y=X(p,2),b=y[0],C=y[1];return W.createElement("div",{ref:m,className:Z("".concat(f,"-slider"),"".concat(f,"-slider-").concat(a)),onMouseDown:C,onTouchStart:C},W.createElement(L7,{prefixCls:f},W.createElement(A7,{offset:b,ref:h},W.createElement(k7,{size:"small",color:l,prefixCls:f})),W.createElement(Uoe,{colors:n,direction:r,type:a,prefixCls:f})))};function b3(e){return e!==void 0}var Goe=function(t,n){var r=n.defaultValue,o=n.value,a=c.useState(function(){var u;return b3(o)?u=o:b3(r)?u=r:u=t,ol(u)}),i=X(a,2),l=i[0],s=i[1];return c.useEffect(function(){o&&s(ol(o))},[o]),[l,s]},qoe=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const Yoe=c.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?Hoe:o,i=e.onChange,l=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=Goe(Voe,{value:n,defaultValue:r}),p=X(v,2),y=p[0],b=p[1],C=c.useMemo(function(){var O=ol(y.toRgbString());return O.setAlpha(1),O.toRgbString()},[y]),S=Z("".concat(a,"-panel"),s,L({},"".concat(a,"-panel-disabled"),g)),$={prefixCls:a,onChangeComplete:l,disabled:g},x=function(E,P){n||b(E),i==null||i(E,P)},w=W.createElement(W.Fragment,null,W.createElement(Koe,be({color:y,onChange:x},$)),W.createElement("div",{className:"".concat(a,"-slider-container")},W.createElement("div",{className:Z("".concat(a,"-slider-group"),L({},"".concat(a,"-slider-group-disabled-alpha"),m))},W.createElement(y3,be({gradientColors:qoe,color:y,value:"hsl(".concat(y.toHsb().h,",100%, 50%)"),onChange:function(E){return x(E,"hue")}},$)),!m&&W.createElement(y3,be({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:y,value:y.toRgbString(),onChange:function(E){return x(E,"alpha")}},$))),W.createElement(tw,{color:y.toRgbString(),prefixCls:a})));return W.createElement("div",{className:S,style:u,ref:t},typeof d=="function"?d(w):w)}),B7=W.createContext({}),z7=W.createContext({}),{Provider:Xoe}=B7,{Provider:Qoe}=z7,cg=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Zoe=(e,t)=>e?cg(e,t):"";let C3=function(){function e(t){Dn(this,e),this.metaColor=new yp(t),t||this.metaColor.setAlpha(0)}return Fn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Zoe(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const Vr=e=>e instanceof C3?e:new C3(e),ug=e=>Math.round(Number(e||0)),bp=e=>ug(e.toHsb().a*100),ib=(e,t)=>{const n=e.toHsb();return n.a=t||1,Vr(n)},Joe=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const l=Vr(i);o==null||o(l)}};return W.createElement("div",{className:`${t}-clear`,onClick:a})},H7=Joe;var oi;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(oi||(oi={}));var eae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const tae=eae;var nae=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:tae}))},rae=c.forwardRef(nae);const oae=rae;function BC(){return typeof BigInt=="function"}function V7(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ts(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function nw(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Kl(e){var t=String(e);if(nw(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&rw(t)?t.length-t.indexOf(".")-1:0}function d0(e){var t=String(e);if(nw(e)){if(e>Number.MAX_SAFE_INTEGER)return String(BC()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ts("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),iae=function(){function e(t){if(Dn(this,e),L(this,"origin",""),L(this,"number",void 0),L(this,"empty",void 0),V7(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Fn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":d0(this.number):this.origin}}]),e}();function ta(e){return BC()?new aae(e):new iae(e)}function dg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ts(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),u="".concat(a).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=ta(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return dg(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function lae(e){return!!(e.addonBefore||e.addonAfter)}function sae(e){return!!(e.prefix||e.suffix||e.allowClear)}function S3(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function Cp(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=S3(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=S3(t,e,r),n(o);return}n(o)}}function W7(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var ow=function(t){var n,r,o=t.inputElement,a=t.children,i=t.prefixCls,l=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,h=t.disabled,g=t.readOnly,v=t.focused,p=t.triggerFocus,y=t.allowClear,b=t.value,C=t.handleReset,S=t.hidden,$=t.classes,x=t.classNames,w=t.dataAttrs,O=t.styles,E=t.components,P=a??o,M=(E==null?void 0:E.affixWrapper)||"span",D=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",_=(E==null?void 0:E.groupAddon)||"span",T=c.useRef(null),k=function(te){var ee;(ee=T.current)!==null&&ee!==void 0&&ee.contains(te.target)&&(p==null||p())},N=sae(t),j=c.cloneElement(P,{value:b,className:Z(P.props.className,!N&&(x==null?void 0:x.variant))||null});if(N){var A,B=null;if(y){var z,H=!h&&!g&&b,V="".concat(i,"-clear-icon"),U=et(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";B=W.createElement("span",{onClick:C,onMouseDown:function(te){return te.preventDefault()},className:Z(V,(z={},L(z,"".concat(V,"-hidden"),!H),L(z,"".concat(V,"-has-suffix"),!!s),z)),role:"button",tabIndex:-1},U)}var K="".concat(i,"-affix-wrapper"),Y=Z(K,(A={},L(A,"".concat(i,"-disabled"),h),L(A,"".concat(K,"-disabled"),h),L(A,"".concat(K,"-focused"),v),L(A,"".concat(K,"-readonly"),g),L(A,"".concat(K,"-input-with-clear-btn"),s&&y&&b),A),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),G=(s||y)&&W.createElement("span",{className:Z("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},B,s);j=W.createElement(M,be({className:Y,style:O==null?void 0:O.affixWrapper,onClick:k},w==null?void 0:w.affixWrapper,{ref:T}),l&&W.createElement("span",{className:Z("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},l),j,G)}if(lae(t)){var q="".concat(i,"-group"),J="".concat(q,"-addon"),Q="".concat(q,"-wrapper"),ne=Z("".concat(i,"-wrapper"),q,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),re=Z(Q,L({},"".concat(Q,"-disabled"),h),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);j=W.createElement(D,{className:re},W.createElement(R,{className:ne},u&&W.createElement(_,{className:J},u),j,d&&W.createElement(_,{className:J},d)))}return W.cloneElement(j,{className:Z((n=j.props)===null||n===void 0?void 0:n.className,f)||null,style:I(I({},(r=j.props)===null||r===void 0?void 0:r.style),m),hidden:S})},cae=["show"];function K7(e,t){return c.useMemo(function(){var n={};t&&(n.show=et(t)==="object"&&t.formatter?t.formatter:!!t),n=I(I({},n),e);var r=n,o=r.show,a=ze(r,cae);return I(I({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var uae=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],dae=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.count,y=e.type,b=y===void 0?"text":y,C=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,w=e.onCompositionEnd,O=ze(e,uae),E=c.useState(!1),P=X(E,2),M=P[0],D=P[1],R=c.useRef(!1),_=c.useRef(null),T=function(le){_.current&&W7(_.current,le)},k=Pt(e.defaultValue,{value:e.value}),N=X(k,2),j=N[0],A=N[1],B=j==null?"":String(j),z=c.useState(null),H=X(z,2),V=H[0],U=H[1],K=K7(p,v),Y=K.max||h,G=K.strategy(B),q=!!Y&&G>Y;c.useImperativeHandle(t,function(){return{focus:T,blur:function(){var le;(le=_.current)===null||le===void 0||le.blur()},setSelectionRange:function(le,me,ye){var ge;(ge=_.current)===null||ge===void 0||ge.setSelectionRange(le,me,ye)},select:function(){var le;(le=_.current)===null||le===void 0||le.select()},input:_.current}}),c.useEffect(function(){D(function(fe){return fe&&d?!1:fe})},[d]);var J=function(le,me,ye){var ge=me;if(!R.current&&K.exceedFormatter&&K.max&&K.strategy(me)>K.max){if(ge=K.exceedFormatter(me,{max:K.max}),me!==ge){var ve,$e;U([((ve=_.current)===null||ve===void 0?void 0:ve.selectionStart)||0,(($e=_.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}}else if(ye.source==="compositionEnd")return;A(ge),_.current&&Cp(_.current,le,r,ge)};c.useEffect(function(){if(V){var fe;(fe=_.current)===null||fe===void 0||fe.setSelectionRange.apply(fe,Te(V))}},[V]);var Q=function(le){J(le,le.target.value,{source:"change"})},ne=function(le){R.current=!1,J(le,le.currentTarget.value,{source:"compositionEnd"}),w==null||w(le)},re=function(le){i&&le.key==="Enter"&&i(le),l==null||l(le)},oe=function(le){D(!0),o==null||o(le)},te=function(le){D(!1),a==null||a(le)},ee=function(le){A(""),T(),_.current&&Cp(_.current,le,r)},ie=q&&"".concat(u,"-out-of-range"),de=function(){var le=gn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return W.createElement("input",be({autoComplete:n},le,{onChange:Q,onFocus:oe,onBlur:te,onKeyDown:re,className:Z(u,L({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:_,size:f,type:b,onCompositionStart:function(ye){R.current=!0,x==null||x(ye)},onCompositionEnd:ne}))},he=function(){var le=Number(Y)>0;if(g||K.show){var me=K.showFormatter?K.showFormatter({value:B,count:G,maxLength:Y}):"".concat(G).concat(le?" / ".concat(Y):"");return W.createElement(W.Fragment,null,K.show&&W.createElement("span",{className:Z("".concat(u,"-show-count-suffix"),L({},"".concat(u,"-show-count-has-suffix"),!!g),S==null?void 0:S.count),style:I({},$==null?void 0:$.count)},me),g)}return null};return W.createElement(ow,be({},O,{prefixCls:u,className:Z(m,ie),handleReset:ee,value:B,focused:M,triggerFocus:T,suffix:he(),disabled:d,classes:C,classNames:S,styles:$}),de())});function fae(e,t){var n=c.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),u=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,u=i.start,d=a.length;if(a.endsWith(s))d=a.length-n.current.afterTxt.length;else if(a.startsWith(l))d=l.length;else{var f=l[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(h){cn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,o]}var mae=function(){var t=c.useState(!1),n=X(t,2),r=n[0],o=n[1];return Kt(function(){o(Ah())},[]),r},vae=200,gae=600;function pae(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=c.useRef(),s=c.useRef([]),u=c.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function $(){u.current(S),l.current=setTimeout($,vae)}l.current=setTimeout($,gae)};c.useEffect(function(){return function(){d(),s.current.forEach(function(b){return At.cancel(b)})}},[]);var m=mae();if(m)return null;var h="".concat(t,"-handler"),g=Z(h,"".concat(h,"-up"),L({},"".concat(h,"-up-disabled"),o)),v=Z(h,"".concat(h,"-down"),L({},"".concat(h,"-down-disabled"),a)),p=function(){return s.current.push(At(d))},y={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return c.createElement("div",{className:"".concat(h,"-wrap")},c.createElement("span",be({},y,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",be({},y,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function x3(e){var t=typeof e=="number"?d0(e):ts(e).fullStr,n=t.includes(".");return n?ts(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const hae=function(){var e=c.useRef(0),t=function(){At.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=At(function(){n()})}};var yae=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],bae=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],w3=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},$3=function(t){var n=ta(t);return n.isInvalidate()?null:n},Cae=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,l=e.min,s=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,y=e.keyboard,b=e.changeOnWheel,C=b===void 0?!1:b,S=e.controls,$=S===void 0?!0:S;e.classNames;var x=e.stringMode,w=e.parser,O=e.formatter,E=e.precision,P=e.decimalSeparator,M=e.onChange,D=e.onInput,R=e.onPressEnter,_=e.onStep,T=e.changeOnBlur,k=T===void 0?!0:T,N=ze(e,yae),j="".concat(o,"-input"),A=c.useRef(null),B=c.useState(!1),z=X(B,2),H=z[0],V=z[1],U=c.useRef(!1),K=c.useRef(!1),Y=c.useRef(!1),G=c.useState(function(){return ta(m??f)}),q=X(G,2),J=q[0],Q=q[1];function ne(ue){m===void 0&&Q(ue)}var re=c.useCallback(function(ue,se){if(!se)return E>=0?E:Math.max(Kl(ue),Kl(d))},[E,d]),oe=c.useCallback(function(ue){var se=String(ue);if(w)return w(se);var pe=se;return P&&(pe=pe.replace(P,".")),pe.replace(/[^\w.-]+/g,"")},[w,P]),te=c.useRef(""),ee=c.useCallback(function(ue,se){if(O)return O(ue,{userTyping:se,input:String(te.current)});var pe=typeof ue=="number"?d0(ue):ue;if(!se){var Se=re(pe,se);if(rw(pe)&&(P||Se>=0)){var xe=P||".";pe=dg(pe,xe,Se)}}return pe},[O,re,P]),ie=c.useState(function(){var ue=f??m;return J.isInvalidate()&&["string","number"].includes(et(ue))?Number.isNaN(ue)?"":ue:ee(J.toString(),!1)}),de=X(ie,2),he=de[0],fe=de[1];te.current=he;function le(ue,se){fe(ee(ue.isInvalidate()?ue.toString(!1):ue.toString(!se),se))}var me=c.useMemo(function(){return $3(s)},[s,E]),ye=c.useMemo(function(){return $3(l)},[l,E]),ge=c.useMemo(function(){return!me||!J||J.isInvalidate()?!1:me.lessEquals(J)},[me,J]),ve=c.useMemo(function(){return!ye||!J||J.isInvalidate()?!1:J.lessEquals(ye)},[ye,J]),$e=fae(A.current,H),Ce=X($e,2),Oe=Ce[0],Re=Ce[1],Ee=function(se){return me&&!se.lessEquals(me)?me:ye&&!ye.lessEquals(se)?ye:null},_e=function(se){return!Ee(se)},Fe=function(se,pe){var Se=se,xe=_e(Se)||Se.isEmpty();if(!Se.isEmpty()&&!pe&&(Se=Ee(Se)||Se,xe=!0),!g&&!h&&xe){var Ne=Se.toString(),We=re(Ne,pe);return We>=0&&(Se=ta(dg(Ne,".",We)),_e(Se)||(Se=ta(dg(Ne,".",We,!0)))),Se.equals(J)||(ne(Se),M==null||M(Se.isEmpty()?null:w3(x,Se)),m===void 0&&le(Se,pe)),Se}return J},qe=hae(),Ze=function ue(se){if(Oe(),te.current=se,fe(se),!K.current){var pe=oe(se),Se=ta(pe);Se.isNaN()||Fe(Se,!0)}D==null||D(se),qe(function(){var xe=se;w||(xe=se.replace(/。/g,".")),xe!==se&&ue(xe)})},ke=function(){K.current=!0},Be=function(){K.current=!1,Ze(A.current.value)},Ue=function(se){Ze(se.target.value)},Je=function(se){var pe;if(!(se&&ge||!se&&ve)){U.current=!1;var Se=ta(Y.current?x3(d):d);se||(Se=Se.negate());var xe=(J||ta(0)).add(Se.toString()),Ne=Fe(xe,!1);_==null||_(w3(x,Ne),{offset:Y.current?x3(d):d,type:se?"up":"down"}),(pe=A.current)===null||pe===void 0||pe.focus()}},nt=function(se){var pe=ta(oe(he)),Se=pe;pe.isNaN()?Se=Fe(J,se):Se=Fe(pe,se),m!==void 0?le(J,!1):Se.isNaN()||le(Se,!1)},mt=function(){U.current=!0},gt=function(se){var pe=se.key,Se=se.shiftKey;U.current=!0,Y.current=Se,pe==="Enter"&&(K.current||(U.current=!1),nt(!1),R==null||R(se)),y!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(pe)&&(Je(pe==="Up"||pe==="ArrowUp"),se.preventDefault())},yt=function(){U.current=!1,Y.current=!1};c.useEffect(function(){if(C&&H){var ue=function(Se){Je(Se.deltaY<0),Se.preventDefault()},se=A.current;if(se)return se.addEventListener("wheel",ue,{passive:!1}),function(){return se.removeEventListener("wheel",ue)}}});var It=function(){k&&nt(!1),V(!1),U.current=!1};return Ql(function(){J.isInvalidate()||le(J,!1)},[E,O]),Ql(function(){var ue=ta(m);Q(ue);var se=ta(oe(he));(!ue.equals(se)||!U.current||O)&&le(ue,U.current)},[m]),Ql(function(){O&&Re()},[he]),c.createElement("div",{className:Z(o,a,(n={},L(n,"".concat(o,"-focused"),H),L(n,"".concat(o,"-disabled"),h),L(n,"".concat(o,"-readonly"),g),L(n,"".concat(o,"-not-a-number"),J.isNaN()),L(n,"".concat(o,"-out-of-range"),!J.isInvalidate()&&!_e(J)),n)),style:i,onFocus:function(){V(!0)},onBlur:It,onKeyDown:gt,onKeyUp:yt,onCompositionStart:ke,onCompositionEnd:Be,onBeforeInput:mt},$&&c.createElement(pae,{prefixCls:o,upNode:v,downNode:p,upDisabled:ge,downDisabled:ve,onStep:Je}),c.createElement("div",{className:"".concat(j,"-wrap")},c.createElement("input",be({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:d},N,{ref:Er(A,t),className:j,value:he,onChange:Ue,disabled:h,readOnly:g}))))}),U7=c.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,l=e.suffix,s=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,m=ze(e,bae),h=c.useRef(null),g=function(p){h.current&&W7(h.current,p)};return c.createElement(ow,{className:d,triggerFocus:g,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:l,addonAfter:u,addonBefore:s,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},c.createElement(Cae,be({prefixCls:o,disabled:n,ref:Er(h,t),className:f==null?void 0:f.input},m)))});U7.displayName="InputNumber";const Sae=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},a0(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Jt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},E3=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},xae=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorTextDescription:h,motionDurationMid:g,handleHoverColor:v,paddingInline:p,paddingBlock:y,handleBg:b,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:$,borderRadiusLG:x,controlWidth:w,handleOpacity:O,handleBorderColor:E,filledHandleBg:P,lineHeightLG:M,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),hm(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:o}),K2(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}}})),G2(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),U2(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:x,[`input${t}-input`]:{height:D(i).sub(D(n).mul(2)).equal(),padding:`${ae(f)} ${ae(m)}`}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:D(l).sub(D(n).mul(2)).equal(),padding:`${ae(d)} ${ae(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Wt(e)),JN(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},YN(e)),QN(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{width:"100%",padding:`${ae(y)} ${ae(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),q2(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%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{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}}}},Gae=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}}}}}},qae=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Yae=Ht("Collapse",e=>{const t=_t(e,{collapseHeaderPaddingSM:`${ae(e.paddingXS)} ${ae(e.paddingSM)}`,collapseHeaderPaddingLG:`${ae(e.padding)} ${ae(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Wae(t),Uae(t),Gae(t),Kae(t),Vh(t)]},qae),Xae=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=c.useContext(at),{prefixCls:a,className:i,rootClassName:l,style:s,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=nr(M=>{var D;return(D=f??M)!==null&&D!==void 0?D:"middle"}),p=n("collapse",a),y=n(),[b,C,S]=Yae(p),$=c.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=g??(o==null?void 0:o.expandIcon),w=c.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const D=typeof x=="function"?x(M):c.createElement(pi,{rotate:M.isActive?90:void 0});return tr(D,()=>{var R;return{className:Z((R=D==null?void 0:D.props)===null||R===void 0?void 0:R.className,`${p}-arrow`)}})},[x,p]),O=Z(`${p}-icon-position-${$}`,{[`${p}-borderless`]:!u,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!d,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,l,C,S),E=Object.assign(Object.assign({},sp(y)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),P=c.useMemo(()=>h?sr(h).map((M,D)=>{var R,_;if(!((R=M.props)===null||R===void 0)&&R.disabled){const T=(_=M.key)!==null&&_!==void 0?_:String(D),{disabled:k,collapsible:N}=M.props,j=Object.assign(Object.assign({},gn(M.props,["disabled"])),{key:T,collapsible:N??(k?"disabled":void 0)});return tr(M,j)}return M}):null,[h]);return b(c.createElement(nw,Object.assign({ref:t,openMotion:E},gn(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:O,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),P))}),Qae=Object.assign(Xae,{Panel:Vae}),Zae=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{borderBlockStart:`${ae(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ae(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ae(o)} 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}}})}},Jae=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),eie=Ht("Divider",e=>{const t=_t(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Zae(t)]},Jae,{unitless:{orientationMargin:!0}});var tie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=c.useContext(at),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:l,className:s,rootClassName:u,children:d,dashed:f,plain:m,style:h}=e,g=tie(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,y,b]=eie(v),C=i.length>0?`-${i}`:i,S=!!d,$=i==="left"&&l!=null,x=i==="right"&&l!=null,w=Z(v,r==null?void 0:r.className,y,b,`${v}-${a}`,{[`${v}-with-text`]:S,[`${v}-with-text${C}`]:S,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:$,[`${v}-no-default-orientation-margin-right`]:x},s,u),O=c.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),E=Object.assign(Object.assign({},$&&{marginLeft:O}),x&&{marginRight:O});return p(c.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),d&&a!=="vertical"&&c.createElement("span",{className:`${v}-inner-text`,style:E},d)))},gc=nie;var rie=["b"],oie=["v"],sb=function(t){return Math.round(Number(t||0))},aie=function(t){if(t&&et(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=ze(n,rie);return I(I({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Cp=function(e){Ko(n,e);var t=xi(n);function n(r){return Dn(this,n),t.call(this,aie(r))}return Fn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=sb(o.s*100),i=sb(o.b*100),l=sb(o.h),s=o.a,u="hsb(".concat(l,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(a,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv();et(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=ze(a,oie);return I(I({},i),{},{b:o.v,a:this.a})}}]),n}(Jt),iie="rc-color-picker",al=function(t){return t instanceof Cp?t:new Cp(t)},lie=al("#1677ff"),J7=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,l=o.current.getBoundingClientRect(),s=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,h=f/2,g=m/2,v=(n.x+h)/s,p=1-(n.y+g)/u,y=a.toHsb(),b=v,C=(n.x+h)/s*360;if(i)switch(i){case"hue":return al(I(I({},y),{},{h:C<=0?0:C}));case"alpha":return al(I(I({},y),{},{a:b<=0?0:b}))}return al({h:y.h,s:v<=0?0:v,b:p>=1?1:p,a:y.a})},e9=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,l=a.height,s=n.current.getBoundingClientRect(),u=s.width,d=s.height,f=u/2,m=d/2,h=r.toHsb();if(!(u===0&&d===0||u!==d)){if(o)switch(o){case"hue":return{x:h.h/360*i-f,y:-m/3};case"alpha":return{x:h.a/1*i-f,y:-m/3}}return{x:h.s*i-f,y:(1-h.b)*l-m}}},rw=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,l="".concat(r,"-color-block");return W.createElement("div",{className:Z(l,o),style:a,onClick:i},W.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function sie(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function t9(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,l=e.calculate,s=e.color,u=e.disabledDrag,d=c.useState(t||{x:0,y:0}),f=X(d,2),m=f[0],h=f[1],g=c.useRef(null),v=c.useRef(null),p=c.useRef({flag:!1});c.useEffect(function(){if(p.current.flag===!1){var $=l==null?void 0:l(r);$&&h($)}},[s,r]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null}},[]);var y=function(x){var w=sie(x),O=w.pageX,E=w.pageY,P=r.current.getBoundingClientRect(),M=P.x,D=P.y,R=P.width,_=P.height,T=n.current.getBoundingClientRect(),k=T.width,N=T.height,j=k/2,A=N/2,B=Math.max(0,Math.min(O-M,R))-j,z=Math.max(0,Math.min(E-D,_))-A,H={x:B,y:o==="x"?m.y:z};if(k===0&&N===0||k!==N)return!1;h(H),a==null||a(H)},b=function(x){x.preventDefault(),y(x)},C=function(x){x.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,i==null||i()},S=function(x){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),!u&&(y(x),p.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.addEventListener("touchmove",b),document.addEventListener("touchend",C),g.current=b,v.current=C)};return[m,S]}var n9=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return W.createElement("div",{className:Z("".concat(a,"-handler"),L({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},r9=function(t){var n=t.children,r=t.style,o=t.prefixCls;return W.createElement("div",{className:"".concat(o,"-palette"),style:I({position:"relative"},r)},n)},o9=c.forwardRef(function(e,t){var n=e.children,r=e.offset;return W.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),cie=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,l=c.useRef(),s=c.useRef(),u=c.useRef(n),d=qt(function(v){var p=J7({offset:v,targetRef:s,containerRef:l,color:n});u.current=p,r(p)}),f=t9({color:n,containerRef:l,targetRef:s,calculate:function(p){return e9(p,s,n)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:i}),m=X(f,2),h=m[0],g=m[1];return W.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},W.createElement(r9,{prefixCls:o},W.createElement(o9,{offset:h,ref:s},W.createElement(n9,{color:n.toRgbString(),prefixCls:o})),W.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},uie=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,l=t.prefixCls,s=c.useMemo(function(){return n.map(function(u,d){var f=al(u);return i==="alpha"&&d===n.length-1&&f.setAlpha(1),f.toRgbString()}).join(",")},[n,i]);return W.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},r)},k3=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,l=t.value,s=t.onChange,u=t.onChangeComplete,d=t.disabled,f=t.prefixCls,m=c.useRef(),h=c.useRef(),g=c.useRef(i),v=qt(function(S){var $=J7({offset:S,targetRef:h,containerRef:m,color:i,type:a});g.current=$,s($)}),p=t9({color:i,targetRef:h,containerRef:m,calculate:function($){return e9($,h,i,a)},onDragChange:v,onDragChangeComplete:function(){u==null||u(g.current,a)},direction:"x",disabledDrag:d}),y=X(p,2),b=y[0],C=y[1];return W.createElement("div",{ref:m,className:Z("".concat(f,"-slider"),"".concat(f,"-slider-").concat(a)),onMouseDown:C,onTouchStart:C},W.createElement(r9,{prefixCls:f},W.createElement(o9,{offset:b,ref:h},W.createElement(n9,{size:"small",color:l,prefixCls:f})),W.createElement(uie,{colors:n,direction:r,type:a,prefixCls:f})))};function L3(e){return e!==void 0}var die=function(t,n){var r=n.defaultValue,o=n.value,a=c.useState(function(){var u;return L3(o)?u=o:L3(r)?u=r:u=t,al(u)}),i=X(a,2),l=i[0],s=i[1];return c.useEffect(function(){o&&s(al(o))},[o]),[l,s]},fie=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const mie=c.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?iie:o,i=e.onChange,l=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=die(lie,{value:n,defaultValue:r}),p=X(v,2),y=p[0],b=p[1],C=c.useMemo(function(){var O=al(y.toRgbString());return O.setAlpha(1),O.toRgbString()},[y]),S=Z("".concat(a,"-panel"),s,L({},"".concat(a,"-panel-disabled"),g)),$={prefixCls:a,onChangeComplete:l,disabled:g},x=function(E,P){n||b(E),i==null||i(E,P)},w=W.createElement(W.Fragment,null,W.createElement(cie,be({color:y,onChange:x},$)),W.createElement("div",{className:"".concat(a,"-slider-container")},W.createElement("div",{className:Z("".concat(a,"-slider-group"),L({},"".concat(a,"-slider-group-disabled-alpha"),m))},W.createElement(k3,be({gradientColors:fie,color:y,value:"hsl(".concat(y.toHsb().h,",100%, 50%)"),onChange:function(E){return x(E,"hue")}},$)),!m&&W.createElement(k3,be({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:y,value:y.toRgbString(),onChange:function(E){return x(E,"alpha")}},$))),W.createElement(rw,{color:y.toRgbString(),prefixCls:a})));return W.createElement("div",{className:S,style:u,ref:t},typeof d=="function"?d(w):w)}),a9=W.createContext({}),i9=W.createContext({}),{Provider:vie}=a9,{Provider:gie}=i9,cg=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",pie=(e,t)=>e?cg(e,t):"";let A3=function(){function e(t){Dn(this,e),this.metaColor=new Cp(t),t||this.metaColor.setAlpha(0)}return Fn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return pie(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const Vr=e=>e instanceof A3?e:new A3(e),ug=e=>Math.round(Number(e||0)),Sp=e=>ug(e.toHsb().a*100),cb=(e,t)=>{const n=e.toHsb();return n.a=t||1,Vr(n)},hie=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const l=Vr(i);o==null||o(l)}};return W.createElement("div",{className:`${t}-clear`,onClick:a})},l9=hie;var oi;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(oi||(oi={}));var yie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const bie=yie;var Cie=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:bie}))},Sie=c.forwardRef(Cie);const xie=Sie;function WC(){return typeof BigInt=="function"}function s9(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ts(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function ow(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Gl(e){var t=String(e);if(ow(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&aw(t)?t.length-t.indexOf(".")-1:0}function p0(e){var t=String(e);if(ow(e)){if(e>Number.MAX_SAFE_INTEGER)return String(WC()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ts("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),$ie=function(){function e(t){if(Dn(this,e),L(this,"origin",""),L(this,"number",void 0),L(this,"empty",void 0),s9(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Fn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":p0(this.number):this.origin}}]),e}();function ta(e){return WC()?new wie(e):new $ie(e)}function dg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ts(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),u="".concat(a).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=ta(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return dg(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function Eie(e){return!!(e.addonBefore||e.addonAfter)}function Pie(e){return!!(e.prefix||e.suffix||e.allowClear)}function B3(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function xp(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=B3(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=B3(t,e,r),n(o);return}n(o)}}function c9(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var iw=function(t){var n,r,o=t.inputElement,a=t.children,i=t.prefixCls,l=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,h=t.disabled,g=t.readOnly,v=t.focused,p=t.triggerFocus,y=t.allowClear,b=t.value,C=t.handleReset,S=t.hidden,$=t.classes,x=t.classNames,w=t.dataAttrs,O=t.styles,E=t.components,P=a??o,M=(E==null?void 0:E.affixWrapper)||"span",D=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",_=(E==null?void 0:E.groupAddon)||"span",T=c.useRef(null),k=function(te){var ee;(ee=T.current)!==null&&ee!==void 0&&ee.contains(te.target)&&(p==null||p())},N=Pie(t),j=c.cloneElement(P,{value:b,className:Z(P.props.className,!N&&(x==null?void 0:x.variant))||null});if(N){var A,B=null;if(y){var z,H=!h&&!g&&b,V="".concat(i,"-clear-icon"),U=et(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";B=W.createElement("span",{onClick:C,onMouseDown:function(te){return te.preventDefault()},className:Z(V,(z={},L(z,"".concat(V,"-hidden"),!H),L(z,"".concat(V,"-has-suffix"),!!s),z)),role:"button",tabIndex:-1},U)}var K="".concat(i,"-affix-wrapper"),Y=Z(K,(A={},L(A,"".concat(i,"-disabled"),h),L(A,"".concat(K,"-disabled"),h),L(A,"".concat(K,"-focused"),v),L(A,"".concat(K,"-readonly"),g),L(A,"".concat(K,"-input-with-clear-btn"),s&&y&&b),A),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),G=(s||y)&&W.createElement("span",{className:Z("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},B,s);j=W.createElement(M,be({className:Y,style:O==null?void 0:O.affixWrapper,onClick:k},w==null?void 0:w.affixWrapper,{ref:T}),l&&W.createElement("span",{className:Z("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},l),j,G)}if(Eie(t)){var q="".concat(i,"-group"),J="".concat(q,"-addon"),Q="".concat(q,"-wrapper"),ne=Z("".concat(i,"-wrapper"),q,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),re=Z(Q,L({},"".concat(Q,"-disabled"),h),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);j=W.createElement(D,{className:re},W.createElement(R,{className:ne},u&&W.createElement(_,{className:J},u),j,d&&W.createElement(_,{className:J},d)))}return W.cloneElement(j,{className:Z((n=j.props)===null||n===void 0?void 0:n.className,f)||null,style:I(I({},(r=j.props)===null||r===void 0?void 0:r.style),m),hidden:S})},Oie=["show"];function u9(e,t){return c.useMemo(function(){var n={};t&&(n.show=et(t)==="object"&&t.formatter?t.formatter:!!t),n=I(I({},n),e);var r=n,o=r.show,a=ze(r,Oie);return I(I({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var Iie=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Mie=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.count,y=e.type,b=y===void 0?"text":y,C=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,w=e.onCompositionEnd,O=ze(e,Iie),E=c.useState(!1),P=X(E,2),M=P[0],D=P[1],R=c.useRef(!1),_=c.useRef(null),T=function(le){_.current&&c9(_.current,le)},k=Pt(e.defaultValue,{value:e.value}),N=X(k,2),j=N[0],A=N[1],B=j==null?"":String(j),z=c.useState(null),H=X(z,2),V=H[0],U=H[1],K=u9(p,v),Y=K.max||h,G=K.strategy(B),q=!!Y&&G>Y;c.useImperativeHandle(t,function(){return{focus:T,blur:function(){var le;(le=_.current)===null||le===void 0||le.blur()},setSelectionRange:function(le,me,ye){var ge;(ge=_.current)===null||ge===void 0||ge.setSelectionRange(le,me,ye)},select:function(){var le;(le=_.current)===null||le===void 0||le.select()},input:_.current}}),c.useEffect(function(){D(function(fe){return fe&&d?!1:fe})},[d]);var J=function(le,me,ye){var ge=me;if(!R.current&&K.exceedFormatter&&K.max&&K.strategy(me)>K.max){if(ge=K.exceedFormatter(me,{max:K.max}),me!==ge){var ve,$e;U([((ve=_.current)===null||ve===void 0?void 0:ve.selectionStart)||0,(($e=_.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}}else if(ye.source==="compositionEnd")return;A(ge),_.current&&xp(_.current,le,r,ge)};c.useEffect(function(){if(V){var fe;(fe=_.current)===null||fe===void 0||fe.setSelectionRange.apply(fe,Te(V))}},[V]);var Q=function(le){J(le,le.target.value,{source:"change"})},ne=function(le){R.current=!1,J(le,le.currentTarget.value,{source:"compositionEnd"}),w==null||w(le)},re=function(le){i&&le.key==="Enter"&&i(le),l==null||l(le)},oe=function(le){D(!0),o==null||o(le)},te=function(le){D(!1),a==null||a(le)},ee=function(le){A(""),T(),_.current&&xp(_.current,le,r)},ie=q&&"".concat(u,"-out-of-range"),de=function(){var le=gn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return W.createElement("input",be({autoComplete:n},le,{onChange:Q,onFocus:oe,onBlur:te,onKeyDown:re,className:Z(u,L({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:_,size:f,type:b,onCompositionStart:function(ye){R.current=!0,x==null||x(ye)},onCompositionEnd:ne}))},he=function(){var le=Number(Y)>0;if(g||K.show){var me=K.showFormatter?K.showFormatter({value:B,count:G,maxLength:Y}):"".concat(G).concat(le?" / ".concat(Y):"");return W.createElement(W.Fragment,null,K.show&&W.createElement("span",{className:Z("".concat(u,"-show-count-suffix"),L({},"".concat(u,"-show-count-has-suffix"),!!g),S==null?void 0:S.count),style:I({},$==null?void 0:$.count)},me),g)}return null};return W.createElement(iw,be({},O,{prefixCls:u,className:Z(m,ie),handleReset:ee,value:B,focused:M,triggerFocus:T,suffix:he(),disabled:d,classes:C,classNames:S,styles:$}),de())});function Rie(e,t){var n=c.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),u=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,u=i.start,d=a.length;if(a.endsWith(s))d=a.length-n.current.afterTxt.length;else if(a.startsWith(l))d=l.length;else{var f=l[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(h){cn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,o]}var _ie=function(){var t=c.useState(!1),n=X(t,2),r=n[0],o=n[1];return Kt(function(){o(Wh())},[]),r},Tie=200,Nie=600;function jie(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=c.useRef(),s=c.useRef([]),u=c.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function $(){u.current(S),l.current=setTimeout($,Tie)}l.current=setTimeout($,Nie)};c.useEffect(function(){return function(){d(),s.current.forEach(function(b){return At.cancel(b)})}},[]);var m=_ie();if(m)return null;var h="".concat(t,"-handler"),g=Z(h,"".concat(h,"-up"),L({},"".concat(h,"-up-disabled"),o)),v=Z(h,"".concat(h,"-down"),L({},"".concat(h,"-down-disabled"),a)),p=function(){return s.current.push(At(d))},y={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return c.createElement("div",{className:"".concat(h,"-wrap")},c.createElement("span",be({},y,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",be({},y,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function z3(e){var t=typeof e=="number"?p0(e):ts(e).fullStr,n=t.includes(".");return n?ts(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Die=function(){var e=c.useRef(0),t=function(){At.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=At(function(){n()})}};var Fie=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],kie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],H3=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},V3=function(t){var n=ta(t);return n.isInvalidate()?null:n},Lie=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,l=e.min,s=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,y=e.keyboard,b=e.changeOnWheel,C=b===void 0?!1:b,S=e.controls,$=S===void 0?!0:S;e.classNames;var x=e.stringMode,w=e.parser,O=e.formatter,E=e.precision,P=e.decimalSeparator,M=e.onChange,D=e.onInput,R=e.onPressEnter,_=e.onStep,T=e.changeOnBlur,k=T===void 0?!0:T,N=ze(e,Fie),j="".concat(o,"-input"),A=c.useRef(null),B=c.useState(!1),z=X(B,2),H=z[0],V=z[1],U=c.useRef(!1),K=c.useRef(!1),Y=c.useRef(!1),G=c.useState(function(){return ta(m??f)}),q=X(G,2),J=q[0],Q=q[1];function ne(ue){m===void 0&&Q(ue)}var re=c.useCallback(function(ue,se){if(!se)return E>=0?E:Math.max(Gl(ue),Gl(d))},[E,d]),oe=c.useCallback(function(ue){var se=String(ue);if(w)return w(se);var pe=se;return P&&(pe=pe.replace(P,".")),pe.replace(/[^\w.-]+/g,"")},[w,P]),te=c.useRef(""),ee=c.useCallback(function(ue,se){if(O)return O(ue,{userTyping:se,input:String(te.current)});var pe=typeof ue=="number"?p0(ue):ue;if(!se){var Se=re(pe,se);if(aw(pe)&&(P||Se>=0)){var xe=P||".";pe=dg(pe,xe,Se)}}return pe},[O,re,P]),ie=c.useState(function(){var ue=f??m;return J.isInvalidate()&&["string","number"].includes(et(ue))?Number.isNaN(ue)?"":ue:ee(J.toString(),!1)}),de=X(ie,2),he=de[0],fe=de[1];te.current=he;function le(ue,se){fe(ee(ue.isInvalidate()?ue.toString(!1):ue.toString(!se),se))}var me=c.useMemo(function(){return V3(s)},[s,E]),ye=c.useMemo(function(){return V3(l)},[l,E]),ge=c.useMemo(function(){return!me||!J||J.isInvalidate()?!1:me.lessEquals(J)},[me,J]),ve=c.useMemo(function(){return!ye||!J||J.isInvalidate()?!1:J.lessEquals(ye)},[ye,J]),$e=Rie(A.current,H),Ce=X($e,2),Oe=Ce[0],Re=Ce[1],Ee=function(se){return me&&!se.lessEquals(me)?me:ye&&!ye.lessEquals(se)?ye:null},_e=function(se){return!Ee(se)},Fe=function(se,pe){var Se=se,xe=_e(Se)||Se.isEmpty();if(!Se.isEmpty()&&!pe&&(Se=Ee(Se)||Se,xe=!0),!g&&!h&&xe){var Ne=Se.toString(),We=re(Ne,pe);return We>=0&&(Se=ta(dg(Ne,".",We)),_e(Se)||(Se=ta(dg(Ne,".",We,!0)))),Se.equals(J)||(ne(Se),M==null||M(Se.isEmpty()?null:H3(x,Se)),m===void 0&&le(Se,pe)),Se}return J},qe=Die(),Ze=function ue(se){if(Oe(),te.current=se,fe(se),!K.current){var pe=oe(se),Se=ta(pe);Se.isNaN()||Fe(Se,!0)}D==null||D(se),qe(function(){var xe=se;w||(xe=se.replace(/。/g,".")),xe!==se&&ue(xe)})},ke=function(){K.current=!0},Be=function(){K.current=!1,Ze(A.current.value)},Ue=function(se){Ze(se.target.value)},Je=function(se){var pe;if(!(se&&ge||!se&&ve)){U.current=!1;var Se=ta(Y.current?z3(d):d);se||(Se=Se.negate());var xe=(J||ta(0)).add(Se.toString()),Ne=Fe(xe,!1);_==null||_(H3(x,Ne),{offset:Y.current?z3(d):d,type:se?"up":"down"}),(pe=A.current)===null||pe===void 0||pe.focus()}},nt=function(se){var pe=ta(oe(he)),Se=pe;pe.isNaN()?Se=Fe(J,se):Se=Fe(pe,se),m!==void 0?le(J,!1):Se.isNaN()||le(Se,!1)},mt=function(){U.current=!0},gt=function(se){var pe=se.key,Se=se.shiftKey;U.current=!0,Y.current=Se,pe==="Enter"&&(K.current||(U.current=!1),nt(!1),R==null||R(se)),y!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(pe)&&(Je(pe==="Up"||pe==="ArrowUp"),se.preventDefault())},yt=function(){U.current=!1,Y.current=!1};c.useEffect(function(){if(C&&H){var ue=function(Se){Je(Se.deltaY<0),Se.preventDefault()},se=A.current;if(se)return se.addEventListener("wheel",ue,{passive:!1}),function(){return se.removeEventListener("wheel",ue)}}});var It=function(){k&&nt(!1),V(!1),U.current=!1};return Ql(function(){J.isInvalidate()||le(J,!1)},[E,O]),Ql(function(){var ue=ta(m);Q(ue);var se=ta(oe(he));(!ue.equals(se)||!U.current||O)&&le(ue,U.current)},[m]),Ql(function(){O&&Re()},[he]),c.createElement("div",{className:Z(o,a,(n={},L(n,"".concat(o,"-focused"),H),L(n,"".concat(o,"-disabled"),h),L(n,"".concat(o,"-readonly"),g),L(n,"".concat(o,"-not-a-number"),J.isNaN()),L(n,"".concat(o,"-out-of-range"),!J.isInvalidate()&&!_e(J)),n)),style:i,onFocus:function(){V(!0)},onBlur:It,onKeyDown:gt,onKeyUp:yt,onCompositionStart:ke,onCompositionEnd:Be,onBeforeInput:mt},$&&c.createElement(jie,{prefixCls:o,upNode:v,downNode:p,upDisabled:ge,downDisabled:ve,onStep:Je}),c.createElement("div",{className:"".concat(j,"-wrap")},c.createElement("input",be({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:d},N,{ref:Er(A,t),className:j,value:he,onChange:Ue,disabled:h,readOnly:g}))))}),d9=c.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,l=e.suffix,s=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,m=ze(e,kie),h=c.useRef(null),g=function(p){h.current&&c9(h.current,p)};return c.createElement(iw,{className:d,triggerFocus:g,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:l,addonAfter:u,addonBefore:s,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},c.createElement(Lie,be({prefixCls:o,disabled:n,ref:Er(h,t),className:f==null?void 0:f.input},m)))});d9.displayName="InputNumber";const Aie=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},u0(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Jt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},W3=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Bie=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorTextDescription:h,motionDurationMid:g,handleHoverColor:v,paddingInline:p,paddingBlock:y,handleBg:b,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:$,borderRadiusLG:x,controlWidth:w,handleOpacity:O,handleBorderColor:E,filledHandleBg:P,lineHeightLG:M,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),bm(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:o}),G2(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}}})),Y2(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),q2(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:x,[`input${t}-input`]:{height:D(i).sub(D(n).mul(2)).equal(),padding:`${ae(f)} ${ae(m)}`}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:D(l).sub(D(n).mul(2)).equal(),padding:`${ae(d)} ${ae(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Wt(e)),y7(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},v7(e)),p7(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{width:"100%",padding:`${ae(y)} ${ae(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),X2(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%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ae(n)} ${r} ${E}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},gu()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},E3(e,"lg")),E3(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},pu()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},W3(e,"lg")),W3(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:S}})}]},wae=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},hm(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ae(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ae(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-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}}})}},$ae=Ht("InputNumber",e=>{const t=_t(e,o0(e));return[xae(t),wae(t),yu(t)]},Sae,{unitless:{handleOpacity:!0}});var Eae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=c.useContext(at),o=c.useRef(null);c.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,bordered:h,readOnly:g,status:v,controls:p,variant:y}=e,b=Eae(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),S=pn(C),[$,x,w]=$ae(C,S),{compactSize:O,compactItemClassnames:E}=Va(C,r);let P=c.createElement(oae,{className:`${C}-handler-up-inner`}),M=c.createElement(Hh,{className:`${C}-handler-down-inner`});const D=typeof p=="boolean"?p:void 0;typeof p=="object"&&(P=typeof p.upIcon>"u"?P:c.createElement("span",{className:`${C}-handler-up-inner`},p.upIcon),M=typeof p.downIcon>"u"?M:c.createElement("span",{className:`${C}-handler-down-inner`},p.downIcon));const{hasFeedback:R,status:_,isFormItemInput:T,feedbackIcon:k}=c.useContext(yr),N=xl(_,v),j=nr(G=>{var q;return(q=l??O)!==null&&q!==void 0?q:G}),A=c.useContext(Kr),B=s??A,[z,H]=wl(y,h),V=R&&c.createElement(c.Fragment,null,k),U=Z({[`${C}-lg`]:j==="large",[`${C}-sm`]:j==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:T},x),K=`${C}-group`,Y=c.createElement(U7,Object.assign({ref:o,disabled:B,className:Z(w,S,a,i,E),upHandler:P,downHandler:M,prefixCls:C,readOnly:g,controls:D,prefix:m,suffix:V,addonAfter:f&&c.createElement(ka,null,c.createElement(us,{override:!0,status:!0},f)),addonBefore:d&&c.createElement(ka,null,c.createElement(us,{override:!0,status:!0},d)),classNames:{input:U,variant:Z({[`${C}-${z}`]:H},ya(C,N,R)),affixWrapper:Z({[`${C}-affix-wrapper-sm`]:j==="small",[`${C}-affix-wrapper-lg`]:j==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:Z({[`${K}-rtl`]:r==="rtl"},x),groupWrapper:Z({[`${C}-group-wrapper-sm`]:j==="small",[`${C}-group-wrapper-lg`]:j==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${z}`]:H},ya(`${C}-group-wrapper`,N,R),x)}},b));return $(Y)}),q7=G7,Pae=e=>c.createElement(bt,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(G7,Object.assign({},e)));q7._InternalPanelDoNotUseOrYouWillBeFired=Pae;const ml=q7,Oae=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:l}=e;const s=`${t}-steppers`,[u,d]=c.useState(o);return c.useEffect(()=>{Number.isNaN(o)||d(o)},[o]),W.createElement(ml,{className:Z(s,i),min:n,max:r,value:u,formatter:l,size:"small",onChange:f=>{o||d(f||0),a==null||a(f)}})},ns=Oae,Iae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=s=>{const u=a.toHsb();u.a=(s||0)/100;const d=Vr(u);n||i(d),r==null||r(d)};return W.createElement(ns,{value:bp(a),prefixCls:t,formatter:s=>`${s}%`,className:o,onChange:l})},Mae=Iae,Rae=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=X2(i),u=Z(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),d=c.useContext(yr),f=c.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(c.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(yr.Provider,{value:f},e.children)))},_ae=Rae,Tae=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:W.createElement(Ha,null)}),t},Y7=Tae;function X7(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Nae(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var jae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:y,onChange:b,classNames:C,variant:S}=e,$=jae(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:w,input:O}=W.useContext(at),E=x("input",r),P=c.useRef(null),M=pn(E),[D,R,_]=X2(E,M),{compactSize:T,compactItemClassnames:k}=Va(E,w),N=nr(oe=>{var te;return(te=i??T)!==null&&te!==void 0?te:oe}),j=W.useContext(Kr),A=l??j,{status:B,hasFeedback:z,feedbackIcon:H}=c.useContext(yr),V=xl(B,a),U=Nae(e)||!!z;c.useRef(U);const K=X7(P,!0),Y=oe=>{K(),s==null||s(oe)},G=oe=>{K(),u==null||u(oe)},q=oe=>{K(),b==null||b(oe)},J=(z||d)&&W.createElement(W.Fragment,null,d,z&&H),Q=Y7(f??(O==null?void 0:O.allowClear)),[ne,re]=wl(S,o);return D(W.createElement(dae,Object.assign({ref:Er(t,P),prefixCls:E,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:A,onBlur:Y,onFocus:G,style:Object.assign(Object.assign({},O==null?void 0:O.style),v),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),p),suffix:J,allowClear:Q,className:Z(g,y,_,M,k,O==null?void 0:O.className),onChange:q,addonAfter:m&&W.createElement(ka,null,W.createElement(us,{override:!0,status:!0},m)),addonBefore:h&&W.createElement(ka,null,W.createElement(us,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),O==null?void 0:O.classNames),{input:Z({[`${E}-sm`]:N==="small",[`${E}-lg`]:N==="large",[`${E}-rtl`]:w==="rtl"},C==null?void 0:C.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,R),variant:Z({[`${E}-${ne}`]:re},ya(E,V)),affixWrapper:Z({[`${E}-affix-wrapper-sm`]:N==="small",[`${E}-affix-wrapper-lg`]:N==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl"},R),wrapper:Z({[`${E}-group-rtl`]:w==="rtl"},R),groupWrapper:Z({[`${E}-group-wrapper-sm`]:N==="small",[`${E}-group-wrapper-lg`]:N==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-${ne}`]:re},ya(`${E}-group-wrapper`,V,z),R)})})))}),aw=Fae;var kae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const Lae=kae;var Aae=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Lae}))},Bae=c.forwardRef(Aae);const Q7=Bae;var zae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Hae=zae;var Vae=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Hae}))},Wae=c.forwardRef(Vae);const iw=Wae;var Kae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?c.createElement(iw,null):c.createElement(Q7,null),Gae={click:"onClick",hover:"onMouseOver"},qae=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=c.useState(()=>r?n.visible:!1),i=c.useRef(null);c.useEffect(()=>{r&&a(n.visible)},[r,n]);const l=X7(i),s=()=>{const{disabled:$}=e;$||(o&&l(),a(x=>{var w;const O=!x;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,O)),O}))},u=$=>{const{action:x="click",iconRender:w=Uae}=e,O=Gae[x]||"",E=w(o),P={[O]:s,className:`${$}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return c.cloneElement(c.isValidElement(E)?E:c.createElement("span",null,E),P)},{className:d,prefixCls:f,inputPrefixCls:m,size:h}=e,g=Kae(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=c.useContext(at),p=v("input",m),y=v("input-password",f),b=n&&u(y),C=Z(y,d,{[`${y}-${h}`]:!!h}),S=Object.assign(Object.assign({},gn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:b});return h&&(S.size=h),c.createElement(aw,Object.assign({ref:Er(t,i)},S))}),Yae=qae;var Xae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:g}=e,v=Xae(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:y}=c.useContext(at),b=c.useRef(!1),C=p("input-search",n),S=p("input",r),{compactSize:$}=Va(C,y),x=nr(B=>{var z;return(z=a??$)!==null&&z!==void 0?z:B}),w=c.useRef(null),O=B=>{B&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m&&m(B)},E=B=>{var z;document.activeElement===((z=w.current)===null||z===void 0?void 0:z.input)&&B.preventDefault()},P=B=>{var z,H;f&&f((H=(z=w.current)===null||z===void 0?void 0:z.input)===null||H===void 0?void 0:H.value,B,{source:"input"})},M=B=>{b.current||u||P(B)},D=typeof l=="boolean"?c.createElement(Vh,null):null,R=`${C}-button`;let _;const T=l||{},k=T.type&&T.type.__ANT_BUTTON===!0;k||T.type==="button"?_=tr(T,Object.assign({onMouseDown:E,onClick:B=>{var z,H;(H=(z=T==null?void 0:T.props)===null||z===void 0?void 0:z.onClick)===null||H===void 0||H.call(z,B),P(B)},key:"enterButton"},k?{className:R,size:x}:{})):_=c.createElement(Nr,{className:R,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:E,onClick:P,loading:u,icon:D},l),s&&(_=[_,tr(s,{key:"addonAfter"})]);const N=Z(C,{[`${C}-rtl`]:y==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!l},o),j=B=>{b.current=!0,h==null||h(B)},A=B=>{b.current=!1,g==null||g(B)};return c.createElement(aw,Object.assign({ref:Er(w,t),onPressEnter:M},v,{size:x,onCompositionStart:j,onCompositionEnd:A,prefixCls:S,addonAfter:_,suffix:i,onChange:O,className:N,disabled:d}))}),Zae=Qae;var Jae=` + `]:{color:S}})}]},zie=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},bm(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ae(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ae(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-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}}})}},Hie=Ht("InputNumber",e=>{const t=_t(e,c0(e));return[Bie(t),zie(t),bu(t)]},Aie,{unitless:{handleOpacity:!0}});var Vie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=c.useContext(at),o=c.useRef(null);c.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,bordered:h,readOnly:g,status:v,controls:p,variant:y}=e,b=Vie(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),S=pn(C),[$,x,w]=Hie(C,S),{compactSize:O,compactItemClassnames:E}=Va(C,r);let P=c.createElement(xie,{className:`${C}-handler-up-inner`}),M=c.createElement(Gh,{className:`${C}-handler-down-inner`});const D=typeof p=="boolean"?p:void 0;typeof p=="object"&&(P=typeof p.upIcon>"u"?P:c.createElement("span",{className:`${C}-handler-up-inner`},p.upIcon),M=typeof p.downIcon>"u"?M:c.createElement("span",{className:`${C}-handler-down-inner`},p.downIcon));const{hasFeedback:R,status:_,isFormItemInput:T,feedbackIcon:k}=c.useContext(yr),N=xl(_,v),j=nr(G=>{var q;return(q=l??O)!==null&&q!==void 0?q:G}),A=c.useContext(Kr),B=s??A,[z,H]=wl(y,h),V=R&&c.createElement(c.Fragment,null,k),U=Z({[`${C}-lg`]:j==="large",[`${C}-sm`]:j==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:T},x),K=`${C}-group`,Y=c.createElement(d9,Object.assign({ref:o,disabled:B,className:Z(w,S,a,i,E),upHandler:P,downHandler:M,prefixCls:C,readOnly:g,controls:D,prefix:m,suffix:V,addonAfter:f&&c.createElement(ka,null,c.createElement(us,{override:!0,status:!0},f)),addonBefore:d&&c.createElement(ka,null,c.createElement(us,{override:!0,status:!0},d)),classNames:{input:U,variant:Z({[`${C}-${z}`]:H},ya(C,N,R)),affixWrapper:Z({[`${C}-affix-wrapper-sm`]:j==="small",[`${C}-affix-wrapper-lg`]:j==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:Z({[`${K}-rtl`]:r==="rtl"},x),groupWrapper:Z({[`${C}-group-wrapper-sm`]:j==="small",[`${C}-group-wrapper-lg`]:j==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${z}`]:H},ya(`${C}-group-wrapper`,N,R),x)}},b));return $(Y)}),m9=f9,Wie=e=>c.createElement(bt,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(f9,Object.assign({},e)));m9._InternalPanelDoNotUseOrYouWillBeFired=Wie;const ml=m9,Kie=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:l}=e;const s=`${t}-steppers`,[u,d]=c.useState(o);return c.useEffect(()=>{Number.isNaN(o)||d(o)},[o]),W.createElement(ml,{className:Z(s,i),min:n,max:r,value:u,formatter:l,size:"small",onChange:f=>{o||d(f||0),a==null||a(f)}})},ns=Kie,Uie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=s=>{const u=a.toHsb();u.a=(s||0)/100;const d=Vr(u);n||i(d),r==null||r(d)};return W.createElement(ns,{value:Sp(a),prefixCls:t,formatter:s=>`${s}%`,className:o,onChange:l})},Gie=Uie,qie=e=>{const{getPrefixCls:t,direction:n}=c.useContext(at),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=Z2(i),u=Z(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),d=c.useContext(yr),f=c.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(c.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(yr.Provider,{value:f},e.children)))},Yie=qie,Xie=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:W.createElement(Ha,null)}),t},v9=Xie;function g9(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Qie(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Zie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:y,onChange:b,classNames:C,variant:S}=e,$=Zie(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:w,input:O}=W.useContext(at),E=x("input",r),P=c.useRef(null),M=pn(E),[D,R,_]=Z2(E,M),{compactSize:T,compactItemClassnames:k}=Va(E,w),N=nr(oe=>{var te;return(te=i??T)!==null&&te!==void 0?te:oe}),j=W.useContext(Kr),A=l??j,{status:B,hasFeedback:z,feedbackIcon:H}=c.useContext(yr),V=xl(B,a),U=Qie(e)||!!z;c.useRef(U);const K=g9(P,!0),Y=oe=>{K(),s==null||s(oe)},G=oe=>{K(),u==null||u(oe)},q=oe=>{K(),b==null||b(oe)},J=(z||d)&&W.createElement(W.Fragment,null,d,z&&H),Q=v9(f??(O==null?void 0:O.allowClear)),[ne,re]=wl(S,o);return D(W.createElement(Mie,Object.assign({ref:Er(t,P),prefixCls:E,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:A,onBlur:Y,onFocus:G,style:Object.assign(Object.assign({},O==null?void 0:O.style),v),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),p),suffix:J,allowClear:Q,className:Z(g,y,_,M,k,O==null?void 0:O.className),onChange:q,addonAfter:m&&W.createElement(ka,null,W.createElement(us,{override:!0,status:!0},m)),addonBefore:h&&W.createElement(ka,null,W.createElement(us,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),O==null?void 0:O.classNames),{input:Z({[`${E}-sm`]:N==="small",[`${E}-lg`]:N==="large",[`${E}-rtl`]:w==="rtl"},C==null?void 0:C.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,R),variant:Z({[`${E}-${ne}`]:re},ya(E,V)),affixWrapper:Z({[`${E}-affix-wrapper-sm`]:N==="small",[`${E}-affix-wrapper-lg`]:N==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl"},R),wrapper:Z({[`${E}-group-rtl`]:w==="rtl"},R),groupWrapper:Z({[`${E}-group-wrapper-sm`]:N==="small",[`${E}-group-wrapper-lg`]:N==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-${ne}`]:re},ya(`${E}-group-wrapper`,V,z),R)})})))}),lw=ele;var tle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const nle=tle;var rle=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:nle}))},ole=c.forwardRef(rle);const p9=ole;var ale={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const ile=ale;var lle=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ile}))},sle=c.forwardRef(lle);const sw=sle;var cle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?c.createElement(sw,null):c.createElement(p9,null),dle={click:"onClick",hover:"onMouseOver"},fle=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=c.useState(()=>r?n.visible:!1),i=c.useRef(null);c.useEffect(()=>{r&&a(n.visible)},[r,n]);const l=g9(i),s=()=>{const{disabled:$}=e;$||(o&&l(),a(x=>{var w;const O=!x;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,O)),O}))},u=$=>{const{action:x="click",iconRender:w=ule}=e,O=dle[x]||"",E=w(o),P={[O]:s,className:`${$}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return c.cloneElement(c.isValidElement(E)?E:c.createElement("span",null,E),P)},{className:d,prefixCls:f,inputPrefixCls:m,size:h}=e,g=cle(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=c.useContext(at),p=v("input",m),y=v("input-password",f),b=n&&u(y),C=Z(y,d,{[`${y}-${h}`]:!!h}),S=Object.assign(Object.assign({},gn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:b});return h&&(S.size=h),c.createElement(lw,Object.assign({ref:Er(t,i)},S))}),mle=fle;var vle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:g}=e,v=vle(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:y}=c.useContext(at),b=c.useRef(!1),C=p("input-search",n),S=p("input",r),{compactSize:$}=Va(C,y),x=nr(B=>{var z;return(z=a??$)!==null&&z!==void 0?z:B}),w=c.useRef(null),O=B=>{B&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m&&m(B)},E=B=>{var z;document.activeElement===((z=w.current)===null||z===void 0?void 0:z.input)&&B.preventDefault()},P=B=>{var z,H;f&&f((H=(z=w.current)===null||z===void 0?void 0:z.input)===null||H===void 0?void 0:H.value,B,{source:"input"})},M=B=>{b.current||u||P(B)},D=typeof l=="boolean"?c.createElement(qh,null):null,R=`${C}-button`;let _;const T=l||{},k=T.type&&T.type.__ANT_BUTTON===!0;k||T.type==="button"?_=tr(T,Object.assign({onMouseDown:E,onClick:B=>{var z,H;(H=(z=T==null?void 0:T.props)===null||z===void 0?void 0:z.onClick)===null||H===void 0||H.call(z,B),P(B)},key:"enterButton"},k?{className:R,size:x}:{})):_=c.createElement(Nr,{className:R,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:E,onClick:P,loading:u,icon:D},l),s&&(_=[_,tr(s,{key:"addonAfter"})]);const N=Z(C,{[`${C}-rtl`]:y==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!l},o),j=B=>{b.current=!0,h==null||h(B)},A=B=>{b.current=!1,g==null||g(B)};return c.createElement(lw,Object.assign({ref:Er(w,t),onPressEnter:M},v,{size:x,onCompositionStart:j,onCompositionEnd:A,prefixCls:S,addonAfter:_,suffix:i,onChange:O,className:N,disabled:d}))}),ple=gle;var hle=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -350,19 +378,19 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,eie=["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"],lb={},Ro;function tie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&lb[n])return lb[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=eie.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(lb[n]=s),s}function nie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ro||(Ro=document.createElement("textarea"),Ro.setAttribute("tab-index","-1"),Ro.setAttribute("aria-hidden","true"),document.body.appendChild(Ro)),e.getAttribute("wrap")?Ro.setAttribute("wrap",e.getAttribute("wrap")):Ro.removeAttribute("wrap");var o=tie(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Ro.setAttribute("style","".concat(s,";").concat(Jae)),Ro.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Ro.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){Ro.value=" ";var h=Ro.scrollHeight-a;n!==null&&(u=h*n,l==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=h*r,l==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var g={height:m,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var rie=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],sb=0,cb=1,ub=2,oie=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ze(n,rie),h=Pt(o,{value:a,postState:function(U){return U??""}}),g=X(h,2),v=g[0],p=g[1],y=function(U){p(U.target.value),f==null||f(U)},b=c.useRef();c.useImperativeHandle(t,function(){return{textArea:b.current}});var C=c.useMemo(function(){return i&&et(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=X(C,2),$=S[0],x=S[1],w=!!i,O=function(){try{if(document.activeElement===b.current){var U=b.current,K=U.selectionStart,Y=U.selectionEnd,G=U.scrollTop;b.current.setSelectionRange(K,Y),b.current.scrollTop=G}}catch{}},E=c.useState(ub),P=X(E,2),M=P[0],D=P[1],R=c.useState(),_=X(R,2),T=_[0],k=_[1],N=function(){D(sb)};Kt(function(){w&&N()},[a,$,x,w]),Kt(function(){if(M===sb)D(cb);else if(M===cb){var V=nie(b.current,!1,$,x);D(ub),k(V)}else O()},[M]);var j=c.useRef(),A=function(){At.cancel(j.current)},B=function(U){M===ub&&(l==null||l(U),i&&(A(),j.current=At(function(){N()})))};c.useEffect(function(){return A},[]);var z=w?T:null,H=I(I({},u),z);return(M===sb||M===cb)&&(H.overflowY="hidden",H.overflowX="hidden"),c.createElement(Sr,{onResize:B,disabled:!(i||l)},c.createElement("textarea",be({},m,{ref:b,style:H,className:Z(r,s,L({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:y})))}),aie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],iie=W.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,p=e.showCount,y=e.count,b=e.className,C=e.style,S=e.disabled,$=e.hidden,x=e.classNames,w=e.styles,O=e.onResize,E=ze(e,aie),P=Pt(o,{value:a,defaultValue:o}),M=X(P,2),D=M[0],R=M[1],_=D==null?"":String(D),T=W.useState(!1),k=X(T,2),N=k[0],j=k[1],A=W.useRef(!1),B=W.useState(null),z=X(B,2),H=z[0],V=z[1],U=c.useRef(null),K=function(){var Ee;return(Ee=U.current)===null||Ee===void 0?void 0:Ee.textArea},Y=function(){K().focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:U.current,focus:Y,blur:function(){K().blur()}}}),c.useEffect(function(){j(function(Re){return!S&&Re})},[S]);var G=W.useState(null),q=X(G,2),J=q[0],Q=q[1];W.useEffect(function(){if(J){var Re;(Re=K()).setSelectionRange.apply(Re,Te(J))}},[J]);var ne=K7(y,p),re=(n=ne.max)!==null&&n!==void 0?n:d,oe=Number(re)>0,te=ne.strategy(_),ee=!!re&&te>re,ie=function(Ee,_e){var Fe=_e;!A.current&&ne.exceedFormatter&&ne.max&&ne.strategy(_e)>ne.max&&(Fe=ne.exceedFormatter(_e,{max:ne.max}),_e!==Fe&&Q([K().selectionStart||0,K().selectionEnd||0])),R(Fe),Cp(Ee.currentTarget,Ee,s,Fe)},de=function(Ee){A.current=!0,f==null||f(Ee)},he=function(Ee){A.current=!1,ie(Ee,Ee.currentTarget.value),m==null||m(Ee)},fe=function(Ee){ie(Ee,Ee.target.value)},le=function(Ee){var _e=E.onPressEnter,Fe=E.onKeyDown;Ee.key==="Enter"&&_e&&_e(Ee),Fe==null||Fe(Ee)},me=function(Ee){j(!0),i==null||i(Ee)},ye=function(Ee){j(!1),l==null||l(Ee)},ge=function(Ee){R(""),Y(),Cp(K(),Ee,s)},ve=h,$e;ne.show&&(ne.showFormatter?$e=ne.showFormatter({value:_,count:te,maxLength:re}):$e="".concat(te).concat(oe?" / ".concat(re):""),ve=W.createElement(W.Fragment,null,ve,W.createElement("span",{className:Z("".concat(v,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},$e)));var Ce=function(Ee){var _e;O==null||O(Ee),(_e=K())!==null&&_e!==void 0&&_e.style.height&&V(!0)},Oe=!E.autoSize&&!p&&!u;return W.createElement(ow,{value:_,allowClear:u,handleReset:ge,suffix:ve,prefixCls:v,classNames:I(I({},x),{},{affixWrapper:Z(x==null?void 0:x.affixWrapper,(r={},L(r,"".concat(v,"-show-count"),p),L(r,"".concat(v,"-textarea-allow-clear"),u),r))}),disabled:S,focused:N,className:Z(b,ee&&"".concat(v,"-out-of-range")),style:I(I({},C),H&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $e=="string"?$e:void 0}},hidden:$},W.createElement(oie,be({},E,{maxLength:d,onKeyDown:le,onChange:fe,onFocus:me,onBlur:ye,onCompositionStart:de,onCompositionEnd:he,className:Z(x==null?void 0:x.textarea),style:I(I({},w==null?void 0:w.textarea),{},{resize:C==null?void 0:C.resize}),disabled:S,prefixCls:v,onResize:Ce,ref:U})))}),lie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:h,styles:g,variant:v}=e,p=lie(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:C}=c.useContext(at),S=nr(i),$=c.useContext(Kr),x=l??$,{status:w,hasFeedback:O,feedbackIcon:E}=c.useContext(yr),P=xl(w,s),M=c.useRef(null);c.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:z=>{var H,V;Dae((V=(H=M.current)===null||H===void 0?void 0:H.resizableTextArea)===null||V===void 0?void 0:V.textArea,z)},blur:()=>{var z;return(z=M.current)===null||z===void 0?void 0:z.blur()}}});const D=y("input",o),R=pn(D),[_,T,k]=X2(D,R),[N,j]=wl(v,a),A=Y7(u??(C==null?void 0:C.allowClear));return _(c.createElement(iie,Object.assign({autoComplete:C==null?void 0:C.autoComplete},p,{style:Object.assign(Object.assign({},C==null?void 0:C.style),h),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),g),disabled:x,allowClear:A,className:Z(k,R,m,f,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},d),C==null?void 0:C.classNames),{textarea:Z({[`${D}-sm`]:S==="small",[`${D}-lg`]:S==="large"},T,d==null?void 0:d.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Z({[`${D}-${N}`]:j},ya(D,P)),affixWrapper:Z(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:b==="rtl",[`${D}-affix-wrapper-sm`]:S==="small",[`${D}-affix-wrapper-lg`]:S==="large",[`${D}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},T)}),prefixCls:D,suffix:O&&c.createElement("span",{className:`${D}-textarea-suffix`},E),ref:M})))}),cie=sie,Sm=aw;Sm.Group=_ae;Sm.Search=Zae;Sm.TextArea=cie;Sm.Password=Yae;const Vo=Sm,uie=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,P3=e=>uie.test(`#${e}`),die=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=c.useState(n==null?void 0:n.toHex());c.useEffect(()=>{const s=n==null?void 0:n.toHex();P3(s)&&n&&i(cg(s))},[n]);const l=s=>{const u=s.target.value;i(cg(u)),P3(cg(u,!0))&&(r==null||r(Vr(u)))};return W.createElement(Vo,{className:o,value:a,prefix:"#",onChange:l,size:"small"})},fie=die,mie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=(s,u)=>{const d=a.toHsb();d[u]=u==="h"?s:(s||0)/100;const f=Vr(d);n||i(f),r==null||r(f)};return W.createElement("div",{className:o},W.createElement(ns,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:s=>ug(s||0).toString(),onChange:s=>l(Number(s),"h")}),W.createElement(ns,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:s=>`${ug(s||0)}%`,onChange:s=>l(Number(s),"s")}),W.createElement(ns,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:s=>`${ug(s||0)}%`,onChange:s=>l(Number(s),"b")}))},vie=mie,gie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=(s,u)=>{const d=a.toRgb();d[u]=s||0;const f=Vr(d);n||i(f),r==null||r(f)};return W.createElement("div",{className:o},W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:s=>l(Number(s),"r")}),W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:s=>l(Number(s),"g")}),W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:s=>l(Number(s),"b")}))},pie=gie,hie=[oi.hex,oi.hsb,oi.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),yie=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[l,s]=Pt(oi.hex,{value:n,onChange:a}),u=`${t}-input`,d=m=>{s(m)},f=c.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(l){case oi.hsb:return W.createElement(vie,Object.assign({},m));case oi.rgb:return W.createElement(pie,Object.assign({},m));case oi.hex:default:return W.createElement(fie,Object.assign({},m))}},[l,t,r,i]);return W.createElement("div",{className:`${u}-container`},W.createElement(Ta,{value:l,variant:"borderless",getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:hie}),W.createElement("div",{className:u},f),!o&&W.createElement(Mae,{prefixCls:t,value:r,onChange:i}))},bie=yie;var Cie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const e=c.useContext(B7),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:l,onChangeComplete:s}=e,u=Cie(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return W.createElement(W.Fragment,null,r&&W.createElement(H7,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:d=>{i==null||i(d),l==null||l()}},u)),W.createElement(Yoe,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(d,f)=>i==null?void 0:i(d,f,!0),onChangeComplete:s}),W.createElement(bie,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},u)))},O3=Sie,db=e=>e.map(t=>(t.colors=t.colors.map(Vr),t)),xie=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new yp(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},I3=e=>{let{label:t}=e;return`panel-${t}`},wie=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=xi("ColorPicker"),[,i]=cr(),[l]=Pt(db(n),{value:db(n),postState:db}),s=`${t}-presets`,u=c.useMemo(()=>l.reduce((m,h)=>{const{defaultOpen:g=!0}=h;return g&&m.push(I3(h)),m},[]),[l]),d=m=>{o==null||o(m)},f=l.map(m=>{var h;return{key:I3(m),label:W.createElement("div",{className:`${s}-label`},m==null?void 0:m.label),children:W.createElement("div",{className:`${s}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map((g,v)=>W.createElement(tw,{key:`preset-${v}-${g.toHexString()}`,color:Vr(g).toRgbString(),prefixCls:t,className:Z(`${s}-color`,{[`${s}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:xie(g,i.colorBgElevated)}),onClick:()=>d(g)})):W.createElement("span",{className:`${s}-empty`},a.presetEmpty))}});return W.createElement("div",{className:s},W.createElement(Noe,{defaultActiveKey:u,ghost:!0,items:f}))},$ie=wie,Eie=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=c.useContext(z7);return Array.isArray(n)?W.createElement($ie,{value:t,presets:n,prefixCls:e,onChange:r}):null},M3=Eie;var Pie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,l=Pie(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${t}-inner`,u=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},l),d=W.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),f=W.createElement("div",{className:`${s}-content`},W.createElement(O3,null),Array.isArray(n)&&W.createElement(mc,null),W.createElement(M3,null));return W.createElement(Xoe,{value:u},W.createElement(Qoe,{value:d},W.createElement("div",{className:s},typeof r=="function"?r(f,{components:{Picker:O3,Presets:M3}}):f)))},Iie=Oie;var Mie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:l,className:s,showText:u}=e,d=Mie(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),f=`${r}-trigger`,m=c.useMemo(()=>a?W.createElement(H7,{prefixCls:r}):W.createElement(tw,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=bp(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof u=="function")return u(n);if(u)return h()};return W.createElement("div",Object.assign({ref:t,className:Z(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},d),m,u&&W.createElement("div",{className:`${f}-text`},g()))}),_ie=Rie;function R3(e){return e!==void 0}const Tie=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=c.useState(()=>{let i;return R3(r)?i=r:R3(n)?i=n:i=e,Vr(i||"")});return c.useEffect(()=>{r&&a(Vr(r))},[r]),[o,a]},Z7=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),_3=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},Z7("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${ae(a)} solid ${i}`,borderRadius:"inherit"}})}},Nie=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:l,controlHeightSM:s,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${ae(a)}`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(i).equal(),fontSize:r,lineHeight:`${ae(s)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${ae(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ae(e.calc(s).sub(e.calc(g).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},jie=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:u,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:f}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:u,height:u,border:`${ae(s)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:e.calc(f).div(2).equal(),[`${t}-palette`]:{height:f},[`${t}-gradient`]:{borderRadius:e.calc(f).div(2).equal(),boxShadow:o},"&-alpha":Z7(`${ae(f)}`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},Die=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:l,lineHeightSM:s,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:h,paddingXS:g,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${ae(g)} 0`},"&-label":{fontSize:i,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(u).mul(4)).equal(),height:e.calc(a).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${ae(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},zC=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${n}`,outline:0}),Fie=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},T3=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,colorBorder:l,red6:s}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${ae(a)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}})}},kie=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},zC(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},zC(e,r,l))}}},Lie=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:s}}}},Aie=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:a,colorBgElevated:i,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:h,controlHeightSM:g,colorBgTextActive:v,colorPickerPresetColorSize:p,colorPickerPreviewSize:y,lineWidth:b,colorBorder:C,paddingXXS:S,fontSize:$,colorPrimaryHover:x,controlOutline:w}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ae(m)} 0 ${ae(f)}`}},[`${n}-panel`]:Object.assign({},jie(e))},_3(e,y)),Nie(e)),Die(e)),T3(e,p,{marginInlineStart:"auto",marginBottom:f})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,height:h,borderRadius:d,border:`${ae(b)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${a}`,background:i,padding:e.calc(S).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(S).sub(b)).equal(),fontSize:$,color:s},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:Object.assign({},zC(e,o,w)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:l}}},T3(e,g)),_3(e,g)),kie(e)),Lie(e))},Fie(e))}]},Bie=Ht("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=_t(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[Aie(o)]});var zie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:l,trigger:s="click",open:u,disabled:d,placement:f="bottomLeft",arrow:m=!0,panelRender:h,showText:g,style:v,className:p,size:y,rootClassName:b,prefixCls:C,styles:S,disabledAlpha:$=!1,onFormatChange:x,onChange:w,onClear:O,onOpenChange:E,onChangeComplete:P,getPopupContainer:M,autoAdjustOverflow:D=!0,destroyTooltipOnHide:R}=e,_=zie(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:T,direction:k,colorPicker:N}=c.useContext(at),j=c.useContext(Kr),A=d??j,[B,z]=Tie("",{value:t,defaultValue:n}),[H,V]=Pt(!1,{value:u,postState:Oe=>!A&&Oe,onChange:E}),[U,K]=Pt(r,{value:r,defaultValue:o,onChange:x}),[Y,G]=c.useState(!t&&!n),q=T("color-picker",C),J=c.useMemo(()=>bp(B)<100,[B]),{status:Q}=W.useContext(yr),ne=nr(y),re=pn(q),[oe,te,ee]=Bie(q,re),ie={[`${q}-rtl`]:k},de=Z(b,ee,re,ie),he=Z(ya(q,Q),{[`${q}-sm`]:ne==="small",[`${q}-lg`]:ne==="large"},N==null?void 0:N.className,de,p,te),fe=Z(q,de),le=c.useRef(!0),me=(Oe,Re,Ee)=>{let _e=Vr(Oe);(Y||(t===null||!t&&n===null))&&(G(!1),bp(B)===0&&Re!=="alpha"&&(_e=ib(_e))),$&&J&&(_e=ib(_e)),Ee?le.current=!1:P==null||P(_e),z(_e),w==null||w(_e,_e.toHexString())},ye=()=>{G(!0),O==null||O()},ge=Oe=>{le.current=!0;let Re=Vr(Oe);$&&J&&(Re=ib(Oe)),P==null||P(Re)},ve={open:H,trigger:s,placement:f,arrow:m,rootClassName:b,getPopupContainer:M,autoAdjustOverflow:D,destroyTooltipOnHide:R},$e={prefixCls:q,color:B,allowClear:a,colorCleared:Y,disabled:A,disabledAlpha:$,presets:i,panelRender:h,format:U,onFormatChange:K,onChangeComplete:ge},Ce=Object.assign(Object.assign({},N==null?void 0:N.style),v);return oe(W.createElement(bs,Object.assign({style:S==null?void 0:S.popup,overlayInnerStyle:S==null?void 0:S.popupOverlayInner,onOpenChange:Oe=>{le.current&&!A&&V(Oe)},content:W.createElement(us,{override:!0,status:!0},W.createElement(Iie,Object.assign({},$e,{onChange:me,onChangeComplete:ge,onClear:ye}))),overlayClassName:fe},ve),l||W.createElement(_ie,Object.assign({open:H,className:he,style:Ce,color:t?Vr(t):B,prefixCls:q,disabled:A,colorCleared:Y,showText:g,format:U},_))))},Hie=Sl(lw,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));lw._InternalPanelDoNotUseOrYouWillBeFired=Hie;const Vie=lw;var Wie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const Kie=Wie;var Uie=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Kie}))},Gie=c.forwardRef(Uie);const J7=Gie;var qie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Yie=qie;var Xie=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Yie}))},Qie=c.forwardRef(Xie);const e9=Qie;var Zie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const Jie=Zie;var ele=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Jie}))},tle=c.forwardRef(ele);const nle=tle;function rle(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ole(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function sw(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function t9(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=Wh(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}function ale(e){return c.createElement(Nr,Object.assign({size:"small",type:"primary"},e))}function n9(e){return c.useMemo(()=>Object.assign({button:ale},e),[e])}var ile=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,getPopupContainer:i,components:l,className:s,style:u,placement:d,size:f,disabled:m,bordered:h=!0,placeholder:g,popupClassName:v,dropdownClassName:p,status:y,rootClassName:b,variant:C}=n,S=ile(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),$=c.useRef(null),{getPrefixCls:x,direction:w,getPopupContainer:O,rangePicker:E}=c.useContext(at),P=x("picker",a),{compactSize:M,compactItemClassnames:D}=Va(P,w),{picker:R}=n,_=x(),[T,k]=wl(C,h),N=pn(P),[j,A,B]=e7(P,N),[z]=t9(n,P),H=n9(l),V=nr(te=>{var ee;return(ee=f??M)!==null&&ee!==void 0?ee:te}),U=c.useContext(Kr),K=m??U,Y=c.useContext(yr),{hasFeedback:G,status:q,feedbackIcon:J}=Y,Q=c.createElement(c.Fragment,null,R==="time"?c.createElement(e9,null):c.createElement(J7,null),G&&J);c.useImperativeHandle(r,()=>$.current);const[ne]=xi("Calendar",tp),re=Object.assign(Object.assign({},ne),n.locale),[oe]=Uo("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return j(c.createElement(ka,null,c.createElement(nte,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${P}-separator`},c.createElement(nle,null)),disabled:K,ref:$,popupAlign:sw(w,d),placeholder:ole(re,R,g),suffixIcon:Q,prevIcon:c.createElement("span",{className:`${P}-prev-icon`}),nextIcon:c.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${_}-slide-up`},S,{className:Z({[`${P}-${V}`]:V,[`${P}-${T}`]:k},ya(P,xl(q,y),G),A,D,s,E==null?void 0:E.className,B,N,b),style:Object.assign(Object.assign({},E==null?void 0:E.style),u),locale:re.lang,prefixCls:P,getPopupContainer:i||O,generateConfig:e,components:H,direction:w,classNames:{popup:Z(A,v||p,B,N,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:oe})},allowClear:z}))))})}var sle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var g;const{prefixCls:v,getPopupContainer:p,components:y,style:b,className:C,rootClassName:S,size:$,bordered:x,placement:w,placeholder:O,popupClassName:E,dropdownClassName:P,disabled:M,status:D,variant:R,onCalendarChange:_}=m,T=sle(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:j,[d]:A}=c.useContext(at),B=k("picker",v),{compactSize:z,compactItemClassnames:H}=Va(B,N),V=c.useRef(null),[U,K]=wl(R,x),Y=pn(B),[G,q,J]=e7(B,Y);c.useImperativeHandle(h,()=>V.current);const Q={showToday:!0},ne=s||m.picker,re=k(),{onSelect:oe,multiple:te}=T,ee=oe&&s==="time"&&!te,ie=(Fe,qe,Ze)=>{_==null||_(Fe,qe,Ze),ee&&oe(Fe)},[de,he]=t9(m,B),fe=n9(y),le=nr(Fe=>{var qe;return(qe=$??z)!==null&&qe!==void 0?qe:Fe}),me=c.useContext(Kr),ye=M??me,ge=c.useContext(yr),{hasFeedback:ve,status:$e,feedbackIcon:Ce}=ge,Oe=c.createElement(c.Fragment,null,ne==="time"?c.createElement(e9,null):c.createElement(J7,null),ve&&Ce),[Re]=xi("DatePicker",tp),Ee=Object.assign(Object.assign({},Re),m.locale),[_e]=Uo("DatePicker",(g=m.popupStyle)===null||g===void 0?void 0:g.zIndex);return G(c.createElement(ka,null,c.createElement(ste,Object.assign({ref:V,placeholder:rle(Ee,ne,O),suffixIcon:Oe,dropdownAlign:sw(N,w),prevIcon:c.createElement("span",{className:`${B}-prev-icon`}),nextIcon:c.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${re}-slide-up`,picker:s,onCalendarChange:ie},Q,T,{locale:Ee.lang,className:Z({[`${B}-${le}`]:le,[`${B}-${U}`]:K},ya(B,xl($e,D),ve),q,H,A==null?void 0:A.className,C,J,Y,S),style:Object.assign(Object.assign({},A==null?void 0:A.style),b),prefixCls:B,getPopupContainer:p||j,generateConfig:e,components:fe,direction:N,disabled:ye,classNames:{popup:Z(q,J,Y,S,E||P)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:_e})},allowClear:de,removeIcon:he}))))})}const n=t(),r=t("week","WeekPicker"),o=t("month","MonthPicker"),a=t("year","YearPicker"),i=t("quarter","QuarterPicker"),l=t("time","TimePicker");return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:i}}function r9(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=cle(e),l=lle(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=a,s.QuarterPicker=i,s}const Ru=r9(fee);function o9(e){const t=sw(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const ule=Sl(Ru,"picker",null,o9);Ru._InternalPanelDoNotUseOrYouWillBeFired=ule;const dle=Sl(Ru.RangePicker,"picker",null,o9);Ru._InternalRangePanelDoNotUseOrYouWillBeFired=dle;Ru.generatePicker=r9;const fs=Ru;var N3=c.createContext(null),a9=c.createContext({}),fle=["prefixCls","className","containerRef"],mle=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,a=ze(t,fle),i=c.useContext(a9),l=i.panel,s=za(l,o);return c.createElement("div",be({className:Z("".concat(n,"-content"),r),role:"dialog",ref:s},Qn(t,{aria:!0}),{"aria-modal":"true"},a))};function j3(e){return typeof e=="string"&&String(Number(e))===e?(cn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var D3={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vle(e,t){var n,r,o,a=e.prefixCls,i=e.open,l=e.placement,s=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,h=e.classNames,g=e.rootClassName,v=e.rootStyle,p=e.zIndex,y=e.className,b=e.id,C=e.style,S=e.motion,$=e.width,x=e.height,w=e.children,O=e.mask,E=e.maskClosable,P=e.maskMotion,M=e.maskClassName,D=e.maskStyle,R=e.afterOpenChange,_=e.onClose,T=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,j=e.onClick,A=e.onKeyDown,B=e.onKeyUp,z=e.styles,H=c.useRef(),V=c.useRef(),U=c.useRef();c.useImperativeHandle(t,function(){return H.current});var K=function(me){var ye=me.keyCode,ge=me.shiftKey;switch(ye){case Ie.TAB:{if(ye===Ie.TAB){if(!ge&&document.activeElement===U.current){var ve;(ve=V.current)===null||ve===void 0||ve.focus({preventScroll:!0})}else if(ge&&document.activeElement===V.current){var $e;($e=U.current)===null||$e===void 0||$e.focus({preventScroll:!0})}}break}case Ie.ESC:{_&&m&&(me.stopPropagation(),_(me));break}}};c.useEffect(function(){if(i&&f){var le;(le=H.current)===null||le===void 0||le.focus({preventScroll:!0})}},[i]);var Y=c.useState(!1),G=X(Y,2),q=G[0],J=G[1],Q=c.useContext(N3),ne;typeof u=="boolean"?ne=u?{}:{distance:0}:ne=u||{};var re=(n=(r=(o=ne)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:Q==null?void 0:Q.pushDistance)!==null&&n!==void 0?n:180,oe=c.useMemo(function(){return{pushDistance:re,push:function(){J(!0)},pull:function(){J(!1)}}},[re]);c.useEffect(function(){if(i){var le;Q==null||(le=Q.push)===null||le===void 0||le.call(Q)}else{var me;Q==null||(me=Q.pull)===null||me===void 0||me.call(Q)}},[i]),c.useEffect(function(){return function(){var le;Q==null||(le=Q.pull)===null||le===void 0||le.call(Q)}},[]);var te=O&&c.createElement(wr,be({key:"mask"},P,{visible:i}),function(le,me){var ye=le.className,ge=le.style;return c.createElement("div",{className:Z("".concat(a,"-mask"),ye,h==null?void 0:h.mask,M),style:I(I(I({},ge),D),z==null?void 0:z.mask),onClick:E&&i?_:void 0,ref:me})}),ee=typeof S=="function"?S(l):S,ie={};if(q&&re)switch(l){case"top":ie.transform="translateY(".concat(re,"px)");break;case"bottom":ie.transform="translateY(".concat(-re,"px)");break;case"left":ie.transform="translateX(".concat(re,"px)");break;default:ie.transform="translateX(".concat(-re,"px)");break}l==="left"||l==="right"?ie.width=j3($):ie.height=j3(x);var de={onMouseEnter:T,onMouseOver:k,onMouseLeave:N,onClick:j,onKeyDown:A,onKeyUp:B},he=c.createElement(wr,be({key:"panel"},ee,{visible:i,forceRender:d,onVisibleChanged:function(me){R==null||R(me)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(le,me){var ye=le.className,ge=le.style;return c.createElement("div",be({className:Z("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,ye),style:I(I(I({},ie),ge),z==null?void 0:z.wrapper)},Qn(e,{data:!0})),c.createElement(mle,be({id:b,containerRef:me,prefixCls:a,className:Z(y,h==null?void 0:h.content),style:I(I({},C),z==null?void 0:z.content)},Qn(e,{aria:!0}),de),w))}),fe=I({},v);return p&&(fe.zIndex=p),c.createElement(N3.Provider,{value:oe},c.createElement("div",{className:Z(a,"".concat(a,"-").concat(l),g,L(L({},"".concat(a,"-open"),i),"".concat(a,"-inline"),s)),style:fe,tabIndex:-1,ref:H,onKeyDown:K},te,c.createElement("div",{tabIndex:0,ref:V,style:D3,"aria-hidden":"true","data-sentinel":"start"}),he,c.createElement("div",{tabIndex:0,ref:U,style:D3,"aria-hidden":"true","data-sentinel":"end"})))}var gle=c.forwardRef(vle),ple=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,a=o===void 0?"rc-drawer":o,i=t.placement,l=i===void 0?"right":i,s=t.autoFocus,u=s===void 0?!0:s,d=t.keyboard,f=d===void 0?!0:d,m=t.width,h=m===void 0?378:m,g=t.mask,v=g===void 0?!0:g,p=t.maskClosable,y=p===void 0?!0:p,b=t.getContainer,C=t.forceRender,S=t.afterOpenChange,$=t.destroyOnClose,x=t.onMouseEnter,w=t.onMouseOver,O=t.onMouseLeave,E=t.onClick,P=t.onKeyDown,M=t.onKeyUp,D=t.panelRef,R=c.useState(!1),_=X(R,2),T=_[0],k=_[1],N=c.useState(!1),j=X(N,2),A=j[0],B=j[1];Kt(function(){B(!0)},[]);var z=A?r:!1,H=c.useRef(),V=c.useRef();Kt(function(){z&&(V.current=document.activeElement)},[z]);var U=function(J){var Q;if(k(J),S==null||S(J),!J&&V.current&&!((Q=H.current)!==null&&Q!==void 0&&Q.contains(V.current))){var ne;(ne=V.current)===null||ne===void 0||ne.focus({preventScroll:!0})}},K=c.useMemo(function(){return{panel:D}},[D]);if(!C&&!T&&!z&&$)return null;var Y={onMouseEnter:x,onMouseOver:w,onMouseLeave:O,onClick:E,onKeyDown:P,onKeyUp:M},G=I(I({},t),{},{open:z,prefixCls:a,placement:l,autoFocus:u,keyboard:f,width:h,mask:v,maskClosable:y,inline:b===!1,afterOpenChange:U,ref:H},Y);return c.createElement(a9.Provider,{value:K},c.createElement(cm,{open:z||C||T,autoDestroy:!1,getContainer:b,autoLock:v&&(z||T)},c.createElement(gle,G)))};const hle=e=>{var t,n;const{prefixCls:r,title:o,footer:a,extra:i,closeIcon:l,closable:s,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:m,children:h,classNames:g,styles:v}=e,{drawer:p}=c.useContext(at),y=c.useCallback(w=>c.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},w),[u]),b=c.useMemo(()=>typeof(p==null?void 0:p.closable)=="object"&&p.closable.closeIcon?p.closable.closeIcon:p==null?void 0:p.closeIcon,[p==null?void 0:p.closable,p==null?void 0:p.closeIcon]),[C,S]=A_({closable:s??(p==null?void 0:p.closable),closeIcon:typeof l<"u"?l:b,customCloseIconRender:y,defaultClosable:!0}),$=c.useMemo(()=>{var w,O;return!o&&!C?null:c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=p==null?void 0:p.styles)===null||w===void 0?void 0:w.header),d),v==null?void 0:v.header),className:Z(`${r}-header`,{[`${r}-header-close-only`]:C&&!o&&!i},(O=p==null?void 0:p.classNames)===null||O===void 0?void 0:O.header,g==null?void 0:g.header)},c.createElement("div",{className:`${r}-header-title`},S,o&&c.createElement("div",{className:`${r}-title`},o)),i&&c.createElement("div",{className:`${r}-extra`},i))},[C,S,i,d,r,o]),x=c.useMemo(()=>{var w,O;if(!a)return null;const E=`${r}-footer`;return c.createElement("div",{className:Z(E,(w=p==null?void 0:p.classNames)===null||w===void 0?void 0:w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(O=p==null?void 0:p.styles)===null||O===void 0?void 0:O.footer),m),v==null?void 0:v.footer)},a)},[a,m,r]);return c.createElement(c.Fragment,null,$,c.createElement("div",{className:Z(`${r}-body`,g==null?void 0:g.body,(t=p==null?void 0:p.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=p==null?void 0:p.styles)===null||n===void 0?void 0:n.body),f),v==null?void 0:v.body)},h),x)},i9=hle,yle=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},l9=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),s9=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},l9({opacity:e},{opacity:1})),ble=(e,t)=>[s9(.7,t),l9({transform:yle(e)},{transform:"none"})],Cle=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:s9(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:ble(o,n)}),{})}}},Sle=Cle,xle=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:a,motionDurationSlow:i,motionDurationMid:l,paddingXS:s,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:h,lineType:g,colorSplit:v,marginXS:p,colorIcon:y,colorIconHover:b,colorBgTextHover:C,colorBgTextActive:S,colorText:$,fontWeightStrong:x,footerPaddingBlock:w,footerPaddingInline:O,calc:E}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae(u)} ${ae(d)}`,fontSize:f,lineHeight:m,borderBottom:`${ae(h)} ${g} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:E(f).add(s).equal(),height:E(f).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:p,color:y,fontWeight:x,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:S}},ha(e)),[`${n}-title`]:{flex:1,margin:0,color:$,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto"},[`${n}-footer`]:{flexShrink:0,padding:`${ae(w)} ${ae(O)}`,borderTop:`${ae(h)} ${g} ${v}`},"&-rtl":{direction:"rtl"}}}},wle=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),c9=Ht("Drawer",e=>{const t=_t(e,{});return[xle(t),Sle(t)]},wle);var u9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:a=!0,push:i=$le,open:l,afterOpenChange:s,onClose:u,prefixCls:d,getContainer:f,style:m,className:h,visible:g,afterVisibleChange:v,maskStyle:p,drawerStyle:y,contentWrapperStyle:b}=e,C=u9(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:$,direction:x,drawer:w}=c.useContext(at),O=$("drawer",d),[E,P,M]=c9(O),D=f===void 0&&S?()=>S(document.body):f,R=Z({"no-mask":!a,[`${O}-rtl`]:x==="rtl"},t,P,M),_=c.useMemo(()=>n??(o==="large"?736:378),[n,o]),T=c.useMemo(()=>r??(o==="large"?736:378),[r,o]),k={motionName:$r(O,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=K=>({motionName:$r(O,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),j=X_(),[A,B]=Uo("Drawer",C.zIndex),{classNames:z={},styles:H={}}=C,{classNames:V={},styles:U={}}=w||{};return E(c.createElement(ka,null,c.createElement(us,{status:!0,override:!0},c.createElement(am.Provider,{value:B},c.createElement(ple,Object.assign({prefixCls:O,onClose:u,maskMotion:k,motion:N},C,{classNames:{mask:Z(z.mask,V.mask),content:Z(z.content,V.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),p),U.mask),content:Object.assign(Object.assign(Object.assign({},H.content),y),U.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),b),U.wrapper)},open:l??g,mask:a,push:i,width:_,height:T,style:Object.assign(Object.assign({},w==null?void 0:w.style),m),className:Z(w==null?void 0:w.className,h),rootClassName:R,getContainer:D,afterOpenChange:s??v,panelRef:j,zIndex:A}),c.createElement(i9,Object.assign({prefixCls:O},C,{onClose:u})))))))},Ele=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=u9(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=c.useContext(at),l=i("drawer",t),[s,u,d]=c9(l),f=Z(l,`${l}-pure`,`${l}-${o}`,u,d,r);return s(c.createElement("div",{className:f,style:n},c.createElement(i9,Object.assign({prefixCls:l},a))))};d9._InternalPanelDoNotUseOrYouWillBeFired=Ele;const f9=d9;function F3(e){return["small","middle","large"].includes(e)}function k3(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const m9=W.createContext({latestIndex:0}),Ple=m9.Provider,Ole=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=c.useContext(m9);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=c.useContext(at),{size:l=(a==null?void 0:a.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:y,styles:b}=e,C=Mle(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(l)?l:[l,l],x=F3($),w=F3(S),O=k3($),E=k3(S),P=sr(f,{keepEmpty:!0}),M=s===void 0&&m==="horizontal"?"center":s,D=o("space",h),[R,_,T]=$_(D),k=Z(D,a==null?void 0:a.className,_,`${D}-${m}`,{[`${D}-rtl`]:i==="rtl",[`${D}-align-${M}`]:M,[`${D}-gap-row-${$}`]:x,[`${D}-gap-col-${S}`]:w},u,d,T),N=Z(`${D}-item`,(n=y==null?void 0:y.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let j=0;const A=P.map((H,V)=>{var U,K;H!=null&&(j=V);const Y=H&&H.key||`${N}-${V}`;return c.createElement(Ile,{className:N,key:Y,index:V,split:g,style:(U=b==null?void 0:b.item)!==null&&U!==void 0?U:(K=a==null?void 0:a.styles)===null||K===void 0?void 0:K.item},H)}),B=c.useMemo(()=>({latestIndex:j}),[j]);if(P.length===0)return null;const z={};return p&&(z.flexWrap="wrap"),!w&&E&&(z.columnGap=S),!x&&O&&(z.rowGap=$),R(c.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},z),a==null?void 0:a.style),v)},C),c.createElement(Ple,{value:B},A)))}),v9=Rle;v9.Compact=PK;const hi=v9;var _le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(at),{prefixCls:o,type:a="default",danger:i,disabled:l,loading:s,onClick:u,htmlType:d,children:f,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:y,align:b,open:C,onOpenChange:S,placement:$,getPopupContainer:x,href:w,icon:O=c.createElement(_2,null),title:E,buttonsRender:P=q=>q,mouseEnterDelay:M,mouseLeaveDelay:D,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:k}=e,N=_le(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",o),A=`${j}-button`,B={menu:h,arrow:g,autoFocus:v,align:b,disabled:l,trigger:l?[]:y,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:M,mouseLeaveDelay:D,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:k},{compactSize:z,compactItemClassnames:H}=Va(j,r),V=Z(A,H,m);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=$:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const U=c.createElement(Nr,{type:a,danger:i,disabled:l,loading:s,onClick:u,htmlType:d,href:w,title:E},f),K=c.createElement(Nr,{type:a,danger:i,icon:O}),[Y,G]=P([U,K]);return c.createElement(hi.Compact,Object.assign({className:V,size:z,block:!0},N),Y,c.createElement(j2,Object.assign({},B),G))};g9.__ANT_BUTTON=!0;const Tle=g9,p9=j2;p9.Button=Tle;const Nle=p9;function Sp(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const jle=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, +`,yle=["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"],ub={},Ro;function ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ub[n])return ub[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=yle.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(ub[n]=s),s}function Cle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ro||(Ro=document.createElement("textarea"),Ro.setAttribute("tab-index","-1"),Ro.setAttribute("aria-hidden","true"),document.body.appendChild(Ro)),e.getAttribute("wrap")?Ro.setAttribute("wrap",e.getAttribute("wrap")):Ro.removeAttribute("wrap");var o=ble(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Ro.setAttribute("style","".concat(s,";").concat(hle)),Ro.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Ro.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){Ro.value=" ";var h=Ro.scrollHeight-a;n!==null&&(u=h*n,l==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=h*r,l==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var g={height:m,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var Sle=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],db=0,fb=1,mb=2,xle=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ze(n,Sle),h=Pt(o,{value:a,postState:function(U){return U??""}}),g=X(h,2),v=g[0],p=g[1],y=function(U){p(U.target.value),f==null||f(U)},b=c.useRef();c.useImperativeHandle(t,function(){return{textArea:b.current}});var C=c.useMemo(function(){return i&&et(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=X(C,2),$=S[0],x=S[1],w=!!i,O=function(){try{if(document.activeElement===b.current){var U=b.current,K=U.selectionStart,Y=U.selectionEnd,G=U.scrollTop;b.current.setSelectionRange(K,Y),b.current.scrollTop=G}}catch{}},E=c.useState(mb),P=X(E,2),M=P[0],D=P[1],R=c.useState(),_=X(R,2),T=_[0],k=_[1],N=function(){D(db)};Kt(function(){w&&N()},[a,$,x,w]),Kt(function(){if(M===db)D(fb);else if(M===fb){var V=Cle(b.current,!1,$,x);D(mb),k(V)}else O()},[M]);var j=c.useRef(),A=function(){At.cancel(j.current)},B=function(U){M===mb&&(l==null||l(U),i&&(A(),j.current=At(function(){N()})))};c.useEffect(function(){return A},[]);var z=w?T:null,H=I(I({},u),z);return(M===db||M===fb)&&(H.overflowY="hidden",H.overflowX="hidden"),c.createElement(Sr,{onResize:B,disabled:!(i||l)},c.createElement("textarea",be({},m,{ref:b,style:H,className:Z(r,s,L({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:y})))}),wle=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],$le=W.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,p=e.showCount,y=e.count,b=e.className,C=e.style,S=e.disabled,$=e.hidden,x=e.classNames,w=e.styles,O=e.onResize,E=ze(e,wle),P=Pt(o,{value:a,defaultValue:o}),M=X(P,2),D=M[0],R=M[1],_=D==null?"":String(D),T=W.useState(!1),k=X(T,2),N=k[0],j=k[1],A=W.useRef(!1),B=W.useState(null),z=X(B,2),H=z[0],V=z[1],U=c.useRef(null),K=function(){var Ee;return(Ee=U.current)===null||Ee===void 0?void 0:Ee.textArea},Y=function(){K().focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:U.current,focus:Y,blur:function(){K().blur()}}}),c.useEffect(function(){j(function(Re){return!S&&Re})},[S]);var G=W.useState(null),q=X(G,2),J=q[0],Q=q[1];W.useEffect(function(){if(J){var Re;(Re=K()).setSelectionRange.apply(Re,Te(J))}},[J]);var ne=u9(y,p),re=(n=ne.max)!==null&&n!==void 0?n:d,oe=Number(re)>0,te=ne.strategy(_),ee=!!re&&te>re,ie=function(Ee,_e){var Fe=_e;!A.current&&ne.exceedFormatter&&ne.max&&ne.strategy(_e)>ne.max&&(Fe=ne.exceedFormatter(_e,{max:ne.max}),_e!==Fe&&Q([K().selectionStart||0,K().selectionEnd||0])),R(Fe),xp(Ee.currentTarget,Ee,s,Fe)},de=function(Ee){A.current=!0,f==null||f(Ee)},he=function(Ee){A.current=!1,ie(Ee,Ee.currentTarget.value),m==null||m(Ee)},fe=function(Ee){ie(Ee,Ee.target.value)},le=function(Ee){var _e=E.onPressEnter,Fe=E.onKeyDown;Ee.key==="Enter"&&_e&&_e(Ee),Fe==null||Fe(Ee)},me=function(Ee){j(!0),i==null||i(Ee)},ye=function(Ee){j(!1),l==null||l(Ee)},ge=function(Ee){R(""),Y(),xp(K(),Ee,s)},ve=h,$e;ne.show&&(ne.showFormatter?$e=ne.showFormatter({value:_,count:te,maxLength:re}):$e="".concat(te).concat(oe?" / ".concat(re):""),ve=W.createElement(W.Fragment,null,ve,W.createElement("span",{className:Z("".concat(v,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},$e)));var Ce=function(Ee){var _e;O==null||O(Ee),(_e=K())!==null&&_e!==void 0&&_e.style.height&&V(!0)},Oe=!E.autoSize&&!p&&!u;return W.createElement(iw,{value:_,allowClear:u,handleReset:ge,suffix:ve,prefixCls:v,classNames:I(I({},x),{},{affixWrapper:Z(x==null?void 0:x.affixWrapper,(r={},L(r,"".concat(v,"-show-count"),p),L(r,"".concat(v,"-textarea-allow-clear"),u),r))}),disabled:S,focused:N,className:Z(b,ee&&"".concat(v,"-out-of-range")),style:I(I({},C),H&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $e=="string"?$e:void 0}},hidden:$},W.createElement(xle,be({},E,{maxLength:d,onKeyDown:le,onChange:fe,onFocus:me,onBlur:ye,onCompositionStart:de,onCompositionEnd:he,className:Z(x==null?void 0:x.textarea),style:I(I({},w==null?void 0:w.textarea),{},{resize:C==null?void 0:C.resize}),disabled:S,prefixCls:v,onResize:Ce,ref:U})))}),Ele=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:h,styles:g,variant:v}=e,p=Ele(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:C}=c.useContext(at),S=nr(i),$=c.useContext(Kr),x=l??$,{status:w,hasFeedback:O,feedbackIcon:E}=c.useContext(yr),P=xl(w,s),M=c.useRef(null);c.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:z=>{var H,V;Jie((V=(H=M.current)===null||H===void 0?void 0:H.resizableTextArea)===null||V===void 0?void 0:V.textArea,z)},blur:()=>{var z;return(z=M.current)===null||z===void 0?void 0:z.blur()}}});const D=y("input",o),R=pn(D),[_,T,k]=Z2(D,R),[N,j]=wl(v,a),A=v9(u??(C==null?void 0:C.allowClear));return _(c.createElement($le,Object.assign({autoComplete:C==null?void 0:C.autoComplete},p,{style:Object.assign(Object.assign({},C==null?void 0:C.style),h),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),g),disabled:x,allowClear:A,className:Z(k,R,m,f,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},d),C==null?void 0:C.classNames),{textarea:Z({[`${D}-sm`]:S==="small",[`${D}-lg`]:S==="large"},T,d==null?void 0:d.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Z({[`${D}-${N}`]:j},ya(D,P)),affixWrapper:Z(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:b==="rtl",[`${D}-affix-wrapper-sm`]:S==="small",[`${D}-affix-wrapper-lg`]:S==="large",[`${D}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},T)}),prefixCls:D,suffix:O&&c.createElement("span",{className:`${D}-textarea-suffix`},E),ref:M})))}),Ole=Ple,wm=lw;wm.Group=Yie;wm.Search=ple;wm.TextArea=Ole;wm.Password=mle;const Vo=wm,Ile=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,K3=e=>Ile.test(`#${e}`),Mle=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=c.useState(n==null?void 0:n.toHex());c.useEffect(()=>{const s=n==null?void 0:n.toHex();K3(s)&&n&&i(cg(s))},[n]);const l=s=>{const u=s.target.value;i(cg(u)),K3(cg(u,!0))&&(r==null||r(Vr(u)))};return W.createElement(Vo,{className:o,value:a,prefix:"#",onChange:l,size:"small"})},Rle=Mle,_le=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=(s,u)=>{const d=a.toHsb();d[u]=u==="h"?s:(s||0)/100;const f=Vr(d);n||i(f),r==null||r(f)};return W.createElement("div",{className:o},W.createElement(ns,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:s=>ug(s||0).toString(),onChange:s=>l(Number(s),"h")}),W.createElement(ns,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:s=>`${ug(s||0)}%`,onChange:s=>l(Number(s),"s")}),W.createElement(ns,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:s=>`${ug(s||0)}%`,onChange:s=>l(Number(s),"b")}))},Tle=_le,Nle=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=c.useState(Vr(n||"#000"));c.useEffect(()=>{n&&i(n)},[n]);const l=(s,u)=>{const d=a.toRgb();d[u]=s||0;const f=Vr(d);n||i(f),r==null||r(f)};return W.createElement("div",{className:o},W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:s=>l(Number(s),"r")}),W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:s=>l(Number(s),"g")}),W.createElement(ns,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:s=>l(Number(s),"b")}))},jle=Nle,Dle=[oi.hex,oi.hsb,oi.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Fle=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[l,s]=Pt(oi.hex,{value:n,onChange:a}),u=`${t}-input`,d=m=>{s(m)},f=c.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(l){case oi.hsb:return W.createElement(Tle,Object.assign({},m));case oi.rgb:return W.createElement(jle,Object.assign({},m));case oi.hex:default:return W.createElement(Rle,Object.assign({},m))}},[l,t,r,i]);return W.createElement("div",{className:`${u}-container`},W.createElement(Ta,{value:l,variant:"borderless",getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:Dle}),W.createElement("div",{className:u},f),!o&&W.createElement(Gie,{prefixCls:t,value:r,onChange:i}))},kle=Fle;var Lle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const e=c.useContext(a9),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:l,onChangeComplete:s}=e,u=Lle(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return W.createElement(W.Fragment,null,r&&W.createElement(l9,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:d=>{i==null||i(d),l==null||l()}},u)),W.createElement(mie,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(d,f)=>i==null?void 0:i(d,f,!0),onChangeComplete:s}),W.createElement(kle,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},u)))},U3=Ale,vb=e=>e.map(t=>(t.colors=t.colors.map(Vr),t)),Ble=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Cp(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},G3=e=>{let{label:t}=e;return`panel-${t}`},zle=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=wi("ColorPicker"),[,i]=cr(),[l]=Pt(vb(n),{value:vb(n),postState:vb}),s=`${t}-presets`,u=c.useMemo(()=>l.reduce((m,h)=>{const{defaultOpen:g=!0}=h;return g&&m.push(G3(h)),m},[]),[l]),d=m=>{o==null||o(m)},f=l.map(m=>{var h;return{key:G3(m),label:W.createElement("div",{className:`${s}-label`},m==null?void 0:m.label),children:W.createElement("div",{className:`${s}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map((g,v)=>W.createElement(rw,{key:`preset-${v}-${g.toHexString()}`,color:Vr(g).toRgbString(),prefixCls:t,className:Z(`${s}-color`,{[`${s}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:Ble(g,i.colorBgElevated)}),onClick:()=>d(g)})):W.createElement("span",{className:`${s}-empty`},a.presetEmpty))}});return W.createElement("div",{className:s},W.createElement(Qae,{defaultActiveKey:u,ghost:!0,items:f}))},Hle=zle,Vle=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=c.useContext(i9);return Array.isArray(n)?W.createElement(Hle,{value:t,presets:n,prefixCls:e,onChange:r}):null},q3=Vle;var Wle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,l=Wle(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${t}-inner`,u=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},l),d=W.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),f=W.createElement("div",{className:`${s}-content`},W.createElement(U3,null),Array.isArray(n)&&W.createElement(gc,null),W.createElement(q3,null));return W.createElement(vie,{value:u},W.createElement(gie,{value:d},W.createElement("div",{className:s},typeof r=="function"?r(f,{components:{Picker:U3,Presets:q3}}):f)))},Ule=Kle;var Gle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:l,className:s,showText:u}=e,d=Gle(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),f=`${r}-trigger`,m=c.useMemo(()=>a?W.createElement(l9,{prefixCls:r}):W.createElement(rw,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=Sp(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof u=="function")return u(n);if(u)return h()};return W.createElement("div",Object.assign({ref:t,className:Z(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},d),m,u&&W.createElement("div",{className:`${f}-text`},g()))}),Yle=qle;function Y3(e){return e!==void 0}const Xle=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=c.useState(()=>{let i;return Y3(r)?i=r:Y3(n)?i=n:i=e,Vr(i||"")});return c.useEffect(()=>{r&&a(Vr(r))},[r]),[o,a]},h9=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),X3=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},h9("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${ae(a)} solid ${i}`,borderRadius:"inherit"}})}},Qle=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:l,controlHeightSM:s,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${ae(a)}`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(i).equal(),fontSize:r,lineHeight:`${ae(s)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${ae(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ae(e.calc(s).sub(e.calc(g).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},Zle=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:u,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:f}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:u,height:u,border:`${ae(s)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:e.calc(f).div(2).equal(),[`${t}-palette`]:{height:f},[`${t}-gradient`]:{borderRadius:e.calc(f).div(2).equal(),boxShadow:o},"&-alpha":h9(`${ae(f)}`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},Jle=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:l,lineHeightSM:s,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:h,paddingXS:g,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${ae(g)} 0`},"&-label":{fontSize:i,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(u).mul(4)).equal(),height:e.calc(a).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${ae(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},KC=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${n}`,outline:0}),ese=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Q3=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,colorBorder:l,red6:s}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${ae(a)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}})}},tse=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},KC(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},KC(e,r,l))}}},nse=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:s}}}},rse=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:a,colorBgElevated:i,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:h,controlHeightSM:g,colorBgTextActive:v,colorPickerPresetColorSize:p,colorPickerPreviewSize:y,lineWidth:b,colorBorder:C,paddingXXS:S,fontSize:$,colorPrimaryHover:x,controlOutline:w}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ae(m)} 0 ${ae(f)}`}},[`${n}-panel`]:Object.assign({},Zle(e))},X3(e,y)),Qle(e)),Jle(e)),Q3(e,p,{marginInlineStart:"auto",marginBottom:f})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,height:h,borderRadius:d,border:`${ae(b)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${a}`,background:i,padding:e.calc(S).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(S).sub(b)).equal(),fontSize:$,color:s},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:Object.assign({},KC(e,o,w)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:l}}},Q3(e,g)),X3(e,g)),tse(e)),nse(e))},ese(e))}]},ose=Ht("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=_t(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[rse(o)]});var ase=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:l,trigger:s="click",open:u,disabled:d,placement:f="bottomLeft",arrow:m=!0,panelRender:h,showText:g,style:v,className:p,size:y,rootClassName:b,prefixCls:C,styles:S,disabledAlpha:$=!1,onFormatChange:x,onChange:w,onClear:O,onOpenChange:E,onChangeComplete:P,getPopupContainer:M,autoAdjustOverflow:D=!0,destroyTooltipOnHide:R}=e,_=ase(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:T,direction:k,colorPicker:N}=c.useContext(at),j=c.useContext(Kr),A=d??j,[B,z]=Xle("",{value:t,defaultValue:n}),[H,V]=Pt(!1,{value:u,postState:Oe=>!A&&Oe,onChange:E}),[U,K]=Pt(r,{value:r,defaultValue:o,onChange:x}),[Y,G]=c.useState(!t&&!n),q=T("color-picker",C),J=c.useMemo(()=>Sp(B)<100,[B]),{status:Q}=W.useContext(yr),ne=nr(y),re=pn(q),[oe,te,ee]=ose(q,re),ie={[`${q}-rtl`]:k},de=Z(b,ee,re,ie),he=Z(ya(q,Q),{[`${q}-sm`]:ne==="small",[`${q}-lg`]:ne==="large"},N==null?void 0:N.className,de,p,te),fe=Z(q,de),le=c.useRef(!0),me=(Oe,Re,Ee)=>{let _e=Vr(Oe);(Y||(t===null||!t&&n===null))&&(G(!1),Sp(B)===0&&Re!=="alpha"&&(_e=cb(_e))),$&&J&&(_e=cb(_e)),Ee?le.current=!1:P==null||P(_e),z(_e),w==null||w(_e,_e.toHexString())},ye=()=>{G(!0),O==null||O()},ge=Oe=>{le.current=!0;let Re=Vr(Oe);$&&J&&(Re=cb(Oe)),P==null||P(Re)},ve={open:H,trigger:s,placement:f,arrow:m,rootClassName:b,getPopupContainer:M,autoAdjustOverflow:D,destroyTooltipOnHide:R},$e={prefixCls:q,color:B,allowClear:a,colorCleared:Y,disabled:A,disabledAlpha:$,presets:i,panelRender:h,format:U,onFormatChange:K,onChangeComplete:ge},Ce=Object.assign(Object.assign({},N==null?void 0:N.style),v);return oe(W.createElement(Cs,Object.assign({style:S==null?void 0:S.popup,overlayInnerStyle:S==null?void 0:S.popupOverlayInner,onOpenChange:Oe=>{le.current&&!A&&V(Oe)},content:W.createElement(us,{override:!0,status:!0},W.createElement(Ule,Object.assign({},$e,{onChange:me,onChangeComplete:ge,onClear:ye}))),overlayClassName:fe},ve),l||W.createElement(Yle,Object.assign({open:H,className:he,style:Ce,color:t?Vr(t):B,prefixCls:q,disabled:A,colorCleared:Y,showText:g,format:U},_))))},ise=Sl(cw,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));cw._InternalPanelDoNotUseOrYouWillBeFired=ise;const lse=cw;var sse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const cse=sse;var use=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:cse}))},dse=c.forwardRef(use);const y9=dse;var fse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const mse=fse;var vse=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:mse}))},gse=c.forwardRef(vse);const b9=gse;var pse={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const hse=pse;var yse=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:hse}))},bse=c.forwardRef(yse);const Cse=bse;function Sse(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function xse(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function uw(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function C9(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=Yh(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}function wse(e){return c.createElement(Nr,Object.assign({size:"small",type:"primary"},e))}function S9(e){return c.useMemo(()=>Object.assign({button:wse},e),[e])}var $se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,getPopupContainer:i,components:l,className:s,style:u,placement:d,size:f,disabled:m,bordered:h=!0,placeholder:g,popupClassName:v,dropdownClassName:p,status:y,rootClassName:b,variant:C}=n,S=$se(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),$=c.useRef(null),{getPrefixCls:x,direction:w,getPopupContainer:O,rangePicker:E}=c.useContext(at),P=x("picker",a),{compactSize:M,compactItemClassnames:D}=Va(P,w),{picker:R}=n,_=x(),[T,k]=wl(C,h),N=pn(P),[j,A,B]=b7(P,N),[z]=C9(n,P),H=S9(l),V=nr(te=>{var ee;return(ee=f??M)!==null&&ee!==void 0?ee:te}),U=c.useContext(Kr),K=m??U,Y=c.useContext(yr),{hasFeedback:G,status:q,feedbackIcon:J}=Y,Q=c.createElement(c.Fragment,null,R==="time"?c.createElement(b9,null):c.createElement(y9,null),G&&J);c.useImperativeHandle(r,()=>$.current);const[ne]=wi("Calendar",rp),re=Object.assign(Object.assign({},ne),n.locale),[oe]=Uo("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return j(c.createElement(ka,null,c.createElement(Cne,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${P}-separator`},c.createElement(Cse,null)),disabled:K,ref:$,popupAlign:uw(w,d),placeholder:xse(re,R,g),suffixIcon:Q,prevIcon:c.createElement("span",{className:`${P}-prev-icon`}),nextIcon:c.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${_}-slide-up`},S,{className:Z({[`${P}-${V}`]:V,[`${P}-${T}`]:k},ya(P,xl(q,y),G),A,D,s,E==null?void 0:E.className,B,N,b),style:Object.assign(Object.assign({},E==null?void 0:E.style),u),locale:re.lang,prefixCls:P,getPopupContainer:i||O,generateConfig:e,components:H,direction:w,classNames:{popup:Z(A,v||p,B,N,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:oe})},allowClear:z}))))})}var Pse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var g;const{prefixCls:v,getPopupContainer:p,components:y,style:b,className:C,rootClassName:S,size:$,bordered:x,placement:w,placeholder:O,popupClassName:E,dropdownClassName:P,disabled:M,status:D,variant:R,onCalendarChange:_}=m,T=Pse(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:j,[d]:A}=c.useContext(at),B=k("picker",v),{compactSize:z,compactItemClassnames:H}=Va(B,N),V=c.useRef(null),[U,K]=wl(R,x),Y=pn(B),[G,q,J]=b7(B,Y);c.useImperativeHandle(h,()=>V.current);const Q={showToday:!0},ne=s||m.picker,re=k(),{onSelect:oe,multiple:te}=T,ee=oe&&s==="time"&&!te,ie=(Fe,qe,Ze)=>{_==null||_(Fe,qe,Ze),ee&&oe(Fe)},[de,he]=C9(m,B),fe=S9(y),le=nr(Fe=>{var qe;return(qe=$??z)!==null&&qe!==void 0?qe:Fe}),me=c.useContext(Kr),ye=M??me,ge=c.useContext(yr),{hasFeedback:ve,status:$e,feedbackIcon:Ce}=ge,Oe=c.createElement(c.Fragment,null,ne==="time"?c.createElement(b9,null):c.createElement(y9,null),ve&&Ce),[Re]=wi("DatePicker",rp),Ee=Object.assign(Object.assign({},Re),m.locale),[_e]=Uo("DatePicker",(g=m.popupStyle)===null||g===void 0?void 0:g.zIndex);return G(c.createElement(ka,null,c.createElement(Pne,Object.assign({ref:V,placeholder:Sse(Ee,ne,O),suffixIcon:Oe,dropdownAlign:uw(N,w),prevIcon:c.createElement("span",{className:`${B}-prev-icon`}),nextIcon:c.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${re}-slide-up`,picker:s,onCalendarChange:ie},Q,T,{locale:Ee.lang,className:Z({[`${B}-${le}`]:le,[`${B}-${U}`]:K},ya(B,xl($e,D),ve),q,H,A==null?void 0:A.className,C,J,Y,S),style:Object.assign(Object.assign({},A==null?void 0:A.style),b),prefixCls:B,getPopupContainer:p||j,generateConfig:e,components:fe,direction:N,disabled:ye,classNames:{popup:Z(q,J,Y,S,E||P)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:_e})},allowClear:de,removeIcon:he}))))})}const n=t(),r=t("week","WeekPicker"),o=t("month","MonthPicker"),a=t("year","YearPicker"),i=t("quarter","QuarterPicker"),l=t("time","TimePicker");return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:i}}function x9(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=Ose(e),l=Ese(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=a,s.QuarterPicker=i,s}const _u=x9(Rte);function w9(e){const t=uw(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const Ise=Sl(_u,"picker",null,w9);_u._InternalPanelDoNotUseOrYouWillBeFired=Ise;const Mse=Sl(_u.RangePicker,"picker",null,w9);_u._InternalRangePanelDoNotUseOrYouWillBeFired=Mse;_u.generatePicker=x9;const fs=_u;var Z3=c.createContext(null),$9=c.createContext({}),Rse=["prefixCls","className","containerRef"],_se=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,a=ze(t,Rse),i=c.useContext($9),l=i.panel,s=za(l,o);return c.createElement("div",be({className:Z("".concat(n,"-content"),r),role:"dialog",ref:s},Qn(t,{aria:!0}),{"aria-modal":"true"},a))};function J3(e){return typeof e=="string"&&String(Number(e))===e?(cn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var eO={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Tse(e,t){var n,r,o,a=e.prefixCls,i=e.open,l=e.placement,s=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,h=e.classNames,g=e.rootClassName,v=e.rootStyle,p=e.zIndex,y=e.className,b=e.id,C=e.style,S=e.motion,$=e.width,x=e.height,w=e.children,O=e.mask,E=e.maskClosable,P=e.maskMotion,M=e.maskClassName,D=e.maskStyle,R=e.afterOpenChange,_=e.onClose,T=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,j=e.onClick,A=e.onKeyDown,B=e.onKeyUp,z=e.styles,H=c.useRef(),V=c.useRef(),U=c.useRef();c.useImperativeHandle(t,function(){return H.current});var K=function(me){var ye=me.keyCode,ge=me.shiftKey;switch(ye){case Ie.TAB:{if(ye===Ie.TAB){if(!ge&&document.activeElement===U.current){var ve;(ve=V.current)===null||ve===void 0||ve.focus({preventScroll:!0})}else if(ge&&document.activeElement===V.current){var $e;($e=U.current)===null||$e===void 0||$e.focus({preventScroll:!0})}}break}case Ie.ESC:{_&&m&&(me.stopPropagation(),_(me));break}}};c.useEffect(function(){if(i&&f){var le;(le=H.current)===null||le===void 0||le.focus({preventScroll:!0})}},[i]);var Y=c.useState(!1),G=X(Y,2),q=G[0],J=G[1],Q=c.useContext(Z3),ne;typeof u=="boolean"?ne=u?{}:{distance:0}:ne=u||{};var re=(n=(r=(o=ne)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:Q==null?void 0:Q.pushDistance)!==null&&n!==void 0?n:180,oe=c.useMemo(function(){return{pushDistance:re,push:function(){J(!0)},pull:function(){J(!1)}}},[re]);c.useEffect(function(){if(i){var le;Q==null||(le=Q.push)===null||le===void 0||le.call(Q)}else{var me;Q==null||(me=Q.pull)===null||me===void 0||me.call(Q)}},[i]),c.useEffect(function(){return function(){var le;Q==null||(le=Q.pull)===null||le===void 0||le.call(Q)}},[]);var te=O&&c.createElement(wr,be({key:"mask"},P,{visible:i}),function(le,me){var ye=le.className,ge=le.style;return c.createElement("div",{className:Z("".concat(a,"-mask"),ye,h==null?void 0:h.mask,M),style:I(I(I({},ge),D),z==null?void 0:z.mask),onClick:E&&i?_:void 0,ref:me})}),ee=typeof S=="function"?S(l):S,ie={};if(q&&re)switch(l){case"top":ie.transform="translateY(".concat(re,"px)");break;case"bottom":ie.transform="translateY(".concat(-re,"px)");break;case"left":ie.transform="translateX(".concat(re,"px)");break;default:ie.transform="translateX(".concat(-re,"px)");break}l==="left"||l==="right"?ie.width=J3($):ie.height=J3(x);var de={onMouseEnter:T,onMouseOver:k,onMouseLeave:N,onClick:j,onKeyDown:A,onKeyUp:B},he=c.createElement(wr,be({key:"panel"},ee,{visible:i,forceRender:d,onVisibleChanged:function(me){R==null||R(me)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(le,me){var ye=le.className,ge=le.style;return c.createElement("div",be({className:Z("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,ye),style:I(I(I({},ie),ge),z==null?void 0:z.wrapper)},Qn(e,{data:!0})),c.createElement(_se,be({id:b,containerRef:me,prefixCls:a,className:Z(y,h==null?void 0:h.content),style:I(I({},C),z==null?void 0:z.content)},Qn(e,{aria:!0}),de),w))}),fe=I({},v);return p&&(fe.zIndex=p),c.createElement(Z3.Provider,{value:oe},c.createElement("div",{className:Z(a,"".concat(a,"-").concat(l),g,L(L({},"".concat(a,"-open"),i),"".concat(a,"-inline"),s)),style:fe,tabIndex:-1,ref:H,onKeyDown:K},te,c.createElement("div",{tabIndex:0,ref:V,style:eO,"aria-hidden":"true","data-sentinel":"start"}),he,c.createElement("div",{tabIndex:0,ref:U,style:eO,"aria-hidden":"true","data-sentinel":"end"})))}var Nse=c.forwardRef(Tse),jse=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,a=o===void 0?"rc-drawer":o,i=t.placement,l=i===void 0?"right":i,s=t.autoFocus,u=s===void 0?!0:s,d=t.keyboard,f=d===void 0?!0:d,m=t.width,h=m===void 0?378:m,g=t.mask,v=g===void 0?!0:g,p=t.maskClosable,y=p===void 0?!0:p,b=t.getContainer,C=t.forceRender,S=t.afterOpenChange,$=t.destroyOnClose,x=t.onMouseEnter,w=t.onMouseOver,O=t.onMouseLeave,E=t.onClick,P=t.onKeyDown,M=t.onKeyUp,D=t.panelRef,R=c.useState(!1),_=X(R,2),T=_[0],k=_[1],N=c.useState(!1),j=X(N,2),A=j[0],B=j[1];Kt(function(){B(!0)},[]);var z=A?r:!1,H=c.useRef(),V=c.useRef();Kt(function(){z&&(V.current=document.activeElement)},[z]);var U=function(J){var Q;if(k(J),S==null||S(J),!J&&V.current&&!((Q=H.current)!==null&&Q!==void 0&&Q.contains(V.current))){var ne;(ne=V.current)===null||ne===void 0||ne.focus({preventScroll:!0})}},K=c.useMemo(function(){return{panel:D}},[D]);if(!C&&!T&&!z&&$)return null;var Y={onMouseEnter:x,onMouseOver:w,onMouseLeave:O,onClick:E,onKeyDown:P,onKeyUp:M},G=I(I({},t),{},{open:z,prefixCls:a,placement:l,autoFocus:u,keyboard:f,width:h,mask:v,maskClosable:y,inline:b===!1,afterOpenChange:U,ref:H},Y);return c.createElement($9.Provider,{value:K},c.createElement(dm,{open:z||C||T,autoDestroy:!1,getContainer:b,autoLock:v&&(z||T)},c.createElement(Nse,G)))};const Dse=e=>{var t,n;const{prefixCls:r,title:o,footer:a,extra:i,closeIcon:l,closable:s,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:m,children:h,classNames:g,styles:v}=e,{drawer:p}=c.useContext(at),y=c.useCallback(w=>c.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},w),[u]),b=c.useMemo(()=>typeof(p==null?void 0:p.closable)=="object"&&p.closable.closeIcon?p.closable.closeIcon:p==null?void 0:p.closeIcon,[p==null?void 0:p.closable,p==null?void 0:p.closeIcon]),[C,S]=oT({closable:s??(p==null?void 0:p.closable),closeIcon:typeof l<"u"?l:b,customCloseIconRender:y,defaultClosable:!0}),$=c.useMemo(()=>{var w,O;return!o&&!C?null:c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=p==null?void 0:p.styles)===null||w===void 0?void 0:w.header),d),v==null?void 0:v.header),className:Z(`${r}-header`,{[`${r}-header-close-only`]:C&&!o&&!i},(O=p==null?void 0:p.classNames)===null||O===void 0?void 0:O.header,g==null?void 0:g.header)},c.createElement("div",{className:`${r}-header-title`},S,o&&c.createElement("div",{className:`${r}-title`},o)),i&&c.createElement("div",{className:`${r}-extra`},i))},[C,S,i,d,r,o]),x=c.useMemo(()=>{var w,O;if(!a)return null;const E=`${r}-footer`;return c.createElement("div",{className:Z(E,(w=p==null?void 0:p.classNames)===null||w===void 0?void 0:w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(O=p==null?void 0:p.styles)===null||O===void 0?void 0:O.footer),m),v==null?void 0:v.footer)},a)},[a,m,r]);return c.createElement(c.Fragment,null,$,c.createElement("div",{className:Z(`${r}-body`,g==null?void 0:g.body,(t=p==null?void 0:p.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=p==null?void 0:p.styles)===null||n===void 0?void 0:n.body),f),v==null?void 0:v.body)},h),x)},E9=Dse,Fse=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},P9=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),O9=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},P9({opacity:e},{opacity:1})),kse=(e,t)=>[O9(.7,t),P9({transform:Fse(e)},{transform:"none"})],Lse=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:O9(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:kse(o,n)}),{})}}},Ase=Lse,Bse=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:a,motionDurationSlow:i,motionDurationMid:l,paddingXS:s,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:h,lineType:g,colorSplit:v,marginXS:p,colorIcon:y,colorIconHover:b,colorBgTextHover:C,colorBgTextActive:S,colorText:$,fontWeightStrong:x,footerPaddingBlock:w,footerPaddingInline:O,calc:E}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae(u)} ${ae(d)}`,fontSize:f,lineHeight:m,borderBottom:`${ae(h)} ${g} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:E(f).add(s).equal(),height:E(f).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:p,color:y,fontWeight:x,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:S}},ha(e)),[`${n}-title`]:{flex:1,margin:0,color:$,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto"},[`${n}-footer`]:{flexShrink:0,padding:`${ae(w)} ${ae(O)}`,borderTop:`${ae(h)} ${g} ${v}`},"&-rtl":{direction:"rtl"}}}},zse=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),I9=Ht("Drawer",e=>{const t=_t(e,{});return[Bse(t),Ase(t)]},zse);var M9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:a=!0,push:i=Hse,open:l,afterOpenChange:s,onClose:u,prefixCls:d,getContainer:f,style:m,className:h,visible:g,afterVisibleChange:v,maskStyle:p,drawerStyle:y,contentWrapperStyle:b}=e,C=M9(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:$,direction:x,drawer:w}=c.useContext(at),O=$("drawer",d),[E,P,M]=I9(O),D=f===void 0&&S?()=>S(document.body):f,R=Z({"no-mask":!a,[`${O}-rtl`]:x==="rtl"},t,P,M),_=c.useMemo(()=>n??(o==="large"?736:378),[n,o]),T=c.useMemo(()=>r??(o==="large"?736:378),[r,o]),k={motionName:$r(O,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=K=>({motionName:$r(O,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),j=gT(),[A,B]=Uo("Drawer",C.zIndex),{classNames:z={},styles:H={}}=C,{classNames:V={},styles:U={}}=w||{};return E(c.createElement(ka,null,c.createElement(us,{status:!0,override:!0},c.createElement(lm.Provider,{value:B},c.createElement(jse,Object.assign({prefixCls:O,onClose:u,maskMotion:k,motion:N},C,{classNames:{mask:Z(z.mask,V.mask),content:Z(z.content,V.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),p),U.mask),content:Object.assign(Object.assign(Object.assign({},H.content),y),U.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),b),U.wrapper)},open:l??g,mask:a,push:i,width:_,height:T,style:Object.assign(Object.assign({},w==null?void 0:w.style),m),className:Z(w==null?void 0:w.className,h),rootClassName:R,getContainer:D,afterOpenChange:s??v,panelRef:j,zIndex:A}),c.createElement(E9,Object.assign({prefixCls:O},C,{onClose:u})))))))},Vse=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=M9(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=c.useContext(at),l=i("drawer",t),[s,u,d]=I9(l),f=Z(l,`${l}-pure`,`${l}-${o}`,u,d,r);return s(c.createElement("div",{className:f,style:n},c.createElement(E9,Object.assign({prefixCls:l},a))))};R9._InternalPanelDoNotUseOrYouWillBeFired=Vse;const _9=R9;function tO(e){return["small","middle","large"].includes(e)}function nO(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const T9=W.createContext({latestIndex:0}),Wse=T9.Provider,Kse=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=c.useContext(T9);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=c.useContext(at),{size:l=(a==null?void 0:a.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:y,styles:b}=e,C=Gse(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(l)?l:[l,l],x=tO($),w=tO(S),O=nO($),E=nO(S),P=sr(f,{keepEmpty:!0}),M=s===void 0&&m==="horizontal"?"center":s,D=o("space",h),[R,_,T]=V_(D),k=Z(D,a==null?void 0:a.className,_,`${D}-${m}`,{[`${D}-rtl`]:i==="rtl",[`${D}-align-${M}`]:M,[`${D}-gap-row-${$}`]:x,[`${D}-gap-col-${S}`]:w},u,d,T),N=Z(`${D}-item`,(n=y==null?void 0:y.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let j=0;const A=P.map((H,V)=>{var U,K;H!=null&&(j=V);const Y=H&&H.key||`${N}-${V}`;return c.createElement(Use,{className:N,key:Y,index:V,split:g,style:(U=b==null?void 0:b.item)!==null&&U!==void 0?U:(K=a==null?void 0:a.styles)===null||K===void 0?void 0:K.item},H)}),B=c.useMemo(()=>({latestIndex:j}),[j]);if(P.length===0)return null;const z={};return p&&(z.flexWrap="wrap"),!w&&E&&(z.columnGap=S),!x&&O&&(z.rowGap=$),R(c.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},z),a==null?void 0:a.style),v)},C),c.createElement(Wse,{value:B},A)))}),N9=qse;N9.Compact=WU;const hi=N9;var Yse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(at),{prefixCls:o,type:a="default",danger:i,disabled:l,loading:s,onClick:u,htmlType:d,children:f,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:y,align:b,open:C,onOpenChange:S,placement:$,getPopupContainer:x,href:w,icon:O=c.createElement(N2,null),title:E,buttonsRender:P=q=>q,mouseEnterDelay:M,mouseLeaveDelay:D,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:k}=e,N=Yse(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",o),A=`${j}-button`,B={menu:h,arrow:g,autoFocus:v,align:b,disabled:l,trigger:l?[]:y,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:M,mouseLeaveDelay:D,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:k},{compactSize:z,compactItemClassnames:H}=Va(j,r),V=Z(A,H,m);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=$:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const U=c.createElement(Nr,{type:a,danger:i,disabled:l,loading:s,onClick:u,htmlType:d,href:w,title:E},f),K=c.createElement(Nr,{type:a,danger:i,icon:O}),[Y,G]=P([U,K]);return c.createElement(hi.Compact,Object.assign({className:V,size:z,block:!0},N),Y,c.createElement(F2,Object.assign({},B),G))};j9.__ANT_BUTTON=!0;const Xse=j9,D9=F2;D9.Button=Xse;const Qse=D9;function wp(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Zse=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Dle=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),L3=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Fle=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Wt(e)),Dle(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},L3(e,e.controlHeightSM)),"&-large":Object.assign({},L3(e,e.controlHeightLG))})}},kle=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-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,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:u,marginInlineEnd:d},[`&${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:s2,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Lle=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"}}}}},Ale=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}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ys=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ble=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ys(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},zle=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, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Jse=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),rO=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ece=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Wt(e)),Jse(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},rO(e,e.controlHeightSM)),"&-large":Object.assign({},rO(e,e.controlHeightLG))})}},tce=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-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,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:u,marginInlineEnd:d},[`&${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:u2,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},nce=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"}}}}},rce=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}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ys=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),oce=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ys(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ace=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, .${r}-col-24${n}-label, - .${r}-col-xl-24${n}-label`]:Ys(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[Ble(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ys(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ys(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ys(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ys(e)}}}},Hle=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}),h9=(e,t)=>_t(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),cw=Ht("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=h9(e,n);return[Fle(r),kle(r),jle(r),Lle(r),Ale(r),zle(r),Lh(r),s2]},Hle,{order:-1e3}),A3=[];function fb(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Vle=e=>{let{help:t,helpStatus:n,errors:r=A3,warnings:o=A3,className:a,fieldId:i,onVisibleChanged:l}=e;const{prefixCls:s}=c.useContext(l2),u=`${s}-item-explain`,d=pn(s),[f,m,h]=cw(s,d),g=c.useMemo(()=>ip(s),[s]),v=Sp(r),p=Sp(o),y=c.useMemo(()=>t!=null?[fb(t,"help",n)]:[].concat(Te(v.map((C,S)=>fb(C,"error","error",S))),Te(p.map((C,S)=>fb(C,"warning","warning",S)))),[t,n,v,p]),b={};return i&&(b.id=`${i}_help`),f(c.createElement(wr,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:l},C=>{const{className:S,style:$}=C;return c.createElement("div",Object.assign({},b,{className:Z(u,S,h,d,a,m),style:$,role:"alert"}),c.createElement(t_,Object.assign({keys:y},ip(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:w,error:O,errorStatus:E,className:P,style:M}=x;return c.createElement("div",{key:w,className:Z(P,{[`${u}-${E}`]:E}),style:M},O)}))}))},y9=Vle,Wle=["parentNode"],Kle="form_item";function Qd(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function b9(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Wle.includes(n)?`${Kle}_${n}`:n}function C9(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function B3(e){return Qd(e).join("_")}function S9(e){const[t]=i2(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=B3(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=Qd(o),l=b9(i,r.__INTERNAL__.name),s=l?document.getElementById(l):null;s&&PW(s,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=B3(o);return n.current[a]}}),[e,t]);return[r]}var Ule=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c.useContext(Kr),{getPrefixCls:r,direction:o,form:a}=c.useContext(at),{prefixCls:i,className:l,rootClassName:s,size:u,disabled:d=n,form:f,colon:m,labelAlign:h,labelWrap:g,labelCol:v,wrapperCol:p,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:$,name:x,style:w,feedbackIcons:O,variant:E}=e,P=Ule(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=nr(u),D=c.useContext($R),R=c.useMemo(()=>S!==void 0?S:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,S,a]),_=m??(a==null?void 0:a.colon),T=r("form",i),k=pn(T),[N,j,A]=cw(T,k),B=Z(T,`${T}-${b}`,{[`${T}-hide-required-mark`]:R===!1,[`${T}-rtl`]:o==="rtl",[`${T}-${M}`]:M},A,k,j,a==null?void 0:a.className,l,s),[z]=S9(f),{__INTERNAL__:H}=z;H.name=x;const V=c.useMemo(()=>({name:x,labelAlign:h,labelCol:v,labelWrap:g,wrapperCol:p,vertical:b==="vertical",colon:_,requiredMark:R,itemRef:H.itemRef,form:z,feedbackIcons:O}),[x,h,v,p,b,_,R,z,O]);c.useImperativeHandle(t,()=>z);const U=(Y,G)=>{if(Y){let q={block:"nearest"};typeof Y=="object"&&(q=Y),z.scrollToField(G,q)}},K=Y=>{if($==null||$(Y),Y.errorFields.length){const G=Y.errorFields[0].name;if(C!==void 0){U(C,G);return}a&&a.scrollToFirstError!==void 0&&U(a.scrollToFirstError,G)}};return N(c.createElement(Y_.Provider,{value:E},c.createElement(Gx,{disabled:d},c.createElement(rm.Provider,{value:M},c.createElement(q_,{validateMessages:D},c.createElement(gi.Provider,{value:V},c.createElement(bu,Object.assign({id:x},P,{name:x,onFinishFailed:K,form:z,style:Object.assign(Object.assign({},a==null?void 0:a.style),w),className:B}))))))))},qle=c.forwardRef(Gle);function Yle(e){if(typeof e=="function")return e;const t=sr(e);return t.length<=1?t[0]:t}const x9=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(yr);return{status:e,errors:t,warnings:n}};x9.Context=yr;const Xle=x9;function Qle(e){const[t,n]=c.useState(e),r=c.useRef(null),o=c.useRef([]),a=c.useRef(!1);c.useEffect(()=>(a.current=!1,()=>{a.current=!0,At.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=At(()=>{r.current=null,n(s=>{let u=s;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}function Zle(){const{itemRef:e}=c.useContext(gi),t=c.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Er(e(r),a)),t.current.ref}return n}const Jle=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ese=Eh(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=h9(e,n);return[Jle(r)]}),tse=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:l,extra:s,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,h=`${t}-item`,g=c.useContext(gi),v=r||g.wrapperCol||{},p=Z(`${h}-control`,v.className),y=c.useMemo(()=>Object.assign({},g),[g]);delete y.labelCol,delete y.wrapperCol;const b=c.createElement("div",{className:`${h}-control-input`},c.createElement("div",{className:`${h}-control-input-content`},o)),C=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?c.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},c.createElement(l2.Provider,{value:C},c.createElement(y9,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:m})),!!f&&c.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=s?c.createElement("div",Object.assign({},$,{className:`${h}-extra`}),s):null,w=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:b,errorList:S,extra:x}):c.createElement(c.Fragment,null,b,S,x);return c.createElement(gi.Provider,{value:y},c.createElement(fl,Object.assign({},v,{className:p}),w),c.createElement(ese,{prefixCls:t}))},nse=tse;var rse={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"};const ose=rse;var ase=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ose}))},ise=c.forwardRef(ase);const lse=ise;var sse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:l,requiredMark:s,tooltip:u}=e;var d;const[f]=xi("Form"),{vertical:m,labelAlign:h,labelCol:g,labelWrap:v,colon:p}=c.useContext(gi);if(!n)return null;const y=o||g||{},b=a||h,C=`${t}-item-label`,S=Z(C,b==="left"&&`${C}-left`,y.className,{[`${C}-wrap`]:!!v});let $=n;const x=i===!0||p!==!1&&i!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const O=cse(u);if(O){const{icon:D=c.createElement(lse,null)}=O,R=sse(O,["icon"]),_=c.createElement(Go,Object.assign({},R),c.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));$=c.createElement(c.Fragment,null,$,_)}const E=s==="optional",P=typeof s=="function";P?$=s($,{required:!!l}):E&&!l&&($=c.createElement(c.Fragment,null,$,c.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Da.Form)===null||d===void 0?void 0:d.optional))));const M=Z({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||P,[`${t}-item-no-colon`]:!x});return c.createElement(fl,Object.assign({},y,{className:S}),c.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},$))},dse=use,fse={success:ys,warning:hu,error:Ha,validating:Cl};function w9(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:l,noStyle:s}=e;const u=`${i}-item`,{feedbackIcons:d}=c.useContext(gi),f=C9(n,r,l,null,!!o,a),{isFormItemInput:m,status:h,hasFeedback:g,feedbackIcon:v}=c.useContext(yr),p=c.useMemo(()=>{var y;let b;if(o){const S=o!==!0&&o.icons||d,$=f&&((y=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),x=f&&fse[f];b=$!==!1&&x?c.createElement("span",{className:Z(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||c.createElement(x,null)):null}const C={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:b,isFormItemInput:!0};return s&&(C.status=(f??h)||"",C.isFormItemInput=m,C.hasFeedback=!!(o??g),C.feedbackIcon=o!==void 0?C.feedbackIcon:v),C},[f,o,s,m,h]);return c.createElement(yr.Provider,{value:p},t)}var mse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(O&&S.current){const k=getComputedStyle(S.current);M(parseInt(k.marginBottom,10))}},[O,E]);const D=k=>{k||M(null)},_=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const N=k?$:u.errors,j=k?x:u.warnings;return C9(N,j,u,"",!!d,s)}(),T=Z(b,n,r,{[`${b}-with-help`]:w||$.length||x.length,[`${b}-has-feedback`]:_&&d,[`${b}-has-success`]:_==="success",[`${b}-has-warning`]:_==="warning",[`${b}-has-error`]:_==="error",[`${b}-is-validating`]:_==="validating",[`${b}-hidden`]:f});return c.createElement("div",{className:T,style:o,ref:S},c.createElement(Cm,Object.assign({className:`${b}-row`},gn(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),c.createElement(dse,Object.assign({htmlFor:h},e,{requiredMark:C,required:g??v,prefixCls:t})),c.createElement(nse,Object.assign({},e,u,{errors:$,warnings:x,prefixCls:t,status:_,help:a,marginBottom:P,onErrorVisibleChanged:D}),c.createElement(G_.Provider,{value:p},c.createElement(w9,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:_},m)))),!!P&&c.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-P}}))}const gse="__SPLIT__";function pse(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const hse=c.memo(e=>{let{children:t}=e;return t},(e,t)=>pse(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function z3(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yse(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:s,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:g,help:v}=e,{getPrefixCls:p}=c.useContext(at),{name:y}=c.useContext(gi),b=Yle(s),C=typeof b=="function",S=c.useContext(G_),{validateTrigger:$}=c.useContext(ul),x=h!==void 0?h:$,w=t!=null,O=p("form",a),E=pn(O),[P,M,D]=cw(O,E);vu();const R=c.useContext(Of),_=c.useRef(),[T,k]=Qle({}),[N,j]=nl(()=>z3()),A=Y=>{const G=R==null?void 0:R.getKey(Y.name);if(j(Y.destroy?z3():Y,!0),n&&v!==!1&&S){let q=Y.name;if(Y.destroy)q=_.current||q;else if(G!==void 0){const[J,Q]=G;q=[J].concat(Te(Q)),_.current=q}S(Y,q)}},B=(Y,G)=>{k(q=>{const J=Object.assign({},q),ne=[].concat(Te(Y.name.slice(0,-1)),Te(G)).join(gse);return Y.destroy?delete J[ne]:J[ne]=Y,J})},[z,H]=c.useMemo(()=>{const Y=Te(N.errors),G=Te(N.warnings);return Object.values(T).forEach(q=>{Y.push.apply(Y,Te(q.errors||[])),G.push.apply(G,Te(q.warnings||[]))}),[Y,G]},[T,N.errors,N.warnings]),V=Zle();function U(Y,G,q){return n&&!g?c.createElement(w9,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:z,warnings:H,noStyle:!0},Y):c.createElement(vse,Object.assign({key:"row"},e,{className:Z(r,D,E,M),prefixCls:O,fieldId:G,isRequired:q,errors:z,warnings:H,meta:N,onSubItemMetaChange:B}),Y)}if(!w&&!C&&!o)return P(U(b));let K={};return typeof d=="string"?K.label=d:t&&(K.label=String(t)),f&&(K=Object.assign(Object.assign({},K),f)),P(c.createElement(a2,Object.assign({},e,{messageVariables:K,trigger:m,validateTrigger:x,onMetaChange:A}),(Y,G,q)=>{const J=Qd(t).length&&G?G.name:[],Q=b9(J,y),ne=u!==void 0?u:!!(l&&l.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const ee=te(q);return ee&&ee.required&&!ee.warningOnly}return!1})),re=Object.assign({},Y);let oe=null;if(Array.isArray(b)&&w)oe=b;else if(!(C&&(!(i||o)||w))){if(!(o&&!C&&!w))if(c.isValidElement(b)){const te=Object.assign(Object.assign({},b.props),re);if(te.id||(te.id=Q),v||z.length>0||H.length>0||e.extra){const de=[];(v||z.length>0)&&de.push(`${Q}_help`),e.extra&&de.push(`${Q}_extra`),te["aria-describedby"]=de.join(" ")}z.length>0&&(te["aria-invalid"]="true"),ne&&(te["aria-required"]="true"),Ci(b)&&(te.ref=V(J,b)),new Set([].concat(Te(Qd(m)),Te(Qd(x)))).forEach(de=>{te[de]=function(){for(var he,fe,le,me,ye,ge=arguments.length,ve=new Array(ge),$e=0;$e{var{prefixCls:t,children:n}=e,r=Cse(e,["prefixCls","children"]);const{getPrefixCls:o}=c.useContext(at),a=o("form",t),i=c.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return c.createElement(V_,Object.assign({},r),(l,s,u)=>c.createElement(l2.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:u.errors,warnings:u.warnings})))},xse=Sse;function wse(){const{form:e}=c.useContext(gi);return e}const Kn=qle;Kn.Item=bse;Kn.List=xse;Kn.ErrorList=y9;Kn.useForm=S9;Kn.useFormInstance=wse;Kn.useWatch=U_;Kn.Provider=q_;Kn.create=()=>{};function E9(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function $se(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var HC=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],xm=c.createContext(null),H3=0;function Ese(e,t){var n=c.useState(function(){return H3+=1,String(H3)}),r=X(n,1),o=r[0],a=c.useContext(xm),i={data:t,canPreview:e};return c.useEffect(function(){if(a)return a.register(o,i)},[]),c.useEffect(function(){a&&a.register(o,i)},[e,t]),o}function Pse(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function P9(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=c.useState(n?"loading":"normal"),a=X(o,2),i=a[0],l=a[1],s=c.useRef(!1),u=i==="error";c.useEffect(function(){var h=!0;return Pse(t).then(function(g){!g&&h&&l("error")}),function(){h=!1}},[t]),c.useEffect(function(){n&&!s.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(g){s.current=!1,i==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(s.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,i]}function vc(e,t,n,r){var o=qg.unstable_batchedUpdates?function(i){qg.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var Tv={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Ose(e,t,n,r){var o=c.useRef(null),a=c.useRef([]),i=c.useState(Tv),l=X(i,2),s=l[0],u=l[1],d=function(g){u(Tv),r&&!fu(Tv,s)&&r({transform:Tv,action:g})},f=function(g,v){o.current===null&&(a.current=[],o.current=At(function(){u(function(p){var y=p;return a.current.forEach(function(b){y=I(I({},y),b)}),o.current=null,r==null||r({transform:y,action:v}),y})})),a.current.push(I(I({},s),g))},m=function(g,v,p,y,b){var C=e.current,S=C.width,$=C.height,x=C.offsetWidth,w=C.offsetHeight,O=C.offsetLeft,E=C.offsetTop,P=g,M=s.scale*g;M>n?(M=n,P=n/s.scale):Mr){if(t>0)return L({},e,a);if(t<0&&or)return L({},e,t<0?a:-a);return{}}function O9(e,t,n,r){var o=E9(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=I(I({},V3("x",n,e,a)),V3("y",r,t,i))),l}var gc=1,Ise=1;function Mse(e,t,n,r,o,a,i){var l=o.rotate,s=o.scale,u=o.x,d=o.y,f=c.useState(!1),m=X(f,2),h=m[0],g=m[1],v=c.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),p=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),v.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},g(!0))},y=function($){n&&h&&a({x:$.pageX-v.current.diffX,y:$.pageY-v.current.diffY},"move")},b=function(){if(n&&h){g(!1);var $=v.current,x=$.transformX,w=$.transformY,O=u!==x&&d!==w;if(!O)return;var E=e.current.offsetWidth*s,P=e.current.offsetHeight*s,M=e.current.getBoundingClientRect(),D=M.left,R=M.top,_=l%180!==0,T=O9(_?P:E,_?E:P,D,R);T&&a(I({},T),"dragRebound")}},C=function($){if(!(!n||$.deltaY==0)){var x=Math.abs($.deltaY/100),w=Math.min(x,Ise),O=gc+w*r;$.deltaY>0&&(O=gc/O),i(O,"wheel",$.clientX,$.clientY)}};return c.useEffect(function(){var S,$,x,w;if(t){x=vc(window,"mouseup",b,!1),w=vc(window,"mousemove",y,!1);try{window.top!==window.self&&(S=vc(window.top,"mouseup",b,!1),$=vc(window.top,"mousemove",y,!1))}catch{}}return function(){var O,E,P,M;(O=x)===null||O===void 0||O.remove(),(E=w)===null||E===void 0||E.remove(),(P=S)===null||P===void 0||P.remove(),(M=$)===null||M===void 0||M.remove()}},[n,h,u,d,l,t]),{isMoving:h,onMouseDown:p,onMouseMove:y,onMouseUp:b,onWheel:C}}function xp(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Rse(e,t,n,r){var o=xp(e,n),a=xp(t,r);if(o===0&&a===0)return[e.x,e.y];var i=o/(o+a),l=e.x+i*(t.x-e.x),s=e.y+i*(t.y-e.y);return[l,s]}function _se(e,t,n,r,o,a,i){var l=o.rotate,s=o.scale,u=o.x,d=o.y,f=c.useState(!1),m=X(f,2),h=m[0],g=m[1],v=c.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function($){v.current=I(I({},v.current),$)},y=function($){if(t){$.stopPropagation(),g(!0);var x=$.touches,w=x===void 0?[]:x;w.length>1?p({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):p({point1:{x:w[0].clientX-u,y:w[0].clientY-d},eventType:"move"})}},b=function($){var x=$.touches,w=x===void 0?[]:x,O=v.current,E=O.point1,P=O.point2,M=O.eventType;if(w.length>1&&M==="touchZoom"){var D={x:w[0].clientX,y:w[0].clientY},R={x:w[1].clientX,y:w[1].clientY},_=Rse(E,P,D,R),T=X(_,2),k=T[0],N=T[1],j=xp(D,R)/xp(E,P);i(j,"touchZoom",k,N,!0),p({point1:D,point2:R,eventType:"touchZoom"})}else M==="move"&&(a({x:w[0].clientX-E.x,y:w[0].clientY-E.y},"move"),p({eventType:"move"}))},C=function(){if(n){if(h&&g(!1),p({eventType:"none"}),r>s)return a({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*s,x=e.current.offsetHeight*s,w=e.current.getBoundingClientRect(),O=w.left,E=w.top,P=l%180!==0,M=O9(P?x:$,P?$:x,O,E);M&&a(I({},M),"dragRebound")}};return c.useEffect(function(){var S;return n&&t&&(S=vc(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=S)===null||$===void 0||$.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:b,onTouchEnd:C}}var Tse=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,a=t.prefixCls,i=t.rootClassName,l=t.icons,s=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,h=t.count,g=t.scale,v=t.minScale,p=t.maxScale,y=t.closeIcon,b=t.onSwitchLeft,C=t.onSwitchRight,S=t.onClose,$=t.onZoomIn,x=t.onZoomOut,w=t.onRotateRight,O=t.onRotateLeft,E=t.onFlipX,P=t.onFlipY,M=t.toolbarRender,D=t.zIndex,R=c.useContext(xm),_=l.rotateLeft,T=l.rotateRight,k=l.zoomIn,N=l.zoomOut,j=l.close,A=l.left,B=l.right,z=l.flipX,H=l.flipY,V="".concat(a,"-operations-operation");c.useEffect(function(){var G=function(J){J.keyCode===Ie.ESC&&S()};return n&&window.addEventListener("keydown",G),function(){window.removeEventListener("keydown",G)}},[n]);var U=[{icon:H,onClick:P,type:"flipY"},{icon:z,onClick:E,type:"flipX"},{icon:_,onClick:O,type:"rotateLeft"},{icon:T,onClick:w,type:"rotateRight"},{icon:N,onClick:x,type:"zoomOut",disabled:g<=v},{icon:k,onClick:$,type:"zoomIn",disabled:g===p}],K=U.map(function(G){var q,J=G.icon,Q=G.onClick,ne=G.type,re=G.disabled;return c.createElement("div",{className:Z(V,(q={},L(q,"".concat(a,"-operations-operation-").concat(ne),!0),L(q,"".concat(a,"-operations-operation-disabled"),!!re),q)),onClick:Q,key:ne},J)}),Y=c.createElement("div",{className:"".concat(a,"-operations")},K);return c.createElement(wr,{visible:n,motionName:r},function(G){var q=G.className,J=G.style;return c.createElement(cm,{open:!0,getContainer:o??document.body},c.createElement("div",{className:Z("".concat(a,"-operations-wrapper"),q,i),style:I(I({},J),{},{zIndex:D})},y===null?null:c.createElement("button",{className:"".concat(a,"-close"),onClick:S},y||j),u&&c.createElement(c.Fragment,null,c.createElement("div",{className:Z("".concat(a,"-switch-left"),L({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:b},A),c.createElement("div",{className:Z("".concat(a,"-switch-right"),L({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:C},B)),c.createElement("div",{className:"".concat(a,"-footer")},d&&c.createElement("div",{className:"".concat(a,"-progress")},s?s(f+1,h):"".concat(f+1," / ").concat(h)),M?M(Y,I({icons:{flipYIcon:K[0],flipXIcon:K[1],rotateLeftIcon:K[2],rotateRightIcon:K[3],zoomOutIcon:K[4],zoomInIcon:K[5]},actions:{onFlipY:P,onFlipX:E,onRotateLeft:O,onRotateRight:w,onZoomOut:x,onZoomIn:$},transform:m},R?{current:f,total:h}:{})):Y)))})},Nse=["fallback","src","imgRef"],jse=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Dse=function(t){var n=t.fallback,r=t.src,o=t.imgRef,a=ze(t,Nse),i=P9({src:r,fallback:n}),l=X(i,2),s=l[0],u=l[1];return W.createElement("img",be({ref:function(f){o.current=f,s(f)}},a,u))},I9=function(t){var n=t.prefixCls,r=t.src,o=t.alt,a=t.fallback,i=t.movable,l=i===void 0?!0:i,s=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,m=t.rootClassName,h=t.closeIcon,g=t.getContainer,v=t.current,p=v===void 0?0:v,y=t.count,b=y===void 0?1:y,C=t.countRender,S=t.scaleStep,$=S===void 0?.5:S,x=t.minScale,w=x===void 0?1:x,O=t.maxScale,E=O===void 0?50:O,P=t.transitionName,M=P===void 0?"zoom":P,D=t.maskTransitionName,R=D===void 0?"fade":D,_=t.imageRender,T=t.imgCommonProps,k=t.toolbarRender,N=t.onTransform,j=t.onChange,A=ze(t,jse),B=c.useRef(),z=c.useContext(xm),H=z&&b>1,V=z&&b>=1,U=c.useState(!0),K=X(U,2),Y=K[0],G=K[1],q=Ose(B,w,E,N),J=q.transform,Q=q.resetTransform,ne=q.updateTransform,re=q.dispatchZoomChange,oe=Mse(B,l,u,$,J,ne,re),te=oe.isMoving,ee=oe.onMouseDown,ie=oe.onWheel,de=_se(B,l,u,w,J,ne,re),he=de.isTouching,fe=de.onTouchStart,le=de.onTouchMove,me=de.onTouchEnd,ye=J.rotate,ge=J.scale,ve=Z(L({},"".concat(n,"-moving"),te));c.useEffect(function(){Y||G(!0)},[Y]);var $e=function(){Q("close")},Ce=function(){re(gc+$,"zoomIn")},Oe=function(){re(gc/(gc+$),"zoomOut")},Re=function(){ne({rotate:ye+90},"rotateRight")},Ee=function(){ne({rotate:ye-90},"rotateLeft")},_e=function(){ne({flipX:!J.flipX},"flipX")},Fe=function(){ne({flipY:!J.flipY},"flipY")},qe=function(nt){nt==null||nt.preventDefault(),nt==null||nt.stopPropagation(),p>0&&(G(!1),Q("prev"),j==null||j(p-1,p))},Ze=function(nt){nt==null||nt.preventDefault(),nt==null||nt.stopPropagation(),p({position:e||"absolute",inset:0}),fce=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new Jt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},mi),{padding:`0 ${ae(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},mce=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new Jt(n).setAlpha(.1),h=m.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ae(i)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},vce=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new Jt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},gce=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},VC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},VC()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[mce(e),vce(e)]}]},pce=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},fce(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},VC())}}},hce=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Cu(e,"zoom"),"&":Q_(e,!0)}},yce=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Jt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Jt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Jt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),M9=Ht("Image",e=>{const t=`${e.componentCls}-preview`,n=_t(e,{previewCls:t,modalMaskBg:new Jt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[pce(n),gce(n),Z_(_t(n,{componentCls:t})),hce(n)]},yce);var bce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:n}=e,r=bce(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=c.useContext(at),a=o("image",t),i=`${a}-preview`,l=o(),s=pn(a),[u,d,f]=M9(a,s),[m]=Uo("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=c.useMemo(()=>{var g;if(n===!1)return n;const v=typeof n=="object"?n:{},p=Z(d,f,s,(g=v.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},v),{transitionName:$r(l,"zoom",v.transitionName),maskTransitionName:$r(l,"fade",v.maskTransitionName),rootClassName:p,zIndex:m})},[n]);return u(c.createElement(f0.PreviewGroup,Object.assign({preview:h,previewPrefixCls:i,icons:R9},r)))},Sce=Cce;var K3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:r,className:o,rootClassName:a,style:i}=e,l=K3(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=Da,getPopupContainer:d,image:f}=c.useContext(at),m=s("image",n),h=s(),g=u.Image||Da.Image,v=pn(m),[p,y,b]=M9(m,v),C=Z(a,y,b,v),S=Z(o,y,f==null?void 0:f.className),[$]=Uo("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=c.useMemo(()=>{var O;if(r===!1)return r;const E=typeof r=="object"?r:{},{getContainer:P,closeIcon:M}=E,D=K3(E,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:c.createElement("div",{className:`${m}-mask-info`},c.createElement(iw,null),g==null?void 0:g.preview),icons:R9},D),{getContainer:P??d,transitionName:$r(h,"zoom",E.transitionName),maskTransitionName:$r(h,"fade",E.maskTransitionName),zIndex:$,closeIcon:M??((O=f==null?void 0:f.preview)===null||O===void 0?void 0:O.closeIcon)})},[r,g,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),w=Object.assign(Object.assign({},f==null?void 0:f.style),i);return p(c.createElement(f0,Object.assign({prefixCls:m,preview:x,rootClassName:C,className:S,style:w},l)))};_9.PreviewGroup=Sce;const xce=_9;function wce(e,t,n){return typeof n=="boolean"?n:e.length?!0:sr(t).some(o=>o.type===ZT)}const $ce=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:o},[`${t}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},Ece=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:h,motionDurationMid:g,motionDurationSlow:v,fontSize:p,borderRadius:y,bodyBg:b,headerBg:C,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:ae(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},$ce(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:ae(l),background:C,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:p,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Pce=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},T9=Ht("Layout",e=>[Ece(e)],Pce,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var N9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oc.forwardRef((i,l)=>c.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},i)))}const uw=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=N9(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=c.useContext(at),s=l("layout",n),[u,d,f]=T9(s),m=r?`${s}-${r}`:s;return u(c.createElement(a,Object.assign({className:Z(n||m,o,d,f),ref:t},i)))}),Oce=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(at),[r,o]=c.useState([]),{prefixCls:a,className:i,rootClassName:l,children:s,hasSider:u,tagName:d,style:f}=e,m=N9(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=gn(m,["suffixCls"]),{getPrefixCls:g,layout:v}=c.useContext(at),p=g("layout",a),y=wce(r,s,u),[b,C,S]=T9(p),$=Z(p,{[`${p}-has-sider`]:y,[`${p}-rtl`]:n==="rtl"},v==null?void 0:v.className,i,l,C,S),x=c.useMemo(()=>({siderHook:{addSider:w=>{o(O=>[].concat(Te(O),[w]))},removeSider:w=>{o(O=>O.filter(E=>E!==w))}}}),[]);return b(c.createElement(QT.Provider,{value:x},c.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),s)))}),Ice=m0({tagName:"div",displayName:"Layout"})(Oce),Mce=m0({suffixCls:"header",tagName:"header",displayName:"Header"})(uw),Rce=m0({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(uw),_ce=m0({suffixCls:"content",tagName:"main",displayName:"Content"})(uw),Tce=Ice,_u=Tce;_u.Header=Mce;_u.Footer=Rce;_u.Content=_ce;_u.Sider=ZT;_u._InternalSiderContext=Qh;const ms=_u,Nce=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e},jce=Nce;var Dce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Fce=Dce;var kce=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Fce}))},Lce=c.forwardRef(kce);const U3=Lce;var Ace={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Bce=Ace;var zce=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Bce}))},Hce=c.forwardRef(zce);const G3=Hce;var j9={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Vce=["10","20","50","100"],Wce=function(t){var n=t.pageSizeOptions,r=n===void 0?Vce:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,h=t.buildOptionText,g=W.useState(""),v=X(g,2),p=v[0],y=v[1],b=function(){return!p||Number.isNaN(p)?void 0:Number(p)},C=typeof h=="function"?h:function(_){return"".concat(_," ").concat(o.items_per_page)},S=function(T){a==null||a(Number(T))},$=function(T){y(T.target.value)},x=function(T){l||p===""||(y(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(b())))},w=function(T){p!==""&&(T.keyCode===Ie.ENTER||T.type==="click")&&(y(""),s==null||s(b()))},O=function(){return r.some(function(T){return T.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(T,k){var N=Number.isNaN(Number(T))?0:Number(T),j=Number.isNaN(Number(k))?0:Number(k);return N-j})},E="".concat(u,"-options");if(!a&&!s)return null;var P=null,M=null,D=null;if(a&&d){var R=O().map(function(_,T){return W.createElement(d.Option,{key:T,value:_.toString()},C(_))});P=W.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:S,getPopupContainer:function(T){return T.parentNode},"aria-label":o.page_size,defaultOpen:!1},R)}return s&&(l&&(D=typeof l=="boolean"?W.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):W.createElement("span",{onClick:w,onKeyUp:w},l)),M=W.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,W.createElement("input",{disabled:m,type:"text",value:p,onChange:$,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,D)),W.createElement("li",{className:E},P,M)},ud=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=Z(f,"".concat(f,"-").concat(o),(n={},L(n,"".concat(f,"-active"),a),L(n,"".concat(f,"-disabled"),!o),n),i),h=function(){s(o)},g=function(y){u(y,s,o)},v=d(o,"page",W.createElement("a",{rel:"nofollow"},o));return v?W.createElement("li",{title:l?String(o):null,className:m,onClick:h,onKeyDown:g,tabIndex:0},v):null},Kce=function(t,n,r){return r};function q3(){}function Y3(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Tl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Uce=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,l=t.className,s=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,h=m===void 0?0:m,g=t.pageSize,v=t.defaultPageSize,p=v===void 0?10:v,y=t.onChange,b=y===void 0?q3:y,C=t.hideOnSinglePage,S=t.showPrevNextJumpers,$=S===void 0?!0:S,x=t.showQuickJumper,w=t.showLessItems,O=t.showTitle,E=O===void 0?!0:O,P=t.onShowSizeChange,M=P===void 0?q3:P,D=t.locale,R=D===void 0?j9:D,_=t.style,T=t.totalBoundaryShowSizeChanger,k=T===void 0?50:T,N=t.disabled,j=t.simple,A=t.showTotal,B=t.showSizeChanger,z=t.pageSizeOptions,H=t.itemRender,V=H===void 0?Kce:H,U=t.jumpPrevIcon,K=t.jumpNextIcon,Y=t.prevIcon,G=t.nextIcon,q=W.useRef(null),J=Pt(10,{value:g,defaultValue:p}),Q=X(J,2),ne=Q[0],re=Q[1],oe=Pt(1,{value:u,defaultValue:f,postState:function(Tt){return Math.max(1,Math.min(Tt,Tl(void 0,ne,h)))}}),te=X(oe,2),ee=te[0],ie=te[1],de=W.useState(ee),he=X(de,2),fe=he[0],le=he[1];c.useEffect(function(){le(ee)},[ee]);var me=Math.max(1,ee-(w?3:5)),ye=Math.min(Tl(void 0,ne,h),ee+(w?3:5));function ge(dt,Tt){var jt=dt||W.createElement("button",{type:"button","aria-label":Tt,className:"".concat(o,"-item-link")});return typeof dt=="function"&&(jt=W.createElement(dt,I({},t))),jt}function ve(dt){var Tt=dt.target.value,jt=Tl(void 0,ne,h),Qt;return Tt===""?Qt=Tt:Number.isNaN(Number(Tt))?Qt=fe:Tt>=jt?Qt=jt:Qt=Number(Tt),Qt}function $e(dt){return Y3(dt)&&dt!==ee&&Y3(h)&&h>0}var Ce=h>ne?x:!1;function Oe(dt){(dt.keyCode===Ie.UP||dt.keyCode===Ie.DOWN)&&dt.preventDefault()}function Re(dt){var Tt=ve(dt);switch(Tt!==fe&&le(Tt),dt.keyCode){case Ie.ENTER:Fe(Tt);break;case Ie.UP:Fe(Tt-1);break;case Ie.DOWN:Fe(Tt+1);break}}function Ee(dt){Fe(ve(dt))}function _e(dt){var Tt=Tl(dt,ne,h),jt=ee>Tt&&Tt!==0?Tt:ee;re(dt),le(jt),M==null||M(ee,dt),ie(jt),b==null||b(jt,dt)}function Fe(dt){if($e(dt)&&!N){var Tt=Tl(void 0,ne,h),jt=dt;return dt>Tt?jt=Tt:dt<1&&(jt=1),jt!==fe&&le(jt),ie(jt),b==null||b(jt,ne),jt}return ee}var qe=ee>1,Ze=eek;function Be(){qe&&Fe(ee-1)}function Ue(){Ze&&Fe(ee+1)}function Je(){Fe(me)}function nt(){Fe(ye)}function mt(dt,Tt){if(dt.key==="Enter"||dt.charCode===Ie.ENTER||dt.keyCode===Ie.ENTER){for(var jt=arguments.length,Qt=new Array(jt>2?jt-2:0),kn=2;knh?h:ee*ne])),He=null,Me=Tl(void 0,ne,h);if(C&&h<=ne)return null;var Le=[],Xe={rootPrefixCls:o,onClick:Fe,onKeyPress:mt,showTitle:E,itemRender:V,page:-1},Ke=ee-1>0?ee-1:0,it=ee+1=st*2&&ee!==3&&(Le[0]=W.cloneElement(Le[0],{className:Z("".concat(o,"-item-after-jump-prev"),Le[0].props.className)}),Le.unshift(xe)),Me-ee>=st*2&&ee!==Me-2){var ct=Le[Le.length-1];Le[Le.length-1]=W.cloneElement(ct,{className:Z("".concat(o,"-item-before-jump-next"),ct.props.className)}),Le.push(He)}tt!==1&&Le.unshift(W.createElement(ud,be({},Xe,{key:1,page:1}))),pt!==Me&&Le.push(W.createElement(ud,be({},Xe,{key:Me,page:Me})))}var lt=se(Ke);if(lt){var ht=!qe||!Me;lt=W.createElement("li",{title:E?R.prev_page:null,onClick:Be,tabIndex:ht?null:0,onKeyDown:gt,className:Z("".concat(o,"-prev"),L({},"".concat(o,"-disabled"),ht)),"aria-disabled":ht},lt)}var ft=pe(it);if(ft){var Lt,Cn;j?(Lt=!Ze,Cn=qe?0:null):(Lt=!Ze||!Me,Cn=Lt?null:0),ft=W.createElement("li",{title:E?R.next_page:null,onClick:Ue,tabIndex:Cn,onKeyDown:yt,className:Z("".concat(o,"-next"),L({},"".concat(o,"-disabled"),Lt)),"aria-disabled":Lt},ft)}var mn=Z(o,l,(n={},L(n,"".concat(o,"-simple"),j),L(n,"".concat(o,"-disabled"),N),n));return W.createElement("ul",be({className:mn,style:_,ref:q},Ne),We,lt,j?Ct:Le,ft,W.createElement(Wce,{locale:R,rootPrefixCls:o,disabled:N,selectComponentClass:s,selectPrefixCls:i,changeSize:ke?_e:null,pageSize:ne,pageSizeOptions:z,quickGo:Ce?Fe:null,goButton:Mt}))};const D9=e=>c.createElement(Ta,Object.assign({},e,{showSearch:!0,size:"small"})),F9=e=>c.createElement(Ta,Object.assign({},e,{showSearch:!0,size:"middle"}));D9.Option=Ta.Option;F9.Option=Ta.Option;const Gce=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},qce=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + .${r}-col-xl-24${n}-label`]:Ys(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[oce(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ys(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ys(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ys(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ys(e)}}}},ice=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}),F9=(e,t)=>_t(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),dw=Ht("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=F9(e,n);return[ece(r),tce(r),Zse(r),nce(r),rce(r),ace(r),Vh(r),u2]},ice,{order:-1e3}),oO=[];function gb(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const lce=e=>{let{help:t,helpStatus:n,errors:r=oO,warnings:o=oO,className:a,fieldId:i,onVisibleChanged:l}=e;const{prefixCls:s}=c.useContext(c2),u=`${s}-item-explain`,d=pn(s),[f,m,h]=dw(s,d),g=c.useMemo(()=>sp(s),[s]),v=wp(r),p=wp(o),y=c.useMemo(()=>t!=null?[gb(t,"help",n)]:[].concat(Te(v.map((C,S)=>gb(C,"error","error",S))),Te(p.map((C,S)=>gb(C,"warning","warning",S)))),[t,n,v,p]),b={};return i&&(b.id=`${i}_help`),f(c.createElement(wr,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:l},C=>{const{className:S,style:$}=C;return c.createElement("div",Object.assign({},b,{className:Z(u,S,h,d,a,m),style:$,role:"alert"}),c.createElement(C_,Object.assign({keys:y},sp(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:w,error:O,errorStatus:E,className:P,style:M}=x;return c.createElement("div",{key:w,className:Z(P,{[`${u}-${E}`]:E}),style:M},O)}))}))},k9=lce,sce=["parentNode"],cce="form_item";function Zd(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function L9(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:sce.includes(n)?`${cce}_${n}`:n}function A9(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function aO(e){return Zd(e).join("_")}function B9(e){const[t]=s2(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=aO(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=Zd(o),l=L9(i,r.__INTERNAL__.name),s=l?document.getElementById(l):null;s&&WK(s,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=aO(o);return n.current[a]}}),[e,t]);return[r]}var uce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c.useContext(Kr),{getPrefixCls:r,direction:o,form:a}=c.useContext(at),{prefixCls:i,className:l,rootClassName:s,size:u,disabled:d=n,form:f,colon:m,labelAlign:h,labelWrap:g,labelCol:v,wrapperCol:p,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:$,name:x,style:w,feedbackIcons:O,variant:E}=e,P=uce(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=nr(u),D=c.useContext(VR),R=c.useMemo(()=>S!==void 0?S:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,S,a]),_=m??(a==null?void 0:a.colon),T=r("form",i),k=pn(T),[N,j,A]=dw(T,k),B=Z(T,`${T}-${b}`,{[`${T}-hide-required-mark`]:R===!1,[`${T}-rtl`]:o==="rtl",[`${T}-${M}`]:M},A,k,j,a==null?void 0:a.className,l,s),[z]=B9(f),{__INTERNAL__:H}=z;H.name=x;const V=c.useMemo(()=>({name:x,labelAlign:h,labelCol:v,labelWrap:g,wrapperCol:p,vertical:b==="vertical",colon:_,requiredMark:R,itemRef:H.itemRef,form:z,feedbackIcons:O}),[x,h,v,p,b,_,R,z,O]);c.useImperativeHandle(t,()=>z);const U=(Y,G)=>{if(Y){let q={block:"nearest"};typeof Y=="object"&&(q=Y),z.scrollToField(G,q)}},K=Y=>{if($==null||$(Y),Y.errorFields.length){const G=Y.errorFields[0].name;if(C!==void 0){U(C,G);return}a&&a.scrollToFirstError!==void 0&&U(a.scrollToFirstError,G)}};return N(c.createElement(vT.Provider,{value:E},c.createElement(Yx,{disabled:d},c.createElement(am.Provider,{value:M},c.createElement(mT,{validateMessages:D},c.createElement(gi.Provider,{value:V},c.createElement(Cu,Object.assign({id:x},P,{name:x,onFinishFailed:K,form:z,style:Object.assign(Object.assign({},a==null?void 0:a.style),w),className:B}))))))))},fce=c.forwardRef(dce);function mce(e){if(typeof e=="function")return e;const t=sr(e);return t.length<=1?t[0]:t}const z9=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(yr);return{status:e,errors:t,warnings:n}};z9.Context=yr;const vce=z9;function gce(e){const[t,n]=c.useState(e),r=c.useRef(null),o=c.useRef([]),a=c.useRef(!1);c.useEffect(()=>(a.current=!1,()=>{a.current=!0,At.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=At(()=>{r.current=null,n(s=>{let u=s;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}function pce(){const{itemRef:e}=c.useContext(gi),t=c.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Er(e(r),a)),t.current.ref}return n}const hce=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},yce=Rh(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=F9(e,n);return[hce(r)]}),bce=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:l,extra:s,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,h=`${t}-item`,g=c.useContext(gi),v=r||g.wrapperCol||{},p=Z(`${h}-control`,v.className),y=c.useMemo(()=>Object.assign({},g),[g]);delete y.labelCol,delete y.wrapperCol;const b=c.createElement("div",{className:`${h}-control-input`},c.createElement("div",{className:`${h}-control-input-content`},o)),C=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?c.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},c.createElement(c2.Provider,{value:C},c.createElement(k9,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:m})),!!f&&c.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=s?c.createElement("div",Object.assign({},$,{className:`${h}-extra`}),s):null,w=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:b,errorList:S,extra:x}):c.createElement(c.Fragment,null,b,S,x);return c.createElement(gi.Provider,{value:y},c.createElement(fl,Object.assign({},v,{className:p}),w),c.createElement(yce,{prefixCls:t}))},Cce=bce;var Sce={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"};const xce=Sce;var wce=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:xce}))},$ce=c.forwardRef(wce);const Ece=$ce;var Pce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:l,requiredMark:s,tooltip:u}=e;var d;const[f]=wi("Form"),{vertical:m,labelAlign:h,labelCol:g,labelWrap:v,colon:p}=c.useContext(gi);if(!n)return null;const y=o||g||{},b=a||h,C=`${t}-item-label`,S=Z(C,b==="left"&&`${C}-left`,y.className,{[`${C}-wrap`]:!!v});let $=n;const x=i===!0||p!==!1&&i!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const O=Oce(u);if(O){const{icon:D=c.createElement(Ece,null)}=O,R=Pce(O,["icon"]),_=c.createElement(Go,Object.assign({},R),c.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));$=c.createElement(c.Fragment,null,$,_)}const E=s==="optional",P=typeof s=="function";P?$=s($,{required:!!l}):E&&!l&&($=c.createElement(c.Fragment,null,$,c.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Da.Form)===null||d===void 0?void 0:d.optional))));const M=Z({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||P,[`${t}-item-no-colon`]:!x});return c.createElement(fl,Object.assign({},y,{className:S}),c.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},$))},Mce=Ice,Rce={success:bs,warning:yu,error:Ha,validating:Cl};function H9(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:l,noStyle:s}=e;const u=`${i}-item`,{feedbackIcons:d}=c.useContext(gi),f=A9(n,r,l,null,!!o,a),{isFormItemInput:m,status:h,hasFeedback:g,feedbackIcon:v}=c.useContext(yr),p=c.useMemo(()=>{var y;let b;if(o){const S=o!==!0&&o.icons||d,$=f&&((y=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),x=f&&Rce[f];b=$!==!1&&x?c.createElement("span",{className:Z(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||c.createElement(x,null)):null}const C={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:b,isFormItemInput:!0};return s&&(C.status=(f??h)||"",C.isFormItemInput=m,C.hasFeedback=!!(o??g),C.feedbackIcon=o!==void 0?C.feedbackIcon:v),C},[f,o,s,m,h]);return c.createElement(yr.Provider,{value:p},t)}var _ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(O&&S.current){const k=getComputedStyle(S.current);M(parseInt(k.marginBottom,10))}},[O,E]);const D=k=>{k||M(null)},_=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const N=k?$:u.errors,j=k?x:u.warnings;return A9(N,j,u,"",!!d,s)}(),T=Z(b,n,r,{[`${b}-with-help`]:w||$.length||x.length,[`${b}-has-feedback`]:_&&d,[`${b}-has-success`]:_==="success",[`${b}-has-warning`]:_==="warning",[`${b}-has-error`]:_==="error",[`${b}-is-validating`]:_==="validating",[`${b}-hidden`]:f});return c.createElement("div",{className:T,style:o,ref:S},c.createElement(xm,Object.assign({className:`${b}-row`},gn(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),c.createElement(Mce,Object.assign({htmlFor:h},e,{requiredMark:C,required:g??v,prefixCls:t})),c.createElement(Cce,Object.assign({},e,u,{errors:$,warnings:x,prefixCls:t,status:_,help:a,marginBottom:P,onErrorVisibleChanged:D}),c.createElement(fT.Provider,{value:p},c.createElement(H9,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:_},m)))),!!P&&c.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-P}}))}const Nce="__SPLIT__";function jce(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const Dce=c.memo(e=>{let{children:t}=e;return t},(e,t)=>jce(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function iO(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fce(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:s,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:g,help:v}=e,{getPrefixCls:p}=c.useContext(at),{name:y}=c.useContext(gi),b=mce(s),C=typeof b=="function",S=c.useContext(fT),{validateTrigger:$}=c.useContext(ul),x=h!==void 0?h:$,w=t!=null,O=p("form",a),E=pn(O),[P,M,D]=dw(O,E);gu();const R=c.useContext(Mf),_=c.useRef(),[T,k]=gce({}),[N,j]=rl(()=>iO()),A=Y=>{const G=R==null?void 0:R.getKey(Y.name);if(j(Y.destroy?iO():Y,!0),n&&v!==!1&&S){let q=Y.name;if(Y.destroy)q=_.current||q;else if(G!==void 0){const[J,Q]=G;q=[J].concat(Te(Q)),_.current=q}S(Y,q)}},B=(Y,G)=>{k(q=>{const J=Object.assign({},q),ne=[].concat(Te(Y.name.slice(0,-1)),Te(G)).join(Nce);return Y.destroy?delete J[ne]:J[ne]=Y,J})},[z,H]=c.useMemo(()=>{const Y=Te(N.errors),G=Te(N.warnings);return Object.values(T).forEach(q=>{Y.push.apply(Y,Te(q.errors||[])),G.push.apply(G,Te(q.warnings||[]))}),[Y,G]},[T,N.errors,N.warnings]),V=pce();function U(Y,G,q){return n&&!g?c.createElement(H9,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:z,warnings:H,noStyle:!0},Y):c.createElement(Tce,Object.assign({key:"row"},e,{className:Z(r,D,E,M),prefixCls:O,fieldId:G,isRequired:q,errors:z,warnings:H,meta:N,onSubItemMetaChange:B}),Y)}if(!w&&!C&&!o)return P(U(b));let K={};return typeof d=="string"?K.label=d:t&&(K.label=String(t)),f&&(K=Object.assign(Object.assign({},K),f)),P(c.createElement(l2,Object.assign({},e,{messageVariables:K,trigger:m,validateTrigger:x,onMetaChange:A}),(Y,G,q)=>{const J=Zd(t).length&&G?G.name:[],Q=L9(J,y),ne=u!==void 0?u:!!(l&&l.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const ee=te(q);return ee&&ee.required&&!ee.warningOnly}return!1})),re=Object.assign({},Y);let oe=null;if(Array.isArray(b)&&w)oe=b;else if(!(C&&(!(i||o)||w))){if(!(o&&!C&&!w))if(c.isValidElement(b)){const te=Object.assign(Object.assign({},b.props),re);if(te.id||(te.id=Q),v||z.length>0||H.length>0||e.extra){const de=[];(v||z.length>0)&&de.push(`${Q}_help`),e.extra&&de.push(`${Q}_extra`),te["aria-describedby"]=de.join(" ")}z.length>0&&(te["aria-invalid"]="true"),ne&&(te["aria-required"]="true"),Si(b)&&(te.ref=V(J,b)),new Set([].concat(Te(Zd(m)),Te(Zd(x)))).forEach(de=>{te[de]=function(){for(var he,fe,le,me,ye,ge=arguments.length,ve=new Array(ge),$e=0;$e{var{prefixCls:t,children:n}=e,r=Lce(e,["prefixCls","children"]);const{getPrefixCls:o}=c.useContext(at),a=o("form",t),i=c.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return c.createElement(sT,Object.assign({},r),(l,s,u)=>c.createElement(c2.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:u.errors,warnings:u.warnings})))},Bce=Ace;function zce(){const{form:e}=c.useContext(gi);return e}const Kn=fce;Kn.Item=kce;Kn.List=Bce;Kn.ErrorList=k9;Kn.useForm=B9;Kn.useFormInstance=zce;Kn.useWatch=dT;Kn.Provider=mT;Kn.create=()=>{};function W9(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Hce(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var UC=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],$m=c.createContext(null),lO=0;function Vce(e,t){var n=c.useState(function(){return lO+=1,String(lO)}),r=X(n,1),o=r[0],a=c.useContext($m),i={data:t,canPreview:e};return c.useEffect(function(){if(a)return a.register(o,i)},[]),c.useEffect(function(){a&&a.register(o,i)},[e,t]),o}function Wce(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function K9(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=c.useState(n?"loading":"normal"),a=X(o,2),i=a[0],l=a[1],s=c.useRef(!1),u=i==="error";c.useEffect(function(){var h=!0;return Wce(t).then(function(g){!g&&h&&l("error")}),function(){h=!1}},[t]),c.useEffect(function(){n&&!s.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(g){s.current=!1,i==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(s.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,i]}function pc(e,t,n,r){var o=qg.unstable_batchedUpdates?function(i){qg.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var Tv={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Kce(e,t,n,r){var o=c.useRef(null),a=c.useRef([]),i=c.useState(Tv),l=X(i,2),s=l[0],u=l[1],d=function(g){u(Tv),r&&!mu(Tv,s)&&r({transform:Tv,action:g})},f=function(g,v){o.current===null&&(a.current=[],o.current=At(function(){u(function(p){var y=p;return a.current.forEach(function(b){y=I(I({},y),b)}),o.current=null,r==null||r({transform:y,action:v}),y})})),a.current.push(I(I({},s),g))},m=function(g,v,p,y,b){var C=e.current,S=C.width,$=C.height,x=C.offsetWidth,w=C.offsetHeight,O=C.offsetLeft,E=C.offsetTop,P=g,M=s.scale*g;M>n?(M=n,P=n/s.scale):Mr){if(t>0)return L({},e,a);if(t<0&&or)return L({},e,t<0?a:-a);return{}}function U9(e,t,n,r){var o=W9(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=I(I({},sO("x",n,e,a)),sO("y",r,t,i))),l}var hc=1,Uce=1;function Gce(e,t,n,r,o,a,i){var l=o.rotate,s=o.scale,u=o.x,d=o.y,f=c.useState(!1),m=X(f,2),h=m[0],g=m[1],v=c.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),p=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),v.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},g(!0))},y=function($){n&&h&&a({x:$.pageX-v.current.diffX,y:$.pageY-v.current.diffY},"move")},b=function(){if(n&&h){g(!1);var $=v.current,x=$.transformX,w=$.transformY,O=u!==x&&d!==w;if(!O)return;var E=e.current.offsetWidth*s,P=e.current.offsetHeight*s,M=e.current.getBoundingClientRect(),D=M.left,R=M.top,_=l%180!==0,T=U9(_?P:E,_?E:P,D,R);T&&a(I({},T),"dragRebound")}},C=function($){if(!(!n||$.deltaY==0)){var x=Math.abs($.deltaY/100),w=Math.min(x,Uce),O=hc+w*r;$.deltaY>0&&(O=hc/O),i(O,"wheel",$.clientX,$.clientY)}};return c.useEffect(function(){var S,$,x,w;if(t){x=pc(window,"mouseup",b,!1),w=pc(window,"mousemove",y,!1);try{window.top!==window.self&&(S=pc(window.top,"mouseup",b,!1),$=pc(window.top,"mousemove",y,!1))}catch{}}return function(){var O,E,P,M;(O=x)===null||O===void 0||O.remove(),(E=w)===null||E===void 0||E.remove(),(P=S)===null||P===void 0||P.remove(),(M=$)===null||M===void 0||M.remove()}},[n,h,u,d,l,t]),{isMoving:h,onMouseDown:p,onMouseMove:y,onMouseUp:b,onWheel:C}}function $p(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function qce(e,t,n,r){var o=$p(e,n),a=$p(t,r);if(o===0&&a===0)return[e.x,e.y];var i=o/(o+a),l=e.x+i*(t.x-e.x),s=e.y+i*(t.y-e.y);return[l,s]}function Yce(e,t,n,r,o,a,i){var l=o.rotate,s=o.scale,u=o.x,d=o.y,f=c.useState(!1),m=X(f,2),h=m[0],g=m[1],v=c.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function($){v.current=I(I({},v.current),$)},y=function($){if(t){$.stopPropagation(),g(!0);var x=$.touches,w=x===void 0?[]:x;w.length>1?p({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):p({point1:{x:w[0].clientX-u,y:w[0].clientY-d},eventType:"move"})}},b=function($){var x=$.touches,w=x===void 0?[]:x,O=v.current,E=O.point1,P=O.point2,M=O.eventType;if(w.length>1&&M==="touchZoom"){var D={x:w[0].clientX,y:w[0].clientY},R={x:w[1].clientX,y:w[1].clientY},_=qce(E,P,D,R),T=X(_,2),k=T[0],N=T[1],j=$p(D,R)/$p(E,P);i(j,"touchZoom",k,N,!0),p({point1:D,point2:R,eventType:"touchZoom"})}else M==="move"&&(a({x:w[0].clientX-E.x,y:w[0].clientY-E.y},"move"),p({eventType:"move"}))},C=function(){if(n){if(h&&g(!1),p({eventType:"none"}),r>s)return a({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*s,x=e.current.offsetHeight*s,w=e.current.getBoundingClientRect(),O=w.left,E=w.top,P=l%180!==0,M=U9(P?x:$,P?$:x,O,E);M&&a(I({},M),"dragRebound")}};return c.useEffect(function(){var S;return n&&t&&(S=pc(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=S)===null||$===void 0||$.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:b,onTouchEnd:C}}var Xce=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,a=t.prefixCls,i=t.rootClassName,l=t.icons,s=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,h=t.count,g=t.scale,v=t.minScale,p=t.maxScale,y=t.closeIcon,b=t.onSwitchLeft,C=t.onSwitchRight,S=t.onClose,$=t.onZoomIn,x=t.onZoomOut,w=t.onRotateRight,O=t.onRotateLeft,E=t.onFlipX,P=t.onFlipY,M=t.toolbarRender,D=t.zIndex,R=c.useContext($m),_=l.rotateLeft,T=l.rotateRight,k=l.zoomIn,N=l.zoomOut,j=l.close,A=l.left,B=l.right,z=l.flipX,H=l.flipY,V="".concat(a,"-operations-operation");c.useEffect(function(){var G=function(J){J.keyCode===Ie.ESC&&S()};return n&&window.addEventListener("keydown",G),function(){window.removeEventListener("keydown",G)}},[n]);var U=[{icon:H,onClick:P,type:"flipY"},{icon:z,onClick:E,type:"flipX"},{icon:_,onClick:O,type:"rotateLeft"},{icon:T,onClick:w,type:"rotateRight"},{icon:N,onClick:x,type:"zoomOut",disabled:g<=v},{icon:k,onClick:$,type:"zoomIn",disabled:g===p}],K=U.map(function(G){var q,J=G.icon,Q=G.onClick,ne=G.type,re=G.disabled;return c.createElement("div",{className:Z(V,(q={},L(q,"".concat(a,"-operations-operation-").concat(ne),!0),L(q,"".concat(a,"-operations-operation-disabled"),!!re),q)),onClick:Q,key:ne},J)}),Y=c.createElement("div",{className:"".concat(a,"-operations")},K);return c.createElement(wr,{visible:n,motionName:r},function(G){var q=G.className,J=G.style;return c.createElement(dm,{open:!0,getContainer:o??document.body},c.createElement("div",{className:Z("".concat(a,"-operations-wrapper"),q,i),style:I(I({},J),{},{zIndex:D})},y===null?null:c.createElement("button",{className:"".concat(a,"-close"),onClick:S},y||j),u&&c.createElement(c.Fragment,null,c.createElement("div",{className:Z("".concat(a,"-switch-left"),L({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:b},A),c.createElement("div",{className:Z("".concat(a,"-switch-right"),L({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:C},B)),c.createElement("div",{className:"".concat(a,"-footer")},d&&c.createElement("div",{className:"".concat(a,"-progress")},s?s(f+1,h):"".concat(f+1," / ").concat(h)),M?M(Y,I({icons:{flipYIcon:K[0],flipXIcon:K[1],rotateLeftIcon:K[2],rotateRightIcon:K[3],zoomOutIcon:K[4],zoomInIcon:K[5]},actions:{onFlipY:P,onFlipX:E,onRotateLeft:O,onRotateRight:w,onZoomOut:x,onZoomIn:$},transform:m},R?{current:f,total:h}:{})):Y)))})},Qce=["fallback","src","imgRef"],Zce=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Jce=function(t){var n=t.fallback,r=t.src,o=t.imgRef,a=ze(t,Qce),i=K9({src:r,fallback:n}),l=X(i,2),s=l[0],u=l[1];return W.createElement("img",be({ref:function(f){o.current=f,s(f)}},a,u))},G9=function(t){var n=t.prefixCls,r=t.src,o=t.alt,a=t.fallback,i=t.movable,l=i===void 0?!0:i,s=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,m=t.rootClassName,h=t.closeIcon,g=t.getContainer,v=t.current,p=v===void 0?0:v,y=t.count,b=y===void 0?1:y,C=t.countRender,S=t.scaleStep,$=S===void 0?.5:S,x=t.minScale,w=x===void 0?1:x,O=t.maxScale,E=O===void 0?50:O,P=t.transitionName,M=P===void 0?"zoom":P,D=t.maskTransitionName,R=D===void 0?"fade":D,_=t.imageRender,T=t.imgCommonProps,k=t.toolbarRender,N=t.onTransform,j=t.onChange,A=ze(t,Zce),B=c.useRef(),z=c.useContext($m),H=z&&b>1,V=z&&b>=1,U=c.useState(!0),K=X(U,2),Y=K[0],G=K[1],q=Kce(B,w,E,N),J=q.transform,Q=q.resetTransform,ne=q.updateTransform,re=q.dispatchZoomChange,oe=Gce(B,l,u,$,J,ne,re),te=oe.isMoving,ee=oe.onMouseDown,ie=oe.onWheel,de=Yce(B,l,u,w,J,ne,re),he=de.isTouching,fe=de.onTouchStart,le=de.onTouchMove,me=de.onTouchEnd,ye=J.rotate,ge=J.scale,ve=Z(L({},"".concat(n,"-moving"),te));c.useEffect(function(){Y||G(!0)},[Y]);var $e=function(){Q("close")},Ce=function(){re(hc+$,"zoomIn")},Oe=function(){re(hc/(hc+$),"zoomOut")},Re=function(){ne({rotate:ye+90},"rotateRight")},Ee=function(){ne({rotate:ye-90},"rotateLeft")},_e=function(){ne({flipX:!J.flipX},"flipX")},Fe=function(){ne({flipY:!J.flipY},"flipY")},qe=function(nt){nt==null||nt.preventDefault(),nt==null||nt.stopPropagation(),p>0&&(G(!1),Q("prev"),j==null||j(p-1,p))},Ze=function(nt){nt==null||nt.preventDefault(),nt==null||nt.stopPropagation(),p({position:e||"absolute",inset:0}),Rue=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new Jt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},mi),{padding:`0 ${ae(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},_ue=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new Jt(n).setAlpha(.1),h=m.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ae(i)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},Tue=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new Jt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},Nue=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},GC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},GC()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[_ue(e),Tue(e)]}]},jue=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Rue(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},GC())}}},Due=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Su(e,"zoom"),"&":pT(e,!0)}},Fue=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Jt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Jt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Jt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),q9=Ht("Image",e=>{const t=`${e.componentCls}-preview`,n=_t(e,{previewCls:t,modalMaskBg:new Jt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[jue(n),Nue(n),hT(_t(n,{componentCls:t})),Due(n)]},Fue);var kue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:n}=e,r=kue(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=c.useContext(at),a=o("image",t),i=`${a}-preview`,l=o(),s=pn(a),[u,d,f]=q9(a,s),[m]=Uo("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=c.useMemo(()=>{var g;if(n===!1)return n;const v=typeof n=="object"?n:{},p=Z(d,f,s,(g=v.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},v),{transitionName:$r(l,"zoom",v.transitionName),maskTransitionName:$r(l,"fade",v.maskTransitionName),rootClassName:p,zIndex:m})},[n]);return u(c.createElement(h0.PreviewGroup,Object.assign({preview:h,previewPrefixCls:i,icons:Y9},r)))},Aue=Lue;var uO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:r,className:o,rootClassName:a,style:i}=e,l=uO(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=Da,getPopupContainer:d,image:f}=c.useContext(at),m=s("image",n),h=s(),g=u.Image||Da.Image,v=pn(m),[p,y,b]=q9(m,v),C=Z(a,y,b,v),S=Z(o,y,f==null?void 0:f.className),[$]=Uo("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=c.useMemo(()=>{var O;if(r===!1)return r;const E=typeof r=="object"?r:{},{getContainer:P,closeIcon:M}=E,D=uO(E,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:c.createElement("div",{className:`${m}-mask-info`},c.createElement(sw,null),g==null?void 0:g.preview),icons:Y9},D),{getContainer:P??d,transitionName:$r(h,"zoom",E.transitionName),maskTransitionName:$r(h,"fade",E.maskTransitionName),zIndex:$,closeIcon:M??((O=f==null?void 0:f.preview)===null||O===void 0?void 0:O.closeIcon)})},[r,g,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),w=Object.assign(Object.assign({},f==null?void 0:f.style),i);return p(c.createElement(h0,Object.assign({prefixCls:m,preview:x,rootClassName:C,className:S,style:w},l)))};X9.PreviewGroup=Aue;const Bue=X9;function zue(e,t,n){return typeof n=="boolean"?n:e.length?!0:sr(t).some(o=>o.type===hN)}const Hue=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:o},[`${t}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},Vue=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:h,motionDurationMid:g,motionDurationSlow:v,fontSize:p,borderRadius:y,bodyBg:b,headerBg:C,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:ae(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},Hue(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:ae(l),background:C,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:p,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Wue=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},Q9=Ht("Layout",e=>[Vue(e)],Wue,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Z9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oc.forwardRef((i,l)=>c.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},i)))}const fw=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=Z9(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=c.useContext(at),s=l("layout",n),[u,d,f]=Q9(s),m=r?`${s}-${r}`:s;return u(c.createElement(a,Object.assign({className:Z(n||m,o,d,f),ref:t},i)))}),Kue=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(at),[r,o]=c.useState([]),{prefixCls:a,className:i,rootClassName:l,children:s,hasSider:u,tagName:d,style:f}=e,m=Z9(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=gn(m,["suffixCls"]),{getPrefixCls:g,layout:v}=c.useContext(at),p=g("layout",a),y=zue(r,s,u),[b,C,S]=Q9(p),$=Z(p,{[`${p}-has-sider`]:y,[`${p}-rtl`]:n==="rtl"},v==null?void 0:v.className,i,l,C,S),x=c.useMemo(()=>({siderHook:{addSider:w=>{o(O=>[].concat(Te(O),[w]))},removeSider:w=>{o(O=>O.filter(E=>E!==w))}}}),[]);return b(c.createElement(pN.Provider,{value:x},c.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),s)))}),Uue=y0({tagName:"div",displayName:"Layout"})(Kue),Gue=y0({suffixCls:"header",tagName:"header",displayName:"Header"})(fw),que=y0({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(fw),Yue=y0({suffixCls:"content",tagName:"main",displayName:"Content"})(fw),Xue=Uue,Tu=Xue;Tu.Header=Gue;Tu.Footer=que;Tu.Content=Yue;Tu.Sider=hN;Tu._InternalSiderContext=n0;const ms=Tu,Que=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e},Zue=Que;var Jue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const ede=Jue;var tde=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ede}))},nde=c.forwardRef(tde);const dO=nde;var rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const ode=rde;var ade=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ode}))},ide=c.forwardRef(ade);const fO=ide;var J9={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},lde=["10","20","50","100"],sde=function(t){var n=t.pageSizeOptions,r=n===void 0?lde:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,h=t.buildOptionText,g=W.useState(""),v=X(g,2),p=v[0],y=v[1],b=function(){return!p||Number.isNaN(p)?void 0:Number(p)},C=typeof h=="function"?h:function(_){return"".concat(_," ").concat(o.items_per_page)},S=function(T){a==null||a(Number(T))},$=function(T){y(T.target.value)},x=function(T){l||p===""||(y(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(b())))},w=function(T){p!==""&&(T.keyCode===Ie.ENTER||T.type==="click")&&(y(""),s==null||s(b()))},O=function(){return r.some(function(T){return T.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(T,k){var N=Number.isNaN(Number(T))?0:Number(T),j=Number.isNaN(Number(k))?0:Number(k);return N-j})},E="".concat(u,"-options");if(!a&&!s)return null;var P=null,M=null,D=null;if(a&&d){var R=O().map(function(_,T){return W.createElement(d.Option,{key:T,value:_.toString()},C(_))});P=W.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:S,getPopupContainer:function(T){return T.parentNode},"aria-label":o.page_size,defaultOpen:!1},R)}return s&&(l&&(D=typeof l=="boolean"?W.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):W.createElement("span",{onClick:w,onKeyUp:w},l)),M=W.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,W.createElement("input",{disabled:m,type:"text",value:p,onChange:$,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,D)),W.createElement("li",{className:E},P,M)},gd=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=Z(f,"".concat(f,"-").concat(o),(n={},L(n,"".concat(f,"-active"),a),L(n,"".concat(f,"-disabled"),!o),n),i),h=function(){s(o)},g=function(y){u(y,s,o)},v=d(o,"page",W.createElement("a",{rel:"nofollow"},o));return v?W.createElement("li",{title:l?String(o):null,className:m,onClick:h,onKeyDown:g,tabIndex:0},v):null},cde=function(t,n,r){return r};function mO(){}function vO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Tl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var ude=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,l=t.className,s=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,h=m===void 0?0:m,g=t.pageSize,v=t.defaultPageSize,p=v===void 0?10:v,y=t.onChange,b=y===void 0?mO:y,C=t.hideOnSinglePage,S=t.showPrevNextJumpers,$=S===void 0?!0:S,x=t.showQuickJumper,w=t.showLessItems,O=t.showTitle,E=O===void 0?!0:O,P=t.onShowSizeChange,M=P===void 0?mO:P,D=t.locale,R=D===void 0?J9:D,_=t.style,T=t.totalBoundaryShowSizeChanger,k=T===void 0?50:T,N=t.disabled,j=t.simple,A=t.showTotal,B=t.showSizeChanger,z=t.pageSizeOptions,H=t.itemRender,V=H===void 0?cde:H,U=t.jumpPrevIcon,K=t.jumpNextIcon,Y=t.prevIcon,G=t.nextIcon,q=W.useRef(null),J=Pt(10,{value:g,defaultValue:p}),Q=X(J,2),ne=Q[0],re=Q[1],oe=Pt(1,{value:u,defaultValue:f,postState:function(Tt){return Math.max(1,Math.min(Tt,Tl(void 0,ne,h)))}}),te=X(oe,2),ee=te[0],ie=te[1],de=W.useState(ee),he=X(de,2),fe=he[0],le=he[1];c.useEffect(function(){le(ee)},[ee]);var me=Math.max(1,ee-(w?3:5)),ye=Math.min(Tl(void 0,ne,h),ee+(w?3:5));function ge(dt,Tt){var jt=dt||W.createElement("button",{type:"button","aria-label":Tt,className:"".concat(o,"-item-link")});return typeof dt=="function"&&(jt=W.createElement(dt,I({},t))),jt}function ve(dt){var Tt=dt.target.value,jt=Tl(void 0,ne,h),Qt;return Tt===""?Qt=Tt:Number.isNaN(Number(Tt))?Qt=fe:Tt>=jt?Qt=jt:Qt=Number(Tt),Qt}function $e(dt){return vO(dt)&&dt!==ee&&vO(h)&&h>0}var Ce=h>ne?x:!1;function Oe(dt){(dt.keyCode===Ie.UP||dt.keyCode===Ie.DOWN)&&dt.preventDefault()}function Re(dt){var Tt=ve(dt);switch(Tt!==fe&&le(Tt),dt.keyCode){case Ie.ENTER:Fe(Tt);break;case Ie.UP:Fe(Tt-1);break;case Ie.DOWN:Fe(Tt+1);break}}function Ee(dt){Fe(ve(dt))}function _e(dt){var Tt=Tl(dt,ne,h),jt=ee>Tt&&Tt!==0?Tt:ee;re(dt),le(jt),M==null||M(ee,dt),ie(jt),b==null||b(jt,dt)}function Fe(dt){if($e(dt)&&!N){var Tt=Tl(void 0,ne,h),jt=dt;return dt>Tt?jt=Tt:dt<1&&(jt=1),jt!==fe&&le(jt),ie(jt),b==null||b(jt,ne),jt}return ee}var qe=ee>1,Ze=eek;function Be(){qe&&Fe(ee-1)}function Ue(){Ze&&Fe(ee+1)}function Je(){Fe(me)}function nt(){Fe(ye)}function mt(dt,Tt){if(dt.key==="Enter"||dt.charCode===Ie.ENTER||dt.keyCode===Ie.ENTER){for(var jt=arguments.length,Qt=new Array(jt>2?jt-2:0),kn=2;knh?h:ee*ne])),He=null,Me=Tl(void 0,ne,h);if(C&&h<=ne)return null;var Le=[],Xe={rootPrefixCls:o,onClick:Fe,onKeyPress:mt,showTitle:E,itemRender:V,page:-1},Ke=ee-1>0?ee-1:0,it=ee+1=st*2&&ee!==3&&(Le[0]=W.cloneElement(Le[0],{className:Z("".concat(o,"-item-after-jump-prev"),Le[0].props.className)}),Le.unshift(xe)),Me-ee>=st*2&&ee!==Me-2){var ct=Le[Le.length-1];Le[Le.length-1]=W.cloneElement(ct,{className:Z("".concat(o,"-item-before-jump-next"),ct.props.className)}),Le.push(He)}tt!==1&&Le.unshift(W.createElement(gd,be({},Xe,{key:1,page:1}))),pt!==Me&&Le.push(W.createElement(gd,be({},Xe,{key:Me,page:Me})))}var lt=se(Ke);if(lt){var ht=!qe||!Me;lt=W.createElement("li",{title:E?R.prev_page:null,onClick:Be,tabIndex:ht?null:0,onKeyDown:gt,className:Z("".concat(o,"-prev"),L({},"".concat(o,"-disabled"),ht)),"aria-disabled":ht},lt)}var ft=pe(it);if(ft){var Lt,Cn;j?(Lt=!Ze,Cn=qe?0:null):(Lt=!Ze||!Me,Cn=Lt?null:0),ft=W.createElement("li",{title:E?R.next_page:null,onClick:Ue,tabIndex:Cn,onKeyDown:yt,className:Z("".concat(o,"-next"),L({},"".concat(o,"-disabled"),Lt)),"aria-disabled":Lt},ft)}var mn=Z(o,l,(n={},L(n,"".concat(o,"-simple"),j),L(n,"".concat(o,"-disabled"),N),n));return W.createElement("ul",be({className:mn,style:_,ref:q},Ne),We,lt,j?Ct:Le,ft,W.createElement(sde,{locale:R,rootPrefixCls:o,disabled:N,selectComponentClass:s,selectPrefixCls:i,changeSize:ke?_e:null,pageSize:ne,pageSizeOptions:z,quickGo:Ce?Fe:null,goButton:Mt}))};const ej=e=>c.createElement(Ta,Object.assign({},e,{showSearch:!0,size:"small"})),tj=e=>c.createElement(Ta,Object.assign({},e,{showSearch:!0,size:"middle"}));ej.Option=Ta.Option;tj.Option=Ta.Option;const dde=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fde=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),input:Object.assign(Object.assign({},Y2(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Yce=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),input:Object.assign(Object.assign({},Q2(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},mde=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Xce=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},vde=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -371,7 +399,7 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${ae(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},hm(e)),W2(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},i0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Qce=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Zce=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Qce(e)),Xce(e)),Yce(e)),qce(e)),Gce(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Jce=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ha(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},cl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},cl(e))}}}},k9=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},a0(e)),L9=e=>_t(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},o0(e)),eue=Ht("Pagination",e=>{const t=L9(e);return[Zce(t),Jce(t)]},k9),tue=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},nue=Eh(["Pagination","bordered"],e=>{const t=L9(e);return[tue(t)]},k9);var rue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:d}=e,f=rue(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=S2(u),[,h]=cr(),{getPrefixCls:g,direction:v,pagination:p={}}=c.useContext(at),y=g("pagination",t),[b,C,S]=eue(y),$=d??p.showSizeChanger,x=c.useMemo(()=>{const _=c.createElement("span",{className:`${y}-item-ellipsis`},"•••"),T=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?c.createElement(pi,null):c.createElement(Yc,null)),k=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?c.createElement(Yc,null):c.createElement(pi,null)),N=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},v==="rtl"?c.createElement(G3,{className:`${y}-item-link-icon`}):c.createElement(U3,{className:`${y}-item-link-icon`}),_)),j=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},v==="rtl"?c.createElement(U3,{className:`${y}-item-link-icon`}):c.createElement(G3,{className:`${y}-item-link-icon`}),_));return{prevIcon:T,nextIcon:k,jumpPrevIcon:N,jumpNextIcon:j}},[v,y]),[w]=xi("Pagination",ER),O=Object.assign(Object.assign({},w),l),E=nr(i),P=E==="small"||!!(m&&!E&&u),M=g("select",n),D=Z({[`${y}-mini`]:P,[`${y}-rtl`]:v==="rtl",[`${y}-bordered`]:h.wireframe},p==null?void 0:p.className,r,o,C,S),R=Object.assign(Object.assign({},p==null?void 0:p.style),a);return b(c.createElement(c.Fragment,null,h.wireframe&&c.createElement(nue,{prefixCls:y}),c.createElement(Uce,Object.assign({},x,f,{style:R,prefixCls:y,selectPrefixCls:M,className:D,selectComponentClass:s||(P?D9:F9),locale:O,showSizeChanger:$}))))},aue=oue,iue=new kt("antSpinMove",{to:{opacity:1}}),lue=new kt("antRotate",{to:{transform:"rotate(405deg)"}}),sue=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:iue,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:lue,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},cue=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},uue=Ht("Spin",e=>{const t=_t(e,{spinDotDefault:e.colorTextDescription});return[sue(t)]},cue);var due=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:s,style:u,children:d,fullscreen:f=!1}=e,m=due(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=c.useContext(at),g=h("spin",t),[v,p,y]=uue(g),[b,C]=c.useState(()=>n&&!mue(n,r));c.useEffect(()=>{if(n){const D=dre(r,()=>{C(!0)});return D(),()=>{var R;(R=D==null?void 0:D.cancel)===null||R===void 0||R.call(D)}}C(!1)},[r,n]);const S=c.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:x}=c.useContext(at),w=Z(g,x==null?void 0:x.className,{[`${g}-sm`]:i==="small",[`${g}-lg`]:i==="large",[`${g}-spinning`]:b,[`${g}-show-text`]:!!l,[`${g}-fullscreen`]:f,[`${g}-fullscreen-show`]:f&&b,[`${g}-rtl`]:$==="rtl"},o,a,p,y),O=Z(`${g}-container`,{[`${g}-blur`]:b}),E=gn(m,["indicator"]),P=Object.assign(Object.assign({},x==null?void 0:x.style),u),M=c.createElement("div",Object.assign({},E,{style:P,className:w,"aria-live":"polite","aria-busy":b}),fue(g,e),l&&(S||f)?c.createElement("div",{className:`${g}-text`},l):null);return v(S?c.createElement("div",Object.assign({},E,{className:Z(`${g}-nested-loading`,s,p,y)}),b&&c.createElement("div",{key:"loading"},M),c.createElement("div",{className:O,key:"container"},d)):M)};A9.setDefaultIndicator=e=>{fg=e};const El=A9,dw=W.createContext({});dw.Consumer;var B9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=B9(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=c.useContext(at),s=l("list",t),u=Z(`${s}-item-meta`,n),d=W.createElement("div",{className:`${s}-item-meta-content`},o&&W.createElement("h4",{className:`${s}-item-meta-title`},o),a&&W.createElement("div",{className:`${s}-item-meta-description`},a));return W.createElement("div",Object.assign({},i,{className:u}),r&&W.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||a)&&d)},gue=(e,t)=>{var{prefixCls:n,children:r,actions:o,extra:a,className:i,colStyle:l}=e,s=B9(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:u,itemLayout:d}=c.useContext(dw),{getPrefixCls:f}=c.useContext(at),m=()=>{let b;return c.Children.forEach(r,C=>{typeof C=="string"&&(b=!0)}),b&&c.Children.count(r)>1},h=()=>d==="vertical"?!!a:!m(),g=f("list",n),v=o&&o.length>0&&W.createElement("ul",{className:`${g}-item-action`,key:"actions"},o.map((b,C)=>W.createElement("li",{key:`${g}-item-action-${C}`},b,C!==o.length-1&&W.createElement("em",{className:`${g}-item-action-split`})))),p=u?"div":"li",y=W.createElement(p,Object.assign({},s,u?{}:{ref:t},{className:Z(`${g}-item`,{[`${g}-item-no-flex`]:!h()},i)}),d==="vertical"&&a?[W.createElement("div",{className:`${g}-item-main`,key:"content"},r,v),W.createElement("div",{className:`${g}-item-extra`,key:"extra"},a)]:[r,v,tr(a,{key:"extra"})]);return u?W.createElement(fl,{ref:t,flex:1,style:l},y):y},z9=c.forwardRef(gue);z9.Meta=vue;const pue=z9,hue=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ae(o)} ${ae(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},yue=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ae(i)}`}}}}}},bue=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,itemPadding:s,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:h,colorText:g,colorTextDescription:v,motionDurationSlow:p,lineWidth:y,headerBg:b,footerBg:C,emptyTextPadding:S,metaMarginBottom:$,avatarMarginRight:x,titleMarginBottom:w,descriptionFontSize:O}=e,E={};return["start","center","end"].forEach(P=>{E[`&-align-${P}`]={textAlign:P}}),{[`${t}`]:Object.assign(Object.assign({},Wt(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:i},E),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${ae(e.marginXXS)} 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${p}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:v,fontSize:O,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ae(m)}`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ae(l)} 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${ae(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Cue=e=>({contentWidth:220,itemPadding:`${ae(e.paddingContentVertical)} 0`,itemPaddingSM:`${ae(e.paddingContentVerticalSM)} ${ae(e.paddingContentHorizontal)}`,itemPaddingLG:`${ae(e.paddingContentVerticalLG)} ${ae(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Sue=Ht("List",e=>{const t=_t(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[bue(t),hue(t),yue(t)]},Cue);var xue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o(ye,ge)=>{var ve;O(ye),P(ge),n&&n[me]&&((ve=n==null?void 0:n[me])===null||ve===void 0||ve.call(n,ye,ge))},N=k("onChange"),j=k("onShowSizeChange"),A=(me,ye)=>{if(!C)return null;let ge;return typeof b=="function"?ge=b(me):b?ge=me[b]:ge=me.key,ge||(ge=`list-item-${ye}`),c.createElement(c.Fragment,{key:ge},C(me,ye))},B=()=>!!(f||n||p),z=M("list",r),[H,V,U]=Sue(z);let K=y;typeof K=="boolean"&&(K={spinning:K});const Y=K&&K.spinning,G=nr(g);let q="";switch(G){case"large":q="lg";break;case"small":q="sm";break}const J=Z(z,{[`${z}-vertical`]:d==="vertical",[`${z}-${q}`]:q,[`${z}-split`]:a,[`${z}-bordered`]:o,[`${z}-loading`]:Y,[`${z}-grid`]:!!m,[`${z}-something-after-last-item`]:B(),[`${z}-rtl`]:R==="rtl"},_==null?void 0:_.className,i,l,V,U),Q=jce(T,{total:h.length,current:w,pageSize:E},n||{}),ne=Math.ceil(Q.total/Q.pageSize);Q.current>ne&&(Q.current=ne);const re=n?c.createElement("div",{className:Z(`${z}-pagination`,`${z}-pagination-align-${(t=Q==null?void 0:Q.align)!==null&&t!==void 0?t:"end"}`)},c.createElement(aue,Object.assign({},Q,{onChange:N,onShowSizeChange:j}))):null;let oe=Te(h);n&&h.length>(Q.current-1)*Q.pageSize&&(oe=Te(h).splice((Q.current-1)*Q.pageSize,Q.pageSize));const te=Object.keys(m||{}).some(me=>["xs","sm","md","lg","xl","xxl"].includes(me)),ee=S2(te),ie=c.useMemo(()=>{for(let me=0;me{if(!m)return;const me=ie&&m[ie]?m[ie]:m.column;if(me)return{width:`${100/me}%`,maxWidth:`${100/me}%`}},[m==null?void 0:m.column,ie]);let he=Y&&c.createElement("div",{style:{minHeight:53}});if(oe.length>0){const me=oe.map((ye,ge)=>A(ye,ge));he=m?c.createElement(Cm,{gutter:m.gutter},c.Children.map(me,ye=>c.createElement("div",{key:ye==null?void 0:ye.key,style:de},ye))):c.createElement("ul",{className:`${z}-items`},me)}else!u&&!Y&&(he=c.createElement("div",{className:`${z}-empty-text`},S&&S.emptyText||(D==null?void 0:D("List"))||c.createElement(mm,{componentName:"List"})));const fe=Q.position||"bottom",le=c.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return H(c.createElement(dw.Provider,{value:le},c.createElement("div",Object.assign({style:Object.assign(Object.assign({},_==null?void 0:_.style),s),className:J},$),(fe==="top"||fe==="both")&&re,v&&c.createElement("div",{className:`${z}-header`},v),c.createElement(El,Object.assign({},K),he,u),p&&c.createElement("div",{className:`${z}-footer`},p),f||(fe==="bottom"||fe==="both")&&re)))}wm.Item=pue;let _o=null,Ul=e=>e(),_f=[],Tf={};function X3(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Tf,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const wue=W.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(at),a=Tf.prefixCls||o("message"),i=c.useContext(SC),[l,s]=S_(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return W.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),s}),$ue=W.forwardRef((e,t)=>{const[n,r]=W.useState(X3),o=()=>{r(X3)};W.useEffect(o,[]);const a=$V(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),s=a.getTheme(),u=W.createElement(wue,{ref:t,sync:o,messageConfig:n});return W.createElement(bt,{prefixCls:i,iconPrefixCls:l,theme:s},a.holderRender?a.holderRender(u):u)});function v0(){if(!_o){const e=document.createDocumentFragment(),t={fragment:e};_o=t,Ul(()=>{w_(W.createElement($ue,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,v0())})}}),e)});return}_o.instance&&(_f.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ul(()=>{const r=_o.instance.open(Object.assign(Object.assign({},Tf),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ul(()=>{_o==null||_o.instance.destroy(e.key)});break;default:Ul(()=>{var r;const o=(r=_o.instance)[t].apply(r,Te(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),_f=[])}function Eue(e){Tf=Object.assign(Object.assign({},Tf),e),Ul(()=>{var t;(t=_o==null?void 0:_o.sync)===null||t===void 0||t.call(_o)})}function Pue(e){const t=Jx(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return _f.push(o),()=>{r?Ul(()=>{r()}):o.skipped=!0}});return v0(),t}function Oue(e,t){const n=Jx(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return _f.push(a),()=>{o?Ul(()=>{o()}):a.skipped=!0}});return v0(),n}function Iue(e){_f.push({type:"destroy",key:e}),v0()}const Mue=["success","info","warning","error","loading"],Rue={open:Pue,destroy:Iue,config:Eue,useMessage:x_,_InternalPanelDoNotUseOrYouWillBeFired:UW},H9=Rue;Mue.forEach(e=>{H9[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*n;u==="round"&&o!==100&&(g+=d/2,g>=n&&(g=n-.01));var v=_d/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(a+m+h,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Lue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function eO(e){var t=e??[];return Array.isArray(t)?t:[t]}var Aue=function(t){var n=I(I({},Tue),t),r=n.id,o=n.prefixCls,a=n.steps,i=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,h=n.style,g=n.className,v=n.strokeColor,p=n.percent,y=ze(n,Lue),b=_d/2,C=Fue(r),S="".concat(C,"-gradient"),$=b-i/2,x=Math.PI*2*$,w=u>0?90+u/2:-90,O=x*((360-u)/360),E=et(a)==="object"?a:{count:a,space:2},P=E.count,M=E.space,D=eO(p),R=eO(v),_=R.find(function(z){return z&&et(z)==="object"}),T=_&&et(_)==="object",k=T?"butt":m,N=mb(x,O,0,100,w,u,d,f,k,i),j=Nue(),A=function(){var H=0;return D.map(function(V,U){var K=R[U]||R[R.length-1],Y=mb(x,O,H,V,w,u,d,K,k,i);return H+=V,c.createElement(kue,{key:U,color:K,ptg:V,radius:$,prefixCls:o,gradientId:S,style:Y,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(q){j[U]=q},size:_d})}).reverse()},B=function(){var H=Math.round(P*(D[0]/100)),V=100/P,U=0;return new Array(P).fill(null).map(function(K,Y){var G=Y<=H-1?R[0]:f,q=G&&et(G)==="object"?"url(#".concat(S,")"):void 0,J=mb(x,O,U,V,w,u,d,G,"butt",i,M);return U+=(O-J.strokeDashoffset+M)*100/O,c.createElement("circle",{key:Y,className:"".concat(o,"-circle-path"),r:$,cx:b,cy:b,stroke:q,strokeWidth:i,opacity:1,style:J,ref:function(ne){j[Y]=ne}})})};return c.createElement("svg",be({className:Z("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(_d," ").concat(_d),style:h,id:r,role:"presentation"},y),!P&&c.createElement("circle",{className:"".concat(o,"-circle-trail"),r:$,cx:b,cy:b,stroke:f,strokeLinecap:k,strokeWidth:l||i,style:N}),P?B():A())};function al(e){return!e||e<0?0:e>100?100:e}function wp(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Bue=e=>{let{percent:t,success:n,successPercent:r}=e;const o=al(wp({success:n,successPercent:r}));return[o,al(al(t)-o)]},zue=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||es.green,n||null]},g0=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[l,s]},Hue=3,Vue=e=>Hue/e*100,Wue=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:l,children:s,success:u,size:d=i}=e,[f,m]=g0(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Vue(f),6));const g={width:f,height:m,fontSize:f*.15+6},v=c.useMemo(()=>{if(a||a===0)return a;if(l==="dashboard")return 75},[a,l]),p=o||l==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=zue({success:u,strokeColor:e.strokeColor}),C=Z(`${t}-inner`,{[`${t}-circle-gradient`]:y}),S=c.createElement(Aue,{percent:Bue(e),strokeWidth:h,trailWidth:h,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:p});return c.createElement("div",{className:C,style:g},f<=20?c.createElement(Go,{title:s},c.createElement("span",null,S)):c.createElement(c.Fragment,null,S,s))},Kue=Wue,$p="--progress-line-stroke-color",V9="--progress-percent",tO=e=>{const t=e?"100%":"-100%";return new kt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Uue=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${ae(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${ae(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${$p})`]},height:"100%",width:`calc(1 / var(${V9}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:tO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:tO(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Gue=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},que=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Yue=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Xue=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Que=Ht("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=_t(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Uue(n),Gue(n),que(n),Yue(n)]},Xue);var Zue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},ede=(e,t)=>{const{from:n=es.blue,to:r=es.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=Zue(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=Jue(a),s=`linear-gradient(${o}, ${l})`;return{background:s,[$p]:s}}const i=`linear-gradient(${o}, ${n}, ${r})`;return{background:i,[$p]:i}},tde=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:l="round",children:s,trailColor:u=null,success:d}=e,f=i&&typeof i!="string"?ede(i,n):{[$p]:i,background:i},m=l==="square"||l==="butt"?0:void 0,h=o??[-1,a||(o==="small"?6:8)],[g,v]=g0(h,"line",{strokeWidth:a}),p={backgroundColor:u||void 0,borderRadius:m},y=Object.assign(Object.assign({width:`${al(r)}%`,height:v,borderRadius:m},f),{[V9]:al(r)/100}),b=wp(e),C={width:`${al(b)}%`,height:v,borderRadius:m,backgroundColor:d==null?void 0:d.strokeColor},S={width:g<0?"100%":g,height:v};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:S},c.createElement("div",{className:`${t}-inner`,style:p},c.createElement("div",{className:`${t}-bg`,style:y}),b!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:C}):null)),s)},nde=tde,rde=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:a,trailColor:i=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[m,h]=g0(f,"step",{steps:n,strokeWidth:o}),g=m/n,v=new Array(n);for(let p=0;p{const{prefixCls:n,className:r,rootClassName:o,steps:a,strokeColor:i,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:m,style:h}=e,g=ade(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=c.useMemo(()=>{var R,_;const T=wp(e);return parseInt(T!==void 0?(R=T??0)===null||R===void 0?void 0:R.toString():(_=l??0)===null||_===void 0?void 0:_.toString(),10)},[l,e.success,e.successPercent]),p=c.useMemo(()=>!ide.includes(f)&&v>=100?"success":f||"normal",[f,v]),{getPrefixCls:y,direction:b,progress:C}=c.useContext(at),S=y("progress",n),[$,x,w]=Que(S),O=c.useMemo(()=>{if(!u)return null;const R=wp(e);let _;const T=m||(N=>`${N}%`),k=d==="line";return m||p!=="exception"&&p!=="success"?_=T(al(l),al(R)):p==="exception"?_=k?c.createElement(Ha,null):c.createElement(xa,null):p==="success"&&(_=k?c.createElement(ys,null):c.createElement(zh,null)),c.createElement("span",{className:`${S}-text`,title:typeof _=="string"?_:void 0},_)},[u,l,v,p,d,S,m]),E=Array.isArray(i)?i[0]:i,P=typeof i=="string"||Array.isArray(i)?i:void 0;let M;d==="line"?M=a?c.createElement(ode,Object.assign({},e,{strokeColor:P,prefixCls:S,steps:a}),O):c.createElement(nde,Object.assign({},e,{strokeColor:E,prefixCls:S,direction:b}),O):(d==="circle"||d==="dashboard")&&(M=c.createElement(Kue,Object.assign({},e,{strokeColor:E,prefixCls:S,progressStatus:p}),O));const D=Z(S,`${S}-status-${p}`,`${S}-${d==="dashboard"&&"circle"||a&&"steps"||d}`,{[`${S}-inline-circle`]:d==="circle"&&g0(s,"circle")[0]<=20,[`${S}-show-info`]:u,[`${S}-${s}`]:typeof s=="string",[`${S}-rtl`]:b==="rtl"},C==null?void 0:C.className,r,o,x,w);return $(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},C==null?void 0:C.style),h),className:D,role:"progressbar","aria-valuenow":v},gn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),M))}),sde=lde;var cde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const ude=cde;var dde=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:ude}))},fde=c.forwardRef(dde);const mde=fde;function vde(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,a=e.characterRender,i=e.index,l=e.count,s=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,h=function($){f($,i)},g=function($){m($,i)},v=function($){$.keyCode===Ie.ENTER&&m($,i)},p=i+1,y=new Set([r]);s===0&&i===0&&d?y.add("".concat(r,"-focused")):u&&s+.5>=p&&si?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},W.createElement("div",{className:"".concat(r,"-first")},b),W.createElement("div",{className:"".concat(r,"-second")},b)));return a&&(C=a(C,e)),C}const gde=W.forwardRef(vde);function pde(){var e=c.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function hde(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function yde(e){var t,n,r=e.ownerDocument,o=r.body,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:t,top:n}}function bde(e){var t=yde(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=hde(r),t.left}var Cde=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Sde(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-rate":r,a=e.className,i=e.defaultValue,l=e.value,s=e.count,u=s===void 0?5:s,d=e.allowHalf,f=d===void 0?!1:d,m=e.allowClear,h=m===void 0?!0:m,g=e.character,v=g===void 0?"★":g,p=e.characterRender,y=e.disabled,b=e.direction,C=b===void 0?"ltr":b,S=e.tabIndex,$=S===void 0?0:S,x=e.autoFocus,w=e.onHoverChange,O=e.onChange,E=e.onFocus,P=e.onBlur,M=e.onKeyDown,D=e.onMouseLeave,R=ze(e,Cde),_=pde(),T=X(_,2),k=T[0],N=T[1],j=W.useRef(null),A=function(){if(!y){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.focus()}};W.useImperativeHandle(t,function(){return{focus:A,blur:function(){if(!y){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.blur()}}}});var B=Pt(i||0,{value:l}),z=X(B,2),H=z[0],V=z[1],U=Pt(null),K=X(U,2),Y=K[0],G=K[1],q=function(Oe,Re){var Ee=C==="rtl",_e=Oe+1;if(f){var Fe=k(Oe),qe=bde(Fe),Ze=Fe.clientWidth;(Ee&&Re-qe>Ze/2||!Ee&&Re-qe0&&!Ee||Re===Ie.RIGHT&&_e>0&&Ee?(f?_e-=.5:_e-=1,J(_e),Oe.preventDefault()):Re===Ie.LEFT&&_e{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ae(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},$de=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Ede=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),wde(e)),$de(e))}},Pde=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Ode=Ht("Rate",e=>{const t=_t(e,{});return[Ede(t)]},Pde);var Ide=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:a,tooltips:i,character:l=c.createElement(mde,null)}=e,s=Ide(e,["prefixCls","className","rootClassName","style","tooltips","character"]),u=(b,C)=>{let{index:S}=C;return i?c.createElement(Go,{title:i[S]},b):b},{getPrefixCls:d,direction:f,rate:m}=c.useContext(at),h=d("rate",n),[g,v,p]=Ode(h),y=Object.assign(Object.assign({},m==null?void 0:m.style),a);return g(c.createElement(xde,Object.assign({ref:t,character:l,characterRender:u},s,{className:Z(r,o,v,p,m==null?void 0:m.className),style:y,prefixCls:h,direction:f})))}),nO=Mde;var Rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const _de=Rde;var Tde=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:_de}))},Nde=c.forwardRef(Tde);const jde=Nde,Dde=()=>c.createElement("svg",{width:"252",height:"294"},c.createElement("defs",null,c.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(0 .012)"},c.createElement("mask",{fill:"#fff"}),c.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),c.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),c.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),c.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),c.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),c.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),c.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),c.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),c.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),c.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),c.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),c.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),c.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),c.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),c.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),c.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),c.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),c.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),c.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),c.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),c.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),c.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),c.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),c.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),c.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),c.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),c.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),c.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),c.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),c.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),c.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),c.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),c.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),c.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),c.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),c.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),c.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),c.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Fde=Dde,kde=()=>c.createElement("svg",{width:"254",height:"294"},c.createElement("defs",null,c.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),c.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(0 .067)"},c.createElement("mask",{fill:"#fff"}),c.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),c.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),c.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),c.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),c.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),c.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),c.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),c.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),c.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),c.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),c.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),c.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),c.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),c.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),c.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),c.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),c.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),c.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),c.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),c.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),c.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),c.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),c.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),c.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),c.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),c.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),c.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),c.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),c.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),c.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),c.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),c.createElement("mask",{fill:"#fff"}),c.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),c.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),c.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),c.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),c.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),c.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),c.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),c.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Lde=kde,Ade=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:l,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${ae(e.calc(l).mul(2).equal())} ${ae(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ae(l)} ${ae(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Bde=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},zde=e=>[Ade(e),Bde(e)],Hde=e=>zde(e),Vde=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Wde=Ht("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,a=_t(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[Hde(a)]},Vde),Kde=()=>c.createElement("svg",{width:"251",height:"294"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),c.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),c.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),c.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),c.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),c.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),c.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),c.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),c.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),c.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),c.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),c.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),c.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),c.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),c.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),c.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),c.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),c.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),c.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),c.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),c.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),c.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),c.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),c.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),c.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),c.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),c.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),c.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),c.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),c.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),c.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),c.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),c.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),c.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),c.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Ude=Kde,Gde={success:ys,error:Ha,info:hu,warning:jde},$m={404:Fde,500:Lde,403:Ude},qde=Object.keys($m),Yde=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=Z(`${t}-icon`);if(qde.includes(`${r}`)){const i=$m[r];return c.createElement("div",{className:`${o} ${t}-image`},c.createElement(i,null))}const a=c.createElement(Gde[r]);return n===null||n===!1?null:c.createElement("div",{className:o},n||a)},Xde=e=>{let{prefixCls:t,extra:n}=e;return n?c.createElement("div",{className:`${t}-extra`},n):null},p0=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:a,style:i,children:l,status:s="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:m,result:h}=c.useContext(at),g=f("result",t),[v,p,y]=Wde(g),b=Z(g,`${g}-${s}`,n,h==null?void 0:h.className,r,{[`${g}-rtl`]:m==="rtl"},p,y),C=Object.assign(Object.assign({},h==null?void 0:h.style),i);return v(c.createElement("div",{className:b,style:C},c.createElement(Yde,{prefixCls:g,status:s,icon:u}),c.createElement("div",{className:`${g}-title`},a),o&&c.createElement("div",{className:`${g}-subtitle`},o),c.createElement(Xde,{prefixCls:g,extra:d}),l&&c.createElement("div",{className:`${g}-content`},l)))};p0.PRESENTED_IMAGE_403=$m[403];p0.PRESENTED_IMAGE_404=$m[404];p0.PRESENTED_IMAGE_500=$m[500];const fw=p0;var rO=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},Hs=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Qde(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,l=e.onMotionEnd,s=e.direction,u=c.useRef(null),d=c.useState(r),f=X(d,2),m=f[0],h=f[1],g=function(R){var _,T=o(R),k=(_=n.current)===null||_===void 0?void 0:_.querySelectorAll(".".concat(t,"-item"))[T];return(k==null?void 0:k.offsetParent)&&k},v=c.useState(null),p=X(v,2),y=p[0],b=p[1],C=c.useState(null),S=X(C,2),$=S[0],x=S[1];Kt(function(){if(m!==r){var D=g(m),R=g(r),_=rO(D),T=rO(R);h(r),b(_),x(T),D&&R?i():l()}},[r]);var w=c.useMemo(function(){return Hs(s==="rtl"?-(y==null?void 0:y.right):y==null?void 0:y.left)},[s,y]),O=c.useMemo(function(){return Hs(s==="rtl"?-($==null?void 0:$.right):$==null?void 0:$.left)},[s,$]),E=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},P=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},M=function(){b(null),x(null),l()};return!y||!$?null:c.createElement(wr,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:E,onAppearActive:P,onVisibleChanged:M},function(D,R){var _=D.className,T=D.style,k=I(I({},T),{},{"--thumb-start-left":w,"--thumb-start-width":Hs(y==null?void 0:y.width),"--thumb-active-left":O,"--thumb-active-width":Hs($==null?void 0:$.width)}),N={ref:Er(u,R),style:k,className:Z("".concat(t,"-thumb"),_)};return c.createElement("div",N)})}var Zde=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function Jde(e){if(typeof e.title<"u")return e.title;if(et(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function efe(e){return e.map(function(t){if(et(t)==="object"&&t!==null){var n=Jde(t);return I(I({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var tfe=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,a=t.checked,i=t.label,l=t.title,s=t.value,u=t.onChange,d=function(m){o||u(m,s)};return c.createElement("label",{className:Z(r,L({},"".concat(n,"-item-disabled"),o))},c.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:a,onChange:d}),c.createElement("div",{className:"".concat(n,"-item-label"),title:l},i))},nfe=c.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=o===void 0?"rc-segmented":o,i=e.direction,l=e.options,s=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,m=e.onChange,h=e.className,g=h===void 0?"":h,v=e.motionName,p=v===void 0?"thumb-motion":v,y=ze(e,Zde),b=c.useRef(null),C=c.useMemo(function(){return Er(b,t)},[b,t]),S=c.useMemo(function(){return efe(s)},[s]),$=Pt((n=S[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),x=X($,2),w=x[0],O=x[1],E=c.useState(!1),P=X(E,2),M=P[0],D=P[1],R=function(k,N){u||(O(N),m==null||m(N))},_=gn(y,["children"]);return c.createElement("div",be({},_,{className:Z(a,(r={},L(r,"".concat(a,"-rtl"),i==="rtl"),L(r,"".concat(a,"-disabled"),u),r),g),ref:C}),c.createElement("div",{className:"".concat(a,"-group")},c.createElement(Qde,{prefixCls:a,value:w,containerRef:b,motionName:"".concat(a,"-").concat(p),direction:i,getValueIndex:function(k){return S.findIndex(function(N){return N.value===k})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),S.map(function(T){return c.createElement(tfe,be({},T,{key:T.value,prefixCls:a,className:Z(T.className,"".concat(a,"-item"),L({},"".concat(a,"-item-selected"),T.value===w&&!M)),checked:T.value===w,onChange:R,disabled:!!u||!!T.disabled}))})))}),rfe=nfe;function oO(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function aO(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const ofe=Object.assign({overflow:"hidden"},mi),afe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,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,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},aO(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,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:n,lineHeight:ae(n),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`},ofe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},aO(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ae(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:ae(r),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:ae(o),padding:`0 ${ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),oO(`&-disabled ${t}-item`,e)),oO(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},ife=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}},lfe=Ht("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=_t(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[afe(r)]},ife);var iO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:l="middle",style:s}=e,u=iO(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:d,direction:f,segmented:m}=c.useContext(at),h=d("segmented",n),[g,v,p]=lfe(h),y=nr(l),b=c.useMemo(()=>i.map($=>{if(sfe($)){const{icon:x,label:w}=$,O=iO($,["icon","label"]);return Object.assign(Object.assign({},O),{label:c.createElement(c.Fragment,null,c.createElement("span",{className:`${h}-item-icon`},x),w&&c.createElement("span",null,w))})}return $}),[i,h]),C=Z(r,o,m==null?void 0:m.className,{[`${h}-block`]:a,[`${h}-sm`]:y==="small",[`${h}-lg`]:y==="large"},v,p),S=Object.assign(Object.assign({},m==null?void 0:m.style),s);return g(c.createElement(rfe,Object.assign({},u,{className:C,style:S,options:b,ref:t,prefixCls:h,direction:f})))}),ufe=cfe,dfe=ufe;var xs=c.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function WC(e,t,n){return(e-t)/(n-t)}function mw(e,t,n,r){var o=WC(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function pc(e,t){return Array.isArray(e)?e[t]:e}var ffe=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],mfe=c.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,l=e.onStartMove,s=e.style,u=e.render,d=e.dragging,f=e.onOffsetChange,m=e.onChangeComplete,h=ze(e,ffe),g=c.useContext(xs),v=g.min,p=g.max,y=g.direction,b=g.disabled,C=g.keyboard,S=g.range,$=g.tabIndex,x=g.ariaLabelForHandle,w=g.ariaLabelledByForHandle,O=g.ariaValueTextFormatterForHandle,E=g.styles,P=g.classNames,M="".concat(o,"-handle"),D=function(j){b||l(j,i)},R=function(j){if(!b&&C){var A=null;switch(j.which||j.keyCode){case Ie.LEFT:A=y==="ltr"||y==="btt"?-1:1;break;case Ie.RIGHT:A=y==="ltr"||y==="btt"?1:-1;break;case Ie.UP:A=y!=="ttb"?1:-1;break;case Ie.DOWN:A=y!=="ttb"?-1:1;break;case Ie.HOME:A="min";break;case Ie.END:A="max";break;case Ie.PAGE_UP:A=2;break;case Ie.PAGE_DOWN:A=-2;break}A!==null&&(j.preventDefault(),f(A,i))}},_=function(j){switch(j.which||j.keyCode){case Ie.LEFT:case Ie.RIGHT:case Ie.UP:case Ie.DOWN:case Ie.HOME:case Ie.END:case Ie.PAGE_UP:case Ie.PAGE_DOWN:m==null||m();break}},T=mw(y,a,v,p),k=c.createElement("div",be({ref:t,className:Z(M,(n={},L(n,"".concat(M,"-").concat(i+1),S),L(n,"".concat(M,"-dragging"),d),n),P.handle),style:I(I(I({},T),s),E.handle),onMouseDown:D,onTouchStart:D,onKeyDown:R,onKeyUp:_,tabIndex:b?null:pc($,i),role:"slider","aria-valuemin":v,"aria-valuemax":p,"aria-valuenow":a,"aria-disabled":b,"aria-label":pc(x,i),"aria-labelledby":pc(w,i),"aria-valuetext":(r=pc(O,i))===null||r===void 0?void 0:r(a),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical"},h));return u&&(k=u(k,{index:i,prefixCls:o,value:a,dragging:d})),k}),vfe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],gfe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.draggingIndex,u=ze(e,vfe),d=c.useRef({});return c.useImperativeHandle(t,function(){return{focus:function(m){var h;(h=d.current[m])===null||h===void 0||h.focus()}}}),c.createElement(c.Fragment,null,i.map(function(f,m){return c.createElement(mfe,be({ref:function(g){g?d.current[m]=g:delete d.current[m]},dragging:s===m,prefixCls:n,style:pc(r,m),key:m,value:f,valueIndex:m,onStartMove:o,onOffsetChange:a,render:l},u))}))});function lO(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function pfe(e,t,n,r,o,a,i,l,s){var u=c.useState(null),d=X(u,2),f=d[0],m=d[1],h=c.useState(-1),g=X(h,2),v=g[0],p=g[1],y=c.useState(n),b=X(y,2),C=b[0],S=b[1],$=c.useState(n),x=X($,2),w=x[0],O=x[1],E=c.useRef(null),P=c.useRef(null);c.useEffect(function(){v===-1&&S(n)},[n,v]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",P.current)}},[]);var M=function(N,j){C.some(function(A,B){return A!==N[B]})&&(j!==void 0&&m(j),S(N),i(N))},D=function(N,j){if(N===-1){var A=w[0],B=w[w.length-1],z=r-A,H=o-B,V=j*(o-r);V=Math.max(V,z),V=Math.min(V,H);var U=a(A+V);V=U-A;var K=w.map(function(J){return J+V});M(K)}else{var Y=(o-r)*j,G=Te(C);G[N]=w[N];var q=s(G,Y,N,"dist");M(q.values,q.value)}},R=c.useRef(D);R.current=D;var _=function(N,j,A){N.stopPropagation();var B=A||n,z=B[j];p(j),m(z),O(B);var H=lO(N),V=H.pageX,U=H.pageY,K=function(q){q.preventDefault();var J=lO(q),Q=J.pageX,ne=J.pageY,re=Q-V,oe=ne-U,te=e.current.getBoundingClientRect(),ee=te.width,ie=te.height,de;switch(t){case"btt":de=-oe/ie;break;case"ttb":de=oe/ie;break;case"rtl":de=-re/ee;break;default:de=re/ee}R.current(j,de)},Y=function G(q){q.preventDefault(),document.removeEventListener("mouseup",G),document.removeEventListener("mousemove",K),document.removeEventListener("touchend",G),document.removeEventListener("touchmove",K),E.current=null,P.current=null,p(-1),l()};document.addEventListener("mouseup",Y),document.addEventListener("mousemove",K),document.addEventListener("touchend",Y),document.addEventListener("touchmove",K),E.current=K,P.current=Y},T=c.useMemo(function(){var k=Te(n).sort(function(j,A){return j-A}),N=Te(C).sort(function(j,A){return j-A});return k.every(function(j,A){return j===N[A]})?C:n},[n,C]);return[v,f,T,_]}function hfe(e,t,n,r,o,a){var i=c.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),l=c.useCallback(function(h){if(n!==null){var g=e+Math.round((i(h)-e)/n)*n,v=function(C){return(String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),y=Number(g.toFixed(p));return e<=y&&y<=t?y:null}return null},[n,e,t,i]),s=c.useCallback(function(h){var g=i(h),v=r.map(function(b){return b.value});n!==null&&v.push(l(h)),v.push(e,t);var p=v[0],y=t-e;return v.forEach(function(b){var C=Math.abs(g-b);C<=y&&(p=b,y=C)}),p},[e,t,r,n,i,l]),u=function h(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,C=g[p],S=C+v,$=[];r.forEach(function(P){$.push(P.value)}),$.push(e,t),$.push(l(C));var x=v>0?1:-1;y==="unit"?$.push(l(C+x*n)):$.push(l(S)),$=$.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),y==="unit"&&($=$.filter(function(P){return P!==C}));var w=y==="unit"?C:S;b=$[0];var O=Math.abs(b-w);if($.forEach(function(P){var M=Math.abs(P-w);M1){var E=Te(g);return E[p]=b,h(E,v-x,p,y)}return b}else{if(v==="min")return e;if(v==="max")return t}},d=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g[p],C=u(g,v,p,y);return{value:C,changed:C!==b}},f=function(g){return a===null&&g===0||typeof a=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",b=g.map(s),C=b[p],S=u(b,v,p,y);if(b[p]=S,o===!1){var $=a||0;p>0&&b[p-1]!==C&&(b[p]=Math.max(b[p],b[p-1]+$)),p0;E-=1)for(var P=!0;f(b[E]-b[E-1])&&P;){var M=d(b,-1,E-1);b[E-1]=M.value,P=M.changed}for(var D=b.length-1;D>0;D-=1)for(var R=!0;f(b[D]-b[D-1])&&R;){var _=d(b,-1,D-1);b[D-1]=_.value,R=_.changed}for(var T=0;T=0?N:!1},[N,ye]),ve=c.useMemo(function(){var Qe=Object.keys(J||{});return Qe.map(function(Ae){var Pe=J[Ae],je={value:Number(Ae)};return Pe&&et(Pe)==="object"&&!c.isValidElement(Pe)&&("label"in Pe||"style"in Pe)?(je.style=Pe.style,je.label=Pe.label):je.label=Pe,je}).filter(function(Ae){var Pe=Ae.label;return Pe||typeof Pe=="number"}).sort(function(Ae,Pe){return Ae.value-Pe.value})},[J]),$e=hfe(le,me,ye,ve,T,ge),Ce=X($e,2),Oe=Ce[0],Re=Ce[1],Ee=Pt(w,{value:x}),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=c.useMemo(function(){var Qe=Fe==null?[]:Array.isArray(Fe)?Fe:[Fe],Ae=X(Qe,1),Pe=Ae[0],je=Pe===void 0?le:Pe,Ve=Fe===null?[]:[je];if(O){if(Ve=Te(Qe),E||Fe===void 0){var tt=E>=0?E+1:2;for(Ve=Ve.slice(0,tt);Ve.length=0&&de.current.focus(Qe)}We(null)},[Ne]);var Me=c.useMemo(function(){return j&&ye===null?!1:j},[j,ye]),Le=function(Ae,Pe){ue(Ae,Pe),M==null||M(Be(ke.current))},Xe=gt!==-1;c.useEffect(function(){if(!Xe){var Qe=Ze.lastIndexOf(yt);de.current.focus(Qe)}},[Xe]);var Ke=c.useMemo(function(){return Te(It).sort(function(Qe,Ae){return Qe-Ae})},[It]),it=c.useMemo(function(){return O?[Ke[0],Ke[Ke.length-1]]:[le,Ke[0]]},[Ke,O,le]),ot=X(it,2),Mt=ot[0],Ct=ot[1];c.useImperativeHandle(t,function(){return{focus:function(){de.current.focus(0)},blur:function(){var Ae=document,Pe=Ae.activeElement;he.current.contains(Pe)&&(Pe==null||Pe.blur())}}}),c.useEffect(function(){h&&de.current.focus(0)},[]);var st=c.useMemo(function(){return{min:le,max:me,direction:fe,disabled:d,keyboard:m,step:ye,included:H,includedStart:Mt,includedEnd:Ct,range:O,tabIndex:oe,ariaLabelForHandle:te,ariaLabelledByForHandle:ee,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:l||{}}},[le,me,fe,d,m,ye,H,Mt,Ct,O,oe,te,ee,ie,s,l]);return c.createElement(xs.Provider,{value:st},c.createElement("div",{ref:he,className:Z(o,a,(n={},L(n,"".concat(o,"-disabled"),d),L(n,"".concat(o,"-vertical"),B),L(n,"".concat(o,"-horizontal"),!B),L(n,"".concat(o,"-with-marks"),ve.length),n)),style:i,onMouseDown:pe},c.createElement("div",{className:Z("".concat(o,"-rail"),l==null?void 0:l.rail),style:I(I({},Y),s==null?void 0:s.rail)}),c.createElement(xfe,{prefixCls:o,style:U,values:Ke,startPoint:V,onStartMove:Me?Le:null}),c.createElement(Sfe,{prefixCls:o,marks:ve,dots:Q,style:G,activeStyle:q}),c.createElement(gfe,{ref:de,prefixCls:o,style:K,values:It,draggingIndex:gt,onStartMove:Le,onOffsetChange:He,onFocus:g,onBlur:v,handleRender:ne,onChangeComplete:Je}),c.createElement(bfe,{prefixCls:o,marks:ve,onClick:se})))});const $fe=c.forwardRef((e,t)=>{const{open:n}=e,r=c.useRef(null),o=c.useRef(null);function a(){At.cancel(o.current),o.current=null}function i(){o.current=At(()=>{var l;(l=r.current)===null||l===void 0||l.forceAlign(),o.current=null})}return c.useEffect(()=>(n?i():a(),a),[n,e.title]),c.createElement(Go,Object.assign({ref:Er(r,t)},e))}),Efe=$fe,Pfe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:u}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",height:r,margin:`${ae(i)} ${ae(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(a)} ${ae(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ae(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:u(e.handleLineWidth).mul(-1).equal(),insetBlockStart:u(e.handleLineWidth).mul(-1).equal(),width:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),height:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${ae(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},bm(e)),U2(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},d0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},gde=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},pde=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),gde(e)),vde(e)),mde(e)),fde(e)),dde(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},hde=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ha(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},cl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},cl(e))}}}},nj=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},u0(e)),rj=e=>_t(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},c0(e)),yde=Ht("Pagination",e=>{const t=rj(e);return[pde(t),hde(t)]},nj),bde=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Cde=Rh(["Pagination","bordered"],e=>{const t=rj(e);return[bde(t)]},nj);var Sde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:d}=e,f=Sde(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=w2(u),[,h]=cr(),{getPrefixCls:g,direction:v,pagination:p={}}=c.useContext(at),y=g("pagination",t),[b,C,S]=yde(y),$=d??p.showSizeChanger,x=c.useMemo(()=>{const _=c.createElement("span",{className:`${y}-item-ellipsis`},"•••"),T=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?c.createElement(pi,null):c.createElement(Xc,null)),k=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?c.createElement(Xc,null):c.createElement(pi,null)),N=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},v==="rtl"?c.createElement(fO,{className:`${y}-item-link-icon`}):c.createElement(dO,{className:`${y}-item-link-icon`}),_)),j=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},v==="rtl"?c.createElement(dO,{className:`${y}-item-link-icon`}):c.createElement(fO,{className:`${y}-item-link-icon`}),_));return{prevIcon:T,nextIcon:k,jumpPrevIcon:N,jumpNextIcon:j}},[v,y]),[w]=wi("Pagination",WR),O=Object.assign(Object.assign({},w),l),E=nr(i),P=E==="small"||!!(m&&!E&&u),M=g("select",n),D=Z({[`${y}-mini`]:P,[`${y}-rtl`]:v==="rtl",[`${y}-bordered`]:h.wireframe},p==null?void 0:p.className,r,o,C,S),R=Object.assign(Object.assign({},p==null?void 0:p.style),a);return b(c.createElement(c.Fragment,null,h.wireframe&&c.createElement(Cde,{prefixCls:y}),c.createElement(ude,Object.assign({},x,f,{style:R,prefixCls:y,selectPrefixCls:M,className:D,selectComponentClass:s||(P?ej:tj),locale:O,showSizeChanger:$}))))},wde=xde,$de=new kt("antSpinMove",{to:{opacity:1}}),Ede=new kt("antRotate",{to:{transform:"rotate(405deg)"}}),Pde=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Wt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:$de,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Ede,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Ode=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Ide=Ht("Spin",e=>{const t=_t(e,{spinDotDefault:e.colorTextDescription});return[Pde(t)]},Ode);var Mde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:s,style:u,children:d,fullscreen:f=!1}=e,m=Mde(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=c.useContext(at),g=h("spin",t),[v,p,y]=Ide(g),[b,C]=c.useState(()=>n&&!_de(n,r));c.useEffect(()=>{if(n){const D=Moe(r,()=>{C(!0)});return D(),()=>{var R;(R=D==null?void 0:D.cancel)===null||R===void 0||R.call(D)}}C(!1)},[r,n]);const S=c.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:x}=c.useContext(at),w=Z(g,x==null?void 0:x.className,{[`${g}-sm`]:i==="small",[`${g}-lg`]:i==="large",[`${g}-spinning`]:b,[`${g}-show-text`]:!!l,[`${g}-fullscreen`]:f,[`${g}-fullscreen-show`]:f&&b,[`${g}-rtl`]:$==="rtl"},o,a,p,y),O=Z(`${g}-container`,{[`${g}-blur`]:b}),E=gn(m,["indicator"]),P=Object.assign(Object.assign({},x==null?void 0:x.style),u),M=c.createElement("div",Object.assign({},E,{style:P,className:w,"aria-live":"polite","aria-busy":b}),Rde(g,e),l&&(S||f)?c.createElement("div",{className:`${g}-text`},l):null);return v(S?c.createElement("div",Object.assign({},E,{className:Z(`${g}-nested-loading`,s,p,y)}),b&&c.createElement("div",{key:"loading"},M),c.createElement("div",{className:O,key:"container"},d)):M)};oj.setDefaultIndicator=e=>{fg=e};const El=oj,mw=W.createContext({});mw.Consumer;var aj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=aj(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=c.useContext(at),s=l("list",t),u=Z(`${s}-item-meta`,n),d=W.createElement("div",{className:`${s}-item-meta-content`},o&&W.createElement("h4",{className:`${s}-item-meta-title`},o),a&&W.createElement("div",{className:`${s}-item-meta-description`},a));return W.createElement("div",Object.assign({},i,{className:u}),r&&W.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||a)&&d)},Nde=(e,t)=>{var{prefixCls:n,children:r,actions:o,extra:a,className:i,colStyle:l}=e,s=aj(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:u,itemLayout:d}=c.useContext(mw),{getPrefixCls:f}=c.useContext(at),m=()=>{let b;return c.Children.forEach(r,C=>{typeof C=="string"&&(b=!0)}),b&&c.Children.count(r)>1},h=()=>d==="vertical"?!!a:!m(),g=f("list",n),v=o&&o.length>0&&W.createElement("ul",{className:`${g}-item-action`,key:"actions"},o.map((b,C)=>W.createElement("li",{key:`${g}-item-action-${C}`},b,C!==o.length-1&&W.createElement("em",{className:`${g}-item-action-split`})))),p=u?"div":"li",y=W.createElement(p,Object.assign({},s,u?{}:{ref:t},{className:Z(`${g}-item`,{[`${g}-item-no-flex`]:!h()},i)}),d==="vertical"&&a?[W.createElement("div",{className:`${g}-item-main`,key:"content"},r,v),W.createElement("div",{className:`${g}-item-extra`,key:"extra"},a)]:[r,v,tr(a,{key:"extra"})]);return u?W.createElement(fl,{ref:t,flex:1,style:l},y):y},ij=c.forwardRef(Nde);ij.Meta=Tde;const jde=ij,Dde=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ae(o)} ${ae(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},Fde=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ae(i)}`}}}}}},kde=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,itemPadding:s,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:h,colorText:g,colorTextDescription:v,motionDurationSlow:p,lineWidth:y,headerBg:b,footerBg:C,emptyTextPadding:S,metaMarginBottom:$,avatarMarginRight:x,titleMarginBottom:w,descriptionFontSize:O}=e,E={};return["start","center","end"].forEach(P=>{E[`&-align-${P}`]={textAlign:P}}),{[`${t}`]:Object.assign(Object.assign({},Wt(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:i},E),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${ae(e.marginXXS)} 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${p}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:v,fontSize:O,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ae(m)}`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ae(l)} 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${ae(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Lde=e=>({contentWidth:220,itemPadding:`${ae(e.paddingContentVertical)} 0`,itemPaddingSM:`${ae(e.paddingContentVerticalSM)} ${ae(e.paddingContentHorizontal)}`,itemPaddingLG:`${ae(e.paddingContentVerticalLG)} ${ae(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Ade=Ht("List",e=>{const t=_t(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[kde(t),Dde(t),Fde(t)]},Lde);var Bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o(ye,ge)=>{var ve;O(ye),P(ge),n&&n[me]&&((ve=n==null?void 0:n[me])===null||ve===void 0||ve.call(n,ye,ge))},N=k("onChange"),j=k("onShowSizeChange"),A=(me,ye)=>{if(!C)return null;let ge;return typeof b=="function"?ge=b(me):b?ge=me[b]:ge=me.key,ge||(ge=`list-item-${ye}`),c.createElement(c.Fragment,{key:ge},C(me,ye))},B=()=>!!(f||n||p),z=M("list",r),[H,V,U]=Ade(z);let K=y;typeof K=="boolean"&&(K={spinning:K});const Y=K&&K.spinning,G=nr(g);let q="";switch(G){case"large":q="lg";break;case"small":q="sm";break}const J=Z(z,{[`${z}-vertical`]:d==="vertical",[`${z}-${q}`]:q,[`${z}-split`]:a,[`${z}-bordered`]:o,[`${z}-loading`]:Y,[`${z}-grid`]:!!m,[`${z}-something-after-last-item`]:B(),[`${z}-rtl`]:R==="rtl"},_==null?void 0:_.className,i,l,V,U),Q=Zue(T,{total:h.length,current:w,pageSize:E},n||{}),ne=Math.ceil(Q.total/Q.pageSize);Q.current>ne&&(Q.current=ne);const re=n?c.createElement("div",{className:Z(`${z}-pagination`,`${z}-pagination-align-${(t=Q==null?void 0:Q.align)!==null&&t!==void 0?t:"end"}`)},c.createElement(wde,Object.assign({},Q,{onChange:N,onShowSizeChange:j}))):null;let oe=Te(h);n&&h.length>(Q.current-1)*Q.pageSize&&(oe=Te(h).splice((Q.current-1)*Q.pageSize,Q.pageSize));const te=Object.keys(m||{}).some(me=>["xs","sm","md","lg","xl","xxl"].includes(me)),ee=w2(te),ie=c.useMemo(()=>{for(let me=0;me{if(!m)return;const me=ie&&m[ie]?m[ie]:m.column;if(me)return{width:`${100/me}%`,maxWidth:`${100/me}%`}},[m==null?void 0:m.column,ie]);let he=Y&&c.createElement("div",{style:{minHeight:53}});if(oe.length>0){const me=oe.map((ye,ge)=>A(ye,ge));he=m?c.createElement(xm,{gutter:m.gutter},c.Children.map(me,ye=>c.createElement("div",{key:ye==null?void 0:ye.key,style:de},ye))):c.createElement("ul",{className:`${z}-items`},me)}else!u&&!Y&&(he=c.createElement("div",{className:`${z}-empty-text`},S&&S.emptyText||(D==null?void 0:D("List"))||c.createElement(gm,{componentName:"List"})));const fe=Q.position||"bottom",le=c.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return H(c.createElement(mw.Provider,{value:le},c.createElement("div",Object.assign({style:Object.assign(Object.assign({},_==null?void 0:_.style),s),className:J},$),(fe==="top"||fe==="both")&&re,v&&c.createElement("div",{className:`${z}-header`},v),c.createElement(El,Object.assign({},K),he,u),p&&c.createElement("div",{className:`${z}-footer`},p),f||(fe==="bottom"||fe==="both")&&re)))}Em.Item=jde;let To=null,ql=e=>e(),Nf=[],jf={};function gO(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=jf,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const zde=W.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(at),a=jf.prefixCls||o("message"),i=c.useContext(EC),[l,s]=B_(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return W.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),s}),Hde=W.forwardRef((e,t)=>{const[n,r]=W.useState(gO),o=()=>{r(gO)};W.useEffect(o,[]);const a=HW(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),s=a.getTheme(),u=W.createElement(zde,{ref:t,sync:o,messageConfig:n});return W.createElement(bt,{prefixCls:i,iconPrefixCls:l,theme:s},a.holderRender?a.holderRender(u):u)});function b0(){if(!To){const e=document.createDocumentFragment(),t={fragment:e};To=t,ql(()=>{H_(W.createElement(Hde,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,b0())})}}),e)});return}To.instance&&(Nf.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ql(()=>{const r=To.instance.open(Object.assign(Object.assign({},jf),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ql(()=>{To==null||To.instance.destroy(e.key)});break;default:ql(()=>{var r;const o=(r=To.instance)[t].apply(r,Te(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Nf=[])}function Vde(e){jf=Object.assign(Object.assign({},jf),e),ql(()=>{var t;(t=To==null?void 0:To.sync)===null||t===void 0||t.call(To)})}function Wde(e){const t=t2(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Nf.push(o),()=>{r?ql(()=>{r()}):o.skipped=!0}});return b0(),t}function Kde(e,t){const n=t2(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Nf.push(a),()=>{o?ql(()=>{o()}):a.skipped=!0}});return b0(),n}function Ude(e){Nf.push({type:"destroy",key:e}),b0()}const Gde=["success","info","warning","error","loading"],qde={open:Wde,destroy:Ude,config:Vde,useMessage:z_,_InternalPanelDoNotUseOrYouWillBeFired:uU},lj=qde;Gde.forEach(e=>{lj[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*n;u==="round"&&o!==100&&(g+=d/2,g>=n&&(g=n-.01));var v=_d/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(a+m+h,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},nfe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function bO(e){var t=e??[];return Array.isArray(t)?t:[t]}var rfe=function(t){var n=I(I({},Xde),t),r=n.id,o=n.prefixCls,a=n.steps,i=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,h=n.style,g=n.className,v=n.strokeColor,p=n.percent,y=ze(n,nfe),b=_d/2,C=efe(r),S="".concat(C,"-gradient"),$=b-i/2,x=Math.PI*2*$,w=u>0?90+u/2:-90,O=x*((360-u)/360),E=et(a)==="object"?a:{count:a,space:2},P=E.count,M=E.space,D=bO(p),R=bO(v),_=R.find(function(z){return z&&et(z)==="object"}),T=_&&et(_)==="object",k=T?"butt":m,N=pb(x,O,0,100,w,u,d,f,k,i),j=Qde(),A=function(){var H=0;return D.map(function(V,U){var K=R[U]||R[R.length-1],Y=pb(x,O,H,V,w,u,d,K,k,i);return H+=V,c.createElement(tfe,{key:U,color:K,ptg:V,radius:$,prefixCls:o,gradientId:S,style:Y,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(q){j[U]=q},size:_d})}).reverse()},B=function(){var H=Math.round(P*(D[0]/100)),V=100/P,U=0;return new Array(P).fill(null).map(function(K,Y){var G=Y<=H-1?R[0]:f,q=G&&et(G)==="object"?"url(#".concat(S,")"):void 0,J=pb(x,O,U,V,w,u,d,G,"butt",i,M);return U+=(O-J.strokeDashoffset+M)*100/O,c.createElement("circle",{key:Y,className:"".concat(o,"-circle-path"),r:$,cx:b,cy:b,stroke:q,strokeWidth:i,opacity:1,style:J,ref:function(ne){j[Y]=ne}})})};return c.createElement("svg",be({className:Z("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(_d," ").concat(_d),style:h,id:r,role:"presentation"},y),!P&&c.createElement("circle",{className:"".concat(o,"-circle-trail"),r:$,cx:b,cy:b,stroke:f,strokeLinecap:k,strokeWidth:l||i,style:N}),P?B():A())};function il(e){return!e||e<0?0:e>100?100:e}function Ep(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const ofe=e=>{let{percent:t,success:n,successPercent:r}=e;const o=il(Ep({success:n,successPercent:r}));return[o,il(il(t)-o)]},afe=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||es.green,n||null]},C0=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[l,s]},ife=3,lfe=e=>ife/e*100,sfe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:l,children:s,success:u,size:d=i}=e,[f,m]=C0(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(lfe(f),6));const g={width:f,height:m,fontSize:f*.15+6},v=c.useMemo(()=>{if(a||a===0)return a;if(l==="dashboard")return 75},[a,l]),p=o||l==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=afe({success:u,strokeColor:e.strokeColor}),C=Z(`${t}-inner`,{[`${t}-circle-gradient`]:y}),S=c.createElement(rfe,{percent:ofe(e),strokeWidth:h,trailWidth:h,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:p});return c.createElement("div",{className:C,style:g},f<=20?c.createElement(Go,{title:s},c.createElement("span",null,S)):c.createElement(c.Fragment,null,S,s))},cfe=sfe,Pp="--progress-line-stroke-color",sj="--progress-percent",CO=e=>{const t=e?"100%":"-100%";return new kt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ufe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${ae(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${ae(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Pp})`]},height:"100%",width:`calc(1 / var(${sj}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:CO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:CO(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},dfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ffe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},mfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},vfe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),gfe=Ht("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=_t(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ufe(n),dfe(n),ffe(n),mfe(n)]},vfe);var pfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},yfe=(e,t)=>{const{from:n=es.blue,to:r=es.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=pfe(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=hfe(a),s=`linear-gradient(${o}, ${l})`;return{background:s,[Pp]:s}}const i=`linear-gradient(${o}, ${n}, ${r})`;return{background:i,[Pp]:i}},bfe=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:l="round",children:s,trailColor:u=null,success:d}=e,f=i&&typeof i!="string"?yfe(i,n):{[Pp]:i,background:i},m=l==="square"||l==="butt"?0:void 0,h=o??[-1,a||(o==="small"?6:8)],[g,v]=C0(h,"line",{strokeWidth:a}),p={backgroundColor:u||void 0,borderRadius:m},y=Object.assign(Object.assign({width:`${il(r)}%`,height:v,borderRadius:m},f),{[sj]:il(r)/100}),b=Ep(e),C={width:`${il(b)}%`,height:v,borderRadius:m,backgroundColor:d==null?void 0:d.strokeColor},S={width:g<0?"100%":g,height:v};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:S},c.createElement("div",{className:`${t}-inner`,style:p},c.createElement("div",{className:`${t}-bg`,style:y}),b!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:C}):null)),s)},Cfe=bfe,Sfe=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:a,trailColor:i=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[m,h]=C0(f,"step",{steps:n,strokeWidth:o}),g=m/n,v=new Array(n);for(let p=0;p{const{prefixCls:n,className:r,rootClassName:o,steps:a,strokeColor:i,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:m,style:h}=e,g=wfe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=c.useMemo(()=>{var R,_;const T=Ep(e);return parseInt(T!==void 0?(R=T??0)===null||R===void 0?void 0:R.toString():(_=l??0)===null||_===void 0?void 0:_.toString(),10)},[l,e.success,e.successPercent]),p=c.useMemo(()=>!$fe.includes(f)&&v>=100?"success":f||"normal",[f,v]),{getPrefixCls:y,direction:b,progress:C}=c.useContext(at),S=y("progress",n),[$,x,w]=gfe(S),O=c.useMemo(()=>{if(!u)return null;const R=Ep(e);let _;const T=m||(N=>`${N}%`),k=d==="line";return m||p!=="exception"&&p!=="success"?_=T(il(l),il(R)):p==="exception"?_=k?c.createElement(Ha,null):c.createElement(xa,null):p==="success"&&(_=k?c.createElement(bs,null):c.createElement(Uh,null)),c.createElement("span",{className:`${S}-text`,title:typeof _=="string"?_:void 0},_)},[u,l,v,p,d,S,m]),E=Array.isArray(i)?i[0]:i,P=typeof i=="string"||Array.isArray(i)?i:void 0;let M;d==="line"?M=a?c.createElement(xfe,Object.assign({},e,{strokeColor:P,prefixCls:S,steps:a}),O):c.createElement(Cfe,Object.assign({},e,{strokeColor:E,prefixCls:S,direction:b}),O):(d==="circle"||d==="dashboard")&&(M=c.createElement(cfe,Object.assign({},e,{strokeColor:E,prefixCls:S,progressStatus:p}),O));const D=Z(S,`${S}-status-${p}`,`${S}-${d==="dashboard"&&"circle"||a&&"steps"||d}`,{[`${S}-inline-circle`]:d==="circle"&&C0(s,"circle")[0]<=20,[`${S}-show-info`]:u,[`${S}-${s}`]:typeof s=="string",[`${S}-rtl`]:b==="rtl"},C==null?void 0:C.className,r,o,x,w);return $(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},C==null?void 0:C.style),h),className:D,role:"progressbar","aria-valuenow":v},gn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),M))}),Pfe=Efe;var Ofe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Ife=Ofe;var Mfe=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Ife}))},Rfe=c.forwardRef(Mfe);const _fe=Rfe;function Tfe(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,a=e.characterRender,i=e.index,l=e.count,s=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,h=function($){f($,i)},g=function($){m($,i)},v=function($){$.keyCode===Ie.ENTER&&m($,i)},p=i+1,y=new Set([r]);s===0&&i===0&&d?y.add("".concat(r,"-focused")):u&&s+.5>=p&&si?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},W.createElement("div",{className:"".concat(r,"-first")},b),W.createElement("div",{className:"".concat(r,"-second")},b)));return a&&(C=a(C,e)),C}const Nfe=W.forwardRef(Tfe);function jfe(){var e=c.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function Dfe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function Ffe(e){var t,n,r=e.ownerDocument,o=r.body,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:t,top:n}}function kfe(e){var t=Ffe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Dfe(r),t.left}var Lfe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Afe(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-rate":r,a=e.className,i=e.defaultValue,l=e.value,s=e.count,u=s===void 0?5:s,d=e.allowHalf,f=d===void 0?!1:d,m=e.allowClear,h=m===void 0?!0:m,g=e.character,v=g===void 0?"★":g,p=e.characterRender,y=e.disabled,b=e.direction,C=b===void 0?"ltr":b,S=e.tabIndex,$=S===void 0?0:S,x=e.autoFocus,w=e.onHoverChange,O=e.onChange,E=e.onFocus,P=e.onBlur,M=e.onKeyDown,D=e.onMouseLeave,R=ze(e,Lfe),_=jfe(),T=X(_,2),k=T[0],N=T[1],j=W.useRef(null),A=function(){if(!y){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.focus()}};W.useImperativeHandle(t,function(){return{focus:A,blur:function(){if(!y){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.blur()}}}});var B=Pt(i||0,{value:l}),z=X(B,2),H=z[0],V=z[1],U=Pt(null),K=X(U,2),Y=K[0],G=K[1],q=function(Oe,Re){var Ee=C==="rtl",_e=Oe+1;if(f){var Fe=k(Oe),qe=kfe(Fe),Ze=Fe.clientWidth;(Ee&&Re-qe>Ze/2||!Ee&&Re-qe0&&!Ee||Re===Ie.RIGHT&&_e>0&&Ee?(f?_e-=.5:_e-=1,J(_e),Oe.preventDefault()):Re===Ie.LEFT&&_e{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ae(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Hfe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Vfe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),zfe(e)),Hfe(e))}},Wfe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Kfe=Ht("Rate",e=>{const t=_t(e,{});return[Vfe(t)]},Wfe);var Ufe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:a,tooltips:i,character:l=c.createElement(_fe,null)}=e,s=Ufe(e,["prefixCls","className","rootClassName","style","tooltips","character"]),u=(b,C)=>{let{index:S}=C;return i?c.createElement(Go,{title:i[S]},b):b},{getPrefixCls:d,direction:f,rate:m}=c.useContext(at),h=d("rate",n),[g,v,p]=Kfe(h),y=Object.assign(Object.assign({},m==null?void 0:m.style),a);return g(c.createElement(Bfe,Object.assign({ref:t,character:l,characterRender:u},s,{className:Z(r,o,v,p,m==null?void 0:m.className),style:y,prefixCls:h,direction:f})))}),SO=Gfe;var qfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const Yfe=qfe;var Xfe=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Yfe}))},Qfe=c.forwardRef(Xfe);const Zfe=Qfe,Jfe=()=>c.createElement("svg",{width:"252",height:"294"},c.createElement("defs",null,c.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(0 .012)"},c.createElement("mask",{fill:"#fff"}),c.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),c.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),c.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),c.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),c.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),c.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),c.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),c.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),c.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),c.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),c.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),c.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),c.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),c.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),c.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),c.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),c.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),c.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),c.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),c.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),c.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),c.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),c.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),c.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),c.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),c.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),c.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),c.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),c.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),c.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),c.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),c.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),c.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),c.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),c.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),c.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),c.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),c.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),eme=Jfe,tme=()=>c.createElement("svg",{width:"254",height:"294"},c.createElement("defs",null,c.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),c.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(0 .067)"},c.createElement("mask",{fill:"#fff"}),c.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),c.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),c.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),c.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),c.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),c.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),c.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),c.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),c.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),c.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),c.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),c.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),c.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),c.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),c.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),c.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),c.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),c.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),c.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),c.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),c.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),c.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),c.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),c.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),c.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),c.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),c.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),c.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),c.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),c.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),c.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),c.createElement("mask",{fill:"#fff"}),c.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),c.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),c.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),c.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),c.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),c.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),c.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),c.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),c.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),nme=tme,rme=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:l,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${ae(e.calc(l).mul(2).equal())} ${ae(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ae(l)} ${ae(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},ome=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},ame=e=>[rme(e),ome(e)],ime=e=>ame(e),lme=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),sme=Ht("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,a=_t(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[ime(a)]},lme),cme=()=>c.createElement("svg",{width:"251",height:"294"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),c.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),c.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),c.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),c.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),c.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),c.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),c.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),c.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),c.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),c.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),c.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),c.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),c.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),c.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),c.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),c.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),c.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),c.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),c.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),c.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),c.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),c.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),c.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),c.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),c.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),c.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),c.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),c.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),c.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),c.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),c.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),c.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),c.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),c.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),c.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),c.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),ume=cme,dme={success:bs,error:Ha,info:yu,warning:Zfe},Pm={404:eme,500:nme,403:ume},fme=Object.keys(Pm),mme=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=Z(`${t}-icon`);if(fme.includes(`${r}`)){const i=Pm[r];return c.createElement("div",{className:`${o} ${t}-image`},c.createElement(i,null))}const a=c.createElement(dme[r]);return n===null||n===!1?null:c.createElement("div",{className:o},n||a)},vme=e=>{let{prefixCls:t,extra:n}=e;return n?c.createElement("div",{className:`${t}-extra`},n):null},S0=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:a,style:i,children:l,status:s="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:m,result:h}=c.useContext(at),g=f("result",t),[v,p,y]=sme(g),b=Z(g,`${g}-${s}`,n,h==null?void 0:h.className,r,{[`${g}-rtl`]:m==="rtl"},p,y),C=Object.assign(Object.assign({},h==null?void 0:h.style),i);return v(c.createElement("div",{className:b,style:C},c.createElement(mme,{prefixCls:g,status:s,icon:u}),c.createElement("div",{className:`${g}-title`},a),o&&c.createElement("div",{className:`${g}-subtitle`},o),c.createElement(vme,{prefixCls:g,extra:d}),l&&c.createElement("div",{className:`${g}-content`},l)))};S0.PRESENTED_IMAGE_403=Pm[403];S0.PRESENTED_IMAGE_404=Pm[404];S0.PRESENTED_IMAGE_500=Pm[500];const vw=S0;var xO=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},Hs=function(t){return t!==void 0?"".concat(t,"px"):void 0};function gme(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,l=e.onMotionEnd,s=e.direction,u=c.useRef(null),d=c.useState(r),f=X(d,2),m=f[0],h=f[1],g=function(R){var _,T=o(R),k=(_=n.current)===null||_===void 0?void 0:_.querySelectorAll(".".concat(t,"-item"))[T];return(k==null?void 0:k.offsetParent)&&k},v=c.useState(null),p=X(v,2),y=p[0],b=p[1],C=c.useState(null),S=X(C,2),$=S[0],x=S[1];Kt(function(){if(m!==r){var D=g(m),R=g(r),_=xO(D),T=xO(R);h(r),b(_),x(T),D&&R?i():l()}},[r]);var w=c.useMemo(function(){return Hs(s==="rtl"?-(y==null?void 0:y.right):y==null?void 0:y.left)},[s,y]),O=c.useMemo(function(){return Hs(s==="rtl"?-($==null?void 0:$.right):$==null?void 0:$.left)},[s,$]),E=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},P=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},M=function(){b(null),x(null),l()};return!y||!$?null:c.createElement(wr,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:E,onAppearActive:P,onVisibleChanged:M},function(D,R){var _=D.className,T=D.style,k=I(I({},T),{},{"--thumb-start-left":w,"--thumb-start-width":Hs(y==null?void 0:y.width),"--thumb-active-left":O,"--thumb-active-width":Hs($==null?void 0:$.width)}),N={ref:Er(u,R),style:k,className:Z("".concat(t,"-thumb"),_)};return c.createElement("div",N)})}var pme=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function hme(e){if(typeof e.title<"u")return e.title;if(et(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function yme(e){return e.map(function(t){if(et(t)==="object"&&t!==null){var n=hme(t);return I(I({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var bme=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,a=t.checked,i=t.label,l=t.title,s=t.value,u=t.onChange,d=function(m){o||u(m,s)};return c.createElement("label",{className:Z(r,L({},"".concat(n,"-item-disabled"),o))},c.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:a,onChange:d}),c.createElement("div",{className:"".concat(n,"-item-label"),title:l},i))},Cme=c.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=o===void 0?"rc-segmented":o,i=e.direction,l=e.options,s=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,m=e.onChange,h=e.className,g=h===void 0?"":h,v=e.motionName,p=v===void 0?"thumb-motion":v,y=ze(e,pme),b=c.useRef(null),C=c.useMemo(function(){return Er(b,t)},[b,t]),S=c.useMemo(function(){return yme(s)},[s]),$=Pt((n=S[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),x=X($,2),w=x[0],O=x[1],E=c.useState(!1),P=X(E,2),M=P[0],D=P[1],R=function(k,N){u||(O(N),m==null||m(N))},_=gn(y,["children"]);return c.createElement("div",be({},_,{className:Z(a,(r={},L(r,"".concat(a,"-rtl"),i==="rtl"),L(r,"".concat(a,"-disabled"),u),r),g),ref:C}),c.createElement("div",{className:"".concat(a,"-group")},c.createElement(gme,{prefixCls:a,value:w,containerRef:b,motionName:"".concat(a,"-").concat(p),direction:i,getValueIndex:function(k){return S.findIndex(function(N){return N.value===k})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),S.map(function(T){return c.createElement(bme,be({},T,{key:T.value,prefixCls:a,className:Z(T.className,"".concat(a,"-item"),L({},"".concat(a,"-item-selected"),T.value===w&&!M)),checked:T.value===w,onChange:R,disabled:!!u||!!T.disabled}))})))}),Sme=Cme;function wO(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function $O(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const xme=Object.assign({overflow:"hidden"},mi),wme=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,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,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},$O(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,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:n,lineHeight:ae(n),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`},xme),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},$O(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ae(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:ae(r),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:ae(o),padding:`0 ${ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),wO(`&-disabled ${t}-item`,e)),wO(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},$me=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}},Eme=Ht("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=_t(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[wme(r)]},$me);var EO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:l="middle",style:s}=e,u=EO(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:d,direction:f,segmented:m}=c.useContext(at),h=d("segmented",n),[g,v,p]=Eme(h),y=nr(l),b=c.useMemo(()=>i.map($=>{if(Pme($)){const{icon:x,label:w}=$,O=EO($,["icon","label"]);return Object.assign(Object.assign({},O),{label:c.createElement(c.Fragment,null,c.createElement("span",{className:`${h}-item-icon`},x),w&&c.createElement("span",null,w))})}return $}),[i,h]),C=Z(r,o,m==null?void 0:m.className,{[`${h}-block`]:a,[`${h}-sm`]:y==="small",[`${h}-lg`]:y==="large"},v,p),S=Object.assign(Object.assign({},m==null?void 0:m.style),s);return g(c.createElement(Sme,Object.assign({},u,{className:C,style:S,options:b,ref:t,prefixCls:h,direction:f})))}),Ime=Ome,Mme=Ime;var ws=c.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function qC(e,t,n){return(e-t)/(n-t)}function gw(e,t,n,r){var o=qC(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function yc(e,t){return Array.isArray(e)?e[t]:e}var Rme=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],_me=c.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,l=e.onStartMove,s=e.style,u=e.render,d=e.dragging,f=e.onOffsetChange,m=e.onChangeComplete,h=ze(e,Rme),g=c.useContext(ws),v=g.min,p=g.max,y=g.direction,b=g.disabled,C=g.keyboard,S=g.range,$=g.tabIndex,x=g.ariaLabelForHandle,w=g.ariaLabelledByForHandle,O=g.ariaValueTextFormatterForHandle,E=g.styles,P=g.classNames,M="".concat(o,"-handle"),D=function(j){b||l(j,i)},R=function(j){if(!b&&C){var A=null;switch(j.which||j.keyCode){case Ie.LEFT:A=y==="ltr"||y==="btt"?-1:1;break;case Ie.RIGHT:A=y==="ltr"||y==="btt"?1:-1;break;case Ie.UP:A=y!=="ttb"?1:-1;break;case Ie.DOWN:A=y!=="ttb"?-1:1;break;case Ie.HOME:A="min";break;case Ie.END:A="max";break;case Ie.PAGE_UP:A=2;break;case Ie.PAGE_DOWN:A=-2;break}A!==null&&(j.preventDefault(),f(A,i))}},_=function(j){switch(j.which||j.keyCode){case Ie.LEFT:case Ie.RIGHT:case Ie.UP:case Ie.DOWN:case Ie.HOME:case Ie.END:case Ie.PAGE_UP:case Ie.PAGE_DOWN:m==null||m();break}},T=gw(y,a,v,p),k=c.createElement("div",be({ref:t,className:Z(M,(n={},L(n,"".concat(M,"-").concat(i+1),S),L(n,"".concat(M,"-dragging"),d),n),P.handle),style:I(I(I({},T),s),E.handle),onMouseDown:D,onTouchStart:D,onKeyDown:R,onKeyUp:_,tabIndex:b?null:yc($,i),role:"slider","aria-valuemin":v,"aria-valuemax":p,"aria-valuenow":a,"aria-disabled":b,"aria-label":yc(x,i),"aria-labelledby":yc(w,i),"aria-valuetext":(r=yc(O,i))===null||r===void 0?void 0:r(a),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical"},h));return u&&(k=u(k,{index:i,prefixCls:o,value:a,dragging:d})),k}),Tme=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Nme=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.draggingIndex,u=ze(e,Tme),d=c.useRef({});return c.useImperativeHandle(t,function(){return{focus:function(m){var h;(h=d.current[m])===null||h===void 0||h.focus()}}}),c.createElement(c.Fragment,null,i.map(function(f,m){return c.createElement(_me,be({ref:function(g){g?d.current[m]=g:delete d.current[m]},dragging:s===m,prefixCls:n,style:yc(r,m),key:m,value:f,valueIndex:m,onStartMove:o,onOffsetChange:a,render:l},u))}))});function PO(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function jme(e,t,n,r,o,a,i,l,s){var u=c.useState(null),d=X(u,2),f=d[0],m=d[1],h=c.useState(-1),g=X(h,2),v=g[0],p=g[1],y=c.useState(n),b=X(y,2),C=b[0],S=b[1],$=c.useState(n),x=X($,2),w=x[0],O=x[1],E=c.useRef(null),P=c.useRef(null);c.useEffect(function(){v===-1&&S(n)},[n,v]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",P.current)}},[]);var M=function(N,j){C.some(function(A,B){return A!==N[B]})&&(j!==void 0&&m(j),S(N),i(N))},D=function(N,j){if(N===-1){var A=w[0],B=w[w.length-1],z=r-A,H=o-B,V=j*(o-r);V=Math.max(V,z),V=Math.min(V,H);var U=a(A+V);V=U-A;var K=w.map(function(J){return J+V});M(K)}else{var Y=(o-r)*j,G=Te(C);G[N]=w[N];var q=s(G,Y,N,"dist");M(q.values,q.value)}},R=c.useRef(D);R.current=D;var _=function(N,j,A){N.stopPropagation();var B=A||n,z=B[j];p(j),m(z),O(B);var H=PO(N),V=H.pageX,U=H.pageY,K=function(q){q.preventDefault();var J=PO(q),Q=J.pageX,ne=J.pageY,re=Q-V,oe=ne-U,te=e.current.getBoundingClientRect(),ee=te.width,ie=te.height,de;switch(t){case"btt":de=-oe/ie;break;case"ttb":de=oe/ie;break;case"rtl":de=-re/ee;break;default:de=re/ee}R.current(j,de)},Y=function G(q){q.preventDefault(),document.removeEventListener("mouseup",G),document.removeEventListener("mousemove",K),document.removeEventListener("touchend",G),document.removeEventListener("touchmove",K),E.current=null,P.current=null,p(-1),l()};document.addEventListener("mouseup",Y),document.addEventListener("mousemove",K),document.addEventListener("touchend",Y),document.addEventListener("touchmove",K),E.current=K,P.current=Y},T=c.useMemo(function(){var k=Te(n).sort(function(j,A){return j-A}),N=Te(C).sort(function(j,A){return j-A});return k.every(function(j,A){return j===N[A]})?C:n},[n,C]);return[v,f,T,_]}function Dme(e,t,n,r,o,a){var i=c.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),l=c.useCallback(function(h){if(n!==null){var g=e+Math.round((i(h)-e)/n)*n,v=function(C){return(String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),y=Number(g.toFixed(p));return e<=y&&y<=t?y:null}return null},[n,e,t,i]),s=c.useCallback(function(h){var g=i(h),v=r.map(function(b){return b.value});n!==null&&v.push(l(h)),v.push(e,t);var p=v[0],y=t-e;return v.forEach(function(b){var C=Math.abs(g-b);C<=y&&(p=b,y=C)}),p},[e,t,r,n,i,l]),u=function h(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,C=g[p],S=C+v,$=[];r.forEach(function(P){$.push(P.value)}),$.push(e,t),$.push(l(C));var x=v>0?1:-1;y==="unit"?$.push(l(C+x*n)):$.push(l(S)),$=$.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),y==="unit"&&($=$.filter(function(P){return P!==C}));var w=y==="unit"?C:S;b=$[0];var O=Math.abs(b-w);if($.forEach(function(P){var M=Math.abs(P-w);M1){var E=Te(g);return E[p]=b,h(E,v-x,p,y)}return b}else{if(v==="min")return e;if(v==="max")return t}},d=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g[p],C=u(g,v,p,y);return{value:C,changed:C!==b}},f=function(g){return a===null&&g===0||typeof a=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",b=g.map(s),C=b[p],S=u(b,v,p,y);if(b[p]=S,o===!1){var $=a||0;p>0&&b[p-1]!==C&&(b[p]=Math.max(b[p],b[p-1]+$)),p0;E-=1)for(var P=!0;f(b[E]-b[E-1])&&P;){var M=d(b,-1,E-1);b[E-1]=M.value,P=M.changed}for(var D=b.length-1;D>0;D-=1)for(var R=!0;f(b[D]-b[D-1])&&R;){var _=d(b,-1,D-1);b[D-1]=_.value,R=_.changed}for(var T=0;T=0?N:!1},[N,ye]),ve=c.useMemo(function(){var Qe=Object.keys(J||{});return Qe.map(function(Ae){var Pe=J[Ae],je={value:Number(Ae)};return Pe&&et(Pe)==="object"&&!c.isValidElement(Pe)&&("label"in Pe||"style"in Pe)?(je.style=Pe.style,je.label=Pe.label):je.label=Pe,je}).filter(function(Ae){var Pe=Ae.label;return Pe||typeof Pe=="number"}).sort(function(Ae,Pe){return Ae.value-Pe.value})},[J]),$e=Dme(le,me,ye,ve,T,ge),Ce=X($e,2),Oe=Ce[0],Re=Ce[1],Ee=Pt(w,{value:x}),_e=X(Ee,2),Fe=_e[0],qe=_e[1],Ze=c.useMemo(function(){var Qe=Fe==null?[]:Array.isArray(Fe)?Fe:[Fe],Ae=X(Qe,1),Pe=Ae[0],je=Pe===void 0?le:Pe,Ve=Fe===null?[]:[je];if(O){if(Ve=Te(Qe),E||Fe===void 0){var tt=E>=0?E+1:2;for(Ve=Ve.slice(0,tt);Ve.length=0&&de.current.focus(Qe)}We(null)},[Ne]);var Me=c.useMemo(function(){return j&&ye===null?!1:j},[j,ye]),Le=function(Ae,Pe){ue(Ae,Pe),M==null||M(Be(ke.current))},Xe=gt!==-1;c.useEffect(function(){if(!Xe){var Qe=Ze.lastIndexOf(yt);de.current.focus(Qe)}},[Xe]);var Ke=c.useMemo(function(){return Te(It).sort(function(Qe,Ae){return Qe-Ae})},[It]),it=c.useMemo(function(){return O?[Ke[0],Ke[Ke.length-1]]:[le,Ke[0]]},[Ke,O,le]),ot=X(it,2),Mt=ot[0],Ct=ot[1];c.useImperativeHandle(t,function(){return{focus:function(){de.current.focus(0)},blur:function(){var Ae=document,Pe=Ae.activeElement;he.current.contains(Pe)&&(Pe==null||Pe.blur())}}}),c.useEffect(function(){h&&de.current.focus(0)},[]);var st=c.useMemo(function(){return{min:le,max:me,direction:fe,disabled:d,keyboard:m,step:ye,included:H,includedStart:Mt,includedEnd:Ct,range:O,tabIndex:oe,ariaLabelForHandle:te,ariaLabelledByForHandle:ee,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:l||{}}},[le,me,fe,d,m,ye,H,Mt,Ct,O,oe,te,ee,ie,s,l]);return c.createElement(ws.Provider,{value:st},c.createElement("div",{ref:he,className:Z(o,a,(n={},L(n,"".concat(o,"-disabled"),d),L(n,"".concat(o,"-vertical"),B),L(n,"".concat(o,"-horizontal"),!B),L(n,"".concat(o,"-with-marks"),ve.length),n)),style:i,onMouseDown:pe},c.createElement("div",{className:Z("".concat(o,"-rail"),l==null?void 0:l.rail),style:I(I({},Y),s==null?void 0:s.rail)}),c.createElement(Bme,{prefixCls:o,style:U,values:Ke,startPoint:V,onStartMove:Me?Le:null}),c.createElement(Ame,{prefixCls:o,marks:ve,dots:Q,style:G,activeStyle:q}),c.createElement(Nme,{ref:de,prefixCls:o,style:K,values:It,draggingIndex:gt,onStartMove:Le,onOffsetChange:He,onFocus:g,onBlur:v,handleRender:ne,onChangeComplete:Je}),c.createElement(kme,{prefixCls:o,marks:ve,onClick:se})))});const Hme=c.forwardRef((e,t)=>{const{open:n}=e,r=c.useRef(null),o=c.useRef(null);function a(){At.cancel(o.current),o.current=null}function i(){o.current=At(()=>{var l;(l=r.current)===null||l===void 0||l.forceAlign(),o.current=null})}return c.useEffect(()=>(n?i():a(),a),[n,e.title]),c.createElement(Go,Object.assign({ref:Er(r,t)},e))}),Vme=Hme,Wme=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:u}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",height:r,margin:`${ae(i)} ${ae(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(a)} ${ae(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ae(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:u(e.handleLineWidth).mul(-1).equal(),insetBlockStart:u(e.handleLineWidth).mul(-1).equal(),width:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),height:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, @@ -382,35 +410,7 @@ html body { `]:{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 ${ae(e.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},W9=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",h=l(r).mul(3).sub(o).div(2).equal(),g=l(o).sub(r).div(2).equal(),v=t?{borderWidth:`${ae(g)} 0`,transform:`translateY(${ae(l(g).mul(-1).equal())})`}:{borderWidth:`0 ${ae(g)}`,transform:`translateX(${ae(e.calc(g).mul(-1).equal())})`};return{[s]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(a).div(2).equal()}}},Ofe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},W9(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ife=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},W9(e,!1)),{height:"100%"})}},Mfe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new Jt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Rfe=Ht("Slider",e=>{const t=_t(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Pfe(t),Ofe(t),Ife(t)]},Mfe);var _fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const Nfe=W.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m}=e,h=_fe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:y}=W.useContext(at),b=W.useContext(Kr),C=l??b,[S,$]=W.useState({}),x=(N,j)=>{$(A=>Object.assign(Object.assign({},A),{[N]:j}))},w=(N,j)=>N||(j?g==="rtl"?"left":"right":"top"),O=p("slider",n),[E,P,M]=Rfe(O),D=Z(o,v==null?void 0:v.className,a,{[`${O}-rtl`]:g==="rtl"},P,M);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[R,_]=W.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),T=(N,j)=>{var A;const{index:B,dragging:z}=j,{tooltip:H={},vertical:V}=e,U=Object.assign({},H),{open:K,placement:Y,getPopupContainer:G,prefixCls:q,formatter:J}=U,Q=Tfe(J,u),ne=Q?S[B]||z:!1,re=(A=K??d)!==null&&A!==void 0?A:K===void 0&&ne,oe=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>x(B,!0),onMouseLeave:()=>x(B,!1),onFocus:te=>{var ee;x(B,!0),(ee=h.onFocus)===null||ee===void 0||ee.call(h,te)},onBlur:te=>{var ee;x(B,!1),(ee=h.onBlur)===null||ee===void 0||ee.call(h,te)}});return W.createElement(Efe,Object.assign({},U,{prefixCls:p("tooltip",q??s),title:Q?Q(j.value):"",open:re,placement:w(Y??m,V),key:B,overlayClassName:`${O}-tooltip`,getPopupContainer:G||f||y}),W.cloneElement(N,oe))},k=Object.assign(Object.assign({},v==null?void 0:v.style),i);return E(W.createElement(wfe,Object.assign({},h,{step:h.step,range:R,draggableTrack:_,className:D,style:k,disabled:C,ref:t,prefixCls:O,handleRender:T})))}),jfe=Nfe;var Dfe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],K9=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,h=e.onChange,g=e.onKeyDown,v=ze(e,Dfe),p=Pt(!1,{value:i,defaultValue:l}),y=X(p,2),b=y[0],C=y[1];function S(O,E){var P=b;return s||(P=O,C(P),h==null||h(P,E)),P}function $(O){O.which===Ie.LEFT?S(!1,O):O.which===Ie.RIGHT&&S(!0,O),g==null||g(O)}function x(O){var E=S(!b,O);m==null||m(E,O)}var w=Z(o,a,(n={},L(n,"".concat(o,"-checked"),b),L(n,"".concat(o,"-disabled"),s),n));return c.createElement("button",be({},v,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:$,onClick:x}),u,c.createElement("span",{className:"".concat(o,"-inner")},c.createElement("span",{className:"".concat(o,"-inner-checked")},d),c.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});K9.displayName="Switch";const Ffe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,d=ae(s(l).add(s(r).mul(2)).equal()),f=ae(s(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ae(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ae(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},kfe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Lfe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ae(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Afe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,s=`${t}-inner`,u=ae(l(i).add(l(r).mul(2)).equal()),d=ae(l(a).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},Bfe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${ae(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ha(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"}})}},zfe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,s=a-l*2,u=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},Hfe=Ht("Switch",e=>{const t=_t(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Bfe(t),Afe(t),Lfe(t),kfe(t),Ffe(t)]},zfe);var Vfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:s,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:h}=e,g=Vfe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,p]=Pt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:y,direction:b,switch:C}=c.useContext(at),S=c.useContext(Kr),$=(o??S)||a,x=y("switch",n),w=c.createElement("div",{className:`${x}-handle`},a&&c.createElement(Cl,{className:`${x}-loading-icon`})),[O,E,P]=Hfe(x),M=nr(r),D=Z(C==null?void 0:C.className,{[`${x}-small`]:M==="small",[`${x}-loading`]:a,[`${x}-rtl`]:b==="rtl"},i,l,E,P),R=Object.assign(Object.assign({},C==null?void 0:C.style),s),_=function(){p(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return O(c.createElement(_h,{component:"Switch"},c.createElement(K9,Object.assign({},g,{checked:v,onChange:_,prefixCls:x,className:D,style:R,disabled:$,ref:t,loadingIcon:w}))))});U9.__ANT_SWITCH=!0;const Mc=U9;var vw=c.createContext(null),Wfe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),l=[],s=0;s=0&&n.splice(r,1),n}function Ti(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gw(e){return e.split("-")}function Yfe(e,t){var n=[],r=ho(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var l=i.key,s=i.children;n.push(l),o(s)})}return o(r.children),n}function Xfe(e){if(e.parent){var t=gw(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Qfe(e){var t=gw(e.pos);return Number(t[t.length-1])===0}function dO(e,t,n,r,o,a,i,l,s,u){var d,f=e.clientX,m=e.clientY,h=e.target.getBoundingClientRect(),g=h.top,v=h.height,p=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),y=(p-12)/r,b=s.filter(function(k){var N;return(N=l[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),C=ho(l,n.props.eventKey);if(m-1.5?a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1:a({dragNode:R,dropNode:_,dropPosition:0})?P=0:a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1:a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1,{dropPosition:P,dropLevelOffset:M,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:E,dropContainerKey:P===0?null:((d=C.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:T}}function fO(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function vb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(et(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return cn(!1,"`checkedKeys` is not an array or an object"),null;return t}function mO(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=ho(t,o);if(a){n.add(o);var i=a.parent,l=a.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),Te(n)}function Zfe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return c.createElement("div",{style:o})}function G9(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Jfe(e,t){var n=c.useState(!1),r=X(n,2),o=r[0],a=r[1];Kt(function(){if(o)return e(),function(){t()}},[o]),Kt(function(){return a(!0),function(){a(!1)}},[])}var eme=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],q9=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,l=t.motionType,s=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=ze(t,eme),h=c.useState(!0),g=X(h,2),v=g[0],p=g[1],y=c.useContext(vw),b=y.prefixCls,C=i&&l!=="hide";Kt(function(){i&&C!==v&&p(C)},[i]);var S=function(){i&&s()},$=c.useRef(!1),x=function(){i&&!$.current&&($.current=!0,u())};Jfe(S,x);var w=function(E){C===E&&x()};return i?c.createElement(wr,be({ref:n,visible:v},a,{motionAppear:l==="show",onVisibleChanged:w}),function(O,E){var P=O.className,M=O.style;return c.createElement("div",{ref:E,className:Z("".concat(b,"-treenode-motion"),P),style:M},i.map(function(D){var R=Object.assign({},(G9(D.data),D.data)),_=D.title,T=D.key,k=D.isStart,N=D.isEnd;delete R.children;var j=Xd(T,f);return c.createElement(Nf,be({},R,j,{title:_,active:d,data:D.data,key:T,isStart:k,isEnd:N}))}))}):c.createElement(Nf,be({domRef:n,className:r,style:o},m,{active:d}))};q9.displayName="MotionTreeNode";var tme=c.forwardRef(q9);function nme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var l=new Map;a.forEach(function(u){l.set(u,!0)});var s=i.filter(function(u){return!l.has(u)});return s.length===1?s[0]:null}return n ").concat(t);return t}var X9=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,v=e.motion,p=e.height,y=e.itemHeight,b=e.virtual,C=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,w=e.onKeyDown,O=e.onFocus,E=e.onBlur,P=e.onActiveChange,M=e.onListChangeStart,D=e.onListChangeEnd,R=ze(e,rme),_=c.useRef(null),T=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(me){_.current.scrollTo(me)},getIndentWidth:function(){return T.current.offsetWidth}}});var k=c.useState(o),N=X(k,2),j=N[0],A=N[1],B=c.useState(r),z=X(B,2),H=z[0],V=z[1],U=c.useState(r),K=X(U,2),Y=K[0],G=K[1],q=c.useState([]),J=X(q,2),Q=J[0],ne=J[1],re=c.useState(null),oe=X(re,2),te=oe[0],ee=oe[1],ie=c.useRef(r);ie.current=r;function de(){var le=ie.current;V(le),G(le),ne([]),ee(null),D()}Kt(function(){A(o);var le=nme(j,o);if(le.key!==null)if(le.add){var me=H.findIndex(function(Oe){var Re=Oe.key;return Re===le.key}),ye=hO(vO(H,r,le.key),b,p,y),ge=H.slice();ge.splice(me+1,0,pO),G(ge),ne(ye),ee("show")}else{var ve=r.findIndex(function(Oe){var Re=Oe.key;return Re===le.key}),$e=hO(vO(r,H,le.key),b,p,y),Ce=r.slice();Ce.splice(ve+1,0,pO),G(Ce),ne($e),ee("hide")}else H!==r&&(V(r),G(r))},[o,r]),c.useEffect(function(){m||de()},[m]);var he=v?Y:r,fe={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:s,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return c.createElement(c.Fragment,null,$&&S&&c.createElement("span",{style:gO,"aria-live":"assertive"},ame(S)),c.createElement("div",null,c.createElement("input",{style:gO,disabled:C===!1||f,tabIndex:C!==!1?x:null,onKeyDown:w,onFocus:O,onBlur:E,value:"",onChange:ome,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),c.createElement(v2,be({},R,{data:he,itemKey:yO,height:p,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:_,onVisibleChange:function(me,ye){var ge=new Set(me),ve=ye.filter(function($e){return!ge.has($e)});ve.some(function($e){return yO($e)===vs})&&de()}}),function(le){var me=le.pos,ye=Object.assign({},(G9(le.data),le.data)),ge=le.title,ve=le.key,$e=le.isStart,Ce=le.isEnd,Oe=ym(ve,me);delete ye.key,delete ye.children;var Re=Xd(Oe,fe);return c.createElement(tme,be({},ye,Re,{title:ge,active:!!S&&ve===S.key,pos:me,data:le.data,isStart:$e,isEnd:Ce,motion:v,motionNodes:ve===vs?Q:null,motionType:te,onMotionStart:M,onMotionEnd:de,treeNodeRequiredProps:fe,onMouseMove:function(){P(null)}}))}))});X9.displayName="NodeList";var ime=10,pw=function(e){Ko(n,e);var t=Si(n);function n(){var r;Dn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,h=f.dropPosition,g=f.dropTargetKey,v=f.dropTargetPos,p=f.dropAllowed;if(p){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var b=I(I({},Xd(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:ho(r.state.keyEntities,g).node}),C=m.indexOf(g)!==-1;cn(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=gw(v),$={event:l,node:rr(b),dragNode:r.dragNode?rr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};d||y==null||y($),r.dragNode=null}}}),L(Ye(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),L(Ye(r),"triggerExpandActionExpand",function(l,s){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=s.expanded,h=s.key,g=s.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var v=f.filter(function(y){return y.key===h})[0],p=rr(I(I({},Xd(h,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(m?Ya(d,h):Ti(d,h)),r.onNodeExpand(l,p)}}),L(Ye(r),"onNodeClick",function(l,s){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),L(Ye(r),"onNodeDoubleClick",function(l,s){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),L(Ye(r),"onNodeSelect",function(l,s){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,h=r.props,g=h.onSelect,v=h.multiple,p=s.selected,y=s[m.key],b=!p;b?v?u=Ti(u,y):u=[y]:u=Ya(u,y);var C=u.map(function(S){var $=ho(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:b,node:s,selectedNodes:C,nativeEvent:l.nativeEvent})}),L(Ye(r),"onNodeCheck",function(l,s,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,h=d.halfCheckedKeys,g=r.props,v=g.checkStrictly,p=g.onCheck,y=s.key,b,C={event:"check",node:s,checked:u,nativeEvent:l.nativeEvent};if(v){var S=u?Ti(m,y):Ya(m,y),$=Ya(h,y);b={checked:S,halfChecked:$},C.checkedNodes=S.map(function(M){return ho(f,M)}).filter(function(M){return M}).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=ii([].concat(Te(m),[y]),!0,f),w=x.checkedKeys,O=x.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(y);var P=ii(Array.from(E),{checked:!1,halfCheckedKeys:O},f);w=P.checkedKeys,O=P.halfCheckedKeys}b=w,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,w.forEach(function(M){var D=ho(f,M);if(D){var R=D.node,_=D.pos;C.checkedNodes.push(R),C.checkedNodesPositions.push({node:R,pos:_})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}p==null||p(b,C)}),L(Ye(r),"onNodeLoad",function(l){var s=l.key,u=new Promise(function(d,f){r.setState(function(m){var h=m.loadedKeys,g=h===void 0?[]:h,v=m.loadingKeys,p=v===void 0?[]:v,y=r.props,b=y.loadData,C=y.onLoad;if(!b||g.indexOf(s)!==-1||p.indexOf(s)!==-1)return null;var S=b(l);return S.then(function(){var $=r.state.loadedKeys,x=Ti($,s);C==null||C(x,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(w){return{loadingKeys:Ya(w.loadingKeys,s)}}),d()}).catch(function($){if(r.setState(function(w){return{loadingKeys:Ya(w.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=ime){var x=r.state.loadedKeys;cn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ti(x,s)}),d()}f($)}),{loadingKeys:Ti(p,s)}})});return u.catch(function(){}),u}),L(Ye(r),"onNodeMouseEnter",function(l,s){var u=r.props.onMouseEnter;u==null||u({event:l,node:s})}),L(Ye(r),"onNodeMouseLeave",function(l,s){var u=r.props.onMouseLeave;u==null||u({event:l,node:s})}),L(Ye(r),"onNodeContextMenu",function(l,s){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:s}))}),L(Ye(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,u=new Array(s),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(h){if(h in r.props){f=!1;return}d=!0,m[h]=l[h]}),d&&(!s||f)&&r.setState(I(I({},m),u))}}),L(Ye(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Fn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,l=o.keyEntities,s=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,h=o.dropPosition,g=o.dragOverNodeKey,v=o.indent,p=this.props,y=p.prefixCls,b=p.className,C=p.style,S=p.showLine,$=p.focusable,x=p.tabIndex,w=x===void 0?0:x,O=p.selectable,E=p.showIcon,P=p.icon,M=p.switcherIcon,D=p.draggable,R=p.checkable,_=p.checkStrictly,T=p.disabled,k=p.motion,N=p.loadData,j=p.filterTreeNode,A=p.height,B=p.itemHeight,z=p.virtual,H=p.titleRender,V=p.dropIndicatorRender,U=p.onContextMenu,K=p.onScroll,Y=p.direction,G=p.rootClassName,q=p.rootStyle,J=Qn(this.props,{aria:!0,data:!0}),Q;return D&&(et(D)==="object"?Q=D:typeof D=="function"?Q={nodeDraggable:D}:Q={}),c.createElement(vw.Provider,{value:{prefixCls:y,selectable:O,showIcon:E,icon:P,switcherIcon:M,draggable:Q,draggingNodeKey:s,checkable:R,checkStrictly:_,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:h,dragOverNodeKey:g,indent:v,direction:Y,dropIndicatorRender:V,loadData:N,filterTreeNode:j,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:Z(y,b,G,L(L(L({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),u!==null)),style:q},c.createElement(X9,be({ref:this.listRef,prefixCls:y,style:C,data:i,disabled:T,selectable:O,checkable:!!R,motion:k,dragging:s!==null,height:A,itemHeight:B,virtual:z,focusable:$,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:K},this.getTreeNodeRequiredProps(),J))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l={prevProps:o};function s(x){return!i&&x in o||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(s("fieldNames")&&(d=hp(o.fieldNames),l.fieldNames=d),s("treeData")?u=o.treeData:s("children")&&(cn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=Sre(o.children)),u){l.treeData=u;var f=Z2(u,{fieldNames:d});l.keyEntities=I(L({},vs,Y9),f.keyEntities)}var m=l.keyEntities||a.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?mO(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var h=I({},m);delete h[vs],l.expandedKeys=Object.keys(h).map(function(x){return h[x].key})}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?mO(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var g=ob(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=g}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=fO(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=fO(o.defaultSelectedKeys,o))),o.checkable){var v;if(s("checkedKeys")?v=vb(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?v=vb(o.defaultCheckedKeys)||{}:u&&(v=vb(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var p=v,y=p.checkedKeys,b=y===void 0?[]:y,C=p.halfCheckedKeys,S=C===void 0?[]:C;if(!o.checkStrictly){var $=ii(b,!0,m);b=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=S}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);L(pw,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Zfe,allowDrop:function(){return!0},expandAction:!1});L(pw,"TreeNode",Nf);var lme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const sme=lme;var cme=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:sme}))},ume=c.forwardRef(cme);const dme=ume,fme=new kt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mme=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),vme=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),gme=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Wt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},cl(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:fme,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ae(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${ae(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},mme(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${ae(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${ae(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${ae(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${ae(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${ae(a)}`,userSelect:"none"},vme(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(a).div(2).equal())} !important`}}}}})}},pme=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},Q9=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=_t(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[gme(e,a),pme(a)]},Z9=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},hme=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Z9(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})};Ht("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:u0(`${n}-checkbox`,e)},Q9(n,e),Lh(e)]},hme);var yme={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const bme=yme;var Cme=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:bme}))},Sme=c.forwardRef(Cme);const xme=Sme;var wme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const $me=wme;var Eme=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:$me}))},Pme=c.forwardRef(Eme);const Ome=Pme;var Ime={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Mme=Ime;var Rme=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Mme}))},_me=c.forwardRef(Rme);const Tme=_me,Nme=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:i,loading:l}=r;if(l)return c.createElement(Cl,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),a){if(!o)return null;if(typeof s!="boolean"&&s){const f=typeof s=="function"?s(r):s,m=`${t}-switcher-line-custom-icon`;return c.isValidElement(f)?tr(f,{className:Z(f.props.className||"",m)}):f}return s?c.createElement(dme,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return c.isValidElement(d)?tr(d,{className:Z(d.props.className||"",u)}):d!==void 0?d:o?i?c.createElement(Ome,{className:`${t}-switcher-line-icon`}):c.createElement(Tme,{className:`${t}-switcher-line-icon`}):c.createElement(xme,{className:u})},jme=Nme,Dme=e=>{const t=e!=null&&e.algorithm?Kc(e.algorithm):Kc(nm),n=Object.assign(Object.assign({},Gc),e==null?void 0:e.token);return lR(n,{override:e==null?void 0:e.token},t,qx)},Fme=Dme;function kme(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Lme=(e,t)=>{const n=t??nm(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),kme(t??e)),NR(r)),{controlHeight:o}),_R(Object.assign(Object.assign({},n),{controlHeight:o})))},Ame=Lme,Xa=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),Vs=(e,t)=>new Jt(e).lighten(t).toHexString(),Bme=e=>{const t=Fa(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]}},zme=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Xa(r,.85),colorTextSecondary:Xa(r,.65),colorTextTertiary:Xa(r,.45),colorTextQuaternary:Xa(r,.25),colorFill:Xa(r,.18),colorFillSecondary:Xa(r,.12),colorFillTertiary:Xa(r,.08),colorFillQuaternary:Xa(r,.04),colorBgElevated:Vs(n,12),colorBgContainer:Vs(n,8),colorBgLayout:Vs(n,0),colorBgSpotlight:Vs(n,26),colorBgBlur:Xa(r,.04),colorBorder:Vs(n,26),colorBorderSecondary:Vs(n,19)}},Hme=(e,t)=>{const n=Object.keys(Kx).map(o=>{const a=Fa(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,s)=>(i[`${o}-${s+1}`]=a[s],i[`${o}${s+1}`]=a[s],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??nm(e);return Object.assign(Object.assign(Object.assign({},r),n),TR(e,{generateColorPalettes:Bme,generateNeutralColorPalettes:zme}))},Vme=Hme;function Wme(){const[e,t,n]=cr();return{theme:e,token:t,hashId:n}}const No={defaultConfig:$f,defaultSeed:$f.token,useToken:Wme,defaultAlgorithm:nm,darkAlgorithm:Vme,compactAlgorithm:Ame,getDesignToken:Fme};var Kme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oc.createElement(Gme,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Em=c.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r}=e,o=Kme(e,["addon","renderExtraFooter"]);const a=c.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return c.createElement(Ume,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:a}))}),J9=Sl(Em,"picker");Em._InternalPanelDoNotUseOrYouWillBeFired=J9;Em.RangePicker=qme;Em._InternalPanelDoNotUseOrYouWillBeFired=J9;const UC=Em,Yme=function(e){var t=c.useRef({valueLabels:new Map});return c.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(a){var i,l=a.value,s=(i=a.label)!==null&&i!==void 0?i:n.get(l);return r.set(l,s),I(I({},a),{},{label:s})});return t.current.valueLabels=r,[o]},[e])},Xme=function(e,t,n,r){return c.useMemo(function(){var o=e.map(function(s){var u=s.value;return u}),a=t.map(function(s){var u=s.value;return u}),i=o.filter(function(s){return!r[s]});if(n){var l=ii(o,!0,r);o=l.checkedKeys,a=l.halfCheckedKeys}return[Array.from(new Set([].concat(Te(i),Te(o)))),a]},[e,t,n,r])};function Qme(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Zme(e){var t=e||{},n=t.label,r=t.value,o=t.children,a=r||"value";return{_title:n?[n]:["title","label"],value:a,key:a,children:o||"children"}}function GC(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function Jme(e,t){var n=[];function r(o){o.forEach(function(a){var i=a[t.children];i&&(n.push(a[t.value]),r(i))})}return r(e),n}function bO(e){return e==null}const eve=function(e,t){return c.useMemo(function(){var n=Z2(e,{fieldNames:t,initWrapper:function(o){return I(I({},o),{},{valueEntities:new Map})},processEntity:function(o,a){var i=o.node[t.value];a.valueEntities.set(i,o)}});return n},[e,t])};var hw=function(){return null},tve=["children","value"];function ej(e){return sr(e).map(function(t){if(!c.isValidElement(t)||!t.type)return null;var n=t,r=n.key,o=n.props,a=o.children,i=o.value,l=ze(o,tve),s=I({key:r,value:i},l),u=ej(a);return u.length&&(s.children=u),s}).filter(function(t){return t})}function qC(e){if(!e)return e;var t=I({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function nve(e,t,n,r,o,a){var i=null,l=null;function s(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(h,g){var v="".concat(f,"-").concat(g),p=h[a.value],y=n.includes(p),b=u(h[a.children]||[],v,y),C=c.createElement(hw,h,b.map(function($){return $.node}));if(t===p&&(i=C),y){var S={pos:v,node:C,children:b};return m||l.push(S),S}return null}).filter(function(h){return h})}l||(l=[],u(r),l.sort(function(d,f){var m=d.node.props.value,h=f.node.props.value,g=n.indexOf(m),v=n.indexOf(h);return g-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return cn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return cn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),o?l:l.map(function(d){var f=d.node;return f})}})}const rve=function(e,t,n){var r=n.treeNodeFilterProp,o=n.filterTreeNode,a=n.fieldNames,i=a.children;return c.useMemo(function(){if(!t||o===!1)return e;var l;if(typeof o=="function")l=o;else{var s=t.toUpperCase();l=function(f,m){var h=m[r];return String(h).toUpperCase().includes(s)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(m,h){var g=h[i],v=f||l(t,qC(h)),p=u(g||[],v);return(v||p.length)&&m.push(I(I({},h),{},L({isLeaf:void 0},i,p))),m},[])}return u(e)},[e,t,i,r,o])};function CO(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function ove(e,t){var n=t.id,r=t.pId,o=t.rootPId,a={},i=[],l=e.map(function(s){var u=I({},s),d=u[n];return a[d]=u,u.key=u.key||d,u});return l.forEach(function(s){var u=s[r],d=a[u];d&&(d.children=d.children||[],d.children.push(s)),(u===o||!d&&o===null)&&i.push(s)}),i}function ave(e,t,n){return c.useMemo(function(){return e?n?ove(e,I({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:ej(t)},[t,n,e])}var tj=c.createContext(null),nj=c.createContext(null),ive={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},lve=function(t,n){var r=c2(),o=r.prefixCls,a=r.multiple,i=r.searchValue,l=r.toggleOpen,s=r.open,u=r.notFoundContent,d=c.useContext(nj),f=d.virtual,m=d.listHeight,h=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,p=d.fieldNames,y=d.onSelect,b=d.dropdownMatchSelectWidth,C=d.treeExpandAction,S=d.treeTitleRender,$=c.useContext(tj),x=$.checkable,w=$.checkedKeys,O=$.halfCheckedKeys,E=$.treeExpandedKeys,P=$.treeDefaultExpandAll,M=$.treeDefaultExpandedKeys,D=$.onTreeExpand,R=$.treeIcon,_=$.showTreeIcon,T=$.switcherIcon,k=$.treeLine,N=$.treeNodeFilterProp,j=$.loadData,A=$.treeLoadedKeys,B=$.treeMotion,z=$.onTreeLoad,H=$.keyEntities,V=c.useRef(),U=du(function(){return v},[s,v],function(Ce,Oe){return Oe[0]&&Ce[1]!==Oe[1]}),K=c.useState(null),Y=X(K,2),G=Y[0],q=Y[1],J=H[G],Q=c.useMemo(function(){return x?{checked:w,halfChecked:O}:null},[x,w,O]);c.useEffect(function(){if(s&&!a&&w.length){var Ce;(Ce=V.current)===null||Ce===void 0||Ce.scrollTo({key:w[0]}),q(w[0])}},[s]);var ne=String(i).toLowerCase(),re=function(Oe){return ne?String(Oe[N]).toLowerCase().includes(ne):!1},oe=c.useState(M),te=X(oe,2),ee=te[0],ie=te[1],de=c.useState(null),he=X(de,2),fe=he[0],le=he[1],me=c.useMemo(function(){return E?Te(E):i?fe:ee},[ee,fe,E,i]);c.useEffect(function(){i&&le(Jme(v,p))},[i]);var ye=function(Oe){ie(Oe),le(Oe),D&&D(Oe)},ge=function(Oe){Oe.preventDefault()},ve=function(Oe,Re){var Ee=Re.node;x&&GC(Ee)||(y(Ee.key,{selected:!w.includes(Ee.key)}),a||l(!1))};if(c.useImperativeHandle(n,function(){var Ce;return{scrollTo:(Ce=V.current)===null||Ce===void 0?void 0:Ce.scrollTo,onKeyDown:function(Re){var Ee,_e=Re.which;switch(_e){case Ie.UP:case Ie.DOWN:case Ie.LEFT:case Ie.RIGHT:(Ee=V.current)===null||Ee===void 0||Ee.onKeyDown(Re);break;case Ie.ENTER:{if(J){var Fe=(J==null?void 0:J.node)||{},qe=Fe.selectable,Ze=Fe.value;qe!==!1&&ve(null,{node:{key:G},selected:!w.includes(Ze)})}break}case Ie.ESC:l(!1)}},onKeyUp:function(){}}}),U.length===0)return c.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:ge},u);var $e={fieldNames:p};return A&&($e.loadedKeys=A),me&&($e.expandedKeys=me),c.createElement("div",{onMouseDown:ge},J&&s&&c.createElement("span",{style:ive,"aria-live":"assertive"},J.node.value),c.createElement(pw,be({ref:V,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:U,height:m,itemHeight:h,itemScrollOffset:g,virtual:f!==!1&&b!==!1,multiple:a,icon:R,showIcon:_,switcherIcon:T,showLine:k,loadData:i?null:j,motion:B,activeKey:G,checkable:x,checkStrictly:!0,checkedKeys:Q,selectedKeys:x?[]:w,defaultExpandAll:P,titleRender:S},$e,{onActiveChange:q,onSelect:ve,onCheck:ve,onExpand:ye,onLoad:z,filterTreeNode:re,expandAction:C})))},sve=c.forwardRef(lve),yw="SHOW_ALL",bw="SHOW_PARENT",h0="SHOW_CHILD";function SO(e,t,n,r){var o=new Set(e);return t===h0?e.filter(function(a){var i=n[a];return!(i&&i.children&&i.children.some(function(l){var s=l.node;return o.has(s[r.value])})&&i.children.every(function(l){var s=l.node;return GC(s)||o.has(s[r.value])}))}):t===bw?e.filter(function(a){var i=n[a],l=i?i.parent:null;return!(l&&!GC(l.node)&&o.has(l.key))}):e}var cve=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function uve(e){return!e||et(e)!=="object"}var dve=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tree-select":r,a=e.value,i=e.defaultValue,l=e.onChange,s=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,h=e.autoClearSearchValue,g=h===void 0?!0:h,v=e.filterTreeNode,p=e.treeNodeFilterProp,y=p===void 0?"value":p,b=e.showCheckedStrategy,C=e.treeNodeLabelProp,S=e.multiple,$=e.treeCheckable,x=e.treeCheckStrictly,w=e.labelInValue,O=e.fieldNames,E=e.treeDataSimpleMode,P=e.treeData,M=e.children,D=e.loadData,R=e.treeLoadedKeys,_=e.onTreeLoad,T=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,j=e.onTreeExpand,A=e.treeExpandAction,B=e.virtual,z=e.listHeight,H=z===void 0?200:z,V=e.listItemHeight,U=V===void 0?20:V,K=e.listItemScrollOffset,Y=K===void 0?0:K,G=e.onDropdownVisibleChange,q=e.dropdownMatchSelectWidth,J=q===void 0?!0:q,Q=e.treeLine,ne=e.treeIcon,re=e.showTreeIcon,oe=e.switcherIcon,te=e.treeMotion,ee=e.treeTitleRender,ie=ze(e,cve),de=g2(n),he=$&&!x,fe=$||x,le=x||w,me=fe||S,ye=Pt(i,{value:a}),ge=X(ye,2),ve=ge[0],$e=ge[1],Ce=c.useMemo(function(){return $?b||h0:yw},[b,$]),Oe=c.useMemo(function(){return Zme(O)},[JSON.stringify(O)]),Re=Pt("",{value:d!==void 0?d:f,postState:function(je){return je||""}}),Ee=X(Re,2),_e=Ee[0],Fe=Ee[1],qe=function(je){Fe(je),m==null||m(je)},Ze=ave(P,M,E),ke=eve(Ze,Oe),Be=ke.keyEntities,Ue=ke.valueEntities,Je=c.useCallback(function(Pe){var je=[],Ve=[];return Pe.forEach(function(tt){Ue.has(tt)?Ve.push(tt):je.push(tt)}),{missingRawValues:je,existRawValues:Ve}},[Ue]),nt=rve(Ze,_e,{fieldNames:Oe,treeNodeFilterProp:y,filterTreeNode:v}),mt=c.useCallback(function(Pe){if(Pe){if(C)return Pe[C];for(var je=Oe._title,Ve=0;Ve{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${ae(e.paddingXS)} ${ae(e.calc(e.paddingXS).div(2).equal())}`},Q9(n,_t(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},u0(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function mve(e,t,n){return Ht("TreeSelect",r=>{const o=_t(r,{treePrefixCls:t});return[fve(o)]},Z9)(e,n)}var vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,size:o,disabled:a,bordered:i=!0,className:l,rootClassName:s,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:m=26,placement:h,notFoundContent:g,switcherIcon:v,treeLine:p,getPopupContainer:y,popupClassName:b,dropdownClassName:C,treeIcon:S=!1,transitionName:$,choiceTransitionName:x="",status:w,treeExpandAction:O,builtinPlacements:E,dropdownMatchSelectWidth:P,popupMatchSelectWidth:M,allowClear:D,variant:R,dropdownStyle:_,tagRender:T}=e,k=vve(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:N,getPrefixCls:j,renderEmpty:A,direction:B,virtual:z,popupMatchSelectWidth:H,popupOverflow:V}=c.useContext(at),U=j(),K=j("select",r),Y=j("select-tree",r),G=j("tree-select",r),{compactSize:q,compactItemClassnames:J}=Va(K,B),Q=pn(K),ne=pn(G),[re,oe,te]=b2(K,Q),[ee]=mve(G,Y,ne),[ie,de]=wl(R,i),he=Z(b||C,`${G}-dropdown`,{[`${G}-dropdown-rtl`]:B==="rtl"},s,te,Q,ne,oe),fe=!!(u||d),le=C2(k.suffixIcon,k.showArrow),me=(n=M??P)!==null&&n!==void 0?n:H,{status:ye,hasFeedback:ge,isFormItemInput:ve,feedbackIcon:$e}=c.useContext(yr),Ce=xl(ye,w),{suffixIcon:Oe,removeIcon:Re,clearIcon:Ee}=Wh(Object.assign(Object.assign({},k),{multiple:fe,showSuffixIcon:le,hasFeedback:ge,feedbackIcon:$e,prefixCls:K,componentName:"TreeSelect"})),_e=D===!0?{clearIcon:Ee}:D;let Fe;g!==void 0?Fe=g:Fe=(A==null?void 0:A("Select"))||c.createElement(mm,{componentName:"Select"});const qe=gn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ze=c.useMemo(()=>h!==void 0?h:B==="rtl"?"bottomRight":"bottomLeft",[h,B]),ke=nr(yt=>{var It;return(It=o??q)!==null&&It!==void 0?It:yt}),Be=c.useContext(Kr),Ue=a??Be,Je=Z(!r&&G,{[`${K}-lg`]:ke==="large",[`${K}-sm`]:ke==="small",[`${K}-rtl`]:B==="rtl",[`${K}-${ie}`]:de,[`${K}-in-form-item`]:ve},ya(K,Ce,ge),J,l,s,te,Q,ne,oe),nt=yt=>c.createElement(jme,{prefixCls:Y,switcherIcon:v,treeNodeProps:yt,showLine:p}),[mt]=Uo("SelectLike",_==null?void 0:_.zIndex),gt=c.createElement(Pm,Object.assign({virtual:z,disabled:Ue},qe,{dropdownMatchSelectWidth:me,builtinPlacements:y2(E,V),ref:t,prefixCls:K,className:Je,listHeight:f,listItemHeight:m,treeCheckable:u&&c.createElement("span",{className:`${K}-tree-checkbox-inner`}),treeLine:!!p,suffixIcon:Oe,multiple:fe,placement:Ze,removeIcon:Re,allowClear:_e,switcherIcon:nt,showTreeIcon:S,notFoundContent:Fe,getPopupContainer:y||N,treeMotion:null,dropdownClassName:he,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:mt}),choiceTransitionName:$r(U,"",x),transitionName:$r(U,"slide-up",$),treeExpandAction:O,tagRender:fe?T:void 0}));return re(ee(gt))},pve=c.forwardRef(gve),ws=pve,hve=Sl(ws);ws.TreeNode=hw;ws.SHOW_ALL=yw;ws.SHOW_PARENT=bw;ws.SHOW_CHILD=h0;ws._InternalPanelDoNotUseOrYouWillBeFired=hve;const yve=ws;var bve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Cve=bve;var Sve=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Cve}))},xve=c.forwardRef(Sve);const wve=xve;/** - * @remix-run/router v1.15.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Zc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eve(){return Math.random().toString(36).substr(2,8)}function wO(e,t){return{usr:e.state,key:e.key,idx:t}}function jf(e,t,n,r){return n===void 0&&(n=null),Xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wi(t):t,{state:n,key:t&&t.key||r||Eve()})}function Om(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function wi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Pve(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Jn.Pop,s=null,u=d();u==null&&(u=0,i.replaceState(Xn({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Jn.Pop;let p=d(),y=p==null?null:p-u;u=p,s&&s({action:l,location:v.location,delta:y})}function m(p,y){l=Jn.Push;let b=jf(v.location,p,y);n&&n(b,p),u=d()+1;let C=wO(b,u),S=v.createHref(b);try{i.pushState(C,"",S)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(S)}a&&s&&s({action:l,location:v.location,delta:1})}function h(p,y){l=Jn.Replace;let b=jf(v.location,p,y);n&&n(b,p),u=d();let C=wO(b,u),S=v.createHref(b);i.replaceState(C,"",S),a&&s&&s({action:l,location:v.location,delta:0})}function g(p){let y=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof p=="string"?p:Om(p);return b=b.replace(/ $/,"%20"),tn(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let v={get action(){return l},get location(){return e(o,i)},listen(p){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(xO,f),s=p,()=>{o.removeEventListener(xO,f),s=null}},createHref(p){return t(o,p)},createURL:g,encodeLocation(p){let y=g(p);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:h,go(p){return i.go(p)}};return v}var qn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qn||(qn={}));const Ove=new Set(["lazy","caseSensitive","path","id","index","children"]);function Ive(e){return e.index===!0}function YC(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,a],l=typeof o.id=="string"?o.id:i.join("-");if(tn(o.index!==!0||!o.children,"Cannot specify children on an index route"),tn(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Ive(o)){let s=Xn({},o,t(o),{id:l});return r[l]=s,s}else{let s=Xn({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=YC(o.children,t,i,r)),s}})}function hc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?wi(t):t,o=Im(r.pathname||"/",n);if(o==null)return null;let a=rj(e);Rve(a);let i=null;for(let l=0;i==null&&l{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(tn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=il([r,s.relativePath]),d=n.concat(s);a.children&&a.children.length>0&&(tn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rj(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:kve(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of oj(a.path))o(a,i,s)}),t}function oj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=oj(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Rve(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lve(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _ve=/^:[\w-]+$/,Tve=3,Nve=2,jve=1,Dve=10,Fve=-2,$O=e=>e==="*";function kve(e,t){let n=e.split("/"),r=n.length;return n.some($O)&&(r+=Fve),t&&(r+=Nve),n.filter(o=>!$O(o)).reduce((o,a)=>o+(_ve.test(a)?Tve:a===""?jve:Dve),r)}function Lve(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ave(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i{let{paramName:m,isOptional:h}=d;if(m==="*"){let v=l[f]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return h&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function Bve(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Zc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function zve(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Im(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Hve(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?wi(e):e;return{pathname:n?n.startsWith("/")?n:Vve(n,t):t,search:Kve(r),hash:Uve(o)}}function Vve(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gb(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ij(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lj(e,t){let n=ij(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sj(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=wi(e):(o=Xn({},e),tn(!o.pathname||!o.pathname.includes("?"),gb("?","pathname","search",o)),tn(!o.pathname||!o.pathname.includes("#"),gb("#","pathname","hash",o)),tn(!o.search||!o.search.includes("#"),gb("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}l=f>=0?t[f]:"/"}let s=Hve(o,l),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const il=e=>e.join("/").replace(/\/\/+/g,"/"),Wve=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Kve=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Uve=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Cw{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function cj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uj=["post","put","patch","delete"],Gve=new Set(uj),qve=["get",...uj],Yve=new Set(qve),Xve=new Set([301,302,303,307,308]),Qve=new Set([307,308]),pb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zve={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jve=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),fj="remix-router-transitions";function ege(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;tn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ue=e.detectErrorBoundary;o=se=>({hasErrorBoundary:ue(se)})}else o=Jve;let a={},i=YC(e.routes,o,void 0,a),l,s=e.basename||"/",u=Xn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,m=null,h=null,g=null,v=e.hydrationData!=null,p=hc(i,e.history.location,s),y=null;if(p==null){let ue=To(404,{pathname:e.history.location.pathname}),{matches:se,route:pe}=TO(i);p=se,y={[pe.id]:ue}}let b,C=p.some(ue=>ue.route.lazy),S=p.some(ue=>ue.route.loader);if(C)b=!1;else if(!S)b=!0;else if(u.v7_partialHydration){let ue=e.hydrationData?e.hydrationData.loaderData:null,se=e.hydrationData?e.hydrationData.errors:null,pe=Se=>Se.route.loader?Se.route.loader.hydrate===!0?!1:ue&&ue[Se.route.id]!==void 0||se&&se[Se.route.id]!==void 0:!0;if(se){let Se=p.findIndex(xe=>se[xe.route.id]!==void 0);b=p.slice(0,Se+1).every(pe)}else b=p.every(pe)}else b=e.hydrationData!=null;let $,x={historyAction:e.history.action,location:e.history.location,matches:p,initialized:b,navigation:pb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},w=Jn.Pop,O=!1,E,P=!1,M=new Map,D=null,R=!1,_=!1,T=[],k=[],N=new Map,j=0,A=-1,B=new Map,z=new Set,H=new Map,V=new Map,U=new Set,K=new Map,Y=new Map,G=!1;function q(){if(d=e.history.listen(ue=>{let{action:se,location:pe,delta:Se}=ue;if(G){G=!1;return}Zc(Y.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let xe=Ue({currentLocation:x.location,nextLocation:pe,historyAction:se});if(xe&&Se!=null){G=!0,e.history.go(Se*-1),Be(xe,{state:"blocked",location:pe,proceed(){Be(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(Se)},reset(){let Ne=new Map(x.blockers);Ne.set(xe,dd),ne({blockers:Ne})}});return}return ee(se,pe)}),n){dge(t,M);let ue=()=>fge(t,M);t.addEventListener("pagehide",ue),D=()=>t.removeEventListener("pagehide",ue)}return x.initialized||ee(Jn.Pop,x.location,{initialHydration:!0}),$}function J(){d&&d(),D&&D(),f.clear(),E&&E.abort(),x.fetchers.forEach((ue,se)=>Oe(se)),x.blockers.forEach((ue,se)=>ke(se))}function Q(ue){return f.add(ue),()=>f.delete(ue)}function ne(ue,se){se===void 0&&(se={}),x=Xn({},x,ue);let pe=[],Se=[];u.v7_fetcherPersist&&x.fetchers.forEach((xe,Ne)=>{xe.state==="idle"&&(U.has(Ne)?Se.push(Ne):pe.push(Ne))}),[...f].forEach(xe=>xe(x,{deletedFetchers:Se,unstable_viewTransitionOpts:se.viewTransitionOpts,unstable_flushSync:se.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(xe=>x.fetchers.delete(xe)),Se.forEach(xe=>Oe(xe)))}function re(ue,se,pe){var Se,xe;let{flushSync:Ne}=pe===void 0?{}:pe,We=x.actionData!=null&&x.navigation.formMethod!=null&&aa(x.navigation.formMethod)&&x.navigation.state==="loading"&&((Se=ue.state)==null?void 0:Se._isRedirect)!==!0,He;se.actionData?Object.keys(se.actionData).length>0?He=se.actionData:He=null:We?He=x.actionData:He=null;let Me=se.loaderData?_O(x.loaderData,se.loaderData,se.matches||[],se.errors):x.loaderData,Le=x.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((it,ot)=>Le.set(ot,dd)));let Xe=O===!0||x.navigation.formMethod!=null&&aa(x.navigation.formMethod)&&((xe=ue.state)==null?void 0:xe._isRedirect)!==!0;l&&(i=l,l=void 0),R||w===Jn.Pop||(w===Jn.Push?e.history.push(ue,ue.state):w===Jn.Replace&&e.history.replace(ue,ue.state));let Ke;if(w===Jn.Pop){let it=M.get(x.location.pathname);it&&it.has(ue.pathname)?Ke={currentLocation:x.location,nextLocation:ue}:M.has(ue.pathname)&&(Ke={currentLocation:ue,nextLocation:x.location})}else if(P){let it=M.get(x.location.pathname);it?it.add(ue.pathname):(it=new Set([ue.pathname]),M.set(x.location.pathname,it)),Ke={currentLocation:x.location,nextLocation:ue}}ne(Xn({},se,{actionData:He,loaderData:Me,historyAction:w,location:ue,initialized:!0,navigation:pb,revalidation:"idle",restoreScrollPosition:yt(ue,se.matches||x.matches),preventScrollReset:Xe,blockers:Le}),{viewTransitionOpts:Ke,flushSync:Ne===!0}),w=Jn.Pop,O=!1,P=!1,R=!1,_=!1,T=[],k=[]}async function oe(ue,se){if(typeof ue=="number"){e.history.go(ue);return}let pe=XC(x.location,x.matches,s,u.v7_prependBasename,ue,u.v7_relativeSplatPath,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:Se,submission:xe,error:Ne}=EO(u.v7_normalizeFormMethod,!1,pe,se),We=x.location,He=jf(x.location,Se,se&&se.state);He=Xn({},He,e.history.encodeLocation(He));let Me=se&&se.replace!=null?se.replace:void 0,Le=Jn.Push;Me===!0?Le=Jn.Replace:Me===!1||xe!=null&&aa(xe.formMethod)&&xe.formAction===x.location.pathname+x.location.search&&(Le=Jn.Replace);let Xe=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,Ke=(se&&se.unstable_flushSync)===!0,it=Ue({currentLocation:We,nextLocation:He,historyAction:Le});if(it){Be(it,{state:"blocked",location:He,proceed(){Be(it,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),oe(ue,se)},reset(){let ot=new Map(x.blockers);ot.set(it,dd),ne({blockers:ot})}});return}return await ee(Le,He,{submission:xe,pendingError:Ne,preventScrollReset:Xe,replace:se&&se.replace,enableViewTransition:se&&se.unstable_viewTransition,flushSync:Ke})}function te(){if(ge(),ne({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ee(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ee(w||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ee(ue,se,pe){E&&E.abort(),E=null,w=ue,R=(pe&&pe.startUninterruptedRevalidation)===!0,gt(x.location,x.matches),O=(pe&&pe.preventScrollReset)===!0,P=(pe&&pe.enableViewTransition)===!0;let Se=l||i,xe=pe&&pe.overrideNavigation,Ne=hc(Se,se,s),We=(pe&&pe.flushSync)===!0;if(!Ne){let ot=To(404,{pathname:se.pathname}),{matches:Mt,route:Ct}=TO(Se);Je(),re(se,{matches:Mt,loaderData:{},errors:{[Ct.id]:ot}},{flushSync:We});return}if(x.initialized&&!_&&age(x.location,se)&&!(pe&&pe.submission&&aa(pe.submission.formMethod))){re(se,{matches:Ne},{flushSync:We});return}E=new AbortController;let He=md(e.history,se,E.signal,pe&&pe.submission),Me,Le;if(pe&&pe.pendingError)Le={[Zd(Ne).route.id]:pe.pendingError};else if(pe&&pe.submission&&aa(pe.submission.formMethod)){let ot=await ie(He,se,pe.submission,Ne,{replace:pe.replace,flushSync:We});if(ot.shortCircuited)return;Me=ot.pendingActionData,Le=ot.pendingActionError,xe=hb(se,pe.submission),We=!1,He=new Request(He.url,{signal:He.signal})}let{shortCircuited:Xe,loaderData:Ke,errors:it}=await de(He,se,Ne,xe,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,We,Me,Le);Xe||(E=null,re(se,Xn({matches:Ne},Me?{actionData:Me}:{},{loaderData:Ke,errors:it})))}async function ie(ue,se,pe,Se,xe){xe===void 0&&(xe={}),ge();let Ne=cge(se,pe);ne({navigation:Ne},{flushSync:xe.flushSync===!0});let We,He=ZC(Se,se);if(!He.route.action&&!He.route.lazy)We={type:qn.error,error:To(405,{method:ue.method,pathname:se.pathname,routeId:He.route.id})};else if(We=await fd("action",ue,He,Se,a,o,s,u.v7_relativeSplatPath),ue.signal.aborted)return{shortCircuited:!0};if(ql(We)){let Me;return xe&&xe.replace!=null?Me=xe.replace:Me=We.location===x.location.pathname+x.location.search,await me(x,We,{submission:pe,replace:Me}),{shortCircuited:!0}}if(yc(We)){let Me=Zd(Se,He.route.id);return(xe&&xe.replace)!==!0&&(w=Jn.Push),{pendingActionData:{},pendingActionError:{[Me.route.id]:We.error}}}if(Gl(We))throw To(400,{type:"defer-action"});return{pendingActionData:{[He.route.id]:We.data}}}async function de(ue,se,pe,Se,xe,Ne,We,He,Me,Le,Xe){let Ke=Se||hb(se,xe),it=xe||Ne||DO(Ke),ot=l||i,[Mt,Ct]=PO(e.history,x,pe,it,se,u.v7_partialHydration&&He===!0,_,T,k,U,H,z,ot,s,Le,Xe);if(Je(lt=>!(pe&&pe.some(ht=>ht.route.id===lt))||Mt&&Mt.some(ht=>ht.route.id===lt)),A=++j,Mt.length===0&&Ct.length===0){let lt=Fe();return re(se,Xn({matches:pe,loaderData:{},errors:Xe||null},Le?{actionData:Le}:{},lt?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Me}),{shortCircuited:!0}}if(!R&&(!u.v7_partialHydration||!He)){Ct.forEach(ht=>{let ft=x.fetchers.get(ht.key),Lt=vd(void 0,ft?ft.data:void 0);x.fetchers.set(ht.key,Lt)});let lt=Le||x.actionData;ne(Xn({navigation:Ke},lt?Object.keys(lt).length===0?{actionData:null}:{actionData:lt}:{},Ct.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Me})}Ct.forEach(lt=>{N.has(lt.key)&&Ee(lt.key),lt.controller&&N.set(lt.key,lt.controller)});let st=()=>Ct.forEach(lt=>Ee(lt.key));E&&E.signal.addEventListener("abort",st);let{results:Qe,loaderResults:Ae,fetcherResults:Pe}=await ye(x.matches,pe,Mt,Ct,ue);if(ue.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",st),Ct.forEach(lt=>N.delete(lt.key));let je=NO(Qe);if(je){if(je.idx>=Mt.length){let lt=Ct[je.idx-Mt.length].key;z.add(lt)}return await me(x,je.result,{replace:We}),{shortCircuited:!0}}let{loaderData:Ve,errors:tt}=RO(x,pe,Mt,Ae,Xe,Ct,Pe,K);K.forEach((lt,ht)=>{lt.subscribe(ft=>{(ft||lt.done)&&K.delete(ht)})}),u.v7_partialHydration&&He&&x.errors&&Object.entries(x.errors).filter(lt=>{let[ht]=lt;return!Mt.some(ft=>ft.route.id===ht)}).forEach(lt=>{let[ht,ft]=lt;tt=Object.assign(tt||{},{[ht]:ft})});let pt=Fe(),ut=qe(A),ct=pt||ut||Ct.length>0;return Xn({loaderData:Ve,errors:tt},ct?{fetchers:new Map(x.fetchers)}:{})}function he(ue,se,pe,Se){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(ue)&&Ee(ue);let xe=(Se&&Se.unstable_flushSync)===!0,Ne=l||i,We=XC(x.location,x.matches,s,u.v7_prependBasename,pe,u.v7_relativeSplatPath,se,Se==null?void 0:Se.relative),He=hc(Ne,We,s);if(!He){$e(ue,se,To(404,{pathname:We}),{flushSync:xe});return}let{path:Me,submission:Le,error:Xe}=EO(u.v7_normalizeFormMethod,!0,We,Se);if(Xe){$e(ue,se,Xe,{flushSync:xe});return}let Ke=ZC(He,Me);if(O=(Se&&Se.preventScrollReset)===!0,Le&&aa(Le.formMethod)){fe(ue,se,Me,Ke,He,xe,Le);return}H.set(ue,{routeId:se,path:Me}),le(ue,se,Me,Ke,He,xe,Le)}async function fe(ue,se,pe,Se,xe,Ne,We){if(ge(),H.delete(ue),!Se.route.action&&!Se.route.lazy){let ht=To(405,{method:We.formMethod,pathname:pe,routeId:se});$e(ue,se,ht,{flushSync:Ne});return}let He=x.fetchers.get(ue);ve(ue,uge(We,He),{flushSync:Ne});let Me=new AbortController,Le=md(e.history,pe,Me.signal,We);N.set(ue,Me);let Xe=j,Ke=await fd("action",Le,Se,xe,a,o,s,u.v7_relativeSplatPath);if(Le.signal.aborted){N.get(ue)===Me&&N.delete(ue);return}if(u.v7_fetcherPersist&&U.has(ue)){if(ql(Ke)||yc(Ke)){ve(ue,ji(void 0));return}}else{if(ql(Ke))if(N.delete(ue),A>Xe){ve(ue,ji(void 0));return}else return z.add(ue),ve(ue,vd(We)),me(x,Ke,{fetcherSubmission:We});if(yc(Ke)){$e(ue,se,Ke.error);return}}if(Gl(Ke))throw To(400,{type:"defer-action"});let it=x.navigation.location||x.location,ot=md(e.history,it,Me.signal),Mt=l||i,Ct=x.navigation.state!=="idle"?hc(Mt,x.navigation.location,s):x.matches;tn(Ct,"Didn't find any matches after fetcher action");let st=++j;B.set(ue,st);let Qe=vd(We,Ke.data);x.fetchers.set(ue,Qe);let[Ae,Pe]=PO(e.history,x,Ct,We,it,!1,_,T,k,U,H,z,Mt,s,{[Se.route.id]:Ke.data},void 0);Pe.filter(ht=>ht.key!==ue).forEach(ht=>{let ft=ht.key,Lt=x.fetchers.get(ft),Cn=vd(void 0,Lt?Lt.data:void 0);x.fetchers.set(ft,Cn),N.has(ft)&&Ee(ft),ht.controller&&N.set(ft,ht.controller)}),ne({fetchers:new Map(x.fetchers)});let je=()=>Pe.forEach(ht=>Ee(ht.key));Me.signal.addEventListener("abort",je);let{results:Ve,loaderResults:tt,fetcherResults:pt}=await ye(x.matches,Ct,Ae,Pe,ot);if(Me.signal.aborted)return;Me.signal.removeEventListener("abort",je),B.delete(ue),N.delete(ue),Pe.forEach(ht=>N.delete(ht.key));let ut=NO(Ve);if(ut){if(ut.idx>=Ae.length){let ht=Pe[ut.idx-Ae.length].key;z.add(ht)}return me(x,ut.result)}let{loaderData:ct,errors:lt}=RO(x,x.matches,Ae,tt,void 0,Pe,pt,K);if(x.fetchers.has(ue)){let ht=ji(Ke.data);x.fetchers.set(ue,ht)}qe(st),x.navigation.state==="loading"&&st>A?(tn(w,"Expected pending action"),E&&E.abort(),re(x.navigation.location,{matches:Ct,loaderData:ct,errors:lt,fetchers:new Map(x.fetchers)})):(ne({errors:lt,loaderData:_O(x.loaderData,ct,Ct,lt),fetchers:new Map(x.fetchers)}),_=!1)}async function le(ue,se,pe,Se,xe,Ne,We){let He=x.fetchers.get(ue);ve(ue,vd(We,He?He.data:void 0),{flushSync:Ne});let Me=new AbortController,Le=md(e.history,pe,Me.signal);N.set(ue,Me);let Xe=j,Ke=await fd("loader",Le,Se,xe,a,o,s,u.v7_relativeSplatPath);if(Gl(Ke)&&(Ke=await gj(Ke,Le.signal,!0)||Ke),N.get(ue)===Me&&N.delete(ue),!Le.signal.aborted){if(U.has(ue)){ve(ue,ji(void 0));return}if(ql(Ke))if(A>Xe){ve(ue,ji(void 0));return}else{z.add(ue),await me(x,Ke);return}if(yc(Ke)){$e(ue,se,Ke.error);return}tn(!Gl(Ke),"Unhandled fetcher deferred data"),ve(ue,ji(Ke.data))}}async function me(ue,se,pe){let{submission:Se,fetcherSubmission:xe,replace:Ne}=pe===void 0?{}:pe;se.revalidate&&(_=!0);let We=jf(ue.location,se.location,{_isRedirect:!0});if(tn(We,"Expected a location on the redirect navigation"),n){let it=!1;if(se.reloadDocument)it=!0;else if(dj.test(se.location)){const ot=e.history.createURL(se.location);it=ot.origin!==t.location.origin||Im(ot.pathname,s)==null}if(it){Ne?t.location.replace(se.location):t.location.assign(se.location);return}}E=null;let He=Ne===!0?Jn.Replace:Jn.Push,{formMethod:Me,formAction:Le,formEncType:Xe}=ue.navigation;!Se&&!xe&&Me&&Le&&Xe&&(Se=DO(ue.navigation));let Ke=Se||xe;if(Qve.has(se.status)&&Ke&&aa(Ke.formMethod))await ee(He,We,{submission:Xn({},Ke,{formAction:se.location}),preventScrollReset:O});else{let it=hb(We,Se);await ee(He,We,{overrideNavigation:it,fetcherSubmission:xe,preventScrollReset:O})}}async function ye(ue,se,pe,Se,xe){let Ne=await Promise.all([...pe.map(Me=>fd("loader",xe,Me,se,a,o,s,u.v7_relativeSplatPath)),...Se.map(Me=>Me.matches&&Me.match&&Me.controller?fd("loader",md(e.history,Me.path,Me.controller.signal),Me.match,Me.matches,a,o,s,u.v7_relativeSplatPath):{type:qn.error,error:To(404,{pathname:Me.path})})]),We=Ne.slice(0,pe.length),He=Ne.slice(pe.length);return await Promise.all([jO(ue,pe,We,We.map(()=>xe.signal),!1,x.loaderData),jO(ue,Se.map(Me=>Me.match),He,Se.map(Me=>Me.controller?Me.controller.signal:null),!0)]),{results:Ne,loaderResults:We,fetcherResults:He}}function ge(){_=!0,T.push(...Je()),H.forEach((ue,se)=>{N.has(se)&&(k.push(se),Ee(se))})}function ve(ue,se,pe){pe===void 0&&(pe={}),x.fetchers.set(ue,se),ne({fetchers:new Map(x.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function $e(ue,se,pe,Se){Se===void 0&&(Se={});let xe=Zd(x.matches,se);Oe(ue),ne({errors:{[xe.route.id]:pe},fetchers:new Map(x.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Ce(ue){return u.v7_fetcherPersist&&(V.set(ue,(V.get(ue)||0)+1),U.has(ue)&&U.delete(ue)),x.fetchers.get(ue)||Zve}function Oe(ue){let se=x.fetchers.get(ue);N.has(ue)&&!(se&&se.state==="loading"&&B.has(ue))&&Ee(ue),H.delete(ue),B.delete(ue),z.delete(ue),U.delete(ue),x.fetchers.delete(ue)}function Re(ue){if(u.v7_fetcherPersist){let se=(V.get(ue)||0)-1;se<=0?(V.delete(ue),U.add(ue)):V.set(ue,se)}else Oe(ue);ne({fetchers:new Map(x.fetchers)})}function Ee(ue){let se=N.get(ue);tn(se,"Expected fetch controller: "+ue),se.abort(),N.delete(ue)}function _e(ue){for(let se of ue){let pe=Ce(se),Se=ji(pe.data);x.fetchers.set(se,Se)}}function Fe(){let ue=[],se=!1;for(let pe of z){let Se=x.fetchers.get(pe);tn(Se,"Expected fetcher: "+pe),Se.state==="loading"&&(z.delete(pe),ue.push(pe),se=!0)}return _e(ue),se}function qe(ue){let se=[];for(let[pe,Se]of B)if(Se0}function Ze(ue,se){let pe=x.blockers.get(ue)||dd;return Y.get(ue)!==se&&Y.set(ue,se),pe}function ke(ue){x.blockers.delete(ue),Y.delete(ue)}function Be(ue,se){let pe=x.blockers.get(ue)||dd;tn(pe.state==="unblocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="proceeding"||pe.state==="blocked"&&se.state==="unblocked"||pe.state==="proceeding"&&se.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+se.state);let Se=new Map(x.blockers);Se.set(ue,se),ne({blockers:Se})}function Ue(ue){let{currentLocation:se,nextLocation:pe,historyAction:Se}=ue;if(Y.size===0)return;Y.size>1&&Zc(!1,"A router only supports one blocker at a time");let xe=Array.from(Y.entries()),[Ne,We]=xe[xe.length-1],He=x.blockers.get(Ne);if(!(He&&He.state==="proceeding")&&We({currentLocation:se,nextLocation:pe,historyAction:Se}))return Ne}function Je(ue){let se=[];return K.forEach((pe,Se)=>{(!ue||ue(Se))&&(pe.cancel(),se.push(Se),K.delete(Se))}),se}function nt(ue,se,pe){if(m=ue,g=se,h=pe||null,!v&&x.navigation===pb){v=!0;let Se=yt(x.location,x.matches);Se!=null&&ne({restoreScrollPosition:Se})}return()=>{m=null,g=null,h=null}}function mt(ue,se){return h&&h(ue,se.map(Se=>Mve(Se,x.loaderData)))||ue.key}function gt(ue,se){if(m&&g){let pe=mt(ue,se);m[pe]=g()}}function yt(ue,se){if(m){let pe=mt(ue,se),Se=m[pe];if(typeof Se=="number")return Se}return null}function It(ue){a={},l=YC(ue,o,void 0,a)}return $={get basename(){return s},get future(){return u},get state(){return x},get routes(){return i},get window(){return t},initialize:q,subscribe:Q,enableScrollRestoration:nt,navigate:oe,fetch:he,revalidate:te,createHref:ue=>e.history.createHref(ue),encodeLocation:ue=>e.history.encodeLocation(ue),getFetcher:Ce,deleteFetcher:Re,dispose:J,getBlocker:Ze,deleteBlocker:ke,_internalFetchControllers:N,_internalActiveDeferreds:K,_internalSetRoutes:It},$}function tge(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function XC(e,t,n,r,o,a,i,l){let s,u;if(i){s=[];for(let f of t)if(s.push(f),f.route.id===i){u=f;break}}else s=t,u=t[t.length-1];let d=sj(o||".",lj(s,a),Im(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Sw(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:il([n,d.pathname])),Om(d)}function EO(e,t,n,r){if(!r||!tge(r))return{path:n};if(r.formMethod&&!sge(r.formMethod))return{path:n,error:To(405,{method:r.formMethod})};let o=()=>({path:n,error:To(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),l=vj(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!aa(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,g)=>{let[v,p]=g;return""+h+v+"="+p+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!aa(i))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}tn(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=QC(r.formData),u=r.formData;else if(r.body instanceof FormData)s=QC(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=MO(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=MO(s)}catch{return o()}let d={formMethod:i,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(aa(d.formMethod))return{path:n,submission:d};let f=wi(n);return t&&f.search&&Sw(f.search)&&s.append("index",""),f.search="?"+s,{path:Om(f),submission:d}}function nge(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function PO(e,t,n,r,o,a,i,l,s,u,d,f,m,h,g,v){let p=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,y=e.createURL(t.location),b=e.createURL(o),C=v?Object.keys(v)[0]:void 0,$=nge(n,C).filter((w,O)=>{let{route:E}=w;if(E.lazy)return!0;if(E.loader==null)return!1;if(a)return E.loader.hydrate?!0:t.loaderData[E.id]===void 0&&(!t.errors||t.errors[E.id]===void 0);if(rge(t.loaderData,t.matches[O],w)||l.some(D=>D===w.route.id))return!0;let P=t.matches[O],M=w;return OO(w,Xn({currentUrl:y,currentParams:P.params,nextUrl:b,nextParams:M.params},r,{actionResult:p,defaultShouldRevalidate:i||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||mj(P,M)}))}),x=[];return d.forEach((w,O)=>{if(a||!n.some(R=>R.route.id===w.routeId)||u.has(O))return;let E=hc(m,w.path,h);if(!E){x.push({key:O,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get(O),M=ZC(E,w.path),D=!1;f.has(O)?D=!1:s.includes(O)?D=!0:P&&P.state!=="idle"&&P.data===void 0?D=i:D=OO(M,Xn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:i})),D&&x.push({key:O,routeId:w.routeId,path:w.path,matches:E,match:M,controller:new AbortController})}),[$,x]}function rge(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function mj(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function OO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function IO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];tn(o,"No route found in manifest");let a={};for(let i in r){let s=o[i]!==void 0&&i!=="hasErrorBoundary";Zc(!s,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!Ove.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,Xn({},t(o),{lazy:void 0}))}async function fd(e,t,n,r,o,a,i,l,s){s===void 0&&(s={});let u,d,f,m=v=>{let p,y=new Promise((b,C)=>p=C);return f=()=>p(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:s.requestContext}),y])};try{let v=n.route[e];if(n.route.lazy)if(v){let p,y=await Promise.all([m(v).catch(b=>{p=b}),IO(n.route,a,o)]);if(p)throw p;d=y[0]}else if(await IO(n.route,a,o),v=n.route[e],v)d=await m(v);else if(e==="action"){let p=new URL(t.url),y=p.pathname+p.search;throw To(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:qn.data,data:void 0};else if(v)d=await m(v);else{let p=new URL(t.url),y=p.pathname+p.search;throw To(404,{pathname:y})}tn(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){u=qn.error,d=v}finally{f&&t.signal.removeEventListener("abort",f)}if(lge(d)){let v=d.status;if(Xve.has(v)){let y=d.headers.get("Location");if(tn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!dj.test(y))y=XC(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,y,l);else if(!s.isStaticRequest){let b=new URL(t.url),C=y.startsWith("//")?new URL(b.protocol+y):new URL(y),S=Im(C.pathname,i)!=null;C.origin===b.origin&&S&&(y=C.pathname+C.search+C.hash)}if(s.isStaticRequest)throw d.headers.set("Location",y),d;return{type:qn.redirect,status:v,location:y,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===qn.error?qn.error:qn.data,response:d};let p;try{let y=d.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?d.body==null?p=null:p=await d.json():p=await d.text()}catch(y){return{type:qn.error,error:y}}return u===qn.error?{type:u,error:new Cw(v,d.statusText,p),headers:d.headers}:{type:qn.data,data:p,statusCode:d.status,headers:d.headers}}if(u===qn.error)return{type:u,error:d};if(ige(d)){var h,g;return{type:qn.deferred,deferredData:d,statusCode:(h=d.init)==null?void 0:h.status,headers:((g=d.init)==null?void 0:g.headers)&&new Headers(d.init.headers)}}return{type:qn.data,data:d}}function md(e,t,n,r){let o=e.createURL(vj(t)).toString(),a={signal:n};if(r&&aa(r.formMethod)){let{formMethod:i,formEncType:l}=r;a.method=i.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=QC(r.formData):a.body=r.formData}return new Request(o,a)}function QC(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function MO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function oge(e,t,n,r,o){let a={},i=null,l,s=!1,u={};return n.forEach((d,f)=>{let m=t[f].route.id;if(tn(!ql(d),"Cannot handle redirect results in processLoaderData"),yc(d)){let h=Zd(e,m),g=d.error;r&&(g=Object.values(r)[0],r=void 0),i=i||{},i[h.route.id]==null&&(i[h.route.id]=g),a[m]=void 0,s||(s=!0,l=cj(d.error)?d.error.status:500),d.headers&&(u[m]=d.headers)}else Gl(d)?(o.set(m,d.deferredData),a[m]=d.deferredData.data):a[m]=d.data,d.statusCode!=null&&d.statusCode!==200&&!s&&(l=d.statusCode),d.headers&&(u[m]=d.headers)}),r&&(i=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:i,statusCode:l||200,loaderHeaders:u}}function RO(e,t,n,r,o,a,i,l){let{loaderData:s,errors:u}=oge(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function TO(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function To(e,t){let{pathname:n,routeId:r,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",l='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Cw(e||500,i,new Error(l),!0)}function NO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ql(n))return{result:n,idx:t}}}function vj(e){let t=typeof e=="string"?wi(e):e;return Om(Xn({},t,{hash:""}))}function age(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Gl(e){return e.type===qn.deferred}function yc(e){return e.type===qn.error}function ql(e){return(e&&e.type)===qn.redirect}function ige(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function lge(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function sge(e){return Yve.has(e.toLowerCase())}function aa(e){return Gve.has(e.toLowerCase())}async function jO(e,t,n,r,o,a){for(let i=0;if.route.id===s.route.id),d=u!=null&&!mj(u,s)&&(a&&a[s.route.id])!==void 0;if(Gl(l)&&(o||d)){let f=r[i];tn(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await gj(l,f,o).then(m=>{m&&(n[i]=m||n[i])})}}}async function gj(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:qn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:qn.error,error:o}}return{type:qn.data,data:e.deferredData.data}}}function Sw(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ZC(e,t){let n=typeof t=="string"?wi(t).search:t.search;if(e[e.length-1].route.index&&Sw(n||""))return e[e.length-1];let r=ij(e);return r[r.length-1]}function DO(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function hb(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cge(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vd(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function uge(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ji(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function dge(e,t){try{let n=e.sessionStorage.getItem(fj);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function fge(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(fj,JSON.stringify(n))}catch(r){Zc(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),c.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=sj(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:il([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}const vge=c.createContext(null);function gge(e){let t=c.useContext($s).outlet;return t&&c.createElement(vge.Provider,{value:e},t)}function pge(e,t,n,r){S0()||tn(!1);let{navigator:o}=c.useContext(b0),{matches:a}=c.useContext($s),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=yj(),d;if(t){var f;let p=typeof t=="string"?wi(t):t;s==="/"||(f=p.pathname)!=null&&f.startsWith(s)||tn(!1),d=p}else d=u;let m=d.pathname||"/",h=m;if(s!=="/"){let p=s.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(p.length).join("/")}let g=hc(e,{pathname:h}),v=Sge(g&&g.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:il([s,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:il([s,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),a,n,r);return t&&v?c.createElement(C0.Provider,{value:{location:Df({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jn.Pop}},v):v}function hge(){let e=Ege(),t=cj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,null)}const yge=c.createElement(hge,null);class bge extends c.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?c.createElement($s.Provider,{value:this.props.routeContext},c.createElement(hj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cge(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(y0);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement($s.Provider,{value:t},r)}function Sge(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||tn(!1),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let h,g=!1,v=null,p=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||yge,s&&(u<0&&m===0?(Oge("route-fallback",!1),g=!0,p=null):u===m&&(g=!0,p=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),b=()=>{let C;return h?C=v:g?C=p:f.route.Component?C=c.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,c.createElement(Cge,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?c.createElement(bge,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var Cj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cj||{}),Ep=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ep||{});function xge(e){let t=c.useContext(y0);return t||tn(!1),t}function wge(e){let t=c.useContext(pj);return t||tn(!1),t}function $ge(e){let t=c.useContext($s);return t||tn(!1),t}function Sj(e){let t=$ge(),n=t.matches[t.matches.length-1];return n.route.id||tn(!1),n.route.id}function Ege(){var e;let t=c.useContext(hj),n=wge(Ep.UseRouteError),r=Sj(Ep.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Pge(){let{router:e}=xge(Cj.UseNavigateStable),t=Sj(Ep.UseNavigateStable),n=c.useRef(!1);return bj(()=>{n.current=!0}),c.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Df({fromRouteId:t},a)))},[e,t])}const FO={};function Oge(e,t,n){!t&&!FO[e]&&(FO[e]=!0)}function x0(e){return gge(e.context)}function Ige(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jn.Pop,navigator:a,static:i=!1,future:l}=e;S0()&&tn(!1);let s=t.replace(/^\/*/,"/"),u=c.useMemo(()=>({basename:s,navigator:a,static:i,future:Df({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=wi(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:g="default"}=r,v=c.useMemo(()=>{let p=Im(d,s);return p==null?null:{location:{pathname:p,search:f,hash:m,state:h,key:g},navigationType:o}},[s,d,f,m,h,g,o]);return v==null?null:c.createElement(b0.Provider,{value:u},c.createElement(C0.Provider,{children:n,value:v}))}new Promise(()=>{});function Mge(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:c.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:c.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:c.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Bge(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=c.useState(n.state),[i,l]=c.useState(),[s,u]=c.useState({isTransitioning:!1}),[d,f]=c.useState(),[m,h]=c.useState(),[g,v]=c.useState(),p=c.useRef(new Map),{v7_startTransition:y}=r||{},b=c.useCallback(w=>{y?Lge(w):w()},[y]),C=c.useCallback((w,O)=>{let{deletedFetchers:E,unstable_flushSync:P,unstable_viewTransitionOpts:M}=O;E.forEach(R=>p.current.delete(R)),w.fetchers.forEach((R,_)=>{R.data!==void 0&&p.current.set(_,R.data)});let D=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||D){P?gd(()=>a(w)):b(()=>a(w));return}if(P){gd(()=>{m&&(d&&d.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let R=n.window.document.startViewTransition(()=>{gd(()=>a(w))});R.finished.finally(()=>{gd(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),gd(()=>h(R));return}m?(d&&d.resolve(),m.skipTransition(),v({state:w,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,m,d,p,b]);c.useLayoutEffect(()=>n.subscribe(C),[n,C]),c.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new Age)},[s]),c.useEffect(()=>{if(d&&i&&n.window){let w=i,O=d.promise,E=n.window.document.startViewTransition(async()=>{b(()=>a(w)),await O});E.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(E)}},[b,i,d,n.window]),c.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,m,o.location,i]),c.useEffect(()=>{!s.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[s.isTransitioning,g]),c.useEffect(()=>{},[]);let S=c.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,O,E)=>n.navigate(w,{state:O,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(w,O,E)=>n.navigate(w,{replace:!0,state:O,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[n]),$=n.basename||"/",x=c.useMemo(()=>({router:n,navigator:S,static:!1,basename:$}),[n,S,$]);return c.createElement(c.Fragment,null,c.createElement(y0.Provider,{value:x},c.createElement(pj.Provider,{value:o},c.createElement(Dge.Provider,{value:p.current},c.createElement(jge.Provider,{value:s},c.createElement(Ige,{basename:$,location:o.location,navigationType:o.historyAction,navigator:S,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?c.createElement(zge,{routes:n.routes,future:n.future,state:o}):t))))),null)}function zge(e){let{routes:t,future:n,state:r}=e;return pge(t,void 0,r,n)}var AO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(AO||(AO={}));var BO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(BO||(BO={}));function Hge(){const e=Tu();return F.jsx("div",{style:{width:"100%",minHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:F.jsx(fw,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:F.jsxs(Cm,{gutter:50,justify:"center",children:[F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e(-1)},children:"返回上一页"})}),F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e("/")},children:"返回首页"})})]})})})}const Vge=Object.freeze(Object.defineProperty({__proto__:null,default:Hge},Symbol.toStringTag,{value:"Module"}));var Wge={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const Kge={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},xj=Kge,wj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Wge),timePickerLocale:Object.assign({},xj)};wj.lang.ok="确定";const zO=wj,mo="${label}不是一个有效的${type}",Uge={locale:"zh-cn",Pagination:j9,DatePicker:zO,TimePicker:xj,Calendar:zO,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:mo,method:mo,array:mo,object:mo,number:mo,date:mo,boolean:mo,integer:mo,float:mo,regexp:mo,email:mo,url:mo,hex:mo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}},Gge=Uge;var $j={exports:{}},Ej={};/** + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},cj=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",h=l(r).mul(3).sub(o).div(2).equal(),g=l(o).sub(r).div(2).equal(),v=t?{borderWidth:`${ae(g)} 0`,transform:`translateY(${ae(l(g).mul(-1).equal())})`}:{borderWidth:`0 ${ae(g)}`,transform:`translateX(${ae(e.calc(g).mul(-1).equal())})`};return{[s]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(a).div(2).equal()}}},Kme=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},cj(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ume=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},cj(e,!1)),{height:"100%"})}},Gme=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new Jt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},qme=Ht("Slider",e=>{const t=_t(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Wme(t),Kme(t),Ume(t)]},Gme);var Yme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const Qme=W.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m}=e,h=Yme(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:y}=W.useContext(at),b=W.useContext(Kr),C=l??b,[S,$]=W.useState({}),x=(N,j)=>{$(A=>Object.assign(Object.assign({},A),{[N]:j}))},w=(N,j)=>N||(j?g==="rtl"?"left":"right":"top"),O=p("slider",n),[E,P,M]=qme(O),D=Z(o,v==null?void 0:v.className,a,{[`${O}-rtl`]:g==="rtl"},P,M);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[R,_]=W.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),T=(N,j)=>{var A;const{index:B,dragging:z}=j,{tooltip:H={},vertical:V}=e,U=Object.assign({},H),{open:K,placement:Y,getPopupContainer:G,prefixCls:q,formatter:J}=U,Q=Xme(J,u),ne=Q?S[B]||z:!1,re=(A=K??d)!==null&&A!==void 0?A:K===void 0&&ne,oe=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>x(B,!0),onMouseLeave:()=>x(B,!1),onFocus:te=>{var ee;x(B,!0),(ee=h.onFocus)===null||ee===void 0||ee.call(h,te)},onBlur:te=>{var ee;x(B,!1),(ee=h.onBlur)===null||ee===void 0||ee.call(h,te)}});return W.createElement(Vme,Object.assign({},U,{prefixCls:p("tooltip",q??s),title:Q?Q(j.value):"",open:re,placement:w(Y??m,V),key:B,overlayClassName:`${O}-tooltip`,getPopupContainer:G||f||y}),W.cloneElement(N,oe))},k=Object.assign(Object.assign({},v==null?void 0:v.style),i);return E(W.createElement(zme,Object.assign({},h,{step:h.step,range:R,draggableTrack:_,className:D,style:k,disabled:C,ref:t,prefixCls:O,handleRender:T})))}),Zme=Qme;var Jme=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],uj=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,h=e.onChange,g=e.onKeyDown,v=ze(e,Jme),p=Pt(!1,{value:i,defaultValue:l}),y=X(p,2),b=y[0],C=y[1];function S(O,E){var P=b;return s||(P=O,C(P),h==null||h(P,E)),P}function $(O){O.which===Ie.LEFT?S(!1,O):O.which===Ie.RIGHT&&S(!0,O),g==null||g(O)}function x(O){var E=S(!b,O);m==null||m(E,O)}var w=Z(o,a,(n={},L(n,"".concat(o,"-checked"),b),L(n,"".concat(o,"-disabled"),s),n));return c.createElement("button",be({},v,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:$,onClick:x}),u,c.createElement("span",{className:"".concat(o,"-inner")},c.createElement("span",{className:"".concat(o,"-inner-checked")},d),c.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});uj.displayName="Switch";const eve=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,d=ae(s(l).add(s(r).mul(2)).equal()),f=ae(s(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ae(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ae(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},tve=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},nve=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ae(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},rve=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,s=`${t}-inner`,u=ae(l(i).add(l(r).mul(2)).equal()),d=ae(l(a).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},ove=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${ae(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ha(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"}})}},ave=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,s=a-l*2,u=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},ive=Ht("Switch",e=>{const t=_t(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ove(t),rve(t),nve(t),tve(t),eve(t)]},ave);var lve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:s,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:h}=e,g=lve(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,p]=Pt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:y,direction:b,switch:C}=c.useContext(at),S=c.useContext(Kr),$=(o??S)||a,x=y("switch",n),w=c.createElement("div",{className:`${x}-handle`},a&&c.createElement(Cl,{className:`${x}-loading-icon`})),[O,E,P]=ive(x),M=nr(r),D=Z(C==null?void 0:C.className,{[`${x}-small`]:M==="small",[`${x}-loading`]:a,[`${x}-rtl`]:b==="rtl"},i,l,E,P),R=Object.assign(Object.assign({},C==null?void 0:C.style),s),_=function(){p(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return O(c.createElement(Fh,{component:"Switch"},c.createElement(uj,Object.assign({},g,{checked:v,onChange:_,prefixCls:x,className:D,style:R,disabled:$,ref:t,loadingIcon:w}))))});dj.__ANT_SWITCH=!0;const Mc=dj;var pw=c.createContext(null),sve=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),l=[],s=0;s=0&&n.splice(r,1),n}function Ti(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function hw(e){return e.split("-")}function mve(e,t){var n=[],r=ho(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var l=i.key,s=i.children;n.push(l),o(s)})}return o(r.children),n}function vve(e){if(e.parent){var t=hw(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function gve(e){var t=hw(e.pos);return Number(t[t.length-1])===0}function RO(e,t,n,r,o,a,i,l,s,u){var d,f=e.clientX,m=e.clientY,h=e.target.getBoundingClientRect(),g=h.top,v=h.height,p=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),y=(p-12)/r,b=s.filter(function(k){var N;return(N=l[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),C=ho(l,n.props.eventKey);if(m-1.5?a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1:a({dragNode:R,dropNode:_,dropPosition:0})?P=0:a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1:a({dragNode:R,dropNode:_,dropPosition:1})?P=1:T=!1,{dropPosition:P,dropLevelOffset:M,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:E,dropContainerKey:P===0?null:((d=C.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:T}}function _O(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function hb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(et(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return cn(!1,"`checkedKeys` is not an array or an object"),null;return t}function TO(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=ho(t,o);if(a){n.add(o);var i=a.parent,l=a.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),Te(n)}function pve(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return c.createElement("div",{style:o})}function fj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function hve(e,t){var n=c.useState(!1),r=X(n,2),o=r[0],a=r[1];Kt(function(){if(o)return e(),function(){t()}},[o]),Kt(function(){return a(!0),function(){a(!1)}},[])}var yve=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],mj=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,l=t.motionType,s=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=ze(t,yve),h=c.useState(!0),g=X(h,2),v=g[0],p=g[1],y=c.useContext(pw),b=y.prefixCls,C=i&&l!=="hide";Kt(function(){i&&C!==v&&p(C)},[i]);var S=function(){i&&s()},$=c.useRef(!1),x=function(){i&&!$.current&&($.current=!0,u())};hve(S,x);var w=function(E){C===E&&x()};return i?c.createElement(wr,be({ref:n,visible:v},a,{motionAppear:l==="show",onVisibleChanged:w}),function(O,E){var P=O.className,M=O.style;return c.createElement("div",{ref:E,className:Z("".concat(b,"-treenode-motion"),P),style:M},i.map(function(D){var R=Object.assign({},(fj(D.data),D.data)),_=D.title,T=D.key,k=D.isStart,N=D.isEnd;delete R.children;var j=Qd(T,f);return c.createElement(Df,be({},R,j,{title:_,active:d,data:D.data,key:T,isStart:k,isEnd:N}))}))}):c.createElement(Df,be({domRef:n,className:r,style:o},m,{active:d}))};mj.displayName="MotionTreeNode";var bve=c.forwardRef(mj);function Cve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var l=new Map;a.forEach(function(u){l.set(u,!0)});var s=i.filter(function(u){return!l.has(u)});return s.length===1?s[0]:null}return n ").concat(t);return t}var gj=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,v=e.motion,p=e.height,y=e.itemHeight,b=e.virtual,C=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,w=e.onKeyDown,O=e.onFocus,E=e.onBlur,P=e.onActiveChange,M=e.onListChangeStart,D=e.onListChangeEnd,R=ze(e,Sve),_=c.useRef(null),T=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(me){_.current.scrollTo(me)},getIndentWidth:function(){return T.current.offsetWidth}}});var k=c.useState(o),N=X(k,2),j=N[0],A=N[1],B=c.useState(r),z=X(B,2),H=z[0],V=z[1],U=c.useState(r),K=X(U,2),Y=K[0],G=K[1],q=c.useState([]),J=X(q,2),Q=J[0],ne=J[1],re=c.useState(null),oe=X(re,2),te=oe[0],ee=oe[1],ie=c.useRef(r);ie.current=r;function de(){var le=ie.current;V(le),G(le),ne([]),ee(null),D()}Kt(function(){A(o);var le=Cve(j,o);if(le.key!==null)if(le.add){var me=H.findIndex(function(Oe){var Re=Oe.key;return Re===le.key}),ye=FO(NO(H,r,le.key),b,p,y),ge=H.slice();ge.splice(me+1,0,DO),G(ge),ne(ye),ee("show")}else{var ve=r.findIndex(function(Oe){var Re=Oe.key;return Re===le.key}),$e=FO(NO(r,H,le.key),b,p,y),Ce=r.slice();Ce.splice(ve+1,0,DO),G(Ce),ne($e),ee("hide")}else H!==r&&(V(r),G(r))},[o,r]),c.useEffect(function(){m||de()},[m]);var he=v?Y:r,fe={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:s,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return c.createElement(c.Fragment,null,$&&S&&c.createElement("span",{style:jO,"aria-live":"assertive"},wve(S)),c.createElement("div",null,c.createElement("input",{style:jO,disabled:C===!1||f,tabIndex:C!==!1?x:null,onKeyDown:w,onFocus:O,onBlur:E,value:"",onChange:xve,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),c.createElement(p2,be({},R,{data:he,itemKey:kO,height:p,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:_,onVisibleChange:function(me,ye){var ge=new Set(me),ve=ye.filter(function($e){return!ge.has($e)});ve.some(function($e){return kO($e)===vs})&&de()}}),function(le){var me=le.pos,ye=Object.assign({},(fj(le.data),le.data)),ge=le.title,ve=le.key,$e=le.isStart,Ce=le.isEnd,Oe=Cm(ve,me);delete ye.key,delete ye.children;var Re=Qd(Oe,fe);return c.createElement(bve,be({},ye,Re,{title:ge,active:!!S&&ve===S.key,pos:me,data:le.data,isStart:$e,isEnd:Ce,motion:v,motionNodes:ve===vs?Q:null,motionType:te,onMotionStart:M,onMotionEnd:de,treeNodeRequiredProps:fe,onMouseMove:function(){P(null)}}))}))});gj.displayName="NodeList";var $ve=10,yw=function(e){Ko(n,e);var t=xi(n);function n(){var r;Dn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,h=f.dropPosition,g=f.dropTargetKey,v=f.dropTargetPos,p=f.dropAllowed;if(p){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var b=I(I({},Qd(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:ho(r.state.keyEntities,g).node}),C=m.indexOf(g)!==-1;cn(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=hw(v),$={event:l,node:rr(b),dragNode:r.dragNode?rr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};d||y==null||y($),r.dragNode=null}}}),L(Ye(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),L(Ye(r),"triggerExpandActionExpand",function(l,s){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=s.expanded,h=s.key,g=s.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var v=f.filter(function(y){return y.key===h})[0],p=rr(I(I({},Qd(h,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(m?Ya(d,h):Ti(d,h)),r.onNodeExpand(l,p)}}),L(Ye(r),"onNodeClick",function(l,s){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),L(Ye(r),"onNodeDoubleClick",function(l,s){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),L(Ye(r),"onNodeSelect",function(l,s){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,h=r.props,g=h.onSelect,v=h.multiple,p=s.selected,y=s[m.key],b=!p;b?v?u=Ti(u,y):u=[y]:u=Ya(u,y);var C=u.map(function(S){var $=ho(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:b,node:s,selectedNodes:C,nativeEvent:l.nativeEvent})}),L(Ye(r),"onNodeCheck",function(l,s,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,h=d.halfCheckedKeys,g=r.props,v=g.checkStrictly,p=g.onCheck,y=s.key,b,C={event:"check",node:s,checked:u,nativeEvent:l.nativeEvent};if(v){var S=u?Ti(m,y):Ya(m,y),$=Ya(h,y);b={checked:S,halfChecked:$},C.checkedNodes=S.map(function(M){return ho(f,M)}).filter(function(M){return M}).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=ii([].concat(Te(m),[y]),!0,f),w=x.checkedKeys,O=x.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(y);var P=ii(Array.from(E),{checked:!1,halfCheckedKeys:O},f);w=P.checkedKeys,O=P.halfCheckedKeys}b=w,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,w.forEach(function(M){var D=ho(f,M);if(D){var R=D.node,_=D.pos;C.checkedNodes.push(R),C.checkedNodesPositions.push({node:R,pos:_})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}p==null||p(b,C)}),L(Ye(r),"onNodeLoad",function(l){var s=l.key,u=new Promise(function(d,f){r.setState(function(m){var h=m.loadedKeys,g=h===void 0?[]:h,v=m.loadingKeys,p=v===void 0?[]:v,y=r.props,b=y.loadData,C=y.onLoad;if(!b||g.indexOf(s)!==-1||p.indexOf(s)!==-1)return null;var S=b(l);return S.then(function(){var $=r.state.loadedKeys,x=Ti($,s);C==null||C(x,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(w){return{loadingKeys:Ya(w.loadingKeys,s)}}),d()}).catch(function($){if(r.setState(function(w){return{loadingKeys:Ya(w.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=$ve){var x=r.state.loadedKeys;cn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ti(x,s)}),d()}f($)}),{loadingKeys:Ti(p,s)}})});return u.catch(function(){}),u}),L(Ye(r),"onNodeMouseEnter",function(l,s){var u=r.props.onMouseEnter;u==null||u({event:l,node:s})}),L(Ye(r),"onNodeMouseLeave",function(l,s){var u=r.props.onMouseLeave;u==null||u({event:l,node:s})}),L(Ye(r),"onNodeContextMenu",function(l,s){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:s}))}),L(Ye(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,u=new Array(s),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(h){if(h in r.props){f=!1;return}d=!0,m[h]=l[h]}),d&&(!s||f)&&r.setState(I(I({},m),u))}}),L(Ye(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Fn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,l=o.keyEntities,s=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,h=o.dropPosition,g=o.dragOverNodeKey,v=o.indent,p=this.props,y=p.prefixCls,b=p.className,C=p.style,S=p.showLine,$=p.focusable,x=p.tabIndex,w=x===void 0?0:x,O=p.selectable,E=p.showIcon,P=p.icon,M=p.switcherIcon,D=p.draggable,R=p.checkable,_=p.checkStrictly,T=p.disabled,k=p.motion,N=p.loadData,j=p.filterTreeNode,A=p.height,B=p.itemHeight,z=p.virtual,H=p.titleRender,V=p.dropIndicatorRender,U=p.onContextMenu,K=p.onScroll,Y=p.direction,G=p.rootClassName,q=p.rootStyle,J=Qn(this.props,{aria:!0,data:!0}),Q;return D&&(et(D)==="object"?Q=D:typeof D=="function"?Q={nodeDraggable:D}:Q={}),c.createElement(pw.Provider,{value:{prefixCls:y,selectable:O,showIcon:E,icon:P,switcherIcon:M,draggable:Q,draggingNodeKey:s,checkable:R,checkStrictly:_,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:h,dragOverNodeKey:g,indent:v,direction:Y,dropIndicatorRender:V,loadData:N,filterTreeNode:j,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:Z(y,b,G,L(L(L({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),u!==null)),style:q},c.createElement(gj,be({ref:this.listRef,prefixCls:y,style:C,data:i,disabled:T,selectable:O,checkable:!!R,motion:k,dragging:s!==null,height:A,itemHeight:B,virtual:z,focusable:$,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:K},this.getTreeNodeRequiredProps(),J))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l={prevProps:o};function s(x){return!i&&x in o||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(s("fieldNames")&&(d=bp(o.fieldNames),l.fieldNames=d),s("treeData")?u=o.treeData:s("children")&&(cn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=Aoe(o.children)),u){l.treeData=u;var f=ew(u,{fieldNames:d});l.keyEntities=I(L({},vs,vj),f.keyEntities)}var m=l.keyEntities||a.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?TO(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var h=I({},m);delete h[vs],l.expandedKeys=Object.keys(h).map(function(x){return h[x].key})}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?TO(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var g=lb(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=g}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=_O(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=_O(o.defaultSelectedKeys,o))),o.checkable){var v;if(s("checkedKeys")?v=hb(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?v=hb(o.defaultCheckedKeys)||{}:u&&(v=hb(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var p=v,y=p.checkedKeys,b=y===void 0?[]:y,C=p.halfCheckedKeys,S=C===void 0?[]:C;if(!o.checkStrictly){var $=ii(b,!0,m);b=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=S}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);L(yw,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:pve,allowDrop:function(){return!0},expandAction:!1});L(yw,"TreeNode",Df);var Eve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Pve=Eve;var Ove=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Pve}))},Ive=c.forwardRef(Ove);const Mve=Ive,Rve=new kt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),_ve=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Tve=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Nve=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Wt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},cl(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Rve,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ae(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${ae(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},_ve(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${ae(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${ae(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${ae(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${ae(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${ae(a)}`,userSelect:"none"},Tve(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(a).div(2).equal())} !important`}}}}})}},jve=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},pj=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=_t(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[Nve(e,a),jve(a)]},hj=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Dve=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},hj(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})};Ht("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:g0(`${n}-checkbox`,e)},pj(n,e),Vh(e)]},Dve);var Fve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const kve=Fve;var Lve=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:kve}))},Ave=c.forwardRef(Lve);const Bve=Ave;var zve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const Hve=zve;var Vve=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Hve}))},Wve=c.forwardRef(Vve);const Kve=Wve;var Uve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Gve=Uve;var qve=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Gve}))},Yve=c.forwardRef(qve);const Xve=Yve,Qve=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:i,loading:l}=r;if(l)return c.createElement(Cl,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),a){if(!o)return null;if(typeof s!="boolean"&&s){const f=typeof s=="function"?s(r):s,m=`${t}-switcher-line-custom-icon`;return c.isValidElement(f)?tr(f,{className:Z(f.props.className||"",m)}):f}return s?c.createElement(Mve,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return c.isValidElement(d)?tr(d,{className:Z(d.props.className||"",u)}):d!==void 0?d:o?i?c.createElement(Kve,{className:`${t}-switcher-line-icon`}):c.createElement(Xve,{className:`${t}-switcher-line-icon`}):c.createElement(Bve,{className:u})},Zve=Qve,Jve=e=>{const t=e!=null&&e.algorithm?Uc(e.algorithm):Uc(om),n=Object.assign(Object.assign({},qc),e==null?void 0:e.token);return PR(n,{override:e==null?void 0:e.token},t,Xx)},ege=Jve;function tge(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const nge=(e,t)=>{const n=t??om(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),tge(t??e)),ZR(r)),{controlHeight:o}),XR(Object.assign(Object.assign({},n),{controlHeight:o})))},rge=nge,Xa=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),Vs=(e,t)=>new Jt(e).lighten(t).toHexString(),oge=e=>{const t=Fa(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]}},age=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Xa(r,.85),colorTextSecondary:Xa(r,.65),colorTextTertiary:Xa(r,.45),colorTextQuaternary:Xa(r,.25),colorFill:Xa(r,.18),colorFillSecondary:Xa(r,.12),colorFillTertiary:Xa(r,.08),colorFillQuaternary:Xa(r,.04),colorBgElevated:Vs(n,12),colorBgContainer:Vs(n,8),colorBgLayout:Vs(n,0),colorBgSpotlight:Vs(n,26),colorBgBlur:Xa(r,.04),colorBorder:Vs(n,26),colorBorderSecondary:Vs(n,19)}},ige=(e,t)=>{const n=Object.keys(Gx).map(o=>{const a=Fa(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,s)=>(i[`${o}-${s+1}`]=a[s],i[`${o}${s+1}`]=a[s],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??om(e);return Object.assign(Object.assign(Object.assign({},r),n),QR(e,{generateColorPalettes:oge,generateNeutralColorPalettes:age}))},lge=ige;function sge(){const[e,t,n]=cr();return{theme:e,token:t,hashId:n}}const No={defaultConfig:Pf,defaultSeed:Pf.token,useToken:sge,defaultAlgorithm:om,darkAlgorithm:lge,compactAlgorithm:rge,getDesignToken:ege};var cge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oc.createElement(dge,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Om=c.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r}=e,o=cge(e,["addon","renderExtraFooter"]);const a=c.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return c.createElement(uge,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:a}))}),yj=Sl(Om,"picker");Om._InternalPanelDoNotUseOrYouWillBeFired=yj;Om.RangePicker=fge;Om._InternalPanelDoNotUseOrYouWillBeFired=yj;const XC=Om,mge=function(e){var t=c.useRef({valueLabels:new Map});return c.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(a){var i,l=a.value,s=(i=a.label)!==null&&i!==void 0?i:n.get(l);return r.set(l,s),I(I({},a),{},{label:s})});return t.current.valueLabels=r,[o]},[e])},vge=function(e,t,n,r){return c.useMemo(function(){var o=e.map(function(s){var u=s.value;return u}),a=t.map(function(s){var u=s.value;return u}),i=o.filter(function(s){return!r[s]});if(n){var l=ii(o,!0,r);o=l.checkedKeys,a=l.halfCheckedKeys}return[Array.from(new Set([].concat(Te(i),Te(o)))),a]},[e,t,n,r])};function gge(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function pge(e){var t=e||{},n=t.label,r=t.value,o=t.children,a=r||"value";return{_title:n?[n]:["title","label"],value:a,key:a,children:o||"children"}}function QC(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function hge(e,t){var n=[];function r(o){o.forEach(function(a){var i=a[t.children];i&&(n.push(a[t.value]),r(i))})}return r(e),n}function LO(e){return e==null}const yge=function(e,t){return c.useMemo(function(){var n=ew(e,{fieldNames:t,initWrapper:function(o){return I(I({},o),{},{valueEntities:new Map})},processEntity:function(o,a){var i=o.node[t.value];a.valueEntities.set(i,o)}});return n},[e,t])};var bw=function(){return null},bge=["children","value"];function bj(e){return sr(e).map(function(t){if(!c.isValidElement(t)||!t.type)return null;var n=t,r=n.key,o=n.props,a=o.children,i=o.value,l=ze(o,bge),s=I({key:r,value:i},l),u=bj(a);return u.length&&(s.children=u),s}).filter(function(t){return t})}function ZC(e){if(!e)return e;var t=I({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Cge(e,t,n,r,o,a){var i=null,l=null;function s(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(h,g){var v="".concat(f,"-").concat(g),p=h[a.value],y=n.includes(p),b=u(h[a.children]||[],v,y),C=c.createElement(bw,h,b.map(function($){return $.node}));if(t===p&&(i=C),y){var S={pos:v,node:C,children:b};return m||l.push(S),S}return null}).filter(function(h){return h})}l||(l=[],u(r),l.sort(function(d,f){var m=d.node.props.value,h=f.node.props.value,g=n.indexOf(m),v=n.indexOf(h);return g-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return cn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return cn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),o?l:l.map(function(d){var f=d.node;return f})}})}const Sge=function(e,t,n){var r=n.treeNodeFilterProp,o=n.filterTreeNode,a=n.fieldNames,i=a.children;return c.useMemo(function(){if(!t||o===!1)return e;var l;if(typeof o=="function")l=o;else{var s=t.toUpperCase();l=function(f,m){var h=m[r];return String(h).toUpperCase().includes(s)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(m,h){var g=h[i],v=f||l(t,ZC(h)),p=u(g||[],v);return(v||p.length)&&m.push(I(I({},h),{},L({isLeaf:void 0},i,p))),m},[])}return u(e)},[e,t,i,r,o])};function AO(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function xge(e,t){var n=t.id,r=t.pId,o=t.rootPId,a={},i=[],l=e.map(function(s){var u=I({},s),d=u[n];return a[d]=u,u.key=u.key||d,u});return l.forEach(function(s){var u=s[r],d=a[u];d&&(d.children=d.children||[],d.children.push(s)),(u===o||!d&&o===null)&&i.push(s)}),i}function wge(e,t,n){return c.useMemo(function(){return e?n?xge(e,I({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:bj(t)},[t,n,e])}var Cj=c.createContext(null),Sj=c.createContext(null),$ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ege=function(t,n){var r=d2(),o=r.prefixCls,a=r.multiple,i=r.searchValue,l=r.toggleOpen,s=r.open,u=r.notFoundContent,d=c.useContext(Sj),f=d.virtual,m=d.listHeight,h=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,p=d.fieldNames,y=d.onSelect,b=d.dropdownMatchSelectWidth,C=d.treeExpandAction,S=d.treeTitleRender,$=c.useContext(Cj),x=$.checkable,w=$.checkedKeys,O=$.halfCheckedKeys,E=$.treeExpandedKeys,P=$.treeDefaultExpandAll,M=$.treeDefaultExpandedKeys,D=$.onTreeExpand,R=$.treeIcon,_=$.showTreeIcon,T=$.switcherIcon,k=$.treeLine,N=$.treeNodeFilterProp,j=$.loadData,A=$.treeLoadedKeys,B=$.treeMotion,z=$.onTreeLoad,H=$.keyEntities,V=c.useRef(),U=fu(function(){return v},[s,v],function(Ce,Oe){return Oe[0]&&Ce[1]!==Oe[1]}),K=c.useState(null),Y=X(K,2),G=Y[0],q=Y[1],J=H[G],Q=c.useMemo(function(){return x?{checked:w,halfChecked:O}:null},[x,w,O]);c.useEffect(function(){if(s&&!a&&w.length){var Ce;(Ce=V.current)===null||Ce===void 0||Ce.scrollTo({key:w[0]}),q(w[0])}},[s]);var ne=String(i).toLowerCase(),re=function(Oe){return ne?String(Oe[N]).toLowerCase().includes(ne):!1},oe=c.useState(M),te=X(oe,2),ee=te[0],ie=te[1],de=c.useState(null),he=X(de,2),fe=he[0],le=he[1],me=c.useMemo(function(){return E?Te(E):i?fe:ee},[ee,fe,E,i]);c.useEffect(function(){i&&le(hge(v,p))},[i]);var ye=function(Oe){ie(Oe),le(Oe),D&&D(Oe)},ge=function(Oe){Oe.preventDefault()},ve=function(Oe,Re){var Ee=Re.node;x&&QC(Ee)||(y(Ee.key,{selected:!w.includes(Ee.key)}),a||l(!1))};if(c.useImperativeHandle(n,function(){var Ce;return{scrollTo:(Ce=V.current)===null||Ce===void 0?void 0:Ce.scrollTo,onKeyDown:function(Re){var Ee,_e=Re.which;switch(_e){case Ie.UP:case Ie.DOWN:case Ie.LEFT:case Ie.RIGHT:(Ee=V.current)===null||Ee===void 0||Ee.onKeyDown(Re);break;case Ie.ENTER:{if(J){var Fe=(J==null?void 0:J.node)||{},qe=Fe.selectable,Ze=Fe.value;qe!==!1&&ve(null,{node:{key:G},selected:!w.includes(Ze)})}break}case Ie.ESC:l(!1)}},onKeyUp:function(){}}}),U.length===0)return c.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:ge},u);var $e={fieldNames:p};return A&&($e.loadedKeys=A),me&&($e.expandedKeys=me),c.createElement("div",{onMouseDown:ge},J&&s&&c.createElement("span",{style:$ge,"aria-live":"assertive"},J.node.value),c.createElement(yw,be({ref:V,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:U,height:m,itemHeight:h,itemScrollOffset:g,virtual:f!==!1&&b!==!1,multiple:a,icon:R,showIcon:_,switcherIcon:T,showLine:k,loadData:i?null:j,motion:B,activeKey:G,checkable:x,checkStrictly:!0,checkedKeys:Q,selectedKeys:x?[]:w,defaultExpandAll:P,titleRender:S},$e,{onActiveChange:q,onSelect:ve,onCheck:ve,onExpand:ye,onLoad:z,filterTreeNode:re,expandAction:C})))},Pge=c.forwardRef(Ege),Cw="SHOW_ALL",Sw="SHOW_PARENT",x0="SHOW_CHILD";function BO(e,t,n,r){var o=new Set(e);return t===x0?e.filter(function(a){var i=n[a];return!(i&&i.children&&i.children.some(function(l){var s=l.node;return o.has(s[r.value])})&&i.children.every(function(l){var s=l.node;return QC(s)||o.has(s[r.value])}))}):t===Sw?e.filter(function(a){var i=n[a],l=i?i.parent:null;return!(l&&!QC(l.node)&&o.has(l.key))}):e}var Oge=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function Ige(e){return!e||et(e)!=="object"}var Mge=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tree-select":r,a=e.value,i=e.defaultValue,l=e.onChange,s=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,h=e.autoClearSearchValue,g=h===void 0?!0:h,v=e.filterTreeNode,p=e.treeNodeFilterProp,y=p===void 0?"value":p,b=e.showCheckedStrategy,C=e.treeNodeLabelProp,S=e.multiple,$=e.treeCheckable,x=e.treeCheckStrictly,w=e.labelInValue,O=e.fieldNames,E=e.treeDataSimpleMode,P=e.treeData,M=e.children,D=e.loadData,R=e.treeLoadedKeys,_=e.onTreeLoad,T=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,j=e.onTreeExpand,A=e.treeExpandAction,B=e.virtual,z=e.listHeight,H=z===void 0?200:z,V=e.listItemHeight,U=V===void 0?20:V,K=e.listItemScrollOffset,Y=K===void 0?0:K,G=e.onDropdownVisibleChange,q=e.dropdownMatchSelectWidth,J=q===void 0?!0:q,Q=e.treeLine,ne=e.treeIcon,re=e.showTreeIcon,oe=e.switcherIcon,te=e.treeMotion,ee=e.treeTitleRender,ie=ze(e,Oge),de=h2(n),he=$&&!x,fe=$||x,le=x||w,me=fe||S,ye=Pt(i,{value:a}),ge=X(ye,2),ve=ge[0],$e=ge[1],Ce=c.useMemo(function(){return $?b||x0:Cw},[b,$]),Oe=c.useMemo(function(){return pge(O)},[JSON.stringify(O)]),Re=Pt("",{value:d!==void 0?d:f,postState:function(je){return je||""}}),Ee=X(Re,2),_e=Ee[0],Fe=Ee[1],qe=function(je){Fe(je),m==null||m(je)},Ze=wge(P,M,E),ke=yge(Ze,Oe),Be=ke.keyEntities,Ue=ke.valueEntities,Je=c.useCallback(function(Pe){var je=[],Ve=[];return Pe.forEach(function(tt){Ue.has(tt)?Ve.push(tt):je.push(tt)}),{missingRawValues:je,existRawValues:Ve}},[Ue]),nt=Sge(Ze,_e,{fieldNames:Oe,treeNodeFilterProp:y,filterTreeNode:v}),mt=c.useCallback(function(Pe){if(Pe){if(C)return Pe[C];for(var je=Oe._title,Ve=0;Ve{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${ae(e.paddingXS)} ${ae(e.calc(e.paddingXS).div(2).equal())}`},pj(n,_t(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},g0(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function _ge(e,t,n){return Ht("TreeSelect",r=>{const o=_t(r,{treePrefixCls:t});return[Rge(o)]},hj)(e,n)}var Tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,size:o,disabled:a,bordered:i=!0,className:l,rootClassName:s,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:m=26,placement:h,notFoundContent:g,switcherIcon:v,treeLine:p,getPopupContainer:y,popupClassName:b,dropdownClassName:C,treeIcon:S=!1,transitionName:$,choiceTransitionName:x="",status:w,treeExpandAction:O,builtinPlacements:E,dropdownMatchSelectWidth:P,popupMatchSelectWidth:M,allowClear:D,variant:R,dropdownStyle:_,tagRender:T}=e,k=Tge(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:N,getPrefixCls:j,renderEmpty:A,direction:B,virtual:z,popupMatchSelectWidth:H,popupOverflow:V}=c.useContext(at),U=j(),K=j("select",r),Y=j("select-tree",r),G=j("tree-select",r),{compactSize:q,compactItemClassnames:J}=Va(K,B),Q=pn(K),ne=pn(G),[re,oe,te]=S2(K,Q),[ee]=_ge(G,Y,ne),[ie,de]=wl(R,i),he=Z(b||C,`${G}-dropdown`,{[`${G}-dropdown-rtl`]:B==="rtl"},s,te,Q,ne,oe),fe=!!(u||d),le=x2(k.suffixIcon,k.showArrow),me=(n=M??P)!==null&&n!==void 0?n:H,{status:ye,hasFeedback:ge,isFormItemInput:ve,feedbackIcon:$e}=c.useContext(yr),Ce=xl(ye,w),{suffixIcon:Oe,removeIcon:Re,clearIcon:Ee}=Yh(Object.assign(Object.assign({},k),{multiple:fe,showSuffixIcon:le,hasFeedback:ge,feedbackIcon:$e,prefixCls:K,componentName:"TreeSelect"})),_e=D===!0?{clearIcon:Ee}:D;let Fe;g!==void 0?Fe=g:Fe=(A==null?void 0:A("Select"))||c.createElement(gm,{componentName:"Select"});const qe=gn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ze=c.useMemo(()=>h!==void 0?h:B==="rtl"?"bottomRight":"bottomLeft",[h,B]),ke=nr(yt=>{var It;return(It=o??q)!==null&&It!==void 0?It:yt}),Be=c.useContext(Kr),Ue=a??Be,Je=Z(!r&&G,{[`${K}-lg`]:ke==="large",[`${K}-sm`]:ke==="small",[`${K}-rtl`]:B==="rtl",[`${K}-${ie}`]:de,[`${K}-in-form-item`]:ve},ya(K,Ce,ge),J,l,s,te,Q,ne,oe),nt=yt=>c.createElement(Zve,{prefixCls:Y,switcherIcon:v,treeNodeProps:yt,showLine:p}),[mt]=Uo("SelectLike",_==null?void 0:_.zIndex),gt=c.createElement(Im,Object.assign({virtual:z,disabled:Ue},qe,{dropdownMatchSelectWidth:me,builtinPlacements:C2(E,V),ref:t,prefixCls:K,className:Je,listHeight:f,listItemHeight:m,treeCheckable:u&&c.createElement("span",{className:`${K}-tree-checkbox-inner`}),treeLine:!!p,suffixIcon:Oe,multiple:fe,placement:Ze,removeIcon:Re,allowClear:_e,switcherIcon:nt,showTreeIcon:S,notFoundContent:Fe,getPopupContainer:y||N,treeMotion:null,dropdownClassName:he,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:mt}),choiceTransitionName:$r(U,"",x),transitionName:$r(U,"slide-up",$),treeExpandAction:O,tagRender:fe?T:void 0}));return re(ee(gt))},jge=c.forwardRef(Nge),$s=jge,Dge=Sl($s);$s.TreeNode=bw;$s.SHOW_ALL=Cw;$s.SHOW_PARENT=Sw;$s.SHOW_CHILD=x0;$s._InternalPanelDoNotUseOrYouWillBeFired=Dge;const Fge=$s;var kge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Lge=kge;var Age=function(t,n){return c.createElement(Dt,be({},t,{ref:n,icon:Lge}))},Bge=c.forwardRef(Age);const zge=Bge;function Hge(){const e=du();return F.jsx("div",{style:{width:"100%",minHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:F.jsx(vw,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:F.jsxs(xm,{gutter:50,justify:"center",children:[F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e(-1)},children:"返回上一页"})}),F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e("/")},children:"返回首页"})})]})})})}const Vge=Object.freeze(Object.defineProperty({__proto__:null,default:Hge},Symbol.toStringTag,{value:"Module"}));var Wge={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const Kge={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},xj=Kge,wj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Wge),timePickerLocale:Object.assign({},xj)};wj.lang.ok="确定";const zO=wj,mo="${label}不是一个有效的${type}",Uge={locale:"zh-cn",Pagination:J9,DatePicker:zO,TimePicker:xj,Calendar:zO,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:mo,method:mo,array:mo,object:mo,number:mo,date:mo,boolean:mo,integer:mo,float:mo,regexp:mo,email:mo,url:mo,hex:mo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}},Gge=Uge;var $j={exports:{}},Ej={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -418,8 +418,8 @@ html body { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Jc=c;function qge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yge=typeof Object.is=="function"?Object.is:qge,Xge=Jc.useState,Qge=Jc.useEffect,Zge=Jc.useLayoutEffect,Jge=Jc.useDebugValue;function epe(e,t){var n=t(),r=Xge({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return Zge(function(){o.value=n,o.getSnapshot=t,yb(o)&&a({inst:o})},[e,n,t]),Qge(function(){return yb(o)&&a({inst:o}),e(function(){yb(o)&&a({inst:o})})},[e]),Jge(n),n}function yb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yge(e,n)}catch{return!0}}function tpe(e,t){return t()}var npe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tpe:epe;Ej.useSyncExternalStore=Jc.useSyncExternalStore!==void 0?Jc.useSyncExternalStore:npe;$j.exports=Ej;var Pj=$j.exports;const Gi=()=>{},qr=Gi(),mg=Object,fn=e=>e===qr,la=e=>typeof e=="function",yi=(e,t)=>({...e,...t}),rpe=e=>la(e.then),Nv=new WeakMap;let ope=0;const Ff=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(mg(e)===e&&!r&&n!=RegExp){if(o=Nv.get(e),o)return o;if(o=++ope+"~",Nv.set(e,o),n==Array){for(o="@",a=0;aw0&&typeof window.requestAnimationFrame!=xw,Oj=(e,t)=>{const n=ti.get(e);return[()=>!fn(t)&&e.get(t)||bb,r=>{if(!fn(t)){const o=e.get(t);t in jv||(jv[t]=o),n[5](t,yi(o,r),o||bb)}},n[6],()=>!fn(t)&&t in jv?jv[t]:!fn(t)&&e.get(t)||bb]};let eS=!0;const ipe=()=>eS,[tS,nS]=w0&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gi,Gi],lpe=()=>{const e=JC&&document.visibilityState;return fn(e)||e!=="hidden"},spe=e=>(JC&&document.addEventListener("visibilitychange",e),tS("focus",e),()=>{JC&&document.removeEventListener("visibilitychange",e),nS("focus",e)}),cpe=e=>{const t=()=>{eS=!0,e()},n=()=>{eS=!1};return tS("online",t),tS("offline",n),()=>{nS("online",t),nS("offline",n)}},upe={isOnline:ipe,isVisible:lpe},dpe={initFocus:spe,initReconnect:cpe},HO=!W.useId,kf=!w0||"Deno"in window,fpe=e=>ape()?window.requestAnimationFrame(e):setTimeout(e,1),vg=kf?c.useEffect:c.useLayoutEffect,Cb=typeof navigator<"u"&&navigator.connection,VO=!kf&&Cb&&(["slow-2g","2g"].includes(Cb.effectiveType)||Cb.saveData),ww=e=>{if(la(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ff(e):"",[e,t]};let mpe=0;const rS=()=>++mpe,Ij=0,Mj=1,Rj=2,vpe=3;var pd={__proto__:null,ERROR_REVALIDATE_EVENT:vpe,FOCUS_EVENT:Ij,MUTATE_EVENT:Rj,RECONNECT_EVENT:Mj};async function _j(...e){const[t,n,r,o]=e,a=yi({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const l=a.rollbackOnError;let s=a.optimisticData;const u=m=>typeof l=="function"?l(m):l!==!1,d=a.throwOnError;if(la(n)){const m=n,h=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&m(t.get(v)._k)&&h.push(v);return Promise.all(h.map(f))}return f(n);async function f(m){const[h]=ww(m);if(!h)return;const[g,v]=Oj(t,h),[p,y,b,C]=ti.get(t),S=()=>{const R=p[h];return(la(a.revalidate)?a.revalidate(g().data,m):a.revalidate!==!1)&&(delete b[h],delete C[h],R&&R[0])?R[0](Rj).then(()=>g().data):g().data};if(e.length<3)return S();let $=r,x;const w=rS();y[h]=[w,0];const O=!fn(s),E=g(),P=E.data,M=E._c,D=fn(M)?P:M;if(O&&(s=la(s)?s(D,P):s,v({data:s,_c:D})),la($))try{$=$(D)}catch(R){x=R}if($&&rpe($))if($=await $.catch(R=>{x=R}),w!==y[h][0]){if(x)throw x;return $}else x&&O&&u(x)&&(i=!0,v({data:D,_c:qr}));if(i&&!x)if(la(i)){const R=i($,D);v({data:R,error:qr,_c:qr})}else v({data:$,error:qr,_c:qr});if(y[h][1]=rS(),Promise.resolve(S()).then(()=>{v({_c:qr})}),x){if(d)throw x;return}return $}}const WO=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Tj=(e,t)=>{if(!ti.has(e)){const n=yi(dpe,t),r={},o=_j.bind(qr,e);let a=Gi;const i={},l=(d,f)=>{const m=i[d]||[];return i[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},s=(d,f,m)=>{e.set(d,f);const h=i[d];if(h)for(const g of h)g(f,m)},u=()=>{if(!ti.has(e)&&(ti.set(e,[r,{},{},{},o,s,l]),!kf)){const d=n.initFocus(setTimeout.bind(qr,WO.bind(qr,r,Ij))),f=n.initReconnect(setTimeout.bind(qr,WO.bind(qr,r,Mj)));a=()=>{d&&d(),f&&f(),ti.delete(e)}}};return u(),[e,o,u,a]}return[e,ti.get(e)[4]]},gpe=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!fn(a)&&i>a||setTimeout(r,l,o)},ppe=(e,t)=>Ff(e)==Ff(t),[$w,hpe]=Tj(new Map),Nj=yi({onLoadingSlow:Gi,onSuccess:Gi,onError:Gi,onErrorRetry:gpe,onDiscarded:Gi,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:VO?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:VO?5e3:3e3,compare:ppe,isPaused:()=>!1,cache:$w,mutate:hpe,fallback:{}},upe),jj=(e,t)=>{const n=yi(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=yi(o,i))}return n},oS=c.createContext({}),ype=e=>{const{value:t}=e,n=c.useContext(oS),r=la(t),o=c.useMemo(()=>r?t(n):t,[r,n,t]),a=c.useMemo(()=>r?o:jj(n,o),[r,n,o]),i=o&&o.provider,l=c.useRef(qr);i&&!l.current&&(l.current=Tj(i(a.cache||$w),o));const s=l.current;return s&&(a.cache=s[0],a.mutate=s[1]),vg(()=>{if(s)return s[2]&&s[2](),s[3]},[]),c.createElement(oS.Provider,yi(e,{value:a}))},bpe="$inf$",Dj=w0&&window.__SWR_DEVTOOLS_USE__,Cpe=Dj?window.__SWR_DEVTOOLS_USE__:[],Spe=()=>{Dj&&(window.__SWR_DEVTOOLS_REACT__=W)},xpe=e=>la(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ew=()=>yi(Nj,c.useContext(oS)),wpe=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=ww(t),[,,,l]=ti.get($w);if(i.startsWith(bpe))return n(...a);const s=l[i];return fn(s)?n(...a):(delete l[i],s)}),r),$pe=Cpe.concat(wpe),Epe=e=>function(...n){const r=Ew(),[o,a,i]=xpe(n),l=jj(r,i);let s=e;const{use:u}=l,d=(u||[]).concat($pe);for(let f=d.length;f--;)s=d[f](s);return s(o,a||l.fetcher||null,l)},Ppe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Spe();const KO=W.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Sb={dedupe:!0},Ope=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m}=n,[h,g,v,p]=ti.get(r),[y,b]=ww(e),C=c.useRef(!1),S=c.useRef(!1),$=c.useRef(y),x=c.useRef(t),w=c.useRef(n),O=()=>w.current,E=()=>O().isVisible()&&O().isOnline(),[P,M,D,R]=Oj(r,y),_=c.useRef({}).current,T=fn(i)?n.fallback[y]:i,k=(re,oe)=>{for(const te in _){const ee=te;if(ee==="data"){if(!o(re[ee],oe[ee])&&(!fn(re[ee])||!o(K,oe[ee])))return!1}else if(oe[ee]!==re[ee])return!1}return!0},N=c.useMemo(()=>{const re=!y||!t?!1:fn(l)?O().isPaused()||a?!1:fn(s)?!0:s:l,oe=fe=>{const le=yi(fe);return delete le._k,re?{isValidating:!0,isLoading:!0,...le}:le},te=P(),ee=R(),ie=oe(te),de=te===ee?ie:oe(ee);let he=ie;return[()=>{const fe=oe(P());return k(fe,he)?(he.data=fe.data,he.isLoading=fe.isLoading,he.isValidating=fe.isValidating,he.error=fe.error,he):(he=fe,fe)},()=>de]},[r,y]),j=Pj.useSyncExternalStore(c.useCallback(re=>D(y,(oe,te)=>{k(te,oe)||re()}),[r,y]),N[0],N[1]),A=!C.current,B=h[y]&&h[y].length>0,z=j.data,H=fn(z)?T:z,V=j.error,U=c.useRef(H),K=m?fn(z)?U.current:z:H,Y=B&&!fn(V)?!1:A&&!fn(l)?l:O().isPaused()?!1:a?fn(H)?!1:s:fn(H)||s,G=!!(y&&t&&A&&Y),q=fn(j.isValidating)?G:j.isValidating,J=fn(j.isLoading)?G:j.isLoading,Q=c.useCallback(async re=>{const oe=x.current;if(!y||!oe||S.current||O().isPaused())return!1;let te,ee,ie=!0;const de=re||{},he=!v[y]||!de.dedupe,fe=()=>HO?!S.current&&y===$.current&&C.current:y===$.current,le={isValidating:!1,isLoading:!1},me=()=>{M(le)},ye=()=>{const ve=v[y];ve&&ve[1]===ee&&delete v[y]},ge={isValidating:!0};fn(P().data)&&(ge.isLoading=!0);try{if(he&&(M(ge),n.loadingTimeout&&fn(P().data)&&setTimeout(()=>{ie&&fe()&&O().onLoadingSlow(y,n)},n.loadingTimeout),v[y]=[oe(b),rS()]),[te,ee]=v[y],te=await te,he&&setTimeout(ye,n.dedupingInterval),!v[y]||v[y][1]!==ee)return he&&fe()&&O().onDiscarded(y),!1;le.error=qr;const ve=g[y];if(!fn(ve)&&(ee<=ve[0]||ee<=ve[1]||ve[1]===0))return me(),he&&fe()&&O().onDiscarded(y),!1;const $e=P().data;le.data=o($e,te)?$e:te,he&&fe()&&O().onSuccess(te,y,n)}catch(ve){ye();const $e=O(),{shouldRetryOnError:Ce}=$e;$e.isPaused()||(le.error=ve,he&&fe()&&($e.onError(ve,y,$e),(Ce===!0||la(Ce)&&Ce(ve))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||E())&&$e.onErrorRetry(ve,y,$e,Oe=>{const Re=h[y];Re&&Re[0]&&Re[0](pd.ERROR_REVALIDATE_EVENT,Oe)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ie=!1,me(),!0},[y,r]),ne=c.useCallback((...re)=>_j(r,$.current,...re),[]);if(vg(()=>{x.current=t,w.current=n,fn(z)||(U.current=z)}),vg(()=>{if(!y)return;const re=Q.bind(qr,Sb);let oe=0;const ee=Ppe(y,h,(ie,de={})=>{if(ie==pd.FOCUS_EVENT){const he=Date.now();O().revalidateOnFocus&&he>oe&&E()&&(oe=he+O().focusThrottleInterval,re())}else if(ie==pd.RECONNECT_EVENT)O().revalidateOnReconnect&&E()&&re();else{if(ie==pd.MUTATE_EVENT)return Q();if(ie==pd.ERROR_REVALIDATE_EVENT)return Q(de)}});return S.current=!1,$.current=y,C.current=!0,M({_k:b}),Y&&(fn(H)||kf?re():fpe(re)),()=>{S.current=!0,ee()}},[y]),vg(()=>{let re;function oe(){const ee=la(u)?u(P().data):u;ee&&re!==-1&&(re=setTimeout(te,ee))}function te(){!P().error&&(d||O().isVisible())&&(f||O().isOnline())?Q(Sb).then(oe):oe()}return oe(),()=>{re&&(clearTimeout(re),re=-1)}},[u,d,f,y]),c.useDebugValue(K),a&&fn(H)&&y){if(!HO&&kf)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,w.current=n,S.current=!1;const re=p[y];if(!fn(re)){const oe=ne(re);KO(oe)}if(fn(V)){const oe=Q(Sb);fn(K)||(oe.status="fulfilled",oe.value=!0),KO(oe)}else throw V}return{mutate:ne,get data(){return _.data=!0,K},get error(){return _.error=!0,V},get isValidating(){return _.isValidating=!0,q},get isLoading(){return _.isLoading=!0,J}}},Ipe=mg.defineProperty(ype,"defaultValue",{value:Nj}),Pw=Epe(Ope);function gg(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yh(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,l=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}const Mpe={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},Rpe={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},_pe={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Tpe={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Npe={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},jpe={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Dpe={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Fpe={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},kpe={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Lpe={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Ape={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Bpe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},zpe={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Hpe={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Vpe={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Wpe={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},Kpe={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},Upe={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},Gpe={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},qpe={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},Ype={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},Xpe={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},Qpe={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},Zpe={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},Jpe={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},ehe={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},the={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"默认",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},nhe={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"默認",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};function rhe(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,a=n,i=gg(r),l;try{for(i.s();!(l=i.n()).done;){var s=l.value;if(a=Object(o)[s],o=Object(o)[s],a===void 0)return n}}catch(u){i.e(u)}finally{i.f()}return a}var wn=function(t,n){return{getMessage:function(o,a){return rhe(n,o,a)||a},locale:t}},ohe=wn("mn_MN",Wpe),ahe=wn("ar_EG",Mpe),Rc=wn("zh_CN",the),ihe=wn("en_US",jpe),lhe=wn("en_GB",Npe),she=wn("vi_VN",ehe),che=wn("it_IT",zpe),uhe=wn("ja_JP",Hpe),dhe=wn("es_ES",Dpe),fhe=wn("ca_ES",Rpe),mhe=wn("ru_RU",qpe),vhe=wn("sr_RS",Xpe),ghe=wn("ms_MY",Kpe),phe=wn("zh_TW",nhe),hhe=wn("fr_FR",kpe),yhe=wn("pt_BR",Gpe),bhe=wn("ko_KR",Vpe),Che=wn("id_ID",Bpe),She=wn("de_DE",Tpe),xhe=wn("fa_IR",Fpe),whe=wn("tr_TR",Zpe),$he=wn("pl_PL",Upe),Ehe=wn("hr_",Ape),Phe=wn("th_TH",Qpe),Ohe=wn("cs_cz",_pe),Ihe=wn("sk_SK",Ype),Mhe=wn("he_IL",Lpe),Rhe=wn("uk_UA",Jpe),eu={"mn-MN":ohe,"ar-EG":ahe,"zh-CN":Rc,"en-US":ihe,"en-GB":lhe,"vi-VN":she,"it-IT":che,"ja-JP":uhe,"es-ES":dhe,"ca-ES":fhe,"ru-RU":mhe,"sr-RS":vhe,"ms-MY":ghe,"zh-TW":phe,"fr-FR":hhe,"pt-BR":yhe,"ko-KR":bhe,"id-ID":Che,"de-DE":She,"fa-IR":xhe,"tr-TR":whe,"pl-PL":$he,"hr-HR":Ehe,"th-TH":Phe,"cs-CZ":Ohe,"sk-SK":Ihe,"he-IL":Mhe,"uk-UA":Rhe},_he=Object.keys(eu),Fj=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return _he.find(function(r){var o=r.toLocaleLowerCase();return o.includes(n)})},xb,Lf={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},kj=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,o=1103547991^n,a=0,i;a>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&o)+(r>>>0)},Ow=Kc(function(e){return e}),Lj={theme:Ow,token:I(I({},Lf),No==null||(xb=No.defaultAlgorithm)===null||xb===void 0?void 0:xb.call(No,No==null?void 0:No.defaultSeed)),hashId:"pro-".concat(kj(JSON.stringify(Lf)))},The=function(){return Lj};const Nhe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Lf,emptyTheme:Ow,hashCode:kj,token:Lj,useToken:The},Symbol.toStringTag,{value:"Module"}));var to=function(t,n){return new Jt(t).setAlpha(n).toRgbString()},jhe=function(){return typeof No>"u"||!No?Nhe:No},Aa=jhe(),Jd=Aa.useToken,_c=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}},wb=function(t){return{color:t.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(t.motionDurationSlow),"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}};function un(e,t){var n,r=c.useContext(Ca),o=r.token,a=o===void 0?{}:o,i=c.useContext(Ca),l=i.hashId,s=l===void 0?"":l,u=i.theme,d=Jd(),f=d.token,m=c.useContext(bt.ConfigContext),h=m.getPrefixCls;return a.layout||(a=I({},f)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(h("pro")),a.antCls=".".concat(h()),{wrapSSR:ep({theme:u,token:a,hashId:s,path:[e]},function(){return t(a)}),hashId:s}}var Dhe=function(t,n){var r,o,a,i,l,s=I({},t);return I(I({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:s==null||(r=s.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:to(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},s),{},{header:I({colorBgHeader:to(n.colorBgElevated,.6),colorBgScrollHeader:to(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:to(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(s==null||(o=s.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=s.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:to(n.colorTextBase,.95),colorBgRightActionsItemHover:to(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},s.header),sider:I({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:to(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:to(n.colorTextBase,.06),colorBgMenuItemHover:to(n.colorTextBase,.03),colorBgMenuItemSelected:to(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:to(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:to(n.colorTextBase,.95)},s.sider),pageContainer:I({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((i=s.pageContainer)===null||i===void 0?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=s.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},s.pageContainer)})},Fhe=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(gye(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){Op(e,t+1)},r.onerror=function(){Op(e,t+1)}),Bj.add(n),document.body.appendChild(r)}}function zj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?Op(t.reverse()):Op([t]));var o=c.forwardRef(function(a,i){var l=a.type,s=a.children,u=ze(a,vye),d=null;return a.type&&(d=c.createElement("use",{xlinkHref:"#".concat(l)})),s&&(d=s),c.createElement(mye,be({},r,u,{ref:i}),d)});return o.displayName="Iconfont",o}var pye=function(t){return L({},t.componentCls,L(L(L(L(L(L(L(L({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":L({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),L(L({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),L({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),L({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",L(L({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",L({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",L(L(L({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function hye(e){return un("FieldLabel",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[pye(n)]})}var yye=function(t,n){var r,o,a,i=t.label,l=t.onClear,s=t.value,u=t.disabled,d=t.onLabelClick,f=t.ellipsis,m=t.placeholder,h=t.className,g=t.formatter,v=t.bordered,p=t.style,y=t.downIcon,b=t.allowClear,C=b===void 0?!0:b,S=t.valueMaxLength,$=S===void 0?41:S,x=(bt==null||(r=bt.useConfig)===null||r===void 0?void 0:r.call(bt))||{componentSize:"middle"},w=x.componentSize,O=w,E=c.useContext(bt.ConfigContext),P=E.getPrefixCls,M=P("pro-core-field-label"),D=hye(M),R=D.wrapSSR,_=D.hashId,T=Un(),k=c.useRef(null),N=c.useRef(null);c.useImperativeHandle(n,function(){return{labelRef:N,clearRef:k}});var j=function(H){return H.every(function(V){return typeof V=="string"})?H.join(","):H.map(function(V,U){var K=U===H.length-1?"":",";return typeof V=="string"?F.jsxs("span",{children:[V,K]},U):F.jsxs("span",{style:{display:"flex"},children:[V,K]},U)})},A=function(H){return g?g(H):Array.isArray(H)?j(H):H},B=function(H,V){if(V!=null&&V!==""&&(!Array.isArray(V)||V.length)){var U,K,Y=H?F.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(M,"-text"),children:[H,": "]}):"",G=A(V);if(!f)return F.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Y,A(V)]});var q=function(){var ne=Array.isArray(V)&&V.length>1,re=T.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>$&&ne?"...".concat(V.length).concat(re):""},J=q();return F.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Y,F.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(U=G.toString())===null||U===void 0||(K=U.substr)===null||K===void 0?void 0:K.call(U,0,$):G}),J]})}return H||m};return R(F.jsxs("span",{className:Z(M,_,"".concat(M,"-").concat((o=(a=t.size)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:"middle"),L(L(L(L({},"".concat(M,"-active"),!!s||s===0),"".concat(M,"-disabled"),u),"".concat(M,"-bordered"),v),"".concat(M,"-allow-clear"),C),h),style:p,ref:N,onClick:function(){var H;t==null||(H=t.onClick)===null||H===void 0||H.call(t)},children:[B(i,s),(s||s===0)&&C&&F.jsx(Ha,{role:"button",title:T.getMessage("form.lightFilter.clear","清除"),className:Z("".concat(M,"-icon"),_,"".concat(M,"-close")),onClick:function(H){u||l==null||l(),H.stopPropagation()},ref:k}),y!==!1?y??F.jsx(Hh,{className:Z("".concat(M,"-icon"),_,"".concat(M,"-arrow"))}):null]}))},$i=W.forwardRef(yye),yo=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},bye=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,GO=function(t){return t==="*"||t==="x"||t==="X"},qO=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Cye=function(t,n){return et(t)!==et(n)?[String(t),String(n)]:[t,n]},Sye=function(t,n){if(GO(t)||GO(n))return 0;var r=Cye(qO(t),qO(n)),o=X(r,2),a=o[0],i=o[1];return a>i?1:a"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},Rm=function(t,n){var r=Es(Hj(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return yo(r)},wye=function(t){return L(L(L({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function $ye(e){return un("FilterDropdown",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[wye(n)]})}var Eye=function(t){var n=t.children,r=t.label,o=t.footer,a=t.open,i=t.onOpenChange,l=t.disabled,s=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=c.useContext(bt.ConfigContext),h=m.getPrefixCls,g=h("pro-core-field-dropdown"),v=$ye(g),p=v.wrapSSR,y=v.hashId,b=Rm(a||u||!1,i||s),C=c.useRef(null);return p(F.jsx(bs,I(I({placement:f,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:F.jsxs("div",{ref:C,className:Z("".concat(g,"-overlay"),L(L({},"".concat(g,"-overlay-").concat(f),f),"hashId",y)),children:[F.jsx(bt,{getPopupContainer:function(){return C.current||document.body},children:F.jsx("div",{className:"".concat(g,"-content ").concat(y).trim(),children:n})}),o&&F.jsx(Whe,I({disabled:l,footerRender:d},o))]}),children:F.jsx("span",{className:"".concat(g,"-label ").concat(y).trim(),children:r})})))},Pye=function(t){return L({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Oye(e){return un("LabelIconTip",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[Pye(n)]})}var Iye=W.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,o=e.subTitle,a=c.useContext(bt.ConfigContext),i=a.getPrefixCls,l=i("pro-core-label-tip"),s=Oye(l),u=s.wrapSSR,d=s.hashId;if(!n&&!o)return F.jsx(F.Fragment,{children:t});var f=typeof n=="string"||W.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||F.jsx(d0e,{});return u(F.jsxs("div",{className:Z(l,d),onMouseDown:function(g){return g.stopPropagation()},onMouseLeave:function(g){return g.stopPropagation()},onMouseMove:function(g){return g.stopPropagation()},children:[F.jsx("div",{className:Z("".concat(l,"-title"),d,L({},"".concat(l,"-title-ellipsis"),r)),children:t}),o&&F.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:o}),n&&F.jsx(Go,I(I({},f),{},{children:F.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:m})}))]}))}),Vj=W.createContext({}),Wj={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n="month",r="quarter";return function(o,a){var i=a.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var s=i.startOf;i.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var h=this.quarter()-1;return m?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return s.bind(this)(u,d)}}})})(Wj);var Mye=Wj.exports;const Rye=jn(Mye);var gs=function(t){return t==null};zt.extend(Rye);var Kj={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function XO(e){return Object.prototype.toString.call(e)==="[object Object]"}function _ye(e){if(XO(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(XO(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var aS=function(t){return!!(t!=null&&t._isAMomentObject)},QO=function(t,n,r){if(!n)return t;if(zt.isDayjs(t)||aS(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(Kj[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Tye=function e(t,n,r,o,a){var i={};return typeof window>"u"||et(t)!=="object"||gs(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(l){var s=a?[a,l].flat(1):[l],u=Or(r,s)||"text",d="text",f;typeof u=="string"?d=u:u&&(d=u.valueType,f=u.dateFormat);var m=t[l];if(!(gs(m)&&o)){if(_ye(m)&&!Array.isArray(m)&&!zt.isDayjs(m)&&!aS(m)){i[l]=e(m,n,r,o,[l]);return}if(Array.isArray(m)){i[l]=m.map(function(h,g){return zt.isDayjs(h)||aS(h)?QO(h,f||n,d):e(h,n,r,o,[l,"".concat(g)].flat(1))});return}i[l]=QO(m,f||n,d)}}),i)},ZO=function(t,n){return typeof n=="function"?n(zt(t)):zt(t).format(n)},Nye=function(t,n){var r=Array.isArray(t)?t:[],o=X(r,2),a=o[0],i=o[1],l,s;Array.isArray(n)?(l=n[0],s=n[1]):et(n)==="object"&&n.type==="mask"?(l=n.format,s=n.format):(l=n,s=n);var u=a?ZO(a,l):"",d=i?ZO(i,s):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f};function Ip(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=c.useState(e),o=X(r,2),a=o[0],i=o[1],l=Dye(e);return c.useEffect(function(){var s=setTimeout(function(){i(l.current)},t);return function(){return clearTimeout(s)}},n?[t].concat(Te(n)):void 0),a}function rs(e,t,n,r){if(e===t)return!0;if(e&&t&&et(e)==="object"&&et(t)==="object"){if(e.constructor!==t.constructor)return!1;var o,a,i;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!rs(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var l=gg(e.entries()),s;try{for(l.s();!(s=l.n()).done;)if(a=s.value,!t.has(a[0]))return!1}catch(g){l.e(g)}finally{l.f()}var u=gg(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(a=d.value,!rs(a[1],t.get(a[0]),n,r))return!1}catch(g){u.e(g)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=gg(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(a=m.value,!t.has(a[0]))return!1}catch(g){f.e(g)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=o;a--!==0;){var h=i[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!rs(e[h],t[h],n,r))return r&&console.log(h),!1}return!0}return e!==e&&t!==t}var kye=function(t,n,r){return rs(t,n,r)};function Gj(e,t){var n=c.useRef();return kye(e,n.current,t)||(n.current=e),n.current}function Lye(e,t,n){c.useEffect(e,Gj(t||[],n))}function no(e,t){return W.useMemo(e,Gj(t))}var Aye=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,gl=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Aye};function Bye(e,t){var n=typeof e.pageName=="string"?e.title:t;c.useEffect(function(){gl()&&n&&(document.title=n)},[e.title,n])}var $b=0;function zye(e){var t=c.useRef(null),n=c.useState(function(){return e.proFieldKey?e.proFieldKey.toString():($b+=1,$b.toString())}),r=X(n,1),o=r[0],a=c.useRef(o),i=function(){var d=Tr(an().mark(function f(){var m,h,g,v;return an().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),g=new AbortController,t.current=g,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(b,C){var S;(S=t.current)===null||S===void 0||(S=S.signal)===null||S===void 0||S.addEventListener("abort",function(){C(new Error("aborted"))})})]);case 5:return v=y.sent,y.abrupt("return",v);case 7:case"end":return y.stop()}},f)}));return function(){return d.apply(this,arguments)}}();c.useEffect(function(){return function(){$b+=1}},[]);var l=Pw([a.current,e.params],i,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),s=l.data,u=l.error;return[s||u]}var Hye=function(t){var n=c.useRef();return c.useEffect(function(){n.current=t}),n.current},Vye=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function Wye(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Iw=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Mw=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(JO+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var o=63&r[t];n+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return n},qj=function(){return typeof window>"u"?e6():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():e6()};zt.extend(hN);var t6=function(t){return!!(t!=null&&t._isAMomentObject)},_m=function e(t,n){return gs(t)||zt.isDayjs(t)||t6(t)?t6(t)?zt(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?zt(t):zt(t,n)},Kye=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Uye(e){var t={};return Kye.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var Gye="valueType request plain renderFormItem render text formItemProps valueEnum",qye="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Yj(e){var t="".concat(Gye," ").concat(qye).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function Yye(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&et(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var Xye=function(t){var n=t.color,r=t.children;return F.jsx(Jo,{color:n,text:r})},Ei=function(t){return Yye(t)==="map"?t:new Map(Object.entries(t||{}))},Qye={Success:function(t){var n=t.children;return F.jsx(Jo,{status:"success",text:n})},Error:function(t){var n=t.children;return F.jsx(Jo,{status:"error",text:n})},Default:function(t){var n=t.children;return F.jsx(Jo,{status:"default",text:n})},Processing:function(t){var n=t.children;return F.jsx(Jo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return F.jsx(Jo,{status:"warning",text:n})},success:function(t){var n=t.children;return F.jsx(Jo,{status:"success",text:n})},error:function(t){var n=t.children;return F.jsx(Jo,{status:"error",text:n})},default:function(t){var n=t.children;return F.jsx(Jo,{status:"default",text:n})},processing:function(t){var n=t.children;return F.jsx(Jo,{status:"processing",text:n})},warning:function(t){var n=t.children;return F.jsx(Jo,{status:"warning",text:n})}},Nu=function e(t,n,r){if(Array.isArray(t))return F.jsx(hi,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var o=Ei(n);if(!o.has(t)&&!o.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=o.get(t)||o.get("".concat(t));if(!a)return F.jsx(W.Fragment,{children:(t==null?void 0:t.label)||t},r);var i=a.status,l=a.color,s=Qye[i||"Init"];return s?F.jsx(s,{children:a.text},r):l?F.jsx(Xye,{color:l,children:a.text},r):F.jsx(W.Fragment,{children:a.text||a},r)},iS={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=p();r.configure=p,r.stringify=r,r.default=r,t.stringify=r,t.configure=p,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function a(y){return y.length<5e3&&!o.test(y)?`"${y}"`:JSON.stringify(y)}function i(y){if(y.length>200)return y.sort();for(let b=1;bC;)y[S]=y[S-1],S--;y[S]=C}return y}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function s(y){return l.call(y)!==void 0&&y.length!==0}function u(y,b,C){y.length= 1`)}return C===void 0?1/0:C}function h(y){return y===1?"1 item":`${y} items`}function g(y){const b=new Set;for(const C of y)(typeof C=="string"||typeof C=="number")&&b.add(String(C));return b}function v(y){if(n.call(y,"strict")){const b=y.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return C=>{let S=`Object can not safely be stringified. Received type ${typeof C}`;throw typeof C!="function"&&(S+=` (${C.toString()})`),new Error(S)}}}function p(y){y={...y};const b=v(y);b&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const C=d(y),S=f(y,"bigint"),$=f(y,"deterministic"),x=m(y,"maximumDepth"),w=m(y,"maximumBreadth");function O(R,_,T,k,N,j){let A=_[R];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(R)),A=k.call(_,R,A),typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(T.indexOf(A)!==-1)return C;let B="",z=",";const H=j;if(Array.isArray(A)){if(A.length===0)return"[]";if(x"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tpe:epe;Ej.useSyncExternalStore=Jc.useSyncExternalStore!==void 0?Jc.useSyncExternalStore:npe;$j.exports=Ej;var Pj=$j.exports;const Gi=()=>{},qr=Gi(),mg=Object,fn=e=>e===qr,la=e=>typeof e=="function",yi=(e,t)=>({...e,...t}),rpe=e=>la(e.then),Nv=new WeakMap;let ope=0;const Ff=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(mg(e)===e&&!r&&n!=RegExp){if(o=Nv.get(e),o)return o;if(o=++ope+"~",Nv.set(e,o),n==Array){for(o="@",a=0;aw0&&typeof window.requestAnimationFrame!=xw,Oj=(e,t)=>{const n=ti.get(e);return[()=>!fn(t)&&e.get(t)||bb,r=>{if(!fn(t)){const o=e.get(t);t in jv||(jv[t]=o),n[5](t,yi(o,r),o||bb)}},n[6],()=>!fn(t)&&t in jv?jv[t]:!fn(t)&&e.get(t)||bb]};let eS=!0;const ipe=()=>eS,[tS,nS]=w0&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gi,Gi],lpe=()=>{const e=JC&&document.visibilityState;return fn(e)||e!=="hidden"},spe=e=>(JC&&document.addEventListener("visibilitychange",e),tS("focus",e),()=>{JC&&document.removeEventListener("visibilitychange",e),nS("focus",e)}),cpe=e=>{const t=()=>{eS=!0,e()},n=()=>{eS=!1};return tS("online",t),tS("offline",n),()=>{nS("online",t),nS("offline",n)}},upe={isOnline:ipe,isVisible:lpe},dpe={initFocus:spe,initReconnect:cpe},HO=!W.useId,kf=!w0||"Deno"in window,fpe=e=>ape()?window.requestAnimationFrame(e):setTimeout(e,1),vg=kf?c.useEffect:c.useLayoutEffect,Cb=typeof navigator<"u"&&navigator.connection,VO=!kf&&Cb&&(["slow-2g","2g"].includes(Cb.effectiveType)||Cb.saveData),ww=e=>{if(la(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ff(e):"",[e,t]};let mpe=0;const rS=()=>++mpe,Ij=0,Mj=1,Rj=2,vpe=3;var pd={__proto__:null,ERROR_REVALIDATE_EVENT:vpe,FOCUS_EVENT:Ij,MUTATE_EVENT:Rj,RECONNECT_EVENT:Mj};async function _j(...e){const[t,n,r,o]=e,a=yi({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const l=a.rollbackOnError;let s=a.optimisticData;const u=m=>typeof l=="function"?l(m):l!==!1,d=a.throwOnError;if(la(n)){const m=n,h=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&m(t.get(v)._k)&&h.push(v);return Promise.all(h.map(f))}return f(n);async function f(m){const[h]=ww(m);if(!h)return;const[g,v]=Oj(t,h),[p,y,b,C]=ti.get(t),S=()=>{const R=p[h];return(la(a.revalidate)?a.revalidate(g().data,m):a.revalidate!==!1)&&(delete b[h],delete C[h],R&&R[0])?R[0](Rj).then(()=>g().data):g().data};if(e.length<3)return S();let $=r,x;const w=rS();y[h]=[w,0];const O=!fn(s),E=g(),P=E.data,M=E._c,D=fn(M)?P:M;if(O&&(s=la(s)?s(D,P):s,v({data:s,_c:D})),la($))try{$=$(D)}catch(R){x=R}if($&&rpe($))if($=await $.catch(R=>{x=R}),w!==y[h][0]){if(x)throw x;return $}else x&&O&&u(x)&&(i=!0,v({data:D,_c:qr}));if(i&&!x)if(la(i)){const R=i($,D);v({data:R,error:qr,_c:qr})}else v({data:$,error:qr,_c:qr});if(y[h][1]=rS(),Promise.resolve(S()).then(()=>{v({_c:qr})}),x){if(d)throw x;return}return $}}const WO=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Tj=(e,t)=>{if(!ti.has(e)){const n=yi(dpe,t),r={},o=_j.bind(qr,e);let a=Gi;const i={},l=(d,f)=>{const m=i[d]||[];return i[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},s=(d,f,m)=>{e.set(d,f);const h=i[d];if(h)for(const g of h)g(f,m)},u=()=>{if(!ti.has(e)&&(ti.set(e,[r,{},{},{},o,s,l]),!kf)){const d=n.initFocus(setTimeout.bind(qr,WO.bind(qr,r,Ij))),f=n.initReconnect(setTimeout.bind(qr,WO.bind(qr,r,Mj)));a=()=>{d&&d(),f&&f(),ti.delete(e)}}};return u(),[e,o,u,a]}return[e,ti.get(e)[4]]},gpe=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!fn(a)&&i>a||setTimeout(r,l,o)},ppe=(e,t)=>Ff(e)==Ff(t),[$w,hpe]=Tj(new Map),Nj=yi({onLoadingSlow:Gi,onSuccess:Gi,onError:Gi,onErrorRetry:gpe,onDiscarded:Gi,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:VO?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:VO?5e3:3e3,compare:ppe,isPaused:()=>!1,cache:$w,mutate:hpe,fallback:{}},upe),jj=(e,t)=>{const n=yi(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=yi(o,i))}return n},oS=c.createContext({}),ype=e=>{const{value:t}=e,n=c.useContext(oS),r=la(t),o=c.useMemo(()=>r?t(n):t,[r,n,t]),a=c.useMemo(()=>r?o:jj(n,o),[r,n,o]),i=o&&o.provider,l=c.useRef(qr);i&&!l.current&&(l.current=Tj(i(a.cache||$w),o));const s=l.current;return s&&(a.cache=s[0],a.mutate=s[1]),vg(()=>{if(s)return s[2]&&s[2](),s[3]},[]),c.createElement(oS.Provider,yi(e,{value:a}))},bpe="$inf$",Dj=w0&&window.__SWR_DEVTOOLS_USE__,Cpe=Dj?window.__SWR_DEVTOOLS_USE__:[],Spe=()=>{Dj&&(window.__SWR_DEVTOOLS_REACT__=W)},xpe=e=>la(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ew=()=>yi(Nj,c.useContext(oS)),wpe=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=ww(t),[,,,l]=ti.get($w);if(i.startsWith(bpe))return n(...a);const s=l[i];return fn(s)?n(...a):(delete l[i],s)}),r),$pe=Cpe.concat(wpe),Epe=e=>function(...n){const r=Ew(),[o,a,i]=xpe(n),l=jj(r,i);let s=e;const{use:u}=l,d=(u||[]).concat($pe);for(let f=d.length;f--;)s=d[f](s);return s(o,a||l.fetcher||null,l)},Ppe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Spe();const KO=W.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Sb={dedupe:!0},Ope=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m}=n,[h,g,v,p]=ti.get(r),[y,b]=ww(e),C=c.useRef(!1),S=c.useRef(!1),$=c.useRef(y),x=c.useRef(t),w=c.useRef(n),O=()=>w.current,E=()=>O().isVisible()&&O().isOnline(),[P,M,D,R]=Oj(r,y),_=c.useRef({}).current,T=fn(i)?n.fallback[y]:i,k=(re,oe)=>{for(const te in _){const ee=te;if(ee==="data"){if(!o(re[ee],oe[ee])&&(!fn(re[ee])||!o(K,oe[ee])))return!1}else if(oe[ee]!==re[ee])return!1}return!0},N=c.useMemo(()=>{const re=!y||!t?!1:fn(l)?O().isPaused()||a?!1:fn(s)?!0:s:l,oe=fe=>{const le=yi(fe);return delete le._k,re?{isValidating:!0,isLoading:!0,...le}:le},te=P(),ee=R(),ie=oe(te),de=te===ee?ie:oe(ee);let he=ie;return[()=>{const fe=oe(P());return k(fe,he)?(he.data=fe.data,he.isLoading=fe.isLoading,he.isValidating=fe.isValidating,he.error=fe.error,he):(he=fe,fe)},()=>de]},[r,y]),j=Pj.useSyncExternalStore(c.useCallback(re=>D(y,(oe,te)=>{k(te,oe)||re()}),[r,y]),N[0],N[1]),A=!C.current,B=h[y]&&h[y].length>0,z=j.data,H=fn(z)?T:z,V=j.error,U=c.useRef(H),K=m?fn(z)?U.current:z:H,Y=B&&!fn(V)?!1:A&&!fn(l)?l:O().isPaused()?!1:a?fn(H)?!1:s:fn(H)||s,G=!!(y&&t&&A&&Y),q=fn(j.isValidating)?G:j.isValidating,J=fn(j.isLoading)?G:j.isLoading,Q=c.useCallback(async re=>{const oe=x.current;if(!y||!oe||S.current||O().isPaused())return!1;let te,ee,ie=!0;const de=re||{},he=!v[y]||!de.dedupe,fe=()=>HO?!S.current&&y===$.current&&C.current:y===$.current,le={isValidating:!1,isLoading:!1},me=()=>{M(le)},ye=()=>{const ve=v[y];ve&&ve[1]===ee&&delete v[y]},ge={isValidating:!0};fn(P().data)&&(ge.isLoading=!0);try{if(he&&(M(ge),n.loadingTimeout&&fn(P().data)&&setTimeout(()=>{ie&&fe()&&O().onLoadingSlow(y,n)},n.loadingTimeout),v[y]=[oe(b),rS()]),[te,ee]=v[y],te=await te,he&&setTimeout(ye,n.dedupingInterval),!v[y]||v[y][1]!==ee)return he&&fe()&&O().onDiscarded(y),!1;le.error=qr;const ve=g[y];if(!fn(ve)&&(ee<=ve[0]||ee<=ve[1]||ve[1]===0))return me(),he&&fe()&&O().onDiscarded(y),!1;const $e=P().data;le.data=o($e,te)?$e:te,he&&fe()&&O().onSuccess(te,y,n)}catch(ve){ye();const $e=O(),{shouldRetryOnError:Ce}=$e;$e.isPaused()||(le.error=ve,he&&fe()&&($e.onError(ve,y,$e),(Ce===!0||la(Ce)&&Ce(ve))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||E())&&$e.onErrorRetry(ve,y,$e,Oe=>{const Re=h[y];Re&&Re[0]&&Re[0](pd.ERROR_REVALIDATE_EVENT,Oe)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ie=!1,me(),!0},[y,r]),ne=c.useCallback((...re)=>_j(r,$.current,...re),[]);if(vg(()=>{x.current=t,w.current=n,fn(z)||(U.current=z)}),vg(()=>{if(!y)return;const re=Q.bind(qr,Sb);let oe=0;const ee=Ppe(y,h,(ie,de={})=>{if(ie==pd.FOCUS_EVENT){const he=Date.now();O().revalidateOnFocus&&he>oe&&E()&&(oe=he+O().focusThrottleInterval,re())}else if(ie==pd.RECONNECT_EVENT)O().revalidateOnReconnect&&E()&&re();else{if(ie==pd.MUTATE_EVENT)return Q();if(ie==pd.ERROR_REVALIDATE_EVENT)return Q(de)}});return S.current=!1,$.current=y,C.current=!0,M({_k:b}),Y&&(fn(H)||kf?re():fpe(re)),()=>{S.current=!0,ee()}},[y]),vg(()=>{let re;function oe(){const ee=la(u)?u(P().data):u;ee&&re!==-1&&(re=setTimeout(te,ee))}function te(){!P().error&&(d||O().isVisible())&&(f||O().isOnline())?Q(Sb).then(oe):oe()}return oe(),()=>{re&&(clearTimeout(re),re=-1)}},[u,d,f,y]),c.useDebugValue(K),a&&fn(H)&&y){if(!HO&&kf)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,w.current=n,S.current=!1;const re=p[y];if(!fn(re)){const oe=ne(re);KO(oe)}if(fn(V)){const oe=Q(Sb);fn(K)||(oe.status="fulfilled",oe.value=!0),KO(oe)}else throw V}return{mutate:ne,get data(){return _.data=!0,K},get error(){return _.error=!0,V},get isValidating(){return _.isValidating=!0,q},get isLoading(){return _.isLoading=!0,J}}},Ipe=mg.defineProperty(ype,"defaultValue",{value:Nj}),Pw=Epe(Ope);function gg(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=wh(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,l=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}const Mpe={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},Rpe={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},_pe={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Tpe={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Npe={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},jpe={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Dpe={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Fpe={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},kpe={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Lpe={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Ape={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Bpe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},zpe={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Hpe={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Vpe={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Wpe={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},Kpe={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},Upe={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},Gpe={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},qpe={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},Ype={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},Xpe={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},Qpe={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},Zpe={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},Jpe={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},ehe={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},the={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"默认",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},nhe={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"默認",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};function rhe(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,a=n,i=gg(r),l;try{for(i.s();!(l=i.n()).done;){var s=l.value;if(a=Object(o)[s],o=Object(o)[s],a===void 0)return n}}catch(u){i.e(u)}finally{i.f()}return a}var wn=function(t,n){return{getMessage:function(o,a){return rhe(n,o,a)||a},locale:t}},ohe=wn("mn_MN",Wpe),ahe=wn("ar_EG",Mpe),Rc=wn("zh_CN",the),ihe=wn("en_US",jpe),lhe=wn("en_GB",Npe),she=wn("vi_VN",ehe),che=wn("it_IT",zpe),uhe=wn("ja_JP",Hpe),dhe=wn("es_ES",Dpe),fhe=wn("ca_ES",Rpe),mhe=wn("ru_RU",qpe),vhe=wn("sr_RS",Xpe),ghe=wn("ms_MY",Kpe),phe=wn("zh_TW",nhe),hhe=wn("fr_FR",kpe),yhe=wn("pt_BR",Gpe),bhe=wn("ko_KR",Vpe),Che=wn("id_ID",Bpe),She=wn("de_DE",Tpe),xhe=wn("fa_IR",Fpe),whe=wn("tr_TR",Zpe),$he=wn("pl_PL",Upe),Ehe=wn("hr_",Ape),Phe=wn("th_TH",Qpe),Ohe=wn("cs_cz",_pe),Ihe=wn("sk_SK",Ype),Mhe=wn("he_IL",Lpe),Rhe=wn("uk_UA",Jpe),eu={"mn-MN":ohe,"ar-EG":ahe,"zh-CN":Rc,"en-US":ihe,"en-GB":lhe,"vi-VN":she,"it-IT":che,"ja-JP":uhe,"es-ES":dhe,"ca-ES":fhe,"ru-RU":mhe,"sr-RS":vhe,"ms-MY":ghe,"zh-TW":phe,"fr-FR":hhe,"pt-BR":yhe,"ko-KR":bhe,"id-ID":Che,"de-DE":She,"fa-IR":xhe,"tr-TR":whe,"pl-PL":$he,"hr-HR":Ehe,"th-TH":Phe,"cs-CZ":Ohe,"sk-SK":Ihe,"he-IL":Mhe,"uk-UA":Rhe},_he=Object.keys(eu),Fj=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return _he.find(function(r){var o=r.toLocaleLowerCase();return o.includes(n)})},xb,Lf={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},kj=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,o=1103547991^n,a=0,i;a>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&o)+(r>>>0)},Ow=Uc(function(e){return e}),Lj={theme:Ow,token:I(I({},Lf),No==null||(xb=No.defaultAlgorithm)===null||xb===void 0?void 0:xb.call(No,No==null?void 0:No.defaultSeed)),hashId:"pro-".concat(kj(JSON.stringify(Lf)))},The=function(){return Lj};const Nhe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Lf,emptyTheme:Ow,hashCode:kj,token:Lj,useToken:The},Symbol.toStringTag,{value:"Module"}));var to=function(t,n){return new Jt(t).setAlpha(n).toRgbString()},jhe=function(){return typeof No>"u"||!No?Nhe:No},Aa=jhe(),Jd=Aa.useToken,_c=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}},wb=function(t){return{color:t.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(t.motionDurationSlow),"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}};function un(e,t){var n,r=c.useContext(Ca),o=r.token,a=o===void 0?{}:o,i=c.useContext(Ca),l=i.hashId,s=l===void 0?"":l,u=i.theme,d=Jd(),f=d.token,m=c.useContext(bt.ConfigContext),h=m.getPrefixCls;return a.layout||(a=I({},f)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(h("pro")),a.antCls=".".concat(h()),{wrapSSR:np({theme:u,token:a,hashId:s,path:[e]},function(){return t(a)}),hashId:s}}var Dhe=function(t,n){var r,o,a,i,l,s=I({},t);return I(I({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:s==null||(r=s.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:to(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},s),{},{header:I({colorBgHeader:to(n.colorBgElevated,.6),colorBgScrollHeader:to(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:to(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(s==null||(o=s.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=s.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:to(n.colorTextBase,.95),colorBgRightActionsItemHover:to(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},s.header),sider:I({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:to(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:to(n.colorTextBase,.06),colorBgMenuItemHover:to(n.colorTextBase,.03),colorBgMenuItemSelected:to(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:to(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:to(n.colorTextBase,.95)},s.sider),pageContainer:I({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((i=s.pageContainer)===null||i===void 0?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=s.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},s.pageContainer)})},Fhe=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(gye(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){Op(e,t+1)},r.onerror=function(){Op(e,t+1)}),Bj.add(n),document.body.appendChild(r)}}function zj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?Op(t.reverse()):Op([t]));var o=c.forwardRef(function(a,i){var l=a.type,s=a.children,u=ze(a,vye),d=null;return a.type&&(d=c.createElement("use",{xlinkHref:"#".concat(l)})),s&&(d=s),c.createElement(mye,be({},r,u,{ref:i}),d)});return o.displayName="Iconfont",o}var pye=function(t){return L({},t.componentCls,L(L(L(L(L(L(L(L({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":L({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),L(L({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),L({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),L({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",L(L({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",L({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",L(L(L({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function hye(e){return un("FieldLabel",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[pye(n)]})}var yye=function(t,n){var r,o,a,i=t.label,l=t.onClear,s=t.value,u=t.disabled,d=t.onLabelClick,f=t.ellipsis,m=t.placeholder,h=t.className,g=t.formatter,v=t.bordered,p=t.style,y=t.downIcon,b=t.allowClear,C=b===void 0?!0:b,S=t.valueMaxLength,$=S===void 0?41:S,x=(bt==null||(r=bt.useConfig)===null||r===void 0?void 0:r.call(bt))||{componentSize:"middle"},w=x.componentSize,O=w,E=c.useContext(bt.ConfigContext),P=E.getPrefixCls,M=P("pro-core-field-label"),D=hye(M),R=D.wrapSSR,_=D.hashId,T=Un(),k=c.useRef(null),N=c.useRef(null);c.useImperativeHandle(n,function(){return{labelRef:N,clearRef:k}});var j=function(H){return H.every(function(V){return typeof V=="string"})?H.join(","):H.map(function(V,U){var K=U===H.length-1?"":",";return typeof V=="string"?F.jsxs("span",{children:[V,K]},U):F.jsxs("span",{style:{display:"flex"},children:[V,K]},U)})},A=function(H){return g?g(H):Array.isArray(H)?j(H):H},B=function(H,V){if(V!=null&&V!==""&&(!Array.isArray(V)||V.length)){var U,K,Y=H?F.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(M,"-text"),children:[H,": "]}):"",G=A(V);if(!f)return F.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Y,A(V)]});var q=function(){var ne=Array.isArray(V)&&V.length>1,re=T.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>$&&ne?"...".concat(V.length).concat(re):""},J=q();return F.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Y,F.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(U=G.toString())===null||U===void 0||(K=U.substr)===null||K===void 0?void 0:K.call(U,0,$):G}),J]})}return H||m};return R(F.jsxs("span",{className:Z(M,_,"".concat(M,"-").concat((o=(a=t.size)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:"middle"),L(L(L(L({},"".concat(M,"-active"),!!s||s===0),"".concat(M,"-disabled"),u),"".concat(M,"-bordered"),v),"".concat(M,"-allow-clear"),C),h),style:p,ref:N,onClick:function(){var H;t==null||(H=t.onClick)===null||H===void 0||H.call(t)},children:[B(i,s),(s||s===0)&&C&&F.jsx(Ha,{role:"button",title:T.getMessage("form.lightFilter.clear","清除"),className:Z("".concat(M,"-icon"),_,"".concat(M,"-close")),onClick:function(H){u||l==null||l(),H.stopPropagation()},ref:k}),y!==!1?y??F.jsx(Gh,{className:Z("".concat(M,"-icon"),_,"".concat(M,"-arrow"))}):null]}))},$i=W.forwardRef(yye),yo=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},bye=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,GO=function(t){return t==="*"||t==="x"||t==="X"},qO=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Cye=function(t,n){return et(t)!==et(n)?[String(t),String(n)]:[t,n]},Sye=function(t,n){if(GO(t)||GO(n))return 0;var r=Cye(qO(t),qO(n)),o=X(r,2),a=o[0],i=o[1];return a>i?1:a"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},Rm=function(t,n){var r=Es(Hj(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return yo(r)},wye=function(t){return L(L(L({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function $ye(e){return un("FilterDropdown",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[wye(n)]})}var Eye=function(t){var n=t.children,r=t.label,o=t.footer,a=t.open,i=t.onOpenChange,l=t.disabled,s=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=c.useContext(bt.ConfigContext),h=m.getPrefixCls,g=h("pro-core-field-dropdown"),v=$ye(g),p=v.wrapSSR,y=v.hashId,b=Rm(a||u||!1,i||s),C=c.useRef(null);return p(F.jsx(Cs,I(I({placement:f,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:F.jsxs("div",{ref:C,className:Z("".concat(g,"-overlay"),L(L({},"".concat(g,"-overlay-").concat(f),f),"hashId",y)),children:[F.jsx(bt,{getPopupContainer:function(){return C.current||document.body},children:F.jsx("div",{className:"".concat(g,"-content ").concat(y).trim(),children:n})}),o&&F.jsx(Whe,I({disabled:l,footerRender:d},o))]}),children:F.jsx("span",{className:"".concat(g,"-label ").concat(y).trim(),children:r})})))},Pye=function(t){return L({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Oye(e){return un("LabelIconTip",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[Pye(n)]})}var Iye=W.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,o=e.subTitle,a=c.useContext(bt.ConfigContext),i=a.getPrefixCls,l=i("pro-core-label-tip"),s=Oye(l),u=s.wrapSSR,d=s.hashId;if(!n&&!o)return F.jsx(F.Fragment,{children:t});var f=typeof n=="string"||W.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||F.jsx(d0e,{});return u(F.jsxs("div",{className:Z(l,d),onMouseDown:function(g){return g.stopPropagation()},onMouseLeave:function(g){return g.stopPropagation()},onMouseMove:function(g){return g.stopPropagation()},children:[F.jsx("div",{className:Z("".concat(l,"-title"),d,L({},"".concat(l,"-title-ellipsis"),r)),children:t}),o&&F.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:o}),n&&F.jsx(Go,I(I({},f),{},{children:F.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:m})}))]}))}),Vj=W.createContext({}),Wj={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n="month",r="quarter";return function(o,a){var i=a.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var s=i.startOf;i.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var h=this.quarter()-1;return m?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return s.bind(this)(u,d)}}})})(Wj);var Mye=Wj.exports;const Rye=jn(Mye);var gs=function(t){return t==null};zt.extend(Rye);var Kj={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function XO(e){return Object.prototype.toString.call(e)==="[object Object]"}function _ye(e){if(XO(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(XO(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var aS=function(t){return!!(t!=null&&t._isAMomentObject)},QO=function(t,n,r){if(!n)return t;if(zt.isDayjs(t)||aS(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(Kj[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Tye=function e(t,n,r,o,a){var i={};return typeof window>"u"||et(t)!=="object"||gs(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(l){var s=a?[a,l].flat(1):[l],u=Or(r,s)||"text",d="text",f;typeof u=="string"?d=u:u&&(d=u.valueType,f=u.dateFormat);var m=t[l];if(!(gs(m)&&o)){if(_ye(m)&&!Array.isArray(m)&&!zt.isDayjs(m)&&!aS(m)){i[l]=e(m,n,r,o,[l]);return}if(Array.isArray(m)){i[l]=m.map(function(h,g){return zt.isDayjs(h)||aS(h)?QO(h,f||n,d):e(h,n,r,o,[l,"".concat(g)].flat(1))});return}i[l]=QO(m,f||n,d)}}),i)},ZO=function(t,n){return typeof n=="function"?n(zt(t)):zt(t).format(n)},Nye=function(t,n){var r=Array.isArray(t)?t:[],o=X(r,2),a=o[0],i=o[1],l,s;Array.isArray(n)?(l=n[0],s=n[1]):et(n)==="object"&&n.type==="mask"?(l=n.format,s=n.format):(l=n,s=n);var u=a?ZO(a,l):"",d=i?ZO(i,s):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f};function Ip(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=c.useState(e),o=X(r,2),a=o[0],i=o[1],l=Dye(e);return c.useEffect(function(){var s=setTimeout(function(){i(l.current)},t);return function(){return clearTimeout(s)}},n?[t].concat(Te(n)):void 0),a}function rs(e,t,n,r){if(e===t)return!0;if(e&&t&&et(e)==="object"&&et(t)==="object"){if(e.constructor!==t.constructor)return!1;var o,a,i;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!rs(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var l=gg(e.entries()),s;try{for(l.s();!(s=l.n()).done;)if(a=s.value,!t.has(a[0]))return!1}catch(g){l.e(g)}finally{l.f()}var u=gg(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(a=d.value,!rs(a[1],t.get(a[0]),n,r))return!1}catch(g){u.e(g)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=gg(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(a=m.value,!t.has(a[0]))return!1}catch(g){f.e(g)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=o;a--!==0;){var h=i[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!rs(e[h],t[h],n,r))return r&&console.log(h),!1}return!0}return e!==e&&t!==t}var kye=function(t,n,r){return rs(t,n,r)};function Gj(e,t){var n=c.useRef();return kye(e,n.current,t)||(n.current=e),n.current}function Lye(e,t,n){c.useEffect(e,Gj(t||[],n))}function no(e,t){return W.useMemo(e,Gj(t))}var Aye=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,gl=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Aye};function Bye(e,t){var n=typeof e.pageName=="string"?e.title:t;c.useEffect(function(){gl()&&n&&(document.title=n)},[e.title,n])}var $b=0;function zye(e){var t=c.useRef(null),n=c.useState(function(){return e.proFieldKey?e.proFieldKey.toString():($b+=1,$b.toString())}),r=X(n,1),o=r[0],a=c.useRef(o),i=function(){var d=Tr(an().mark(function f(){var m,h,g,v;return an().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),g=new AbortController,t.current=g,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(b,C){var S;(S=t.current)===null||S===void 0||(S=S.signal)===null||S===void 0||S.addEventListener("abort",function(){C(new Error("aborted"))})})]);case 5:return v=y.sent,y.abrupt("return",v);case 7:case"end":return y.stop()}},f)}));return function(){return d.apply(this,arguments)}}();c.useEffect(function(){return function(){$b+=1}},[]);var l=Pw([a.current,e.params],i,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),s=l.data,u=l.error;return[s||u]}var Hye=function(t){var n=c.useRef();return c.useEffect(function(){n.current=t}),n.current},Vye=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function Wye(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Iw=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Mw=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(JO+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var o=63&r[t];n+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return n},qj=function(){return typeof window>"u"?e6():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():e6()};zt.extend(FN);var t6=function(t){return!!(t!=null&&t._isAMomentObject)},_m=function e(t,n){return gs(t)||zt.isDayjs(t)||t6(t)?t6(t)?zt(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?zt(t):zt(t,n)},Kye=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Uye(e){var t={};return Kye.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var Gye="valueType request plain renderFormItem render text formItemProps valueEnum",qye="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Yj(e){var t="".concat(Gye," ").concat(qye).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function Yye(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&et(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var Xye=function(t){var n=t.color,r=t.children;return F.jsx(Jo,{color:n,text:r})},Ei=function(t){return Yye(t)==="map"?t:new Map(Object.entries(t||{}))},Qye={Success:function(t){var n=t.children;return F.jsx(Jo,{status:"success",text:n})},Error:function(t){var n=t.children;return F.jsx(Jo,{status:"error",text:n})},Default:function(t){var n=t.children;return F.jsx(Jo,{status:"default",text:n})},Processing:function(t){var n=t.children;return F.jsx(Jo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return F.jsx(Jo,{status:"warning",text:n})},success:function(t){var n=t.children;return F.jsx(Jo,{status:"success",text:n})},error:function(t){var n=t.children;return F.jsx(Jo,{status:"error",text:n})},default:function(t){var n=t.children;return F.jsx(Jo,{status:"default",text:n})},processing:function(t){var n=t.children;return F.jsx(Jo,{status:"processing",text:n})},warning:function(t){var n=t.children;return F.jsx(Jo,{status:"warning",text:n})}},Nu=function e(t,n,r){if(Array.isArray(t))return F.jsx(hi,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var o=Ei(n);if(!o.has(t)&&!o.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=o.get(t)||o.get("".concat(t));if(!a)return F.jsx(W.Fragment,{children:(t==null?void 0:t.label)||t},r);var i=a.status,l=a.color,s=Qye[i||"Init"];return s?F.jsx(s,{children:a.text},r):l?F.jsx(Xye,{color:l,children:a.text},r):F.jsx(W.Fragment,{children:a.text||a},r)},iS={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=p();r.configure=p,r.stringify=r,r.default=r,t.stringify=r,t.configure=p,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function a(y){return y.length<5e3&&!o.test(y)?`"${y}"`:JSON.stringify(y)}function i(y){if(y.length>200)return y.sort();for(let b=1;bC;)y[S]=y[S-1],S--;y[S]=C}return y}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function s(y){return l.call(y)!==void 0&&y.length!==0}function u(y,b,C){y.length= 1`)}return C===void 0?1/0:C}function h(y){return y===1?"1 item":`${y} items`}function g(y){const b=new Set;for(const C of y)(typeof C=="string"||typeof C=="number")&&b.add(String(C));return b}function v(y){if(n.call(y,"strict")){const b=y.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return C=>{let S=`Object can not safely be stringified. Received type ${typeof C}`;throw typeof C!="function"&&(S+=` (${C.toString()})`),new Error(S)}}}function p(y){y={...y};const b=v(y);b&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const C=d(y),S=f(y,"bigint"),$=f(y,"deterministic"),x=m(y,"maximumDepth"),w=m(y,"maximumBreadth");function O(R,_,T,k,N,j){let A=_[R];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(R)),A=k.call(_,R,A),typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(T.indexOf(A)!==-1)return C;let B="",z=",";const H=j;if(Array.isArray(A)){if(A.length===0)return"[]";if(xw){const ne=A.length-w-1;B+=`${z}"... ${h(ne)} not stringified"`}return N!==""&&(B+=` ${H}`),T.pop(),`[${B}]`}let V=Object.keys(A);const U=V.length;if(U===0)return"{}";if(xw){const K=B-w;H+=`${V}"...": "${h(K)} not stringified"`,V=z}return V!==""&&(H=` ${N}${H} -${j}`),T.pop(),`{${H}}`}case"number":return isFinite(_)?String(_):b?b(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(S)return String(_);default:return b?b(_):void 0}}function M(R,_,T){switch(typeof _){case"string":return a(_);case"object":{if(_===null)return"null";if(typeof _.toJSON=="function"){if(_=_.toJSON(R),typeof _!="object")return M(R,_,T);if(_===null)return"null"}if(T.indexOf(_)!==-1)return C;let k="";if(Array.isArray(_)){if(_.length===0)return"[]";if(xw){const U=_.length-w-1;k+=`,"... ${h(U)} not stringified"`}return T.pop(),`[${k}]`}let N=Object.keys(_);const j=N.length;if(j===0)return"{}";if(xw){const z=j-w;k+=`${A}"...":"${h(z)} not stringified"`}return T.pop(),`{${k}}`}case"number":return isFinite(_)?String(_):b?b(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(S)return String(_);default:return b?b(_):void 0}}function D(R,_,T){if(arguments.length>1){let k="";if(typeof T=="number"?k=" ".repeat(Math.min(T,10)):typeof T=="string"&&(k=T.slice(0,10)),_!=null){if(typeof _=="function")return O("",{"":R},[],_,k,"");if(Array.isArray(_))return E("",R,[],g(_),k,"")}if(k.length!==0)return P("",R,[],k,"")}return M("",R,[])}return D}})(iS,iS.exports);var Zye=iS.exports;const Jye=jn(Zye),ebe=Jye.configure;var tbe=ebe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});const n6=tbe;var Mp={exports:{}};Mp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,l="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",m="[object Error]",h="[object Function]",g="[object GeneratorFunction]",v="[object Map]",p="[object Number]",y="[object Null]",b="[object Object]",C="[object Proxy]",S="[object RegExp]",$="[object Set]",x="[object String]",w="[object Undefined]",O="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",k="[object Uint8Array]",N="[object Uint8ClampedArray]",j="[object Uint16Array]",A="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,V={};V[M]=V[D]=V[R]=V[_]=V[T]=V[k]=V[N]=V[j]=V[A]=!0,V[l]=V[s]=V[E]=V[d]=V[P]=V[f]=V[m]=V[h]=V[v]=V[p]=V[b]=V[S]=V[$]=V[x]=V[O]=!1;var U=typeof lr=="object"&&lr&&lr.Object===Object&&lr,K=typeof self=="object"&&self&&self.Object===Object&&self,Y=U||K||Function("return this")(),G=t&&!t.nodeType&&t,q=G&&!0&&e&&!e.nodeType&&e,J=q&&q.exports===G,Q=J&&U.process,ne=function(){try{var ce=q&&q.require&&q.require("util").types;return ce||Q&&Q.binding&&Q.binding("util")}catch{}}(),re=ne&&ne.isTypedArray;function oe(ce,we,De){switch(De.length){case 0:return ce.call(we);case 1:return ce.call(we,De[0]);case 2:return ce.call(we,De[0],De[1]);case 3:return ce.call(we,De[0],De[1],De[2])}return ce.apply(we,De)}function te(ce,we){for(var De=-1,Et=Array(ce);++De-1}function it(ce,we){var De=this.__data__,Et=ft(De,ce);return Et<0?(++this.size,De.push([ce,we])):De[Et][1]=we,this}He.prototype.clear=Me,He.prototype.delete=Le,He.prototype.get=Xe,He.prototype.has=Ke,He.prototype.set=it;function ot(ce){var we=-1,De=ce==null?0:ce.length;for(this.clear();++we1?De[ln-1]:void 0,Ln=ln>2?De[2]:void 0;for(Pn=ce.length>3&&typeof Pn=="function"?(ln--,Pn):void 0,Ln&&$n(De[0],De[1],Ln)&&(Pn=ln<3?void 0:Pn,ln=1),we=Object(we);++Et-1&&ce%1==0&&ce0){if(++we>=o)return arguments[0]}else we=0;return ce.apply(void 0,arguments)}}function Ii(ce){if(ce!=null){try{return ye.call(ce)}catch{}try{return ce+""}catch{}}return""}function Ea(ce,we){return ce===we||ce!==ce&&we!==we}var Ol=dt(function(){return arguments}())?dt:function(ce){return Sn(ce)&&ge.call(ce,"callee")&&!ke.call(ce,"callee")},Il=Array.isArray;function Ml(ce){return ce!=null&&Rn(ce.length)&&!Nt(ce)}function Ku(ce){return Sn(ce)&&Ml(ce)}var xt=nt||Ck;function Nt(ce){if(!En(ce))return!1;var we=mn(ce);return we==h||we==g||we==u||we==C}function Rn(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=i}function En(ce){var we=typeof ce;return ce!=null&&(we=="object"||we=="function")}function Sn(ce){return ce!=null&&typeof ce=="object"}function Is(ce){if(!Sn(ce)||mn(ce)!=b)return!1;var we=qe(ce);if(we===null)return!0;var De=ge.call(we,"constructor")&&we.constructor;return typeof De=="function"&&De instanceof De&&ye.call(De)==Ce}var Ms=re?ee(re):jt;function Um(ce){return $t(ce,Rl(ce))}function Rl(ce){return Ml(ce)?ct(ce,!0):Qt(ce)}var yk=Ut(function(ce,we,De){kn(ce,we,De)});function bk(ce){return function(){return ce}}function I$(ce){return ce}function Ck(){return!1}e.exports=yk})(Mp,Mp.exports);var nbe=Mp.exports;const rbe=jn(nbe);function obe(e){return et(e)!=="object"?!1:e===null?!0:!(W.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var abe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(n).reduce(function(l,s){var u=n[s];return gs(u)||(l[s]=u),l},{});if(Object.keys(o).length<1||typeof window>"u"||et(t)!=="object"||gs(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},i=function l(s,u){var d=Array.isArray(s),f=d?[]:{};return s==null||s===void 0?f:(Object.keys(s).forEach(function(m){var h=function C(S,$){return Array.isArray(S)&&S.forEach(function(x,w){if(x){var O=$==null?void 0:$[w];typeof x=="function"&&($[w]=x($,m,s)),et(x)==="object"&&!Array.isArray(x)&&Object.keys(x).forEach(function(E){var P=O==null?void 0:O[E];if(typeof x[E]=="function"&&P){var M=x[E](O[E],m,s);O[E]=et(M)==="object"?M[E]:M}else et(x[E])==="object"&&Array.isArray(x[E])&&P&&C(x[E],P)}),et(x)==="object"&&Array.isArray(x)&&O&&C(x,O)}}),m},g=u?[u,m].flat(1):[m].flat(1),v=s[m],p=Or(o,g),y=function(){var S,$,x=!1;if(typeof p=="function"){$=p==null?void 0:p(v,m,s);var w=et($);w!=="object"&&w!=="undefined"?(S=m,x=!0):S=$}else S=h(p,v);if(Array.isArray(S)){f=or(f,S,v);return}et(S)==="object"&&!Array.isArray(a)?a=rbe(a,S):et(S)==="object"&&Array.isArray(a)?f=I(I({},f),S):(S!==null||S!==void 0)&&(f=or(f,[S],x?$:v))};if(p&&typeof p=="function"&&y(),!(typeof window>"u")){if(obe(v)){var b=l(v,g);if(Object.keys(b).length<1)return;f=or(f,[m],b);return}y()}}),r?f:s)};return a=Array.isArray(t)&&Array.isArray(a)?Te(i(t)):Mw({},i(t),a),a},Sa=function(t){return t===void 0?{}:Es(pa,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Ws(e){var t=typeof window>"u",n=c.useState(function(){return t?!1:window.matchMedia(e).matches}),r=X(n,2),o=r[0],a=r[1];return c.useLayoutEffect(function(){if(!t){var i=window.matchMedia(e),l=function(u){return a(u.matches)};return i.addListener(l),function(){return i.removeListener(l)}}},[e]),o}var Li={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},ibe=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Li).find(function(r){var o=Li[r].matchMedia;return!!window.matchMedia(o).matches});return t=n,t},lbe=function(){var t=Ws(Li.md.matchMedia),n=Ws(Li.lg.matchMedia),r=Ws(Li.xxl.matchMedia),o=Ws(Li.xl.matchMedia),a=Ws(Li.sm.matchMedia),i=Ws(Li.xs.matchMedia),l=c.useState(ibe()),s=X(l,2),u=s[0],d=s[1];return c.useEffect(function(){if(r){d("xxl");return}if(o){d("xl");return}if(n){d("lg");return}if(t){d("md");return}if(a){d("sm");return}if(i){d("xs");return}d("md")},[t,n,r,o,a,i]),u};function so(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var d=[];i.forEach(function(m,h){d.push({key:h,value:m})}),d=d.reduce(function(m,h){return(m[h.key]=m[h.key]||[]).push(h),m},{}),d=Object.keys(d).map(function(m){var h=d[m];return h.length===1?[m,h[0].value]:[m,h.map(function(g){var v=g.value;return v})]});var f=ef({},e);return d.forEach(function(m){var h=m[0],g=m[1];f[h]=ube(h,g,{},e)}),f},[t.disabled,e,i]);function s(d){if(!(typeof window>"u"||!window.URL)){var f=sbe(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),i.toString()!==f.searchParams.toString()&&o({})}}c.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||s(ef(ef({},e),l))},[t.disabled,l]);var u=function(d){s(d)};return c.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){o({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[l,u]}var cbe={true:!0,false:!1};function ube(e,t,n,r){if(!n)return t;var o=n[e],a=t===void 0?r[e]:t;return o===Number?Number(a):o===Boolean||t==="true"||t==="false"?cbe[a]:Array.isArray(o)?o.find(function(i){return i==a})||r[e]:a}var dbe=W.createContext({});const $0=dbe;var fbe=["children","Wrapper"],mbe=["children","Wrapper"],Qj=c.createContext({grid:!1,colProps:void 0,rowProps:void 0}),vbe=function(t){var n=t.grid,r=t.rowProps,o=t.colProps;return{grid:!!n,RowWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,s=i.Wrapper,u=ze(i,fbe);return n?F.jsx(Cm,I(I(I({gutter:8},r),u),{},{children:l})):s?F.jsx(s,{children:l}):l},ColWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,s=i.Wrapper,u=ze(i,mbe),d=c.useMemo(function(){var f=I(I({},o),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?F.jsx(fl,I(I({},d),{},{children:l})):s?F.jsx(s,{children:l}):l}}},Rw=function(t){var n=c.useMemo(function(){return et(t)==="object"?t:{grid:t}},[t]),r=c.useContext(Qj),o=r.grid,a=r.colProps;return c.useMemo(function(){return vbe({grid:!!(o||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,o,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},gbe=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],pbe=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],r6={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},hbe=["switch","radioButton","radio","rate"];function _w(e,t){e.displayName="ProFormComponent";var n=function(a){var i=I(I({},a==null?void 0:a.filedConfig),t)||{},l=i.valueType,s=i.customLightMode,u=i.lightFilterLabelFormatter,d=i.valuePropName,f=d===void 0?"value":d,m=i.ignoreWidth,h=i.defaultProps,g=ze(i,gbe),v=I(I({},h),a),p=v.label,y=v.tooltip,b=v.placeholder,C=v.width,S=v.bordered,$=v.messageVariables,x=v.ignoreFormItem,w=v.transform,O=v.convertValue,E=v.readonly,P=v.allowClear;v.colSize;var M=v.getFormItemProps,D=v.getFieldProps;v.filedConfig;var R=v.cacheForSwr,_=v.proFieldProps,T=ze(v,pbe),k=l||T.valueType,N=c.useMemo(function(){return m||hbe.includes(k)},[m,k]),j=c.useState(),A=X(j,2),B=A[1],z=c.useState(),H=X(z,2),V=H[0],U=H[1],K=W.useContext($0),Y=no(function(){return{formItemProps:M==null?void 0:M(),fieldProps:D==null?void 0:D()}},[D,M,T.dependenciesValues,V]),G=no(function(){var ge=I(I(I(I({},x?yo({value:T.value}):{}),{},{placeholder:b,disabled:a.disabled},K.fieldProps),Y.fieldProps),T.fieldProps);return ge.style=yo(ge==null?void 0:ge.style),ge},[x,T.value,T.fieldProps,b,a.disabled,K.fieldProps,Y.fieldProps]),q=Uye(T),J=no(function(){return I(I(I(I({},K.formItemProps),q),Y.formItemProps),T.formItemProps)},[Y.formItemProps,K.formItemProps,T.formItemProps,q]),Q=no(function(){return I(I({messageVariables:$},g),J)},[g,J,$]);Sf(!T.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ne=c.useContext(ul),re=ne.prefixName,oe=no(function(){var ge,ve=Q==null?void 0:Q.name;Array.isArray(ve)&&(ve=ve.join("_")),Array.isArray(re)&&ve&&(ve="".concat(re.join("."),".").concat(ve));var $e=ve&&"form-".concat((ge=K.formKey)!==null&&ge!==void 0?ge:"","-field-").concat(ve);return $e},[n6(Q==null?void 0:Q.name),re,K.formKey]),te=Ba(function(){var ge;M||D?U([]):T.renderFormItem&&B([]);for(var ve=arguments.length,$e=new Array(ve),Ce=0;Ce0?ee.map(function(de,he){var fe=ie==null?void 0:ie[he],le=(fe==null?void 0:fe["data-item"])||{};return I(I({},le),de)}):[]},oe=function te(ee){return ee.map(function(ie,de){var he,fe=ie,le=fe.className,me=fe.optionType,ye=ze(fe,Pbe),ge=ie[j],ve=ie[B],$e=(he=ie[H])!==null&&he!==void 0?he:[];return me==="optGroup"||ie.options?I(I({label:ge},ye),{},{data_title:ge,title:ge,key:ve??(ge==null?void 0:ge.toString()),children:te($e)}):I(I({title:ge},ye),{},{data_title:ge,value:ve??de,key:ve??(ge==null?void 0:ge.toString()),"data-item":ie,className:"".concat(Q,"-option ").concat(le||"").trim(),label:(r==null?void 0:r(ie))||ge})})};return F.jsx(Ta,I(I({ref:G,className:ne,allowClear:!0,autoClearSearchValue:u,disabled:$,mode:o,showSearch:D,searchValue:K,optionFilterProp:y,optionLabelProp:C,onClear:function(){P==null||P(),w(void 0),D&&Y(void 0)}},T),{},{filterOption:T.filterOption==!1?!1:function(te,ee){var ie,de,he;return T.filterOption&&typeof T.filterOption=="function"?T.filterOption(te,I(I({},ee),{},{label:ee==null?void 0:ee.data_title})):!!(ee!=null&&(ie=ee.data_title)!==null&&ie!==void 0&&ie.toString().toLowerCase().includes(te.toLowerCase())||ee!=null&&(de=ee.label)!==null&&de!==void 0&&de.toString().toLowerCase().includes(te.toLowerCase())||ee!=null&&(he=ee.value)!==null&&he!==void 0&&he.toString().toLowerCase().includes(te.toLowerCase()))},onSearch:D?function(te){v&&w(te),a==null||a(te),Y(te)}:void 0,onChange:function(ee,ie){D&&u&&(w(void 0),a==null||a(""),Y(void 0));for(var de=arguments.length,he=new Array(de>2?de-2:0),fe=2;fe-1&&e%1==0&&e-1&&e%1==0&&e<=F1e}var jw=k1e,L1e=Ps,A1e=jw,B1e=Wa,z1e="[object Arguments]",H1e="[object Array]",V1e="[object Boolean]",W1e="[object Date]",K1e="[object Error]",U1e="[object Function]",G1e="[object Map]",q1e="[object Number]",Y1e="[object Object]",X1e="[object RegExp]",Q1e="[object Set]",Z1e="[object String]",J1e="[object WeakMap]",eCe="[object ArrayBuffer]",tCe="[object DataView]",nCe="[object Float32Array]",rCe="[object Float64Array]",oCe="[object Int8Array]",aCe="[object Int16Array]",iCe="[object Int32Array]",lCe="[object Uint8Array]",sCe="[object Uint8ClampedArray]",cCe="[object Uint16Array]",uCe="[object Uint32Array]",Tn={};Tn[nCe]=Tn[rCe]=Tn[oCe]=Tn[aCe]=Tn[iCe]=Tn[lCe]=Tn[sCe]=Tn[cCe]=Tn[uCe]=!0;Tn[z1e]=Tn[H1e]=Tn[eCe]=Tn[V1e]=Tn[tCe]=Tn[W1e]=Tn[K1e]=Tn[U1e]=Tn[G1e]=Tn[q1e]=Tn[Y1e]=Tn[X1e]=Tn[Q1e]=Tn[Z1e]=Tn[J1e]=!1;function dCe(e){return B1e(e)&&A1e(e.length)&&!!Tn[L1e(e)]}var fCe=dCe;function mCe(e){return function(t){return e(t)}}var Dw=mCe,_p={exports:{}};_p.exports;(function(e,t){var n=Zj,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,l=function(){try{var s=o&&o.require&&o.require("util").types;return s||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l})(_p,_p.exports);var Fw=_p.exports,vCe=fCe,gCe=Dw,u6=Fw,d6=u6&&u6.isTypedArray,pCe=d6?gCe(d6):vCe,kw=pCe,hCe=S1e,yCe=Tw,bCe=Po,CCe=E0,SCe=Nw,xCe=kw,wCe=Object.prototype,$Ce=wCe.hasOwnProperty;function ECe(e,t){var n=bCe(e),r=!n&&yCe(e),o=!n&&!r&&CCe(e),a=!n&&!r&&!o&&xCe(e),i=n||r||o||a,l=i?hCe(e.length,String):[],s=l.length;for(var u in e)(t||$Ce.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||SCe(u,s)))&&l.push(u);return l}var nD=ECe,PCe=Object.prototype;function OCe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PCe;return e===n}var Lw=OCe;function ICe(e,t){return function(n){return e(t(n))}}var rD=ICe,MCe=rD,RCe=MCe(Object.keys,Object),_Ce=RCe,TCe=Lw,NCe=_Ce,jCe=Object.prototype,DCe=jCe.hasOwnProperty;function FCe(e){if(!TCe(e))return NCe(e);var t=[];for(var n in Object(e))DCe.call(e,n)&&n!="constructor"&&t.push(n);return t}var kCe=FCe;function LCe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qo=LCe,ACe=Ps,BCe=qo,zCe="[object AsyncFunction]",HCe="[object Function]",VCe="[object GeneratorFunction]",WCe="[object Proxy]";function KCe(e){if(!BCe(e))return!1;var t=ACe(e);return t==HCe||t==VCe||t==zCe||t==WCe}var Aw=KCe,UCe=Aw,GCe=jw;function qCe(e){return e!=null&&GCe(e.length)&&!UCe(e)}var Du=qCe,YCe=nD,XCe=kCe,QCe=Du;function ZCe(e){return QCe(e)?YCe(e):XCe(e)}var jm=ZCe,JCe=eD,eSe=jm;function tSe(e,t){return e&&JCe(e,t,eSe)}var oD=tSe;function nSe(e){return e}var P0=nSe,rSe=P0;function oSe(e){return typeof e=="function"?e:rSe}var aD=oSe,aSe=oD,iSe=aD;function lSe(e,t){return e&&aSe(e,iSe(t))}var Bw=lSe,sSe=rD,cSe=sSe(Object.getPrototypeOf,Object),zw=cSe,uSe=Ps,dSe=zw,fSe=Wa,mSe="[object Object]",vSe=Function.prototype,gSe=Object.prototype,iD=vSe.toString,pSe=gSe.hasOwnProperty,hSe=iD.call(Object);function ySe(e){if(!fSe(e)||uSe(e)!=mSe)return!1;var t=dSe(e);if(t===null)return!0;var n=pSe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&iD.call(n)==hSe}var lD=ySe;function bSe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var DSe=jSe,FSe=O0;function kSe(e,t){var n=this.__data__,r=FSe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var LSe=kSe,ASe=SSe,BSe=MSe,zSe=TSe,HSe=DSe,VSe=LSe;function Fu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,h=n&twe?new Q2e:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,W4e.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,H4e.default)(r)?(0,B4e.default)(r,function(o,a){o===!0&&n.push(a),n.push(a+"-"+o)}):(0,L4e.default)(r)&&n.push(r)}),n};Tm.default=K4e;var Fm={};function U4e(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,i6e.default)(t.default)||{};return n.map(function(o){var a=t[o];return a&&(0,o6e.default)(a,function(i,l){r[l]||(r[l]={}),r[l]=l6e({},r[l],a[l])}),o}),r};Fm.default=s6e;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.autoprefix=void 0;var c6e=Bw,K6=d6e(c6e),u6e=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){y6e(o,r);function o(){var a,i,l,s;h6e(this,o);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$6e(o,r);function o(){var a,i,l,s;w6e(this,o);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[i]=l};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};Yw.default=P6e;Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ReactCSS=Fo.loop=Fo.handleActive=Fo.handleHover=Fo.hover=void 0;var O6e=Tm,I6e=zu(O6e),M6e=Fm,R6e=zu(M6e),_6e=Am,T6e=zu(_6e),N6e=Bm,LD=zu(N6e),j6e=zm,D6e=zu(j6e),F6e=Yw,k6e=zu(F6e);function zu(e){return e&&e.__esModule?e:{default:e}}Fo.hover=LD.default;Fo.handleHover=LD.default;Fo.handleActive=D6e.default;Fo.loop=k6e.default;var L6e=Fo.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0){if(++t>=MIe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var NIe=TIe,jIe=IIe,DIe=NIe,FIe=DIe(jIe),kIe=FIe,LIe=P0,AIe=xIe,BIe=kIe;function zIe(e,t){return BIe(AIe(e,t,LIe),e+"")}var HIe=zIe,VIe=Dm,WIe=Du,KIe=Nw,UIe=qo;function GIe(e,t,n){if(!UIe(n))return!1;var r=typeof t;return(r=="number"?WIe(n)&&KIe(t,n.length):r=="string"&&t in n)?VIe(n[t],e):!1}var qIe=GIe,YIe=HIe,XIe=qIe;function QIe(e){return YIe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&XIe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++rl?m=1:m=Math.round(f*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var h;if(d<0?h=0:d>i?h=1:h=Math.round(d*100/i)/100,o!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},Rb={},a5e=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=r*2,a.height=r*2;var i=a.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,a.width,a.height),i.fillStyle=n,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),a.toDataURL()):null},i5e=function(t,n,r,o){var a="".concat(t,"-").concat(n,"-").concat(r).concat(o?"-server":"");if(Rb[a])return Rb[a];var i=a5e(t,n,r,o);return Rb[a]=i,i};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}var C5e=function(e){g5e(n,e);var t=p5e(n);function n(){var r;f5e(this,n);for(var o=arguments.length,a=new Array(o),i=0;iw){const U=_.length-w-1;k+=`,"... ${h(U)} not stringified"`}return T.pop(),`[${k}]`}let N=Object.keys(_);const j=N.length;if(j===0)return"{}";if(xw){const z=j-w;k+=`${A}"...":"${h(z)} not stringified"`}return T.pop(),`{${k}}`}case"number":return isFinite(_)?String(_):b?b(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(S)return String(_);default:return b?b(_):void 0}}function D(R,_,T){if(arguments.length>1){let k="";if(typeof T=="number"?k=" ".repeat(Math.min(T,10)):typeof T=="string"&&(k=T.slice(0,10)),_!=null){if(typeof _=="function")return O("",{"":R},[],_,k,"");if(Array.isArray(_))return E("",R,[],g(_),k,"")}if(k.length!==0)return P("",R,[],k,"")}return M("",R,[])}return D}})(iS,iS.exports);var Zye=iS.exports;const Jye=jn(Zye),ebe=Jye.configure;var tbe=ebe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});const n6=tbe;var Mp={exports:{}};Mp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,l="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",m="[object Error]",h="[object Function]",g="[object GeneratorFunction]",v="[object Map]",p="[object Number]",y="[object Null]",b="[object Object]",C="[object Proxy]",S="[object RegExp]",$="[object Set]",x="[object String]",w="[object Undefined]",O="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",k="[object Uint8Array]",N="[object Uint8ClampedArray]",j="[object Uint16Array]",A="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,V={};V[M]=V[D]=V[R]=V[_]=V[T]=V[k]=V[N]=V[j]=V[A]=!0,V[l]=V[s]=V[E]=V[d]=V[P]=V[f]=V[m]=V[h]=V[v]=V[p]=V[b]=V[S]=V[$]=V[x]=V[O]=!1;var U=typeof lr=="object"&&lr&&lr.Object===Object&&lr,K=typeof self=="object"&&self&&self.Object===Object&&self,Y=U||K||Function("return this")(),G=t&&!t.nodeType&&t,q=G&&!0&&e&&!e.nodeType&&e,J=q&&q.exports===G,Q=J&&U.process,ne=function(){try{var ce=q&&q.require&&q.require("util").types;return ce||Q&&Q.binding&&Q.binding("util")}catch{}}(),re=ne&&ne.isTypedArray;function oe(ce,we,De){switch(De.length){case 0:return ce.call(we);case 1:return ce.call(we,De[0]);case 2:return ce.call(we,De[0],De[1]);case 3:return ce.call(we,De[0],De[1],De[2])}return ce.apply(we,De)}function te(ce,we){for(var De=-1,Et=Array(ce);++De-1}function it(ce,we){var De=this.__data__,Et=ft(De,ce);return Et<0?(++this.size,De.push([ce,we])):De[Et][1]=we,this}He.prototype.clear=Me,He.prototype.delete=Le,He.prototype.get=Xe,He.prototype.has=Ke,He.prototype.set=it;function ot(ce){var we=-1,De=ce==null?0:ce.length;for(this.clear();++we1?De[ln-1]:void 0,Ln=ln>2?De[2]:void 0;for(Pn=ce.length>3&&typeof Pn=="function"?(ln--,Pn):void 0,Ln&&$n(De[0],De[1],Ln)&&(Pn=ln<3?void 0:Pn,ln=1),we=Object(we);++Et-1&&ce%1==0&&ce0){if(++we>=o)return arguments[0]}else we=0;return ce.apply(void 0,arguments)}}function Ii(ce){if(ce!=null){try{return ye.call(ce)}catch{}try{return ce+""}catch{}}return""}function Ea(ce,we){return ce===we||ce!==ce&&we!==we}var Ol=dt(function(){return arguments}())?dt:function(ce){return Sn(ce)&&ge.call(ce,"callee")&&!ke.call(ce,"callee")},Il=Array.isArray;function Ml(ce){return ce!=null&&Rn(ce.length)&&!Nt(ce)}function Ku(ce){return Sn(ce)&&Ml(ce)}var xt=nt||Ck;function Nt(ce){if(!En(ce))return!1;var we=mn(ce);return we==h||we==g||we==u||we==C}function Rn(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=i}function En(ce){var we=typeof ce;return ce!=null&&(we=="object"||we=="function")}function Sn(ce){return ce!=null&&typeof ce=="object"}function Is(ce){if(!Sn(ce)||mn(ce)!=b)return!1;var we=qe(ce);if(we===null)return!0;var De=ge.call(we,"constructor")&&we.constructor;return typeof De=="function"&&De instanceof De&&ye.call(De)==Ce}var Ms=re?ee(re):jt;function Um(ce){return $t(ce,Rl(ce))}function Rl(ce){return Ml(ce)?ct(ce,!0):Qt(ce)}var yk=Ut(function(ce,we,De){kn(ce,we,De)});function bk(ce){return function(){return ce}}function I$(ce){return ce}function Ck(){return!1}e.exports=yk})(Mp,Mp.exports);var nbe=Mp.exports;const rbe=jn(nbe);function obe(e){return et(e)!=="object"?!1:e===null?!0:!(W.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var abe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(n).reduce(function(l,s){var u=n[s];return gs(u)||(l[s]=u),l},{});if(Object.keys(o).length<1||typeof window>"u"||et(t)!=="object"||gs(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},i=function l(s,u){var d=Array.isArray(s),f=d?[]:{};return s==null||s===void 0?f:(Object.keys(s).forEach(function(m){var h=function C(S,$){return Array.isArray(S)&&S.forEach(function(x,w){if(x){var O=$==null?void 0:$[w];typeof x=="function"&&($[w]=x($,m,s)),et(x)==="object"&&!Array.isArray(x)&&Object.keys(x).forEach(function(E){var P=O==null?void 0:O[E];if(typeof x[E]=="function"&&P){var M=x[E](O[E],m,s);O[E]=et(M)==="object"?M[E]:M}else et(x[E])==="object"&&Array.isArray(x[E])&&P&&C(x[E],P)}),et(x)==="object"&&Array.isArray(x)&&O&&C(x,O)}}),m},g=u?[u,m].flat(1):[m].flat(1),v=s[m],p=Or(o,g),y=function(){var S,$,x=!1;if(typeof p=="function"){$=p==null?void 0:p(v,m,s);var w=et($);w!=="object"&&w!=="undefined"?(S=m,x=!0):S=$}else S=h(p,v);if(Array.isArray(S)){f=or(f,S,v);return}et(S)==="object"&&!Array.isArray(a)?a=rbe(a,S):et(S)==="object"&&Array.isArray(a)?f=I(I({},f),S):(S!==null||S!==void 0)&&(f=or(f,[S],x?$:v))};if(p&&typeof p=="function"&&y(),!(typeof window>"u")){if(obe(v)){var b=l(v,g);if(Object.keys(b).length<1)return;f=or(f,[m],b);return}y()}}),r?f:s)};return a=Array.isArray(t)&&Array.isArray(a)?Te(i(t)):Mw({},i(t),a),a},Sa=function(t){return t===void 0?{}:Es(pa,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Ws(e){var t=typeof window>"u",n=c.useState(function(){return t?!1:window.matchMedia(e).matches}),r=X(n,2),o=r[0],a=r[1];return c.useLayoutEffect(function(){if(!t){var i=window.matchMedia(e),l=function(u){return a(u.matches)};return i.addListener(l),function(){return i.removeListener(l)}}},[e]),o}var Li={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},ibe=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Li).find(function(r){var o=Li[r].matchMedia;return!!window.matchMedia(o).matches});return t=n,t},lbe=function(){var t=Ws(Li.md.matchMedia),n=Ws(Li.lg.matchMedia),r=Ws(Li.xxl.matchMedia),o=Ws(Li.xl.matchMedia),a=Ws(Li.sm.matchMedia),i=Ws(Li.xs.matchMedia),l=c.useState(ibe()),s=X(l,2),u=s[0],d=s[1];return c.useEffect(function(){if(r){d("xxl");return}if(o){d("xl");return}if(n){d("lg");return}if(t){d("md");return}if(a){d("sm");return}if(i){d("xs");return}d("md")},[t,n,r,o,a,i]),u};function so(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var d=[];i.forEach(function(m,h){d.push({key:h,value:m})}),d=d.reduce(function(m,h){return(m[h.key]=m[h.key]||[]).push(h),m},{}),d=Object.keys(d).map(function(m){var h=d[m];return h.length===1?[m,h[0].value]:[m,h.map(function(g){var v=g.value;return v})]});var f=ef({},e);return d.forEach(function(m){var h=m[0],g=m[1];f[h]=ube(h,g,{},e)}),f},[t.disabled,e,i]);function s(d){if(!(typeof window>"u"||!window.URL)){var f=sbe(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),i.toString()!==f.searchParams.toString()&&o({})}}c.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||s(ef(ef({},e),l))},[t.disabled,l]);var u=function(d){s(d)};return c.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){o({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[l,u]}var cbe={true:!0,false:!1};function ube(e,t,n,r){if(!n)return t;var o=n[e],a=t===void 0?r[e]:t;return o===Number?Number(a):o===Boolean||t==="true"||t==="false"?cbe[a]:Array.isArray(o)?o.find(function(i){return i==a})||r[e]:a}var dbe=W.createContext({});const $0=dbe;var fbe=["children","Wrapper"],mbe=["children","Wrapper"],Qj=c.createContext({grid:!1,colProps:void 0,rowProps:void 0}),vbe=function(t){var n=t.grid,r=t.rowProps,o=t.colProps;return{grid:!!n,RowWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,s=i.Wrapper,u=ze(i,fbe);return n?F.jsx(xm,I(I(I({gutter:8},r),u),{},{children:l})):s?F.jsx(s,{children:l}):l},ColWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,s=i.Wrapper,u=ze(i,mbe),d=c.useMemo(function(){var f=I(I({},o),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?F.jsx(fl,I(I({},d),{},{children:l})):s?F.jsx(s,{children:l}):l}}},Rw=function(t){var n=c.useMemo(function(){return et(t)==="object"?t:{grid:t}},[t]),r=c.useContext(Qj),o=r.grid,a=r.colProps;return c.useMemo(function(){return vbe({grid:!!(o||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,o,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},gbe=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],pbe=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],r6={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},hbe=["switch","radioButton","radio","rate"];function _w(e,t){e.displayName="ProFormComponent";var n=function(a){var i=I(I({},a==null?void 0:a.filedConfig),t)||{},l=i.valueType,s=i.customLightMode,u=i.lightFilterLabelFormatter,d=i.valuePropName,f=d===void 0?"value":d,m=i.ignoreWidth,h=i.defaultProps,g=ze(i,gbe),v=I(I({},h),a),p=v.label,y=v.tooltip,b=v.placeholder,C=v.width,S=v.bordered,$=v.messageVariables,x=v.ignoreFormItem,w=v.transform,O=v.convertValue,E=v.readonly,P=v.allowClear;v.colSize;var M=v.getFormItemProps,D=v.getFieldProps;v.filedConfig;var R=v.cacheForSwr,_=v.proFieldProps,T=ze(v,pbe),k=l||T.valueType,N=c.useMemo(function(){return m||hbe.includes(k)},[m,k]),j=c.useState(),A=X(j,2),B=A[1],z=c.useState(),H=X(z,2),V=H[0],U=H[1],K=W.useContext($0),Y=no(function(){return{formItemProps:M==null?void 0:M(),fieldProps:D==null?void 0:D()}},[D,M,T.dependenciesValues,V]),G=no(function(){var ge=I(I(I(I({},x?yo({value:T.value}):{}),{},{placeholder:b,disabled:a.disabled},K.fieldProps),Y.fieldProps),T.fieldProps);return ge.style=yo(ge==null?void 0:ge.style),ge},[x,T.value,T.fieldProps,b,a.disabled,K.fieldProps,Y.fieldProps]),q=Uye(T),J=no(function(){return I(I(I(I({},K.formItemProps),q),Y.formItemProps),T.formItemProps)},[Y.formItemProps,K.formItemProps,T.formItemProps,q]),Q=no(function(){return I(I({messageVariables:$},g),J)},[g,J,$]);wf(!T.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ne=c.useContext(ul),re=ne.prefixName,oe=no(function(){var ge,ve=Q==null?void 0:Q.name;Array.isArray(ve)&&(ve=ve.join("_")),Array.isArray(re)&&ve&&(ve="".concat(re.join("."),".").concat(ve));var $e=ve&&"form-".concat((ge=K.formKey)!==null&&ge!==void 0?ge:"","-field-").concat(ve);return $e},[n6(Q==null?void 0:Q.name),re,K.formKey]),te=Ba(function(){var ge;M||D?U([]):T.renderFormItem&&B([]);for(var ve=arguments.length,$e=new Array(ve),Ce=0;Ce0?ee.map(function(de,he){var fe=ie==null?void 0:ie[he],le=(fe==null?void 0:fe["data-item"])||{};return I(I({},le),de)}):[]},oe=function te(ee){return ee.map(function(ie,de){var he,fe=ie,le=fe.className,me=fe.optionType,ye=ze(fe,Pbe),ge=ie[j],ve=ie[B],$e=(he=ie[H])!==null&&he!==void 0?he:[];return me==="optGroup"||ie.options?I(I({label:ge},ye),{},{data_title:ge,title:ge,key:ve??(ge==null?void 0:ge.toString()),children:te($e)}):I(I({title:ge},ye),{},{data_title:ge,value:ve??de,key:ve??(ge==null?void 0:ge.toString()),"data-item":ie,className:"".concat(Q,"-option ").concat(le||"").trim(),label:(r==null?void 0:r(ie))||ge})})};return F.jsx(Ta,I(I({ref:G,className:ne,allowClear:!0,autoClearSearchValue:u,disabled:$,mode:o,showSearch:D,searchValue:K,optionFilterProp:y,optionLabelProp:C,onClear:function(){P==null||P(),w(void 0),D&&Y(void 0)}},T),{},{filterOption:T.filterOption==!1?!1:function(te,ee){var ie,de,he;return T.filterOption&&typeof T.filterOption=="function"?T.filterOption(te,I(I({},ee),{},{label:ee==null?void 0:ee.data_title})):!!(ee!=null&&(ie=ee.data_title)!==null&&ie!==void 0&&ie.toString().toLowerCase().includes(te.toLowerCase())||ee!=null&&(de=ee.label)!==null&&de!==void 0&&de.toString().toLowerCase().includes(te.toLowerCase())||ee!=null&&(he=ee.value)!==null&&he!==void 0&&he.toString().toLowerCase().includes(te.toLowerCase()))},onSearch:D?function(te){v&&w(te),a==null||a(te),Y(te)}:void 0,onChange:function(ee,ie){D&&u&&(w(void 0),a==null||a(""),Y(void 0));for(var de=arguments.length,he=new Array(de>2?de-2:0),fe=2;fe-1&&e%1==0&&e-1&&e%1==0&&e<=F1e}var jw=k1e,L1e=Ps,A1e=jw,B1e=Wa,z1e="[object Arguments]",H1e="[object Array]",V1e="[object Boolean]",W1e="[object Date]",K1e="[object Error]",U1e="[object Function]",G1e="[object Map]",q1e="[object Number]",Y1e="[object Object]",X1e="[object RegExp]",Q1e="[object Set]",Z1e="[object String]",J1e="[object WeakMap]",eCe="[object ArrayBuffer]",tCe="[object DataView]",nCe="[object Float32Array]",rCe="[object Float64Array]",oCe="[object Int8Array]",aCe="[object Int16Array]",iCe="[object Int32Array]",lCe="[object Uint8Array]",sCe="[object Uint8ClampedArray]",cCe="[object Uint16Array]",uCe="[object Uint32Array]",Tn={};Tn[nCe]=Tn[rCe]=Tn[oCe]=Tn[aCe]=Tn[iCe]=Tn[lCe]=Tn[sCe]=Tn[cCe]=Tn[uCe]=!0;Tn[z1e]=Tn[H1e]=Tn[eCe]=Tn[V1e]=Tn[tCe]=Tn[W1e]=Tn[K1e]=Tn[U1e]=Tn[G1e]=Tn[q1e]=Tn[Y1e]=Tn[X1e]=Tn[Q1e]=Tn[Z1e]=Tn[J1e]=!1;function dCe(e){return B1e(e)&&A1e(e.length)&&!!Tn[L1e(e)]}var fCe=dCe;function mCe(e){return function(t){return e(t)}}var Dw=mCe,_p={exports:{}};_p.exports;(function(e,t){var n=Zj,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,l=function(){try{var s=o&&o.require&&o.require("util").types;return s||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l})(_p,_p.exports);var Fw=_p.exports,vCe=fCe,gCe=Dw,u6=Fw,d6=u6&&u6.isTypedArray,pCe=d6?gCe(d6):vCe,kw=pCe,hCe=S1e,yCe=Tw,bCe=Po,CCe=E0,SCe=Nw,xCe=kw,wCe=Object.prototype,$Ce=wCe.hasOwnProperty;function ECe(e,t){var n=bCe(e),r=!n&&yCe(e),o=!n&&!r&&CCe(e),a=!n&&!r&&!o&&xCe(e),i=n||r||o||a,l=i?hCe(e.length,String):[],s=l.length;for(var u in e)(t||$Ce.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||SCe(u,s)))&&l.push(u);return l}var nD=ECe,PCe=Object.prototype;function OCe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PCe;return e===n}var Lw=OCe;function ICe(e,t){return function(n){return e(t(n))}}var rD=ICe,MCe=rD,RCe=MCe(Object.keys,Object),_Ce=RCe,TCe=Lw,NCe=_Ce,jCe=Object.prototype,DCe=jCe.hasOwnProperty;function FCe(e){if(!TCe(e))return NCe(e);var t=[];for(var n in Object(e))DCe.call(e,n)&&n!="constructor"&&t.push(n);return t}var kCe=FCe;function LCe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qo=LCe,ACe=Ps,BCe=qo,zCe="[object AsyncFunction]",HCe="[object Function]",VCe="[object GeneratorFunction]",WCe="[object Proxy]";function KCe(e){if(!BCe(e))return!1;var t=ACe(e);return t==HCe||t==VCe||t==zCe||t==WCe}var Aw=KCe,UCe=Aw,GCe=jw;function qCe(e){return e!=null&&GCe(e.length)&&!UCe(e)}var Du=qCe,YCe=nD,XCe=kCe,QCe=Du;function ZCe(e){return QCe(e)?YCe(e):XCe(e)}var jm=ZCe,JCe=eD,eSe=jm;function tSe(e,t){return e&&JCe(e,t,eSe)}var oD=tSe;function nSe(e){return e}var P0=nSe,rSe=P0;function oSe(e){return typeof e=="function"?e:rSe}var aD=oSe,aSe=oD,iSe=aD;function lSe(e,t){return e&&aSe(e,iSe(t))}var Bw=lSe,sSe=rD,cSe=sSe(Object.getPrototypeOf,Object),zw=cSe,uSe=Ps,dSe=zw,fSe=Wa,mSe="[object Object]",vSe=Function.prototype,gSe=Object.prototype,iD=vSe.toString,pSe=gSe.hasOwnProperty,hSe=iD.call(Object);function ySe(e){if(!fSe(e)||uSe(e)!=mSe)return!1;var t=dSe(e);if(t===null)return!0;var n=pSe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&iD.call(n)==hSe}var lD=ySe;function bSe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var DSe=jSe,FSe=O0;function kSe(e,t){var n=this.__data__,r=FSe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var LSe=kSe,ASe=SSe,BSe=MSe,zSe=TSe,HSe=DSe,VSe=LSe;function Fu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,h=n&twe?new Q2e:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,W4e.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,H4e.default)(r)?(0,B4e.default)(r,function(o,a){o===!0&&n.push(a),n.push(a+"-"+o)}):(0,L4e.default)(r)&&n.push(r)}),n};Tm.default=K4e;var Fm={};function U4e(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,i6e.default)(t.default)||{};return n.map(function(o){var a=t[o];return a&&(0,o6e.default)(a,function(i,l){r[l]||(r[l]={}),r[l]=l6e({},r[l],a[l])}),o}),r};Fm.default=s6e;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.autoprefix=void 0;var c6e=Bw,K6=d6e(c6e),u6e=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){y6e(o,r);function o(){var a,i,l,s;h6e(this,o);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$6e(o,r);function o(){var a,i,l,s;w6e(this,o);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[i]=l};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};Yw.default=P6e;Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ReactCSS=Fo.loop=Fo.handleActive=Fo.handleHover=Fo.hover=void 0;var O6e=Tm,I6e=zu(O6e),M6e=Fm,R6e=zu(M6e),_6e=Am,T6e=zu(_6e),N6e=Bm,LD=zu(N6e),j6e=zm,D6e=zu(j6e),F6e=Yw,k6e=zu(F6e);function zu(e){return e&&e.__esModule?e:{default:e}}Fo.hover=LD.default;Fo.handleHover=LD.default;Fo.handleActive=D6e.default;Fo.loop=k6e.default;var L6e=Fo.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0){if(++t>=MIe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var NIe=TIe,jIe=IIe,DIe=NIe,FIe=DIe(jIe),kIe=FIe,LIe=P0,AIe=xIe,BIe=kIe;function zIe(e,t){return BIe(AIe(e,t,LIe),e+"")}var HIe=zIe,VIe=Dm,WIe=Du,KIe=Nw,UIe=qo;function GIe(e,t,n){if(!UIe(n))return!1;var r=typeof t;return(r=="number"?WIe(n)&&KIe(t,n.length):r=="string"&&t in n)?VIe(n[t],e):!1}var qIe=GIe,YIe=HIe,XIe=qIe;function QIe(e){return YIe(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&XIe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++rl?m=1:m=Math.round(f*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var h;if(d<0?h=0:d>i?h=1:h=Math.round(d*100/i)/100,o!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},Rb={},a5e=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=r*2,a.height=r*2;var i=a.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,a.width,a.height),i.fillStyle=n,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),a.toDataURL()):null},i5e=function(t,n,r,o){var a="".concat(t,"-").concat(n,"-").concat(r).concat(o?"-server":"");if(Rb[a])return Rb[a];var i=a5e(t,n,r,o);return Rb[a]=i,i};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}var C5e=function(e){g5e(n,e);var t=p5e(n);function n(){var r;f5e(this,n);for(var o=arguments.length,a=new Array(o),i=0;ii)f=0;else{var m=-(d*100/i)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(u<0)h=0;else if(u>a)h=359;else{var g=u*100/a;h=360*g/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function x5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rI(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dp(e)}var _5e=function(e){P5e(n,e);var t=O5e(n);function n(){var r;x5e(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=0,a=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Rt(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(k8e,arguments)},brighten:function(){return this._applyModification(L8e,arguments)},darken:function(){return this._applyModification(A8e,arguments)},desaturate:function(){return this._applyModification(j8e,arguments)},saturate:function(){return this._applyModification(D8e,arguments)},greyscale:function(){return this._applyModification(F8e,arguments)},spin:function(){return this._applyModification(B8e,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(V8e,arguments)},complement:function(){return this._applyCombination(z8e,arguments)},monochromatic:function(){return this._applyCombination(W8e,arguments)},splitcomplement:function(){return this._applyCombination(H8e,arguments)},triad:function(){return this._applyCombination(fI,[3])},tetrad:function(){return this._applyCombination(fI,[4])}};Rt.fromRatio=function(e,t){if(kp(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Td(e[r]));e=n}return Rt(e,t)};function M8e(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=Y8e(e)),kp(e)=="object"&&(Qa(e.r)&&Qa(e.g)&&Qa(e.b)?(t=R8e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qa(e.h)&&Qa(e.s)&&Qa(e.v)?(r=Td(e.s),o=Td(e.v),t=T8e(e.h,r,o),i=!0,l="hsv"):Qa(e.h)&&Qa(e.s)&&Qa(e.l)&&(r=Td(e.s),a=Td(e.l),t=_8e(e.h,r,a),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=WD(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function R8e(e,t,n){return{r:Bn(e,255)*255,g:Bn(t,255)*255,b:Bn(n,255)*255}}function sI(e,t,n){e=Bn(e,255),t=Bn(t,255),n=Bn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a,i,l=(r+o)/2;if(r==o)a=i=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function cI(e,t,n){e=Bn(e,255),t=Bn(t,255),n=Bn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a,i,l=r,s=r-o;if(i=r===0?0:s/r,r==o)a=0;else{switch(r){case e:a=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(Rt(r));return a}function W8e(e,t){t=t||6;for(var n=Rt(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(Rt({h:r,s:o,v:a})),a=(a+l)%1;return i}Rt.mix=function(e,t,n){n=n===0?0:n||50;var r=Rt(e).toRgb(),o=Rt(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return Rt(i)};Rt.readability=function(e,t){var n=Rt(e),r=Rt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Rt.isReadable=function(e,t,n){var r=Rt.readability(e,t),o,a;switch(a=!1,o=X8e(n),o.level+o.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Rt.mostReadable=function(e,t,n){var r=null,o=0,a,i,l,s;n=n||{},i=n.includeFallbackColors,l=n.level,s=n.size;for(var u=0;uo&&(o=a,r=Rt(t[u]));return Rt.isReadable(e,r,{level:l,size:s})||!i?r:(n.includeFallbackColors=!1,Rt.mostReadable(e,["#fff","#000"],n))};var pS=Rt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K8e=Rt.hexNames=U8e(pS);function U8e(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function WD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bn(e,t){G8e(e)&&(e="100%");var n=q8e(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function k0(e){return Math.min(1,Math.max(0,e))}function go(e){return parseInt(e,16)}function G8e(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function q8e(e){return typeof e=="string"&&e.indexOf("%")!=-1}function sa(e){return e.length==1?"0"+e:""+e}function Td(e){return e<=1&&(e=e*100+"%"),e}function KD(e){return Math.round(parseFloat(e)*255).toString(16)}function mI(e){return go(e)/255}var ea=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qa(e){return!!ea.CSS_UNIT.exec(e)}function Y8e(e){e=e.replace(O8e,"").replace(I8e,"").toLowerCase();var t=!1;if(pS[e])e=pS[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ea.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=ea.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ea.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=ea.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ea.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=ea.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ea.hex8.exec(e))?{r:go(n[1]),g:go(n[2]),b:go(n[3]),a:mI(n[4]),format:t?"name":"hex8"}:(n=ea.hex6.exec(e))?{r:go(n[1]),g:go(n[2]),b:go(n[3]),format:t?"name":"hex"}:(n=ea.hex4.exec(e))?{r:go(n[1]+""+n[1]),g:go(n[2]+""+n[2]),b:go(n[3]+""+n[3]),a:mI(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=ea.hex3.exec(e))?{r:go(n[1]+""+n[1]),g:go(n[2]+""+n[2]),b:go(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function X8e(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var vI=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return P8e(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(t[a])&&(o+=1)}}),r===o?t:!1},kv=function(t,n){var r=t.hex?Rt(t.hex):Rt(t),o=r.toHsl(),a=r.toHsv(),i=r.toRgb(),l=r.toHex();o.s===0&&(o.h=n||0,a.h=n||0);var s=l==="000000"&&i.a===0;return{hsl:o,hex:s?"transparent":"#".concat(l),rgb:i,hsv:a,oldHue:t.h||n||o.h,source:t.source}},Q8e=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Rt(t).isValid()};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lp(e){return Lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lp(e)}var lMe=function(t){var n=function(r){nMe(a,r);var o=rMe(a);function a(i){var l;return J8e(this,a),l=o.call(this),l.handleChange=function(s,u){var d=vI(s);if(d){var f=kv(s,s.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(s,u){var d=vI(s);if(d){var f=kv(s,s.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=yd({},kv(i.color,0)),l.debounce=t8e(function(s,u,d){s(u,d)},100),l}return eMe(a,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),W.createElement(t,hS({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,s){return yd({},kv(l.color,s.oldHue))}}]),a}(c.PureComponent||c.Component);return n.propTypes=yd({},t.propTypes),n.defaultProps=yd(yd({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function sMe(e,t,n){return t=GD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hI(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ap(e)}var hMe=1,qD=38,yMe=40,bMe=[qD,yMe],CMe=function(t){return bMe.indexOf(t)>-1},SMe=function(t){return Number(String(t).replace(/%/g,""))},xMe=1,bd=function(e){fMe(n,e);var t=mMe(n);function n(r){var o;return cMe(this,n),o=t.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(a){o.setUpdatedValue(a.target.value,a)},o.handleKeyDown=function(a){var i=SMe(a.target.value);if(!isNaN(i)&&CMe(a.keyCode)){var l=o.getArrowOffset(),s=a.keyCode===qD?i+l:i-l;o.setUpdatedValue(s,a)}},o.handleDrag=function(a){if(o.props.dragLabel){var i=Math.round(o.props.value+a.movementX);i>=0&&i<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(i),a)}},o.handleMouseDown=function(a){o.props.dragLabel&&(a.preventDefault(),o.handleDrag(a),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(xMe++),o}return uMe(n,[{key:"componentDidUpdate",value:function(o,a){this.props.value!==this.state.value&&(o.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return sMe({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||hMe}},{key:"setUpdatedValue",value:function(o,a){var i=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(i,a),this.setState({value:o})}},{key:"render",value:function(){var o=this,a=Pl({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return W.createElement("div",{style:a.wrap},W.createElement("input",{id:this.inputId,style:a.input,ref:function(l){return o.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?W.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(c.PureComponent||c.Component);function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bp(e)}var TMe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){OMe(a,r);var o=IMe(a);function a(){var i;wMe(this,a);for(var l=arguments.length,s=new Array(l),u=0;u100&&(d.a=100),d.a/=100,n==null||n({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:d.a,source:"rgb"},f))};return W.createElement("div",{style:l.fields,className:"flexbox-fix"},W.createElement("div",{style:l.double},W.createElement(bd,{style:{input:l.input,label:l.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:s})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"r",value:r==null?void 0:r.r,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"g",value:r==null?void 0:r.g,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"b",value:r==null?void 0:r.b,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.alpha},W.createElement(bd,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:s,dragLabel:"true",dragMax:"100"})))};function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xI(e){for(var t=1;t-1}function JMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&XD()?Vie:QMe}var eRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.old,u=c.useContext(bt.ConfigContext),d=u.getPrefixCls,f=W.useMemo(function(){return JMe(s)},[s]),m=d("pro-field-color-picker"),h=c.useMemo(function(){return s?"":Z(L({},m,XD()))},[m,s]);if(o==="read"){var g=F.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,I({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=I({display:"table-cell"},l.style),p=F.jsx(f,I(I({ref:n,presets:[ZMe]},l),{},{style:v,className:h}));return i?i(r,I(I({mode:o},l),{},{style:v}),p):p}return null};const tRe=W.forwardRef(eRe);zt.extend(k2);var nRe=function(t,n){return t?typeof n=="function"?n(zt(t)):zt(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},rRe=function(t,n){var r=t.text,o=t.mode,a=t.format,i=t.label,l=t.light,s=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,h=t.picker,g=t.bordered,v=t.lightLabel,p=Un(),y=c.useState(!1),b=X(y,2),C=b[0],S=b[1];if(o==="read"){var $=nRe(r,m.format||a);return s?s(r,I({mode:o},m),F.jsx(F.Fragment,{children:$})):F.jsx(F.Fragment,{children:$})}if(o==="edit"||o==="update"){var x,w=m.disabled,O=m.value,E=m.placeholder,P=E===void 0?p.getMessage("tableForm.selectPlaceholder","请选择"):E,M=_m(O);return l?x=F.jsx($i,{label:i,onClick:function(){var R;m==null||(R=m.onOpenChange)===null||R===void 0||R.call(m,!0),S(!0)},style:M?{paddingInlineEnd:0}:void 0,disabled:w,value:M||C?F.jsx(fs,I(I(I({picker:h,showTime:f,format:a,ref:n},m),{},{value:M,onOpenChange:function(R){var _;S(R),m==null||(_=m.onOpenChange)===null||_===void 0||_.call(m,R)}},Sa(!1)),{},{open:C})):void 0,allowClear:!1,downIcon:M||C?!1:void 0,bordered:g,ref:v}):x=F.jsx(fs,I(I(I({picker:h,showTime:f,format:a,placeholder:P},Sa(d===void 0?!0:!d)),{},{ref:n},m),{},{value:M})),u?u(r,I({mode:o},m),x):x}return null};const Ks=W.forwardRef(rRe);var oRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.placeholder,l=t.renderFormItem,s=t.fieldProps,u=Un(),d=i||u.getMessage("tableForm.inputPlaceholder","请输入"),f=c.useCallback(function(y){var b=y??void 0;return!s.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!gs(b)&&!gs(s.precision)&&(b=Number(b.toFixed(s.precision))),b},[s]);if(o==="read"){var m,h={};s!=null&&s.precision&&(h={minimumFractionDigits:Number(s.precision),maximumFractionDigits:Number(s.precision)});var g=new Intl.NumberFormat(void 0,I(I({},h),(s==null?void 0:s.intlProps)||{})).format(Number(r)),v=F.jsx("span",{ref:n,children:(s==null||(m=s.formatter)===null||m===void 0?void 0:m.call(s,g))||g});return a?a(r,I({mode:o},s),v):v}if(o==="edit"||o==="update"){var p=F.jsx(ml,I(I({ref:n,min:0,placeholder:d},so(s,["onChange","onBlur"])),{},{onChange:function(b){var C;return s==null||(C=s.onChange)===null||C===void 0?void 0:C.call(s,f(b))},onBlur:function(b){var C;return s==null||(C=s.onBlur)===null||C===void 0?void 0:C.call(s,f(b.target.value))}}));return l?l(r,I({mode:o},s),p):p}return null};const aRe=W.forwardRef(oRe);var iRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.placeholder,l=t.renderFormItem,s=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,h=s.value,g=s.defaultValue,v=s.onChange,p=s.id,y=Un(),b=Aa.useToken(),C=b.token,S=Pt(function(){return g},{value:h,onChange:v}),$=X(S,2),x=$[0],w=$[1];if(o==="read"){var O=function(j){var A,B=new Intl.NumberFormat(void 0,I({minimumSignificantDigits:2},(s==null?void 0:s.intlProps)||{})).format(Number(j));return(s==null||(A=s.formatter)===null||A===void 0?void 0:A.call(s,B))||B},E=F.jsxs("span",{ref:n,children:[O(r[0])," ",d," ",O(r[1])]});return a?a(r,I({mode:o},s),E):E}if(o==="edit"||o==="update"){var P=function(){if(Array.isArray(x)){var j=X(x,2),A=j[0],B=j[1];typeof A=="number"&&typeof B=="number"&&A>B?w([B,A]):A===void 0&&B===void 0&&w(void 0)}},M=function(j,A){var B=Te(x||[]);B[j]=A===null?void 0:A,w(B)},D=(s==null?void 0:s.placeholder)||i||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],R=function(j){return Array.isArray(D)?D[j]:D},_=hi.Compact||Vo.Group,T=hi.Compact?{}:{compact:!0},k=F.jsxs(_,I(I({},T),{},{onBlur:P,children:[F.jsx(ml,I(I({},s),{},{placeholder:R(0),id:p??"".concat(p,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:x==null?void 0:x[0],defaultValue:g==null?void 0:g[0],onChange:function(j){return M(0,j)}})),F.jsx(Vo,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:C==null?void 0:C.colorBgContainer},placeholder:d,disabled:!0}),F.jsx(ml,I(I({},s),{},{placeholder:R(1),id:p??"".concat(p,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:x==null?void 0:x[1],defaultValue:g==null?void 0:g[1],onChange:function(j){return M(1,j)}}))]}));return l?l(r,I({mode:o},s),k):k}return null};const lRe=W.forwardRef(iRe);var QD={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,f,m){return a.fromToBase(u,d,f,m)}o.en.relativeTime=i,a.fromToBase=function(u,d,f,m,h){for(var g,v,p,y=f.$locale().relativeTime||i,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=b.length,S=0;S0,x<=$.r||!$.r){x<=1&&S>0&&($=b[S-1]);var w=y[$.l];h&&(x=h(""+x)),v=typeof w=="string"?w.replace("%d",x):w(x,d,$.l,p);break}}if(d)return v;var O=p?y.future:y.past;return typeof O=="function"?O(v):O.replace("%s",v)},a.to=function(u,d){return l(u,d,this,!0)},a.from=function(u,d){return l(u,d,this)};var s=function(u){return u.$u?o.utc():o()};a.toNow=function(u){return this.to(s(this),u)},a.fromNow=function(u){return this.from(s(this),u)}}})})(QD);var sRe=QD.exports;const cRe=jn(sRe);zt.extend(cRe);var uRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.format,s=t.fieldProps,u=Un();if(o==="read"){var d=F.jsx(Go,{title:zt(r).format((s==null?void 0:s.format)||l||"YYYY-MM-DD HH:mm:ss"),children:zt(r).fromNow()});return a?a(r,I({mode:o},s),F.jsx(F.Fragment,{children:d})):F.jsx(F.Fragment,{children:d})}if(o==="edit"||o==="update"){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),m=_m(s.value),h=F.jsx(fs,I(I({ref:n,placeholder:f,showTime:!0},s),{},{value:m}));return i?i(r,I({mode:o},s),h):h}return null};const dRe=W.forwardRef(uRe);var fRe=W.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,a=e.renderFormItem,i=e.fieldProps,l=e.placeholder,s=e.width,u=Un(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=F.jsx(xce,I({ref:t,width:s||32,src:n},i));return o?o(n,I({mode:r},i),f):f}if(r==="edit"||r==="update"){var m=F.jsx(Vo,I({ref:t,placeholder:d},i));return a?a(n,I({mode:r},i),m):m}return null});const ZD=fRe;var mRe=function(t,n){var r=t.border,o=r===void 0?!1:r,a=t.children,i=c.useContext(bt.ConfigContext),l=i.getPrefixCls,s=l("pro-field-index-column"),u=un("IndexColumn",function(){return L({},".".concat(s),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(F.jsx("div",{ref:n,className:Z(s,f,L(L({},"".concat(s,"-border"),o),"top-three",a>3)),children:a}))};const $I=W.forwardRef(mRe);var vRe=["contentRender","numberFormatOptions","numberPopoverRender","open"],gRe=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],JD=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),pRe={style:"currency",currency:"USD"},hRe={style:"currency",currency:"RUB"},yRe={style:"currency",currency:"RSD"},bRe={style:"currency",currency:"MYR"},CRe={style:"currency",currency:"BRL"},SRe={default:JD,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":pRe,"ru-RU":hRe,"ms-MY":bRe,"sr-RS":yRe,"pt-BR":CRe},EI=function(t,n,r,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=n==null?void 0:n.toString().replaceAll(",","");if(typeof i=="string"){var l=Number(i);if(Number.isNaN(l))return i;i=l}if(!i&&i!==0)return"";var s=!1;try{s=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(s&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",I(I({},SRe[t||"zh-Hans-CN"]||JD),{},{maximumFractionDigits:r},o)),d=u.format(i),f=function(y){var b=y.match(/\d+/);if(b){var C=b[0];return y.slice(y.indexOf(C))}else return y},m=f(d),h=d||"",g=X(h,1),v=g[0];return["+","-"].includes(v)?"".concat(a||"").concat(v).concat(m):"".concat(a||"").concat(m)}catch{return i}},Tb=2,xRe=W.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,o=ze(e,vRe),a=Pt(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),i=X(a,2),l=i[0],s=i[1],u=n==null?void 0:n(I(I({},o),{},{value:l})),d=Rm(u?r:!1);return F.jsx(bs,I(I({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:F.jsx(ml,I(I({ref:t},o),{},{value:l,onChange:s}))}))}),wRe=function(t,n){var r,o=t.text,a=t.mode,i=t.render,l=t.renderFormItem,s=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?s.customSymbol:f,h=t.numberFormatOptions,g=h===void 0?s==null?void 0:s.numberFormatOptions:h,v=t.numberPopoverRender,p=v===void 0?(s==null?void 0:s.numberPopoverRender)||!1:v,y=ze(t,gRe),b=(r=s==null?void 0:s.precision)!==null&&r!==void 0?r:Tb,C=Un();d&&eu[d]&&(C=eu[d]);var S=u||C.getMessage("tableForm.inputPlaceholder","请输入"),$=c.useMemo(function(){if(m)return m;if(!(y.moneySymbol===!1||s.moneySymbol===!1))return C.getMessage("moneySymbol","¥")},[m,s.moneySymbol,C,y.moneySymbol]),x=c.useCallback(function(E){var P=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-Tb,0),"})+(?!\\d))"),"g"),M=String(E).split("."),D=X(M,2),R=D[0],_=D[1],T=R.replace(P,","),k="";return _&&b>0&&(k=".".concat(_.slice(0,b===void 0?Tb:b))),"".concat(T).concat(k)},[b]);if(a==="read"){var w=F.jsx("span",{ref:n,children:EI(d||!1,o,b,g??s.numberFormatOptions,$)});return i?i(o,I({mode:a},s),w):w}if(a==="edit"||a==="update"){var O=F.jsx(xRe,I(I({contentRender:function(P){if(p===!1||!P.value)return null;var M=EI($||d||!1,"".concat(x(P.value)),b,I(I({},g),{},{notation:"compact"}),$);return typeof p=="function"?p==null?void 0:p(P,M):M},ref:n,precision:b,formatter:function(P){return P&&$?"".concat($," ").concat(x(P)):P==null?void 0:P.toString()},parser:function(P){return $&&P?P.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),""):P},placeholder:S},so(s,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:s.onBlur?function(E){var P,M=E.target.value;$&&M&&(M=M.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),"")),(P=s.onBlur)===null||P===void 0||P.call(s,M)}:void 0}));return l?l(o,I({mode:a},s),O):O}return null};const eF=W.forwardRef(wRe);var PI=function(t){return t.map(function(n,r){var o;return W.isValidElement(n)?W.cloneElement(n,I(I({key:r},n==null?void 0:n.props),{},{style:I({},n==null||(o=n.props)===null||o===void 0?void 0:o.style)})):F.jsx(W.Fragment,{children:n},r)})},$Re=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.fieldProps,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls,u=s("pro-field-option"),d=Aa.useToken(),f=d.token;if(c.useImperativeHandle(n,function(){return{}}),a){var m=a(r,I({mode:o},i),F.jsx(F.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:F.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:PI(m)})}return!r||!Array.isArray(r)?W.isValidElement(r)?r:null:F.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:PI(r)})};const ERe=W.forwardRef($Re);var PRe=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ORe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;t.proFieldKey;var s=ze(t,PRe),u=Un(),d=Pt(function(){return s.open||s.visible||!1},{value:s.open||s.visible,onChange:s.onOpenChange||s.onVisible}),f=X(d,2),m=f[0],h=f[1];if(o==="read"){var g=F.jsx(F.Fragment,{children:"-"});return r&&(g=F.jsxs(hi,{children:[F.jsx("span",{ref:n,children:m?r:"********"}),F.jsx("a",{onClick:function(){return h(!m)},children:m?F.jsx(iw,{}):F.jsx(Q7,{})})]})),a?a(r,I({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=F.jsx(Vo.Password,I({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},l));return i?i(r,I({mode:o},l),v):v}return null};const IRe=W.forwardRef(ORe);var OI=NaN,MRe="[object Symbol]",RRe=/^\s+|\s+$/g,_Re=/^[-+]0x[0-9a-f]+$/i,TRe=/^0b[01]+$/i,NRe=/^0o[0-7]+$/i,jRe=parseInt,DRe=Object.prototype,FRe=DRe.toString;function II(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kRe(e){return!!e&&typeof e=="object"}function LRe(e){return typeof e=="symbol"||kRe(e)&&FRe.call(e)==MRe}function ARe(e){if(typeof e=="number")return e;if(LRe(e))return OI;if(II(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=II(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(RRe,"");var n=TRe.test(e);return n||NRe.test(e)?jRe(e.slice(2),n?2:8):_Re.test(e)?OI:+e}var BRe=ARe;const zp=jn(BRe);function zRe(e){return e===0?null:e>0?"+":"-"}function HRe(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function VRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var WRe=function(t,n){var r=t.text,o=t.prefix,a=t.precision,i=t.suffix,l=i===void 0?"%":i,s=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,h=t.fieldProps,g=t.placeholder,v=t.showSymbol,p=Un(),y=g||p.getMessage("tableForm.inputPlaceholder","请输入"),b=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?zp(r.replace("%","")):zp(r)},[r]),C=c.useMemo(function(){return typeof v=="function"?v==null?void 0:v(r):v},[v,r]);if(s==="read"){var S=d?{color:HRe(b)}:{},$=F.jsxs("span",{style:S,ref:n,children:[o&&F.jsx("span",{children:o}),C&&F.jsxs(c.Fragment,{children:[zRe(b)," "]}),VRe(Math.abs(b),a),l&&l]});return f?f(r,I(I({mode:s},h),{},{prefix:o,precision:a,showSymbol:C,suffix:l}),$):$}if(s==="edit"||s==="update"){var x=F.jsx(ml,I({ref:n,formatter:function(O){return O&&o?"".concat(o," ").concat(O).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):O},parser:function(O){return O?O.replace(/.*\s|,/g,""):""},placeholder:y},h));return m?m(r,I({mode:s},h),x):x}return null};const tF=W.forwardRef(WRe);function KRe(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var URe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.plain,l=t.renderFormItem,s=t.fieldProps,u=t.placeholder,d=Un(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?zp(r.replace("%","")):zp(r)},[r]);if(o==="read"){var h=F.jsx(sde,I({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:i?10:void 0,status:KRe(m)},s));return a?a(m,I({mode:o},s),h):h}if(o==="edit"||o==="update"){var g=F.jsx(ml,I({ref:n,placeholder:f},s));return l?l(r,I({mode:o},s),g):g}return null};const nF=W.forwardRef(URe);var GRe=["radioType","renderFormItem","mode","render"],qRe=function(t,n){var r,o,a=t.radioType,i=t.renderFormItem,l=t.mode,s=t.render,u=ze(t,GRe),d=c.useContext(bt.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),h=ju(u),g=X(h,3),v=g[0],p=g[1],y=g[2],b=c.useRef(),C=(r=Kn.Item)===null||r===void 0||(o=r.useStatus)===null||o===void 0?void 0:o.call(r);c.useImperativeHandle(n,function(){return I(I({},b.current||{}),{},{fetchData:function(_){return y(_)}})},[y]);var S=un("FieldRadioRadio",function(R){return L(L(L({},".".concat(m,"-error"),{span:{color:R.colorError}}),".".concat(m,"-warning"),{span:{color:R.colorWarning}}),".".concat(m,"-vertical"),L({},"".concat(R.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=S.wrapSSR,x=S.hashId;if(v)return F.jsx(El,{size:"small"});if(l==="read"){var w=p!=null&&p.length?p==null?void 0:p.reduce(function(R,_){var T;return I(I({},R),{},L({},(T=_.value)!==null&&T!==void 0?T:"",_.label))},{}):void 0,O=F.jsx(F.Fragment,{children:Nu(u.text,Ei(u.valueEnum||w))});if(s){var E;return(E=s(u.text,I({mode:l},u.fieldProps),O))!==null&&E!==void 0?E:null}return O}if(l==="edit"){var P,M=$(F.jsx(r0.Group,I(I({ref:b,optionType:a},u.fieldProps),{},{className:Z((P=u.fieldProps)===null||P===void 0?void 0:P.className,L(L({},"".concat(m,"-error"),(C==null?void 0:C.status)==="error"),"".concat(m,"-warning"),(C==null?void 0:C.status)==="warning"),x,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:p})));if(i){var D;return(D=i(u.text,I(I({mode:l},u.fieldProps),{},{options:p,loading:v}),M))!==null&&D!==void 0?D:null}return M}return null};const MI=W.forwardRef(qRe);var YRe=function(t,n){var r=t.text,o=t.mode,a=t.light,i=t.label,l=t.format,s=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,h=t.lightLabel,g=t.bordered,v=t.fieldProps,p=Un(),y=Array.isArray(r)?r:[],b=X(y,2),C=b[0],S=b[1],$=W.useState(!1),x=X($,2),w=x[0],O=x[1],E=c.useCallback(function(k){if(typeof(v==null?void 0:v.format)=="function"){var N;return v==null||(N=v.format)===null||N===void 0?void 0:N.call(v,k)}return(v==null?void 0:v.format)||l||"YYYY-MM-DD"},[v,l]),P=C?zt(C).format(E(zt(C))):"",M=S?zt(S).format(E(zt(S))):"";if(o==="read"){var D=F.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[F.jsx("div",{children:P||"-"}),F.jsx("div",{children:M||"-"})]});return s?s(r,I({mode:o},v),F.jsx("span",{children:D})):D}if(o==="edit"||o==="update"){var R=_m(v.value),_;if(a){var T;_=F.jsx($i,{label:i,onClick:function(){var N;v==null||(N=v.onOpenChange)===null||N===void 0||N.call(v,!0),O(!0)},style:R?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:R||w?F.jsx(fs.RangePicker,I(I(I({picker:u,showTime:m,format:l},Sa(!1)),v),{},{placeholder:(T=v.placeholder)!==null&&T!==void 0?T:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;O(!1),v==null||(N=v.onClear)===null||N===void 0||N.call(v)},value:R,onOpenChange:function(N){var j;R&&O(N),v==null||(j=v.onOpenChange)===null||j===void 0||j.call(v,N)}})):null,allowClear:!1,bordered:g,ref:h,downIcon:R||w?!1:void 0})}else _=F.jsx(fs.RangePicker,I(I(I({ref:n,format:l,showTime:m,placeholder:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]},Sa(f===void 0?!0:!f)),v),{},{value:R}));return d?d(r,I({mode:o},v),_):_}return null};const Us=W.forwardRef(YRe);var XRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;if(o==="read"){var s=F.jsx(nO,I(I({allowHalf:!0,disabled:!0,ref:n},l),{},{value:r}));return a?a(r,I({mode:o},l),F.jsx(F.Fragment,{children:s})):s}if(o==="edit"||o==="update"){var u=F.jsx(nO,I({allowHalf:!0,ref:n},l));return i?i(r,I({mode:o},l),u):u}return null};const QRe=W.forwardRef(XRe);function ZRe(e){var t="",n=Math.floor(e/86400),r=Math.floor(e/3600%24),o=Math.floor(e/60%60),a=Math.floor(e%60);return t="".concat(a,"秒"),o>0&&(t="".concat(o,"分钟").concat(t)),r>0&&(t="".concat(r,"小时").concat(t)),n>0&&(t="".concat(n,"天").concat(t)),t}var JRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.placeholder,u=Un(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=ZRe(Number(r)),m=F.jsx("span",{ref:n,children:f});return a?a(r,I({mode:o},l),m):m}if(o==="edit"||o==="update"){var h=F.jsx(ml,I({ref:n,min:0,style:{width:"100%"},placeholder:d},l));return i?i(r,I({mode:o},l),h):h}return null};const e_e=W.forwardRef(JRe);var t_e=["mode","render","renderFormItem","fieldProps","emptyText"],n_e=function(t,n){var r=t.mode,o=t.render,a=t.renderFormItem,i=t.fieldProps,l=t.emptyText,s=l===void 0?"-":l,u=ze(t,t_e),d=c.useRef(),f=ju(t),m=X(f,3),h=m[0],g=m[1],v=m[2];if(c.useImperativeHandle(n,function(){return I(I({},d.current||{}),{},{fetchData:function($){return v($)}})},[v]),h)return F.jsx(El,{size:"small"});if(r==="read"){var p=g!=null&&g.length?g==null?void 0:g.reduce(function(S,$){var x;return I(I({},S),{},L({},(x=$.value)!==null&&x!==void 0?x:"",$.label))},{}):void 0,y=F.jsx(F.Fragment,{children:Nu(u.text,Ei(u.valueEnum||p))});if(o){var b;return(b=o(u.text,I({mode:r},i),F.jsx(F.Fragment,{children:y})))!==null&&b!==void 0?b:s}return y}if(r==="edit"||r==="update"){var C=F.jsx(dfe,I(I({ref:d},so(i||{},["allowClear"])),{},{options:g}));return a?a(u.text,I(I({mode:r},i),{},{options:g,loading:h}),C):C}return null};const r_e=W.forwardRef(n_e);var o_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;if(o==="read"){var s=r;return a?a(r,I({mode:o},l),F.jsx(F.Fragment,{children:s})):F.jsx(F.Fragment,{children:s})}if(o==="edit"||o==="update"){var u=F.jsx(jfe,I(I({ref:n},l),{},{style:I({minWidth:120},l==null?void 0:l.style)}));return i?i(r,I({mode:o},l),u):u}return null};const a_e=W.forwardRef(o_e);var i_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.light,l=t.label,s=t.renderFormItem,u=t.fieldProps,d=Un(),f=c.useMemo(function(){var p,y;return r==null||"".concat(r).length<1?"-":r?(p=u==null?void 0:u.checkedChildren)!==null&&p!==void 0?p:d.getMessage("switch.open","打开"):(y=u==null?void 0:u.unCheckedChildren)!==null&&y!==void 0?y:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,r]);if(o==="read")return a?a(r,I({mode:o},u),F.jsx(F.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var m,h=F.jsx(Mc,I(I({ref:n,size:i?"small":void 0},so(u,["value"])),{},{checked:(m=u==null?void 0:u.checked)!==null&&m!==void 0?m:u==null?void 0:u.value}));if(i){var g=u.disabled,v=u.bordered;return F.jsx($i,{label:l,disabled:g,bordered:v,downIcon:!1,value:F.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return s?s(r,I({mode:o},u),h):h}return null};const l_e=W.forwardRef(i_e);var s_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.emptyText,u=s===void 0?"-":s,d=l||{},f=d.autoFocus,m=d.prefix,h=m===void 0?"":m,g=d.suffix,v=g===void 0?"":g,p=Un(),y=c.useRef();if(c.useImperativeHandle(n,function(){return y.current},[]),c.useEffect(function(){if(f){var x;(x=y.current)===null||x===void 0||x.focus()}},[f]),o==="read"){var b=F.jsxs(F.Fragment,{children:[h,r??u,v]});if(a){var C;return(C=a(r,I({mode:o},l),b))!==null&&C!==void 0?C:u}return b}if(o==="edit"||o==="update"){var S=p.getMessage("tableForm.inputPlaceholder","请输入"),$=F.jsx(Vo,I({ref:y,placeholder:S,allowClear:!0},l));return i?i(r,I({mode:o},l),$):$}return null};const c_e=W.forwardRef(s_e);var u_e=function(t,n){var r=t.text,o=c.useContext(bt.ConfigContext),a=o.getPrefixCls,i=a("pro-field-readonly"),l="".concat(i,"-textarea"),s=un("TextArea",function(){return L({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=s.wrapSSR,d=s.hashId;return u(F.jsx("span",{ref:n,className:Z(d,i,l),style:{},children:r??"-"}))};const d_e=W.forwardRef(u_e);var f_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=Un();if(o==="read"){var u=F.jsx(d_e,I(I({},t),{},{ref:n}));return a?a(r,I({mode:o},l),u):u}if(o==="edit"||o==="update"){var d=F.jsx(Vo.TextArea,I({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:s.getMessage("tableForm.inputPlaceholder","请输入")},l));return i?i(r,I({mode:o},l),d):d}return null};const m_e=W.forwardRef(f_e);var v_e=function(t,n){var r=t.text,o=t.mode,a=t.light,i=t.label,l=t.format,s=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,h=c.useState(!1),g=X(h,2),v=g[0],p=g[1],y=Un(),b=(f==null?void 0:f.format)||l||"HH:mm:ss",C=zt.isDayjs(r)||typeof r=="number";if(o==="read"){var S=F.jsx("span",{ref:n,children:r?zt(r,C?void 0:b).format(b):"-"});return s?s(r,I({mode:o},f),F.jsx("span",{children:S})):S}if(o==="edit"||o==="update"){var $,x=f.disabled,w=f.value,O=_m(w,b);if(a){var E;$=F.jsx($i,{onClick:function(){var M;f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,!0),p(!0)},style:O?{paddingInlineEnd:0}:void 0,label:i,disabled:x,value:O||v?F.jsx(UC,I(I(I({},Sa(!1)),{},{format:l,ref:n},f),{},{placeholder:(E=f.placeholder)!==null&&E!==void 0?E:y.getMessage("tableForm.selectPlaceholder","请选择"),value:O,onOpenChange:function(M){var D;p(M),f==null||(D=f.onOpenChange)===null||D===void 0||D.call(f,M)},open:v})):null,downIcon:O||v?!1:void 0,allowClear:!1,ref:m})}else $=F.jsx(fs.TimePicker,I(I({ref:n,format:l,bordered:d===void 0?!0:!d},f),{},{value:O}));return u?u(r,I({mode:o},f),$):$}return null},g_e=function(t,n){var r=t.text,o=t.light,a=t.label,i=t.mode,l=t.lightLabel,s=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,h=Un(),g=c.useState(!1),v=X(g,2),p=v[0],y=v[1],b=(m==null?void 0:m.format)||s||"HH:mm:ss",C=Array.isArray(r)?r:[],S=X(C,2),$=S[0],x=S[1],w=zt.isDayjs($)||typeof $=="number",O=zt.isDayjs(x)||typeof x=="number",E=$?zt($,w?void 0:b).format(b):"",P=x?zt(x,O?void 0:b).format(b):"";if(i==="read"){var M=F.jsxs("div",{ref:n,children:[F.jsx("div",{children:E||"-"}),F.jsx("div",{children:P||"-"})]});return u?u(r,I({mode:i},m),F.jsx("span",{children:M})):M}if(i==="edit"||i==="update"){var D=_m(m.value,b),R;if(o){var _=m.disabled,T=m.placeholder,k=T===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:T;R=F.jsx($i,{onClick:function(){var j;m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,!0),y(!0)},style:D?{paddingInlineEnd:0}:void 0,label:a,disabled:_,placeholder:k,value:D||p?F.jsx(UC.RangePicker,I(I(I({},Sa(!1)),{},{format:s,ref:n},m),{},{placeholder:k,value:D,onOpenChange:function(j){var A;y(j),m==null||(A=m.onOpenChange)===null||A===void 0||A.call(m,j)},open:p})):null,downIcon:D||p?!1:void 0,allowClear:!1,ref:l})}else R=F.jsx(UC.RangePicker,I(I(I({ref:n,format:s},Sa(f===void 0?!0:!f)),m),{},{value:D}));return d?d(r,I({mode:i},m),R):R}return null},p_e=W.forwardRef(g_e);const h_e=W.forwardRef(v_e);var y_e=["radioType","renderFormItem","mode","light","label","render"],b_e=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],C_e=function(t,n){t.radioType;var r=t.renderFormItem,o=t.mode,a=t.light,i=t.label,l=t.render,s=ze(t,y_e),u=c.useContext(bt.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=c.useRef(null),h=c.useState(!1),g=X(h,2),v=g[0],p=g[1],y=s.fieldProps,b=y.onSearch,C=y.onClear,S=y.onChange,$=y.onBlur,x=y.showSearch,w=y.autoClearSearchValue;y.treeData;var O=y.fetchDataOnSearch,E=y.searchValue,P=ze(y,b_e),M=Un(),D=ju(I(I({},s),{},{defaultKeyWords:E})),R=X(D,3),_=R[0],T=R[1],k=R[2],N=Pt(void 0,{onChange:b,value:E}),j=X(N,2),A=j[0],B=j[1];c.useImperativeHandle(n,function(){return I(I({},m.current||{}),{},{fetchData:function(te){return k(te)}})});var z=c.useMemo(function(){if(o==="read"){var oe=(P==null?void 0:P.fieldNames)||{},te=oe.value,ee=te===void 0?"value":te,ie=oe.label,de=ie===void 0?"label":ie,he=oe.children,fe=he===void 0?"children":he,le=new Map,me=function ye(ge){if(!(ge!=null&&ge.length))return le;for(var ve=ge.length,$e=0;$e4&&(h+=7),m.add(h,n));return g.diff(v,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var s=l.startOf;l.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(u,d)}}})})(rF);var x_e=rF.exports;const w_e=jn(x_e);var $_e=["fieldProps"],E_e=["fieldProps"],P_e=["fieldProps"],O_e=["fieldProps"],I_e=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],M_e=["placeholder"];zt.extend(dN);zt.extend(gN);zt.extend(w_e);zt.extend(k2);zt.extend(cN);var R_e=function(t,n,r){var o=Yj(r.fieldProps);return n.type==="progress"?F.jsx(nF,I(I({},r),{},{text:t,fieldProps:I({status:n.status?n.status:void 0},o)})):n.type==="money"?F.jsx(eF,I(I({locale:n.locale},r),{},{fieldProps:o,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?F.jsx(tF,I(I({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:o,showColor:n.showColor})):n.type==="image"?F.jsx(ZD,I(I({},r),{},{text:t,width:n.width})):t},__e=function(t,n,r,o){var a=r.mode,i=a===void 0?"read":a,l=r.emptyText,s=l===void 0?"-":l;if(s!==!1&&i==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,I({mode:i},u),F.jsx(F.Fragment,{children:s})):F.jsx(F.Fragment,{children:s})}if(delete r.emptyText,et(n)==="object")return R_e(t,n,r);var f=o&&o[n];if(f){if(delete r.ref,i==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,I(I({text:t},r),{},{mode:i||"read"}),F.jsx(F.Fragment,{children:t}))}if(i==="update"||i==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,I({text:t},r),F.jsx(F.Fragment,{children:t}))}}if(n==="money")return F.jsx(eF,I(I({},r),{},{text:t}));if(n==="date")return F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var g=r.fieldProps,v=ze(r,$_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-W",showTime:!0,fieldProps:I({picker:"week"},g)},v))})}if(n==="dateMonthRange"){var p=r.fieldProps,y=ze(r,E_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-MM",showTime:!0,fieldProps:I({picker:"month"},p)},y))})}if(n==="dateQuarterRange"){var b=r.fieldProps,C=ze(r,P_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-Q",showTime:!0,fieldProps:I({picker:"quarter"},b)},C))})}if(n==="dateYearRange"){var S=r.fieldProps,$=ze(r,O_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY",showTime:!0,fieldProps:I({picker:"year"},S)},$))})}return n==="dateMonth"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?F.jsx(Us,I({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?F.jsx(eo,{isLight:r.light,children:F.jsx(h_e,I({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?F.jsx(eo,{isLight:r.light,children:F.jsx(p_e,I({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?F.jsx(dRe,I({text:t},r)):n==="index"?F.jsx($I,{children:t+1}):n==="indexBorder"?F.jsx($I,{border:!0,children:t+1}):n==="progress"?F.jsx(nF,I(I({},r),{},{text:t})):n==="percent"?F.jsx(tF,I({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?F.jsx(Gh,{src:t,size:22,shape:"circle"}):n==="code"?F.jsx(a6,I({text:t},r)):n==="jsonCode"?F.jsx(a6,I({text:t,language:"json"},r)):n==="textarea"?F.jsx(m_e,I({text:t},r)):n==="digit"?F.jsx(aRe,I({text:t},r)):n==="digitRange"?F.jsx(lRe,I({text:t},r)):n==="second"?F.jsx(e_e,I({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?F.jsx(eo,{isLight:r.light,children:F.jsx(jbe,I({text:t},r))}):n==="checkbox"?F.jsx(Bbe,I({text:t},r)):n==="radio"?F.jsx(MI,I({text:t},r)):n==="radioButton"?F.jsx(MI,I({radioType:"button",text:t},r)):n==="rate"?F.jsx(QRe,I({text:t},r)):n==="slider"?F.jsx(a_e,I({text:t},r)):n==="switch"?F.jsx(l_e,I({text:t},r)):n==="option"?F.jsx(ERe,I({text:t},r)):n==="password"?F.jsx(IRe,I({text:t},r)):n==="image"?F.jsx(ZD,I({text:t},r)):n==="cascader"?F.jsx(kbe,I({text:t},r)):n==="treeSelect"?F.jsx(S_e,I({text:t},r)):n==="color"?F.jsx(tRe,I({text:t},r)):n==="segmented"?F.jsx(r_e,I({text:t},r)):F.jsx(c_e,I({text:t},r))},T_e=function(t,n){var r,o,a,i,l,s=t.text,u=t.valueType,d=u===void 0?"text":u,f=t.mode,m=f===void 0?"read":f,h=t.onChange,g=t.renderFormItem,v=t.value,p=t.readonly,y=t.fieldProps,b=ze(t,I_e),C=c.useContext(vl),S=Ba(function(){for(var w,O=arguments.length,E=new Array(O),P=0;P div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":L(L(L(L({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Z_e(e){return un("ProFormGroup",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[Q_e(n)]})}var lF=W.forwardRef(function(e,t){var n=W.useContext($0),r=n.groupProps,o=I(I({},r),e),a=o.children,i=o.collapsible,l=o.defaultCollapsed,s=o.style,u=o.labelLayout,d=o.title,f=d===void 0?e.label:d,m=o.tooltip,h=o.align,g=h===void 0?"start":h,v=o.direction,p=o.size,y=p===void 0?32:p,b=o.titleStyle,C=o.titleRender,S=o.spaceProps,$=o.extra,x=o.autoFocus,w=Pt(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),O=X(w,2),E=O[0],P=O[1],M=c.useContext(bt.ConfigContext),D=M.getPrefixCls,R=Rw(e),_=R.ColWrapper,T=R.RowWrapper,k=D("pro-form-group"),N=Z_e(k),j=N.wrapSSR,A=N.hashId,B=i&&F.jsx(pi,{style:{marginInlineEnd:8},rotate:E?void 0:90}),z=F.jsx(Iye,{label:B?F.jsxs("div",{children:[B,f]}):f,tooltip:m}),H=c.useCallback(function(q){var J=q.children;return F.jsx(hi,I(I({},S),{},{className:Z("".concat(k,"-container ").concat(A),S==null?void 0:S.className),size:y,align:g,direction:v,style:I({rowGap:0},S==null?void 0:S.style),children:J}))},[g,k,v,A,y,S]),V=C?C(z,e):z,U=c.useMemo(function(){var q=[],J=W.Children.toArray(a).map(function(Q,ne){var re;return W.isValidElement(Q)&&Q!==null&&Q!==void 0&&(re=Q.props)!==null&&re!==void 0&&re.hidden?(q.push(Q),null):ne===0&&W.isValidElement(Q)&&x?W.cloneElement(Q,I(I({},Q.props),{},{autoFocus:x})):Q});return[F.jsx(T,{Wrapper:H,children:J},"children"),q.length>0?F.jsx("div",{style:{display:"none"},children:q}):null]},[a,T,H,x]),K=X(U,2),Y=K[0],G=K[1];return j(F.jsx(_,{children:F.jsxs("div",{className:Z(k,A,L({},"".concat(k,"-twoLine"),u==="twoLine")),style:s,ref:t,children:[G,(f||m||$)&&F.jsx("div",{className:"".concat(k,"-title ").concat(A).trim(),style:b,onClick:function(){P(!E)},children:$?F.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[V,F.jsx("span",{onClick:function(J){return J.stopPropagation()},children:$})]}):V}),F.jsx("div",{style:{display:i&&E?"none":void 0},children:Y})]})}))});lF.displayName="ProForm-Group";const J_e=lF;var eTe=function(t){var n=Un(),r=Kn.useFormInstance();if(t.render===!1)return null;var o=t.onSubmit,a=t.render,i=t.onReset,l=t.searchConfig,s=l===void 0?{}:l,u=t.submitButtonProps,d=t.resetButtonProps,f=Aa.useToken(),m=f.token,h=function(){r.submit(),o==null||o()},g=function(){r.resetFields(),i==null||i()},v=s.submitText,p=v===void 0?n.getMessage("tableForm.submit","提交"):v,y=s.resetText,b=y===void 0?n.getMessage("tableForm.reset","重置"):y,C=[];d!==!1&&C.push(c.createElement(Nr,I(I({},so(d,["preventDefault"])),{},{key:"rest",onClick:function(x){var w;d!=null&&d.preventDefault||g(),d==null||(w=d.onClick)===null||w===void 0||w.call(d,x)}}),b)),u!==!1&&C.push(c.createElement(Nr,I(I({type:"primary"},so(u||{},["preventDefault"])),{},{key:"submit",onClick:function(x){var w;u!=null&&u.preventDefault||h(),u==null||(w=u.onClick)===null||w===void 0||w.call(u,x)}}),p));var S=a?a(I(I({},t),{},{form:r,submit:h,reset:g}),C):C;return S?Array.isArray(S)?(S==null?void 0:S.length)<1?null:(S==null?void 0:S.length)===1?S[0]:F.jsx("div",{style:{display:"flex",gap:m.marginXS,alignItems:"center"},children:S}):S:null};const tTe=eTe;var nTe=["fieldProps","proFieldProps"],rTe=["fieldProps","proFieldProps"],Hp="text",oTe=function(t){var n=t.fieldProps,r=t.proFieldProps,o=ze(t,nTe);return F.jsx(Vf,I({valueType:Hp,fieldProps:n,filedConfig:{valueType:Hp},proFieldProps:r},o))},aTe=function(t){var n=Pt(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=X(n,2),o=r[0],a=r[1];return F.jsx(Kn.Item,{shouldUpdate:!0,noStyle:!0,children:function(l){var s,u=l.getFieldValue(t.name||[]);return F.jsx(bs,I(I({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:a,content:F.jsxs("div",{style:{padding:"4px 0"},children:[(s=t.statusRender)===null||s===void 0?void 0:s.call(t,u),t.strengthText?F.jsx("div",{style:{marginTop:10},children:F.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:o,children:t.children}))}})},iTe=function(t){var n=t.fieldProps,r=t.proFieldProps,o=ze(t,rTe),a=c.useState(!1),i=X(a,2),l=i[0],s=i[1];return n!=null&&n.statusRender&&o.name?F.jsx(aTe,{name:o.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:l,onOpenChange:s,children:F.jsx("div",{children:F.jsx(Vf,I({valueType:"password",fieldProps:I(I({},so(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,d),s(!1)},onClick:function(d){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,d),s(!0)}}),proFieldProps:r,filedConfig:{valueType:Hp}},o))})}):F.jsx(Vf,I({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:Hp}},o))},Zw=oTe;Zw.Password=iTe;Zw.displayName="ProFormComponent";const Nb=Zw;var lTe=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],sTe=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],hg=function(t,n,r){return t===!0?n:Ip(t,n,r)},_I=function(t){return!t||Array.isArray(t)?t:[t]};function cTe(e){var t,n=e.children,r=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,i=e.formRef,l=e.onInit,s=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,m=e.syncToUrl,h=e.onUrlSearchChange,g=e.onReset,v=e.omitNil,p=v===void 0?!0:v;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,b=y===void 0?!0:y,C=e.grid,S=e.rowProps,$=e.colProps,x=ze(e,lTe),w=Kn.useFormInstance(),O=(bt==null||(t=bt.useConfig)===null||t===void 0?void 0:t.call(bt))||{componentSize:"middle"},E=O.componentSize,P=c.useRef(s||w),M=Rw({grid:C,rowProps:S}),D=M.RowWrapper,R=Ba(function(){return w}),_=c.useMemo(function(){return{getFieldsFormatValue:function(z){var H;return a((H=R())===null||H===void 0?void 0:H.getFieldsValue(z),p)},getFieldFormatValue:function(){var z,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=_I(H);if(!V)throw new Error("nameList is require");var U=(z=R())===null||z===void 0?void 0:z.getFieldValue(V),K=V?or({},V,U):U;return Or(a(K,p,V),V)},getFieldFormatValueObject:function(z){var H,V=_I(z),U=(H=R())===null||H===void 0?void 0:H.getFieldValue(V),K=V?or({},V,U):U;return a(K,p,V)},validateFieldsReturnFormatValue:function(){var B=Tr(an().mark(function H(V){var U,K,Y;return an().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(!(!Array.isArray(V)&&V)){q.next=2;break}throw new Error("nameList must be array");case 2:return q.next=4,(U=R())===null||U===void 0?void 0:U.validateFields(V);case 4:return K=q.sent,Y=a(K,p),q.abrupt("return",Y||{});case 7:case"end":return q.stop()}},H)}));function z(H){return B.apply(this,arguments)}return z}()}},[p,a]),T=c.useMemo(function(){return W.Children.toArray(n).map(function(B,z){return z===0&&W.isValidElement(B)&&b?W.cloneElement(B,I(I({},B.props),{},{autoFocus:b})):B})},[b,n]),k=c.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),N=c.useMemo(function(){if(o!==!1)return F.jsx(tTe,I(I({},k),{},{onReset:function(){var z,H,V=a((z=P.current)===null||z===void 0?void 0:z.getFieldsValue(),p);if(k==null||(H=k.onReset)===null||H===void 0||H.call(k,V),g==null||g(V),m){var U,K=Object.keys(a((U=P.current)===null||U===void 0?void 0:U.getFieldsValue(),!1)).reduce(function(Y,G){return I(I({},Y),{},L({},G,V[G]||void 0))},f);h(hg(m,K||{},"set"))}},submitButtonProps:I({loading:u},k.submitButtonProps)}),"submitter")},[o,k,u,a,p,g,m,f,h]),j=c.useMemo(function(){var B=C?F.jsx(D,{children:T}):T;return r?r(B,N,P.current):B},[C,D,T,r,N]),A=Hye(e.initialValues);return c.useEffect(function(){if(!(m||!e.initialValues||!A||x.request)){var B=rs(e.initialValues,A);Sf(B,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),Sf(B,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),c.useImperativeHandle(i,function(){return I(I({},P.current),_)},[_,P.current]),c.useEffect(function(){var B,z,H=a((B=P.current)===null||B===void 0||(z=B.getFieldsValue)===null||z===void 0?void 0:z.call(B,!0),p);l==null||l(H,I(I({},P.current),_))},[]),F.jsx(Vj.Provider,{value:I(I({},_),{},{formRef:P}),children:F.jsx(bt,{componentSize:x.size||E,children:F.jsxs(Qj.Provider,{value:{grid:C,colProps:$},children:[x.component!==!1&&F.jsx("input",{type:"text",style:{display:"none"}}),j]})})})}var TI=0;function uTe(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,o=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,i=a===void 0?!1:a,l=e.syncToInitialValues,s=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,h=e.dateFormatter,g=h===void 0?"string":h,v=e.formRef;e.onInit;var p=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,C=b===void 0?!0:b,S=e.request,$=e.params,x=e.initialValues,w=e.formKey,O=w===void 0?TI:w;e.readonly;var E=e.onLoadingChange,P=e.loading,M=ze(e,sTe),D=c.useRef({}),R=Pt(!1,{onChange:E,value:P}),_=X(R,2),T=_[0],k=_[1],N=Xj({},{disabled:!r}),j=X(N,2),A=j[0],B=j[1],z=c.useRef(qj());c.useEffect(function(){TI+=0},[]);var H=zye({request:S,params:$,proFieldKey:O}),V=X(H,1),U=V[0],K=c.useContext(bt.ConfigContext),Y=K.getPrefixCls,G=Y("pro-form"),q=un("ProForm",function(le){return L({},".".concat(G),L({},"> div:not(".concat(le.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),J=q.wrapSSR,Q=q.hashId,ne=c.useState(function(){return r?hg(r,A,"get"):{}}),re=X(ne,2),oe=re[0],te=re[1],ee=c.useRef({}),ie=c.useRef({}),de=Ba(function(le,me,ye){return abe(Tye(le,g,ie.current,me,ye),ee.current,me)});c.useEffect(function(){s||te({})},[s]),c.useEffect(function(){r&&B(hg(r,I(I({},A),n),"set"))},[n,r]);var he=c.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(le){return le.parentNode||document.body}},[y]),fe=Ba(Tr(an().mark(function le(){var me,ye,ge,ve,$e,Ce;return an().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(M.onFinish){Re.next=2;break}return Re.abrupt("return");case 2:if(!T){Re.next=4;break}return Re.abrupt("return");case 4:return k(!0),Re.prev=5,ge=D==null||(me=D.current)===null||me===void 0||(ye=me.getFieldsFormatValue)===null||ye===void 0?void 0:ye.call(me),Re.next=9,M.onFinish(ge);case 9:r&&(Ce=Object.keys(D==null||(ve=D.current)===null||ve===void 0||($e=ve.getFieldsFormatValue)===null||$e===void 0?void 0:$e.call(ve,void 0,!1)).reduce(function(Ee,_e){var Fe;return I(I({},Ee),{},L({},_e,(Fe=ge[_e])!==null&&Fe!==void 0?Fe:void 0))},n),Object.keys(A).forEach(function(Ee){Ce[Ee]!==!1&&Ce[Ee]!==0&&!Ce[Ee]&&(Ce[Ee]=void 0)}),B(hg(r,Ce,"set"))),k(!1),Re.next=17;break;case 13:Re.prev=13,Re.t0=Re.catch(5),console.log(Re.t0),k(!1);case 17:case"end":return Re.stop()}},le,null,[[5,13]])})));return c.useImperativeHandle(v,function(){return D.current},[!U]),!U&&e.request?F.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:F.jsx(El,{})}):J(F.jsx(Xw.Provider,{value:{mode:e.readonly?"read":"edit"},children:F.jsx(Mm,{needDeps:!0,children:F.jsx($0.Provider,{value:{formRef:D,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:y,getPopupContainer:he,formKey:z.current,setFieldValueType:function(me,ye){var ge=ye.valueType,ve=ge===void 0?"text":ge,$e=ye.dateFormat,Ce=ye.transform;Array.isArray(me)&&(ee.current=or(ee.current,me,Ce),ie.current=or(ie.current,me,{valueType:ve,dateFormat:$e}))}},children:F.jsx(Qw.Provider,{value:{},children:F.jsx(Kn,I(I({onKeyPress:function(me){if(o&&me.key==="Enter"){var ye;(ye=D.current)===null||ye===void 0||ye.submit()}},autoComplete:"off",form:p},so(M,["labelWidth","autoFocusFirstInput"])),{},{initialValues:i?I(I(I({},x),U),oe):I(I(I({},oe),x),U),onValuesChange:function(me,ye){var ge;M==null||(ge=M.onValuesChange)===null||ge===void 0||ge.call(M,de(me,!!C),de(ye,!!C))},className:Z(e.className,G,Q),onFinish:fe,children:F.jsx(cTe,I(I({transformKey:de,autoComplete:"off",loading:T,onUrlSearchChange:B},e),{},{formRef:D,initialValues:I(I({},x),U)}))}))})})})}))}var dTe=function(t){return L(L({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),L({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function fTe(e){return un("LightWrapper",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[dTe(n)]})}var mTe=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],vTe=function(t){var n=t.label,r=t.size,o=t.disabled,a=t.onChange,i=t.className,l=t.style,s=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,h=t.footerRender,g=t.allowClear,v=t.otherFieldProps,p=t.valueType,y=t.placement,b=ze(t,mTe),C=c.useContext(bt.ConfigContext),S=C.getPrefixCls,$=S("pro-field-light-wrapper"),x=fTe($),w=x.wrapSSR,O=x.hashId,E=c.useState(t[u]),P=X(E,2),M=P[0],D=P[1],R=Pt(!1),_=X(R,2),T=_[0],k=_[1],N=function(){for(var z,H=arguments.length,V=new Array(H),U=0;U div":{width:"100%"}}})),"@media (min-width: ".concat(t.screenMDMin,"px)"),L({},t.componentCls,{"&-left":{backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}})),"@media (max-width: ".concat(t.screenSM,"px)"),L({},t.componentCls,{"&-main":{width:"95%",maxWidth:"328px"}}))};function pTe(e){return un("LoginFormPage",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[gTe(n)]})}var hTe=["logo","message","style","activityConfig","backgroundImageUrl","backgroundVideoUrl","title","subTitle","actions","children","containerStyle","otherStyle","mainStyle"];function yTe(e){var t=e.logo,n=e.message,r=e.style,o=e.activityConfig,a=e.backgroundImageUrl,i=e.backgroundVideoUrl,l=e.title,s=e.subTitle,u=e.actions,d=e.children,f=e.containerStyle,m=e.otherStyle,h=e.mainStyle,g=ze(e,hTe),v=Un(),p=function(){var P,M;return g.submitter===!1||((P=g.submitter)===null||P===void 0?void 0:P.submitButtonProps)===!1?!1:I({size:"large",style:{width:"100%"}},(M=g.submitter)===null||M===void 0?void 0:M.submitButtonProps)},y=I(I({searchConfig:{submitText:v.getMessage("loginForm.submitText","登录")},render:function(P,M){return M.pop()}},g.submitter),{},{submitButtonProps:p()}),b=c.useContext(bt.ConfigContext),C=b.getPrefixCls("pro-form-login-page"),S=pTe(C),$=S.wrapSSR,x=S.hashId,w=function(P){return"".concat(C,"-").concat(P," ").concat(x).trim()},O=c.useMemo(function(){return t?typeof t=="string"?F.jsx("img",{src:t}):t:null},[t]);return $(F.jsxs("div",{className:Z(C,x),style:I(I({},r),{},{position:"relative",backgroundImage:'url("'.concat(a,'")')}),children:[i?F.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",overflow:"hidden",height:"100%",zIndex:1,pointerEvents:"none"},children:F.jsx("video",{src:i,controls:!1,autoPlay:!0,playsInline:!0,loop:!0,muted:!0,crossOrigin:"anonymous",style:{width:"100%",height:"100%",objectFit:"cover"}})}):null,F.jsxs("div",{className:Z(C,x),children:[F.jsx("div",{className:w("notice"),children:o&&F.jsxs("div",{className:w("notice-activity"),style:o.style,children:[o.title&&F.jsxs("div",{className:w("notice-activity-title"),children:[" ",o.title," "]}),o.subTitle&&F.jsx("div",{className:w("notice-activity-subTitle"),children:o.subTitle}),o.action&&F.jsx("div",{className:w("notice-activity-action"),children:o.action})]})}),F.jsx("div",{className:w("left"),children:F.jsxs("div",{className:w("container"),style:f,children:[F.jsxs("div",{className:w("top"),children:[l||O?F.jsxs("div",{className:w("header"),children:[O?F.jsx("span",{className:w("logo"),children:O}):null,l?F.jsx("span",{className:w("title"),children:l}):null]}):null,s?F.jsx("div",{className:w("desc"),children:s}):null]}),F.jsxs("div",{className:w("main"),style:h,children:[F.jsxs(Pi,I(I({isKeyPressSubmit:!0},g),{},{submitter:y,children:[n,d]})),u?F.jsx("div",{className:w("other"),style:m,children:u}):null]})]})})]})]}))}var bTe=function(t){return L({},t.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:to(t.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(t.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:t.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:t.colorText},"&-right":{color:t.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function CTe(e){return un("ProLayoutFooterToolbar",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[bTe(n)]})}function STe(e,t){var n=t.stylish;return un("ProLayoutFooterToolbarStylish",function(r){var o=I(I({},r),{},{componentCls:".".concat(e)});return n?[L({},"".concat(o.componentCls),n==null?void 0:n(o))]:[]})}var xTe=["children","className","extra","portalDom","style","renderContent"],wTe=function(t){var n=t.children,r=t.className,o=t.extra,a=t.portalDom,i=a===void 0?!0:a,l=t.style,s=t.renderContent,u=ze(t,xTe),d=c.useContext(bt.ConfigContext),f=d.getPrefixCls,m=d.getTargetContainer,h=t.prefixCls||f("pro"),g="".concat(h,"-footer-bar"),v=CTe(g),p=v.wrapSSR,y=v.hashId,b=c.useContext(Wf),C=c.useMemo(function(){var E=b.hasSiderMenu,P=b.isMobile,M=b.siderWidth;if(E)return M?P?"100%":"calc(100% - ".concat(M,"px)"):"100%"},[b.collapsed,b.hasSiderMenu,b.isMobile,b.siderWidth]),S=c.useMemo(function(){return(typeof window>"u"?"undefined":et(window))===void 0||(typeof document>"u"?"undefined":et(document))===void 0?null:(m==null?void 0:m())||document.body},[]),$=STe("".concat(g,".").concat(g,"-stylish"),{stylish:t.stylish}),x=F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"".concat(g,"-left ").concat(y).trim(),children:o}),F.jsx("div",{className:"".concat(g,"-right ").concat(y).trim(),children:n})]});c.useEffect(function(){return!b||!(b!=null&&b.setHasFooterToolbar)?function(){}:(b==null||b.setHasFooterToolbar(!0),function(){var E;b==null||(E=b.setHasFooterToolbar)===null||E===void 0||E.call(b,!1)})},[]);var w=F.jsx("div",I(I({className:Z(r,y,g,L({},"".concat(g,"-stylish"),!!t.stylish)),style:I({width:C},l)},so(u,["prefixCls"])),{},{children:s?s(I(I(I({},t),b),{},{leftWidth:C}),x):x})),O=!gl()||!i||!S?w:ja.createPortal(w,S,g);return $.wrapSSR(p(F.jsx(W.Fragment,{children:O},g)))},Wf=c.createContext({}),$Te=function(t){return L({},t.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function ETe(e){return un("ProLayoutGridContent",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[$Te(n)]})}var PTe=function(t){var n=c.useContext(Wf),r=t.children,o=t.contentWidth,a=t.className,i=t.style,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls,u=t.prefixCls||s("pro"),d=o||n.contentWidth,f="".concat(u,"-grid-content"),m=ETe(f),h=m.wrapSSR,g=m.hashId,v=d==="Fixed"&&n.layout==="top";return h(F.jsx("div",{className:Z(f,g,a,L({},"".concat(f,"-wide"),v)),style:i,children:F.jsx("div",{className:"".concat(u,"-grid-content-children ").concat(g).trim(),children:r})}))},wS={exports:{}},sF={},Jw={};Object.defineProperty(Jw,"__esModule",{value:!0});var OTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};Jw.default=OTe;var e$={};const cF=Sk(CH);var t$={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t=c,n=(0,t.createContext)({}),r=n})(t$);var n$={},L0={},Hu={},uF={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(uF);var ITe=uF.exports,dF={exports:{}},fF={exports:{}},mF={exports:{}},vF={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vF);var gF=vF.exports,pF={exports:{}};(function(e){var t=gF.default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(pF);var MTe=pF.exports;(function(e){var t=gF.default,n=MTe;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(mF);var RTe=mF.exports;(function(e){var t=RTe;function n(r,o,a){return o=t(o),o in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fF);var _Te=fF.exports;(function(e){var t=_Te;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function r(o){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kTe}function A0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function LTe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function i$(e){return Array.from((Vp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function l$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,DTe.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=LTe(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(jI,i),l&&a&&s.setAttribute(DI,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=A0(t),d=u.firstChild;if(r){if(l){var f=(t.styles||i$(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(jI)))return!1;var h=Number(m.getAttribute(DI)||0);return a>=h});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function yF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=A0(t);return(t.styles||i$(n)).find(function(r){return r.getAttribute(hF(t))===e})}function ATe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yF(e,t);if(n){var r=A0(t);r.removeChild(n)}}function BTe(e,t){var n=Vp.get(e);if(!n||!(0,FTe.default)(document,n)){var r=l$("",t),o=r.parentNode;Vp.set(e,o),e.removeChild(r)}}function zTe(){Vp.clear()}function HTe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=A0(n),o=i$(r),a=(0,NI.default)((0,NI.default)({},n),{},{styles:o});BTe(r,a);var i=yF(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=l$(e,a);return d.setAttribute(hF(a),t),d}var B0={};Object.defineProperty(B0,"__esModule",{value:!0});B0.getShadowRoot=VTe;B0.inShadow=CF;function bF(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function CF(e){return bF(e)instanceof ShadowRoot}function VTe(e){return CF(e)?bF(e):null}var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.call=s$;Yo.default=void 0;Yo.note=xF;Yo.noteOnce=$F;Yo.preMessage=void 0;Yo.resetWarned=wF;Yo.warning=SF;Yo.warningOnce=Hm;var $S={},WTe=Yo.preMessage=function(t){};function SF(e,t){}function xF(e,t){}function wF(){$S={}}function s$(e,t,n){!t&&!$S[n]&&(e(!1,n),$S[n]=!0)}function Hm(e,t){s$(SF,e,t)}function $F(e,t){s$(xF,e,t)}Hm.preMessage=WTe;Hm.resetWarned=wF;Hm.noteOnce=$F;Yo.default=Hm;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,O){for(var E in O)Object.defineProperty(w,E,{enumerable:!0,get:O[E]})}t(e,{generate:function(){return y},getSecondaryColor:function(){return b},iconStyles:function(){return $},isIconDefinition:function(){return v},normalizeAttrs:function(){return p},normalizeTwoToneColors:function(){return C},svgBaseProps:function(){return S},useInsertStyles:function(){return x},warning:function(){return g}});var n=cF,r=Hu,o=B0,a=u(Yo),i=f(c),l=u(t$);function s(w,O,E){return O in w?Object.defineProperty(w,O,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[O]=E,w}function u(w){return w&&w.__esModule?w:{default:w}}function d(w){if(typeof WeakMap!="function")return null;var O=new WeakMap,E=new WeakMap;return(d=function(P){return P?E:O})(w)}function f(w,O){if(!O&&w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var E=d(O);if(E&&E.has(w))return E.get(w);var P={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in w)if(D!=="default"&&Object.prototype.hasOwnProperty.call(w,D)){var R=M?Object.getOwnPropertyDescriptor(w,D):null;R&&(R.get||R.set)?Object.defineProperty(P,D,R):P[D]=w[D]}return P.default=w,E&&E.set(w,P),P}function m(w){for(var O=1;O0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(w).reduce(function(O,E){var P=w[E];switch(E){case"class":O.className=P,delete O.class;break;default:delete O[E],O[h(E)]=P}return O},{})}function y(w,O,E){return E?i.default.createElement(w.tag,m({key:O},p(w.attrs),E),(w.children||[]).map(function(P,M){return y(P,"".concat(O,"-").concat(w.tag,"-").concat(M))})):i.default.createElement(w.tag,m({key:O},p(w.attrs)),(w.children||[]).map(function(P,M){return y(P,"".concat(O,"-").concat(w.tag,"-").concat(M))}))}function b(w){return(0,n.generate)(w)[0]}function C(w){return w?Array.isArray(w)?w:[w]:[]}var S={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},$=` + `),W.createElement("div",{style:f.white,className:"saturation-white"},W.createElement("div",{style:f.black,className:"saturation-black"}),W.createElement("div",{style:f.pointer},this.props.pointer?W.createElement(this.props.pointer,this.props):W.createElement("div",{style:f.circle}))))}}]),n}(c.PureComponent||c.Component),b8e=PD,C8e=ED,S8e=aD,x8e=Po;function w8e(e,t){var n=x8e(e)?b8e:C8e;return n(e,S8e(t))}var $8e=w8e,E8e=$8e;const P8e=jn(E8e);function kp(e){"@babel/helpers - typeof";return kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(e)}var O8e=/^\s+/,I8e=/\s+$/;function Rt(e,t){if(e=e||"",t=t||{},e instanceof Rt)return e;if(!(this instanceof Rt))return new Rt(e,t);var n=M8e(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}Rt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,o,a,i,l;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*i+.0722*l},setAlpha:function(t){return this._a=WD(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=cI(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=cI(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=sI(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=sI(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return uI(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return N8e(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Bn(this._r,255)*100)+"%",g:Math.round(Bn(this._g,255)*100)+"%",b:Math.round(Bn(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Bn(this._r,255)*100)+"%, "+Math.round(Bn(this._g,255)*100)+"%, "+Math.round(Bn(this._b,255)*100)+"%)":"rgba("+Math.round(Bn(this._r,255)*100)+"%, "+Math.round(Bn(this._g,255)*100)+"%, "+Math.round(Bn(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:K8e[uI(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+dI(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=Rt(t);r="#"+dI(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,a=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Rt(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(k8e,arguments)},brighten:function(){return this._applyModification(L8e,arguments)},darken:function(){return this._applyModification(A8e,arguments)},desaturate:function(){return this._applyModification(j8e,arguments)},saturate:function(){return this._applyModification(D8e,arguments)},greyscale:function(){return this._applyModification(F8e,arguments)},spin:function(){return this._applyModification(B8e,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(V8e,arguments)},complement:function(){return this._applyCombination(z8e,arguments)},monochromatic:function(){return this._applyCombination(W8e,arguments)},splitcomplement:function(){return this._applyCombination(H8e,arguments)},triad:function(){return this._applyCombination(fI,[3])},tetrad:function(){return this._applyCombination(fI,[4])}};Rt.fromRatio=function(e,t){if(kp(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Td(e[r]));e=n}return Rt(e,t)};function M8e(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=Y8e(e)),kp(e)=="object"&&(Qa(e.r)&&Qa(e.g)&&Qa(e.b)?(t=R8e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qa(e.h)&&Qa(e.s)&&Qa(e.v)?(r=Td(e.s),o=Td(e.v),t=T8e(e.h,r,o),i=!0,l="hsv"):Qa(e.h)&&Qa(e.s)&&Qa(e.l)&&(r=Td(e.s),a=Td(e.l),t=_8e(e.h,r,a),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=WD(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function R8e(e,t,n){return{r:Bn(e,255)*255,g:Bn(t,255)*255,b:Bn(n,255)*255}}function sI(e,t,n){e=Bn(e,255),t=Bn(t,255),n=Bn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a,i,l=(r+o)/2;if(r==o)a=i=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function cI(e,t,n){e=Bn(e,255),t=Bn(t,255),n=Bn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a,i,l=r,s=r-o;if(i=r===0?0:s/r,r==o)a=0;else{switch(r){case e:a=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(Rt(r));return a}function W8e(e,t){t=t||6;for(var n=Rt(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(Rt({h:r,s:o,v:a})),a=(a+l)%1;return i}Rt.mix=function(e,t,n){n=n===0?0:n||50;var r=Rt(e).toRgb(),o=Rt(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return Rt(i)};Rt.readability=function(e,t){var n=Rt(e),r=Rt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Rt.isReadable=function(e,t,n){var r=Rt.readability(e,t),o,a;switch(a=!1,o=X8e(n),o.level+o.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Rt.mostReadable=function(e,t,n){var r=null,o=0,a,i,l,s;n=n||{},i=n.includeFallbackColors,l=n.level,s=n.size;for(var u=0;uo&&(o=a,r=Rt(t[u]));return Rt.isReadable(e,r,{level:l,size:s})||!i?r:(n.includeFallbackColors=!1,Rt.mostReadable(e,["#fff","#000"],n))};var pS=Rt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K8e=Rt.hexNames=U8e(pS);function U8e(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function WD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bn(e,t){G8e(e)&&(e="100%");var n=q8e(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function k0(e){return Math.min(1,Math.max(0,e))}function go(e){return parseInt(e,16)}function G8e(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function q8e(e){return typeof e=="string"&&e.indexOf("%")!=-1}function sa(e){return e.length==1?"0"+e:""+e}function Td(e){return e<=1&&(e=e*100+"%"),e}function KD(e){return Math.round(parseFloat(e)*255).toString(16)}function mI(e){return go(e)/255}var ea=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qa(e){return!!ea.CSS_UNIT.exec(e)}function Y8e(e){e=e.replace(O8e,"").replace(I8e,"").toLowerCase();var t=!1;if(pS[e])e=pS[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ea.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=ea.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ea.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=ea.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ea.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=ea.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ea.hex8.exec(e))?{r:go(n[1]),g:go(n[2]),b:go(n[3]),a:mI(n[4]),format:t?"name":"hex8"}:(n=ea.hex6.exec(e))?{r:go(n[1]),g:go(n[2]),b:go(n[3]),format:t?"name":"hex"}:(n=ea.hex4.exec(e))?{r:go(n[1]+""+n[1]),g:go(n[2]+""+n[2]),b:go(n[3]+""+n[3]),a:mI(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=ea.hex3.exec(e))?{r:go(n[1]+""+n[1]),g:go(n[2]+""+n[2]),b:go(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function X8e(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var vI=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return P8e(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(t[a])&&(o+=1)}}),r===o?t:!1},kv=function(t,n){var r=t.hex?Rt(t.hex):Rt(t),o=r.toHsl(),a=r.toHsv(),i=r.toRgb(),l=r.toHex();o.s===0&&(o.h=n||0,a.h=n||0);var s=l==="000000"&&i.a===0;return{hsl:o,hex:s?"transparent":"#".concat(l),rgb:i,hsv:a,oldHue:t.h||n||o.h,source:t.source}},Q8e=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Rt(t).isValid()};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lp(e){return Lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lp(e)}var lMe=function(t){var n=function(r){nMe(a,r);var o=rMe(a);function a(i){var l;return J8e(this,a),l=o.call(this),l.handleChange=function(s,u){var d=vI(s);if(d){var f=kv(s,s.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(s,u){var d=vI(s);if(d){var f=kv(s,s.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=yd({},kv(i.color,0)),l.debounce=t8e(function(s,u,d){s(u,d)},100),l}return eMe(a,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),W.createElement(t,hS({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,s){return yd({},kv(l.color,s.oldHue))}}]),a}(c.PureComponent||c.Component);return n.propTypes=yd({},t.propTypes),n.defaultProps=yd(yd({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function sMe(e,t,n){return t=GD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hI(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ap(e)}var hMe=1,qD=38,yMe=40,bMe=[qD,yMe],CMe=function(t){return bMe.indexOf(t)>-1},SMe=function(t){return Number(String(t).replace(/%/g,""))},xMe=1,bd=function(e){fMe(n,e);var t=mMe(n);function n(r){var o;return cMe(this,n),o=t.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(a){o.setUpdatedValue(a.target.value,a)},o.handleKeyDown=function(a){var i=SMe(a.target.value);if(!isNaN(i)&&CMe(a.keyCode)){var l=o.getArrowOffset(),s=a.keyCode===qD?i+l:i-l;o.setUpdatedValue(s,a)}},o.handleDrag=function(a){if(o.props.dragLabel){var i=Math.round(o.props.value+a.movementX);i>=0&&i<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(i),a)}},o.handleMouseDown=function(a){o.props.dragLabel&&(a.preventDefault(),o.handleDrag(a),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(xMe++),o}return uMe(n,[{key:"componentDidUpdate",value:function(o,a){this.props.value!==this.state.value&&(o.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return sMe({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||hMe}},{key:"setUpdatedValue",value:function(o,a){var i=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(i,a),this.setState({value:o})}},{key:"render",value:function(){var o=this,a=Pl({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return W.createElement("div",{style:a.wrap},W.createElement("input",{id:this.inputId,style:a.input,ref:function(l){return o.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?W.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(c.PureComponent||c.Component);function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bp(e)}var TMe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){OMe(a,r);var o=IMe(a);function a(){var i;wMe(this,a);for(var l=arguments.length,s=new Array(l),u=0;u100&&(d.a=100),d.a/=100,n==null||n({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:d.a,source:"rgb"},f))};return W.createElement("div",{style:l.fields,className:"flexbox-fix"},W.createElement("div",{style:l.double},W.createElement(bd,{style:{input:l.input,label:l.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:s})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"r",value:r==null?void 0:r.r,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"g",value:r==null?void 0:r.g,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.single},W.createElement(bd,{style:{input:l.input,label:l.label},label:"b",value:r==null?void 0:r.b,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:l.alpha},W.createElement(bd,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:s,dragLabel:"true",dragMax:"100"})))};function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xI(e){for(var t=1;t-1}function JMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&XD()?lse:QMe}var eRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.old,u=c.useContext(bt.ConfigContext),d=u.getPrefixCls,f=W.useMemo(function(){return JMe(s)},[s]),m=d("pro-field-color-picker"),h=c.useMemo(function(){return s?"":Z(L({},m,XD()))},[m,s]);if(o==="read"){var g=F.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,I({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=I({display:"table-cell"},l.style),p=F.jsx(f,I(I({ref:n,presets:[ZMe]},l),{},{style:v,className:h}));return i?i(r,I(I({mode:o},l),{},{style:v}),p):p}return null};const tRe=W.forwardRef(eRe);zt.extend(A2);var nRe=function(t,n){return t?typeof n=="function"?n(zt(t)):zt(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},rRe=function(t,n){var r=t.text,o=t.mode,a=t.format,i=t.label,l=t.light,s=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,h=t.picker,g=t.bordered,v=t.lightLabel,p=Un(),y=c.useState(!1),b=X(y,2),C=b[0],S=b[1];if(o==="read"){var $=nRe(r,m.format||a);return s?s(r,I({mode:o},m),F.jsx(F.Fragment,{children:$})):F.jsx(F.Fragment,{children:$})}if(o==="edit"||o==="update"){var x,w=m.disabled,O=m.value,E=m.placeholder,P=E===void 0?p.getMessage("tableForm.selectPlaceholder","请选择"):E,M=_m(O);return l?x=F.jsx($i,{label:i,onClick:function(){var R;m==null||(R=m.onOpenChange)===null||R===void 0||R.call(m,!0),S(!0)},style:M?{paddingInlineEnd:0}:void 0,disabled:w,value:M||C?F.jsx(fs,I(I(I({picker:h,showTime:f,format:a,ref:n},m),{},{value:M,onOpenChange:function(R){var _;S(R),m==null||(_=m.onOpenChange)===null||_===void 0||_.call(m,R)}},Sa(!1)),{},{open:C})):void 0,allowClear:!1,downIcon:M||C?!1:void 0,bordered:g,ref:v}):x=F.jsx(fs,I(I(I({picker:h,showTime:f,format:a,placeholder:P},Sa(d===void 0?!0:!d)),{},{ref:n},m),{},{value:M})),u?u(r,I({mode:o},m),x):x}return null};const Ks=W.forwardRef(rRe);var oRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.placeholder,l=t.renderFormItem,s=t.fieldProps,u=Un(),d=i||u.getMessage("tableForm.inputPlaceholder","请输入"),f=c.useCallback(function(y){var b=y??void 0;return!s.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!gs(b)&&!gs(s.precision)&&(b=Number(b.toFixed(s.precision))),b},[s]);if(o==="read"){var m,h={};s!=null&&s.precision&&(h={minimumFractionDigits:Number(s.precision),maximumFractionDigits:Number(s.precision)});var g=new Intl.NumberFormat(void 0,I(I({},h),(s==null?void 0:s.intlProps)||{})).format(Number(r)),v=F.jsx("span",{ref:n,children:(s==null||(m=s.formatter)===null||m===void 0?void 0:m.call(s,g))||g});return a?a(r,I({mode:o},s),v):v}if(o==="edit"||o==="update"){var p=F.jsx(ml,I(I({ref:n,min:0,placeholder:d},so(s,["onChange","onBlur"])),{},{onChange:function(b){var C;return s==null||(C=s.onChange)===null||C===void 0?void 0:C.call(s,f(b))},onBlur:function(b){var C;return s==null||(C=s.onBlur)===null||C===void 0?void 0:C.call(s,f(b.target.value))}}));return l?l(r,I({mode:o},s),p):p}return null};const aRe=W.forwardRef(oRe);var iRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.placeholder,l=t.renderFormItem,s=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,h=s.value,g=s.defaultValue,v=s.onChange,p=s.id,y=Un(),b=Aa.useToken(),C=b.token,S=Pt(function(){return g},{value:h,onChange:v}),$=X(S,2),x=$[0],w=$[1];if(o==="read"){var O=function(j){var A,B=new Intl.NumberFormat(void 0,I({minimumSignificantDigits:2},(s==null?void 0:s.intlProps)||{})).format(Number(j));return(s==null||(A=s.formatter)===null||A===void 0?void 0:A.call(s,B))||B},E=F.jsxs("span",{ref:n,children:[O(r[0])," ",d," ",O(r[1])]});return a?a(r,I({mode:o},s),E):E}if(o==="edit"||o==="update"){var P=function(){if(Array.isArray(x)){var j=X(x,2),A=j[0],B=j[1];typeof A=="number"&&typeof B=="number"&&A>B?w([B,A]):A===void 0&&B===void 0&&w(void 0)}},M=function(j,A){var B=Te(x||[]);B[j]=A===null?void 0:A,w(B)},D=(s==null?void 0:s.placeholder)||i||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],R=function(j){return Array.isArray(D)?D[j]:D},_=hi.Compact||Vo.Group,T=hi.Compact?{}:{compact:!0},k=F.jsxs(_,I(I({},T),{},{onBlur:P,children:[F.jsx(ml,I(I({},s),{},{placeholder:R(0),id:p??"".concat(p,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:x==null?void 0:x[0],defaultValue:g==null?void 0:g[0],onChange:function(j){return M(0,j)}})),F.jsx(Vo,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:C==null?void 0:C.colorBgContainer},placeholder:d,disabled:!0}),F.jsx(ml,I(I({},s),{},{placeholder:R(1),id:p??"".concat(p,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:x==null?void 0:x[1],defaultValue:g==null?void 0:g[1],onChange:function(j){return M(1,j)}}))]}));return l?l(r,I({mode:o},s),k):k}return null};const lRe=W.forwardRef(iRe);var QD={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lr,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,f,m){return a.fromToBase(u,d,f,m)}o.en.relativeTime=i,a.fromToBase=function(u,d,f,m,h){for(var g,v,p,y=f.$locale().relativeTime||i,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=b.length,S=0;S0,x<=$.r||!$.r){x<=1&&S>0&&($=b[S-1]);var w=y[$.l];h&&(x=h(""+x)),v=typeof w=="string"?w.replace("%d",x):w(x,d,$.l,p);break}}if(d)return v;var O=p?y.future:y.past;return typeof O=="function"?O(v):O.replace("%s",v)},a.to=function(u,d){return l(u,d,this,!0)},a.from=function(u,d){return l(u,d,this)};var s=function(u){return u.$u?o.utc():o()};a.toNow=function(u){return this.to(s(this),u)},a.fromNow=function(u){return this.from(s(this),u)}}})})(QD);var sRe=QD.exports;const cRe=jn(sRe);zt.extend(cRe);var uRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.format,s=t.fieldProps,u=Un();if(o==="read"){var d=F.jsx(Go,{title:zt(r).format((s==null?void 0:s.format)||l||"YYYY-MM-DD HH:mm:ss"),children:zt(r).fromNow()});return a?a(r,I({mode:o},s),F.jsx(F.Fragment,{children:d})):F.jsx(F.Fragment,{children:d})}if(o==="edit"||o==="update"){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),m=_m(s.value),h=F.jsx(fs,I(I({ref:n,placeholder:f,showTime:!0},s),{},{value:m}));return i?i(r,I({mode:o},s),h):h}return null};const dRe=W.forwardRef(uRe);var fRe=W.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,a=e.renderFormItem,i=e.fieldProps,l=e.placeholder,s=e.width,u=Un(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=F.jsx(Bue,I({ref:t,width:s||32,src:n},i));return o?o(n,I({mode:r},i),f):f}if(r==="edit"||r==="update"){var m=F.jsx(Vo,I({ref:t,placeholder:d},i));return a?a(n,I({mode:r},i),m):m}return null});const ZD=fRe;var mRe=function(t,n){var r=t.border,o=r===void 0?!1:r,a=t.children,i=c.useContext(bt.ConfigContext),l=i.getPrefixCls,s=l("pro-field-index-column"),u=un("IndexColumn",function(){return L({},".".concat(s),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(F.jsx("div",{ref:n,className:Z(s,f,L(L({},"".concat(s,"-border"),o),"top-three",a>3)),children:a}))};const $I=W.forwardRef(mRe);var vRe=["contentRender","numberFormatOptions","numberPopoverRender","open"],gRe=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],JD=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),pRe={style:"currency",currency:"USD"},hRe={style:"currency",currency:"RUB"},yRe={style:"currency",currency:"RSD"},bRe={style:"currency",currency:"MYR"},CRe={style:"currency",currency:"BRL"},SRe={default:JD,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":pRe,"ru-RU":hRe,"ms-MY":bRe,"sr-RS":yRe,"pt-BR":CRe},EI=function(t,n,r,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=n==null?void 0:n.toString().replaceAll(",","");if(typeof i=="string"){var l=Number(i);if(Number.isNaN(l))return i;i=l}if(!i&&i!==0)return"";var s=!1;try{s=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(s&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",I(I({},SRe[t||"zh-Hans-CN"]||JD),{},{maximumFractionDigits:r},o)),d=u.format(i),f=function(y){var b=y.match(/\d+/);if(b){var C=b[0];return y.slice(y.indexOf(C))}else return y},m=f(d),h=d||"",g=X(h,1),v=g[0];return["+","-"].includes(v)?"".concat(a||"").concat(v).concat(m):"".concat(a||"").concat(m)}catch{return i}},Tb=2,xRe=W.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,o=ze(e,vRe),a=Pt(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),i=X(a,2),l=i[0],s=i[1],u=n==null?void 0:n(I(I({},o),{},{value:l})),d=Rm(u?r:!1);return F.jsx(Cs,I(I({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:F.jsx(ml,I(I({ref:t},o),{},{value:l,onChange:s}))}))}),wRe=function(t,n){var r,o=t.text,a=t.mode,i=t.render,l=t.renderFormItem,s=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?s.customSymbol:f,h=t.numberFormatOptions,g=h===void 0?s==null?void 0:s.numberFormatOptions:h,v=t.numberPopoverRender,p=v===void 0?(s==null?void 0:s.numberPopoverRender)||!1:v,y=ze(t,gRe),b=(r=s==null?void 0:s.precision)!==null&&r!==void 0?r:Tb,C=Un();d&&eu[d]&&(C=eu[d]);var S=u||C.getMessage("tableForm.inputPlaceholder","请输入"),$=c.useMemo(function(){if(m)return m;if(!(y.moneySymbol===!1||s.moneySymbol===!1))return C.getMessage("moneySymbol","¥")},[m,s.moneySymbol,C,y.moneySymbol]),x=c.useCallback(function(E){var P=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-Tb,0),"})+(?!\\d))"),"g"),M=String(E).split("."),D=X(M,2),R=D[0],_=D[1],T=R.replace(P,","),k="";return _&&b>0&&(k=".".concat(_.slice(0,b===void 0?Tb:b))),"".concat(T).concat(k)},[b]);if(a==="read"){var w=F.jsx("span",{ref:n,children:EI(d||!1,o,b,g??s.numberFormatOptions,$)});return i?i(o,I({mode:a},s),w):w}if(a==="edit"||a==="update"){var O=F.jsx(xRe,I(I({contentRender:function(P){if(p===!1||!P.value)return null;var M=EI($||d||!1,"".concat(x(P.value)),b,I(I({},g),{},{notation:"compact"}),$);return typeof p=="function"?p==null?void 0:p(P,M):M},ref:n,precision:b,formatter:function(P){return P&&$?"".concat($," ").concat(x(P)):P==null?void 0:P.toString()},parser:function(P){return $&&P?P.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),""):P},placeholder:S},so(s,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:s.onBlur?function(E){var P,M=E.target.value;$&&M&&(M=M.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),"")),(P=s.onBlur)===null||P===void 0||P.call(s,M)}:void 0}));return l?l(o,I({mode:a},s),O):O}return null};const eF=W.forwardRef(wRe);var PI=function(t){return t.map(function(n,r){var o;return W.isValidElement(n)?W.cloneElement(n,I(I({key:r},n==null?void 0:n.props),{},{style:I({},n==null||(o=n.props)===null||o===void 0?void 0:o.style)})):F.jsx(W.Fragment,{children:n},r)})},$Re=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.fieldProps,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls,u=s("pro-field-option"),d=Aa.useToken(),f=d.token;if(c.useImperativeHandle(n,function(){return{}}),a){var m=a(r,I({mode:o},i),F.jsx(F.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:F.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:PI(m)})}return!r||!Array.isArray(r)?W.isValidElement(r)?r:null:F.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:PI(r)})};const ERe=W.forwardRef($Re);var PRe=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ORe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;t.proFieldKey;var s=ze(t,PRe),u=Un(),d=Pt(function(){return s.open||s.visible||!1},{value:s.open||s.visible,onChange:s.onOpenChange||s.onVisible}),f=X(d,2),m=f[0],h=f[1];if(o==="read"){var g=F.jsx(F.Fragment,{children:"-"});return r&&(g=F.jsxs(hi,{children:[F.jsx("span",{ref:n,children:m?r:"********"}),F.jsx("a",{onClick:function(){return h(!m)},children:m?F.jsx(sw,{}):F.jsx(p9,{})})]})),a?a(r,I({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=F.jsx(Vo.Password,I({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},l));return i?i(r,I({mode:o},l),v):v}return null};const IRe=W.forwardRef(ORe);var OI=NaN,MRe="[object Symbol]",RRe=/^\s+|\s+$/g,_Re=/^[-+]0x[0-9a-f]+$/i,TRe=/^0b[01]+$/i,NRe=/^0o[0-7]+$/i,jRe=parseInt,DRe=Object.prototype,FRe=DRe.toString;function II(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kRe(e){return!!e&&typeof e=="object"}function LRe(e){return typeof e=="symbol"||kRe(e)&&FRe.call(e)==MRe}function ARe(e){if(typeof e=="number")return e;if(LRe(e))return OI;if(II(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=II(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(RRe,"");var n=TRe.test(e);return n||NRe.test(e)?jRe(e.slice(2),n?2:8):_Re.test(e)?OI:+e}var BRe=ARe;const zp=jn(BRe);function zRe(e){return e===0?null:e>0?"+":"-"}function HRe(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function VRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var WRe=function(t,n){var r=t.text,o=t.prefix,a=t.precision,i=t.suffix,l=i===void 0?"%":i,s=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,h=t.fieldProps,g=t.placeholder,v=t.showSymbol,p=Un(),y=g||p.getMessage("tableForm.inputPlaceholder","请输入"),b=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?zp(r.replace("%","")):zp(r)},[r]),C=c.useMemo(function(){return typeof v=="function"?v==null?void 0:v(r):v},[v,r]);if(s==="read"){var S=d?{color:HRe(b)}:{},$=F.jsxs("span",{style:S,ref:n,children:[o&&F.jsx("span",{children:o}),C&&F.jsxs(c.Fragment,{children:[zRe(b)," "]}),VRe(Math.abs(b),a),l&&l]});return f?f(r,I(I({mode:s},h),{},{prefix:o,precision:a,showSymbol:C,suffix:l}),$):$}if(s==="edit"||s==="update"){var x=F.jsx(ml,I({ref:n,formatter:function(O){return O&&o?"".concat(o," ").concat(O).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):O},parser:function(O){return O?O.replace(/.*\s|,/g,""):""},placeholder:y},h));return m?m(r,I({mode:s},h),x):x}return null};const tF=W.forwardRef(WRe);function KRe(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var URe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.plain,l=t.renderFormItem,s=t.fieldProps,u=t.placeholder,d=Un(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?zp(r.replace("%","")):zp(r)},[r]);if(o==="read"){var h=F.jsx(Pfe,I({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:i?10:void 0,status:KRe(m)},s));return a?a(m,I({mode:o},s),h):h}if(o==="edit"||o==="update"){var g=F.jsx(ml,I({ref:n,placeholder:f},s));return l?l(r,I({mode:o},s),g):g}return null};const nF=W.forwardRef(URe);var GRe=["radioType","renderFormItem","mode","render"],qRe=function(t,n){var r,o,a=t.radioType,i=t.renderFormItem,l=t.mode,s=t.render,u=ze(t,GRe),d=c.useContext(bt.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),h=ju(u),g=X(h,3),v=g[0],p=g[1],y=g[2],b=c.useRef(),C=(r=Kn.Item)===null||r===void 0||(o=r.useStatus)===null||o===void 0?void 0:o.call(r);c.useImperativeHandle(n,function(){return I(I({},b.current||{}),{},{fetchData:function(_){return y(_)}})},[y]);var S=un("FieldRadioRadio",function(R){return L(L(L({},".".concat(m,"-error"),{span:{color:R.colorError}}),".".concat(m,"-warning"),{span:{color:R.colorWarning}}),".".concat(m,"-vertical"),L({},"".concat(R.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=S.wrapSSR,x=S.hashId;if(v)return F.jsx(El,{size:"small"});if(l==="read"){var w=p!=null&&p.length?p==null?void 0:p.reduce(function(R,_){var T;return I(I({},R),{},L({},(T=_.value)!==null&&T!==void 0?T:"",_.label))},{}):void 0,O=F.jsx(F.Fragment,{children:Nu(u.text,Ei(u.valueEnum||w))});if(s){var E;return(E=s(u.text,I({mode:l},u.fieldProps),O))!==null&&E!==void 0?E:null}return O}if(l==="edit"){var P,M=$(F.jsx(s0.Group,I(I({ref:b,optionType:a},u.fieldProps),{},{className:Z((P=u.fieldProps)===null||P===void 0?void 0:P.className,L(L({},"".concat(m,"-error"),(C==null?void 0:C.status)==="error"),"".concat(m,"-warning"),(C==null?void 0:C.status)==="warning"),x,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:p})));if(i){var D;return(D=i(u.text,I(I({mode:l},u.fieldProps),{},{options:p,loading:v}),M))!==null&&D!==void 0?D:null}return M}return null};const MI=W.forwardRef(qRe);var YRe=function(t,n){var r=t.text,o=t.mode,a=t.light,i=t.label,l=t.format,s=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,h=t.lightLabel,g=t.bordered,v=t.fieldProps,p=Un(),y=Array.isArray(r)?r:[],b=X(y,2),C=b[0],S=b[1],$=W.useState(!1),x=X($,2),w=x[0],O=x[1],E=c.useCallback(function(k){if(typeof(v==null?void 0:v.format)=="function"){var N;return v==null||(N=v.format)===null||N===void 0?void 0:N.call(v,k)}return(v==null?void 0:v.format)||l||"YYYY-MM-DD"},[v,l]),P=C?zt(C).format(E(zt(C))):"",M=S?zt(S).format(E(zt(S))):"";if(o==="read"){var D=F.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[F.jsx("div",{children:P||"-"}),F.jsx("div",{children:M||"-"})]});return s?s(r,I({mode:o},v),F.jsx("span",{children:D})):D}if(o==="edit"||o==="update"){var R=_m(v.value),_;if(a){var T;_=F.jsx($i,{label:i,onClick:function(){var N;v==null||(N=v.onOpenChange)===null||N===void 0||N.call(v,!0),O(!0)},style:R?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:R||w?F.jsx(fs.RangePicker,I(I(I({picker:u,showTime:m,format:l},Sa(!1)),v),{},{placeholder:(T=v.placeholder)!==null&&T!==void 0?T:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;O(!1),v==null||(N=v.onClear)===null||N===void 0||N.call(v)},value:R,onOpenChange:function(N){var j;R&&O(N),v==null||(j=v.onOpenChange)===null||j===void 0||j.call(v,N)}})):null,allowClear:!1,bordered:g,ref:h,downIcon:R||w?!1:void 0})}else _=F.jsx(fs.RangePicker,I(I(I({ref:n,format:l,showTime:m,placeholder:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]},Sa(f===void 0?!0:!f)),v),{},{value:R}));return d?d(r,I({mode:o},v),_):_}return null};const Us=W.forwardRef(YRe);var XRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;if(o==="read"){var s=F.jsx(SO,I(I({allowHalf:!0,disabled:!0,ref:n},l),{},{value:r}));return a?a(r,I({mode:o},l),F.jsx(F.Fragment,{children:s})):s}if(o==="edit"||o==="update"){var u=F.jsx(SO,I({allowHalf:!0,ref:n},l));return i?i(r,I({mode:o},l),u):u}return null};const QRe=W.forwardRef(XRe);function ZRe(e){var t="",n=Math.floor(e/86400),r=Math.floor(e/3600%24),o=Math.floor(e/60%60),a=Math.floor(e%60);return t="".concat(a,"秒"),o>0&&(t="".concat(o,"分钟").concat(t)),r>0&&(t="".concat(r,"小时").concat(t)),n>0&&(t="".concat(n,"天").concat(t)),t}var JRe=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.placeholder,u=Un(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=ZRe(Number(r)),m=F.jsx("span",{ref:n,children:f});return a?a(r,I({mode:o},l),m):m}if(o==="edit"||o==="update"){var h=F.jsx(ml,I({ref:n,min:0,style:{width:"100%"},placeholder:d},l));return i?i(r,I({mode:o},l),h):h}return null};const e_e=W.forwardRef(JRe);var t_e=["mode","render","renderFormItem","fieldProps","emptyText"],n_e=function(t,n){var r=t.mode,o=t.render,a=t.renderFormItem,i=t.fieldProps,l=t.emptyText,s=l===void 0?"-":l,u=ze(t,t_e),d=c.useRef(),f=ju(t),m=X(f,3),h=m[0],g=m[1],v=m[2];if(c.useImperativeHandle(n,function(){return I(I({},d.current||{}),{},{fetchData:function($){return v($)}})},[v]),h)return F.jsx(El,{size:"small"});if(r==="read"){var p=g!=null&&g.length?g==null?void 0:g.reduce(function(S,$){var x;return I(I({},S),{},L({},(x=$.value)!==null&&x!==void 0?x:"",$.label))},{}):void 0,y=F.jsx(F.Fragment,{children:Nu(u.text,Ei(u.valueEnum||p))});if(o){var b;return(b=o(u.text,I({mode:r},i),F.jsx(F.Fragment,{children:y})))!==null&&b!==void 0?b:s}return y}if(r==="edit"||r==="update"){var C=F.jsx(Mme,I(I({ref:d},so(i||{},["allowClear"])),{},{options:g}));return a?a(u.text,I(I({mode:r},i),{},{options:g,loading:h}),C):C}return null};const r_e=W.forwardRef(n_e);var o_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps;if(o==="read"){var s=r;return a?a(r,I({mode:o},l),F.jsx(F.Fragment,{children:s})):F.jsx(F.Fragment,{children:s})}if(o==="edit"||o==="update"){var u=F.jsx(Zme,I(I({ref:n},l),{},{style:I({minWidth:120},l==null?void 0:l.style)}));return i?i(r,I({mode:o},l),u):u}return null};const a_e=W.forwardRef(o_e);var i_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.light,l=t.label,s=t.renderFormItem,u=t.fieldProps,d=Un(),f=c.useMemo(function(){var p,y;return r==null||"".concat(r).length<1?"-":r?(p=u==null?void 0:u.checkedChildren)!==null&&p!==void 0?p:d.getMessage("switch.open","打开"):(y=u==null?void 0:u.unCheckedChildren)!==null&&y!==void 0?y:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,r]);if(o==="read")return a?a(r,I({mode:o},u),F.jsx(F.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var m,h=F.jsx(Mc,I(I({ref:n,size:i?"small":void 0},so(u,["value"])),{},{checked:(m=u==null?void 0:u.checked)!==null&&m!==void 0?m:u==null?void 0:u.value}));if(i){var g=u.disabled,v=u.bordered;return F.jsx($i,{label:l,disabled:g,bordered:v,downIcon:!1,value:F.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return s?s(r,I({mode:o},u),h):h}return null};const l_e=W.forwardRef(i_e);var s_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.emptyText,u=s===void 0?"-":s,d=l||{},f=d.autoFocus,m=d.prefix,h=m===void 0?"":m,g=d.suffix,v=g===void 0?"":g,p=Un(),y=c.useRef();if(c.useImperativeHandle(n,function(){return y.current},[]),c.useEffect(function(){if(f){var x;(x=y.current)===null||x===void 0||x.focus()}},[f]),o==="read"){var b=F.jsxs(F.Fragment,{children:[h,r??u,v]});if(a){var C;return(C=a(r,I({mode:o},l),b))!==null&&C!==void 0?C:u}return b}if(o==="edit"||o==="update"){var S=p.getMessage("tableForm.inputPlaceholder","请输入"),$=F.jsx(Vo,I({ref:y,placeholder:S,allowClear:!0},l));return i?i(r,I({mode:o},l),$):$}return null};const c_e=W.forwardRef(s_e);var u_e=function(t,n){var r=t.text,o=c.useContext(bt.ConfigContext),a=o.getPrefixCls,i=a("pro-field-readonly"),l="".concat(i,"-textarea"),s=un("TextArea",function(){return L({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=s.wrapSSR,d=s.hashId;return u(F.jsx("span",{ref:n,className:Z(d,i,l),style:{},children:r??"-"}))};const d_e=W.forwardRef(u_e);var f_e=function(t,n){var r=t.text,o=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=Un();if(o==="read"){var u=F.jsx(d_e,I(I({},t),{},{ref:n}));return a?a(r,I({mode:o},l),u):u}if(o==="edit"||o==="update"){var d=F.jsx(Vo.TextArea,I({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:s.getMessage("tableForm.inputPlaceholder","请输入")},l));return i?i(r,I({mode:o},l),d):d}return null};const m_e=W.forwardRef(f_e);var v_e=function(t,n){var r=t.text,o=t.mode,a=t.light,i=t.label,l=t.format,s=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,h=c.useState(!1),g=X(h,2),v=g[0],p=g[1],y=Un(),b=(f==null?void 0:f.format)||l||"HH:mm:ss",C=zt.isDayjs(r)||typeof r=="number";if(o==="read"){var S=F.jsx("span",{ref:n,children:r?zt(r,C?void 0:b).format(b):"-"});return s?s(r,I({mode:o},f),F.jsx("span",{children:S})):S}if(o==="edit"||o==="update"){var $,x=f.disabled,w=f.value,O=_m(w,b);if(a){var E;$=F.jsx($i,{onClick:function(){var M;f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,!0),p(!0)},style:O?{paddingInlineEnd:0}:void 0,label:i,disabled:x,value:O||v?F.jsx(XC,I(I(I({},Sa(!1)),{},{format:l,ref:n},f),{},{placeholder:(E=f.placeholder)!==null&&E!==void 0?E:y.getMessage("tableForm.selectPlaceholder","请选择"),value:O,onOpenChange:function(M){var D;p(M),f==null||(D=f.onOpenChange)===null||D===void 0||D.call(f,M)},open:v})):null,downIcon:O||v?!1:void 0,allowClear:!1,ref:m})}else $=F.jsx(fs.TimePicker,I(I({ref:n,format:l,bordered:d===void 0?!0:!d},f),{},{value:O}));return u?u(r,I({mode:o},f),$):$}return null},g_e=function(t,n){var r=t.text,o=t.light,a=t.label,i=t.mode,l=t.lightLabel,s=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,h=Un(),g=c.useState(!1),v=X(g,2),p=v[0],y=v[1],b=(m==null?void 0:m.format)||s||"HH:mm:ss",C=Array.isArray(r)?r:[],S=X(C,2),$=S[0],x=S[1],w=zt.isDayjs($)||typeof $=="number",O=zt.isDayjs(x)||typeof x=="number",E=$?zt($,w?void 0:b).format(b):"",P=x?zt(x,O?void 0:b).format(b):"";if(i==="read"){var M=F.jsxs("div",{ref:n,children:[F.jsx("div",{children:E||"-"}),F.jsx("div",{children:P||"-"})]});return u?u(r,I({mode:i},m),F.jsx("span",{children:M})):M}if(i==="edit"||i==="update"){var D=_m(m.value,b),R;if(o){var _=m.disabled,T=m.placeholder,k=T===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:T;R=F.jsx($i,{onClick:function(){var j;m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,!0),y(!0)},style:D?{paddingInlineEnd:0}:void 0,label:a,disabled:_,placeholder:k,value:D||p?F.jsx(XC.RangePicker,I(I(I({},Sa(!1)),{},{format:s,ref:n},m),{},{placeholder:k,value:D,onOpenChange:function(j){var A;y(j),m==null||(A=m.onOpenChange)===null||A===void 0||A.call(m,j)},open:p})):null,downIcon:D||p?!1:void 0,allowClear:!1,ref:l})}else R=F.jsx(XC.RangePicker,I(I(I({ref:n,format:s},Sa(f===void 0?!0:!f)),m),{},{value:D}));return d?d(r,I({mode:i},m),R):R}return null},p_e=W.forwardRef(g_e);const h_e=W.forwardRef(v_e);var y_e=["radioType","renderFormItem","mode","light","label","render"],b_e=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],C_e=function(t,n){t.radioType;var r=t.renderFormItem,o=t.mode,a=t.light,i=t.label,l=t.render,s=ze(t,y_e),u=c.useContext(bt.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=c.useRef(null),h=c.useState(!1),g=X(h,2),v=g[0],p=g[1],y=s.fieldProps,b=y.onSearch,C=y.onClear,S=y.onChange,$=y.onBlur,x=y.showSearch,w=y.autoClearSearchValue;y.treeData;var O=y.fetchDataOnSearch,E=y.searchValue,P=ze(y,b_e),M=Un(),D=ju(I(I({},s),{},{defaultKeyWords:E})),R=X(D,3),_=R[0],T=R[1],k=R[2],N=Pt(void 0,{onChange:b,value:E}),j=X(N,2),A=j[0],B=j[1];c.useImperativeHandle(n,function(){return I(I({},m.current||{}),{},{fetchData:function(te){return k(te)}})});var z=c.useMemo(function(){if(o==="read"){var oe=(P==null?void 0:P.fieldNames)||{},te=oe.value,ee=te===void 0?"value":te,ie=oe.label,de=ie===void 0?"label":ie,he=oe.children,fe=he===void 0?"children":he,le=new Map,me=function ye(ge){if(!(ge!=null&&ge.length))return le;for(var ve=ge.length,$e=0;$e4&&(h+=7),m.add(h,n));return g.diff(v,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var s=l.startOf;l.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(u,d)}}})})(rF);var x_e=rF.exports;const w_e=jn(x_e);var $_e=["fieldProps"],E_e=["fieldProps"],P_e=["fieldProps"],O_e=["fieldProps"],I_e=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],M_e=["placeholder"];zt.extend(RN);zt.extend(jN);zt.extend(w_e);zt.extend(A2);zt.extend(IN);var R_e=function(t,n,r){var o=Yj(r.fieldProps);return n.type==="progress"?F.jsx(nF,I(I({},r),{},{text:t,fieldProps:I({status:n.status?n.status:void 0},o)})):n.type==="money"?F.jsx(eF,I(I({locale:n.locale},r),{},{fieldProps:o,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?F.jsx(tF,I(I({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:o,showColor:n.showColor})):n.type==="image"?F.jsx(ZD,I(I({},r),{},{text:t,width:n.width})):t},__e=function(t,n,r,o){var a=r.mode,i=a===void 0?"read":a,l=r.emptyText,s=l===void 0?"-":l;if(s!==!1&&i==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,I({mode:i},u),F.jsx(F.Fragment,{children:s})):F.jsx(F.Fragment,{children:s})}if(delete r.emptyText,et(n)==="object")return R_e(t,n,r);var f=o&&o[n];if(f){if(delete r.ref,i==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,I(I({text:t},r),{},{mode:i||"read"}),F.jsx(F.Fragment,{children:t}))}if(i==="update"||i==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,I({text:t},r),F.jsx(F.Fragment,{children:t}))}}if(n==="money")return F.jsx(eF,I(I({},r),{},{text:t}));if(n==="date")return F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var g=r.fieldProps,v=ze(r,$_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-W",showTime:!0,fieldProps:I({picker:"week"},g)},v))})}if(n==="dateMonthRange"){var p=r.fieldProps,y=ze(r,E_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-MM",showTime:!0,fieldProps:I({picker:"month"},p)},y))})}if(n==="dateQuarterRange"){var b=r.fieldProps,C=ze(r,P_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-Q",showTime:!0,fieldProps:I({picker:"quarter"},b)},C))})}if(n==="dateYearRange"){var S=r.fieldProps,$=ze(r,O_e);return F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY",showTime:!0,fieldProps:I({picker:"year"},S)},$))})}return n==="dateMonth"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?F.jsx(Us,I({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?F.jsx(eo,{isLight:r.light,children:F.jsx(Ks,I({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?F.jsx(eo,{isLight:r.light,children:F.jsx(Us,I({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?F.jsx(eo,{isLight:r.light,children:F.jsx(h_e,I({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?F.jsx(eo,{isLight:r.light,children:F.jsx(p_e,I({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?F.jsx(dRe,I({text:t},r)):n==="index"?F.jsx($I,{children:t+1}):n==="indexBorder"?F.jsx($I,{border:!0,children:t+1}):n==="progress"?F.jsx(nF,I(I({},r),{},{text:t})):n==="percent"?F.jsx(tF,I({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?F.jsx(Zh,{src:t,size:22,shape:"circle"}):n==="code"?F.jsx(a6,I({text:t},r)):n==="jsonCode"?F.jsx(a6,I({text:t,language:"json"},r)):n==="textarea"?F.jsx(m_e,I({text:t},r)):n==="digit"?F.jsx(aRe,I({text:t},r)):n==="digitRange"?F.jsx(lRe,I({text:t},r)):n==="second"?F.jsx(e_e,I({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?F.jsx(eo,{isLight:r.light,children:F.jsx(jbe,I({text:t},r))}):n==="checkbox"?F.jsx(Bbe,I({text:t},r)):n==="radio"?F.jsx(MI,I({text:t},r)):n==="radioButton"?F.jsx(MI,I({radioType:"button",text:t},r)):n==="rate"?F.jsx(QRe,I({text:t},r)):n==="slider"?F.jsx(a_e,I({text:t},r)):n==="switch"?F.jsx(l_e,I({text:t},r)):n==="option"?F.jsx(ERe,I({text:t},r)):n==="password"?F.jsx(IRe,I({text:t},r)):n==="image"?F.jsx(ZD,I({text:t},r)):n==="cascader"?F.jsx(kbe,I({text:t},r)):n==="treeSelect"?F.jsx(S_e,I({text:t},r)):n==="color"?F.jsx(tRe,I({text:t},r)):n==="segmented"?F.jsx(r_e,I({text:t},r)):F.jsx(c_e,I({text:t},r))},T_e=function(t,n){var r,o,a,i,l,s=t.text,u=t.valueType,d=u===void 0?"text":u,f=t.mode,m=f===void 0?"read":f,h=t.onChange,g=t.renderFormItem,v=t.value,p=t.readonly,y=t.fieldProps,b=ze(t,I_e),C=c.useContext(vl),S=Ba(function(){for(var w,O=arguments.length,E=new Array(O),P=0;P div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":L(L(L(L({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Z_e(e){return un("ProFormGroup",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[Q_e(n)]})}var lF=W.forwardRef(function(e,t){var n=W.useContext($0),r=n.groupProps,o=I(I({},r),e),a=o.children,i=o.collapsible,l=o.defaultCollapsed,s=o.style,u=o.labelLayout,d=o.title,f=d===void 0?e.label:d,m=o.tooltip,h=o.align,g=h===void 0?"start":h,v=o.direction,p=o.size,y=p===void 0?32:p,b=o.titleStyle,C=o.titleRender,S=o.spaceProps,$=o.extra,x=o.autoFocus,w=Pt(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),O=X(w,2),E=O[0],P=O[1],M=c.useContext(bt.ConfigContext),D=M.getPrefixCls,R=Rw(e),_=R.ColWrapper,T=R.RowWrapper,k=D("pro-form-group"),N=Z_e(k),j=N.wrapSSR,A=N.hashId,B=i&&F.jsx(pi,{style:{marginInlineEnd:8},rotate:E?void 0:90}),z=F.jsx(Iye,{label:B?F.jsxs("div",{children:[B,f]}):f,tooltip:m}),H=c.useCallback(function(q){var J=q.children;return F.jsx(hi,I(I({},S),{},{className:Z("".concat(k,"-container ").concat(A),S==null?void 0:S.className),size:y,align:g,direction:v,style:I({rowGap:0},S==null?void 0:S.style),children:J}))},[g,k,v,A,y,S]),V=C?C(z,e):z,U=c.useMemo(function(){var q=[],J=W.Children.toArray(a).map(function(Q,ne){var re;return W.isValidElement(Q)&&Q!==null&&Q!==void 0&&(re=Q.props)!==null&&re!==void 0&&re.hidden?(q.push(Q),null):ne===0&&W.isValidElement(Q)&&x?W.cloneElement(Q,I(I({},Q.props),{},{autoFocus:x})):Q});return[F.jsx(T,{Wrapper:H,children:J},"children"),q.length>0?F.jsx("div",{style:{display:"none"},children:q}):null]},[a,T,H,x]),K=X(U,2),Y=K[0],G=K[1];return j(F.jsx(_,{children:F.jsxs("div",{className:Z(k,A,L({},"".concat(k,"-twoLine"),u==="twoLine")),style:s,ref:t,children:[G,(f||m||$)&&F.jsx("div",{className:"".concat(k,"-title ").concat(A).trim(),style:b,onClick:function(){P(!E)},children:$?F.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[V,F.jsx("span",{onClick:function(J){return J.stopPropagation()},children:$})]}):V}),F.jsx("div",{style:{display:i&&E?"none":void 0},children:Y})]})}))});lF.displayName="ProForm-Group";const J_e=lF;var eTe=function(t){var n=Un(),r=Kn.useFormInstance();if(t.render===!1)return null;var o=t.onSubmit,a=t.render,i=t.onReset,l=t.searchConfig,s=l===void 0?{}:l,u=t.submitButtonProps,d=t.resetButtonProps,f=Aa.useToken(),m=f.token,h=function(){r.submit(),o==null||o()},g=function(){r.resetFields(),i==null||i()},v=s.submitText,p=v===void 0?n.getMessage("tableForm.submit","提交"):v,y=s.resetText,b=y===void 0?n.getMessage("tableForm.reset","重置"):y,C=[];d!==!1&&C.push(c.createElement(Nr,I(I({},so(d,["preventDefault"])),{},{key:"rest",onClick:function(x){var w;d!=null&&d.preventDefault||g(),d==null||(w=d.onClick)===null||w===void 0||w.call(d,x)}}),b)),u!==!1&&C.push(c.createElement(Nr,I(I({type:"primary"},so(u||{},["preventDefault"])),{},{key:"submit",onClick:function(x){var w;u!=null&&u.preventDefault||h(),u==null||(w=u.onClick)===null||w===void 0||w.call(u,x)}}),p));var S=a?a(I(I({},t),{},{form:r,submit:h,reset:g}),C):C;return S?Array.isArray(S)?(S==null?void 0:S.length)<1?null:(S==null?void 0:S.length)===1?S[0]:F.jsx("div",{style:{display:"flex",gap:m.marginXS,alignItems:"center"},children:S}):S:null};const tTe=eTe;var nTe=["fieldProps","proFieldProps"],rTe=["fieldProps","proFieldProps"],Hp="text",oTe=function(t){var n=t.fieldProps,r=t.proFieldProps,o=ze(t,nTe);return F.jsx(Vf,I({valueType:Hp,fieldProps:n,filedConfig:{valueType:Hp},proFieldProps:r},o))},aTe=function(t){var n=Pt(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=X(n,2),o=r[0],a=r[1];return F.jsx(Kn.Item,{shouldUpdate:!0,noStyle:!0,children:function(l){var s,u=l.getFieldValue(t.name||[]);return F.jsx(Cs,I(I({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:a,content:F.jsxs("div",{style:{padding:"4px 0"},children:[(s=t.statusRender)===null||s===void 0?void 0:s.call(t,u),t.strengthText?F.jsx("div",{style:{marginTop:10},children:F.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:o,children:t.children}))}})},iTe=function(t){var n=t.fieldProps,r=t.proFieldProps,o=ze(t,rTe),a=c.useState(!1),i=X(a,2),l=i[0],s=i[1];return n!=null&&n.statusRender&&o.name?F.jsx(aTe,{name:o.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:l,onOpenChange:s,children:F.jsx("div",{children:F.jsx(Vf,I({valueType:"password",fieldProps:I(I({},so(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,d),s(!1)},onClick:function(d){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,d),s(!0)}}),proFieldProps:r,filedConfig:{valueType:Hp}},o))})}):F.jsx(Vf,I({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:Hp}},o))},Zw=oTe;Zw.Password=iTe;Zw.displayName="ProFormComponent";const Nb=Zw;var lTe=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],sTe=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],hg=function(t,n,r){return t===!0?n:Ip(t,n,r)},_I=function(t){return!t||Array.isArray(t)?t:[t]};function cTe(e){var t,n=e.children,r=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,i=e.formRef,l=e.onInit,s=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,m=e.syncToUrl,h=e.onUrlSearchChange,g=e.onReset,v=e.omitNil,p=v===void 0?!0:v;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,b=y===void 0?!0:y,C=e.grid,S=e.rowProps,$=e.colProps,x=ze(e,lTe),w=Kn.useFormInstance(),O=(bt==null||(t=bt.useConfig)===null||t===void 0?void 0:t.call(bt))||{componentSize:"middle"},E=O.componentSize,P=c.useRef(s||w),M=Rw({grid:C,rowProps:S}),D=M.RowWrapper,R=Ba(function(){return w}),_=c.useMemo(function(){return{getFieldsFormatValue:function(z){var H;return a((H=R())===null||H===void 0?void 0:H.getFieldsValue(z),p)},getFieldFormatValue:function(){var z,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=_I(H);if(!V)throw new Error("nameList is require");var U=(z=R())===null||z===void 0?void 0:z.getFieldValue(V),K=V?or({},V,U):U;return Or(a(K,p,V),V)},getFieldFormatValueObject:function(z){var H,V=_I(z),U=(H=R())===null||H===void 0?void 0:H.getFieldValue(V),K=V?or({},V,U):U;return a(K,p,V)},validateFieldsReturnFormatValue:function(){var B=Tr(an().mark(function H(V){var U,K,Y;return an().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(!(!Array.isArray(V)&&V)){q.next=2;break}throw new Error("nameList must be array");case 2:return q.next=4,(U=R())===null||U===void 0?void 0:U.validateFields(V);case 4:return K=q.sent,Y=a(K,p),q.abrupt("return",Y||{});case 7:case"end":return q.stop()}},H)}));function z(H){return B.apply(this,arguments)}return z}()}},[p,a]),T=c.useMemo(function(){return W.Children.toArray(n).map(function(B,z){return z===0&&W.isValidElement(B)&&b?W.cloneElement(B,I(I({},B.props),{},{autoFocus:b})):B})},[b,n]),k=c.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),N=c.useMemo(function(){if(o!==!1)return F.jsx(tTe,I(I({},k),{},{onReset:function(){var z,H,V=a((z=P.current)===null||z===void 0?void 0:z.getFieldsValue(),p);if(k==null||(H=k.onReset)===null||H===void 0||H.call(k,V),g==null||g(V),m){var U,K=Object.keys(a((U=P.current)===null||U===void 0?void 0:U.getFieldsValue(),!1)).reduce(function(Y,G){return I(I({},Y),{},L({},G,V[G]||void 0))},f);h(hg(m,K||{},"set"))}},submitButtonProps:I({loading:u},k.submitButtonProps)}),"submitter")},[o,k,u,a,p,g,m,f,h]),j=c.useMemo(function(){var B=C?F.jsx(D,{children:T}):T;return r?r(B,N,P.current):B},[C,D,T,r,N]),A=Hye(e.initialValues);return c.useEffect(function(){if(!(m||!e.initialValues||!A||x.request)){var B=rs(e.initialValues,A);wf(B,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),wf(B,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),c.useImperativeHandle(i,function(){return I(I({},P.current),_)},[_,P.current]),c.useEffect(function(){var B,z,H=a((B=P.current)===null||B===void 0||(z=B.getFieldsValue)===null||z===void 0?void 0:z.call(B,!0),p);l==null||l(H,I(I({},P.current),_))},[]),F.jsx(Vj.Provider,{value:I(I({},_),{},{formRef:P}),children:F.jsx(bt,{componentSize:x.size||E,children:F.jsxs(Qj.Provider,{value:{grid:C,colProps:$},children:[x.component!==!1&&F.jsx("input",{type:"text",style:{display:"none"}}),j]})})})}var TI=0;function uTe(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,o=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,i=a===void 0?!1:a,l=e.syncToInitialValues,s=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,h=e.dateFormatter,g=h===void 0?"string":h,v=e.formRef;e.onInit;var p=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,C=b===void 0?!0:b,S=e.request,$=e.params,x=e.initialValues,w=e.formKey,O=w===void 0?TI:w;e.readonly;var E=e.onLoadingChange,P=e.loading,M=ze(e,sTe),D=c.useRef({}),R=Pt(!1,{onChange:E,value:P}),_=X(R,2),T=_[0],k=_[1],N=Xj({},{disabled:!r}),j=X(N,2),A=j[0],B=j[1],z=c.useRef(qj());c.useEffect(function(){TI+=0},[]);var H=zye({request:S,params:$,proFieldKey:O}),V=X(H,1),U=V[0],K=c.useContext(bt.ConfigContext),Y=K.getPrefixCls,G=Y("pro-form"),q=un("ProForm",function(le){return L({},".".concat(G),L({},"> div:not(".concat(le.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),J=q.wrapSSR,Q=q.hashId,ne=c.useState(function(){return r?hg(r,A,"get"):{}}),re=X(ne,2),oe=re[0],te=re[1],ee=c.useRef({}),ie=c.useRef({}),de=Ba(function(le,me,ye){return abe(Tye(le,g,ie.current,me,ye),ee.current,me)});c.useEffect(function(){s||te({})},[s]),c.useEffect(function(){r&&B(hg(r,I(I({},A),n),"set"))},[n,r]);var he=c.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(le){return le.parentNode||document.body}},[y]),fe=Ba(Tr(an().mark(function le(){var me,ye,ge,ve,$e,Ce;return an().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(M.onFinish){Re.next=2;break}return Re.abrupt("return");case 2:if(!T){Re.next=4;break}return Re.abrupt("return");case 4:return k(!0),Re.prev=5,ge=D==null||(me=D.current)===null||me===void 0||(ye=me.getFieldsFormatValue)===null||ye===void 0?void 0:ye.call(me),Re.next=9,M.onFinish(ge);case 9:r&&(Ce=Object.keys(D==null||(ve=D.current)===null||ve===void 0||($e=ve.getFieldsFormatValue)===null||$e===void 0?void 0:$e.call(ve,void 0,!1)).reduce(function(Ee,_e){var Fe;return I(I({},Ee),{},L({},_e,(Fe=ge[_e])!==null&&Fe!==void 0?Fe:void 0))},n),Object.keys(A).forEach(function(Ee){Ce[Ee]!==!1&&Ce[Ee]!==0&&!Ce[Ee]&&(Ce[Ee]=void 0)}),B(hg(r,Ce,"set"))),k(!1),Re.next=17;break;case 13:Re.prev=13,Re.t0=Re.catch(5),console.log(Re.t0),k(!1);case 17:case"end":return Re.stop()}},le,null,[[5,13]])})));return c.useImperativeHandle(v,function(){return D.current},[!U]),!U&&e.request?F.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:F.jsx(El,{})}):J(F.jsx(Xw.Provider,{value:{mode:e.readonly?"read":"edit"},children:F.jsx(Mm,{needDeps:!0,children:F.jsx($0.Provider,{value:{formRef:D,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:y,getPopupContainer:he,formKey:z.current,setFieldValueType:function(me,ye){var ge=ye.valueType,ve=ge===void 0?"text":ge,$e=ye.dateFormat,Ce=ye.transform;Array.isArray(me)&&(ee.current=or(ee.current,me,Ce),ie.current=or(ie.current,me,{valueType:ve,dateFormat:$e}))}},children:F.jsx(Qw.Provider,{value:{},children:F.jsx(Kn,I(I({onKeyPress:function(me){if(o&&me.key==="Enter"){var ye;(ye=D.current)===null||ye===void 0||ye.submit()}},autoComplete:"off",form:p},so(M,["labelWidth","autoFocusFirstInput"])),{},{initialValues:i?I(I(I({},x),U),oe):I(I(I({},oe),x),U),onValuesChange:function(me,ye){var ge;M==null||(ge=M.onValuesChange)===null||ge===void 0||ge.call(M,de(me,!!C),de(ye,!!C))},className:Z(e.className,G,Q),onFinish:fe,children:F.jsx(cTe,I(I({transformKey:de,autoComplete:"off",loading:T,onUrlSearchChange:B},e),{},{formRef:D,initialValues:I(I({},x),U)}))}))})})})}))}var dTe=function(t){return L(L({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),L({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function fTe(e){return un("LightWrapper",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[dTe(n)]})}var mTe=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],vTe=function(t){var n=t.label,r=t.size,o=t.disabled,a=t.onChange,i=t.className,l=t.style,s=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,h=t.footerRender,g=t.allowClear,v=t.otherFieldProps,p=t.valueType,y=t.placement,b=ze(t,mTe),C=c.useContext(bt.ConfigContext),S=C.getPrefixCls,$=S("pro-field-light-wrapper"),x=fTe($),w=x.wrapSSR,O=x.hashId,E=c.useState(t[u]),P=X(E,2),M=P[0],D=P[1],R=Pt(!1),_=X(R,2),T=_[0],k=_[1],N=function(){for(var z,H=arguments.length,V=new Array(H),U=0;U div":{width:"100%"}}})),"@media (min-width: ".concat(t.screenMDMin,"px)"),L({},t.componentCls,{"&-left":{backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}})),"@media (max-width: ".concat(t.screenSM,"px)"),L({},t.componentCls,{"&-main":{width:"95%",maxWidth:"328px"}}))};function pTe(e){return un("LoginFormPage",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[gTe(n)]})}var hTe=["logo","message","style","activityConfig","backgroundImageUrl","backgroundVideoUrl","title","subTitle","actions","children","containerStyle","otherStyle","mainStyle"];function yTe(e){var t=e.logo,n=e.message,r=e.style,o=e.activityConfig,a=e.backgroundImageUrl,i=e.backgroundVideoUrl,l=e.title,s=e.subTitle,u=e.actions,d=e.children,f=e.containerStyle,m=e.otherStyle,h=e.mainStyle,g=ze(e,hTe),v=Un(),p=function(){var P,M;return g.submitter===!1||((P=g.submitter)===null||P===void 0?void 0:P.submitButtonProps)===!1?!1:I({size:"large",style:{width:"100%"}},(M=g.submitter)===null||M===void 0?void 0:M.submitButtonProps)},y=I(I({searchConfig:{submitText:v.getMessage("loginForm.submitText","登录")},render:function(P,M){return M.pop()}},g.submitter),{},{submitButtonProps:p()}),b=c.useContext(bt.ConfigContext),C=b.getPrefixCls("pro-form-login-page"),S=pTe(C),$=S.wrapSSR,x=S.hashId,w=function(P){return"".concat(C,"-").concat(P," ").concat(x).trim()},O=c.useMemo(function(){return t?typeof t=="string"?F.jsx("img",{src:t}):t:null},[t]);return $(F.jsxs("div",{className:Z(C,x),style:I(I({},r),{},{position:"relative",backgroundImage:'url("'.concat(a,'")')}),children:[i?F.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",overflow:"hidden",height:"100%",zIndex:1,pointerEvents:"none"},children:F.jsx("video",{src:i,controls:!1,autoPlay:!0,playsInline:!0,loop:!0,muted:!0,crossOrigin:"anonymous",style:{width:"100%",height:"100%",objectFit:"cover"}})}):null,F.jsxs("div",{className:Z(C,x),children:[F.jsx("div",{className:w("notice"),children:o&&F.jsxs("div",{className:w("notice-activity"),style:o.style,children:[o.title&&F.jsxs("div",{className:w("notice-activity-title"),children:[" ",o.title," "]}),o.subTitle&&F.jsx("div",{className:w("notice-activity-subTitle"),children:o.subTitle}),o.action&&F.jsx("div",{className:w("notice-activity-action"),children:o.action})]})}),F.jsx("div",{className:w("left"),children:F.jsxs("div",{className:w("container"),style:f,children:[F.jsxs("div",{className:w("top"),children:[l||O?F.jsxs("div",{className:w("header"),children:[O?F.jsx("span",{className:w("logo"),children:O}):null,l?F.jsx("span",{className:w("title"),children:l}):null]}):null,s?F.jsx("div",{className:w("desc"),children:s}):null]}),F.jsxs("div",{className:w("main"),style:h,children:[F.jsxs(Pi,I(I({isKeyPressSubmit:!0},g),{},{submitter:y,children:[n,d]})),u?F.jsx("div",{className:w("other"),style:m,children:u}):null]})]})})]})]}))}var bTe=function(t){return L({},t.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:to(t.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(t.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:t.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:t.colorText},"&-right":{color:t.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function CTe(e){return un("ProLayoutFooterToolbar",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[bTe(n)]})}function STe(e,t){var n=t.stylish;return un("ProLayoutFooterToolbarStylish",function(r){var o=I(I({},r),{},{componentCls:".".concat(e)});return n?[L({},"".concat(o.componentCls),n==null?void 0:n(o))]:[]})}var xTe=["children","className","extra","portalDom","style","renderContent"],wTe=function(t){var n=t.children,r=t.className,o=t.extra,a=t.portalDom,i=a===void 0?!0:a,l=t.style,s=t.renderContent,u=ze(t,xTe),d=c.useContext(bt.ConfigContext),f=d.getPrefixCls,m=d.getTargetContainer,h=t.prefixCls||f("pro"),g="".concat(h,"-footer-bar"),v=CTe(g),p=v.wrapSSR,y=v.hashId,b=c.useContext(Wf),C=c.useMemo(function(){var E=b.hasSiderMenu,P=b.isMobile,M=b.siderWidth;if(E)return M?P?"100%":"calc(100% - ".concat(M,"px)"):"100%"},[b.collapsed,b.hasSiderMenu,b.isMobile,b.siderWidth]),S=c.useMemo(function(){return(typeof window>"u"?"undefined":et(window))===void 0||(typeof document>"u"?"undefined":et(document))===void 0?null:(m==null?void 0:m())||document.body},[]),$=STe("".concat(g,".").concat(g,"-stylish"),{stylish:t.stylish}),x=F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"".concat(g,"-left ").concat(y).trim(),children:o}),F.jsx("div",{className:"".concat(g,"-right ").concat(y).trim(),children:n})]});c.useEffect(function(){return!b||!(b!=null&&b.setHasFooterToolbar)?function(){}:(b==null||b.setHasFooterToolbar(!0),function(){var E;b==null||(E=b.setHasFooterToolbar)===null||E===void 0||E.call(b,!1)})},[]);var w=F.jsx("div",I(I({className:Z(r,y,g,L({},"".concat(g,"-stylish"),!!t.stylish)),style:I({width:C},l)},so(u,["prefixCls"])),{},{children:s?s(I(I(I({},t),b),{},{leftWidth:C}),x):x})),O=!gl()||!i||!S?w:ja.createPortal(w,S,g);return $.wrapSSR(p(F.jsx(W.Fragment,{children:O},g)))},Wf=c.createContext({}),$Te=function(t){return L({},t.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function ETe(e){return un("ProLayoutGridContent",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[$Te(n)]})}var PTe=function(t){var n=c.useContext(Wf),r=t.children,o=t.contentWidth,a=t.className,i=t.style,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls,u=t.prefixCls||s("pro"),d=o||n.contentWidth,f="".concat(u,"-grid-content"),m=ETe(f),h=m.wrapSSR,g=m.hashId,v=d==="Fixed"&&n.layout==="top";return h(F.jsx("div",{className:Z(f,g,a,L({},"".concat(f,"-wide"),v)),style:i,children:F.jsx("div",{className:"".concat(u,"-grid-content-children ").concat(g).trim(),children:r})}))},wS={exports:{}},sF={},Jw={};Object.defineProperty(Jw,"__esModule",{value:!0});var OTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};Jw.default=OTe;var e$={};const cF=Sk(LV);var t$={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t=c,n=(0,t.createContext)({}),r=n})(t$);var n$={},L0={},Hu={},uF={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(uF);var ITe=uF.exports,dF={exports:{}},fF={exports:{}},mF={exports:{}},vF={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vF);var gF=vF.exports,pF={exports:{}};(function(e){var t=gF.default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(pF);var MTe=pF.exports;(function(e){var t=gF.default,n=MTe;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(mF);var RTe=mF.exports;(function(e){var t=RTe;function n(r,o,a){return o=t(o),o in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fF);var _Te=fF.exports;(function(e){var t=_Te;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function r(o){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kTe}function A0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function LTe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function i$(e){return Array.from((Vp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function l$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,DTe.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=LTe(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(jI,i),l&&a&&s.setAttribute(DI,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=A0(t),d=u.firstChild;if(r){if(l){var f=(t.styles||i$(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(jI)))return!1;var h=Number(m.getAttribute(DI)||0);return a>=h});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function yF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=A0(t);return(t.styles||i$(n)).find(function(r){return r.getAttribute(hF(t))===e})}function ATe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yF(e,t);if(n){var r=A0(t);r.removeChild(n)}}function BTe(e,t){var n=Vp.get(e);if(!n||!(0,FTe.default)(document,n)){var r=l$("",t),o=r.parentNode;Vp.set(e,o),e.removeChild(r)}}function zTe(){Vp.clear()}function HTe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=A0(n),o=i$(r),a=(0,NI.default)((0,NI.default)({},n),{},{styles:o});BTe(r,a);var i=yF(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=l$(e,a);return d.setAttribute(hF(a),t),d}var B0={};Object.defineProperty(B0,"__esModule",{value:!0});B0.getShadowRoot=VTe;B0.inShadow=CF;function bF(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function CF(e){return bF(e)instanceof ShadowRoot}function VTe(e){return CF(e)?bF(e):null}var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.call=s$;Yo.default=void 0;Yo.note=xF;Yo.noteOnce=$F;Yo.preMessage=void 0;Yo.resetWarned=wF;Yo.warning=SF;Yo.warningOnce=Hm;var $S={},WTe=Yo.preMessage=function(t){};function SF(e,t){}function xF(e,t){}function wF(){$S={}}function s$(e,t,n){!t&&!$S[n]&&(e(!1,n),$S[n]=!0)}function Hm(e,t){s$(SF,e,t)}function $F(e,t){s$(xF,e,t)}Hm.preMessage=WTe;Hm.resetWarned=wF;Hm.noteOnce=$F;Yo.default=Hm;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,O){for(var E in O)Object.defineProperty(w,E,{enumerable:!0,get:O[E]})}t(e,{generate:function(){return y},getSecondaryColor:function(){return b},iconStyles:function(){return $},isIconDefinition:function(){return v},normalizeAttrs:function(){return p},normalizeTwoToneColors:function(){return C},svgBaseProps:function(){return S},useInsertStyles:function(){return x},warning:function(){return g}});var n=cF,r=Hu,o=B0,a=u(Yo),i=f(c),l=u(t$);function s(w,O,E){return O in w?Object.defineProperty(w,O,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[O]=E,w}function u(w){return w&&w.__esModule?w:{default:w}}function d(w){if(typeof WeakMap!="function")return null;var O=new WeakMap,E=new WeakMap;return(d=function(P){return P?E:O})(w)}function f(w,O){if(!O&&w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var E=d(O);if(E&&E.has(w))return E.get(w);var P={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in w)if(D!=="default"&&Object.prototype.hasOwnProperty.call(w,D)){var R=M?Object.getOwnPropertyDescriptor(w,D):null;R&&(R.get||R.set)?Object.defineProperty(P,D,R):P[D]=w[D]}return P.default=w,E&&E.set(w,P),P}function m(w){for(var O=1;O0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(w).reduce(function(O,E){var P=w[E];switch(E){case"class":O.className=P,delete O.class;break;default:delete O[E],O[h(E)]=P}return O},{})}function y(w,O,E){return E?i.default.createElement(w.tag,m({key:O},p(w.attrs),E),(w.children||[]).map(function(P,M){return y(P,"".concat(O,"-").concat(w.tag,"-").concat(M))})):i.default.createElement(w.tag,m({key:O},p(w.attrs)),(w.children||[]).map(function(P,M){return y(P,"".concat(O,"-").concat(w.tag,"-").concat(M))}))}function b(w){return(0,n.generate)(w)[0]}function C(w){return w?Array.isArray(w)?w:[w]:[]}var S={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},$=` .anticon { display: inline-flex; alignItems: center; @@ -518,14 +518,14 @@ ${j}`),T.pop(),`{${H}}`}case"number":return isFinite(_)?String(_):b?b(_):"null"; transform: rotate(360deg); } } -`,x=function(w){var O=(0,i.useContext)(l.default),E=O.csp,P=O.prefixCls,M=$;P&&(M=M.replace(/anticon/g,P)),(0,i.useEffect)(function(){var D=w.current,R=(0,o.getShadowRoot)(D);(0,r.updateCSS)(M,"@ant-design-icons",{prepend:!0,csp:E,attachTo:R})},[])}})(L0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return v}});var t=a(c),n=L0;function r(p,y,b){return y in p?Object.defineProperty(p,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[y]=b,p}function o(p){if(typeof WeakMap!="function")return null;var y=new WeakMap,b=new WeakMap;return(o=function(C){return C?b:y})(p)}function a(p,y){if(!y&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=o(y);if(b&&b.has(p))return b.get(p);var C={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in p)if($!=="default"&&Object.prototype.hasOwnProperty.call(p,$)){var x=S?Object.getOwnPropertyDescriptor(p,$):null;x&&(x.get||x.set)?Object.defineProperty(C,$,x):C[$]=p[$]}return C.default=p,b&&b.set(p,C),C}function i(p){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(p,C)&&(b[C]=p[C])}return b}function d(p,y){if(p==null)return{};var b={},C=Object.keys(p),S,$;for($=0;$=0)&&(b[S]=p[S]);return b}var f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function m(p){var y=p.primaryColor,b=p.secondaryColor;f.primaryColor=y,f.secondaryColor=b||(0,n.getSecondaryColor)(y),f.calculated=!!b}function h(){return i({},f)}var g=function(p){var y=p.icon,b=p.className,C=p.onClick,S=p.style,$=p.primaryColor,x=p.secondaryColor,w=u(p,["icon","className","onClick","style","primaryColor","secondaryColor"]),O=t.useRef(),E=f;if($&&(E={primaryColor:$,secondaryColor:x||(0,n.getSecondaryColor)($)}),(0,n.useInsertStyles)(O),(0,n.warning)((0,n.isIconDefinition)(y),"icon should be icon definiton, but got ".concat(y)),!(0,n.isIconDefinition)(y))return null;var P=y;return P&&typeof P.icon=="function"&&(P=s(i({},P),{icon:P.icon(E.primaryColor,E.secondaryColor)})),(0,n.generate)(P.icon,"svg-".concat(P.name),s(i({className:b,onClick:C,style:S,"data-icon":P.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},w),{ref:O}))};g.displayName="IconReact",g.getTwoToneColors=h,g.setTwoToneColors=m;var v=g})(n$);var EF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var v in g)Object.defineProperty(h,v,{enumerable:!0,get:g[v]})}t(e,{getTwoToneColor:function(){return m},setTwoToneColor:function(){return f}});var n=i(n$),r=L0;function o(h,g){(g==null||g>h.length)&&(g=h.length);for(var v=0,p=new Array(g);vE.length)&&(P=E.length);for(var M=0,D=new Array(P);M=0)&&Object.prototype.propertyIsEnumerable.call(E,D)&&(M[D]=E[D])}return M}function S(E,P){if(E==null)return{};var M={},D=Object.keys(E),R,_;for(_=0;_=0)&&(M[R]=E[R]);return M}function $(E,P){return u(E)||g(E,P)||x(E,P)||v()}function x(E,P){if(E){if(typeof E=="string")return s(E,P);var M=Object.prototype.toString.call(E).slice(8,-1);if(M==="Object"&&E.constructor&&(M=E.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return s(E,P)}}(0,i.setTwoToneColor)(r.blue.primary);var w=t.forwardRef(function(E,P){var M=E.className,D=E.icon,R=E.spin,_=E.rotate,T=E.tabIndex,k=E.onClick,N=E.twoToneColor,j=C(E,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),A=t.useContext(o.default),B=A.prefixCls,z=B===void 0?"anticon":B,H=A.rootClassName,V,U=(0,n.default)(H,z,(V={},d(V,"".concat(z,"-").concat(D.name),!!D.name),d(V,"".concat(z,"-spin"),!!R||D.name==="loading"),V),M),K=T;K===void 0&&k&&(K=-1);var Y=_?{msTransform:"rotate(".concat(_,"deg)"),transform:"rotate(".concat(_,"deg)")}:void 0,G=$((0,l.normalizeTwoToneColors)(N),2),q=G[0],J=G[1];return t.createElement("span",b(p({role:"img","aria-label":D.name},j),{ref:P,tabIndex:K,onClick:k,className:U}),t.createElement(a.default,{icon:D,primaryColor:q,secondaryColor:J,style:Y}))});w.displayName="AntdIcon",w.getTwoToneColor=i.getTwoToneColor,w.setTwoToneColor=i.setTwoToneColor;var O=w})(e$);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var t=l(c),n=a(Jw),r=a(e$);function o(g,v,p){return v in g?Object.defineProperty(g,v,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[v]=p,g}function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(y){return y?p:v})(g)}function l(g,v){if(!v&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var p=i(v);if(p&&p.has(g))return p.get(g);var y={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in g)if(C!=="default"&&Object.prototype.hasOwnProperty.call(g,C)){var S=b?Object.getOwnPropertyDescriptor(g,C):null;S&&(S.get||S.set)?Object.defineProperty(y,C,S):y[C]=g[C]}return y.default=g,p&&p.set(g,y),y}function s(g){for(var v=1;v *":L({"white-space":"unset"},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:t.marginSM,marginInlineStart:0})},"".concat(t.componentCls,"-rlt &"),{float:"left"}),"*:first-child",L({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:t.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:t.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function QTe(e){return un("ProLayoutPageHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[XTe(n)]})}var ZTe=function(t,n,r,o){return!r||!o?null:F.jsx("div",{className:"".concat(t,"-back ").concat(n).trim(),children:F.jsx("div",{role:"button",onClick:function(i){o==null||o(i)},className:"".concat(t,"-back-button ").concat(n).trim(),"aria-label":"back",children:r})})},JTe=function(t,n){var r;return(r=t.items)!==null&&r!==void 0&&r.length?F.jsx(ree,I(I({},t),{},{className:Z("".concat(n,"-breadcrumb"),t.className)})):null},eNe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return t.backIcon!==void 0?t.backIcon:n==="rtl"?F.jsx(YTe,{}):F.jsx(UTe,{})},tNe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",o=arguments.length>3?arguments[3]:void 0,a=n.title,i=n.avatar,l=n.subTitle,s=n.tags,u=n.extra,d=n.onBack,f="".concat(t,"-heading"),m=a||l||s||u;if(!m)return null;var h=eNe(n,r),g=ZTe(t,o,h,d),v=g||i||m;return F.jsxs("div",{className:f+" "+o,children:[v&&F.jsxs("div",{className:"".concat(f,"-left ").concat(o).trim(),children:[g,i&&F.jsx(Gh,I({className:Z("".concat(f,"-avatar"),o,i.className)},i)),a&&F.jsx("span",{className:"".concat(f,"-title ").concat(o).trim(),title:typeof a=="string"?a:void 0,children:a}),l&&F.jsx("span",{className:"".concat(f,"-sub-title ").concat(o).trim(),title:typeof l=="string"?l:void 0,children:l}),s&&F.jsx("span",{className:"".concat(f,"-tags ").concat(o).trim(),children:s})]}),u&&F.jsx("span",{className:"".concat(f,"-extra ").concat(o).trim(),children:F.jsx(hi,{children:u})})]})},nNe=function(t,n,r){return n?F.jsx("div",{className:"".concat(t,"-footer ").concat(r).trim(),children:n}):null},rNe=function(t,n,r){return F.jsx("div",{className:"".concat(t,"-content ").concat(r).trim(),children:n})},oNe=function(t){var n,r=c.useState(!1),o=X(r,2),a=o[0],i=o[1],l=function(j){var A=j.width;return i(A<768)},s=c.useContext(bt.ConfigContext),u=s.getPrefixCls,d=s.direction,f=t.prefixCls,m=t.style,h=t.footer,g=t.children,v=t.breadcrumb,p=t.breadcrumbRender,y=t.className,b=t.contentWidth,C=t.layout,S=u("page-header",f),$=QTe(S),x=$.wrapSSR,w=$.hashId,O=function(){return v&&!(v!=null&&v.items)&&v!==null&&v!==void 0&&v.routes&&(v.items=v.routes),v!=null&&v.items?JTe(v,S):null},E=O(),P=v&&"props"in v,M=(n=p==null?void 0:p(I(I({},t),{},{prefixCls:S}),E))!==null&&n!==void 0?n:E,D=P?v:M,R=Z(S,w,y,L(L(L(L(L(L({},"".concat(S,"-has-breadcrumb"),!!D),"".concat(S,"-has-footer"),!!h),"".concat(S,"-rtl"),d==="rtl"),"".concat(S,"-compact"),a),"".concat(S,"-wide"),b==="Fixed"&&C=="top"),"".concat(S,"-ghost"),!0)),_=tNe(S,t,d,w),T=g&&rNe(S,g,w),k=nNe(S,h,w);return!D&&!_&&!k&&!T?F.jsx("div",{className:Z(w,["".concat(S,"-no-children")])}):x(F.jsx(Sr,{onResize:l,children:F.jsxs("div",{className:R,style:m,children:[D,_,T,k]})}))},aNe=["isLoading","pastDelay","timedOut","error","retry"],OF=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=ze(t,aNe);return F.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:F.jsx(El,I({size:"large"},n))})},iNe=function(t){if(!t)return 1;var n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/n},lNe=function(t){var n=Jd(),r=n.token,o=t.children,a=t.style,i=t.className,l=t.markStyle,s=t.markClassName,u=t.zIndex,d=u===void 0?9:u,f=t.gapX,m=f===void 0?212:f,h=t.gapY,g=h===void 0?222:h,v=t.width,p=v===void 0?120:v,y=t.height,b=y===void 0?64:y,C=t.rotate,S=C===void 0?-22:C,$=t.image,x=t.offsetLeft,w=t.offsetTop,O=t.fontStyle,E=O===void 0?"normal":O,P=t.fontWeight,M=P===void 0?"normal":P,D=t.fontColor,R=D===void 0?r.colorFill:D,_=t.fontSize,T=_===void 0?16:_,k=t.fontFamily,N=k===void 0?"sans-serif":k,j=t.prefixCls,A=c.useContext(bt.ConfigContext),B=A.getPrefixCls,z=B("pro-layout-watermark",j),H=Z("".concat(z,"-wrapper"),i),V=Z(z,s),U=c.useState(""),K=X(U,2),Y=K[0],G=K[1];return c.useEffect(function(){var q=document.createElement("canvas"),J=q.getContext("2d"),Q=iNe(J),ne="".concat((m+p)*Q,"px"),re="".concat((g+b)*Q,"px"),oe=x||m/2,te=w||g/2;if(q.setAttribute("width",ne),q.setAttribute("height",re),!J){console.error("当前环境不支持Canvas");return}J.translate(oe*Q,te*Q),J.rotate(Math.PI/180*Number(S));var ee=p*Q,ie=b*Q,de=function(le){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ye=Number(T)*Q;J.font="".concat(E," normal ").concat(M," ").concat(ye,"px/").concat(ie,"px ").concat(N),J.fillStyle=R,Array.isArray(le)?le==null||le.forEach(function(ge,ve){return J.fillText(ge,0,ve*ye+me)}):J.fillText(le,0,me?me+ye:0),G(q.toDataURL())};if($){var he=new Image;he.crossOrigin="anonymous",he.referrerPolicy="no-referrer",he.src=$,he.onload=function(){if(J.drawImage(he,0,0,ee,ie),G(q.toDataURL()),t.content){de(t.content,he.height+8);return}};return}if(t.content){de(t.content);return}},[m,g,x,w,S,E,M,p,b,N,R,$,t.content,T]),F.jsxs("div",{style:I({position:"relative"},a),className:H,children:[o,F.jsx("div",{className:V,style:I(I({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+p,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Y?{backgroundImage:"url('".concat(Y,"')")}:{}),l)})]})},sNe=[576,768,992,1200].map(function(e){return"@media (max-width: ".concat(e,"px)")}),z0=X(sNe,4),kI=z0[0],LI=z0[1],cNe=z0[2],uNe=z0[3],dNe=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p,y,b,C;return L({},t.componentCls,L(L(L(L(L(L({position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingBlockPageContainerContent},"&-affix":L({},"".concat(t.antCls,"-affix"),L({},"".concat(t.componentCls,"-warp"),{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},"& &-warp-page-header",L(L(L(L({paddingBlockStart:((i=(l=t.layout)===null||l===void 0||(l=l.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent)!==null&&i!==void 0?i:40)/4,paddingBlockEnd:((s=(u=t.layout)===null||u===void 0||(u=u.pageContainer)===null||u===void 0?void 0:u.paddingBlockPageContainerContent)!==null&&s!==void 0?s:40)/2,paddingInlineStart:(d=t.layout)===null||d===void 0||(d=d.pageContainer)===null||d===void 0?void 0:d.paddingInlinePageContainerContent,paddingInlineEnd:(f=t.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingInlinePageContainerContent},"& ~ ".concat(t.proComponentsCls,"-grid-content"),L({},"".concat(t.proComponentsCls,"-page-container-children-content"),{paddingBlock:((m=(h=t.layout)===null||h===void 0||(h=h.pageContainer)===null||h===void 0?void 0:h.paddingBlockPageContainerContent)!==null&&m!==void 0?m:24)/3})),"".concat(t.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((g=(v=t.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent)!==null&&g!==void 0?g:40)/4+10}),"".concat(t.antCls,"-page-header-heading"),{paddingBlockStart:((p=(y=t.layout)===null||y===void 0||(y=y.pageContainer)===null||y===void 0?void 0:y.paddingBlockPageContainerContent)!==null&&p!==void 0?p:40)/4}),"".concat(t.antCls,"-page-header-footer"),{marginBlockStart:((b=(C=t.layout)===null||C===void 0||(C=C.pageContainer)===null||C===void 0?void 0:C.paddingBlockPageContainerContent)!==null&&b!==void 0?b:40)/4})),"&-detail",L({display:"flex"},kI,{display:"block"})),"&-main",{width:"100%"}),"&-row",L({display:"flex",width:"100%"},LI,{display:"block"})),"&-content",{flex:"auto",width:"100%"}),"&-extraContent",L(L(L(L({flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},uNe,{marginInlineStart:44}),cNe,{marginInlineStart:20}),LI,{marginInlineStart:0,textAlign:"start"}),kI,{marginInlineStart:0})))};function fNe(e,t){return un("ProLayoutPageContainer",function(n){var r,o=I(I({},n),{},{componentCls:".".concat(e),layout:I(I({},n==null?void 0:n.layout),{},{pageContainer:I(I({},n==null||(r=n.layout)===null||r===void 0?void 0:r.pageContainer),t)})});return[dNe(o)]})}function mNe(e,t){var n=t.stylish;return un("ProLayoutPageContainerStylish",function(r){var o=I(I({},r),{},{componentCls:".".concat(e)});return n?[L({},"div".concat(o.componentCls),n==null?void 0:n(o))]:[]})}var vNe=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],gNe=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function pNe(e){return et(e)==="object"?e:{spinning:e}}var hNe=function(t){var n=t.tabList,r=t.tabActiveKey,o=t.onTabChange,a=t.hashId,i=t.tabBarExtraContent,l=t.tabProps,s=t.prefixedClassName;return Array.isArray(n)||i?F.jsx(LC,I(I({className:"".concat(s,"-tabs ").concat(a).trim(),activeKey:r,onChange:function(d){o&&o(d)},tabBarExtraContent:i,items:n==null?void 0:n.map(function(u,d){var f;return I(I({label:u.tab},u),{},{key:((f=u.key)===null||f===void 0?void 0:f.toString())||(d==null?void 0:d.toString())})})},l),{},{children:Es(pa,"4.23.0")<0?n==null?void 0:n.map(function(u,d){return F.jsx(LC.TabPane,I({tab:u.tab},u),u.key||d)}):null})):null},yNe=function(t,n,r,o){return!t&&!n?null:F.jsx("div",{className:"".concat(r,"-detail ").concat(o).trim(),children:F.jsx("div",{className:"".concat(r,"-main ").concat(o).trim(),children:F.jsxs("div",{className:"".concat(r,"-row ").concat(o).trim(),children:[t&&F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:t}),n&&F.jsx("div",{className:"".concat(r,"-extraContent ").concat(o).trim(),children:n})]})})})},bNe=function(t){var n,r=t.title,o=t.content,a=t.pageHeaderRender,i=t.header,l=t.prefixedClassName,s=t.extraContent;t.childrenContentStyle,t.style;var u=t.prefixCls,d=t.hashId,f=t.value,m=t.breadcrumbRender,h=ze(t,vNe),g=function(){if(m)return m};if(a===!1)return null;if(a)return F.jsxs(F.Fragment,{children:[" ",a(I(I({},t),f))]});var v=r;!r&&r!==!1&&(v=f.title);var p=I(I(I({},f),{},{title:v},h),{},{footer:hNe(I(I({},h),{},{hashId:d,breadcrumbRender:m,prefixedClassName:l}))},i),y=p,b=y.breadcrumb,C=(!b||!(b!=null&&b.itemRender)&&!(b!=null&&(n=b.items)!==null&&n!==void 0&&n.length))&&!m;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(S){return!p[S]})&&C&&!o&&!s?null:F.jsx(oNe,I(I({},p),{},{className:"".concat(l,"-warp-page-header ").concat(d).trim(),breadcrumb:m===!1?void 0:I(I({},p.breadcrumb),f.breadcrumbProps),breadcrumbRender:g(),prefixCls:u,children:(i==null?void 0:i.children)||yNe(o,s,l,d)}))},CNe=function(t){var n,r,o=t.children,a=t.loading,i=a===void 0?!1:a,l=t.className,s=t.style,u=t.footer,d=t.affixProps,f=t.token,m=t.fixedHeader,h=t.breadcrumbRender,g=t.footerToolBarProps,v=t.childrenContentStyle,p=ze(t,gNe),y=c.useContext(Wf);c.useEffect(function(){var j;return!y||!(y!=null&&y.setHasPageContainer)?function(){}:(y==null||(j=y.setHasPageContainer)===null||j===void 0||j.call(y,function(A){return A+1}),function(){var A;y==null||(A=y.setHasPageContainer)===null||A===void 0||A.call(y,function(B){return B-1})})},[]);var b=c.useContext(Ca),C=b.token,S=c.useContext(bt.ConfigContext),$=S.getPrefixCls,x=t.prefixCls||$("pro"),w="".concat(x,"-page-container"),O=fNe(w,f),E=O.wrapSSR,P=O.hashId,M=mNe("".concat(w,".").concat(w,"-stylish"),{stylish:t.stylish}),D=c.useMemo(function(){var j;return h==!1?!1:h||(p==null||(j=p.header)===null||j===void 0?void 0:j.breadcrumbRender)},[h,p==null||(n=p.header)===null||n===void 0?void 0:n.breadcrumbRender]),R=bNe(I(I({},p),{},{breadcrumbRender:D,ghost:!0,hashId:P,prefixCls:void 0,prefixedClassName:w,value:y})),_=c.useMemo(function(){if(W.isValidElement(i))return i;if(typeof i=="boolean"&&!i)return null;var j=pNe(i);return j.spinning?F.jsx(OF,I({},j)):null},[i]),T=c.useMemo(function(){return o?F.jsx(F.Fragment,{children:F.jsx("div",{className:Z(P,"".concat(w,"-children-container"),L({},"".concat(w,"-children-container-no-header"),!R)),style:v,children:o})}):null},[o,w,v,P]),k=c.useMemo(function(){var j=_||T;if(t.waterMarkProps||y.waterMarkProps){var A=I(I({},y.waterMarkProps),t.waterMarkProps);return F.jsx(lNe,I(I({},A),{},{children:j}))}return j},[t.waterMarkProps,y.waterMarkProps,_,T]),N=Z(w,P,l,L(L(L({},"".concat(w,"-with-footer"),u),"".concat(w,"-with-affix"),m&&R),"".concat(w,"-stylish"),!!p.stylish));return E(M.wrapSSR(F.jsxs(F.Fragment,{children:[F.jsxs("div",{style:s,className:N,children:[m&&R?F.jsx(_V,I(I({offsetTop:y.hasHeader&&y.fixedHeader?(r=C.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader:1},d),{},{className:"".concat(w,"-affix ").concat(P).trim(),children:F.jsx("div",{className:"".concat(w,"-warp ").concat(P).trim(),children:R})})):R,k&&F.jsx(PTe,{children:k})]}),u&&F.jsx(wTe,I(I({stylish:p.footerStylish,prefixCls:x},g),{},{children:u}))]})))},SNe=function(t){return F.jsx(Mm,{needDeps:!0,children:F.jsx(CNe,I({},t))})},xNe=function(t){return L({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function wNe(e){return un("ProLayoutFooter",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[xNe(n)]})}var $Ne=function(t){var n=t.className,r=t.prefixCls,o=t.links,a=t.copyright,i=t.style,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls(r||"pro-global-footer"),u=wNe(s),d=u.wrapSSR,f=u.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(a==null||a===!1)?null:d(F.jsxs("div",{className:Z(s,f,n),style:i,children:[o&&F.jsx("div",{className:"".concat(s,"-list ").concat(f).trim(),children:o.map(function(m){return F.jsx("a",{className:"".concat(s,"-list-link ").concat(f).trim(),title:m.key,target:m.blankTarget?"_blank":"_self",href:m.href,rel:"noreferrer",children:m.title},m.key)})}),a&&F.jsx("div",{className:"".concat(s,"-copyright ").concat(f).trim(),children:a})]}))},ENe=ms.Footer,PNe=function(t){var n=t.links,r=t.copyright,o=t.style,a=t.className,i=t.prefixCls;return F.jsx(ENe,{className:a,style:I({padding:0},o),children:F.jsx($Ne,{links:n,prefixCls:i,copyright:r===!1?null:F.jsxs(c.Fragment,{children:[F.jsx(t0e,{})," ",r]})})})},AI=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var o=n.concat(e(r.children||r.routes)||[]);return o}return n},[])},BI={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function IF(e){return e&&BI[e]?BI[e]:e||""}function H0(e){return e.map(function(t){var n=t.children||[],r=I({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(o){return o&&o.name&&!o.hideInMenu}))return I(I({},t),{},{children:H0(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var ONe=function(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},INe=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,a=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:F.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(i,l){var s;return i!=null&&(s=i.children)!==null&&s!==void 0&&s.length?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:i.title}),F.jsx(e,{hashId:o,itemClick:a,appList:i==null?void 0:i.children,baseClassName:r})]},l):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(i)},children:F.jsxs("a",{href:a?void 0:i.url,target:i.target,rel:"noreferrer",children:[u$(i.icon),F.jsxs("div",{children:[F.jsx("div",{children:i.title}),i.desc?F.jsx("span",{children:i.desc}):null]})]})},l)})})})},MNe=function(t,n){if(t&&typeof t=="string"&&Iw(t))return F.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return F.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return F.jsx("div",{id:"avatarLogo",children:r})}return t},RNe=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,a=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:F.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(i,l){var s;return i!=null&&(s=i.children)!==null&&s!==void 0&&s.length?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:i.title}),F.jsx(e,{hashId:o,itemClick:a,appList:i==null?void 0:i.children,baseClassName:r})]},l):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(i)},children:F.jsxs("a",{href:a?"javascript:;":i.url,target:i.target,rel:"noreferrer",children:[MNe(i.icon,i.title),F.jsx("div",{children:F.jsx("div",{children:i.title})})]})},l)})})})},_Ne=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":_c==null?void 0:_c(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},TNe=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},NNe=function(t){var n,r,o,a,i;return L({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":L({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":TNe(t),"&-default":_Ne(t)})};function jNe(e){return un("AppsLogoComponents",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[NNe(n)]})}var u$=function(t){return typeof t=="string"?F.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},d$=function(t){var n,r=t.appList,o=t.appListRender,a=t.prefixCls,i=a===void 0?"ant-pro":a,l=t.onItemClick,s=W.useRef(null),u=W.useRef(null),d="".concat(i,"-layout-apps"),f=jNe(d),m=f.wrapSSR,h=f.hashId,g=c.useState(!1),v=X(g,2),p=v[0],y=v[1],b=function(w){l==null||l(w,u)},C=c.useMemo(function(){var x=r==null?void 0:r.some(function(w){return!(w!=null&&w.desc)});return x?F.jsx(RNe,{hashId:h,appList:r,itemClick:l?b:void 0,baseClassName:"".concat(d,"-simple")}):F.jsx(INe,{hashId:h,appList:r,itemClick:l?b:void 0,baseClassName:"".concat(d,"-default")})},[r,d,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var S=o?o(t==null?void 0:t.appList,C):C,$=Rm(void 0,function(x){return y(x)});return m(F.jsxs(F.Fragment,{children:[F.jsx("div",{ref:s,onClick:function(w){w.stopPropagation(),w.preventDefault()}}),F.jsx(bs,I(I({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},$),{},{overlayClassName:"".concat(d,"-popover ").concat(h).trim(),content:S,getPopupContainer:function(){return s.current||document.body},children:F.jsx("span",{ref:u,onClick:function(w){w.stopPropagation()},className:Z("".concat(d,"-icon"),h,L({},"".concat(d,"-icon-active"),p)),children:F.jsx(ONe,{})})}))]}))};function DNe(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var FNe=function(t){var n,r,o;return L({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function kNe(e){return un("SiderMenuCollapsedIcon",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[FNe(n)]})}var LNe=["isMobile","collapsed"],ANe=function(t){var n=t.isMobile,r=t.collapsed,o=ze(t,LNe),a=kNe(t.className),i=a.wrapSSR,l=a.hashId;return n&&r?null:i(F.jsx("div",I(I({},o),{},{className:Z(t.className,l,L(L({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:F.jsx(DNe,{})})))},pl={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},BNe=function(t,n){var r,o,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(o=t.layout)===null||o===void 0?void 0:o.sider;return I(I(L({},"".concat(t.componentCls),L(L(L(L(L(L(L(L(L({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),L({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",L(L(L({},"".concat(t.antCls,`-menu-item, +`,x=function(w){var O=(0,i.useContext)(l.default),E=O.csp,P=O.prefixCls,M=$;P&&(M=M.replace(/anticon/g,P)),(0,i.useEffect)(function(){var D=w.current,R=(0,o.getShadowRoot)(D);(0,r.updateCSS)(M,"@ant-design-icons",{prepend:!0,csp:E,attachTo:R})},[])}})(L0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return v}});var t=a(c),n=L0;function r(p,y,b){return y in p?Object.defineProperty(p,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[y]=b,p}function o(p){if(typeof WeakMap!="function")return null;var y=new WeakMap,b=new WeakMap;return(o=function(C){return C?b:y})(p)}function a(p,y){if(!y&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=o(y);if(b&&b.has(p))return b.get(p);var C={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in p)if($!=="default"&&Object.prototype.hasOwnProperty.call(p,$)){var x=S?Object.getOwnPropertyDescriptor(p,$):null;x&&(x.get||x.set)?Object.defineProperty(C,$,x):C[$]=p[$]}return C.default=p,b&&b.set(p,C),C}function i(p){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(p,C)&&(b[C]=p[C])}return b}function d(p,y){if(p==null)return{};var b={},C=Object.keys(p),S,$;for($=0;$=0)&&(b[S]=p[S]);return b}var f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function m(p){var y=p.primaryColor,b=p.secondaryColor;f.primaryColor=y,f.secondaryColor=b||(0,n.getSecondaryColor)(y),f.calculated=!!b}function h(){return i({},f)}var g=function(p){var y=p.icon,b=p.className,C=p.onClick,S=p.style,$=p.primaryColor,x=p.secondaryColor,w=u(p,["icon","className","onClick","style","primaryColor","secondaryColor"]),O=t.useRef(),E=f;if($&&(E={primaryColor:$,secondaryColor:x||(0,n.getSecondaryColor)($)}),(0,n.useInsertStyles)(O),(0,n.warning)((0,n.isIconDefinition)(y),"icon should be icon definiton, but got ".concat(y)),!(0,n.isIconDefinition)(y))return null;var P=y;return P&&typeof P.icon=="function"&&(P=s(i({},P),{icon:P.icon(E.primaryColor,E.secondaryColor)})),(0,n.generate)(P.icon,"svg-".concat(P.name),s(i({className:b,onClick:C,style:S,"data-icon":P.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},w),{ref:O}))};g.displayName="IconReact",g.getTwoToneColors=h,g.setTwoToneColors=m;var v=g})(n$);var EF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var v in g)Object.defineProperty(h,v,{enumerable:!0,get:g[v]})}t(e,{getTwoToneColor:function(){return m},setTwoToneColor:function(){return f}});var n=i(n$),r=L0;function o(h,g){(g==null||g>h.length)&&(g=h.length);for(var v=0,p=new Array(g);vE.length)&&(P=E.length);for(var M=0,D=new Array(P);M=0)&&Object.prototype.propertyIsEnumerable.call(E,D)&&(M[D]=E[D])}return M}function S(E,P){if(E==null)return{};var M={},D=Object.keys(E),R,_;for(_=0;_=0)&&(M[R]=E[R]);return M}function $(E,P){return u(E)||g(E,P)||x(E,P)||v()}function x(E,P){if(E){if(typeof E=="string")return s(E,P);var M=Object.prototype.toString.call(E).slice(8,-1);if(M==="Object"&&E.constructor&&(M=E.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return s(E,P)}}(0,i.setTwoToneColor)(r.blue.primary);var w=t.forwardRef(function(E,P){var M=E.className,D=E.icon,R=E.spin,_=E.rotate,T=E.tabIndex,k=E.onClick,N=E.twoToneColor,j=C(E,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),A=t.useContext(o.default),B=A.prefixCls,z=B===void 0?"anticon":B,H=A.rootClassName,V,U=(0,n.default)(H,z,(V={},d(V,"".concat(z,"-").concat(D.name),!!D.name),d(V,"".concat(z,"-spin"),!!R||D.name==="loading"),V),M),K=T;K===void 0&&k&&(K=-1);var Y=_?{msTransform:"rotate(".concat(_,"deg)"),transform:"rotate(".concat(_,"deg)")}:void 0,G=$((0,l.normalizeTwoToneColors)(N),2),q=G[0],J=G[1];return t.createElement("span",b(p({role:"img","aria-label":D.name},j),{ref:P,tabIndex:K,onClick:k,className:U}),t.createElement(a.default,{icon:D,primaryColor:q,secondaryColor:J,style:Y}))});w.displayName="AntdIcon",w.getTwoToneColor=i.getTwoToneColor,w.setTwoToneColor=i.setTwoToneColor;var O=w})(e$);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var t=l(c),n=a(Jw),r=a(e$);function o(g,v,p){return v in g?Object.defineProperty(g,v,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[v]=p,g}function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(y){return y?p:v})(g)}function l(g,v){if(!v&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var p=i(v);if(p&&p.has(g))return p.get(g);var y={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in g)if(C!=="default"&&Object.prototype.hasOwnProperty.call(g,C)){var S=b?Object.getOwnPropertyDescriptor(g,C):null;S&&(S.get||S.set)?Object.defineProperty(y,C,S):y[C]=g[C]}return y.default=g,p&&p.set(g,y),y}function s(g){for(var v=1;v *":L({"white-space":"unset"},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:t.marginSM,marginInlineStart:0})},"".concat(t.componentCls,"-rlt &"),{float:"left"}),"*:first-child",L({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:t.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:t.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function QTe(e){return un("ProLayoutPageHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[XTe(n)]})}var ZTe=function(t,n,r,o){return!r||!o?null:F.jsx("div",{className:"".concat(t,"-back ").concat(n).trim(),children:F.jsx("div",{role:"button",onClick:function(i){o==null||o(i)},className:"".concat(t,"-back-button ").concat(n).trim(),"aria-label":"back",children:r})})},JTe=function(t,n){var r;return(r=t.items)!==null&&r!==void 0&&r.length?F.jsx(Ste,I(I({},t),{},{className:Z("".concat(n,"-breadcrumb"),t.className)})):null},eNe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return t.backIcon!==void 0?t.backIcon:n==="rtl"?F.jsx(YTe,{}):F.jsx(UTe,{})},tNe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",o=arguments.length>3?arguments[3]:void 0,a=n.title,i=n.avatar,l=n.subTitle,s=n.tags,u=n.extra,d=n.onBack,f="".concat(t,"-heading"),m=a||l||s||u;if(!m)return null;var h=eNe(n,r),g=ZTe(t,o,h,d),v=g||i||m;return F.jsxs("div",{className:f+" "+o,children:[v&&F.jsxs("div",{className:"".concat(f,"-left ").concat(o).trim(),children:[g,i&&F.jsx(Zh,I({className:Z("".concat(f,"-avatar"),o,i.className)},i)),a&&F.jsx("span",{className:"".concat(f,"-title ").concat(o).trim(),title:typeof a=="string"?a:void 0,children:a}),l&&F.jsx("span",{className:"".concat(f,"-sub-title ").concat(o).trim(),title:typeof l=="string"?l:void 0,children:l}),s&&F.jsx("span",{className:"".concat(f,"-tags ").concat(o).trim(),children:s})]}),u&&F.jsx("span",{className:"".concat(f,"-extra ").concat(o).trim(),children:F.jsx(hi,{children:u})})]})},nNe=function(t,n,r){return n?F.jsx("div",{className:"".concat(t,"-footer ").concat(r).trim(),children:n}):null},rNe=function(t,n,r){return F.jsx("div",{className:"".concat(t,"-content ").concat(r).trim(),children:n})},oNe=function(t){var n,r=c.useState(!1),o=X(r,2),a=o[0],i=o[1],l=function(j){var A=j.width;return i(A<768)},s=c.useContext(bt.ConfigContext),u=s.getPrefixCls,d=s.direction,f=t.prefixCls,m=t.style,h=t.footer,g=t.children,v=t.breadcrumb,p=t.breadcrumbRender,y=t.className,b=t.contentWidth,C=t.layout,S=u("page-header",f),$=QTe(S),x=$.wrapSSR,w=$.hashId,O=function(){return v&&!(v!=null&&v.items)&&v!==null&&v!==void 0&&v.routes&&(v.items=v.routes),v!=null&&v.items?JTe(v,S):null},E=O(),P=v&&"props"in v,M=(n=p==null?void 0:p(I(I({},t),{},{prefixCls:S}),E))!==null&&n!==void 0?n:E,D=P?v:M,R=Z(S,w,y,L(L(L(L(L(L({},"".concat(S,"-has-breadcrumb"),!!D),"".concat(S,"-has-footer"),!!h),"".concat(S,"-rtl"),d==="rtl"),"".concat(S,"-compact"),a),"".concat(S,"-wide"),b==="Fixed"&&C=="top"),"".concat(S,"-ghost"),!0)),_=tNe(S,t,d,w),T=g&&rNe(S,g,w),k=nNe(S,h,w);return!D&&!_&&!k&&!T?F.jsx("div",{className:Z(w,["".concat(S,"-no-children")])}):x(F.jsx(Sr,{onResize:l,children:F.jsxs("div",{className:R,style:m,children:[D,_,T,k]})}))},aNe=["isLoading","pastDelay","timedOut","error","retry"],OF=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=ze(t,aNe);return F.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:F.jsx(El,I({size:"large"},n))})},iNe=function(t){if(!t)return 1;var n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/n},lNe=function(t){var n=Jd(),r=n.token,o=t.children,a=t.style,i=t.className,l=t.markStyle,s=t.markClassName,u=t.zIndex,d=u===void 0?9:u,f=t.gapX,m=f===void 0?212:f,h=t.gapY,g=h===void 0?222:h,v=t.width,p=v===void 0?120:v,y=t.height,b=y===void 0?64:y,C=t.rotate,S=C===void 0?-22:C,$=t.image,x=t.offsetLeft,w=t.offsetTop,O=t.fontStyle,E=O===void 0?"normal":O,P=t.fontWeight,M=P===void 0?"normal":P,D=t.fontColor,R=D===void 0?r.colorFill:D,_=t.fontSize,T=_===void 0?16:_,k=t.fontFamily,N=k===void 0?"sans-serif":k,j=t.prefixCls,A=c.useContext(bt.ConfigContext),B=A.getPrefixCls,z=B("pro-layout-watermark",j),H=Z("".concat(z,"-wrapper"),i),V=Z(z,s),U=c.useState(""),K=X(U,2),Y=K[0],G=K[1];return c.useEffect(function(){var q=document.createElement("canvas"),J=q.getContext("2d"),Q=iNe(J),ne="".concat((m+p)*Q,"px"),re="".concat((g+b)*Q,"px"),oe=x||m/2,te=w||g/2;if(q.setAttribute("width",ne),q.setAttribute("height",re),!J){console.error("当前环境不支持Canvas");return}J.translate(oe*Q,te*Q),J.rotate(Math.PI/180*Number(S));var ee=p*Q,ie=b*Q,de=function(le){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ye=Number(T)*Q;J.font="".concat(E," normal ").concat(M," ").concat(ye,"px/").concat(ie,"px ").concat(N),J.fillStyle=R,Array.isArray(le)?le==null||le.forEach(function(ge,ve){return J.fillText(ge,0,ve*ye+me)}):J.fillText(le,0,me?me+ye:0),G(q.toDataURL())};if($){var he=new Image;he.crossOrigin="anonymous",he.referrerPolicy="no-referrer",he.src=$,he.onload=function(){if(J.drawImage(he,0,0,ee,ie),G(q.toDataURL()),t.content){de(t.content,he.height+8);return}};return}if(t.content){de(t.content);return}},[m,g,x,w,S,E,M,p,b,N,R,$,t.content,T]),F.jsxs("div",{style:I({position:"relative"},a),className:H,children:[o,F.jsx("div",{className:V,style:I(I({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+p,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Y?{backgroundImage:"url('".concat(Y,"')")}:{}),l)})]})},sNe=[576,768,992,1200].map(function(e){return"@media (max-width: ".concat(e,"px)")}),z0=X(sNe,4),kI=z0[0],LI=z0[1],cNe=z0[2],uNe=z0[3],dNe=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p,y,b,C;return L({},t.componentCls,L(L(L(L(L(L({position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingBlockPageContainerContent},"&-affix":L({},"".concat(t.antCls,"-affix"),L({},"".concat(t.componentCls,"-warp"),{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},"& &-warp-page-header",L(L(L(L({paddingBlockStart:((i=(l=t.layout)===null||l===void 0||(l=l.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent)!==null&&i!==void 0?i:40)/4,paddingBlockEnd:((s=(u=t.layout)===null||u===void 0||(u=u.pageContainer)===null||u===void 0?void 0:u.paddingBlockPageContainerContent)!==null&&s!==void 0?s:40)/2,paddingInlineStart:(d=t.layout)===null||d===void 0||(d=d.pageContainer)===null||d===void 0?void 0:d.paddingInlinePageContainerContent,paddingInlineEnd:(f=t.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingInlinePageContainerContent},"& ~ ".concat(t.proComponentsCls,"-grid-content"),L({},"".concat(t.proComponentsCls,"-page-container-children-content"),{paddingBlock:((m=(h=t.layout)===null||h===void 0||(h=h.pageContainer)===null||h===void 0?void 0:h.paddingBlockPageContainerContent)!==null&&m!==void 0?m:24)/3})),"".concat(t.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((g=(v=t.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent)!==null&&g!==void 0?g:40)/4+10}),"".concat(t.antCls,"-page-header-heading"),{paddingBlockStart:((p=(y=t.layout)===null||y===void 0||(y=y.pageContainer)===null||y===void 0?void 0:y.paddingBlockPageContainerContent)!==null&&p!==void 0?p:40)/4}),"".concat(t.antCls,"-page-header-footer"),{marginBlockStart:((b=(C=t.layout)===null||C===void 0||(C=C.pageContainer)===null||C===void 0?void 0:C.paddingBlockPageContainerContent)!==null&&b!==void 0?b:40)/4})),"&-detail",L({display:"flex"},kI,{display:"block"})),"&-main",{width:"100%"}),"&-row",L({display:"flex",width:"100%"},LI,{display:"block"})),"&-content",{flex:"auto",width:"100%"}),"&-extraContent",L(L(L(L({flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},uNe,{marginInlineStart:44}),cNe,{marginInlineStart:20}),LI,{marginInlineStart:0,textAlign:"start"}),kI,{marginInlineStart:0})))};function fNe(e,t){return un("ProLayoutPageContainer",function(n){var r,o=I(I({},n),{},{componentCls:".".concat(e),layout:I(I({},n==null?void 0:n.layout),{},{pageContainer:I(I({},n==null||(r=n.layout)===null||r===void 0?void 0:r.pageContainer),t)})});return[dNe(o)]})}function mNe(e,t){var n=t.stylish;return un("ProLayoutPageContainerStylish",function(r){var o=I(I({},r),{},{componentCls:".".concat(e)});return n?[L({},"div".concat(o.componentCls),n==null?void 0:n(o))]:[]})}var vNe=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],gNe=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function pNe(e){return et(e)==="object"?e:{spinning:e}}var hNe=function(t){var n=t.tabList,r=t.tabActiveKey,o=t.onTabChange,a=t.hashId,i=t.tabBarExtraContent,l=t.tabProps,s=t.prefixedClassName;return Array.isArray(n)||i?F.jsx(HC,I(I({className:"".concat(s,"-tabs ").concat(a).trim(),activeKey:r,onChange:function(d){o&&o(d)},tabBarExtraContent:i,items:n==null?void 0:n.map(function(u,d){var f;return I(I({label:u.tab},u),{},{key:((f=u.key)===null||f===void 0?void 0:f.toString())||(d==null?void 0:d.toString())})})},l),{},{children:Es(pa,"4.23.0")<0?n==null?void 0:n.map(function(u,d){return F.jsx(HC.TabPane,I({tab:u.tab},u),u.key||d)}):null})):null},yNe=function(t,n,r,o){return!t&&!n?null:F.jsx("div",{className:"".concat(r,"-detail ").concat(o).trim(),children:F.jsx("div",{className:"".concat(r,"-main ").concat(o).trim(),children:F.jsxs("div",{className:"".concat(r,"-row ").concat(o).trim(),children:[t&&F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:t}),n&&F.jsx("div",{className:"".concat(r,"-extraContent ").concat(o).trim(),children:n})]})})})},bNe=function(t){var n,r=t.title,o=t.content,a=t.pageHeaderRender,i=t.header,l=t.prefixedClassName,s=t.extraContent;t.childrenContentStyle,t.style;var u=t.prefixCls,d=t.hashId,f=t.value,m=t.breadcrumbRender,h=ze(t,vNe),g=function(){if(m)return m};if(a===!1)return null;if(a)return F.jsxs(F.Fragment,{children:[" ",a(I(I({},t),f))]});var v=r;!r&&r!==!1&&(v=f.title);var p=I(I(I({},f),{},{title:v},h),{},{footer:hNe(I(I({},h),{},{hashId:d,breadcrumbRender:m,prefixedClassName:l}))},i),y=p,b=y.breadcrumb,C=(!b||!(b!=null&&b.itemRender)&&!(b!=null&&(n=b.items)!==null&&n!==void 0&&n.length))&&!m;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(S){return!p[S]})&&C&&!o&&!s?null:F.jsx(oNe,I(I({},p),{},{className:"".concat(l,"-warp-page-header ").concat(d).trim(),breadcrumb:m===!1?void 0:I(I({},p.breadcrumb),f.breadcrumbProps),breadcrumbRender:g(),prefixCls:u,children:(i==null?void 0:i.children)||yNe(o,s,l,d)}))},CNe=function(t){var n,r,o=t.children,a=t.loading,i=a===void 0?!1:a,l=t.className,s=t.style,u=t.footer,d=t.affixProps,f=t.token,m=t.fixedHeader,h=t.breadcrumbRender,g=t.footerToolBarProps,v=t.childrenContentStyle,p=ze(t,gNe),y=c.useContext(Wf);c.useEffect(function(){var j;return!y||!(y!=null&&y.setHasPageContainer)?function(){}:(y==null||(j=y.setHasPageContainer)===null||j===void 0||j.call(y,function(A){return A+1}),function(){var A;y==null||(A=y.setHasPageContainer)===null||A===void 0||A.call(y,function(B){return B-1})})},[]);var b=c.useContext(Ca),C=b.token,S=c.useContext(bt.ConfigContext),$=S.getPrefixCls,x=t.prefixCls||$("pro"),w="".concat(x,"-page-container"),O=fNe(w,f),E=O.wrapSSR,P=O.hashId,M=mNe("".concat(w,".").concat(w,"-stylish"),{stylish:t.stylish}),D=c.useMemo(function(){var j;return h==!1?!1:h||(p==null||(j=p.header)===null||j===void 0?void 0:j.breadcrumbRender)},[h,p==null||(n=p.header)===null||n===void 0?void 0:n.breadcrumbRender]),R=bNe(I(I({},p),{},{breadcrumbRender:D,ghost:!0,hashId:P,prefixCls:void 0,prefixedClassName:w,value:y})),_=c.useMemo(function(){if(W.isValidElement(i))return i;if(typeof i=="boolean"&&!i)return null;var j=pNe(i);return j.spinning?F.jsx(OF,I({},j)):null},[i]),T=c.useMemo(function(){return o?F.jsx(F.Fragment,{children:F.jsx("div",{className:Z(P,"".concat(w,"-children-container"),L({},"".concat(w,"-children-container-no-header"),!R)),style:v,children:o})}):null},[o,w,v,P]),k=c.useMemo(function(){var j=_||T;if(t.waterMarkProps||y.waterMarkProps){var A=I(I({},y.waterMarkProps),t.waterMarkProps);return F.jsx(lNe,I(I({},A),{},{children:j}))}return j},[t.waterMarkProps,y.waterMarkProps,_,T]),N=Z(w,P,l,L(L(L({},"".concat(w,"-with-footer"),u),"".concat(w,"-with-affix"),m&&R),"".concat(w,"-stylish"),!!p.stylish));return E(M.wrapSSR(F.jsxs(F.Fragment,{children:[F.jsxs("div",{style:s,className:N,children:[m&&R?F.jsx(YW,I(I({offsetTop:y.hasHeader&&y.fixedHeader?(r=C.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader:1},d),{},{className:"".concat(w,"-affix ").concat(P).trim(),children:F.jsx("div",{className:"".concat(w,"-warp ").concat(P).trim(),children:R})})):R,k&&F.jsx(PTe,{children:k})]}),u&&F.jsx(wTe,I(I({stylish:p.footerStylish,prefixCls:x},g),{},{children:u}))]})))},SNe=function(t){return F.jsx(Mm,{needDeps:!0,children:F.jsx(CNe,I({},t))})},xNe=function(t){return L({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function wNe(e){return un("ProLayoutFooter",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[xNe(n)]})}var $Ne=function(t){var n=t.className,r=t.prefixCls,o=t.links,a=t.copyright,i=t.style,l=c.useContext(bt.ConfigContext),s=l.getPrefixCls(r||"pro-global-footer"),u=wNe(s),d=u.wrapSSR,f=u.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(a==null||a===!1)?null:d(F.jsxs("div",{className:Z(s,f,n),style:i,children:[o&&F.jsx("div",{className:"".concat(s,"-list ").concat(f).trim(),children:o.map(function(m){return F.jsx("a",{className:"".concat(s,"-list-link ").concat(f).trim(),title:m.key,target:m.blankTarget?"_blank":"_self",href:m.href,rel:"noreferrer",children:m.title},m.key)})}),a&&F.jsx("div",{className:"".concat(s,"-copyright ").concat(f).trim(),children:a})]}))},ENe=ms.Footer,PNe=function(t){var n=t.links,r=t.copyright,o=t.style,a=t.className,i=t.prefixCls;return F.jsx(ENe,{className:a,style:I({padding:0},o),children:F.jsx($Ne,{links:n,prefixCls:i,copyright:r===!1?null:F.jsxs(c.Fragment,{children:[F.jsx(t0e,{})," ",r]})})})},AI=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var o=n.concat(e(r.children||r.routes)||[]);return o}return n},[])},BI={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function IF(e){return e&&BI[e]?BI[e]:e||""}function H0(e){return e.map(function(t){var n=t.children||[],r=I({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(o){return o&&o.name&&!o.hideInMenu}))return I(I({},t),{},{children:H0(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var ONe=function(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},INe=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,a=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:F.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(i,l){var s;return i!=null&&(s=i.children)!==null&&s!==void 0&&s.length?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:i.title}),F.jsx(e,{hashId:o,itemClick:a,appList:i==null?void 0:i.children,baseClassName:r})]},l):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(i)},children:F.jsxs("a",{href:a?void 0:i.url,target:i.target,rel:"noreferrer",children:[u$(i.icon),F.jsxs("div",{children:[F.jsx("div",{children:i.title}),i.desc?F.jsx("span",{children:i.desc}):null]})]})},l)})})})},MNe=function(t,n){if(t&&typeof t=="string"&&Iw(t))return F.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return F.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return F.jsx("div",{id:"avatarLogo",children:r})}return t},RNe=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,a=t.itemClick;return F.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:F.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(i,l){var s;return i!=null&&(s=i.children)!==null&&s!==void 0&&s.length?F.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[F.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:i.title}),F.jsx(e,{hashId:o,itemClick:a,appList:i==null?void 0:i.children,baseClassName:r})]},l):F.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(i)},children:F.jsxs("a",{href:a?"javascript:;":i.url,target:i.target,rel:"noreferrer",children:[MNe(i.icon,i.title),F.jsx("div",{children:F.jsx("div",{children:i.title})})]})},l)})})})},_Ne=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":_c==null?void 0:_c(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},TNe=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},NNe=function(t){var n,r,o,a,i;return L({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":L({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":TNe(t),"&-default":_Ne(t)})};function jNe(e){return un("AppsLogoComponents",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[NNe(n)]})}var u$=function(t){return typeof t=="string"?F.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},d$=function(t){var n,r=t.appList,o=t.appListRender,a=t.prefixCls,i=a===void 0?"ant-pro":a,l=t.onItemClick,s=W.useRef(null),u=W.useRef(null),d="".concat(i,"-layout-apps"),f=jNe(d),m=f.wrapSSR,h=f.hashId,g=c.useState(!1),v=X(g,2),p=v[0],y=v[1],b=function(w){l==null||l(w,u)},C=c.useMemo(function(){var x=r==null?void 0:r.some(function(w){return!(w!=null&&w.desc)});return x?F.jsx(RNe,{hashId:h,appList:r,itemClick:l?b:void 0,baseClassName:"".concat(d,"-simple")}):F.jsx(INe,{hashId:h,appList:r,itemClick:l?b:void 0,baseClassName:"".concat(d,"-default")})},[r,d,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var S=o?o(t==null?void 0:t.appList,C):C,$=Rm(void 0,function(x){return y(x)});return m(F.jsxs(F.Fragment,{children:[F.jsx("div",{ref:s,onClick:function(w){w.stopPropagation(),w.preventDefault()}}),F.jsx(Cs,I(I({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},$),{},{overlayClassName:"".concat(d,"-popover ").concat(h).trim(),content:S,getPopupContainer:function(){return s.current||document.body},children:F.jsx("span",{ref:u,onClick:function(w){w.stopPropagation()},className:Z("".concat(d,"-icon"),h,L({},"".concat(d,"-icon-active"),p)),children:F.jsx(ONe,{})})}))]}))};function DNe(){return F.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:F.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var FNe=function(t){var n,r,o;return L({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function kNe(e){return un("SiderMenuCollapsedIcon",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[FNe(n)]})}var LNe=["isMobile","collapsed"],ANe=function(t){var n=t.isMobile,r=t.collapsed,o=ze(t,LNe),a=kNe(t.className),i=a.wrapSSR,l=a.hashId;return n&&r?null:i(F.jsx("div",I(I({},o),{},{className:Z(t.className,l,L(L({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:F.jsx(DNe,{})})))},pl={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},BNe=function(t,n){var r,o,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(o=t.layout)===null||o===void 0?void 0:o.sider;return I(I(L({},"".concat(t.componentCls),L(L(L(L(L(L(L(L(L({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),L({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",L(L(L({},"".concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title, - `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),L({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",L(L(L(L(L({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",L(L({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),L({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),L(L({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",L({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:L({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),L({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},L({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function zNe(e,t){return un("ProLayoutBaseMenu"+t,function(n){var r=I(I({},n),{},{componentCls:".".concat(e)});return[BNe(r,t||"inline")]})}var zI=function(t){var n=c.useState(t.collapsed),r=X(n,2),o=r[0],a=r[1],i=c.useState(!1),l=X(i,2),s=l[0],u=l[1];return c.useEffect(function(){u(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:F.jsx(Go,{title:t.title,open:o&&t.collapsed?s:!1,placement:"right",onOpenChange:u,children:t.children})},MF=zj({scriptUrl:pl.iconfontUrl}),HI=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Iw(t)||Wye(t))return F.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return F.jsx(MF,{type:t})}return t},VI=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},HNe=Fn(function e(t){var n=this;Dn(this,e),L(this,"props",void 0),L(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,o,a)}).filter(function(i){return i}).flat(1)}),L(this,"getSubMenuOrItem",function(r,o,a){var i=n.props,l=i.subMenuItemRender,s=i.baseClassName,u=i.prefixCls,d=i.collapsed,f=i.menu,m=i.iconPrefixes,h=i.layout,g=(f==null?void 0:f.type)==="group"&&h!=="top",v=n.props.token,p=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=g&&o===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var C,S,$,x,w,O=o===0||g&&o===1,E=HI(r.icon,m,"".concat(s,"-icon ").concat((C=n.props)===null||C===void 0?void 0:C.hashId)),P=d&&O?VI(p):null,M=F.jsxs("div",{className:Z("".concat(s,"-item-title"),(S=n.props)===null||S===void 0?void 0:S.hashId,L(L(L(L({},"".concat(s,"-item-title-collapsed"),d),"".concat(s,"-item-title-collapsed-level-").concat(a),d),"".concat(s,"-group-item-title"),b==="group"),"".concat(s,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[b==="group"&&d?null:O&&E?F.jsx("span",{className:"".concat(s,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId).trim(),children:E}):P,F.jsx("span",{className:Z("".concat(s,"-item-text"),(x=n.props)===null||x===void 0?void 0:x.hashId,L({},"".concat(s,"-item-text-has-icon"),b!=="group"&&O&&(E||P))),children:p})]}),D=l?l(I(I({},r),{},{isUrl:!1}),M,n.props):M;if(g&&o===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,o+1,o);var R=n.getNavMenuItems(y,o+1,g&&o===0&&n.props.collapsed?o:o+1);return[{type:b,key:r.key||r.path,label:D,onClick:g?void 0:r.onTitleClick,children:R,className:Z(L(L(L({},"".concat(s,"-group"),b==="group"),"".concat(s,"-submenu"),b!=="group"),"".concat(s,"-submenu-has-icon"),b!=="group"&&O&&E))},g&&o===0?{type:"divider",prefixCls:u,className:"".concat(s,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:v==null||(w=v.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(s,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,o,a)}}),L(this,"getIntlName",function(r){var o=r.name,a=r.locale,i=n.props,l=i.menu,s=i.formatMessage;return a&&(l==null?void 0:l.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:o}):o}),L(this,"getMenuItemPath",function(r,o,a){var i,l,s,u,d=n.conversionPath(r.path||"/"),f=n.props,m=f.location,h=m===void 0?{pathname:"/"}:m,g=f.isMobile,v=f.onCollapse,p=f.menuItemRender,y=f.iconPrefixes,b=n.getIntlName(r),C=n.props,S=C.baseClassName,$=C.menu,x=C.collapsed,w=($==null?void 0:$.type)==="group",O=o===0||w&&o===1,E=O?HI(r.icon,y,"".concat(S,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,P=x&&O?VI(b):null,M=F.jsxs("div",{className:Z("".concat(S,"-item-title"),(l=n.props)===null||l===void 0?void 0:l.hashId,L(L(L({},"".concat(S,"-item-title-collapsed"),x),"".concat(S,"-item-title-collapsed-level-").concat(a),x),"".concat(S,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&x)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:P===null&&!E?"none":""},children:E||F.jsx("span",{className:"anticon",children:P})}),F.jsx("span",{className:Z("".concat(S,"-item-text"),(u=n.props)===null||u===void 0?void 0:u.hashId,L({},"".concat(S,"-item-text-has-icon"),O&&(E||P))),children:b})]},d),D=Iw(d);if(D){var R,_,T;M=F.jsxs("span",{onClick:function(){var j,A;(j=window)===null||j===void 0||(A=j.open)===null||A===void 0||A.call(j,d,"_blank")},className:Z("".concat(S,"-item-title"),(R=n.props)===null||R===void 0?void 0:R.hashId,L(L(L(L({},"".concat(S,"-item-title-collapsed"),x),"".concat(S,"-item-title-collapsed-level-").concat(a),x),"".concat(S,"-item-link"),!0),"".concat(S,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&x)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((_=n.props)===null||_===void 0?void 0:_.hashId).trim(),style:{display:P===null&&!E?"none":""},children:E||F.jsx("span",{className:"anticon",children:P})}),F.jsx("span",{className:Z("".concat(S,"-item-text"),(T=n.props)===null||T===void 0?void 0:T.hashId,L({},"".concat(S,"-item-text-has-icon"),O&&(E||P))),children:b})]},d)}if(p){var k=I(I({},r),{},{isUrl:D,itemPath:d,isMobile:g,replace:d===h.pathname,onClick:function(){return v&&v(!0)},children:void 0});return o===0?F.jsx(zI,{collapsed:x,title:b,disable:r.disabledTooltip,children:p(k,M,n.props)}):p(k,M,n.props)}return o===0?F.jsx(zI,{collapsed:x,title:b,disable:r.disabledTooltip,children:M}):M}),L(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),VNe=function(t,n){var r=n.layout,o=n.collapsed,a={};return t&&!o&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},RF=function(t){var n=t.mode,r=t.className,o=t.handleOpenChange,a=t.style,i=t.menuData,l=t.prefixCls,s=t.menu,u=t.matchMenuKeys,d=t.iconfontUrl,f=t.selectedKeys,m=t.onSelect,h=t.menuRenderType,g=t.openKeys,v=c.useContext(Ca),p=v.dark,y=v.token,b="".concat(l,"-base-menu-").concat(n),C=c.useRef([]),S=Pt(s==null?void 0:s.defaultOpenAll),$=X(S,2),x=$[0],w=$[1],O=Pt(function(){return s!=null&&s.defaultOpenAll?AI(i)||[]:g===!1?!1:[]},{value:g===!1?void 0:g,onChange:o}),E=X(O,2),P=E[0],M=E[1],D=Pt([],{value:f,onChange:m?function(H){m&&H&&m(H)}:void 0}),R=X(D,2),_=R[0],T=R[1];c.useEffect(function(){s!=null&&s.defaultOpenAll||g===!1||u&&(M(u),T(u))},[u.join("-")]),c.useEffect(function(){d&&(MF=zj({scriptUrl:d}))},[d]),c.useEffect(function(){if(u.join("-")!==(_||[]).join("-")&&T(u),!x&&g!==!1&&u.join("-")!==(P||[]).join("-")){var H=u;(s==null?void 0:s.autoClose)===!1&&(H=Array.from(new Set([].concat(Te(u),Te(P||[]))))),M(H)}else s!=null&&s.ignoreFlatMenu&&x?M(AI(i)):w(!1)},[u.join("-")]);var k=c.useMemo(function(){return VNe(P,t)},[P&&P.join(","),t.layout,t.collapsed]),N=zNe(b,n),j=N.wrapSSR,A=N.hashId,B=c.useMemo(function(){return new HNe(I(I({},t),{},{token:y,menuRenderType:h,baseClassName:b,hashId:A}))},[t,y,h,b,A]);if(s!=null&&s.loading)return F.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:F.jsx(Cne,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(C.current=u);var z=t.postMenuData?t.postMenuData(i):i;return z&&(z==null?void 0:z.length)<1?null:j(c.createElement(T2,I(I({},k),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:C.current,theme:p?"dark":"light",selectedKeys:_,style:I({backgroundColor:"transparent",border:"none"},a),className:Z(r,A,b,L(L({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:B.getNavMenuItems(z,0,0),onOpenChange:function(V){t.collapsed||M(V)}},t.menuProps)))};function WNe(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return un("ProLayoutSiderMenuStylish",function(o){var a=I(I({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[L({},"div".concat(o.proComponentsCls,"-layout"),L({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var KNe=["title","render"],UNe=W.memo(function(e){return F.jsx(F.Fragment,{children:e.children})}),GNe=ms.Sider,WI=ms._InternalSiderContext,qNe=WI===void 0?{Provider:UNe}:WI,f$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,o=t.title,a=t.layout,i=t[n];if(i===!1)return null;var l=u$(r),s=F.jsx("h1",{children:o??"Ant Design Pro"});return i?i(l,t.collapsed?null:s,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?F.jsx("a",{children:l},"title"):F.jsxs("a",{children:[l,s]},"title")},KI=function(t){var n,r=t.collapsed,o=t.originCollapsed,a=t.fixSiderbar,i=t.menuFooterRender,l=t.onCollapse,s=t.theme,u=t.siderWidth,d=t.isMobile,f=t.onMenuHeaderClick,m=t.breakpoint,h=m===void 0?"lg":m,g=t.style,v=t.layout,p=t.menuExtraRender,y=p===void 0?!1:p,b=t.links,C=t.menuContentRender,S=t.collapsedButtonRender,$=t.prefixCls,x=t.avatarProps,w=t.rightContentRender,O=t.actionsRender,E=t.onOpenChange,P=t.stylish,M=t.logoStyle,D=c.useContext(Ca),R=D.hashId,_=c.useMemo(function(){return!(d||v==="mix")},[d,v]),T="".concat($,"-sider"),k=64,N=WNe("".concat(T,".").concat(T,"-stylish"),{stylish:P,proLayoutCollapsedWidth:k}),j=Z("".concat(T),R,L(L(L(L(L(L(L({},"".concat(T,"-fixed"),a),"".concat(T,"-fixed-mix"),v==="mix"&&!d&&a),"".concat(T,"-collapsed"),t.collapsed),"".concat(T,"-layout-").concat(v),v&&!d),"".concat(T,"-light"),s!=="dark"),"".concat(T,"-mix"),v==="mix"&&!d),"".concat(T,"-stylish"),!!P)),A=f$(t),B=y&&y(t),z=c.useMemo(function(){return C!==!1&&c.createElement(RF,I(I({},t),{},{key:"base-menu",mode:r&&!d?"vertical":"inline",handleOpenChange:E,style:{width:"100%"},className:"".concat(T,"-menu ").concat(R).trim()}))},[T,R,C,E,t]),H=(b||[]).map(function(re,oe){return{className:"".concat(T,"-link"),label:re,key:oe}}),V=c.useMemo(function(){return C?C(t,z):z},[C,z,t]),U=c.useMemo(function(){if(!x)return null;var re=x.title,oe=x.render,te=ze(x,KNe),ee=F.jsxs("div",{className:"".concat(T,"-actions-avatar"),children:[te!=null&&te.src||te!=null&&te.srcSet||te.icon||te.children?F.jsx(Gh,I({size:28},te)):null,x.title&&!r&&F.jsx("span",{children:re})]});return oe?oe(x,ee,t):ee},[x,T,r]),K=c.useMemo(function(){return O?F.jsx(hi,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Z(["".concat(T,"-actions-list"),r&&"".concat(T,"-actions-list-collapsed"),R]),children:[O==null?void 0:O(t)].flat(1).map(function(re,oe){return F.jsx("div",{className:"".concat(T,"-actions-list-item ").concat(R).trim(),children:re},oe)})}):null},[O,T,r]),Y=c.useMemo(function(){return F.jsx(d$,{onItemClick:t.itemClick,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.prefixCls]),G=c.useMemo(function(){if(S===!1)return null;var re=F.jsx(ANe,{isMobile:d,collapsed:o,className:"".concat(T,"-collapsed-button"),onClick:function(){l==null||l(!o)}});return S?S(r,re):re},[S,d,o,T,r,l]),q=c.useMemo(function(){return!U&&!K?null:F.jsxs("div",{className:Z("".concat(T,"-actions"),R,r&&"".concat(T,"-actions-collapsed")),children:[U,K]})},[K,U,T,r,R]),J=c.useMemo(function(){var re;return t!=null&&(re=t.menu)!==null&&re!==void 0&&re.hideMenuWhenCollapsed&&r?"".concat(T,"-hide-menu-collapsed"):null},[T,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),Q=i&&(i==null?void 0:i(t)),ne=F.jsxs(F.Fragment,{children:[A&&F.jsxs("div",{className:Z([Z("".concat(T,"-logo"),R,L({},"".concat(T,"-logo-collapsed"),r))]),onClick:_?f:void 0,id:"logo",style:M,children:[A,Y]}),B&&F.jsx("div",{className:Z(["".concat(T,"-extra"),!A&&"".concat(T,"-extra-no-logo"),R]),children:B}),F.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:V}),F.jsxs(qNe.Provider,{value:{},children:[b?F.jsx("div",{className:"".concat(T,"-links ").concat(R).trim(),children:F.jsx(T2,{inlineIndent:16,className:"".concat(T,"-link-menu ").concat(R).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:H})}):null,_&&F.jsxs(F.Fragment,{children:[q,!K&&w?F.jsx("div",{className:Z("".concat(T,"-actions"),R,L({},"".concat(T,"-actions-collapsed"),r)),children:w==null?void 0:w(t)}):null]}),Q&&F.jsx("div",{className:Z(["".concat(T,"-footer"),R,L({},"".concat(T,"-footer-collapsed"),r)]),children:Q})]})]});return N.wrapSSR(F.jsxs(F.Fragment,{children:[a&&!d&&!J&&F.jsx("div",{style:I({width:r?k:u,overflow:"hidden",flex:"0 0 ".concat(r?k:u,"px"),maxWidth:r?k:u,minWidth:r?k:u,transition:"all 0.2s ease 0s"},g)}),F.jsxs(GNe,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(oe){d||l==null||l(oe)},collapsedWidth:k,style:g,theme:s,width:u,className:Z(j,R,J),children:[J?F.jsx("div",{className:"".concat(T,"-hide-when-collapsed ").concat(R).trim(),style:{height:"100%",width:"100%",opacity:J?0:1},children:ne}):ne,G]})]}))},YNe=function(t){var n,r,o,a,i;return L({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}}}})};function XNe(e){return un("ProLayoutRightContent",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[YNe(n)]})}var QNe=["rightContentRender","avatarProps","actionsRender","headerContentRender"],ZNe=["title","render"],_F=function(t){var n=t.rightContentRender,r=t.avatarProps,o=t.actionsRender;t.headerContentRender;var a=ze(t,QNe),i=c.useContext(bt.ConfigContext),l=i.getPrefixCls,s="".concat(l(),"-pro-global-header"),u=XNe(s),d=u.wrapSSR,f=u.hashId,m=c.useState("auto"),h=X(m,2),g=h[0],v=h[1],p=c.useMemo(function(){if(!r)return null;var S=r.title,$=r.render,x=ze(r,ZNe),w=[x!=null&&x.src||x!=null&&x.srcSet||x.icon||x.children?c.createElement(Gh,I(I({},x),{},{size:28,key:"avatar"})):null,S?F.jsx("span",{style:{marginInlineStart:8},children:S},"name"):void 0];return $?$(r,F.jsx("div",{children:w}),a):F.jsx("div",{children:w})},[r]),y=o||p?function(S){var $=o&&(o==null?void 0:o(S));return!$&&!p?null:Array.isArray($)?d(F.jsxs("div",{className:"".concat(s,"-header-actions ").concat(f).trim(),children:[$.filter(Boolean).map(function(x,w){var O=!1;if(W.isValidElement(x)){var E;O=!!(x!=null&&(E=x.props)!==null&&E!==void 0&&E["aria-hidden"])}return F.jsx("div",{className:Z("".concat(s,"-header-actions-item ").concat(f),L({},"".concat(s,"-header-actions-hover"),!O)),children:x},w)}),p&&F.jsx("span",{className:"".concat(s,"-header-actions-avatar ").concat(f).trim(),children:p})]})):d(F.jsxs("div",{className:"".concat(s,"-header-actions ").concat(f).trim(),children:[$,p&&F.jsx("span",{className:"".concat(s,"-header-actions-avatar ").concat(f).trim(),children:p})]}))}:void 0,b=jye(function(){var S=Tr(an().mark(function $(x){return an().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:v(x);case 1:case"end":return O.stop()}},$)}));return function($){return S.apply(this,arguments)}}(),160),C=y||n;return F.jsx("div",{className:"".concat(s,"-right-content ").concat(f).trim(),style:{minWidth:g,height:"100%"},children:F.jsx("div",{style:{height:"100%"},children:F.jsx(Sr,{onResize:function($){var x=$.width;b.run(x)},children:C?F.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:C(I(I({},a),{},{rightContentSize:g}))}):null})})})},JNe=function(t){var n,r;return L({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":L({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function e7e(e){return un("ProLayoutTopNavHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[JNe(n)]})}var TF=function(t){var n,r,o,a,i,l,s,u=c.useRef(null),d=t.onMenuHeaderClick,f=t.contentWidth,m=t.rightContentRender,h=t.className,g=t.style,v=t.headerContentRender,p=t.layout,y=t.actionsRender,b=c.useContext(bt.ConfigContext),C=b.getPrefixCls,S=c.useContext(Ca),$=S.dark,x="".concat(t.prefixCls||C("pro"),"-top-nav-header"),w=e7e(x),O=w.wrapSSR,E=w.hashId,P=void 0;t.menuHeaderRender!==void 0?P="menuHeaderRender":(p==="mix"||p==="top")&&(P="headerTitleRender");var M=f$(I(I({},t),{},{collapsed:!1}),P),D=c.useContext(Ca),R=D.token,_=c.useMemo(function(){var T,k,N,j,A,B,z,H,V,U,K,Y,G,q=F.jsx(bt,{theme:{hashed:Tc(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:I({},Uj({colorItemBg:((T=R.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorBgHeader)||"transparent",colorSubItemBg:((k=R.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgHeader)||"transparent",radiusItem:R.borderRadius,colorItemBgSelected:((N=R.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(R==null?void 0:R.colorBgTextHover),itemHoverBg:((j=R.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgMenuItemHover)||(R==null?void 0:R.colorBgTextHover),colorItemBgSelectedHorizontal:((A=R.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgMenuItemSelected)||(R==null?void 0:R.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((B=R.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenu)||(R==null?void 0:R.colorTextSecondary),colorItemTextHoverHorizontal:((z=R.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive)||(R==null?void 0:R.colorText),colorItemTextSelectedHorizontal:((H=R.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuSelected)||(R==null?void 0:R.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((V=R.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((U=R.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((K=R.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:R==null?void 0:R.colorBgElevated,subMenuItemBg:R==null?void 0:R.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:R==null?void 0:R.colorBgElevated}))},token:{colorBgElevated:((Y=R.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgHeader)||"transparent"}},children:F.jsx(RF,I(I(I({theme:$?"dark":"light"},t),{},{className:"".concat(x,"-base-menu ").concat(E).trim()},t.menuProps),{},{style:I({width:"100%"},(G=t.menuProps)===null||G===void 0?void 0:G.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(t,q):q},[(n=R.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=R.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(o=R.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(a=R.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(i=R.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenuActive,(l=R.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(s=R.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorBgMenuElevated,R.borderRadius,R==null?void 0:R.colorBgTextHover,R==null?void 0:R.colorTextSecondary,R==null?void 0:R.colorText,R==null?void 0:R.colorTextBase,R.colorBgElevated,$,t,x,E,v]);return O(F.jsx("div",{className:Z(x,E,h,L({},"".concat(x,"-light"),!0)),style:g,children:F.jsxs("div",{ref:u,className:Z("".concat(x,"-main"),E,L({},"".concat(x,"-wide"),f==="Fixed"&&p==="top")),children:[M&&F.jsxs("div",{className:Z("".concat(x,"-main-left ").concat(E)),onClick:d,children:[F.jsx(d$,I({},t)),F.jsx("div",{className:"".concat(x,"-logo ").concat(E).trim(),id:"logo",children:M},"logo")]}),F.jsx("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(E).trim(),children:_}),(m||y||t.avatarProps)&&F.jsx(_F,I(I({rightContentRender:m},t),{},{prefixCls:x}))]})}))},t7e=function(t){var n,r,o;return L({},t.componentCls,L(L(L(L({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function n7e(e){return un("ProLayoutGlobalHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[t7e(n)]})}var r7e=function(t,n){return t===!1?null:t?t(n,null):n},o7e=function(t){var n=t.isMobile,r=t.logo,o=t.collapsed,a=t.onCollapse,i=t.rightContentRender,l=t.menuHeaderRender,s=t.onMenuHeaderClick,u=t.className,d=t.style,f=t.layout,m=t.children,h=t.splitMenus,g=t.menuData,v=t.prefixCls,p=c.useContext(bt.ConfigContext),y=p.getPrefixCls,b=p.direction,C="".concat(v||y("pro"),"-global-header"),S=n7e(C),$=S.wrapSSR,x=S.hashId,w=Z(u,C,x);if(f==="mix"&&!n&&h){var O=(g||[]).map(function(D){return I(I({},D),{},{children:void 0,routes:void 0})}),E=H0(O);return F.jsx(TF,I(I({mode:"horizontal"},t),{},{splitMenus:!1,menuData:E}))}var P=Z("".concat(C,"-logo"),x,L(L(L({},"".concat(C,"-logo-rtl"),b==="rtl"),"".concat(C,"-logo-mix"),f==="mix"),"".concat(C,"-logo-mobile"),n)),M=F.jsx("span",{className:P,children:F.jsx("a",{children:u$(r)})},"logo");return $(F.jsxs("div",{className:w,style:I({},d),children:[n&&F.jsx("span",{className:"".concat(C,"-collapsed-button ").concat(x).trim(),onClick:function(){a==null||a(!o)},children:F.jsx(E0e,{})}),n&&r7e(l,M),f==="mix"&&!n&&F.jsxs(F.Fragment,{children:[F.jsx(d$,I({},t)),F.jsx("div",{className:P,onClick:s,children:f$(I(I({},t),{},{collapsed:!1}),"headerTitleRender")})]}),F.jsx("div",{style:{flex:1},children:m}),(i||t.actionsRender||t.avatarProps)&&F.jsx(_F,I({rightContentRender:i},t))]}))},a7e=function(t){var n,r,o,a;return L({},"".concat(t.proComponentsCls,"-layout"),L({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function i7e(e){return un("ProLayoutHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[a7e(n)]})}function l7e(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return un("ProLayoutHeaderStylish",function(o){var a=I(I({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[L({},"div".concat(o.proComponentsCls,"-layout"),L({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var UI=ms.Header,s7e=function(t){var n,r,o,a=t.isMobile,i=t.fixedHeader,l=t.className,s=t.style,u=t.collapsed,d=t.prefixCls,f=t.onCollapse,m=t.layout,h=t.headerRender,g=t.headerContentRender,v=c.useContext(Ca),p=v.token,y=c.useContext(bt.ConfigContext),b=c.useState(!1),C=X(b,2),S=C[0],$=C[1],x=i||m==="mix",w=c.useCallback(function(){var T=m==="top",k=H0(t.menuData||[]),N=F.jsx(o7e,I(I({onCollapse:f},t),{},{menuData:k,children:g&&g(t,null)}));return T&&!a&&(N=F.jsx(TF,I(I({mode:"horizontal",onCollapse:f},t),{},{menuData:k}))),h&&typeof h=="function"?h(t,N):N},[g,h,a,m,f,t]);c.useEffect(function(){var T,k=(y==null||(T=y.getTargetContainer)===null||T===void 0?void 0:T.call(y))||document.body,N=function(){var A,B=k.scrollTop;return B>(((A=p.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.heightLayoutHeader)||56)&&!S?($(!0),!0):(S&&$(!1),!1)};if(x&&!(typeof window>"u"))return k.addEventListener("scroll",N,{passive:!0}),function(){k.removeEventListener("scroll",N)}},[(n=p.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,x,S]);var O=m==="top",E="".concat(d,"-layout-header"),P=i7e(E),M=P.wrapSSR,D=P.hashId,R=l7e("".concat(E,".").concat(E,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),_=Z(l,D,E,L(L(L(L(L(L(L({},"".concat(E,"-fixed-header"),x),"".concat(E,"-fixed-header-scroll"),S),"".concat(E,"-mix"),m==="mix"),"".concat(E,"-fixed-header-action"),!u),"".concat(E,"-top-menu"),O),"".concat(E,"-header"),!0),"".concat(E,"-stylish"),!!t.stylish));return m==="side"&&!a?null:R.wrapSSR(M(F.jsx(F.Fragment,{children:F.jsxs(bt,{theme:{hashed:Tc(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[x&&F.jsx(UI,{style:I({height:((r=p.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((o=p.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),F.jsx(UI,{className:_,style:s,children:w()})]})})))};const c7e={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},u7e=I({},c7e),d7e={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},f7e=I({},d7e),m7e={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},v7e=I({},m7e),g7e={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},p7e=I({},g7e),h7e={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},y7e=I({},h7e);var GI={"zh-CN":p7e,"zh-TW":y7e,"en-US":u7e,"it-IT":f7e,"ko-KR":v7e},yg=function(){if(!gl())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},NF=function(){var t=yg();return GI[t]||GI["zh-CN"]},jb=function(t){var n=t.value,r=t.configType,o=t.onChange,a=t.list,i=t.prefixCls,l=t.hashId,s="".concat(i,"-block-checkbox"),u=c.useMemo(function(){var d=(a||[]).map(function(f){return F.jsx(Go,{title:f.title,children:F.jsxs("div",{className:Z(l,"".concat(s,"-item"),"".concat(s,"-item-").concat(f.key),"".concat(s,"-").concat(r,"-item")),onClick:function(){return o(f.key)},children:[F.jsx(zh,{className:"".concat(s,"-selectIcon ").concat(l).trim(),style:{display:n===f.key?"block":"none"}}),f!=null&&f.icon?F.jsx("div",{className:"".concat(s,"-icon ").concat(l).trim(),children:f.icon}):null]})},f.key)});return d},[n,a==null?void 0:a.length,o]);return F.jsx("div",{className:Z(s,l),children:u})},m$=function(t){var n=W.cloneElement(t.action,{disabled:t.disabled});return F.jsx(Go,{title:t.disabled?t.disabledReason:"",placement:"left",children:F.jsx(wm.Item,{actions:[n],children:F.jsx("span",{style:{opacity:t.disabled?.5:1},children:t.title})})})},b7e=function(t){var n=t.settings,r=t.prefixCls,o=t.changeSetting,a=t.hashId,i=v$(),l=n||pl,s=l.contentWidth,u=l.splitMenus,d=l.fixedHeader,f=l.layout,m=l.fixSiderbar;return F.jsx(wm,{className:"".concat(r,"-list ").concat(a).trim(),split:!1,dataSource:[{title:i({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:F.jsxs(Ta,{value:s||"Fixed",size:"small",className:"content-width ".concat(a).trim(),onSelect:function(g){o("contentWidth",g)},style:{width:80},children:[f==="side"?null:F.jsx(Ta.Option,{value:"Fixed",children:i({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),F.jsx(Ta.Option,{value:"Fluid",children:i({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:i({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:F.jsx(Mc,{size:"small",className:"fixed-header",checked:!!d,onChange:function(g){o("fixedHeader",g)}})},{title:i({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:f==="top",disabledReason:i({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:F.jsx(Mc,{size:"small",className:"fix-siderbar",checked:!!m,onChange:function(g){return o("fixSiderbar",g)}})},{title:i({id:"app.setting.splitMenus"}),disabled:f!=="mix",action:F.jsx(Mc,{size:"small",checked:!!u,className:"split-menus",onChange:function(g){o("splitMenus",g)}})}],renderItem:m$})},C7e=function(t){var n=t.settings,r=t.prefixCls,o=t.changeSetting,a=t.hashId,i=v$(),l=["header","footer","menu","menuHeader"];return F.jsx(wm,{className:"".concat(r,"-list ").concat(a).trim(),split:!1,renderItem:m$,dataSource:l.map(function(s){return{title:i({id:"app.setting.regionalsettings.".concat(s)}),action:F.jsx(Mc,{size:"small",className:"regional-".concat(s," ").concat(a).trim(),checked:n["".concat(s,"Render")]||n["".concat(s,"Render")]===void 0,onChange:function(d){return o("".concat(s,"Render"),d===!0?void 0:!1)}})}})})},S7e=["color","check"],x7e=W.forwardRef(function(e,t){var n=e.color,r=e.check,o=ze(e,S7e);return F.jsx("div",I(I({},o),{},{style:{backgroundColor:n},ref:t,children:r?F.jsx(zh,{}):""}))}),w7e=function(t){var n=t.value,r=t.colorList,o=t.onChange,a=t.prefixCls,i=t.formatMessage,l=t.hashId;if(!r||(r==null?void 0:r.length)<1)return null;var s="".concat(a,"-theme-color");return F.jsx("div",{className:"".concat(s," ").concat(l).trim(),children:r==null?void 0:r.map(function(u){var d=u.key,f=u.color,m=u.title;return d?F.jsx(Go,{title:m??i({id:"app.setting.themecolor.".concat(d)}),children:F.jsx(x7e,{className:"".concat(s,"-block ").concat(l).trim(),color:f,check:n===f,onClick:function(){return o&&o(f)}})},f):null})})};function $7e(){return F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[F.jsxs("defs",{children:[F.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),F.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[F.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),F.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),F.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),F.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),F.jsxs("feMerge",{children:[F.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),F.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[F.jsxs("g",{children:[F.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),F.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),F.jsx("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),F.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),F.jsx("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),F.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function E7e(){return F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[F.jsxs("defs",{children:[F.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),F.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[F.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),F.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),F.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),F.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),F.jsxs("feMerge",{children:[F.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),F.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[F.jsxs("g",{children:[F.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),F.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),F.jsx("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),F.jsx("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),F.jsx("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var P7e=function(t){return L(L({},"".concat(t.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:t.colorPrimary,borderEndStartRadius:t.borderRadiusLG,borderStartStartRadius:t.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),t.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:t.colorText},"&-body-title":{marginBlock:t.marginXS,fontSize:"14px",lineHeight:"22px",color:t.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:t.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:t.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:t.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t.colorBgContainer}},"&-top":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:t.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:t.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:t.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":L({},"li".concat(t.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function O7e(e){return un("ProLayoutSettingDrawer",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[P7e(n)]})}var Gs=function(t){var n=t.children,r=t.hashId,o=t.prefixCls,a=t.title;return F.jsxs("div",{style:{marginBlockEnd:12},children:[F.jsx("h3",{className:"".concat(o,"-body-title ").concat(r).trim(),children:a}),n]})},I7e=function(t){var n={};return Object.keys(t).forEach(function(r){t[r]!==pl[r]&&r!=="collapse"?n[r]=t[r]:n[r]=void 0,r.includes("Render")&&(n[r]=t[r]===!1?!1:void 0)}),n.menu=void 0,n},v$=function(){var t=function(r){var o=r.id,a=NF();return a[o]};return t},M7e=function(t,n,r){if(gl()){var o={};Object.keys(t).forEach(function(i){if(pl[i]||pl[i]===void 0){if(i==="colorPrimary"){o[i]=IF(t[i]);return}o[i]=t[i]}});var a=Mw({},n,o);delete a.menu,delete a.title,delete a.iconfontUrl,r==null||r(a)}},qI=function(t,n){return gl()?I(I(I({},pl),n||{}),t):pl},R7e=function(t){return JSON.stringify(so(I(I({},t),{},{colorPrimary:t.colorPrimary}),["colorWeak"]),null,2)},_7e=function(t){var n=t.defaultSettings,r=n===void 0?void 0:n,o=t.settings,a=o===void 0?void 0:o,i=t.hideHintAlert,l=t.hideCopyButton,s=t.colorList,u=s===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:s,d=t.getContainer,f=t.onSettingChange,m=t.enableDarkTheme,h=t.prefixCls,g=h===void 0?"ant-pro":h,v=t.pathname,p=v===void 0?window.location.pathname:v,y=t.disableUrlParams,b=y===void 0?!0:y,C=t.themeOnly,S=c.useRef(!0),$=Pt(!1,{value:t.collapse,onChange:t.onCollapseChange}),x=X($,2),w=x[0],O=x[1],E=c.useState(yg()),P=X(E,2),M=P[0],D=P[1],R=Xj({},{disabled:b}),_=X(R,2),T=_[0],k=_[1],N=Pt(function(){return qI(T,a||r)},{value:a,onChange:f}),j=X(N,2),A=j[0],B=j[1],z=A||{},H=z.navTheme,V=z.colorPrimary,U=z.siderMenuType,K=z.layout,Y=z.colorWeak;c.useEffect(function(){var te=function(){M!==yg()&&D(yg())};return gl()?(M7e(qI(T,a),A,B),window.document.addEventListener("languagechange",te,{passive:!0}),function(){return window.document.removeEventListener("languagechange",te)}):function(){return null}},[]),c.useEffect(function(){Es(pa,"5.0.0")<0&&bt.config({theme:{primaryColor:A.colorPrimary}})},[A.colorPrimary,A.navTheme]);var G=function(ee,ie){var de={};if(de[ee]=ie,ee==="layout"&&(de.contentWidth=ie==="top"?"Fixed":"Fluid"),ee==="layout"&&ie!=="mix"&&(de.splitMenus=!1),ee==="layout"&&ie==="mix"&&(de.navTheme="light"),ee==="colorWeak"&&ie===!0){var he=document.querySelector("body");he&&(he.dataset.prosettingdrawer=he.style.filter,he.style.filter="invert(80%)")}if(ee==="colorWeak"&&ie===!1){var fe=document.querySelector("body");fe&&(fe.style.filter=fe.dataset.prosettingdrawer||"none",delete fe.dataset.prosettingdrawer)}delete de.menu,delete de.title,delete de.iconfontUrl,delete de.logo,delete de.pwa,B(I(I({},A),de))},q=v$();c.useEffect(function(){if(gl()&&!b){if(S.current){S.current=!1;return}var te=new URLSearchParams(window.location.search),ee=Object.fromEntries(te.entries()),ie=I7e(I(I({},ee),A));delete ie.logo,delete ie.menu,delete ie.title,delete ie.iconfontUrl,delete ie.pwa,k(ie)}},[k,A,T,p,b]);var J="".concat(g,"-setting-drawer"),Q=O7e(J),ne=Q.wrapSSR,re=Q.hashId,oe=Rm(w);return ne(F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"".concat(J,"-handle ").concat(re).trim(),onClick:function(){return O(!w)},style:{width:48,height:48},children:w?F.jsx(xa,{style:{color:"#fff",fontSize:20}}):F.jsx(X0e,{style:{color:"#fff",fontSize:20}})}),F.jsx(f9,I(I({},oe),{},{width:300,onClose:function(){return O(!1)},closable:!1,placement:"right",getContainer:d,style:{zIndex:999},children:F.jsxs("div",{className:"".concat(J,"-drawer-content ").concat(re).trim(),children:[F.jsx(Gs,{title:q({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:re,prefixCls:J,children:F.jsx(jb,{hashId:re,prefixCls:J,list:[{key:"light",title:q({id:"app.setting.pagestyle.light",defaultMessage:"亮色菜单风格"})},{key:"realDark",title:q({id:"app.setting.pagestyle.realdark",defaultMessage:"暗色菜单风格"})}].filter(function(te){return!(te.key==="dark"&&A.layout==="mix"||te.key==="realDark"&&!m)}),value:H,configType:"theme",onChange:function(ee){return G("navTheme",ee)}},"navTheme")}),u!==!1&&F.jsx(Gs,{hashId:re,title:q({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:J,children:F.jsx(w7e,{hashId:re,prefixCls:J,colorList:u,value:IF(V),formatMessage:q,onChange:function(ee){return G("colorPrimary",ee)}})}),!C&&F.jsxs(F.Fragment,{children:[F.jsx(mc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.navigationmode"}),children:F.jsx(jb,{prefixCls:J,value:K,hashId:re,configType:"layout",list:[{key:"side",title:q({id:"app.setting.sidemenu"})},{key:"top",title:q({id:"app.setting.topmenu"})},{key:"mix",title:q({id:"app.setting.mixmenu"})}],onChange:function(ee){return G("layout",ee)}},"layout")}),A.layout=="side"||A.layout=="mix"?F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.sidermenutype"}),children:F.jsx(jb,{prefixCls:J,value:U,hashId:re,configType:"siderMenuType",list:[{key:"sub",icon:F.jsx(E7e,{}),title:q({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:F.jsx($7e,{}),title:q({id:"app.setting.sidermenutype-group"})}],onChange:function(ee){return G("siderMenuType",ee)}},"siderMenuType")}):null,F.jsx(b7e,{prefixCls:J,hashId:re,settings:A,changeSetting:G}),F.jsx(mc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.regionalsettings"}),children:F.jsx(C7e,{hashId:re,prefixCls:J,settings:A,changeSetting:G})}),F.jsx(mc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.othersettings"}),children:F.jsx(wm,{className:"".concat(J,"-list ").concat(re).trim(),split:!1,size:"small",renderItem:m$,dataSource:[{title:q({id:"app.setting.weakmode"}),action:F.jsx(Mc,{size:"small",className:"color-weak",checked:!!Y,onChange:function(ee){G("colorWeak",ee)}})}]})}),i&&l?null:F.jsx(mc,{}),i?null:F.jsx(wW,{type:"warning",message:q({id:"app.setting.production.hint"}),icon:F.jsx(D0e,{}),showIcon:!0,style:{marginBlockEnd:16}}),l?null:F.jsx(Nr,{block:!0,icon:F.jsx(wve,{}),style:{marginBlockEnd:24},onClick:Tr(an().mark(function te(){return an().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.prev=0,ie.next=3,navigator.clipboard.writeText(R7e(A));case 3:_ue.success(q({id:"app.setting.copyinfo"})),ie.next=8;break;case 6:ie.prev=6,ie.t0=ie.catch(0);case 8:case"end":return ie.stop()}},te,null,[[0,6]])})),children:q({id:"app.setting.copy"})})]})]})}))]}))},Vu={exports:{}};Vu.exports=AF;Vu.exports.parse=g$;Vu.exports.compile=N7e;Vu.exports.tokensToFunction=FF;Vu.exports.tokensToRegExp=LF;var jF="/",DF="./",T7e=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function g$(e,t){for(var n=[],r=0,o=0,a="",i=t&&t.delimiter||jF,l=t&&t.delimiters||DF,s=!1,u;(u=T7e.exec(e))!==null;){var d=u[0],f=u[1],m=u.index;if(a+=e.slice(o,m),o=m+d.length,f){a+=f[1],s=!0;continue}var h="",g=e[o],v=u[2],p=u[3],y=u[4],b=u[5];if(!s&&a.length){var C=a.length-1;l.indexOf(a[C])>-1&&(h=a[C],a=a.slice(0,C))}a&&(n.push(a),a="",s=!1);var S=h!==""&&g!==void 0&&g!==h,$=b==="+"||b==="*",x=b==="?"||b==="*",w=h||i,O=p||y;n.push({name:v||r++,prefix:h,delimiter:w,optional:x,repeat:$,partial:S,pattern:O?j7e(O):"[^"+Di(w)+"]+?"})}return(a||o-1;else{var h=m.repeat?"(?:"+m.pattern+")(?:"+Di(m.delimiter)+"(?:"+m.pattern+"))*":m.pattern;t&&t.push(m),m.optional?m.partial?u+=Di(m.prefix)+"("+h+")?":u+="(?:"+Di(m.prefix)+"("+h+"))?":u+=Di(m.prefix)+"("+h+")"}}return a?(r||(u+="(?:"+i+")?"),u+=s==="$"?"$":"(?="+s+")"):(r||(u+="(?:"+i+"(?="+s+"))?"),d||(u+="(?="+i+"|"+s+")")),new RegExp(u,kF(n))}function AF(e,t,n){return e instanceof RegExp?D7e(e,t):Array.isArray(e)?F7e(e,t,n):k7e(e,t,n)}var L7e=Vu.exports;const PS=jn(L7e);var A7e=function(t,n,r){if(r){var o=Te(r.keys()).find(function(i){return PS(i).test(t)});if(o)return r.get(o)}if(n){var a=Object.keys(n).find(function(i){return PS(i).test(t)});if(a)return n[a]}return{path:""}},YI=function(t,n){var r=t.pathname,o=r===void 0?"/":r,a=t.breadcrumb,i=t.breadcrumbMap,l=t.formatMessage,s=t.title,u=t.menu,d=u===void 0?{locale:!1}:u,f=n?"":s||"",m=A7e(o,a,i);if(!m)return{title:f,id:"",pageName:f};var h=m.name;return d.locale!==!1&&m.locale&&l&&(h=l({id:m.locale||"",defaultMessage:m.name})),h?n||!s?{title:h,id:m.locale||"",pageName:h}:{title:"".concat(h," - ").concat(s),id:m.locale||"",pageName:h}:{title:f,id:m.locale||"",pageName:f}},Gr={};function OS(e){"@babel/helpers - typeof";return OS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OS(e)}Object.defineProperty(Gr,"__esModule",{value:!0});var tf=Gr.pathToRegexp=Gr.tokensToRegexp=Gr.regexpToFunction=Gr.match=Gr.tokensToFunction=Gr.compile=Gr.parse=void 0;function B7e(e){for(var t=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){o+=e[a++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=a;continue}if(r==="("){var l=1,s="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:S===void 0;o||(h+="(?:"+m+"(?="+f+"))?"),$||(h+="(?="+m+"|"+f+")")}return new RegExp(h,h$(n))}Gr.tokensToRegexp=HF;function y$(e,t,n){return e instanceof RegExp?V7e(e,t):Array.isArray(e)?W7e(e,t,n):K7e(e,t,n)}tf=Gr.pathToRegexp=y$;function Na(e,t){return t>>>e|t<<32-e}function U7e(e,t,n){return e&t^~e&n}function G7e(e,t,n){return e&t^e&n^t&n}function q7e(e){return Na(2,e)^Na(13,e)^Na(22,e)}function Y7e(e){return Na(6,e)^Na(11,e)^Na(25,e)}function X7e(e){return Na(7,e)^Na(18,e)^e>>>3}function Q7e(e){return Na(17,e)^Na(19,e)^e>>>10}function Z7e(e,t){return e[t&15]+=Q7e(e[t+14&15])+e[t+9&15]+X7e(e[t+1&15])}var J7e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],In,Lr,fr,e9e="0123456789abcdef";function XI(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function t9e(){In=new Array(8),Lr=new Array(2),fr=new Array(64),Lr[0]=Lr[1]=0,In[0]=1779033703,In[1]=3144134277,In[2]=1013904242,In[3]=2773480762,In[4]=1359893119,In[5]=2600822924,In[6]=528734635,In[7]=1541459225}function IS(){var e,t,n,r,o,a,i,l,s,u,d=new Array(16);e=In[0],t=In[1],n=In[2],r=In[3],o=In[4],a=In[5],i=In[6],l=In[7];for(var f=0;f<16;f++)d[f]=fr[(f<<2)+3]|fr[(f<<2)+2]<<8|fr[(f<<2)+1]<<16|fr[f<<2]<<24;for(var m=0;m<64;m++)s=l+Y7e(o)+U7e(o,a,i)+J7e[m],m<16?s+=d[m]:s+=Z7e(d,m),u=q7e(e)+G7e(e,t,n),l=i,i=a,a=o,o=XI(r,s),r=n,n=t,t=e,e=XI(s,u);In[0]+=e,In[1]+=t,In[2]+=n,In[3]+=r,In[4]+=o,In[5]+=a,In[6]+=i,In[7]+=l}function n9e(e,t){var n,r,o=0;r=Lr[0]>>3&63;var a=t&63;for((Lr[0]+=t<<3)>29,n=0;n+63>3&63;if(fr[e++]=128,e<=56)for(var t=e;t<56;t++)fr[t]=0;else{for(var n=e;n<64;n++)fr[n]=0;IS();for(var r=0;r<56;r++)fr[r]=0}fr[56]=Lr[1]>>>24&255,fr[57]=Lr[1]>>>16&255,fr[58]=Lr[1]>>>8&255,fr[59]=Lr[1]&255,fr[60]=Lr[0]>>>24&255,fr[61]=Lr[0]>>>16&255,fr[62]=Lr[0]>>>8&255,fr[63]=Lr[0]&255,IS()}function o9e(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=e9e.charAt(In[t]>>>n&15);return e}function a9e(e){return t9e(),n9e(e,e.length),r9e(),o9e()}function MS(e){"@babel/helpers - typeof";return MS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MS(e)}var i9e=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function l9e(e,t){return u9e(e)||c9e(e,t)||b$(e,t)||s9e()}function s9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),L({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",L(L(L(L(L({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",L(L({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),L({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),L(L({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",L({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:L({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),L({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},L({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function zNe(e,t){return un("ProLayoutBaseMenu"+t,function(n){var r=I(I({},n),{},{componentCls:".".concat(e)});return[BNe(r,t||"inline")]})}var zI=function(t){var n=c.useState(t.collapsed),r=X(n,2),o=r[0],a=r[1],i=c.useState(!1),l=X(i,2),s=l[0],u=l[1];return c.useEffect(function(){u(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:F.jsx(Go,{title:t.title,open:o&&t.collapsed?s:!1,placement:"right",onOpenChange:u,children:t.children})},MF=zj({scriptUrl:pl.iconfontUrl}),HI=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Iw(t)||Wye(t))return F.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return F.jsx(MF,{type:t})}return t},VI=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},HNe=Fn(function e(t){var n=this;Dn(this,e),L(this,"props",void 0),L(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,o,a)}).filter(function(i){return i}).flat(1)}),L(this,"getSubMenuOrItem",function(r,o,a){var i=n.props,l=i.subMenuItemRender,s=i.baseClassName,u=i.prefixCls,d=i.collapsed,f=i.menu,m=i.iconPrefixes,h=i.layout,g=(f==null?void 0:f.type)==="group"&&h!=="top",v=n.props.token,p=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=g&&o===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var C,S,$,x,w,O=o===0||g&&o===1,E=HI(r.icon,m,"".concat(s,"-icon ").concat((C=n.props)===null||C===void 0?void 0:C.hashId)),P=d&&O?VI(p):null,M=F.jsxs("div",{className:Z("".concat(s,"-item-title"),(S=n.props)===null||S===void 0?void 0:S.hashId,L(L(L(L({},"".concat(s,"-item-title-collapsed"),d),"".concat(s,"-item-title-collapsed-level-").concat(a),d),"".concat(s,"-group-item-title"),b==="group"),"".concat(s,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[b==="group"&&d?null:O&&E?F.jsx("span",{className:"".concat(s,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId).trim(),children:E}):P,F.jsx("span",{className:Z("".concat(s,"-item-text"),(x=n.props)===null||x===void 0?void 0:x.hashId,L({},"".concat(s,"-item-text-has-icon"),b!=="group"&&O&&(E||P))),children:p})]}),D=l?l(I(I({},r),{},{isUrl:!1}),M,n.props):M;if(g&&o===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,o+1,o);var R=n.getNavMenuItems(y,o+1,g&&o===0&&n.props.collapsed?o:o+1);return[{type:b,key:r.key||r.path,label:D,onClick:g?void 0:r.onTitleClick,children:R,className:Z(L(L(L({},"".concat(s,"-group"),b==="group"),"".concat(s,"-submenu"),b!=="group"),"".concat(s,"-submenu-has-icon"),b!=="group"&&O&&E))},g&&o===0?{type:"divider",prefixCls:u,className:"".concat(s,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:v==null||(w=v.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(s,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,o,a)}}),L(this,"getIntlName",function(r){var o=r.name,a=r.locale,i=n.props,l=i.menu,s=i.formatMessage;return a&&(l==null?void 0:l.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:o}):o}),L(this,"getMenuItemPath",function(r,o,a){var i,l,s,u,d=n.conversionPath(r.path||"/"),f=n.props,m=f.location,h=m===void 0?{pathname:"/"}:m,g=f.isMobile,v=f.onCollapse,p=f.menuItemRender,y=f.iconPrefixes,b=n.getIntlName(r),C=n.props,S=C.baseClassName,$=C.menu,x=C.collapsed,w=($==null?void 0:$.type)==="group",O=o===0||w&&o===1,E=O?HI(r.icon,y,"".concat(S,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,P=x&&O?VI(b):null,M=F.jsxs("div",{className:Z("".concat(S,"-item-title"),(l=n.props)===null||l===void 0?void 0:l.hashId,L(L(L({},"".concat(S,"-item-title-collapsed"),x),"".concat(S,"-item-title-collapsed-level-").concat(a),x),"".concat(S,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&x)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:P===null&&!E?"none":""},children:E||F.jsx("span",{className:"anticon",children:P})}),F.jsx("span",{className:Z("".concat(S,"-item-text"),(u=n.props)===null||u===void 0?void 0:u.hashId,L({},"".concat(S,"-item-text-has-icon"),O&&(E||P))),children:b})]},d),D=Iw(d);if(D){var R,_,T;M=F.jsxs("span",{onClick:function(){var j,A;(j=window)===null||j===void 0||(A=j.open)===null||A===void 0||A.call(j,d,"_blank")},className:Z("".concat(S,"-item-title"),(R=n.props)===null||R===void 0?void 0:R.hashId,L(L(L(L({},"".concat(S,"-item-title-collapsed"),x),"".concat(S,"-item-title-collapsed-level-").concat(a),x),"".concat(S,"-item-link"),!0),"".concat(S,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&x)),children:[F.jsx("span",{className:"".concat(S,"-item-icon ").concat((_=n.props)===null||_===void 0?void 0:_.hashId).trim(),style:{display:P===null&&!E?"none":""},children:E||F.jsx("span",{className:"anticon",children:P})}),F.jsx("span",{className:Z("".concat(S,"-item-text"),(T=n.props)===null||T===void 0?void 0:T.hashId,L({},"".concat(S,"-item-text-has-icon"),O&&(E||P))),children:b})]},d)}if(p){var k=I(I({},r),{},{isUrl:D,itemPath:d,isMobile:g,replace:d===h.pathname,onClick:function(){return v&&v(!0)},children:void 0});return o===0?F.jsx(zI,{collapsed:x,title:b,disable:r.disabledTooltip,children:p(k,M,n.props)}):p(k,M,n.props)}return o===0?F.jsx(zI,{collapsed:x,title:b,disable:r.disabledTooltip,children:M}):M}),L(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),VNe=function(t,n){var r=n.layout,o=n.collapsed,a={};return t&&!o&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},RF=function(t){var n=t.mode,r=t.className,o=t.handleOpenChange,a=t.style,i=t.menuData,l=t.prefixCls,s=t.menu,u=t.matchMenuKeys,d=t.iconfontUrl,f=t.selectedKeys,m=t.onSelect,h=t.menuRenderType,g=t.openKeys,v=c.useContext(Ca),p=v.dark,y=v.token,b="".concat(l,"-base-menu-").concat(n),C=c.useRef([]),S=Pt(s==null?void 0:s.defaultOpenAll),$=X(S,2),x=$[0],w=$[1],O=Pt(function(){return s!=null&&s.defaultOpenAll?AI(i)||[]:g===!1?!1:[]},{value:g===!1?void 0:g,onChange:o}),E=X(O,2),P=E[0],M=E[1],D=Pt([],{value:f,onChange:m?function(H){m&&H&&m(H)}:void 0}),R=X(D,2),_=R[0],T=R[1];c.useEffect(function(){s!=null&&s.defaultOpenAll||g===!1||u&&(M(u),T(u))},[u.join("-")]),c.useEffect(function(){d&&(MF=zj({scriptUrl:d}))},[d]),c.useEffect(function(){if(u.join("-")!==(_||[]).join("-")&&T(u),!x&&g!==!1&&u.join("-")!==(P||[]).join("-")){var H=u;(s==null?void 0:s.autoClose)===!1&&(H=Array.from(new Set([].concat(Te(u),Te(P||[]))))),M(H)}else s!=null&&s.ignoreFlatMenu&&x?M(AI(i)):w(!1)},[u.join("-")]);var k=c.useMemo(function(){return VNe(P,t)},[P&&P.join(","),t.layout,t.collapsed]),N=zNe(b,n),j=N.wrapSSR,A=N.hashId,B=c.useMemo(function(){return new HNe(I(I({},t),{},{token:y,menuRenderType:h,baseClassName:b,hashId:A}))},[t,y,h,b,A]);if(s!=null&&s.loading)return F.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:F.jsx(Lre,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(C.current=u);var z=t.postMenuData?t.postMenuData(i):i;return z&&(z==null?void 0:z.length)<1?null:j(c.createElement(j2,I(I({},k),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:C.current,theme:p?"dark":"light",selectedKeys:_,style:I({backgroundColor:"transparent",border:"none"},a),className:Z(r,A,b,L(L({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:B.getNavMenuItems(z,0,0),onOpenChange:function(V){t.collapsed||M(V)}},t.menuProps)))};function WNe(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return un("ProLayoutSiderMenuStylish",function(o){var a=I(I({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[L({},"div".concat(o.proComponentsCls,"-layout"),L({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var KNe=["title","render"],UNe=W.memo(function(e){return F.jsx(F.Fragment,{children:e.children})}),GNe=ms.Sider,WI=ms._InternalSiderContext,qNe=WI===void 0?{Provider:UNe}:WI,f$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,o=t.title,a=t.layout,i=t[n];if(i===!1)return null;var l=u$(r),s=F.jsx("h1",{children:o??"Ant Design Pro"});return i?i(l,t.collapsed?null:s,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?F.jsx("a",{children:l},"title"):F.jsxs("a",{children:[l,s]},"title")},KI=function(t){var n,r=t.collapsed,o=t.originCollapsed,a=t.fixSiderbar,i=t.menuFooterRender,l=t.onCollapse,s=t.theme,u=t.siderWidth,d=t.isMobile,f=t.onMenuHeaderClick,m=t.breakpoint,h=m===void 0?"lg":m,g=t.style,v=t.layout,p=t.menuExtraRender,y=p===void 0?!1:p,b=t.links,C=t.menuContentRender,S=t.collapsedButtonRender,$=t.prefixCls,x=t.avatarProps,w=t.rightContentRender,O=t.actionsRender,E=t.onOpenChange,P=t.stylish,M=t.logoStyle,D=c.useContext(Ca),R=D.hashId,_=c.useMemo(function(){return!(d||v==="mix")},[d,v]),T="".concat($,"-sider"),k=64,N=WNe("".concat(T,".").concat(T,"-stylish"),{stylish:P,proLayoutCollapsedWidth:k}),j=Z("".concat(T),R,L(L(L(L(L(L(L({},"".concat(T,"-fixed"),a),"".concat(T,"-fixed-mix"),v==="mix"&&!d&&a),"".concat(T,"-collapsed"),t.collapsed),"".concat(T,"-layout-").concat(v),v&&!d),"".concat(T,"-light"),s!=="dark"),"".concat(T,"-mix"),v==="mix"&&!d),"".concat(T,"-stylish"),!!P)),A=f$(t),B=y&&y(t),z=c.useMemo(function(){return C!==!1&&c.createElement(RF,I(I({},t),{},{key:"base-menu",mode:r&&!d?"vertical":"inline",handleOpenChange:E,style:{width:"100%"},className:"".concat(T,"-menu ").concat(R).trim()}))},[T,R,C,E,t]),H=(b||[]).map(function(re,oe){return{className:"".concat(T,"-link"),label:re,key:oe}}),V=c.useMemo(function(){return C?C(t,z):z},[C,z,t]),U=c.useMemo(function(){if(!x)return null;var re=x.title,oe=x.render,te=ze(x,KNe),ee=F.jsxs("div",{className:"".concat(T,"-actions-avatar"),children:[te!=null&&te.src||te!=null&&te.srcSet||te.icon||te.children?F.jsx(Zh,I({size:28},te)):null,x.title&&!r&&F.jsx("span",{children:re})]});return oe?oe(x,ee,t):ee},[x,T,r]),K=c.useMemo(function(){return O?F.jsx(hi,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Z(["".concat(T,"-actions-list"),r&&"".concat(T,"-actions-list-collapsed"),R]),children:[O==null?void 0:O(t)].flat(1).map(function(re,oe){return F.jsx("div",{className:"".concat(T,"-actions-list-item ").concat(R).trim(),children:re},oe)})}):null},[O,T,r]),Y=c.useMemo(function(){return F.jsx(d$,{onItemClick:t.itemClick,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.prefixCls]),G=c.useMemo(function(){if(S===!1)return null;var re=F.jsx(ANe,{isMobile:d,collapsed:o,className:"".concat(T,"-collapsed-button"),onClick:function(){l==null||l(!o)}});return S?S(r,re):re},[S,d,o,T,r,l]),q=c.useMemo(function(){return!U&&!K?null:F.jsxs("div",{className:Z("".concat(T,"-actions"),R,r&&"".concat(T,"-actions-collapsed")),children:[U,K]})},[K,U,T,r,R]),J=c.useMemo(function(){var re;return t!=null&&(re=t.menu)!==null&&re!==void 0&&re.hideMenuWhenCollapsed&&r?"".concat(T,"-hide-menu-collapsed"):null},[T,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),Q=i&&(i==null?void 0:i(t)),ne=F.jsxs(F.Fragment,{children:[A&&F.jsxs("div",{className:Z([Z("".concat(T,"-logo"),R,L({},"".concat(T,"-logo-collapsed"),r))]),onClick:_?f:void 0,id:"logo",style:M,children:[A,Y]}),B&&F.jsx("div",{className:Z(["".concat(T,"-extra"),!A&&"".concat(T,"-extra-no-logo"),R]),children:B}),F.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:V}),F.jsxs(qNe.Provider,{value:{},children:[b?F.jsx("div",{className:"".concat(T,"-links ").concat(R).trim(),children:F.jsx(j2,{inlineIndent:16,className:"".concat(T,"-link-menu ").concat(R).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:H})}):null,_&&F.jsxs(F.Fragment,{children:[q,!K&&w?F.jsx("div",{className:Z("".concat(T,"-actions"),R,L({},"".concat(T,"-actions-collapsed"),r)),children:w==null?void 0:w(t)}):null]}),Q&&F.jsx("div",{className:Z(["".concat(T,"-footer"),R,L({},"".concat(T,"-footer-collapsed"),r)]),children:Q})]})]});return N.wrapSSR(F.jsxs(F.Fragment,{children:[a&&!d&&!J&&F.jsx("div",{style:I({width:r?k:u,overflow:"hidden",flex:"0 0 ".concat(r?k:u,"px"),maxWidth:r?k:u,minWidth:r?k:u,transition:"all 0.2s ease 0s"},g)}),F.jsxs(GNe,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(oe){d||l==null||l(oe)},collapsedWidth:k,style:g,theme:s,width:u,className:Z(j,R,J),children:[J?F.jsx("div",{className:"".concat(T,"-hide-when-collapsed ").concat(R).trim(),style:{height:"100%",width:"100%",opacity:J?0:1},children:ne}):ne,G]})]}))},YNe=function(t){var n,r,o,a,i;return L({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}}}})};function XNe(e){return un("ProLayoutRightContent",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[YNe(n)]})}var QNe=["rightContentRender","avatarProps","actionsRender","headerContentRender"],ZNe=["title","render"],_F=function(t){var n=t.rightContentRender,r=t.avatarProps,o=t.actionsRender;t.headerContentRender;var a=ze(t,QNe),i=c.useContext(bt.ConfigContext),l=i.getPrefixCls,s="".concat(l(),"-pro-global-header"),u=XNe(s),d=u.wrapSSR,f=u.hashId,m=c.useState("auto"),h=X(m,2),g=h[0],v=h[1],p=c.useMemo(function(){if(!r)return null;var S=r.title,$=r.render,x=ze(r,ZNe),w=[x!=null&&x.src||x!=null&&x.srcSet||x.icon||x.children?c.createElement(Zh,I(I({},x),{},{size:28,key:"avatar"})):null,S?F.jsx("span",{style:{marginInlineStart:8},children:S},"name"):void 0];return $?$(r,F.jsx("div",{children:w}),a):F.jsx("div",{children:w})},[r]),y=o||p?function(S){var $=o&&(o==null?void 0:o(S));return!$&&!p?null:Array.isArray($)?d(F.jsxs("div",{className:"".concat(s,"-header-actions ").concat(f).trim(),children:[$.filter(Boolean).map(function(x,w){var O=!1;if(W.isValidElement(x)){var E;O=!!(x!=null&&(E=x.props)!==null&&E!==void 0&&E["aria-hidden"])}return F.jsx("div",{className:Z("".concat(s,"-header-actions-item ").concat(f),L({},"".concat(s,"-header-actions-hover"),!O)),children:x},w)}),p&&F.jsx("span",{className:"".concat(s,"-header-actions-avatar ").concat(f).trim(),children:p})]})):d(F.jsxs("div",{className:"".concat(s,"-header-actions ").concat(f).trim(),children:[$,p&&F.jsx("span",{className:"".concat(s,"-header-actions-avatar ").concat(f).trim(),children:p})]}))}:void 0,b=jye(function(){var S=Tr(an().mark(function $(x){return an().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:v(x);case 1:case"end":return O.stop()}},$)}));return function($){return S.apply(this,arguments)}}(),160),C=y||n;return F.jsx("div",{className:"".concat(s,"-right-content ").concat(f).trim(),style:{minWidth:g,height:"100%"},children:F.jsx("div",{style:{height:"100%"},children:F.jsx(Sr,{onResize:function($){var x=$.width;b.run(x)},children:C?F.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:C(I(I({},a),{},{rightContentSize:g}))}):null})})})},JNe=function(t){var n,r;return L({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":L({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function e7e(e){return un("ProLayoutTopNavHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[JNe(n)]})}var TF=function(t){var n,r,o,a,i,l,s,u=c.useRef(null),d=t.onMenuHeaderClick,f=t.contentWidth,m=t.rightContentRender,h=t.className,g=t.style,v=t.headerContentRender,p=t.layout,y=t.actionsRender,b=c.useContext(bt.ConfigContext),C=b.getPrefixCls,S=c.useContext(Ca),$=S.dark,x="".concat(t.prefixCls||C("pro"),"-top-nav-header"),w=e7e(x),O=w.wrapSSR,E=w.hashId,P=void 0;t.menuHeaderRender!==void 0?P="menuHeaderRender":(p==="mix"||p==="top")&&(P="headerTitleRender");var M=f$(I(I({},t),{},{collapsed:!1}),P),D=c.useContext(Ca),R=D.token,_=c.useMemo(function(){var T,k,N,j,A,B,z,H,V,U,K,Y,G,q=F.jsx(bt,{theme:{hashed:Tc(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:I({},Uj({colorItemBg:((T=R.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorBgHeader)||"transparent",colorSubItemBg:((k=R.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgHeader)||"transparent",radiusItem:R.borderRadius,colorItemBgSelected:((N=R.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(R==null?void 0:R.colorBgTextHover),itemHoverBg:((j=R.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgMenuItemHover)||(R==null?void 0:R.colorBgTextHover),colorItemBgSelectedHorizontal:((A=R.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgMenuItemSelected)||(R==null?void 0:R.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((B=R.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenu)||(R==null?void 0:R.colorTextSecondary),colorItemTextHoverHorizontal:((z=R.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive)||(R==null?void 0:R.colorText),colorItemTextSelectedHorizontal:((H=R.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuSelected)||(R==null?void 0:R.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((V=R.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((U=R.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((K=R.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:R==null?void 0:R.colorBgElevated,subMenuItemBg:R==null?void 0:R.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:R==null?void 0:R.colorBgElevated}))},token:{colorBgElevated:((Y=R.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgHeader)||"transparent"}},children:F.jsx(RF,I(I(I({theme:$?"dark":"light"},t),{},{className:"".concat(x,"-base-menu ").concat(E).trim()},t.menuProps),{},{style:I({width:"100%"},(G=t.menuProps)===null||G===void 0?void 0:G.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(t,q):q},[(n=R.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=R.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(o=R.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(a=R.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(i=R.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenuActive,(l=R.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(s=R.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorBgMenuElevated,R.borderRadius,R==null?void 0:R.colorBgTextHover,R==null?void 0:R.colorTextSecondary,R==null?void 0:R.colorText,R==null?void 0:R.colorTextBase,R.colorBgElevated,$,t,x,E,v]);return O(F.jsx("div",{className:Z(x,E,h,L({},"".concat(x,"-light"),!0)),style:g,children:F.jsxs("div",{ref:u,className:Z("".concat(x,"-main"),E,L({},"".concat(x,"-wide"),f==="Fixed"&&p==="top")),children:[M&&F.jsxs("div",{className:Z("".concat(x,"-main-left ").concat(E)),onClick:d,children:[F.jsx(d$,I({},t)),F.jsx("div",{className:"".concat(x,"-logo ").concat(E).trim(),id:"logo",children:M},"logo")]}),F.jsx("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(E).trim(),children:_}),(m||y||t.avatarProps)&&F.jsx(_F,I(I({rightContentRender:m},t),{},{prefixCls:x}))]})}))},t7e=function(t){var n,r,o;return L({},t.componentCls,L(L(L(L({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function n7e(e){return un("ProLayoutGlobalHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[t7e(n)]})}var r7e=function(t,n){return t===!1?null:t?t(n,null):n},o7e=function(t){var n=t.isMobile,r=t.logo,o=t.collapsed,a=t.onCollapse,i=t.rightContentRender,l=t.menuHeaderRender,s=t.onMenuHeaderClick,u=t.className,d=t.style,f=t.layout,m=t.children,h=t.splitMenus,g=t.menuData,v=t.prefixCls,p=c.useContext(bt.ConfigContext),y=p.getPrefixCls,b=p.direction,C="".concat(v||y("pro"),"-global-header"),S=n7e(C),$=S.wrapSSR,x=S.hashId,w=Z(u,C,x);if(f==="mix"&&!n&&h){var O=(g||[]).map(function(D){return I(I({},D),{},{children:void 0,routes:void 0})}),E=H0(O);return F.jsx(TF,I(I({mode:"horizontal"},t),{},{splitMenus:!1,menuData:E}))}var P=Z("".concat(C,"-logo"),x,L(L(L({},"".concat(C,"-logo-rtl"),b==="rtl"),"".concat(C,"-logo-mix"),f==="mix"),"".concat(C,"-logo-mobile"),n)),M=F.jsx("span",{className:P,children:F.jsx("a",{children:u$(r)})},"logo");return $(F.jsxs("div",{className:w,style:I({},d),children:[n&&F.jsx("span",{className:"".concat(C,"-collapsed-button ").concat(x).trim(),onClick:function(){a==null||a(!o)},children:F.jsx(E0e,{})}),n&&r7e(l,M),f==="mix"&&!n&&F.jsxs(F.Fragment,{children:[F.jsx(d$,I({},t)),F.jsx("div",{className:P,onClick:s,children:f$(I(I({},t),{},{collapsed:!1}),"headerTitleRender")})]}),F.jsx("div",{style:{flex:1},children:m}),(i||t.actionsRender||t.avatarProps)&&F.jsx(_F,I({rightContentRender:i},t))]}))},a7e=function(t){var n,r,o,a;return L({},"".concat(t.proComponentsCls,"-layout"),L({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function i7e(e){return un("ProLayoutHeader",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[a7e(n)]})}function l7e(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return un("ProLayoutHeaderStylish",function(o){var a=I(I({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[L({},"div".concat(o.proComponentsCls,"-layout"),L({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var UI=ms.Header,s7e=function(t){var n,r,o,a=t.isMobile,i=t.fixedHeader,l=t.className,s=t.style,u=t.collapsed,d=t.prefixCls,f=t.onCollapse,m=t.layout,h=t.headerRender,g=t.headerContentRender,v=c.useContext(Ca),p=v.token,y=c.useContext(bt.ConfigContext),b=c.useState(!1),C=X(b,2),S=C[0],$=C[1],x=i||m==="mix",w=c.useCallback(function(){var T=m==="top",k=H0(t.menuData||[]),N=F.jsx(o7e,I(I({onCollapse:f},t),{},{menuData:k,children:g&&g(t,null)}));return T&&!a&&(N=F.jsx(TF,I(I({mode:"horizontal",onCollapse:f},t),{},{menuData:k}))),h&&typeof h=="function"?h(t,N):N},[g,h,a,m,f,t]);c.useEffect(function(){var T,k=(y==null||(T=y.getTargetContainer)===null||T===void 0?void 0:T.call(y))||document.body,N=function(){var A,B=k.scrollTop;return B>(((A=p.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.heightLayoutHeader)||56)&&!S?($(!0),!0):(S&&$(!1),!1)};if(x&&!(typeof window>"u"))return k.addEventListener("scroll",N,{passive:!0}),function(){k.removeEventListener("scroll",N)}},[(n=p.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,x,S]);var O=m==="top",E="".concat(d,"-layout-header"),P=i7e(E),M=P.wrapSSR,D=P.hashId,R=l7e("".concat(E,".").concat(E,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),_=Z(l,D,E,L(L(L(L(L(L(L({},"".concat(E,"-fixed-header"),x),"".concat(E,"-fixed-header-scroll"),S),"".concat(E,"-mix"),m==="mix"),"".concat(E,"-fixed-header-action"),!u),"".concat(E,"-top-menu"),O),"".concat(E,"-header"),!0),"".concat(E,"-stylish"),!!t.stylish));return m==="side"&&!a?null:R.wrapSSR(M(F.jsx(F.Fragment,{children:F.jsxs(bt,{theme:{hashed:Tc(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[x&&F.jsx(UI,{style:I({height:((r=p.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((o=p.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),F.jsx(UI,{className:_,style:s,children:w()})]})})))};const c7e={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},u7e=I({},c7e),d7e={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},f7e=I({},d7e),m7e={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},v7e=I({},m7e),g7e={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},p7e=I({},g7e),h7e={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},y7e=I({},h7e);var GI={"zh-CN":p7e,"zh-TW":y7e,"en-US":u7e,"it-IT":f7e,"ko-KR":v7e},yg=function(){if(!gl())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},NF=function(){var t=yg();return GI[t]||GI["zh-CN"]},jb=function(t){var n=t.value,r=t.configType,o=t.onChange,a=t.list,i=t.prefixCls,l=t.hashId,s="".concat(i,"-block-checkbox"),u=c.useMemo(function(){var d=(a||[]).map(function(f){return F.jsx(Go,{title:f.title,children:F.jsxs("div",{className:Z(l,"".concat(s,"-item"),"".concat(s,"-item-").concat(f.key),"".concat(s,"-").concat(r,"-item")),onClick:function(){return o(f.key)},children:[F.jsx(Uh,{className:"".concat(s,"-selectIcon ").concat(l).trim(),style:{display:n===f.key?"block":"none"}}),f!=null&&f.icon?F.jsx("div",{className:"".concat(s,"-icon ").concat(l).trim(),children:f.icon}):null]})},f.key)});return d},[n,a==null?void 0:a.length,o]);return F.jsx("div",{className:Z(s,l),children:u})},m$=function(t){var n=W.cloneElement(t.action,{disabled:t.disabled});return F.jsx(Go,{title:t.disabled?t.disabledReason:"",placement:"left",children:F.jsx(Em.Item,{actions:[n],children:F.jsx("span",{style:{opacity:t.disabled?.5:1},children:t.title})})})},b7e=function(t){var n=t.settings,r=t.prefixCls,o=t.changeSetting,a=t.hashId,i=v$(),l=n||pl,s=l.contentWidth,u=l.splitMenus,d=l.fixedHeader,f=l.layout,m=l.fixSiderbar;return F.jsx(Em,{className:"".concat(r,"-list ").concat(a).trim(),split:!1,dataSource:[{title:i({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:F.jsxs(Ta,{value:s||"Fixed",size:"small",className:"content-width ".concat(a).trim(),onSelect:function(g){o("contentWidth",g)},style:{width:80},children:[f==="side"?null:F.jsx(Ta.Option,{value:"Fixed",children:i({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),F.jsx(Ta.Option,{value:"Fluid",children:i({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:i({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:F.jsx(Mc,{size:"small",className:"fixed-header",checked:!!d,onChange:function(g){o("fixedHeader",g)}})},{title:i({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:f==="top",disabledReason:i({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:F.jsx(Mc,{size:"small",className:"fix-siderbar",checked:!!m,onChange:function(g){return o("fixSiderbar",g)}})},{title:i({id:"app.setting.splitMenus"}),disabled:f!=="mix",action:F.jsx(Mc,{size:"small",checked:!!u,className:"split-menus",onChange:function(g){o("splitMenus",g)}})}],renderItem:m$})},C7e=function(t){var n=t.settings,r=t.prefixCls,o=t.changeSetting,a=t.hashId,i=v$(),l=["header","footer","menu","menuHeader"];return F.jsx(Em,{className:"".concat(r,"-list ").concat(a).trim(),split:!1,renderItem:m$,dataSource:l.map(function(s){return{title:i({id:"app.setting.regionalsettings.".concat(s)}),action:F.jsx(Mc,{size:"small",className:"regional-".concat(s," ").concat(a).trim(),checked:n["".concat(s,"Render")]||n["".concat(s,"Render")]===void 0,onChange:function(d){return o("".concat(s,"Render"),d===!0?void 0:!1)}})}})})},S7e=["color","check"],x7e=W.forwardRef(function(e,t){var n=e.color,r=e.check,o=ze(e,S7e);return F.jsx("div",I(I({},o),{},{style:{backgroundColor:n},ref:t,children:r?F.jsx(Uh,{}):""}))}),w7e=function(t){var n=t.value,r=t.colorList,o=t.onChange,a=t.prefixCls,i=t.formatMessage,l=t.hashId;if(!r||(r==null?void 0:r.length)<1)return null;var s="".concat(a,"-theme-color");return F.jsx("div",{className:"".concat(s," ").concat(l).trim(),children:r==null?void 0:r.map(function(u){var d=u.key,f=u.color,m=u.title;return d?F.jsx(Go,{title:m??i({id:"app.setting.themecolor.".concat(d)}),children:F.jsx(x7e,{className:"".concat(s,"-block ").concat(l).trim(),color:f,check:n===f,onClick:function(){return o&&o(f)}})},f):null})})};function $7e(){return F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[F.jsxs("defs",{children:[F.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),F.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[F.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),F.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),F.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),F.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),F.jsxs("feMerge",{children:[F.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),F.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[F.jsxs("g",{children:[F.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),F.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),F.jsx("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),F.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),F.jsx("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),F.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function E7e(){return F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[F.jsxs("defs",{children:[F.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),F.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[F.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),F.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),F.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),F.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),F.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),F.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),F.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),F.jsxs("feMerge",{children:[F.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),F.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),F.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[F.jsxs("g",{children:[F.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),F.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),F.jsx("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),F.jsx("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),F.jsx("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),F.jsx("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var P7e=function(t){return L(L({},"".concat(t.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:t.colorPrimary,borderEndStartRadius:t.borderRadiusLG,borderStartStartRadius:t.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),t.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:t.colorText},"&-body-title":{marginBlock:t.marginXS,fontSize:"14px",lineHeight:"22px",color:t.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:t.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:t.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:t.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t.colorBgContainer}},"&-top":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:t.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:t.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:t.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":L({},"li".concat(t.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function O7e(e){return un("ProLayoutSettingDrawer",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[P7e(n)]})}var Gs=function(t){var n=t.children,r=t.hashId,o=t.prefixCls,a=t.title;return F.jsxs("div",{style:{marginBlockEnd:12},children:[F.jsx("h3",{className:"".concat(o,"-body-title ").concat(r).trim(),children:a}),n]})},I7e=function(t){var n={};return Object.keys(t).forEach(function(r){t[r]!==pl[r]&&r!=="collapse"?n[r]=t[r]:n[r]=void 0,r.includes("Render")&&(n[r]=t[r]===!1?!1:void 0)}),n.menu=void 0,n},v$=function(){var t=function(r){var o=r.id,a=NF();return a[o]};return t},M7e=function(t,n,r){if(gl()){var o={};Object.keys(t).forEach(function(i){if(pl[i]||pl[i]===void 0){if(i==="colorPrimary"){o[i]=IF(t[i]);return}o[i]=t[i]}});var a=Mw({},n,o);delete a.menu,delete a.title,delete a.iconfontUrl,r==null||r(a)}},qI=function(t,n){return gl()?I(I(I({},pl),n||{}),t):pl},R7e=function(t){return JSON.stringify(so(I(I({},t),{},{colorPrimary:t.colorPrimary}),["colorWeak"]),null,2)},_7e=function(t){var n=t.defaultSettings,r=n===void 0?void 0:n,o=t.settings,a=o===void 0?void 0:o,i=t.hideHintAlert,l=t.hideCopyButton,s=t.colorList,u=s===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:s,d=t.getContainer,f=t.onSettingChange,m=t.enableDarkTheme,h=t.prefixCls,g=h===void 0?"ant-pro":h,v=t.pathname,p=v===void 0?window.location.pathname:v,y=t.disableUrlParams,b=y===void 0?!0:y,C=t.themeOnly,S=c.useRef(!0),$=Pt(!1,{value:t.collapse,onChange:t.onCollapseChange}),x=X($,2),w=x[0],O=x[1],E=c.useState(yg()),P=X(E,2),M=P[0],D=P[1],R=Xj({},{disabled:b}),_=X(R,2),T=_[0],k=_[1],N=Pt(function(){return qI(T,a||r)},{value:a,onChange:f}),j=X(N,2),A=j[0],B=j[1],z=A||{},H=z.navTheme,V=z.colorPrimary,U=z.siderMenuType,K=z.layout,Y=z.colorWeak;c.useEffect(function(){var te=function(){M!==yg()&&D(yg())};return gl()?(M7e(qI(T,a),A,B),window.document.addEventListener("languagechange",te,{passive:!0}),function(){return window.document.removeEventListener("languagechange",te)}):function(){return null}},[]),c.useEffect(function(){Es(pa,"5.0.0")<0&&bt.config({theme:{primaryColor:A.colorPrimary}})},[A.colorPrimary,A.navTheme]);var G=function(ee,ie){var de={};if(de[ee]=ie,ee==="layout"&&(de.contentWidth=ie==="top"?"Fixed":"Fluid"),ee==="layout"&&ie!=="mix"&&(de.splitMenus=!1),ee==="layout"&&ie==="mix"&&(de.navTheme="light"),ee==="colorWeak"&&ie===!0){var he=document.querySelector("body");he&&(he.dataset.prosettingdrawer=he.style.filter,he.style.filter="invert(80%)")}if(ee==="colorWeak"&&ie===!1){var fe=document.querySelector("body");fe&&(fe.style.filter=fe.dataset.prosettingdrawer||"none",delete fe.dataset.prosettingdrawer)}delete de.menu,delete de.title,delete de.iconfontUrl,delete de.logo,delete de.pwa,B(I(I({},A),de))},q=v$();c.useEffect(function(){if(gl()&&!b){if(S.current){S.current=!1;return}var te=new URLSearchParams(window.location.search),ee=Object.fromEntries(te.entries()),ie=I7e(I(I({},ee),A));delete ie.logo,delete ie.menu,delete ie.title,delete ie.iconfontUrl,delete ie.pwa,k(ie)}},[k,A,T,p,b]);var J="".concat(g,"-setting-drawer"),Q=O7e(J),ne=Q.wrapSSR,re=Q.hashId,oe=Rm(w);return ne(F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"".concat(J,"-handle ").concat(re).trim(),onClick:function(){return O(!w)},style:{width:48,height:48},children:w?F.jsx(xa,{style:{color:"#fff",fontSize:20}}):F.jsx(X0e,{style:{color:"#fff",fontSize:20}})}),F.jsx(_9,I(I({},oe),{},{width:300,onClose:function(){return O(!1)},closable:!1,placement:"right",getContainer:d,style:{zIndex:999},children:F.jsxs("div",{className:"".concat(J,"-drawer-content ").concat(re).trim(),children:[F.jsx(Gs,{title:q({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:re,prefixCls:J,children:F.jsx(jb,{hashId:re,prefixCls:J,list:[{key:"light",title:q({id:"app.setting.pagestyle.light",defaultMessage:"亮色菜单风格"})},{key:"realDark",title:q({id:"app.setting.pagestyle.realdark",defaultMessage:"暗色菜单风格"})}].filter(function(te){return!(te.key==="dark"&&A.layout==="mix"||te.key==="realDark"&&!m)}),value:H,configType:"theme",onChange:function(ee){return G("navTheme",ee)}},"navTheme")}),u!==!1&&F.jsx(Gs,{hashId:re,title:q({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:J,children:F.jsx(w7e,{hashId:re,prefixCls:J,colorList:u,value:IF(V),formatMessage:q,onChange:function(ee){return G("colorPrimary",ee)}})}),!C&&F.jsxs(F.Fragment,{children:[F.jsx(gc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.navigationmode"}),children:F.jsx(jb,{prefixCls:J,value:K,hashId:re,configType:"layout",list:[{key:"side",title:q({id:"app.setting.sidemenu"})},{key:"top",title:q({id:"app.setting.topmenu"})},{key:"mix",title:q({id:"app.setting.mixmenu"})}],onChange:function(ee){return G("layout",ee)}},"layout")}),A.layout=="side"||A.layout=="mix"?F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.sidermenutype"}),children:F.jsx(jb,{prefixCls:J,value:U,hashId:re,configType:"siderMenuType",list:[{key:"sub",icon:F.jsx(E7e,{}),title:q({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:F.jsx($7e,{}),title:q({id:"app.setting.sidermenutype-group"})}],onChange:function(ee){return G("siderMenuType",ee)}},"siderMenuType")}):null,F.jsx(b7e,{prefixCls:J,hashId:re,settings:A,changeSetting:G}),F.jsx(gc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.regionalsettings"}),children:F.jsx(C7e,{hashId:re,prefixCls:J,settings:A,changeSetting:G})}),F.jsx(gc,{}),F.jsx(Gs,{hashId:re,prefixCls:J,title:q({id:"app.setting.othersettings"}),children:F.jsx(Em,{className:"".concat(J,"-list ").concat(re).trim(),split:!1,size:"small",renderItem:m$,dataSource:[{title:q({id:"app.setting.weakmode"}),action:F.jsx(Mc,{size:"small",className:"color-weak",checked:!!Y,onChange:function(ee){G("colorWeak",ee)}})}]})}),i&&l?null:F.jsx(gc,{}),i?null:F.jsx(zK,{type:"warning",message:q({id:"app.setting.production.hint"}),icon:F.jsx(D0e,{}),showIcon:!0,style:{marginBlockEnd:16}}),l?null:F.jsx(Nr,{block:!0,icon:F.jsx(zge,{}),style:{marginBlockEnd:24},onClick:Tr(an().mark(function te(){return an().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.prev=0,ie.next=3,navigator.clipboard.writeText(R7e(A));case 3:Yde.success(q({id:"app.setting.copyinfo"})),ie.next=8;break;case 6:ie.prev=6,ie.t0=ie.catch(0);case 8:case"end":return ie.stop()}},te,null,[[0,6]])})),children:q({id:"app.setting.copy"})})]})]})}))]}))},Vu={exports:{}};Vu.exports=AF;Vu.exports.parse=g$;Vu.exports.compile=N7e;Vu.exports.tokensToFunction=FF;Vu.exports.tokensToRegExp=LF;var jF="/",DF="./",T7e=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function g$(e,t){for(var n=[],r=0,o=0,a="",i=t&&t.delimiter||jF,l=t&&t.delimiters||DF,s=!1,u;(u=T7e.exec(e))!==null;){var d=u[0],f=u[1],m=u.index;if(a+=e.slice(o,m),o=m+d.length,f){a+=f[1],s=!0;continue}var h="",g=e[o],v=u[2],p=u[3],y=u[4],b=u[5];if(!s&&a.length){var C=a.length-1;l.indexOf(a[C])>-1&&(h=a[C],a=a.slice(0,C))}a&&(n.push(a),a="",s=!1);var S=h!==""&&g!==void 0&&g!==h,$=b==="+"||b==="*",x=b==="?"||b==="*",w=h||i,O=p||y;n.push({name:v||r++,prefix:h,delimiter:w,optional:x,repeat:$,partial:S,pattern:O?j7e(O):"[^"+Di(w)+"]+?"})}return(a||o-1;else{var h=m.repeat?"(?:"+m.pattern+")(?:"+Di(m.delimiter)+"(?:"+m.pattern+"))*":m.pattern;t&&t.push(m),m.optional?m.partial?u+=Di(m.prefix)+"("+h+")?":u+="(?:"+Di(m.prefix)+"("+h+"))?":u+=Di(m.prefix)+"("+h+")"}}return a?(r||(u+="(?:"+i+")?"),u+=s==="$"?"$":"(?="+s+")"):(r||(u+="(?:"+i+"(?="+s+"))?"),d||(u+="(?="+i+"|"+s+")")),new RegExp(u,kF(n))}function AF(e,t,n){return e instanceof RegExp?D7e(e,t):Array.isArray(e)?F7e(e,t,n):k7e(e,t,n)}var L7e=Vu.exports;const PS=jn(L7e);var A7e=function(t,n,r){if(r){var o=Te(r.keys()).find(function(i){return PS(i).test(t)});if(o)return r.get(o)}if(n){var a=Object.keys(n).find(function(i){return PS(i).test(t)});if(a)return n[a]}return{path:""}},YI=function(t,n){var r=t.pathname,o=r===void 0?"/":r,a=t.breadcrumb,i=t.breadcrumbMap,l=t.formatMessage,s=t.title,u=t.menu,d=u===void 0?{locale:!1}:u,f=n?"":s||"",m=A7e(o,a,i);if(!m)return{title:f,id:"",pageName:f};var h=m.name;return d.locale!==!1&&m.locale&&l&&(h=l({id:m.locale||"",defaultMessage:m.name})),h?n||!s?{title:h,id:m.locale||"",pageName:h}:{title:"".concat(h," - ").concat(s),id:m.locale||"",pageName:h}:{title:f,id:m.locale||"",pageName:f}},Gr={};function OS(e){"@babel/helpers - typeof";return OS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OS(e)}Object.defineProperty(Gr,"__esModule",{value:!0});var tf=Gr.pathToRegexp=Gr.tokensToRegexp=Gr.regexpToFunction=Gr.match=Gr.tokensToFunction=Gr.compile=Gr.parse=void 0;function B7e(e){for(var t=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){o+=e[a++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=a;continue}if(r==="("){var l=1,s="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:S===void 0;o||(h+="(?:"+m+"(?="+f+"))?"),$||(h+="(?="+m+"|"+f+")")}return new RegExp(h,h$(n))}Gr.tokensToRegexp=HF;function y$(e,t,n){return e instanceof RegExp?V7e(e,t):Array.isArray(e)?W7e(e,t,n):K7e(e,t,n)}tf=Gr.pathToRegexp=y$;function Na(e,t){return t>>>e|t<<32-e}function U7e(e,t,n){return e&t^~e&n}function G7e(e,t,n){return e&t^e&n^t&n}function q7e(e){return Na(2,e)^Na(13,e)^Na(22,e)}function Y7e(e){return Na(6,e)^Na(11,e)^Na(25,e)}function X7e(e){return Na(7,e)^Na(18,e)^e>>>3}function Q7e(e){return Na(17,e)^Na(19,e)^e>>>10}function Z7e(e,t){return e[t&15]+=Q7e(e[t+14&15])+e[t+9&15]+X7e(e[t+1&15])}var J7e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],In,Lr,fr,e9e="0123456789abcdef";function XI(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function t9e(){In=new Array(8),Lr=new Array(2),fr=new Array(64),Lr[0]=Lr[1]=0,In[0]=1779033703,In[1]=3144134277,In[2]=1013904242,In[3]=2773480762,In[4]=1359893119,In[5]=2600822924,In[6]=528734635,In[7]=1541459225}function IS(){var e,t,n,r,o,a,i,l,s,u,d=new Array(16);e=In[0],t=In[1],n=In[2],r=In[3],o=In[4],a=In[5],i=In[6],l=In[7];for(var f=0;f<16;f++)d[f]=fr[(f<<2)+3]|fr[(f<<2)+2]<<8|fr[(f<<2)+1]<<16|fr[f<<2]<<24;for(var m=0;m<64;m++)s=l+Y7e(o)+U7e(o,a,i)+J7e[m],m<16?s+=d[m]:s+=Z7e(d,m),u=q7e(e)+G7e(e,t,n),l=i,i=a,a=o,o=XI(r,s),r=n,n=t,t=e,e=XI(s,u);In[0]+=e,In[1]+=t,In[2]+=n,In[3]+=r,In[4]+=o,In[5]+=a,In[6]+=i,In[7]+=l}function n9e(e,t){var n,r,o=0;r=Lr[0]>>3&63;var a=t&63;for((Lr[0]+=t<<3)>29,n=0;n+63>3&63;if(fr[e++]=128,e<=56)for(var t=e;t<56;t++)fr[t]=0;else{for(var n=e;n<64;n++)fr[n]=0;IS();for(var r=0;r<56;r++)fr[r]=0}fr[56]=Lr[1]>>>24&255,fr[57]=Lr[1]>>>16&255,fr[58]=Lr[1]>>>8&255,fr[59]=Lr[1]&255,fr[60]=Lr[0]>>>24&255,fr[61]=Lr[0]>>>16&255,fr[62]=Lr[0]>>>8&255,fr[63]=Lr[0]&255,IS()}function o9e(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=e9e.charAt(In[t]>>>n&15);return e}function a9e(e){return t9e(),n9e(e,e.length),r9e(),o9e()}function MS(e){"@babel/helpers - typeof";return MS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MS(e)}var i9e=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function l9e(e,t){return u9e(e)||c9e(e,t)||b$(e,t)||s9e()}function s9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c9e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(s){a=!0,l=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function u9e(e){if(Array.isArray(e))return e}function d9e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b$(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,l=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function f9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QI(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y9e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kf(e,t){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Kf(e,t)}function Uf(e){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uf(e)}function ZI(e){return S9e(e)||C9e(e)||b$(e)||b9e()}function b9e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b$(e,t){if(e){if(typeof e=="string")return _S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _S(e,t)}}function C9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S9e(e){if(Array.isArray(e))return _S(e)}function _S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||C$(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},O9e=function(t,n){var r=t.menu,o=r===void 0?{}:r,a=t.indexRoute,i=t.path,l=i===void 0?"":i,s=t.children||[],u=o.name,d=u===void 0?t.name:u,f=o.icon,m=f===void 0?t.icon:f,h=o.hideChildren,g=h===void 0?t.hideChildren:h,v=o.flatMenu,p=v===void 0?t.flatMenu:v,y=a&&Object.keys(a).join(",")!=="redirect"?[mr({path:l,menu:o},a)].concat(s||[]):s,b=mr({},t);if(d&&(b.name=d),m&&(b.icon=m),y&&y.length){if(g)return delete b.children,b;var C=S$(mr(mr({},n),{},{data:y}),t);if(p)return C;delete b[So]}return b},os=function(t){return Array.isArray(t)&&t.length>0};function S$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,o=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(i){return i?os(i.children)||i.path||i.originPath||i.layout?!0:(i.redirect||i.unaccessible,!1):!1}).filter(function(i){var l,s;return!(i==null||(l=i.menu)===null||l===void 0)&&l.name||i!=null&&i.flatMenu||!(i==null||(s=i.menu)===null||s===void 0)&&s.flatMenu?!0:i.menu!==!1}).map(function(i){var l=mr(mr({},i),{},{path:i.path||i.originPath});return!l.children&&l[So]&&(l.children=l[So],delete l[So]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=i.children||i[So]||[],s=WF(i.path,t?t.path:"/"),u=i.name,d=P9e(i,o||"menu"),f=d!==!1&&a!==!1&&r&&d?r({id:d,defaultMessage:u}):u,m=t.pro_layout_parentKeys,h=m===void 0?[]:m;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var g=x9e(t,i9e),v=new Set([].concat(ZI(h),ZI(i.parentKeys||[])));t.key&&v.add(t.key);var p=mr(mr(mr({},g),{},{menu:void 0},i),{},{path:s,locale:d,key:i.key||E9e(mr(mr({},i),{},{path:s})),pro_layout_parentKeys:Array.from(v).filter(function(b){return b&&b!=="/"})});if(f?p.name=f:delete p.name,p.menu===void 0&&delete p.menu,os(l)){var y=S$(mr(mr({},e),{},{data:l,parentName:d||""}),p);os(y)&&(p.children=y)}return O9e(p,e)}).flat(1)}var I9e=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||os(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=mr({},n),o=r.children||n[So]||[];if(delete r[So],os(o)&&!r.hideChildrenInMenu&&o.some(function(i){return i&&!!i.name})){var a=e(o);if(a.length)return mr(mr({},r),{},{children:a})}return mr({},n)}).filter(function(n){return n})},M9e=function(e){v9e(n,e);var t=g9e(n);function n(){return f9e(this,n),t.apply(this,arguments)}return m9e(n,[{key:"get",value:function(o){var a;try{var i=d9e(this.entries()),l;try{for(i.s();!(l=i.n()).done;){var s=l9e(l.value,2),u=s[0],d=s[1],f=Vm(u);if(!C$(u)&&tf(f,[]).test(o)){a=d;break}}}catch(m){i.e(m)}finally{i.f()}}catch{a=void 0}return a}}]),n}(RS(Map)),R9e=function(t){var n=new M9e,r=function o(a,i){a.forEach(function(l){var s=l.children||l[So]||[];os(s)&&o(s,l);var u=WF(l.path,i?i.path:"/");n.set(Vm(u),l)})};return r(t),n},_9e=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[So];if(os(r)){var o=e(r);if(o.length)return mr({},n)}var a=mr({},n);return delete a[So],delete a.children,a}).filter(function(n){return n})},T9e=function(t,n,r,o){var a=S$({data:t,formatMessage:r,locale:n}),i=o?_9e(a):I9e(a),l=R9e(a);return{breadcrumb:l,menuData:i}};function e5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var o=Cd({},r);if(!(!o||!o.key)){!o.children&&o[So]&&(o.children=o[So],delete o[So]);var a=o.children||[];n[Vm(o.path||o.key||"/")]=Cd({},o),n[o.key||o.path||"/"]=Cd({},o),a&&(n=Cd(Cd({},n),e(a)))}}),n},D9e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(o){if(o==="/"&&n==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!C$(o)){var a=Vm(o);try{if(r&&tf("".concat(a)).test(n)||tf("".concat(a),[]).test(n)||tf("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(o,a){return o===n?10:a===n?-10:o.substr(1).split("/").length-a.substr(1).split("/").length})},F9e=function(t,n,r,o){var a=j9e(n),i=Object.keys(a),l=D9e(i,t||"/",o);return!l||l.length<1?[]:(r||(l=[l[l.length-1]]),l.map(function(s){var u=a[s]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(m){return d.has(m)?null:(d.set(m,!0),a[m])}).filter(function(m){return m});return u.key&&f.push(u),f}).flat(1))},k9e=function(t){var n=c.useContext(Ca),r=n.hashId,o=t.style,a=t.prefixCls,i=t.children,l=t.hasPageContainer,s=l===void 0?0:l,u=Z("".concat(a,"-content"),r,L(L({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),s>0)),d=t.ErrorBoundary||Khe;return t.ErrorBoundary===!1?F.jsx(ms.Content,{className:u,style:o,children:i}):F.jsx(d,{children:F.jsx(ms.Content,{className:u,style:o,children:i})})},L9e=function(){return F.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[F.jsxs("defs",{children:[F.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[F.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),F.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[F.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),F.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),F.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[F.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[F.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),F.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:F.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:F.jsx("g",{transform:"translate(20.000000, 20.000000)",children:F.jsxs("g",{children:[F.jsxs("g",{fillRule:"nonzero",children:[F.jsxs("g",{children:[F.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),F.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),F.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),F.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},t5=new kt("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),A9e=function(t){var n,r,o,a,i,l,s,u,d,f,m,h;return L({},"".concat(t.proComponentsCls,"-layout"),L(L(L({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,L(L(L(L(L(L(L(L(L({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),L(L({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:t5,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":L({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:t5,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((m=t.layout)===null||m===void 0||(m=m.header)===null||m===void 0?void 0:m.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function B9e(e,t){var n=t.proLayoutCollapsedWidth;return un("ProLayoutSiderMenu",function(r){var o=I(I({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[A9e(o)]})}var n5=function(t){var n,r=t.isMobile,o=t.siderWidth,a=t.collapsed,i=t.onCollapse,l=t.style,s=t.className,u=t.hide,d=t.prefixCls,f=c.useContext(Ca),m=f.token;c.useEffect(function(){r===!0&&(i==null||i(!0))},[r]);var h=so(t,["className","style"]),g=W.useContext(bt.ConfigContext),v=g.direction,p=B9e("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),y=p.wrapSSR,b=p.hashId,C=Z("".concat(d,"-sider"),s,b);if(u)return null;var S=Rm(!a,function(){return i==null?void 0:i(!0)});return y(r?F.jsx(f9,I(I({placement:v==="rtl"?"right":"left",className:Z("".concat(d,"-drawer-sider"),s)},S),{},{style:I({padding:0,height:"100vh"},l),onClose:function(){i==null||i(!0)},maskClosable:!0,closable:!1,width:o,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=m.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:F.jsx(KI,I(I({},h),{},{isMobile:!0,className:C,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):F.jsx(KI,I(I({className:C,originCollapsed:a},h),{},{style:l})))},z9e=function(){var t;return typeof process>"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},H9e=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p,y,b,C,S,$,x,w,O,E,P,M,D,R,_,T,k,N;return(n=z9e())!==null&&n!==void 0&&n.startsWith("5")?{}:L(L(L({},t.componentCls,L(L({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(x={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},L(L(L(L(L(L(L(L(L(L(x,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),L(L({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),L({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b$(e,t){if(e){if(typeof e=="string")return _S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _S(e,t)}}function C9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S9e(e){if(Array.isArray(e))return _S(e)}function _S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||C$(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},O9e=function(t,n){var r=t.menu,o=r===void 0?{}:r,a=t.indexRoute,i=t.path,l=i===void 0?"":i,s=t.children||[],u=o.name,d=u===void 0?t.name:u,f=o.icon,m=f===void 0?t.icon:f,h=o.hideChildren,g=h===void 0?t.hideChildren:h,v=o.flatMenu,p=v===void 0?t.flatMenu:v,y=a&&Object.keys(a).join(",")!=="redirect"?[mr({path:l,menu:o},a)].concat(s||[]):s,b=mr({},t);if(d&&(b.name=d),m&&(b.icon=m),y&&y.length){if(g)return delete b.children,b;var C=S$(mr(mr({},n),{},{data:y}),t);if(p)return C;delete b[So]}return b},os=function(t){return Array.isArray(t)&&t.length>0};function S$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,o=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(i){return i?os(i.children)||i.path||i.originPath||i.layout?!0:(i.redirect||i.unaccessible,!1):!1}).filter(function(i){var l,s;return!(i==null||(l=i.menu)===null||l===void 0)&&l.name||i!=null&&i.flatMenu||!(i==null||(s=i.menu)===null||s===void 0)&&s.flatMenu?!0:i.menu!==!1}).map(function(i){var l=mr(mr({},i),{},{path:i.path||i.originPath});return!l.children&&l[So]&&(l.children=l[So],delete l[So]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=i.children||i[So]||[],s=WF(i.path,t?t.path:"/"),u=i.name,d=P9e(i,o||"menu"),f=d!==!1&&a!==!1&&r&&d?r({id:d,defaultMessage:u}):u,m=t.pro_layout_parentKeys,h=m===void 0?[]:m;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var g=x9e(t,i9e),v=new Set([].concat(ZI(h),ZI(i.parentKeys||[])));t.key&&v.add(t.key);var p=mr(mr(mr({},g),{},{menu:void 0},i),{},{path:s,locale:d,key:i.key||E9e(mr(mr({},i),{},{path:s})),pro_layout_parentKeys:Array.from(v).filter(function(b){return b&&b!=="/"})});if(f?p.name=f:delete p.name,p.menu===void 0&&delete p.menu,os(l)){var y=S$(mr(mr({},e),{},{data:l,parentName:d||""}),p);os(y)&&(p.children=y)}return O9e(p,e)}).flat(1)}var I9e=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||os(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=mr({},n),o=r.children||n[So]||[];if(delete r[So],os(o)&&!r.hideChildrenInMenu&&o.some(function(i){return i&&!!i.name})){var a=e(o);if(a.length)return mr(mr({},r),{},{children:a})}return mr({},n)}).filter(function(n){return n})},M9e=function(e){v9e(n,e);var t=g9e(n);function n(){return f9e(this,n),t.apply(this,arguments)}return m9e(n,[{key:"get",value:function(o){var a;try{var i=d9e(this.entries()),l;try{for(i.s();!(l=i.n()).done;){var s=l9e(l.value,2),u=s[0],d=s[1],f=Vm(u);if(!C$(u)&&tf(f,[]).test(o)){a=d;break}}}catch(m){i.e(m)}finally{i.f()}}catch{a=void 0}return a}}]),n}(RS(Map)),R9e=function(t){var n=new M9e,r=function o(a,i){a.forEach(function(l){var s=l.children||l[So]||[];os(s)&&o(s,l);var u=WF(l.path,i?i.path:"/");n.set(Vm(u),l)})};return r(t),n},_9e=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[So];if(os(r)){var o=e(r);if(o.length)return mr({},n)}var a=mr({},n);return delete a[So],delete a.children,a}).filter(function(n){return n})},T9e=function(t,n,r,o){var a=S$({data:t,formatMessage:r,locale:n}),i=o?_9e(a):I9e(a),l=R9e(a);return{breadcrumb:l,menuData:i}};function e5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var o=Cd({},r);if(!(!o||!o.key)){!o.children&&o[So]&&(o.children=o[So],delete o[So]);var a=o.children||[];n[Vm(o.path||o.key||"/")]=Cd({},o),n[o.key||o.path||"/"]=Cd({},o),a&&(n=Cd(Cd({},n),e(a)))}}),n},D9e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(o){if(o==="/"&&n==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!C$(o)){var a=Vm(o);try{if(r&&tf("".concat(a)).test(n)||tf("".concat(a),[]).test(n)||tf("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(o,a){return o===n?10:a===n?-10:o.substr(1).split("/").length-a.substr(1).split("/").length})},F9e=function(t,n,r,o){var a=j9e(n),i=Object.keys(a),l=D9e(i,t||"/",o);return!l||l.length<1?[]:(r||(l=[l[l.length-1]]),l.map(function(s){var u=a[s]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(m){return d.has(m)?null:(d.set(m,!0),a[m])}).filter(function(m){return m});return u.key&&f.push(u),f}).flat(1))},k9e=function(t){var n=c.useContext(Ca),r=n.hashId,o=t.style,a=t.prefixCls,i=t.children,l=t.hasPageContainer,s=l===void 0?0:l,u=Z("".concat(a,"-content"),r,L(L({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),s>0)),d=t.ErrorBoundary||Khe;return t.ErrorBoundary===!1?F.jsx(ms.Content,{className:u,style:o,children:i}):F.jsx(d,{children:F.jsx(ms.Content,{className:u,style:o,children:i})})},L9e=function(){return F.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[F.jsxs("defs",{children:[F.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[F.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),F.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[F.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),F.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),F.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[F.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),F.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[F.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),F.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),F.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),F.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:F.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:F.jsx("g",{transform:"translate(20.000000, 20.000000)",children:F.jsxs("g",{children:[F.jsxs("g",{fillRule:"nonzero",children:[F.jsxs("g",{children:[F.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),F.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),F.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),F.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},t5=new kt("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),A9e=function(t){var n,r,o,a,i,l,s,u,d,f,m,h;return L({},"".concat(t.proComponentsCls,"-layout"),L(L(L({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,L(L(L(L(L(L(L(L(L({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),L(L({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:t5,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":L({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:t5,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((m=t.layout)===null||m===void 0||(m=m.header)===null||m===void 0?void 0:m.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function B9e(e,t){var n=t.proLayoutCollapsedWidth;return un("ProLayoutSiderMenu",function(r){var o=I(I({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[A9e(o)]})}var n5=function(t){var n,r=t.isMobile,o=t.siderWidth,a=t.collapsed,i=t.onCollapse,l=t.style,s=t.className,u=t.hide,d=t.prefixCls,f=c.useContext(Ca),m=f.token;c.useEffect(function(){r===!0&&(i==null||i(!0))},[r]);var h=so(t,["className","style"]),g=W.useContext(bt.ConfigContext),v=g.direction,p=B9e("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),y=p.wrapSSR,b=p.hashId,C=Z("".concat(d,"-sider"),s,b);if(u)return null;var S=Rm(!a,function(){return i==null?void 0:i(!0)});return y(r?F.jsx(_9,I(I({placement:v==="rtl"?"right":"left",className:Z("".concat(d,"-drawer-sider"),s)},S),{},{style:I({padding:0,height:"100vh"},l),onClose:function(){i==null||i(!0)},maskClosable:!0,closable:!1,width:o,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=m.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:F.jsx(KI,I(I({},h),{},{isMobile:!0,className:C,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):F.jsx(KI,I(I({className:C,originCollapsed:a},h),{},{style:l})))},z9e=function(){var t;return typeof process>"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},H9e=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p,y,b,C,S,$,x,w,O,E,P,M,D,R,_,T,k,N;return(n=z9e())!==null&&n!==void 0&&n.startsWith("5")?{}:L(L(L({},t.componentCls,L(L({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(x={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},L(L(L(L(L(L(L(L(L(L(x,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),L(L({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),L({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),L({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, @@ -543,7 +543,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(t.antCls,"-menu-submenu-title:hover"),L({color:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(D=t.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),L(L(L(L({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),L({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(R=t.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(_=t.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),L(L({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(T=t.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),L({color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(N=t.layout)===null||N===void 0||(N=N.sider)===null||N===void 0?void 0:N.colorTextMenuActive}))))},V9e=function(t){var n,r,o,a;return L(L({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,L(L(L(L({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=t.layout)===null||a===void 0?void 0:a.bgLayout}))};function W9e(e){return un("ProLayout",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[V9e(n),H9e(n)]})}function K9e(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var U9e=function(){var t;return typeof process>"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},G9e=function(t,n,r){var o=t,a=o.breadcrumbName,i=o.title,l=o.path,s=r.findIndex(function(u){return u.linkPath===t.path})===r.length-1;return s?F.jsx("span",{children:i||a}):F.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:i||a})},q9e=function(t,n){var r=n.formatMessage,o=n.menu;return t.locale&&r&&(o==null?void 0:o.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},Y9e=function(t,n){var r=t.get(n);if(!r){var o=Array.from(t.keys())||[],a=o.find(function(i){return PS(i.replace("?","")).test(n)});a&&(r=t.get(a))}return r||{path:""}},X9e=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Q9e=function(t,n,r){var o=K9e(t==null?void 0:t.pathname),a=o.map(function(i){var l=Y9e(n,i),s=q9e(l,r),u=l.hideInBreadcrumb;return s&&!u?{linkPath:i,breadcrumbName:s,title:s,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return a},Z9e=function(t){var n=X9e(t),r=n.location,o=n.breadcrumbMap;return r&&r.pathname&&o?Q9e(r,o,t):[]},J9e=function(t,n){var r=t.breadcrumbRender,o=t.itemRender,a=n.breadcrumbProps||{},i=a.minLength,l=i===void 0?2:i,s=Z9e(t),u=function(m){for(var h=o||G9e,g=arguments.length,v=new Array(g>1?g-1:0),p=1;p-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function eje(e){return Te(e).reduce(function(t,n){var r=X(n,2),o=r[0],a=r[1];return t[o]=a,t},{})}var tje=function e(t,n,r,o){var a=T9e(t,(n==null?void 0:n.locale)||!1,r,!0),i=a.menuData,l=a.breadcrumb;return o?e(o(i),n,r,void 0):{breadcrumb:eje(l),breadcrumbMap:l,menuData:i}},nje=function(t){var n=c.useState({}),r=X(n,2),o=r[0],a=r[1];return c.useEffect(function(){a(yo({layout:et(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),o},rje=["id","defaultMessage"],oje=["fixSiderbar","navTheme","layout"],r5=0,aje=function(t,n){var r;return t.headerRender===!1||t.pure?null:F.jsx(s7e,I(I({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},ije=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(I({},t),F.jsx(PNe,{})):null},lje=function(t,n){var r,o=t.layout,a=t.isMobile,i=t.selectedKeys,l=t.openKeys,s=t.splitMenus,u=t.suppressSiderWhenMenuEmpty,d=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(s&&(l!==!1||o==="mix")&&!a){var m=i||n,h=X(m,1),g=h[0];if(g){var v;f=((v=t.menuData)===null||v===void 0||(v=v.find(function(C){return C.key===g}))===null||v===void 0?void 0:v.children)||[]}else f=[]}var p=H0(f||[]);if(p&&(p==null?void 0:p.length)<1&&(s||u))return null;if(o==="top"&&!a){var y;return F.jsx(n5,I(I({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var b=F.jsx(n5,I(I({matchMenuKeys:n},t),{},{menuData:p,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return d?d(t,b):b},sje=function(t,n){var r=n.pageTitleRender,o=YI(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,o.title,o);if(typeof a=="string")return YI(I(I({},o),{},{title:a}));cn(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return o},cje=function(t,n,r){return t?n?64:r:0},uje=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p=t||{},y=p.children,b=p.onCollapse,C=p.location,S=C===void 0?{pathname:"/"}:C,$=p.contentStyle,x=p.route,w=p.defaultCollapsed,O=p.style,E=p.siderWidth,P=p.menu,M=p.siderMenuType,D=p.isChildrenLayout,R=p.menuDataRender,_=p.actionRef,T=p.bgLayoutImgList,k=p.formatMessage,N=p.loading,j=c.useMemo(function(){return E||(t.layout==="mix"?215:256)},[t.layout,E]),A=c.useContext(bt.ConfigContext),B=(n=t.prefixCls)!==null&&n!==void 0?n:A.getPrefixCls("pro"),z=Pt(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),H=X(z,2),V=H[0],U=H[1],K=c.useState(function(){return r5+=1,"pro-layout-".concat(r5)}),Y=X(K,1),G=Y[0],q=c.useCallback(function(je){var Ve=je.id,tt=je.defaultMessage,pt=ze(je,rje);if(k)return k(I({id:Ve,defaultMessage:tt},pt));var ut=NF();return ut[Ve]?ut[Ve]:tt},[k]),J=Pw([G,P==null?void 0:P.params],function(){var je=Tr(an().mark(function Ve(tt){var pt,ut,ct,lt;return an().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return ut=X(tt,2),ct=ut[1],U(!0),ft.next=4,P==null||(pt=P.request)===null||pt===void 0?void 0:pt.call(P,ct||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return lt=ft.sent,U(!1),ft.abrupt("return",lt);case 7:case"end":return ft.stop()}},Ve)}));return function(Ve){return je.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Q=J.data,ne=J.mutate,re=J.isLoading;c.useEffect(function(){U(re)},[re]);var oe=Ew(),te=oe.cache;c.useEffect(function(){return function(){te instanceof Map&&te.delete(G)}},[]);var ee=c.useMemo(function(){return tje(Q||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,q,R)},[q,P,R,Q,x==null?void 0:x.children,x==null?void 0:x.routes]),ie=ee||{},de=ie.breadcrumb,he=ie.breadcrumbMap,fe=ie.menuData,le=fe===void 0?[]:fe;_&&P!==null&&P!==void 0&&P.request&&(_.current={reload:function(){ne()}});var me=c.useMemo(function(){return F9e(S.pathname||"/",le||[],!0)},[S.pathname,le]),ye=c.useMemo(function(){return Array.from(new Set(me.map(function(je){return je.key||je.path||""})))},[me]),ge=me[me.length-1]||{},ve=nje(ge),$e=I(I({},t),ve),Ce=$e.fixSiderbar;$e.navTheme;var Oe=$e.layout,Re=ze($e,oje),Ee=lbe(),_e=c.useMemo(function(){return(Ee==="sm"||Ee==="xs")&&!t.disableMobile},[Ee,t.disableMobile]),Fe=Oe!=="top"&&!_e,qe=Pt(function(){return w!==void 0?w:!!(_e||Ee==="md")},{value:t.collapsed,onChange:b}),Ze=X(qe,2),ke=Ze[0],Be=Ze[1],Ue=so(I(I(I({prefixCls:B},t),{},{siderWidth:j},ve),{},{formatMessage:q,breadcrumb:de,menu:I(I({},P),{},{type:M||(P==null?void 0:P.type),loading:V}),layout:Oe}),["className","style","breadcrumbRender"]),Je=sje(I(I({pathname:S.pathname},Ue),{},{breadcrumbMap:he}),t),nt=J9e(I(I({},Ue),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:he}),t),mt=lje(I(I({},Ue),{},{menuData:le,onCollapse:Be,isMobile:_e,collapsed:ke}),ye),gt=aje(I(I({},Ue),{},{children:null,hasSiderMenu:!!mt,menuData:le,isMobile:_e,collapsed:ke,onCollapse:Be}),ye),yt=ije(I({isMobile:_e,collapsed:ke},Ue)),It=c.useContext(Wf),ue=It.isChildrenLayout,se=D!==void 0?D:ue,pe="".concat(B,"-layout"),Se=W9e(pe),xe=Se.wrapSSR,Ne=Se.hashId,We=Z(t.className,Ne,"ant-design-pro",pe,L(L(L(L(L({},"screen-".concat(Ee),Ee),"".concat(pe,"-top-menu"),Oe==="top"),"".concat(pe,"-is-children"),se),"".concat(pe,"-fix-siderbar"),Ce),"".concat(pe,"-").concat(Oe),Oe)),He=cje(!!Fe,ke,j),Me={position:"relative"};(se||$&&$.minHeight)&&(Me.minHeight=0),c.useEffect(function(){var je;(je=t.onPageChange)===null||je===void 0||je.call(t,t.location)},[S.pathname,(r=S.pathname)===null||r===void 0?void 0:r.search]);var Le=c.useState(!1),Xe=X(Le,2),Ke=Xe[0],it=Xe[1],ot=c.useState(0),Mt=X(ot,2),Ct=Mt[0],st=Mt[1];Bye(Je,t.title||!1);var Qe=c.useContext(Ca),Ae=Qe.token,Pe=c.useMemo(function(){return T&&T.length>0?T==null?void 0:T.map(function(je,Ve){return F.jsx("img",{src:je.src,style:I({position:"absolute"},je)},Ve)}):null},[T]);return xe(F.jsx(Wf.Provider,{value:I(I({},Ue),{},{breadcrumb:nt,menuData:le,isMobile:_e,collapsed:ke,hasPageContainer:Ct,setHasPageContainer:st,isChildrenLayout:!0,title:Je.pageName,hasSiderMenu:!!mt,hasHeader:!!gt,siderWidth:He,hasFooter:!!yt,hasFooterToolbar:Ke,setHasFooterToolbar:it,pageTitleInfo:Je,matchMenus:me,matchMenuKeys:ye,currentMenu:ge}),children:t.pure?F.jsx(F.Fragment,{children:y}):F.jsxs("div",{className:We,children:[Pe||(o=Ae.layout)!==null&&o!==void 0&&o.bgLayout?F.jsx("div",{className:Z("".concat(pe,"-bg-list"),Ne),children:Pe}):null,F.jsxs(ms,{style:I({minHeight:"100%",flexDirection:mt?"row":void 0},O),children:[F.jsx(bt,{theme:{hashed:Tc(),token:{controlHeightLG:((a=Ae.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(Ae==null?void 0:Ae.controlHeightLG)},components:{Menu:Uj({colorItemBg:((i=Ae.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((l=Ae.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:Ae.borderRadius,colorItemBgSelected:((s=Ae.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected)||(Ae==null?void 0:Ae.colorBgTextHover),colorItemBgHover:((u=Ae.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(Ae==null?void 0:Ae.colorBgTextHover),colorItemBgActive:((d=Ae.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(Ae==null?void 0:Ae.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Ae.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Ae==null?void 0:Ae.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((m=Ae.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenu)||(Ae==null?void 0:Ae.colorTextSecondary),colorItemTextHover:((h=Ae.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((g=Ae.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ae==null?void 0:Ae.colorBgElevated,subMenuItemBg:Ae==null?void 0:Ae.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ae==null?void 0:Ae.colorBgElevated})}},children:mt}),F.jsxs("div",{style:Me,className:"".concat(pe,"-container ").concat(Ne).trim(),children:[gt,F.jsx(k9e,I(I({hasPageContainer:Ct,isChildrenLayout:se},Re),{},{hasHeader:!!gt,prefixCls:pe,style:$,children:N?F.jsx(OF,{}):y})),yt,Ke&&F.jsx("div",{className:"".concat(pe,"-has-footer"),style:{height:64,marginBlockStart:(v=Ae.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},dje=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return F.jsx(bt,{theme:n?{token:{colorPrimary:n}}:void 0,children:F.jsx(Mm,I(I({autoClearCache:!0},r),{},{token:t.token,prefixCls:t.prefixCls,children:F.jsx(uje,I(I({logo:F.jsx(L9e,{})},pl),{},{location:gl()?window.location:void 0},t))}))})};function fje(){return F.jsx(Mm,{dark:!0,children:F.jsx(x0,{})})}const mje=Object.freeze(Object.defineProperty({__proto__:null,default:fje},Symbol.toStringTag,{value:"Module"}));let nf;const vje=()=>{const e=oT.useApp();return nf=e.message,e.modal,e.notification,null};function KF(e,t){return function(){return e.apply(t,arguments)}}const{toString:gje}=Object.prototype,{getPrototypeOf:x$}=Object,V0=(e=>t=>{const n=gje.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>V0(t)===e),W0=e=>t=>typeof t===e,{isArray:Wu}=Array,Gf=W0("undefined");function pje(e){return e!==null&&!Gf(e)&&e.constructor!==null&&!Gf(e.constructor)&&Ao(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UF=Ka("ArrayBuffer");function hje(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UF(e.buffer),t}const yje=W0("string"),Ao=W0("function"),GF=W0("number"),K0=e=>e!==null&&typeof e=="object",bje=e=>e===!0||e===!1,Cg=e=>{if(V0(e)!=="object")return!1;const t=x$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Cje=Ka("Date"),Sje=Ka("File"),xje=Ka("Blob"),wje=Ka("FileList"),$je=e=>K0(e)&&Ao(e.pipe),Eje=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ao(e.append)&&((t=V0(e))==="formdata"||t==="object"&&Ao(e.toString)&&e.toString()==="[object FormData]"))},Pje=Ka("URLSearchParams"),Oje=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Wu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const YF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XF=e=>!Gf(e)&&e!==YF;function TS(){const{caseless:e}=XF(this)&&this||{},t={},n=(r,o)=>{const a=e&&qF(t,o)||o;Cg(t[a])&&Cg(r)?t[a]=TS(t[a],r):Cg(r)?t[a]=TS({},r):Wu(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r(Wm(t,(o,a)=>{n&&Ao(o)?e[a]=KF(o,n):e[a]=o},{allOwnKeys:r}),e),Mje=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rje=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_je=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&x$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tje=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Nje=e=>{if(!e)return null;if(Wu(e))return e;let t=e.length;if(!GF(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jje=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x$(Uint8Array)),Dje=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Fje=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kje=Ka("HTMLFormElement"),Lje=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),o5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Aje=Ka("RegExp"),QF=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wm(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},Bje=e=>{QF(e,(t,n)=>{if(Ao(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ao(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zje=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Wu(e)?r(e):r(String(e).split(t)),n},Hje=()=>{},Vje=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Db="abcdefghijklmnopqrstuvwxyz",a5="0123456789",ZF={DIGIT:a5,ALPHA:Db,ALPHA_DIGIT:Db+Db.toUpperCase()+a5},Wje=(e=16,t=ZF.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kje(e){return!!(e&&Ao(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Uje=e=>{const t=new Array(10),n=(r,o)=>{if(K0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=Wu(r)?[]:{};return Wm(r,(i,l)=>{const s=n(i,o+1);!Gf(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},Gje=Ka("AsyncFunction"),qje=e=>e&&(K0(e)||Ao(e))&&Ao(e.then)&&Ao(e.catch),Ge={isArray:Wu,isArrayBuffer:UF,isBuffer:pje,isFormData:Eje,isArrayBufferView:hje,isString:yje,isNumber:GF,isBoolean:bje,isObject:K0,isPlainObject:Cg,isUndefined:Gf,isDate:Cje,isFile:Sje,isBlob:xje,isRegExp:Aje,isFunction:Ao,isStream:$je,isURLSearchParams:Pje,isTypedArray:jje,isFileList:wje,forEach:Wm,merge:TS,extend:Ije,trim:Oje,stripBOM:Mje,inherits:Rje,toFlatObject:_je,kindOf:V0,kindOfTest:Ka,endsWith:Tje,toArray:Nje,forEachEntry:Dje,matchAll:Fje,isHTMLForm:kje,hasOwnProperty:o5,hasOwnProp:o5,reduceDescriptors:QF,freezeMethods:Bje,toObjectSet:zje,toCamelCase:Lje,noop:Hje,toFiniteNumber:Vje,findKey:qF,global:YF,isContextDefined:XF,ALPHABET:ZF,generateString:Wje,isSpecCompliantForm:Kje,toJSONObject:Uje,isAsyncFn:Gje,isThenable:qje};function sn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Ge.inherits(sn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ge.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const JF=sn.prototype,ek={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ek[e]={value:e}});Object.defineProperties(sn,ek);Object.defineProperty(JF,"isAxiosError",{value:!0});sn.from=(e,t,n,r,o,a)=>{const i=Object.create(JF);return Ge.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),sn.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Yje=null;function NS(e){return Ge.isPlainObject(e)||Ge.isArray(e)}function tk(e){return Ge.endsWith(e,"[]")?e.slice(0,-2):e}function i5(e,t,n){return e?e.concat(t).map(function(o,a){return o=tk(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Xje(e){return Ge.isArray(e)&&!e.some(NS)}const Qje=Ge.toFlatObject(Ge,{},null,function(t){return/^is[A-Z]/.test(t)});function U0(e,t,n){if(!Ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ge.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!Ge.isUndefined(p[v])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Ge.isSpecCompliantForm(t);if(!Ge.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Ge.isDate(g))return g.toISOString();if(!s&&Ge.isBlob(g))throw new sn("Blob is not supported. Use a Buffer instead.");return Ge.isArrayBuffer(g)||Ge.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,p){let y=g;if(g&&!p&&typeof g=="object"){if(Ge.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(Ge.isArray(g)&&Xje(g)||(Ge.isFileList(g)||Ge.endsWith(v,"[]"))&&(y=Ge.toArray(g)))return v=tk(v),y.forEach(function(C,S){!(Ge.isUndefined(C)||C===null)&&t.append(i===!0?i5([v],S,a):i===null?v:v+"[]",u(C))}),!1}return NS(g)?!0:(t.append(i5(p,v,a),u(g)),!1)}const f=[],m=Object.assign(Qje,{defaultVisitor:d,convertValue:u,isVisitable:NS});function h(g,v){if(!Ge.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),Ge.forEach(g,function(y,b){(!(Ge.isUndefined(y)||y===null)&&o.call(t,y,Ge.isString(b)?b.trim():b,v,m))===!0&&h(y,v?v.concat(b):[b])}),f.pop()}}if(!Ge.isObject(e))throw new TypeError("data must be an object");return h(e),t}function l5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w$(e,t){this._pairs=[],e&&U0(e,this,t)}const nk=w$.prototype;nk.append=function(t,n){this._pairs.push([t,n])};nk.toString=function(t){const n=t?function(r){return t.call(this,r,l5)}:l5;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Zje(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rk(e,t,n){if(!t)return e;const r=n&&n.encode||Zje,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Ge.isURLSearchParams(t)?t.toString():new w$(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class s5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ge.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jje=typeof URLSearchParams<"u"?URLSearchParams:w$,eDe=typeof FormData<"u"?FormData:null,tDe=typeof Blob<"u"?Blob:null,nDe={isBrowser:!0,classes:{URLSearchParams:Jje,FormData:eDe,Blob:tDe},protocols:["http","https","file","blob","url","data"]},ak=typeof window<"u"&&typeof document<"u",rDe=(e=>ak&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),oDe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ak,hasStandardBrowserEnv:rDe,hasStandardBrowserWebWorkerEnv:oDe},Symbol.toStringTag,{value:"Module"})),Ma={...aDe,...nDe};function iDe(e,t){return U0(e,new Ma.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Ma.isNode&&Ge.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function lDe(e){return Ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sDe(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return i=!i&&Ge.isArray(o)?o.length:i,s?(Ge.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Ge.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Ge.isArray(o[i])&&(o[i]=sDe(o[i])),!l)}if(Ge.isFormData(e)&&Ge.isFunction(e.entries)){const n={};return Ge.forEachEntry(e,(r,o)=>{t(lDe(r),o,n,0)}),n}return null}function cDe(e,t,n){if(Ge.isString(e))try{return(t||JSON.parse)(e),Ge.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $$={transitional:ok,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Ge.isObject(t);if(a&&Ge.isHTMLForm(t)&&(t=new FormData(t)),Ge.isFormData(t))return o?JSON.stringify(ik(t)):t;if(Ge.isArrayBuffer(t)||Ge.isBuffer(t)||Ge.isStream(t)||Ge.isFile(t)||Ge.isBlob(t))return t;if(Ge.isArrayBufferView(t))return t.buffer;if(Ge.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iDe(t,this.formSerializer).toString();if((l=Ge.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return U0(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),cDe(t)):t}],transformResponse:[function(t){const n=this.transitional||$$.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Ge.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?sn.from(l,sn.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ma.classes.FormData,Blob:Ma.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ge.forEach(["delete","get","head","post","put","patch"],e=>{$$.headers[e]={}});const E$=$$,uDe=Ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dDe=e=>{const t={};let n,r,o;return e&&e.split(` + `).concat(t.antCls,"-menu-submenu-title:hover"),L({color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(N=t.layout)===null||N===void 0||(N=N.sider)===null||N===void 0?void 0:N.colorTextMenuActive}))))},V9e=function(t){var n,r,o,a;return L(L({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,L(L(L(L({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=t.layout)===null||a===void 0?void 0:a.bgLayout}))};function W9e(e){return un("ProLayout",function(t){var n=I(I({},t),{},{componentCls:".".concat(e)});return[V9e(n),H9e(n)]})}function K9e(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var U9e=function(){var t;return typeof process>"u"?pa:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||pa},G9e=function(t,n,r){var o=t,a=o.breadcrumbName,i=o.title,l=o.path,s=r.findIndex(function(u){return u.linkPath===t.path})===r.length-1;return s?F.jsx("span",{children:i||a}):F.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:i||a})},q9e=function(t,n){var r=n.formatMessage,o=n.menu;return t.locale&&r&&(o==null?void 0:o.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},Y9e=function(t,n){var r=t.get(n);if(!r){var o=Array.from(t.keys())||[],a=o.find(function(i){return PS(i.replace("?","")).test(n)});a&&(r=t.get(a))}return r||{path:""}},X9e=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Q9e=function(t,n,r){var o=K9e(t==null?void 0:t.pathname),a=o.map(function(i){var l=Y9e(n,i),s=q9e(l,r),u=l.hideInBreadcrumb;return s&&!u?{linkPath:i,breadcrumbName:s,title:s,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return a},Z9e=function(t){var n=X9e(t),r=n.location,o=n.breadcrumbMap;return r&&r.pathname&&o?Q9e(r,o,t):[]},J9e=function(t,n){var r=t.breadcrumbRender,o=t.itemRender,a=n.breadcrumbProps||{},i=a.minLength,l=i===void 0?2:i,s=Z9e(t),u=function(m){for(var h=o||G9e,g=arguments.length,v=new Array(g>1?g-1:0),p=1;p-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function eje(e){return Te(e).reduce(function(t,n){var r=X(n,2),o=r[0],a=r[1];return t[o]=a,t},{})}var tje=function e(t,n,r,o){var a=T9e(t,(n==null?void 0:n.locale)||!1,r,!0),i=a.menuData,l=a.breadcrumb;return o?e(o(i),n,r,void 0):{breadcrumb:eje(l),breadcrumbMap:l,menuData:i}},nje=function(t){var n=c.useState({}),r=X(n,2),o=r[0],a=r[1];return c.useEffect(function(){a(yo({layout:et(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),o},rje=["id","defaultMessage"],oje=["fixSiderbar","navTheme","layout"],r5=0,aje=function(t,n){var r;return t.headerRender===!1||t.pure?null:F.jsx(s7e,I(I({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},ije=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(I({},t),F.jsx(PNe,{})):null},lje=function(t,n){var r,o=t.layout,a=t.isMobile,i=t.selectedKeys,l=t.openKeys,s=t.splitMenus,u=t.suppressSiderWhenMenuEmpty,d=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(s&&(l!==!1||o==="mix")&&!a){var m=i||n,h=X(m,1),g=h[0];if(g){var v;f=((v=t.menuData)===null||v===void 0||(v=v.find(function(C){return C.key===g}))===null||v===void 0?void 0:v.children)||[]}else f=[]}var p=H0(f||[]);if(p&&(p==null?void 0:p.length)<1&&(s||u))return null;if(o==="top"&&!a){var y;return F.jsx(n5,I(I({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var b=F.jsx(n5,I(I({matchMenuKeys:n},t),{},{menuData:p,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return d?d(t,b):b},sje=function(t,n){var r=n.pageTitleRender,o=YI(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,o.title,o);if(typeof a=="string")return YI(I(I({},o),{},{title:a}));cn(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return o},cje=function(t,n,r){return t?n?64:r:0},uje=function(t){var n,r,o,a,i,l,s,u,d,f,m,h,g,v,p=t||{},y=p.children,b=p.onCollapse,C=p.location,S=C===void 0?{pathname:"/"}:C,$=p.contentStyle,x=p.route,w=p.defaultCollapsed,O=p.style,E=p.siderWidth,P=p.menu,M=p.siderMenuType,D=p.isChildrenLayout,R=p.menuDataRender,_=p.actionRef,T=p.bgLayoutImgList,k=p.formatMessage,N=p.loading,j=c.useMemo(function(){return E||(t.layout==="mix"?215:256)},[t.layout,E]),A=c.useContext(bt.ConfigContext),B=(n=t.prefixCls)!==null&&n!==void 0?n:A.getPrefixCls("pro"),z=Pt(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),H=X(z,2),V=H[0],U=H[1],K=c.useState(function(){return r5+=1,"pro-layout-".concat(r5)}),Y=X(K,1),G=Y[0],q=c.useCallback(function(je){var Ve=je.id,tt=je.defaultMessage,pt=ze(je,rje);if(k)return k(I({id:Ve,defaultMessage:tt},pt));var ut=NF();return ut[Ve]?ut[Ve]:tt},[k]),J=Pw([G,P==null?void 0:P.params],function(){var je=Tr(an().mark(function Ve(tt){var pt,ut,ct,lt;return an().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return ut=X(tt,2),ct=ut[1],U(!0),ft.next=4,P==null||(pt=P.request)===null||pt===void 0?void 0:pt.call(P,ct||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return lt=ft.sent,U(!1),ft.abrupt("return",lt);case 7:case"end":return ft.stop()}},Ve)}));return function(Ve){return je.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Q=J.data,ne=J.mutate,re=J.isLoading;c.useEffect(function(){U(re)},[re]);var oe=Ew(),te=oe.cache;c.useEffect(function(){return function(){te instanceof Map&&te.delete(G)}},[]);var ee=c.useMemo(function(){return tje(Q||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,q,R)},[q,P,R,Q,x==null?void 0:x.children,x==null?void 0:x.routes]),ie=ee||{},de=ie.breadcrumb,he=ie.breadcrumbMap,fe=ie.menuData,le=fe===void 0?[]:fe;_&&P!==null&&P!==void 0&&P.request&&(_.current={reload:function(){ne()}});var me=c.useMemo(function(){return F9e(S.pathname||"/",le||[],!0)},[S.pathname,le]),ye=c.useMemo(function(){return Array.from(new Set(me.map(function(je){return je.key||je.path||""})))},[me]),ge=me[me.length-1]||{},ve=nje(ge),$e=I(I({},t),ve),Ce=$e.fixSiderbar;$e.navTheme;var Oe=$e.layout,Re=ze($e,oje),Ee=lbe(),_e=c.useMemo(function(){return(Ee==="sm"||Ee==="xs")&&!t.disableMobile},[Ee,t.disableMobile]),Fe=Oe!=="top"&&!_e,qe=Pt(function(){return w!==void 0?w:!!(_e||Ee==="md")},{value:t.collapsed,onChange:b}),Ze=X(qe,2),ke=Ze[0],Be=Ze[1],Ue=so(I(I(I({prefixCls:B},t),{},{siderWidth:j},ve),{},{formatMessage:q,breadcrumb:de,menu:I(I({},P),{},{type:M||(P==null?void 0:P.type),loading:V}),layout:Oe}),["className","style","breadcrumbRender"]),Je=sje(I(I({pathname:S.pathname},Ue),{},{breadcrumbMap:he}),t),nt=J9e(I(I({},Ue),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:he}),t),mt=lje(I(I({},Ue),{},{menuData:le,onCollapse:Be,isMobile:_e,collapsed:ke}),ye),gt=aje(I(I({},Ue),{},{children:null,hasSiderMenu:!!mt,menuData:le,isMobile:_e,collapsed:ke,onCollapse:Be}),ye),yt=ije(I({isMobile:_e,collapsed:ke},Ue)),It=c.useContext(Wf),ue=It.isChildrenLayout,se=D!==void 0?D:ue,pe="".concat(B,"-layout"),Se=W9e(pe),xe=Se.wrapSSR,Ne=Se.hashId,We=Z(t.className,Ne,"ant-design-pro",pe,L(L(L(L(L({},"screen-".concat(Ee),Ee),"".concat(pe,"-top-menu"),Oe==="top"),"".concat(pe,"-is-children"),se),"".concat(pe,"-fix-siderbar"),Ce),"".concat(pe,"-").concat(Oe),Oe)),He=cje(!!Fe,ke,j),Me={position:"relative"};(se||$&&$.minHeight)&&(Me.minHeight=0),c.useEffect(function(){var je;(je=t.onPageChange)===null||je===void 0||je.call(t,t.location)},[S.pathname,(r=S.pathname)===null||r===void 0?void 0:r.search]);var Le=c.useState(!1),Xe=X(Le,2),Ke=Xe[0],it=Xe[1],ot=c.useState(0),Mt=X(ot,2),Ct=Mt[0],st=Mt[1];Bye(Je,t.title||!1);var Qe=c.useContext(Ca),Ae=Qe.token,Pe=c.useMemo(function(){return T&&T.length>0?T==null?void 0:T.map(function(je,Ve){return F.jsx("img",{src:je.src,style:I({position:"absolute"},je)},Ve)}):null},[T]);return xe(F.jsx(Wf.Provider,{value:I(I({},Ue),{},{breadcrumb:nt,menuData:le,isMobile:_e,collapsed:ke,hasPageContainer:Ct,setHasPageContainer:st,isChildrenLayout:!0,title:Je.pageName,hasSiderMenu:!!mt,hasHeader:!!gt,siderWidth:He,hasFooter:!!yt,hasFooterToolbar:Ke,setHasFooterToolbar:it,pageTitleInfo:Je,matchMenus:me,matchMenuKeys:ye,currentMenu:ge}),children:t.pure?F.jsx(F.Fragment,{children:y}):F.jsxs("div",{className:We,children:[Pe||(o=Ae.layout)!==null&&o!==void 0&&o.bgLayout?F.jsx("div",{className:Z("".concat(pe,"-bg-list"),Ne),children:Pe}):null,F.jsxs(ms,{style:I({minHeight:"100%",flexDirection:mt?"row":void 0},O),children:[F.jsx(bt,{theme:{hashed:Tc(),token:{controlHeightLG:((a=Ae.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(Ae==null?void 0:Ae.controlHeightLG)},components:{Menu:Uj({colorItemBg:((i=Ae.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((l=Ae.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:Ae.borderRadius,colorItemBgSelected:((s=Ae.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected)||(Ae==null?void 0:Ae.colorBgTextHover),colorItemBgHover:((u=Ae.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(Ae==null?void 0:Ae.colorBgTextHover),colorItemBgActive:((d=Ae.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(Ae==null?void 0:Ae.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Ae.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Ae==null?void 0:Ae.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((m=Ae.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenu)||(Ae==null?void 0:Ae.colorTextSecondary),colorItemTextHover:((h=Ae.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((g=Ae.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ae==null?void 0:Ae.colorBgElevated,subMenuItemBg:Ae==null?void 0:Ae.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ae==null?void 0:Ae.colorBgElevated})}},children:mt}),F.jsxs("div",{style:Me,className:"".concat(pe,"-container ").concat(Ne).trim(),children:[gt,F.jsx(k9e,I(I({hasPageContainer:Ct,isChildrenLayout:se},Re),{},{hasHeader:!!gt,prefixCls:pe,style:$,children:N?F.jsx(OF,{}):y})),yt,Ke&&F.jsx("div",{className:"".concat(pe,"-has-footer"),style:{height:64,marginBlockStart:(v=Ae.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},dje=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return F.jsx(bt,{theme:n?{token:{colorPrimary:n}}:void 0,children:F.jsx(Mm,I(I({autoClearCache:!0},r),{},{token:t.token,prefixCls:t.prefixCls,children:F.jsx(uje,I(I({logo:F.jsx(L9e,{})},pl),{},{location:gl()?window.location:void 0},t))}))})};function fje(){return F.jsx(Mm,{dark:!0,children:F.jsx(dh,{})})}const mje=Object.freeze(Object.defineProperty({__proto__:null,default:fje},Symbol.toStringTag,{value:"Module"}));let nf;const vje=()=>{const e=wT.useApp();return nf=e.message,e.modal,e.notification,null};function KF(e,t){return function(){return e.apply(t,arguments)}}const{toString:gje}=Object.prototype,{getPrototypeOf:x$}=Object,V0=(e=>t=>{const n=gje.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>V0(t)===e),W0=e=>t=>typeof t===e,{isArray:Wu}=Array,Gf=W0("undefined");function pje(e){return e!==null&&!Gf(e)&&e.constructor!==null&&!Gf(e.constructor)&&Ao(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UF=Ka("ArrayBuffer");function hje(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UF(e.buffer),t}const yje=W0("string"),Ao=W0("function"),GF=W0("number"),K0=e=>e!==null&&typeof e=="object",bje=e=>e===!0||e===!1,Cg=e=>{if(V0(e)!=="object")return!1;const t=x$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Cje=Ka("Date"),Sje=Ka("File"),xje=Ka("Blob"),wje=Ka("FileList"),$je=e=>K0(e)&&Ao(e.pipe),Eje=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ao(e.append)&&((t=V0(e))==="formdata"||t==="object"&&Ao(e.toString)&&e.toString()==="[object FormData]"))},Pje=Ka("URLSearchParams"),Oje=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Wu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const YF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XF=e=>!Gf(e)&&e!==YF;function TS(){const{caseless:e}=XF(this)&&this||{},t={},n=(r,o)=>{const a=e&&qF(t,o)||o;Cg(t[a])&&Cg(r)?t[a]=TS(t[a],r):Cg(r)?t[a]=TS({},r):Wu(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r(Wm(t,(o,a)=>{n&&Ao(o)?e[a]=KF(o,n):e[a]=o},{allOwnKeys:r}),e),Mje=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rje=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_je=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&x$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tje=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Nje=e=>{if(!e)return null;if(Wu(e))return e;let t=e.length;if(!GF(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jje=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x$(Uint8Array)),Dje=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Fje=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kje=Ka("HTMLFormElement"),Lje=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),o5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Aje=Ka("RegExp"),QF=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wm(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},Bje=e=>{QF(e,(t,n)=>{if(Ao(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ao(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zje=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Wu(e)?r(e):r(String(e).split(t)),n},Hje=()=>{},Vje=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Db="abcdefghijklmnopqrstuvwxyz",a5="0123456789",ZF={DIGIT:a5,ALPHA:Db,ALPHA_DIGIT:Db+Db.toUpperCase()+a5},Wje=(e=16,t=ZF.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kje(e){return!!(e&&Ao(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Uje=e=>{const t=new Array(10),n=(r,o)=>{if(K0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=Wu(r)?[]:{};return Wm(r,(i,l)=>{const s=n(i,o+1);!Gf(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},Gje=Ka("AsyncFunction"),qje=e=>e&&(K0(e)||Ao(e))&&Ao(e.then)&&Ao(e.catch),Ge={isArray:Wu,isArrayBuffer:UF,isBuffer:pje,isFormData:Eje,isArrayBufferView:hje,isString:yje,isNumber:GF,isBoolean:bje,isObject:K0,isPlainObject:Cg,isUndefined:Gf,isDate:Cje,isFile:Sje,isBlob:xje,isRegExp:Aje,isFunction:Ao,isStream:$je,isURLSearchParams:Pje,isTypedArray:jje,isFileList:wje,forEach:Wm,merge:TS,extend:Ije,trim:Oje,stripBOM:Mje,inherits:Rje,toFlatObject:_je,kindOf:V0,kindOfTest:Ka,endsWith:Tje,toArray:Nje,forEachEntry:Dje,matchAll:Fje,isHTMLForm:kje,hasOwnProperty:o5,hasOwnProp:o5,reduceDescriptors:QF,freezeMethods:Bje,toObjectSet:zje,toCamelCase:Lje,noop:Hje,toFiniteNumber:Vje,findKey:qF,global:YF,isContextDefined:XF,ALPHABET:ZF,generateString:Wje,isSpecCompliantForm:Kje,toJSONObject:Uje,isAsyncFn:Gje,isThenable:qje};function sn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Ge.inherits(sn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ge.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const JF=sn.prototype,ek={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ek[e]={value:e}});Object.defineProperties(sn,ek);Object.defineProperty(JF,"isAxiosError",{value:!0});sn.from=(e,t,n,r,o,a)=>{const i=Object.create(JF);return Ge.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),sn.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Yje=null;function NS(e){return Ge.isPlainObject(e)||Ge.isArray(e)}function tk(e){return Ge.endsWith(e,"[]")?e.slice(0,-2):e}function i5(e,t,n){return e?e.concat(t).map(function(o,a){return o=tk(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Xje(e){return Ge.isArray(e)&&!e.some(NS)}const Qje=Ge.toFlatObject(Ge,{},null,function(t){return/^is[A-Z]/.test(t)});function U0(e,t,n){if(!Ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ge.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!Ge.isUndefined(p[v])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Ge.isSpecCompliantForm(t);if(!Ge.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Ge.isDate(g))return g.toISOString();if(!s&&Ge.isBlob(g))throw new sn("Blob is not supported. Use a Buffer instead.");return Ge.isArrayBuffer(g)||Ge.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,p){let y=g;if(g&&!p&&typeof g=="object"){if(Ge.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(Ge.isArray(g)&&Xje(g)||(Ge.isFileList(g)||Ge.endsWith(v,"[]"))&&(y=Ge.toArray(g)))return v=tk(v),y.forEach(function(C,S){!(Ge.isUndefined(C)||C===null)&&t.append(i===!0?i5([v],S,a):i===null?v:v+"[]",u(C))}),!1}return NS(g)?!0:(t.append(i5(p,v,a),u(g)),!1)}const f=[],m=Object.assign(Qje,{defaultVisitor:d,convertValue:u,isVisitable:NS});function h(g,v){if(!Ge.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),Ge.forEach(g,function(y,b){(!(Ge.isUndefined(y)||y===null)&&o.call(t,y,Ge.isString(b)?b.trim():b,v,m))===!0&&h(y,v?v.concat(b):[b])}),f.pop()}}if(!Ge.isObject(e))throw new TypeError("data must be an object");return h(e),t}function l5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w$(e,t){this._pairs=[],e&&U0(e,this,t)}const nk=w$.prototype;nk.append=function(t,n){this._pairs.push([t,n])};nk.toString=function(t){const n=t?function(r){return t.call(this,r,l5)}:l5;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Zje(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rk(e,t,n){if(!t)return e;const r=n&&n.encode||Zje,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Ge.isURLSearchParams(t)?t.toString():new w$(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class s5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ge.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jje=typeof URLSearchParams<"u"?URLSearchParams:w$,eDe=typeof FormData<"u"?FormData:null,tDe=typeof Blob<"u"?Blob:null,nDe={isBrowser:!0,classes:{URLSearchParams:Jje,FormData:eDe,Blob:tDe},protocols:["http","https","file","blob","url","data"]},ak=typeof window<"u"&&typeof document<"u",rDe=(e=>ak&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),oDe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ak,hasStandardBrowserEnv:rDe,hasStandardBrowserWebWorkerEnv:oDe},Symbol.toStringTag,{value:"Module"})),Ma={...aDe,...nDe};function iDe(e,t){return U0(e,new Ma.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Ma.isNode&&Ge.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function lDe(e){return Ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sDe(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return i=!i&&Ge.isArray(o)?o.length:i,s?(Ge.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Ge.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Ge.isArray(o[i])&&(o[i]=sDe(o[i])),!l)}if(Ge.isFormData(e)&&Ge.isFunction(e.entries)){const n={};return Ge.forEachEntry(e,(r,o)=>{t(lDe(r),o,n,0)}),n}return null}function cDe(e,t,n){if(Ge.isString(e))try{return(t||JSON.parse)(e),Ge.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $$={transitional:ok,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Ge.isObject(t);if(a&&Ge.isHTMLForm(t)&&(t=new FormData(t)),Ge.isFormData(t))return o?JSON.stringify(ik(t)):t;if(Ge.isArrayBuffer(t)||Ge.isBuffer(t)||Ge.isStream(t)||Ge.isFile(t)||Ge.isBlob(t))return t;if(Ge.isArrayBufferView(t))return t.buffer;if(Ge.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iDe(t,this.formSerializer).toString();if((l=Ge.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return U0(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),cDe(t)):t}],transformResponse:[function(t){const n=this.transitional||$$.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Ge.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?sn.from(l,sn.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ma.classes.FormData,Blob:Ma.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ge.forEach(["delete","get","head","post","put","patch"],e=>{$$.headers[e]={}});const E$=$$,uDe=Ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dDe=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&uDe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},c5=Symbol("internals");function Sd(e){return e&&String(e).trim().toLowerCase()}function Sg(e){return e===!1||e==null?e:Ge.isArray(e)?e.map(Sg):String(e)}function fDe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const mDe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fb(e,t,n,r,o){if(Ge.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ge.isString(t)){if(Ge.isString(r))return t.indexOf(r)!==-1;if(Ge.isRegExp(r))return r.test(t)}}function vDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gDe(e,t){const n=Ge.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class G0{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,u){const d=Sd(s);if(!d)throw new Error("header name must be a non-empty string");const f=Ge.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||s]=Sg(l))}const i=(l,s)=>Ge.forEach(l,(u,d)=>a(u,d,s));return Ge.isPlainObject(t)||t instanceof this.constructor?i(t,n):Ge.isString(t)&&(t=t.trim())&&!mDe(t)?i(dDe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Sd(t),t){const r=Ge.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return fDe(o);if(Ge.isFunction(n))return n.call(this,o,r);if(Ge.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sd(t),t){const r=Ge.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=Sd(i),i){const l=Ge.findKey(r,i);l&&(!n||Fb(r,r[l],l,n))&&(delete r[l],o=!0)}}return Ge.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||Fb(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Ge.forEach(this,(o,a)=>{const i=Ge.findKey(r,a);if(i){n[i]=Sg(o),delete n[a];return}const l=t?vDe(a):String(a).trim();l!==a&&delete n[a],n[l]=Sg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ge.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ge.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[c5]=this[c5]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Sd(i);r[l]||(gDe(o,i),r[l]=!0)}return Ge.isArray(t)?t.forEach(a):a(t),this}}G0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ge.reduceDescriptors(G0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ge.freezeMethods(G0);const li=G0;function kb(e,t){const n=this||E$,r=t||n,o=li.from(r.headers);let a=r.data;return Ge.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function lk(e){return!!(e&&e.__CANCEL__)}function Km(e,t,n){sn.call(this,e??"canceled",sn.ERR_CANCELED,t,n),this.name="CanceledError"}Ge.inherits(Km,sn,{__CANCEL__:!0});function pDe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sn("Request failed with status code "+n.status,[sn.ERR_BAD_REQUEST,sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const hDe=Ma.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Ge.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Ge.isString(r)&&i.push("path="+r),Ge.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bDe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sk(e,t){return e&&!yDe(t)?bDe(e,t):t}const CDe=Ma.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=Ge.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function SDe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xDe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),d=r[a];i||(i=u),n[o]=s,r[o]=u;let f=a,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-n,s=r(l),u=a<=i;n=a;const d={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&u?(i-a)/s:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const wDe=typeof XMLHttpRequest<"u",$De=wDe&&function(e){return new Promise(function(n,r){let o=e.data;const a=li.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let d;if(Ge.isFormData(o)){if(Ma.hasStandardBrowserEnv||Ma.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((d=a.getContentType())!==!1){const[v,...p]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...p].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+p))}const m=sk(e.baseURL,e.url);f.open(e.method.toUpperCase(),rk(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const v=li.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:v,config:e,request:f};pDe(function(C){n(C),u()},function(C){r(C),u()},y),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new sn("Request aborted",sn.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new sn("Network Error",sn.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||ok;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new sn(p,y.clarifyTimeoutError?sn.ETIMEDOUT:sn.ECONNABORTED,e,f)),f=null},Ma.hasStandardBrowserEnv&&(l&&Ge.isFunction(l)&&(l=l(e)),l||l!==!1&&CDe(m))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&hDe.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}o===void 0&&a.setContentType(null),"setRequestHeader"in f&&Ge.forEach(a.toJSON(),function(p,y){f.setRequestHeader(y,p)}),Ge.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",u5(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",u5(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{f&&(r(!v||v.type?new Km(null,e,f):v),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=SDe(m);if(g&&Ma.protocols.indexOf(g)===-1){r(new sn("Unsupported protocol "+g+":",sn.ERR_BAD_REQUEST,e));return}f.send(o||null)})},jS={http:Yje,xhr:$De};Ge.forEach(jS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const d5=e=>`- ${e}`,EDe=e=>Ge.isFunction(e)||e===null||e===!1,ck={getAdapter:e=>{e=Ge.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since : `+a.map(d5).join(` @@ -560,5 +560,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const b=y.state[l];if(b==null)return;JSON.stringify(o.getState())!==JSON.stringify(b)&&h(b);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(y)});case"DISPATCH":switch(v.payload.type){case"RESET":return h(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Lv(s.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Lv(s.name));case"ROLLBACK":return Ab(v.state,y=>{if(l===void 0){h(y),d==null||d.init(o.getState());return}h(y[l]),d==null||d.init(Lv(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ab(v.state,y=>{if(l===void 0){h(y);return}JSON.stringify(o.getState())!==JSON.stringify(y[l])&&h(y[l])});case"IMPORT_STATE":{const{nextLiftedState:y}=v.payload,b=(p=y.computedStates.slice(-1)[0])==null?void 0:p.state;if(!b)return;h(l===void 0?b:b[l]),d==null||d.send(null,y);return}case"PAUSE_RECORDING":return m=!m}return}}),g},XDe=YDe,Ab=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function gk(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=s=>s===null?null:JSON.parse(s,t==null?void 0:t.reviver),l=(a=n.getItem(o))!=null?a:null;return l instanceof Promise?l.then(i):i(l)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,t==null?void 0:t.replacer)),removeItem:o=>n.removeItem(o)}}const qf=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return qf(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return qf(r)(n)}}}},QDe=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:p=>p,version:0,merge:(p,y)=>({...y,...p}),...t},i=!1;const l=new Set,s=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const d=qf(a.serialize),f=()=>{const p=a.partialize({...r()});let y;const b=d({state:p,version:a.version}).then(C=>u.setItem(a.name,C)).catch(C=>{y=C});if(y)throw y;return b},m=o.setState;o.setState=(p,y)=>{m(p,y),f()};const h=e((...p)=>{n(...p),f()},r,o);let g;const v=()=>{var p;if(!u)return;i=!1,l.forEach(b=>b(r()));const y=((p=a.onRehydrateStorage)==null?void 0:p.call(a,r()))||void 0;return qf(u.getItem.bind(u))(a.name).then(b=>{if(b)return a.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return g=a.merge(b,(C=r())!=null?C:h),n(g,!0),f()}).then(()=>{y==null||y(g,void 0),i=!0,s.forEach(b=>b(g))}).catch(b=>{y==null||y(void 0,b)})};return o.persist={setOptions:p=>{a={...a,...p},p.getStorage&&(u=p.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>i,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(s.add(p),()=>{s.delete(p)})},v(),g||h},ZDe=(e,t)=>(n,r,o)=>{let a={storage:gk(()=>localStorage),partialize:v=>v,version:0,merge:(v,p)=>({...p,...v}),...t},i=!1;const l=new Set,s=new Set;let u=a.storage;if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,o);const d=()=>{const v=a.partialize({...r()});return u.setItem(a.name,{state:v,version:a.version})},f=o.setState;o.setState=(v,p)=>{f(v,p),d()};const m=e((...v)=>{n(...v),d()},r,o);o.getInitialState=()=>m;let h;const g=()=>{var v,p;if(!u)return;i=!1,l.forEach(b=>{var C;return b((C=r())!=null?C:m)});const y=((p=a.onRehydrateStorage)==null?void 0:p.call(a,(v=r())!=null?v:m))||void 0;return qf(u.getItem.bind(u))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return h=a.merge(b,(C=r())!=null?C:m),n(h,!0),d()}).then(()=>{y==null||y(h,void 0),h=r(),i=!0,s.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return o.persist={setOptions:v=>{a={...a,...v},v.storage&&(u=v.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(s.add(v),()=>{s.delete(v)})},a.skipHydration||g(),h||m},JDe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((wg?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),QDe(e,t)):ZDe(e,t),eFe=JDe,tFe=e=>XDe(eFe(e,{name:"toekn",storage:gk(()=>sessionStorage)})),Yf=GDe()(tFe(e=>({token:"",setToken:t=>e({token:t})})));var nFe={BASE_URL:"/inyaw-admin-antd-vite/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const bc=ur.create({baseURL:nFe.VITE_API_URL,timeout:10*1e3});bc.interceptors.request.use(e=>{const t=Yf.getState().token;return t&&(e.headers.Authorization="Bearer "+t),e},e=>Promise.reject(e));bc.interceptors.response.use(e=>{const{code:t,data:n}=e.data;if(t===1)return n;if(t===401){const r=Tu();setTimeout(()=>{r("/login")},300)}},e=>(nf.error(e.message),Promise.reject(e)));const LS={get(e,t){return bc.get(e,t)},post(e,t,n){return bc.post(e,t,n)},put(e,t,n){return bc.put(e,t,n)},delete(e,t){return bc.delete(e,t)}},Bb={color:"rgba(0, 0, 0, 0.2)",fontSize:"18px",verticalAlign:"middle",cursor:"pointer"};function rFe(){const e=Tu(),t=Yf(),n=async l=>{try{const s=await LS.post("/api/login",{...l});if(s){t.setToken(s),nf.success("登录成功!");const u=Yf.getState().token;console.log(3333,u);const d=await LS.get("/api/getUserInfo");d&&console.log(111,d);const f=new URL(window.location.href).searchParams;e(f.get("redirect")||"/");return}}catch(s){console.log(s),nf.error("登录失败,请重试!")}},r=[{label:"账户密码登录",key:"account"},{label:"手机号登录",key:"phone"}],[o,a]=c.useState("account"),{token:i}=No.useToken();return F.jsx("div",{style:{backgroundColor:"white",height:"100vh"},children:F.jsxs(yTe,{backgroundImageUrl:"https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*y0ZTS6WLwvgAAAAAAAAAAAAADml6AQ/fmt.webp",logo:"/logo.png",backgroundVideoUrl:"https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr",title:"Github",containerStyle:{backgroundColor:"rgba(0, 0, 0,0.65)",backdropFilter:"blur(4px)"},onFinish:async l=>{await n(l)},subTitle:"全球最大的代码托管平台",actions:F.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[F.jsx(mc,{plain:!0,children:F.jsx("span",{style:{color:i.colorTextPlaceholder,fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),F.jsxs(hi,{align:"center",size:24,children:[F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(Xhe,{style:{...Bb,color:"#1677FF"}})}),F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(tye,{style:{...Bb,color:"#FF6A10"}})}),F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(dye,{style:{...Bb,color:"#1890ff"}})})]})]}),children:[F.jsx(LC,{centered:!0,activeKey:o,onChange:l=>a(l),items:r}),o==="account"&&F.jsxs(F.Fragment,{children:[F.jsx(Nb,{name:"username",fieldProps:{size:"large",prefix:F.jsx(iye,{style:{color:i.colorText},className:"prefixIcon"})},placeholder:"用户名: admin or user",rules:[{required:!0,message:"请输入用户名!"}]}),F.jsx(Nb.Password,{name:"password",fieldProps:{size:"large",prefix:F.jsx(UO,{style:{color:i.colorText},className:"prefixIcon"})},placeholder:"密码: ant.design",rules:[{required:!0,message:"请输入密码!"}]})]}),o==="phone"&&F.jsxs(F.Fragment,{children:[F.jsx(Nb,{fieldProps:{size:"large",prefix:F.jsx(R0e,{style:{color:i.colorText},className:"prefixIcon"})},name:"mobile",placeholder:"手机号",rules:[{required:!0,message:"请输入手机号!"},{pattern:/^1\d{10}$/,message:"手机号格式错误!"}]}),F.jsx(Sbe,{fieldProps:{size:"large",prefix:F.jsx(UO,{style:{color:i.colorText},className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(l,s)=>l?`${s} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async()=>{nf.success("获取验证码成功!验证码为:1234")}})]}),F.jsxs("div",{style:{marginBlockEnd:24},children:[F.jsx(H_e,{noStyle:!0,name:"autoLogin",children:"自动登录"}),F.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})}const oFe=Object.freeze(Object.defineProperty({__proto__:null,default:rFe},Symbol.toStringTag,{value:"Module"}));var pk={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(g){var v,p;for(v in g)p=g[v],p!==void 0&&g.hasOwnProperty(v)&&(r[v]=p);return this},n.status=null,n.set=function(g){var v=n.isStarted();g=o(g,r.minimum,1),n.status=g===1?null:g;var p=n.render(!v),y=p.querySelector(r.barSelector),b=r.speed,C=r.easing;return p.offsetWidth,l(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),s(y,i(g,b,C)),g===1?(s(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){s(p,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},b)},b)):setTimeout(S,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var g=function(){setTimeout(function(){n.status&&(n.trickle(),g())},r.trickleSpeed)};return r.trickle&&g(),this},n.done=function(g){return!g&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(g){var v=n.status;return v?(typeof g!="number"&&(g=(1-v)*o(Math.random()*v,.1,.95)),v=o(v+g,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var g=0,v=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(v===0&&n.start(),g++,v++,p.always(function(){v--,v===0?(g=0,n.done()):n.set((g-v)/g)}),this)}}(),n.render=function(g){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=r.template;var p=v.querySelector(r.barSelector),y=g?"-100":a(n.status||0),b=document.querySelector(r.parent),C;return s(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(C=v.querySelector(r.spinnerSelector),C&&h(C)),b!=document.body&&d(b,"nprogress-custom-parent"),b.appendChild(v),v},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&h(g)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function o(g,v,p){return gp?p:g}function a(g){return(-1+g)*100}function i(g,v,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+a(g)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+a(g)+"%,0)"}:y={"margin-left":a(g)+"%"},y.transition="all "+v+"ms "+p,y}var l=function(){var g=[];function v(){var p=g.shift();p&&p(v)}return function(p){g.push(p),g.length==1&&v()}}(),s=function(){var g=["Webkit","O","Moz","ms"],v={};function p(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function($,x){return x.toUpperCase()})}function y(S){var $=document.body.style;if(S in $)return S;for(var x=g.length,w=S.charAt(0).toUpperCase()+S.slice(1),O;x--;)if(O=g[x]+w,O in $)return O;return S}function b(S){return S=p(S),v[S]||(v[S]=y(S))}function C(S,$,x){$=b($),S.style[$]=x}return function(S,$){var x=arguments,w,O;if(x.length==2)for(w in $)O=$[w],O!==void 0&&$.hasOwnProperty(w)&&C(S,w,O);else C(S,x[1],x[2])}}();function u(g,v){var p=typeof g=="string"?g:m(g);return p.indexOf(" "+v+" ")>=0}function d(g,v){var p=m(g),y=p+v;u(p,v)||(g.className=y.substring(1))}function f(g,v){var p=m(g),y;u(g,v)&&(y=p.replace(" "+v+" "," "),g.className=y.substring(1,y.length-1))}function m(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function h(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return n})})(pk);var aFe=pk.exports;const y5=jn(aFe),hk=()=>{const[e,t]=c.useState(!1);return c.useEffect(()=>{const n=window.setTimeout(()=>{y5.start(),t(!0)},100);return()=>{y5.done(),window.clearTimeout(n)}},[]),e?F.jsx("div",{children:"loading..."}):null},iFe=Object.freeze(Object.defineProperty({__proto__:null,Loading:hk},Symbol.toStringTag,{value:"Module"}));function lFe(){const{token:e}=No.useToken();return F.jsxs("div",{"aria-hidden":!0,style:{display:"flex",alignItems:"center",marginInlineEnd:24},onMouseDown:t=>{t.stopPropagation(),t.preventDefault()},children:[F.jsx(Vo,{style:{borderRadius:4,marginInlineEnd:12,backgroundColor:e.colorBgTextHover},prefix:F.jsx(Vh,{style:{color:e.colorTextLightSolid}}),placeholder:"搜索方案",variant:"borderless"}),F.jsx(B0e,{style:{color:e.colorPrimary,fontSize:24}})]},"SearchOutlined")}const sFe=["/login"],AS=()=>sFe.some(e=>aj(e,location.pathname));function cFe(){const e=Tu(),t=Yf.getState().token;console.log(2222,t,!AS()),!AS()&&!t&&e("/login");const[n,r]=c.useState({fixSiderbar:!0,layout:"mix",splitMenus:!1}),[o,a]=c.useState("/list/sub-page/sub-sub-page1");return typeof document>"u"?F.jsx("div",{}):F.jsx("div",{id:"test-pro-layout",style:{height:"100vh",overflow:"auto"},children:F.jsx(Mm,{hashed:!1,children:F.jsx(bt,{getTargetContainer:()=>document.getElementById("test-pro-layout")||document.body,children:F.jsxs(dje,{prefixCls:"my-prefix",bgLayoutImgList:[{src:"https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",left:85,bottom:100,height:"303px"},{src:"https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",bottom:-68,right:-45,height:"303px"},{src:"https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png",bottom:0,left:0,width:"331px"}],menu:{request:async()=>await LS.get("/api/getMenuList")},location:{pathname:o},token:{header:{colorBgMenuItemSelected:"rgba(0,0,0,0.04)"}},siderMenuType:"group",avatarProps:{src:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",size:"small",title:"七妮妮",render:(i,l)=>F.jsx(Nle,{menu:{items:[{key:"logout",icon:F.jsx(C0e,{}),label:"退出登录"}]},children:l})},actionsRender:i=>i.isMobile?[]:typeof window>"u"?[]:[i.layout!=="side"&&document.body.clientWidth>1400?F.jsx(lFe,{}):void 0,F.jsx(om,{},"InfoCircleFilled"),F.jsx(K0e,{},"QuestionCircleFilled"),F.jsx(i0e,{},"GithubFilled")],menuFooterRender:i=>{if(!(i!=null&&i.collapsed))return F.jsxs("div",{style:{textAlign:"center",paddingBlockStart:12},children:[F.jsx("div",{children:"© 2021 Made with love"}),F.jsx("div",{children:"by Ant Design"})]})},onMenuHeaderClick:i=>console.log(i),menuItemRender:(i,l)=>F.jsx("div",{onClick:()=>{console.log(333,i),a(i.path||"/welcome"),e(i.path||"/welcome")},children:l}),...n,children:[F.jsx(SNe,{tabList:[{tab:"基本信息",key:"base",closable:!1},{tab:"详细信息",key:"info"}],tabProps:{type:"editable-card",hideAdd:!0,onEdit:(i,l)=>console.log(i,l)},token:{paddingBlockPageContainerContent:0},children:F.jsx(c.Suspense,{fallback:F.jsx(hk,{}),children:F.jsx(x0,{})})}),F.jsx(_7e,{pathname:o,enableDarkTheme:!0,getContainer:i=>typeof window>"u"?i:document.getElementById("test-pro-layout"),settings:n,onSettingChange:i=>{r(i)},disableUrlParams:!1})]})})})})}const uFe=Object.freeze(Object.defineProperty({__proto__:null,default:cFe},Symbol.toStringTag,{value:"Module"}));function dFe(){return F.jsx("div",{children:"dashboard 114514"})}const fFe=Object.freeze(Object.defineProperty({__proto__:null,default:dFe},Symbol.toStringTag,{value:"Module"}));function mFe(){return F.jsx("div",{children:"index"})}const vFe=Object.freeze(Object.defineProperty({__proto__:null,default:mFe},Symbol.toStringTag,{value:"Module"}));function gFe(){return F.jsx("div",{children:"page1 114514"})}const pFe=Object.freeze(Object.defineProperty({__proto__:null,default:gFe},Symbol.toStringTag,{value:"Module"}));function hFe(){return F.jsx("div",{children:"page2 224514"})}const yFe=Object.freeze(Object.defineProperty({__proto__:null,default:hFe},Symbol.toStringTag,{value:"Module"}));function bFe(){return F.jsx("div",{children:"page3 334514"})}const CFe=Object.freeze(Object.defineProperty({__proto__:null,default:bFe},Symbol.toStringTag,{value:"Module"})),SFe=()=>{const e=Tu(),t=Yf.getState().token;return!AS&&!t&&e("/login"),F.jsx(x0,{})},xFe=Object.freeze(Object.defineProperty({__proto__:null,Layout:SFe},Symbol.toStringTag,{value:"Module"}));function wFe(){const e=Tu();return F.jsx("div",{style:{width:"100%",minHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:F.jsx(fw,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:F.jsxs(Cm,{gutter:50,justify:"center",children:[F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e(-1)},children:"返回上一页"})}),F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e("/")},children:"返回首页"})})]})})})}const $Fe=Object.freeze(Object.defineProperty({__proto__:null,default:wFe},Symbol.toStringTag,{value:"Module"}));var Ai={route:[/^.*\/src\/pages\/|\.(jsx|tsx|mdx)$/g,""],splat:[/\[\.{3}\w+\]/g,"*"],param:[/\[([^\]]+)\]/g,":$1"],slash:[/^index$|\./g,"/"],optional:[/^-(:?[\w-]+|\*)/,"$1?"]},EFe=e=>Object.keys(e).reduce((t,n)=>{const r=n.replace(...Ai.route);return{...t,[r]:e[n]}},{}),PFe=(e,t)=>Object.keys(e).filter(r=>!r.includes("/_")||/_layout\.(jsx|tsx)$/.test(r)).reduce((r,o)=>{const a=e[o],i={id:o.replace(...Ai.route),...t(a,o)},l=o.replace(...Ai.route).replace(...Ai.splat).replace(...Ai.param).split("/").filter(Boolean);return l.reduce((s,u,d)=>{var b;const f=u.replace(...Ai.slash).replace(...Ai.optional),m=d===0,h=d===l.length-1&&l.length>1,g=!m&&!h,v=u==="_layout",p=/\([\w-]+\)/.test(f),y=/^\w|\//.test(f)?"unshift":"push";if(m&&l.length===1)return r.push({path:f,...i}),s;if(m||g){const C=m?r:s.children,S=C==null?void 0:C.find(x=>{var w;return x.path===f||((w=x.id)==null?void 0:w.replace("/_layout","").endsWith(f))}),$=p?i!=null&&i.component?{id:f,path:"/"}:{id:f}:{path:f};return S?S.children??(S.children=[]):C==null||C[y]({...$,children:[]}),S||(C==null?void 0:C[y==="unshift"?0:C.length-1])}return v?Object.assign(s,i):(h&&((b=s==null?void 0:s.children)==null||b[y](i!=null&&i.index?i:{path:f,...i})),s)},{}),r},[]),OFe=e=>Object.keys(e).reduce((t,n)=>{var o;const r=n.replace(...Ai.route).replace(/\+|\([\w-]+\)\//g,"").replace(/(\/)?index/g,"").replace(/\./g,"/");return{...t,[`/${r}`]:(o=e[n])==null?void 0:o.default}},{}),IFe=Object.assign({"/src/pages/404.tsx":Vge}),MFe=Object.assign({}),RFe=Object.assign({"/src/pages/(auth)/_layout.tsx":mje,"/src/pages/(auth)/login/index.tsx":oFe,"/src/pages/(base)/_layout.tsx":uFe,"/src/pages/(base)/dashboard/index.tsx":fFe,"/src/pages/(base)/index.tsx":vFe,"/src/pages/(base)/page1/index.tsx":pFe,"/src/pages/(base)/page2/index.tsx":yFe,"/src/pages/(base)/page3/index.tsx":CFe,"/src/pages/_layout.tsx":xFe,"/src/pages/loading.tsx":iFe,"/src/pages/notFound.tsx":$Fe}),Nc=EFe(IFe);OFe(MFe);var _Fe=PFe(RFe,(e,t)=>{const n=/index\.(jsx|tsx|mdx)$/.test(t)&&!t.includes("pages/index")?{index:!0}:{},r=(e==null?void 0:e.default)||c.Fragment;return{...n,Component:()=>e!=null&&e.Pending?F.jsx(c.Suspense,{fallback:F.jsx(e.Pending,{}),children:F.jsx(r,{})}):F.jsx(r,{}),ErrorBoundary:e==null?void 0:e.Catch,loader:e==null?void 0:e.Loader,action:e==null?void 0:e.Action}}),Ar=Nc==null?void 0:Nc._app,zb=Nc==null?void 0:Nc["404"],b5=(Ar==null?void 0:Ar.default)||c.Fragment,TFe=()=>Ar!=null&&Ar.Pending?F.jsx(c.Suspense,{fallback:F.jsx(Ar.Pending,{}),children:F.jsx(b5,{})}):F.jsx(b5,{}),NFe={Component:Ar!=null&&Ar.default?TFe:x0,ErrorBoundary:Ar==null?void 0:Ar.Catch,loader:Ar==null?void 0:Ar.Loader},jFe={path:"*",Component:(zb==null?void 0:zb.default)||c.Fragment},DFe=[{...NFe,children:[..._Fe,jFe]}],FFe=()=>F.jsx(Bge,{router:_ge(DFe)});function kFe(){return F.jsx(bt,{children:F.jsxs(oT,{children:[F.jsx(FFe,{}),F.jsx(vje,{})]})})}Hb.createRoot(document.getElementById("root")).render(F.jsx(W.StrictMode,{children:F.jsx(kFe,{})})); + `);const b=y.state[l];if(b==null)return;JSON.stringify(o.getState())!==JSON.stringify(b)&&h(b);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(y)});case"DISPATCH":switch(v.payload.type){case"RESET":return h(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Lv(s.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Lv(s.name));case"ROLLBACK":return Ab(v.state,y=>{if(l===void 0){h(y),d==null||d.init(o.getState());return}h(y[l]),d==null||d.init(Lv(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ab(v.state,y=>{if(l===void 0){h(y);return}JSON.stringify(o.getState())!==JSON.stringify(y[l])&&h(y[l])});case"IMPORT_STATE":{const{nextLiftedState:y}=v.payload,b=(p=y.computedStates.slice(-1)[0])==null?void 0:p.state;if(!b)return;h(l===void 0?b:b[l]),d==null||d.send(null,y);return}case"PAUSE_RECORDING":return m=!m}return}}),g},XDe=YDe,Ab=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function gk(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=s=>s===null?null:JSON.parse(s,t==null?void 0:t.reviver),l=(a=n.getItem(o))!=null?a:null;return l instanceof Promise?l.then(i):i(l)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,t==null?void 0:t.replacer)),removeItem:o=>n.removeItem(o)}}const qf=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return qf(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return qf(r)(n)}}}},QDe=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:p=>p,version:0,merge:(p,y)=>({...y,...p}),...t},i=!1;const l=new Set,s=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const d=qf(a.serialize),f=()=>{const p=a.partialize({...r()});let y;const b=d({state:p,version:a.version}).then(C=>u.setItem(a.name,C)).catch(C=>{y=C});if(y)throw y;return b},m=o.setState;o.setState=(p,y)=>{m(p,y),f()};const h=e((...p)=>{n(...p),f()},r,o);let g;const v=()=>{var p;if(!u)return;i=!1,l.forEach(b=>b(r()));const y=((p=a.onRehydrateStorage)==null?void 0:p.call(a,r()))||void 0;return qf(u.getItem.bind(u))(a.name).then(b=>{if(b)return a.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return g=a.merge(b,(C=r())!=null?C:h),n(g,!0),f()}).then(()=>{y==null||y(g,void 0),i=!0,s.forEach(b=>b(g))}).catch(b=>{y==null||y(void 0,b)})};return o.persist={setOptions:p=>{a={...a,...p},p.getStorage&&(u=p.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>i,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(s.add(p),()=>{s.delete(p)})},v(),g||h},ZDe=(e,t)=>(n,r,o)=>{let a={storage:gk(()=>localStorage),partialize:v=>v,version:0,merge:(v,p)=>({...p,...v}),...t},i=!1;const l=new Set,s=new Set;let u=a.storage;if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,o);const d=()=>{const v=a.partialize({...r()});return u.setItem(a.name,{state:v,version:a.version})},f=o.setState;o.setState=(v,p)=>{f(v,p),d()};const m=e((...v)=>{n(...v),d()},r,o);o.getInitialState=()=>m;let h;const g=()=>{var v,p;if(!u)return;i=!1,l.forEach(b=>{var C;return b((C=r())!=null?C:m)});const y=((p=a.onRehydrateStorage)==null?void 0:p.call(a,(v=r())!=null?v:m))||void 0;return qf(u.getItem.bind(u))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return h=a.merge(b,(C=r())!=null?C:m),n(h,!0),d()}).then(()=>{y==null||y(h,void 0),h=r(),i=!0,s.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return o.persist={setOptions:v=>{a={...a,...v},v.storage&&(u=v.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(s.add(v),()=>{s.delete(v)})},a.skipHydration||g(),h||m},JDe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((wg?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),QDe(e,t)):ZDe(e,t),eFe=JDe,tFe=e=>XDe(eFe(e,{name:"toekn",storage:gk(()=>sessionStorage)})),Yf=GDe()(tFe(e=>({token:"",setToken:t=>e({token:t})})));var nFe={BASE_URL:"/inyaw-admin-antd-vite/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const bc=ur.create({baseURL:nFe.VITE_API_URL,timeout:10*1e3});bc.interceptors.request.use(e=>{const t=Yf.getState().token;return t&&(e.headers.Authorization="Bearer "+t),e},e=>Promise.reject(e));bc.interceptors.response.use(e=>{const{code:t,data:n}=e.data;if(t===1)return n;if(t===401){const r=du();setTimeout(()=>{r("/login")},300)}},e=>(nf.error(e.message),Promise.reject(e)));const LS={get(e,t){return bc.get(e,t)},post(e,t,n){return bc.post(e,t,n)},put(e,t,n){return bc.put(e,t,n)},delete(e,t){return bc.delete(e,t)}},Bb={color:"rgba(0, 0, 0, 0.2)",fontSize:"18px",verticalAlign:"middle",cursor:"pointer"};function rFe(){const e=du(),t=Yf(),n=async l=>{try{const s=await LS.post("/api/login",{...l});if(s){t.setToken(s),nf.success("登录成功!");const u=Yf.getState().token;console.log(3333,u);const d=await LS.get("/api/getUserInfo");d&&console.log(111,d);const f=new URL(window.location.href).searchParams;e(f.get("redirect")||"/");return}}catch(s){console.log(s),nf.error("登录失败,请重试!")}},r=[{label:"账户密码登录",key:"account"},{label:"手机号登录",key:"phone"}],[o,a]=c.useState("account"),{token:i}=No.useToken();return F.jsx("div",{style:{backgroundColor:"white",height:"100vh"},children:F.jsxs(yTe,{backgroundImageUrl:"https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*y0ZTS6WLwvgAAAAAAAAAAAAADml6AQ/fmt.webp",logo:"/logo.png",backgroundVideoUrl:"https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr",title:"Github",containerStyle:{backgroundColor:"rgba(0, 0, 0,0.65)",backdropFilter:"blur(4px)"},onFinish:async l=>{await n(l)},subTitle:"全球最大的代码托管平台",actions:F.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[F.jsx(gc,{plain:!0,children:F.jsx("span",{style:{color:i.colorTextPlaceholder,fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),F.jsxs(hi,{align:"center",size:24,children:[F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(Xhe,{style:{...Bb,color:"#1677FF"}})}),F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(tye,{style:{...Bb,color:"#FF6A10"}})}),F.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+i.colorPrimaryBorder,borderRadius:"50%"},children:F.jsx(dye,{style:{...Bb,color:"#1890ff"}})})]})]}),children:[F.jsx(HC,{centered:!0,activeKey:o,onChange:l=>a(l),items:r}),o==="account"&&F.jsxs(F.Fragment,{children:[F.jsx(Nb,{name:"username",fieldProps:{size:"large",prefix:F.jsx(iye,{style:{color:i.colorText},className:"prefixIcon"})},placeholder:"用户名: admin or user",rules:[{required:!0,message:"请输入用户名!"}]}),F.jsx(Nb.Password,{name:"password",fieldProps:{size:"large",prefix:F.jsx(UO,{style:{color:i.colorText},className:"prefixIcon"})},placeholder:"密码: ant.design",rules:[{required:!0,message:"请输入密码!"}]})]}),o==="phone"&&F.jsxs(F.Fragment,{children:[F.jsx(Nb,{fieldProps:{size:"large",prefix:F.jsx(R0e,{style:{color:i.colorText},className:"prefixIcon"})},name:"mobile",placeholder:"手机号",rules:[{required:!0,message:"请输入手机号!"},{pattern:/^1\d{10}$/,message:"手机号格式错误!"}]}),F.jsx(Sbe,{fieldProps:{size:"large",prefix:F.jsx(UO,{style:{color:i.colorText},className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(l,s)=>l?`${s} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async()=>{nf.success("获取验证码成功!验证码为:1234")}})]}),F.jsxs("div",{style:{marginBlockEnd:24},children:[F.jsx(H_e,{noStyle:!0,name:"autoLogin",children:"自动登录"}),F.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})}const oFe=Object.freeze(Object.defineProperty({__proto__:null,default:rFe},Symbol.toStringTag,{value:"Module"}));var pk={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(lr,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(g){var v,p;for(v in g)p=g[v],p!==void 0&&g.hasOwnProperty(v)&&(r[v]=p);return this},n.status=null,n.set=function(g){var v=n.isStarted();g=o(g,r.minimum,1),n.status=g===1?null:g;var p=n.render(!v),y=p.querySelector(r.barSelector),b=r.speed,C=r.easing;return p.offsetWidth,l(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),s(y,i(g,b,C)),g===1?(s(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){s(p,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},b)},b)):setTimeout(S,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var g=function(){setTimeout(function(){n.status&&(n.trickle(),g())},r.trickleSpeed)};return r.trickle&&g(),this},n.done=function(g){return!g&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(g){var v=n.status;return v?(typeof g!="number"&&(g=(1-v)*o(Math.random()*v,.1,.95)),v=o(v+g,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var g=0,v=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(v===0&&n.start(),g++,v++,p.always(function(){v--,v===0?(g=0,n.done()):n.set((g-v)/g)}),this)}}(),n.render=function(g){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=r.template;var p=v.querySelector(r.barSelector),y=g?"-100":a(n.status||0),b=document.querySelector(r.parent),C;return s(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(C=v.querySelector(r.spinnerSelector),C&&h(C)),b!=document.body&&d(b,"nprogress-custom-parent"),b.appendChild(v),v},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&h(g)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function o(g,v,p){return gp?p:g}function a(g){return(-1+g)*100}function i(g,v,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+a(g)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+a(g)+"%,0)"}:y={"margin-left":a(g)+"%"},y.transition="all "+v+"ms "+p,y}var l=function(){var g=[];function v(){var p=g.shift();p&&p(v)}return function(p){g.push(p),g.length==1&&v()}}(),s=function(){var g=["Webkit","O","Moz","ms"],v={};function p(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function($,x){return x.toUpperCase()})}function y(S){var $=document.body.style;if(S in $)return S;for(var x=g.length,w=S.charAt(0).toUpperCase()+S.slice(1),O;x--;)if(O=g[x]+w,O in $)return O;return S}function b(S){return S=p(S),v[S]||(v[S]=y(S))}function C(S,$,x){$=b($),S.style[$]=x}return function(S,$){var x=arguments,w,O;if(x.length==2)for(w in $)O=$[w],O!==void 0&&$.hasOwnProperty(w)&&C(S,w,O);else C(S,x[1],x[2])}}();function u(g,v){var p=typeof g=="string"?g:m(g);return p.indexOf(" "+v+" ")>=0}function d(g,v){var p=m(g),y=p+v;u(p,v)||(g.className=y.substring(1))}function f(g,v){var p=m(g),y;u(g,v)&&(y=p.replace(" "+v+" "," "),g.className=y.substring(1,y.length-1))}function m(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function h(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return n})})(pk);var aFe=pk.exports;const y5=jn(aFe),hk=()=>{const[e,t]=c.useState(!1);return c.useEffect(()=>{const n=window.setTimeout(()=>{y5.start(),t(!0)},100);return()=>{y5.done(),window.clearTimeout(n)}},[]),e?F.jsx("div",{children:"loading..."}):null},iFe=Object.freeze(Object.defineProperty({__proto__:null,Loading:hk},Symbol.toStringTag,{value:"Module"}));function lFe(){const{token:e}=No.useToken();return F.jsxs("div",{"aria-hidden":!0,style:{display:"flex",alignItems:"center",marginInlineEnd:24},onMouseDown:t=>{t.stopPropagation(),t.preventDefault()},children:[F.jsx(Vo,{style:{borderRadius:4,marginInlineEnd:12,backgroundColor:e.colorBgTextHover},prefix:F.jsx(qh,{style:{color:e.colorTextLightSolid}}),placeholder:"搜索方案",variant:"borderless"}),F.jsx(B0e,{style:{color:e.colorPrimary,fontSize:24}})]},"SearchOutlined")}const sFe=["/login"],AS=()=>sFe.some(e=>kM(e,location.pathname));function cFe(){const e=du(),t=Yf.getState().token;console.log(2222,t,!AS()),!AS()&&!t&&e("/login");const[n,r]=c.useState({fixSiderbar:!0,layout:"mix",splitMenus:!1}),[o,a]=c.useState("/list/sub-page/sub-sub-page1");return typeof document>"u"?F.jsx("div",{}):F.jsx("div",{id:"test-pro-layout",style:{height:"100vh",overflow:"auto"},children:F.jsx(Mm,{hashed:!1,children:F.jsx(bt,{getTargetContainer:()=>document.getElementById("test-pro-layout")||document.body,children:F.jsxs(dje,{prefixCls:"my-prefix",bgLayoutImgList:[{src:"https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",left:85,bottom:100,height:"303px"},{src:"https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",bottom:-68,right:-45,height:"303px"},{src:"https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png",bottom:0,left:0,width:"331px"}],menu:{request:async()=>await LS.get("/api/getMenuList")},location:{pathname:o},token:{header:{colorBgMenuItemSelected:"rgba(0,0,0,0.04)"}},siderMenuType:"group",avatarProps:{src:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",size:"small",title:"七妮妮",render:(i,l)=>F.jsx(Qse,{menu:{items:[{key:"logout",icon:F.jsx(C0e,{}),label:"退出登录"}]},children:l})},actionsRender:i=>i.isMobile?[]:typeof window>"u"?[]:[i.layout!=="side"&&document.body.clientWidth>1400?F.jsx(lFe,{}):void 0,F.jsx(im,{},"InfoCircleFilled"),F.jsx(K0e,{},"QuestionCircleFilled"),F.jsx(i0e,{},"GithubFilled")],menuFooterRender:i=>{if(!(i!=null&&i.collapsed))return F.jsxs("div",{style:{textAlign:"center",paddingBlockStart:12},children:[F.jsx("div",{children:"© 2021 Made with love"}),F.jsx("div",{children:"by Ant Design"})]})},onMenuHeaderClick:i=>console.log(i),menuItemRender:(i,l)=>F.jsx("div",{onClick:()=>{console.log(333,i),a(i.path||"/welcome"),e(i.path||"/welcome")},children:l}),...n,children:[F.jsx(SNe,{tabList:[{tab:"基本信息",key:"base",closable:!1},{tab:"详细信息",key:"info"}],tabProps:{type:"editable-card",hideAdd:!0,onEdit:(i,l)=>console.log(i,l)},token:{paddingBlockPageContainerContent:0},children:F.jsx(c.Suspense,{fallback:F.jsx(hk,{}),children:F.jsx(dh,{})})}),F.jsx(_7e,{pathname:o,enableDarkTheme:!0,getContainer:i=>typeof window>"u"?i:document.getElementById("test-pro-layout"),settings:n,onSettingChange:i=>{r(i)},disableUrlParams:!1})]})})})})}const uFe=Object.freeze(Object.defineProperty({__proto__:null,default:cFe},Symbol.toStringTag,{value:"Module"}));function dFe(){return F.jsx("div",{children:"dashboard 114514"})}const fFe=Object.freeze(Object.defineProperty({__proto__:null,default:dFe},Symbol.toStringTag,{value:"Module"}));function mFe(){return F.jsx("div",{children:"index"})}const vFe=Object.freeze(Object.defineProperty({__proto__:null,default:mFe},Symbol.toStringTag,{value:"Module"}));function gFe(){return F.jsx("div",{children:"page1 114514"})}const pFe=Object.freeze(Object.defineProperty({__proto__:null,default:gFe},Symbol.toStringTag,{value:"Module"}));function hFe(){return F.jsx("div",{children:"page2 224514"})}const yFe=Object.freeze(Object.defineProperty({__proto__:null,default:hFe},Symbol.toStringTag,{value:"Module"}));function bFe(){return F.jsx("div",{children:"page3 334514"})}const CFe=Object.freeze(Object.defineProperty({__proto__:null,default:bFe},Symbol.toStringTag,{value:"Module"})),SFe=()=>{const e=du(),t=Yf.getState().token;return!AS&&!t&&e("/login"),F.jsx(dh,{})},xFe=Object.freeze(Object.defineProperty({__proto__:null,Layout:SFe},Symbol.toStringTag,{value:"Module"}));function wFe(){const e=du();return F.jsx("div",{style:{width:"100%",minHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:F.jsx(vw,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:F.jsxs(xm,{gutter:50,justify:"center",children:[F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e(-1)},children:"返回上一页"})}),F.jsx(fl,{children:F.jsx(Nr,{type:"primary",onClick:()=>{e("/")},children:"返回首页"})})]})})})}const $Fe=Object.freeze(Object.defineProperty({__proto__:null,default:wFe},Symbol.toStringTag,{value:"Module"}));var Ai={route:[/^.*\/src\/pages\/|\.(jsx|tsx|mdx)$/g,""],splat:[/\[\.{3}\w+\]/g,"*"],param:[/\[([^\]]+)\]/g,":$1"],slash:[/^index$|\./g,"/"],optional:[/^-(:?[\w-]+|\*)/,"$1?"]},EFe=e=>Object.keys(e).reduce((t,n)=>{const r=n.replace(...Ai.route);return{...t,[r]:e[n]}},{}),PFe=(e,t)=>Object.keys(e).filter(r=>!r.includes("/_")||/_layout\.(jsx|tsx)$/.test(r)).reduce((r,o)=>{const a=e[o],i={id:o.replace(...Ai.route),...t(a,o)},l=o.replace(...Ai.route).replace(...Ai.splat).replace(...Ai.param).split("/").filter(Boolean);return l.reduce((s,u,d)=>{var b;const f=u.replace(...Ai.slash).replace(...Ai.optional),m=d===0,h=d===l.length-1&&l.length>1,g=!m&&!h,v=u==="_layout",p=/\([\w-]+\)/.test(f),y=/^\w|\//.test(f)?"unshift":"push";if(m&&l.length===1)return r.push({path:f,...i}),s;if(m||g){const C=m?r:s.children,S=C==null?void 0:C.find(x=>{var w;return x.path===f||((w=x.id)==null?void 0:w.replace("/_layout","").endsWith(f))}),$=p?i!=null&&i.component?{id:f,path:"/"}:{id:f}:{path:f};return S?S.children??(S.children=[]):C==null||C[y]({...$,children:[]}),S||(C==null?void 0:C[y==="unshift"?0:C.length-1])}return v?Object.assign(s,i):(h&&((b=s==null?void 0:s.children)==null||b[y](i!=null&&i.index?i:{path:f,...i})),s)},{}),r},[]),OFe=e=>Object.keys(e).reduce((t,n)=>{var o;const r=n.replace(...Ai.route).replace(/\+|\([\w-]+\)\//g,"").replace(/(\/)?index/g,"").replace(/\./g,"/");return{...t,[`/${r}`]:(o=e[n])==null?void 0:o.default}},{}),IFe=Object.assign({"/src/pages/404.tsx":Vge}),MFe=Object.assign({}),RFe=Object.assign({"/src/pages/(auth)/_layout.tsx":mje,"/src/pages/(auth)/login/index.tsx":oFe,"/src/pages/(base)/_layout.tsx":uFe,"/src/pages/(base)/dashboard/index.tsx":fFe,"/src/pages/(base)/index.tsx":vFe,"/src/pages/(base)/page1/index.tsx":pFe,"/src/pages/(base)/page2/index.tsx":yFe,"/src/pages/(base)/page3/index.tsx":CFe,"/src/pages/_layout.tsx":xFe,"/src/pages/loading.tsx":iFe,"/src/pages/notFound.tsx":$Fe}),Nc=EFe(IFe);OFe(MFe);var _Fe=PFe(RFe,(e,t)=>{const n=/index\.(jsx|tsx|mdx)$/.test(t)&&!t.includes("pages/index")?{index:!0}:{},r=(e==null?void 0:e.default)||c.Fragment;return{...n,Component:()=>e!=null&&e.Pending?F.jsx(c.Suspense,{fallback:F.jsx(e.Pending,{}),children:F.jsx(r,{})}):F.jsx(r,{}),ErrorBoundary:e==null?void 0:e.Catch,loader:e==null?void 0:e.Loader,action:e==null?void 0:e.Action}}),Ar=Nc==null?void 0:Nc._app,zb=Nc==null?void 0:Nc["404"],b5=(Ar==null?void 0:Ar.default)||c.Fragment,TFe=()=>Ar!=null&&Ar.Pending?F.jsx(c.Suspense,{fallback:F.jsx(Ar.Pending,{}),children:F.jsx(b5,{})}):F.jsx(b5,{}),NFe={Component:Ar!=null&&Ar.default?TFe:dh,ErrorBoundary:Ar==null?void 0:Ar.Catch,loader:Ar==null?void 0:Ar.Loader},jFe={path:"*",Component:(zb==null?void 0:zb.default)||c.Fragment},DFe=[{...NFe,children:[..._Fe,jFe]}];const FFe=()=>F.jsx(sz,{router:JB(DFe,{basename:"/inyaw-admin-antd-vite/"})});function kFe(){return F.jsx(bt,{children:F.jsxs(wT,{children:[F.jsx(FFe,{}),F.jsx(vje,{})]})})}Hb.createRoot(document.getElementById("root")).render(F.jsx(W.StrictMode,{children:F.jsx(kFe,{})})); diff --git a/index.html b/index.html index 427a0b3..e400137 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +