diff --git "a/dist/assets/index-C-m0XNtG.js" "b/dist/assets/index-C-m0XNtG.js" new file mode 100644--- /dev/null +++ "b/dist/assets/index-C-m0XNtG.js" @@ -0,0 +1,612 @@ +function kb(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lb={exports:{}},Gu={},Db={exports:{}},wt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ts=Symbol.for("react.element"),dE=Symbol.for("react.portal"),fE=Symbol.for("react.fragment"),mE=Symbol.for("react.strict_mode"),vE=Symbol.for("react.profiler"),pE=Symbol.for("react.provider"),gE=Symbol.for("react.context"),hE=Symbol.for("react.forward_ref"),yE=Symbol.for("react.suspense"),bE=Symbol.for("react.memo"),SE=Symbol.for("react.lazy"),Mh=Symbol.iterator;function CE(e){return e===null||typeof e!="object"?null:(e=Mh&&e[Mh]||e["@@iterator"],typeof e=="function"?e:null)}var Fb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ab=Object.assign,Bb={};function Ya(e,t,n){this.props=e,this.context=t,this.refs=Bb,this.updater=n||Fb}Ya.prototype.isReactComponent={};Ya.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hb(){}Hb.prototype=Ya.prototype;function xp(e,t,n){this.props=e,this.context=t,this.refs=Bb,this.updater=n||Fb}var wp=xp.prototype=new Hb;wp.constructor=xp;Ab(wp,Ya.prototype);wp.isPureReactComponent=!0;var Th=Array.isArray,Vb=Object.prototype.hasOwnProperty,$p={current:null},Kb={key:!0,ref:!0,__self:!0,__source:!0};function Wb(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Vb.call(t,r)&&!Kb.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,B=P[D];if(0>>1;Do(H,F))Xo(K,H)?(P[D]=K,P[X]=F,D=X):(P[D]=H,P[q]=F,D=q);else if(Xo(K,F))P[D]=K,P[X]=F,D=X;else break e}}return _}function o(P,_){var F=P.sortIndex-_.sortIndex;return F!==0?F:P.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,m=3,v=!1,g=!1,S=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=P)r(u),_.sortIndex=_.expirationTime,t(c,_);else break;_=n(u)}}function C(P){if(S=!1,y(P),!g)if(n(c)!==null)g=!0,M(x);else{var _=n(u);_!==null&&N(C,_.startTime-P)}}function x(P,_){g=!1,S&&(S=!1,h(I),I=-1),v=!0;var F=m;try{for(y(_),f=n(c);f!==null&&(!(f.expirationTime>_)||P&&!T());){var D=f.callback;if(typeof D=="function"){f.callback=null,m=f.priorityLevel;var B=D(f.expirationTime<=_);_=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(c)&&r(c),y(_)}else r(c);f=n(c)}if(f!==null)var V=!0;else{var q=n(u);q!==null&&N(C,q.startTime-_),V=!1}return V}finally{f=null,m=F,v=!1}}var w=!1,$=null,I=-1,E=5,O=-1;function T(){return!(e.unstable_now()-OP||125D?(P.sortIndex=F,t(u,P),n(c)===null&&P===n(u)&&(S?(h(I),I=-1):S=!0,N(C,F-D))):(P.sortIndex=B,t(c,P),g||v||(g=!0,M(x))),P},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(P){var _=m;return function(){var F=m;m=_;try{return P.apply(this,arguments)}finally{m=F}}}})(Yb);Xb.exports=Yb;var TE=Xb.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zE=s,$r=TE;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dm=Object.prototype.hasOwnProperty,_E=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_h={},jh={};function jE(e){return dm.call(jh,e)?!0:dm.call(_h,e)?!1:_E.test(e)?jh[e]=!0:(_h[e]=!0,!1)}function kE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LE(e,t,n,r){if(t===null||typeof t>"u"||kE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kn[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ip=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ip,Op);kn[t]=new rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ip,Op);kn[t]=new rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ip,Op);kn[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kn[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});kn.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kn[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rp(e,t,n,r){var o=kn.hasOwnProperty(t)?kn[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var c=` +`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Jd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xl(e):""}function DE(e){switch(e.tag){case 5:return xl(e.type);case 16:return xl("Lazy");case 13:return xl("Suspense");case 19:return xl("SuspenseList");case 0:case 2:case 15:return e=ef(e.type,!1),e;case 11:return e=ef(e.type.render,!1),e;case 1:return e=ef(e.type,!0),e;default:return""}}function pm(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 fa:return"Fragment";case da:return"Portal";case fm:return"Profiler";case Pp:return"StrictMode";case mm:return"Suspense";case vm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jb:return(e.displayName||"Context")+".Consumer";case Zb:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mp:return t=e.displayName||null,t!==null?t:pm(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return pm(e(t))}catch{}}return null}function FE(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 pm(t);case 8:return t===Pp?"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 mi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AE(e){var t=tS(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=AE(e))}function nS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zc(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 gm(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mi(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 rS(e,t){t=t.checked,t!=null&&Rp(e,"checked",t,!1)}function hm(e,t){rS(e,t);var n=mi(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")?ym(e,t.type,n):t.hasOwnProperty("defaultValue")&&ym(e,t.type,mi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dh(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 ym(e,t,n){(t!=="number"||Zc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wl=Array.isArray;function Ia(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ql(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pl={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},BE=["Webkit","ms","Moz","O"];Object.keys(Pl).forEach(function(e){BE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pl[t]=Pl[e]})});function lS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pl.hasOwnProperty(e)&&Pl[e]?(""+t).trim():t+"px"}function sS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var HE=Jt({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 Cm(e,t){if(t){if(HE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function xm(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 wm=null;function Tp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $m=null,Oa=null,Ra=null;function Bh(e){if(e=js(e)){if(typeof $m!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=Ju(t),$m(e.stateNode,e.type,t))}}function cS(e){Oa?Ra?Ra.push(e):Ra=[e]:Oa=e}function uS(){if(Oa){var e=Oa,t=Ra;if(Ra=Oa=null,Bh(e),t)for(e=0;e>>=0,e===0?32:31-(JE(e)/e3|0)|0}var Zs=64,Js=4194304;function $l(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 nu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=$l(l):(i&=a,i!==0&&(r=$l(i)))}else a=n&~o,a!==0?r=$l(a):i!==0&&(r=$l(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 zs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-eo(t),e[t]=n}function o3(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=Ml),Yh=" ",Qh=!1;function NS(e,t){switch(e){case"keyup":return T3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function _3(e,t){switch(e){case"compositionend":return MS(t);case"keypress":return t.which!==32?null:(Qh=!0,Yh);case"textInput":return e=t.data,e===Yh&&Qh?null:e;default:return null}}function j3(e,t){if(ma)return e==="compositionend"||!Ap&&NS(e,t)?(e=RS(),Mc=Lp=ei=null,ma=!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=t0(n)}}function jS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kS(){for(var e=window,t=Zc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zc(e.document)}return t}function Bp(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 K3(e){var t=kS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jS(n.ownerDocument.documentElement,n)){if(r!==null&&Bp(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,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=n0(n,i);var a=n0(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,va=null,Nm=null,zl=null,Mm=!1;function r0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mm||va==null||va!==Zc(r)||(r=va,"selectionStart"in r&&Bp(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}),zl&&es(zl,r)||(zl=r,r=iu(Nm,"onSelect"),0ha||(e.current=Lm[ha],Lm[ha]=null,ha--)}function Bt(e,t){ha++,Lm[ha]=e.current,e.current=t}var vi={},Wn=bi(vi),sr=bi(!1),Fi=vi;function ka(e,t){var n=e.type.contextTypes;if(!n)return vi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function cr(e){return e=e.childContextTypes,e!=null}function lu(){Wt(sr),Wt(Wn)}function u0(e,t,n){if(Wn.current!==vi)throw Error(Ee(168));Bt(Wn,t),Bt(sr,n)}function WS(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(Ee(108,FE(e)||"Unknown",o));return Jt({},n,r)}function su(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vi,Fi=Wn.current,Bt(Wn,e),Bt(sr,sr.current),!0}function d0(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=WS(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Wt(sr),Wt(Wn),Bt(Wn,e)):Wt(sr),Bt(sr,n)}var Po=null,ed=!1,pf=!1;function US(e){Po===null?Po=[e]:Po.push(e)}function nI(e){ed=!0,US(e)}function Si(){if(!pf&&Po!==null){pf=!0;var e=0,t=Lt;try{var n=Po;for(Lt=1;e>=a,o-=a,To=1<<32-eo(t)+o|n<I?(E=$,$=null):E=$.sibling;var O=m(h,$,y[I],C);if(O===null){$===null&&($=E);break}e&&$&&O.alternate===null&&t(h,$),p=i(O,p,I),w===null?x=O:w.sibling=O,w=O,$=E}if(I===y.length)return n(h,$),Gt&&Ii(h,I),x;if($===null){for(;II?(E=$,$=null):E=$.sibling;var T=m(h,$,O.value,C);if(T===null){$===null&&($=E);break}e&&$&&T.alternate===null&&t(h,$),p=i(T,p,I),w===null?x=T:w.sibling=T,w=T,$=E}if(O.done)return n(h,$),Gt&&Ii(h,I),x;if($===null){for(;!O.done;I++,O=y.next())O=f(h,O.value,C),O!==null&&(p=i(O,p,I),w===null?x=O:w.sibling=O,w=O);return Gt&&Ii(h,I),x}for($=r(h,$);!O.done;I++,O=y.next())O=v($,h,I,O.value,C),O!==null&&(e&&O.alternate!==null&&$.delete(O.key===null?I:O.key),p=i(O,p,I),w===null?x=O:w.sibling=O,w=O);return e&&$.forEach(function(j){return t(h,j)}),Gt&&Ii(h,I),x}function b(h,p,y,C){if(typeof y=="object"&&y!==null&&y.type===fa&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Xs:e:{for(var x=y.key,w=p;w!==null;){if(w.key===x){if(x=y.type,x===fa){if(w.tag===7){n(h,w.sibling),p=o(w,y.props.children),p.return=h,h=p;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xo&&v0(x)===w.type){n(h,w.sibling),p=o(w,y.props),p.ref=ml(h,w,y),p.return=h,h=p;break e}n(h,w);break}else t(h,w);w=w.sibling}y.type===fa?(p=ki(y.props.children,h.mode,C,y.key),p.return=h,h=p):(C=Fc(y.type,y.key,y.props,null,h.mode,C),C.ref=ml(h,p,y),C.return=h,h=C)}return a(h);case da:e:{for(w=y.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(h,p.sibling),p=o(p,y.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=wf(y,h.mode,C),p.return=h,h=p}return a(h);case Xo:return w=y._init,b(h,p,w(y._payload),C)}if(wl(y))return g(h,p,y,C);if(sl(y))return S(h,p,y,C);ac(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,y),p.return=h,h=p):(n(h,p),p=xf(y,h.mode,C),p.return=h,h=p),a(h)):n(h,p)}return b}var Da=YS(!0),QS=YS(!1),du=bi(null),fu=null,Sa=null,Wp=null;function Up(){Wp=Sa=fu=null}function Gp(e){var t=du.current;Wt(du),e._currentValue=t}function Am(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t){fu=e,Wp=Sa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lr=!0),e.firstContext=null)}function Dr(e){var t=e._currentValue;if(Wp!==e)if(e={context:e,memoizedValue:t,next:null},Sa===null){if(fu===null)throw Error(Ee(308));Sa=e,fu.dependencies={lanes:0,firstContext:e}}else Sa=Sa.next=e;return t}var Mi=null;function qp(e){Mi===null?Mi=[e]:Mi.push(e)}function ZS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,qp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yo=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _o(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ci(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Mt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Do(e,n)}return o=r.interleaved,o===null?(t.next=t,qp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Do(e,n)}function zc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_p(e,n)}}function p0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mu(e,t,n,r){var o=e.updateQueue;Yo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=o.baseState;a=0,d=u=c=null,l=i;do{var m=l.lane,v=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,S=l;switch(m=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){f=g.call(v,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,m=typeof g=="function"?g.call(v,f,m):g,m==null)break e;f=Jt({},f,m);break e;case 2:Yo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=v,c=f):d=d.next=v,a|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Hi|=a,e.lanes=a,e.memoizedState=f}}function g0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hf.transition;hf.transition={};try{e(!1),t()}finally{Lt=n,hf.transition=r}}function gC(){return Fr().memoizedState}function aI(e,t,n){var r=di(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hC(e))yC(t,n);else if(n=ZS(e,t,n,r),n!==null){var o=Jn();to(n,e,r,o),bC(n,t,r)}}function lI(e,t,n){var r=di(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hC(e))yC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,oo(l,a)){var c=t.interleaved;c===null?(o.next=o,qp(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=ZS(e,t,o,r),n!==null&&(o=Jn(),to(n,e,r,o),bC(n,t,r))}}function hC(e){var t=e.alternate;return e===Qt||t!==null&&t===Qt}function yC(e,t){_l=pu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_p(e,n)}}var gu={readContext:Dr,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useInsertionEffect:Bn,useLayoutEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useMutableSource:Bn,useSyncExternalStore:Bn,useId:Bn,unstable_isNewReconciler:!1},sI={readContext:Dr,useCallback:function(e,t){return fo().memoizedState=[e,t===void 0?null:t],e},useContext:Dr,useEffect:y0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jc(4194308,4,dC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jc(4194308,4,e,t)},useInsertionEffect:function(e,t){return jc(4,2,e,t)},useMemo:function(e,t){var n=fo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fo();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=aI.bind(null,Qt,e),[r.memoizedState,e]},useRef:function(e){var t=fo();return e={current:e},t.memoizedState=e},useState:h0,useDebugValue:rg,useDeferredValue:function(e){return fo().memoizedState=e},useTransition:function(){var e=h0(!1),t=e[0];return e=iI.bind(null,e[1]),fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qt,o=fo();if(Gt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Nn===null)throw Error(Ee(349));Bi&30||rC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,y0(iC.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,oC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fo(),t=Nn.identifierPrefix;if(Gt){var n=zo,r=To;n=(r&~(1<<32-eo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[vo]=t,e[rs]=r,PC(e,t,!1,!1),t.stateNode=e;e:{switch(a=xm(n,r),n){case"dialog":Kt("cancel",e),Kt("close",e),o=r;break;case"iframe":case"object":case"embed":Kt("load",e),o=r;break;case"video":case"audio":for(o=0;oBa&&(t.flags|=128,r=!0,vl(i,!1),t.lanes=4194304)}else{if(!r)if(e=vu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Gt)return Hn(t),null}else 2*mn()-i.renderingStartTime>Ba&&n!==1073741824&&(t.flags|=128,r=!0,vl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=mn(),t.sibling=null,n=Yt.current,Bt(Yt,r?n&1|2:n&1),t):(Hn(t),null);case 22:case 23:return cg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?br&1073741824&&(Hn(t),t.subtreeFlags&6&&(t.flags|=8192)):Hn(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function gI(e,t){switch(Vp(t),t.tag){case 1:return cr(t.type)&&lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fa(),Wt(sr),Wt(Wn),Zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qp(t),null;case 13:if(Wt(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wt(Yt),null;case 4:return Fa(),null;case 10:return Gp(t.type._context),null;case 22:case 23:return cg(),null;case 24:return null;default:return null}}var sc=!1,Kn=!1,hI=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){un(e,t,r)}else n.current=null}function Xm(e,t,n){try{n()}catch(r){un(e,t,r)}}var P0=!1;function yI(e,t){if(Tm=ru,e=kS(),Bp(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=a),m===i&&++d===r&&(c=a),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(zm={focusedElem:e,selectionRange:n},ru=!1,Ae=t;Ae!==null;)if(t=Ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ae=e;else for(;Ae!==null;){t=Ae;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 S=g.memoizedProps,b=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:Gr(t.type,S),b);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(C){un(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Ae=e;break}Ae=t.return}return g=P0,P0=!1,g}function jl(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 i=o.destroy;o.destroy=void 0,i!==void 0&&Xm(t,n,i)}o=o.next}while(o!==r)}}function rd(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 Ym(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 TC(e){var t=e.alternate;t!==null&&(e.alternate=null,TC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vo],delete t[rs],delete t[km],delete t[eI],delete t[tI])),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 zC(e){return e.tag===5||e.tag===3||e.tag===4}function N0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zC(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 Qm(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=au));else if(r!==4&&(e=e.child,e!==null))for(Qm(e,t,n),e=e.sibling;e!==null;)Qm(e,t,n),e=e.sibling}function Zm(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(Zm(e,t,n),e=e.sibling;e!==null;)Zm(e,t,n),e=e.sibling}var zn=null,qr=!1;function Wo(e,t,n){for(n=n.child;n!==null;)_C(e,t,n),n=n.sibling}function _C(e,t,n){if(go&&typeof go.onCommitFiberUnmount=="function")try{go.onCommitFiberUnmount(Xu,n)}catch{}switch(n.tag){case 5:Kn||Ca(n,t);case 6:var r=zn,o=qr;zn=null,Wo(e,t,n),zn=r,qr=o,zn!==null&&(qr?(e=zn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zn.removeChild(n.stateNode));break;case 18:zn!==null&&(qr?(e=zn,n=n.stateNode,e.nodeType===8?vf(e.parentNode,n):e.nodeType===1&&vf(e,n),Zl(e)):vf(zn,n.stateNode));break;case 4:r=zn,o=qr,zn=n.stateNode.containerInfo,qr=!0,Wo(e,t,n),zn=r,qr=o;break;case 0:case 11:case 14:case 15:if(!Kn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xm(n,t,a),o=o.next}while(o!==r)}Wo(e,t,n);break;case 1:if(!Kn&&(Ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){un(n,t,l)}Wo(e,t,n);break;case 21:Wo(e,t,n);break;case 22:n.mode&1?(Kn=(r=Kn)||n.memoizedState!==null,Wo(e,t,n),Kn=r):Wo(e,t,n);break;default:Wo(e,t,n)}}function M0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hI),t.forEach(function(r){var o=OI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=mn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SI(r/1960))-r,10e?16:e,ti===null)var r=!1;else{if(e=ti,ti=null,bu=0,Mt&6)throw Error(Ee(331));var o=Mt;for(Mt|=4,Ae=e.current;Ae!==null;){var i=Ae,a=i.child;if(Ae.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cmn()-lg?ji(e,0):ag|=n),ur(e,t)}function HC(e,t){t===0&&(e.mode&1?(t=Js,Js<<=1,!(Js&130023424)&&(Js=4194304)):t=1);var n=Jn();e=Do(e,t),e!==null&&(zs(e,t,n),ur(e,n))}function II(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),HC(e,n)}function OI(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(Ee(314))}r!==null&&r.delete(t),HC(e,n)}var VC;VC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||sr.current)lr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lr=!1,vI(e,t,n);lr=!!(e.flags&131072)}else lr=!1,Gt&&t.flags&1048576&&GS(t,uu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kc(e,t),e=t.pendingProps;var o=ka(t,Wn.current);Na(t,n),o=eg(null,t,r,e,o,n);var i=tg();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,cr(r)?(i=!0,su(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xp(t),o.updater=nd,t.stateNode=o,o._reactInternals=t,Hm(t,r,e,n),t=Wm(null,t,r,!0,i,n)):(t.tag=0,Gt&&i&&Hp(t),Qn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=PI(r),e=Gr(r,e),o){case 0:t=Km(null,t,r,e,n);break e;case 1:t=I0(null,t,r,e,n);break e;case 11:t=$0(null,t,r,e,n);break e;case 14:t=E0(null,t,r,Gr(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gr(r,o),Km(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gr(r,o),I0(e,t,r,o,n);case 3:e:{if(IC(t),e===null)throw Error(Ee(387));r=t.pendingProps,i=t.memoizedState,o=i.element,JS(e,t),mu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Aa(Error(Ee(423)),t),t=O0(e,t,r,n,o);break e}else if(r!==o){o=Aa(Error(Ee(424)),t),t=O0(e,t,r,n,o);break e}else for(Sr=si(t.stateNode.containerInfo.firstChild),wr=t,Gt=!0,Zr=null,n=QS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(La(),r===o){t=Fo(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return eC(t),e===null&&Fm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_m(r,o)?a=null:i!==null&&_m(r,i)&&(t.flags|=32),EC(e,t),Qn(e,t,a,n),t.child;case 6:return e===null&&Fm(t),null;case 13:return OC(e,t,n);case 4:return Yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gr(r,o),$0(e,t,r,o,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Bt(du,r._currentValue),r._currentValue=a,i!==null)if(oo(i.value,a)){if(i.children===o.children&&!sr.current){t=Fo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=_o(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Am(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ee(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Am(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Qn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),o=Dr(o),r=r(o),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,o=Gr(r,t.pendingProps),o=Gr(r.type,o),E0(e,t,r,o,n);case 15:return wC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gr(r,o),kc(e,t),t.tag=1,cr(r)?(e=!0,su(t)):e=!1,Na(t,n),SC(t,r,o),Hm(t,r,o,n),Wm(null,t,r,!0,e,n);case 19:return RC(e,t,n);case 22:return $C(e,t,n)}throw Error(Ee(156,t.tag))};function KC(e,t){return hS(e,t)}function RI(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 jr(e,t,n,r){return new RI(e,t,n,r)}function dg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PI(e){if(typeof e=="function")return dg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Mp)return 14}return 2}function fi(e,t){var n=e.alternate;return n===null?(n=jr(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 Fc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")dg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fa:return ki(n.children,o,i,t);case Pp:a=8,o|=8;break;case fm:return e=jr(12,n,t,o|2),e.elementType=fm,e.lanes=i,e;case mm:return e=jr(13,n,t,o),e.elementType=mm,e.lanes=i,e;case vm:return e=jr(19,n,t,o),e.elementType=vm,e.lanes=i,e;case eS:return id(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zb:a=10;break e;case Jb:a=9;break e;case Np:a=11;break e;case Mp:a=14;break e;case Xo:a=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=jr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ki(e,t,n,r){return e=jr(7,e,r,t),e.lanes=n,e}function id(e,t,n,r){return e=jr(22,e,r,t),e.elementType=eS,e.lanes=n,e.stateNode={isHidden:!1},e}function xf(e,t,n){return e=jr(6,e,null,t),e.lanes=n,e}function wf(e,t,n){return t=jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NI(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=nf(0),this.expirationTimes=nf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fg(e,t,n,r,o,i,a,l,c){return e=new NI(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xp(i),e}function MI(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qC)}catch(e){console.error(e)}}qC(),qb.exports=Or;var bo=qb.exports;const us=Cp(bo),kI=kb({__proto__:null,default:us},[bo]);var F0=bo;um.createRoot=F0.createRoot,um.hydrateRoot=F0.hydrateRoot;const LI=({width:e,height:t})=>Q.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 1024.000000 1024.000000",preserveAspectRatio:"xMidYMid meet",children:Q.jsxs("g",{transform:"translate(0.000000,1024.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none",children:[Q.jsx("path",{d:"M5178 8203 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:"M5398 8203 c12 -2 30 -2 40 0 9 3 -1 5 -23 4 -22 0 -30 -2 -17 -4z"}),Q.jsx("path",{d:"M5533 8193 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"}),Q.jsx("path",{d:"M4848 8183 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"}),Q.jsx("path",{d:"M5613 8183 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"}),Q.jsx("path",{d:"M5688 8173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:"M4625 8150 c-13 -6 -15 -9 -5 -9 8 0 22 4 30 9 18 12 2 12 -25 0z"}),Q.jsx("path",{d:`M4260 8050 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5 + 0 -17 -5 -25 -10z`}),Q.jsx("path",{d:`M6294 8016 c11 -9 24 -16 30 -16 12 0 7 5 -24 19 -24 11 -24 11 -6 + -3z`}),Q.jsx("path",{d:`M6365 7990 c3 -5 8 -10 11 -10 2 0 4 5 4 10 0 6 -5 10 -11 10 -5 0 + -7 -4 -4 -10z`}),Q.jsx("path",{d:"M6497 7939 c7 -7 15 -10 18 -7 3 3 -2 9 -12 12 -14 6 -15 5 -6 -5z"}),Q.jsx("path",{d:`M6633 7865 c0 -7 6 -11 14 -8 7 3 13 6 13 8 0 2 -6 5 -13 8 -8 3 -14 + -1 -14 -8z`}),Q.jsx("path",{d:`M6813 7770 c48 -26 61 -26 22 0 -16 11 -37 20 -45 20 -8 0 2 -9 23 + -20z`}),Q.jsx("path",{d:`M6880 7730 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5 + 0 -3 -5 5 -10z`}),Q.jsx("path",{d:`M6960 7687 c0 -2 15 -14 33 -27 20 -15 27 -17 18 -6 -13 16 -51 41 + -51 33z`}),Q.jsx("path",{d:"M7069 7607 c26 -28 31 -32 31 -19 0 4 -13 16 -28 26 l-27 19 24 -26z"}),Q.jsx("path",{d:"M3385 7599 c-4 -6 -5 -12 -2 -15 2 -3 7 2 10 11 7 17 1 20 -8 4z"}),Q.jsx("path",{d:"M5338 7573 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:"M5208 7563 c23 -2 59 -2 80 0 20 2 1 4 -43 4 -44 0 -61 -2 -37 -4z"}),Q.jsx("path",{d:`M7130 7566 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21 + 13z`}),Q.jsx("path",{d:"M5028 7553 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"}),Q.jsx("path",{d:"M4838 7513 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:"M4798 7503 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:`M7225 7490 c10 -11 20 -20 23 -20 3 0 -3 9 -13 20 -10 11 -20 20 -23 + 20 -3 0 3 -9 13 -20z`}),Q.jsx("path",{d:"M4647 7459 c7 -7 15 -10 18 -7 3 3 -2 9 -12 12 -14 6 -15 5 -6 -5z"}),Q.jsx("path",{d:`M4560 7424 c-22 -8 -28 -13 -15 -13 11 0 31 6 45 14 31 17 17 17 -30 + -1z`}),Q.jsx("path",{d:"M7306 7408 c3 -5 10 -6 15 -3 13 9 11 12 -6 12 -8 0 -12 -4 -9 -9z"}),Q.jsx("path",{d:`M4494 7384 c-18 -14 -18 -14 6 -3 31 14 36 19 24 19 -6 0 -19 -7 -30 + -16z`}),Q.jsx("path",{d:"M3099 7363 c-13 -16 -12 -17 4 -4 9 7 17 15 17 17 0 8 -8 3 -21 -13z"}),Q.jsx("path",{d:`M4410 7345 c-14 -8 -20 -14 -15 -14 6 0 21 6 35 14 14 8 21 14 15 14 + -5 0 -21 -6 -35 -14z`}),Q.jsx("path",{d:`M4324 7325 c1 -8 8 -21 16 -28 11 -9 11 -8 0 7 -14 18 -13 19 3 13 + 23 -9 22 0 -2 13 -15 8 -19 7 -17 -5z`}),Q.jsx("path",{d:"M3029 7293 c-13 -16 -12 -17 4 -4 9 7 17 15 17 17 0 8 -8 3 -21 -13z"}),Q.jsx("path",{d:`M4315 7280 c-4 -6 -10 -8 -15 -5 -4 3 -11 -2 -14 -10 -4 -13 -2 -13 + 14 -5 18 10 36 30 26 30 -3 0 -8 -5 -11 -10z`}),Q.jsx("path",{d:`M2946 7211 c-14 -15 -15 -21 -4 -27 7 -4 10 -3 5 1 -4 5 0 17 10 27 + 9 10 14 18 11 18 -3 0 -13 -9 -22 -19z`}),Q.jsx("path",{d:`M7466 7222 c-3 -5 1 -9 9 -9 8 0 12 4 9 9 -3 4 -7 8 -9 8 -2 0 -6 -4 + -9 -8z`}),Q.jsx("path",{d:`M7510 7216 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21 + 13z`}),Q.jsx("path",{d:"M4190 7190 c-9 -6 -10 -10 -3 -10 6 0 15 5 18 10 8 12 4 12 -15 0z"}),Q.jsx("path",{d:"M4086 7173 c-6 -14 -5 -15 5 -6 7 7 10 15 7 18 -3 3 -9 -2 -12 -12z"}),Q.jsx("path",{d:`M4119 7172 c-11 -14 -11 -15 1 -4 19 16 26 15 27 -6 1 -11 -17 -28 + -50 -47 -29 -16 -56 -30 -62 -30 -5 0 -14 -6 -18 -12 -4 -7 -12 -13 -17 -13 + -34 0 -319 -233 -449 -366 -61 -63 -111 -109 -111 -102 0 6 -16 -3 -35 -22 + -19 -18 -31 -38 -28 -43 4 -6 14 -1 24 11 9 12 20 22 24 22 3 0 -11 -20 -31 + -45 -21 -24 -42 -41 -47 -38 -6 3 -7 2 -4 -4 11 -17 -22 -53 -41 -46 -14 6 + -15 4 -4 -9 7 -9 9 -18 5 -20 -11 -4 -59 -76 -74 -110 -7 -16 -16 -28 -20 -28 + -5 0 1 16 13 36 15 26 18 38 9 47 -6 6 -11 16 -11 22 0 5 7 2 15 -9 13 -17 15 + -17 33 13 10 17 18 46 17 66 -1 36 15 51 34 32 8 -8 11 -5 11 10 0 25 45 96 + 83 131 24 23 26 23 37 5 7 -11 10 -12 7 -3 -2 8 3 20 12 26 12 10 13 15 3 27 + -8 10 -9 17 -3 21 5 4 14 0 18 -9 7 -12 14 -10 38 13 35 33 60 72 46 72 -6 0 + -16 -12 -23 -27 -7 -15 -17 -26 -22 -24 -5 1 -13 -3 -17 -11 -8 -11 -10 -11 + -18 1 -7 11 -12 11 -32 -2 -13 -9 -41 -19 -61 -22 -37 -7 -51 -29 -25 -38 10 + -4 10 -7 0 -18 -11 -11 -13 -10 -13 4 0 13 -9 17 -40 17 l-40 0 0 40 c0 22 -4 + 40 -10 40 -5 0 -10 -18 -10 -40 0 -38 -2 -40 -30 -40 -16 0 -30 -4 -30 -10 0 + -5 -7 -10 -15 -10 -8 0 -15 5 -15 10 0 6 7 10 15 10 8 0 15 5 15 10 0 6 -18 + 10 -40 10 -33 0 -40 -3 -40 -20 0 -11 7 -20 15 -20 8 0 15 -9 15 -20 0 -11 -7 + -20 -15 -20 -8 0 -15 -4 -15 -10 0 -5 11 -10 25 -10 14 0 25 5 25 10 0 6 7 10 + 16 10 11 0 14 -5 10 -16 -3 -9 -6 -18 -6 -20 0 -2 -16 -4 -35 -4 -19 0 -35 5 + -35 10 0 6 -25 9 -57 9 -32 -1 -50 -3 -40 -6 9 -2 17 -9 17 -15 0 -6 -8 -17 + -17 -24 -17 -13 -17 -13 0 -14 9 0 17 -4 17 -10 0 -5 12 -10 28 -10 21 0 24 + -2 12 -10 -8 -6 -27 -7 -42 -4 -21 4 -28 2 -28 -10 0 -13 12 -16 55 -16 48 0 + 55 -2 55 -20 0 -14 7 -20 23 -21 12 0 16 -3 9 -6 -7 -3 -28 2 -46 11 -37 18 + -77 21 -91 7 -6 -4 -26 -11 -45 -14 -34 -5 -34 -5 -7 6 29 12 37 37 12 37 -8 + 0 -15 4 -15 9 0 5 7 11 15 15 8 3 15 10 15 16 0 5 -7 10 -15 10 -20 0 -19 20 + 3 36 16 13 16 13 0 14 -10 0 -18 4 -18 9 0 5 8 12 18 14 9 3 1 5 -19 6 -20 0 + -64 4 -98 7 -43 5 -61 3 -61 -5 0 -6 17 -11 40 -11 38 0 40 -2 40 -30 0 -28 + -2 -30 -40 -30 -22 0 -40 -4 -40 -10 0 -5 -6 -10 -14 -10 -7 0 -26 -6 -41 -14 + -26 -13 -26 -14 -6 -21 12 -3 21 -12 21 -19 0 -8 10 -11 30 -8 20 3 30 0 30 + -8 0 -9 -12 -11 -42 -6 -102 17 -138 18 -138 7 0 -6 19 -12 43 -13 l42 -1 -45 + -7 -45 -7 43 -1 c23 -1 42 -6 42 -11 0 -6 -19 -12 -42 -14 l-43 -4 43 -1 c74 + -3 45 -20 -48 -28 l-90 -7 0 -48 c0 -42 -4 -51 -32 -74 -21 -17 -28 -29 -20 + -32 7 -2 12 -22 12 -44 0 -32 -4 -40 -24 -45 -13 -3 -37 -4 -52 -1 -22 3 -19 + 4 14 6 l42 1 0 41 0 41 -42 -4 c-42 -3 -43 -2 -49 32 l-6 35 -2 -32 c0 -18 -5 + -33 -10 -33 -5 0 -7 10 -4 23 4 22 4 22 -12 2 -17 -19 -17 -19 -11 9 4 17 15 + 36 24 43 11 8 12 12 5 13 -7 0 -13 5 -13 11 0 6 9 8 20 4 11 -4 20 -2 20 4 0 + 6 -3 10 -7 10 -21 -3 -22 4 -8 38 8 20 14 38 11 40 -2 2 -13 -22 -25 -54 -13 + -32 -29 -74 -38 -93 -13 -31 -13 -35 1 -46 21 -15 20 -20 -5 -45 l-22 -22 7 + 29 6 29 -15 -26 c-10 -18 -12 -35 -5 -55 4 -16 9 -22 9 -14 1 13 2 13 11 0 14 + -22 12 -28 -7 -26 -10 0 -21 12 -24 26 -6 24 -7 23 -8 -5 0 -17 -5 -35 -10 + -40 -4 -6 -14 -32 -21 -59 -10 -38 -11 -51 -2 -54 14 -4 16 -42 2 -42 -5 0 + -10 8 -11 18 -1 25 -29 -57 -34 -98 -2 -19 -11 -65 -19 -102 -9 -37 -15 -71 + -14 -75 1 -4 -2 -24 -5 -43 -23 -119 -37 -495 -25 -660 64 -902 554 -1753 + 1308 -2272 426 -294 886 -471 1410 -544 159 -22 555 -25 715 -5 525 64 981 + 233 1410 522 159 108 240 171 373 296 283 263 495 547 662 888 178 364 280 + 733 310 1123 17 221 -4 592 -45 797 -28 142 -95 376 -105 370 -5 -3 -11 2 -14 + 11 -9 24 -7 31 5 14 10 -13 10 -13 7 0 -19 65 -43 118 -51 113 -6 -3 -7 -1 -4 + 5 4 5 4 20 -1 31 l-7 21 -13 -21 c-10 -16 -10 -19 -1 -13 9 5 10 2 6 -10 -4 + -10 -7 -20 -7 -22 0 -3 -4 -2 -10 1 -5 3 -10 17 -10 31 0 14 4 22 10 19 6 -3 + 10 -2 10 4 0 6 -16 8 -37 5 l-38 -6 24 20 24 19 -37 7 -38 7 5 64 5 64 -26 + -17 c-15 -9 -23 -12 -19 -6 3 6 -4 16 -18 22 -21 10 -25 9 -25 -3 0 -8 -7 -15 + -15 -15 -21 0 -19 30 3 46 15 12 14 13 -12 14 -27 0 -28 2 -23 35 3 19 1 37 + -4 41 -5 3 -9 11 -8 17 3 24 -1 37 -12 37 -8 0 -8 -5 1 -15 11 -13 6 -15 -36 + -15 -60 0 -98 -19 -44 -21 24 -1 28 -3 13 -6 -13 -2 -23 -10 -23 -18 0 -7 10 + -16 23 -19 l22 -6 -25 -15 c-14 -8 -42 -14 -62 -15 -35 0 -38 -2 -38 -30 0 + -28 -2 -30 -40 -30 -38 0 -40 2 -40 30 0 22 -5 30 -17 30 -10 0 -28 3 -40 6 + -17 5 -23 2 -23 -10 0 -9 -8 -16 -20 -16 -11 0 -20 -4 -20 -10 0 -5 -9 -10 + -20 -10 -25 0 -27 27 -2 33 10 3 6 5 -10 6 -26 1 -28 -2 -28 -39 0 -33 -3 -40 + -20 -40 -16 0 -20 7 -20 36 0 56 -18 67 -100 59 -50 -5 -75 -4 -85 5 -12 10 + -15 9 -15 -8 0 -12 -5 -24 -12 -28 -7 -4 -8 -3 -4 4 5 8 -1 12 -14 12 -20 0 + -20 -1 -4 -23 16 -21 19 -22 34 -8 9 9 15 19 13 24 -2 4 34 7 81 7 l86 0 0 + -40 c0 -33 -3 -40 -20 -40 -11 0 -20 -6 -20 -12 0 -9 -3 -10 -8 -2 -4 6 -26 + 11 -49 11 l-42 0 17 -23 c9 -13 21 -24 26 -24 5 0 3 7 -4 15 -7 9 -10 18 -6 + 22 9 10 17 -2 20 -33 2 -16 4 -33 5 -37 0 -5 6 -5 13 -1 7 4 8 3 4 -5 -4 -6 + -12 -8 -18 -5 -6 4 -8 -1 -4 -14 4 -11 2 -23 -3 -27 -7 -4 -8 1 -4 11 4 12 3 + 15 -5 10 -8 -5 -10 -2 -6 9 4 9 2 15 -4 13 -5 -2 -26 20 -45 49 -31 44 -34 53 + -22 63 8 7 15 17 15 23 0 5 -8 3 -18 -6 -17 -16 -23 -10 -108 94 -85 105 -222 + 248 -309 320 -22 19 -42 36 -45 39 -3 3 -24 18 -48 34 -36 24 -75 61 -46 43 5 + -3 9 10 9 28 0 31 -1 32 -22 17 -29 -18 -29 -25 -1 -16 20 6 21 5 10 -9 -13 + -15 -16 -14 -43 5 -21 16 -26 24 -17 31 8 5 4 6 -11 2 -17 -5 -21 -4 -16 5 5 + 8 3 11 -6 8 -8 -3 -26 6 -41 20 -16 14 -28 21 -28 16 0 -6 14 -23 31 -40 46 + -44 142 -174 199 -270 145 -246 213 -508 212 -824 -1 -427 -107 -699 -372 + -958 -49 -48 -204 -172 -214 -172 -4 0 -19 -8 -34 -19 -15 -10 -88 -58 -162 + -107 -202 -131 -306 -251 -357 -411 -20 -64 -25 -106 -30 -235 l-6 -158 -488 + 0 c-269 0 -492 -1 -496 -2 -13 -5 -15 389 -3 504 21 206 83 361 216 538 109 + 144 198 219 522 434 233 154 334 263 391 420 22 62 25 87 26 196 0 106 -4 136 + -24 199 -64 195 -240 360 -432 406 -73 17 -232 20 -309 5 -128 -24 -271 -120 + -350 -236 -81 -116 -120 -253 -120 -415 l0 -99 -495 0 -495 0 0 163 c0 89 5 + 200 10 245 40 316 178 596 412 837 72 74 90 110 58 112 -10 1 -24 -6 -31 -15z + m-660 -533 c-5 -3 -24 -3 -42 -1 l-32 5 28 9 c15 6 27 15 27 21 0 6 6 2 14 -9 + 8 -11 10 -21 5 -25z m-156 -99 c-6 -24 -23 -37 -23 -19 0 10 -3 10 -12 1 -19 + -19 -28 -14 -28 13 0 22 4 25 34 25 29 0 33 -3 29 -20z m4537 -5 c0 -8 -6 -15 + -14 -15 -20 0 -29 17 -14 23 22 9 28 7 28 -8z m17 -27 c-3 -8 -6 -5 -6 6 -1 + 11 2 17 5 13 3 -3 4 -12 1 -19z m-4657 -18 c0 -5 -18 -10 -40 -10 -22 0 -40 5 + -40 10 0 6 18 10 40 10 22 0 40 -4 40 -10z m26 -16 c-3 -9 -6 -20 -6 -25 0 -5 + -4 -9 -10 -9 -11 0 -14 33 -3 43 12 13 25 7 19 -9z m4630 1 c13 -11 14 -13 3 + -9 -13 4 -18 -3 -23 -30 -6 -31 -11 -36 -35 -36 -21 0 -30 6 -35 23 -10 37 -7 + 57 9 57 8 0 15 -7 15 -15 0 -8 5 -15 11 -15 6 0 9 9 6 20 -6 25 20 27 49 5z + m-5036 -5 c0 -5 -4 -10 -10 -10 -5 0 -10 -7 -10 -15 0 -17 -2 -18 -24 -9 -9 3 + -16 12 -16 19 0 12 9 16 53 24 4 0 7 -3 7 -9z m45 -30 c0 -8 -8 -16 -17 -18 + -13 -2 -18 3 -18 18 0 15 5 20 18 18 9 -2 17 -10 17 -18z m4655 -10 c0 -5 -7 + -10 -15 -10 -8 0 -15 5 -15 10 0 6 7 10 15 10 8 0 15 -4 15 -10z m348 -22 c-6 + -18 -28 -21 -28 -4 0 9 7 16 16 16 9 0 14 -5 12 -12z m-408 -7 c0 -6 -4 -13 + -10 -16 -5 -3 -10 1 -10 9 0 9 5 16 10 16 6 0 10 -4 10 -9z m-4200 -16 c-7 -9 + -15 -13 -19 -10 -3 3 1 10 9 15 21 14 24 12 10 -5z m4270 11 c0 -1 -11 -14 + -23 -28 -22 -24 -67 -46 -67 -34 0 11 35 41 60 53 30 14 30 14 30 9z m103 -3 + c-7 -2 -19 -2 -25 0 -7 3 -2 5 12 5 14 0 19 -2 13 -5z m47 -18 c0 -8 -6 -15 + -14 -15 -20 0 -29 17 -14 23 22 9 28 7 28 -8z m-4780 1 c0 -2 -7 -6 -15 -10 + -8 -3 -15 -1 -15 4 0 6 7 10 15 10 8 0 15 -2 15 -4z m304 -12 c9 -23 4 -24 + -16 -2 -14 14 -15 18 -4 18 8 0 17 -7 20 -16z m4430 -12 c5 -3 1 -9 -9 -15 + -12 -7 -20 -5 -26 4 -17 28 -3 32 35 11z m-4784 -2 c0 -5 -4 -10 -10 -10 -5 0 + -10 5 -10 10 0 6 5 10 10 10 6 0 10 -4 10 -10z m4507 -15 c0 -8 -4 -12 -9 -9 + -4 3 -8 9 -8 15 0 5 4 9 8 9 5 0 9 -7 9 -15z m168 -5 c3 -5 -1 -10 -10 -10 -9 + 0 -13 5 -10 10 3 6 8 10 10 10 2 0 7 -4 10 -10z m-4628 -6 c-3 -3 -12 -4 -19 + -1 -8 3 -5 6 6 6 11 1 17 -2 13 -5z m4776 -1 c-7 -2 -19 -2 -25 0 -7 3 -2 5 + 12 5 14 0 19 -2 13 -5z m270 -3 c8 0 8 -3 0 -11 -9 -9 -16 -7 -30 7 -17 17 + -17 18 0 11 10 -4 24 -7 30 -7z m-5283 -10 c0 -14 38 -12 43 3 2 7 8 8 13 3 5 + -5 4 -11 -3 -13 -7 -3 -13 -13 -13 -23 0 -10 6 -20 13 -23 7 -2 8 -8 3 -13 -5 + -5 -11 -4 -13 4 -3 6 -13 12 -23 12 -10 0 -20 -6 -23 -12 -2 -8 -8 -9 -13 -4 + -5 5 -4 11 4 13 14 5 16 43 2 43 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0 10 -4 + 10 -10z m4700 -31 c0 -10 -7 -19 -15 -19 -15 0 -21 31 -9 43 11 10 24 -3 24 + -24z m-36 -40 c-3 -5 -2 -19 1 -30 5 -16 9 -18 15 -9 6 9 10 6 15 -11 5 -14 3 + -25 -4 -27 -6 -2 -11 -8 -11 -13 0 -6 5 -7 12 -3 7 4 8 3 4 -4 -4 -7 -2 -20 4 + -29 8 -14 10 -14 9 -3 -3 34 2 50 16 50 16 0 21 -36 6 -42 -16 -5 -17 -43 -2 + -43 8 0 16 -6 19 -12 2 -7 -3 -13 -11 -13 -17 0 -77 109 -69 129 2 8 1 11 -4 + 8 -5 -3 -20 11 -33 30 -12 19 -18 32 -12 29 5 -4 12 -2 16 3 3 6 12 8 20 5 8 + -4 12 -10 9 -15z m-4130 -11 c-3 -5 -10 -5 -16 -2 -7 5 -9 1 -5 -9 3 -9 0 -22 + -7 -29 -7 -7 -13 -16 -14 -21 -3 -14 -33 -67 -38 -67 -2 0 3 14 12 31 13 27 + 14 35 3 56 -12 22 -11 27 3 37 18 13 70 17 62 4z m4469 5 c-13 -2 -33 -2 -45 + 0 -13 2 -3 4 22 4 25 0 35 -2 23 -4z m0 -30 c-13 -2 -33 -2 -45 0 -13 2 -3 4 + 22 4 25 0 35 -2 23 -4z m182 -12 c-3 -6 -11 -11 -16 -11 -5 0 -4 6 3 14 14 16 + 24 13 13 -3z m275 -7 c0 -8 -5 -12 -10 -9 -6 4 -8 11 -5 16 9 14 15 11 15 -7z + m0 -36 c0 -6 -6 -5 -15 2 -8 7 -15 14 -15 16 0 2 7 1 15 -2 8 -4 15 -11 15 + -16z m-5560 -28 c0 -22 -4 -40 -10 -40 -5 0 -10 18 -10 40 0 22 5 40 10 40 6 + 0 10 -18 10 -40z m143 23 c-13 -2 -33 -2 -45 0 -13 2 -3 4 22 4 25 0 35 -2 23 + -4z m-323 -38 c0 -38 0 -38 -24 -29 -19 7 -21 35 -4 52 20 20 28 14 28 -23z + m323 8 c-13 -2 -33 -2 -45 0 -13 2 -3 4 22 4 25 0 35 -2 23 -4z m4717 -18 c0 + -8 3 -15 8 -15 4 0 7 -11 7 -24 0 -13 -3 -22 -7 -19 -5 2 -8 -3 -8 -11 0 -9 5 + -16 10 -16 6 0 10 -5 10 -10 0 -13 -38 10 -45 28 -2 7 -1 10 4 7 5 -3 13 5 17 + 17 4 13 2 24 -5 26 -14 5 -15 32 -1 32 6 0 10 -7 10 -15z m-4344 -85 c-17 -37 + -33 -63 -35 -58 -2 5 9 32 23 60 21 40 24 53 14 59 -9 5 -6 8 8 7 21 -2 20 -4 + -10 -68z m4405 33 c-9 -16 -10 -14 -11 12 0 21 3 26 11 18 8 -8 8 -16 0 -30z + m698 -23 c0 -10 -3 -8 -9 5 -12 27 -12 43 0 25 5 -8 9 -22 9 -30z m-5716 23 + c-13 -2 -33 -2 -45 0 -13 2 -3 4 22 4 25 0 35 -2 23 -4z m-144 -46 c0 -21 -1 + -21 -9 -2 -7 17 -9 16 -10 -10 -2 -30 -2 -30 -10 -5 -7 22 -8 21 -9 -12 -1 + -42 5 -47 25 -20 15 19 19 5 5 -17 -5 -8 -16 -11 -25 -8 -21 8 -21 70 0 91 19 + 20 34 12 33 -17z m5877 -33 c-4 -14 -9 -24 -12 -21 -3 2 -2 17 2 31 3 15 9 25 + 11 22 3 -3 2 -17 -1 -32z m-756 -17 c0 -16 -18 3 -23 25 -6 22 -5 22 8 4 8 + -11 15 -24 15 -29z m771 -50 c-8 -8 -11 -7 -11 4 0 9 3 19 7 23 4 4 9 2 11 -4 + 3 -7 -1 -17 -7 -23z m-5207 7 c3 -8 2 -12 -4 -9 -6 3 -10 10 -10 16 0 14 7 11 + 14 -7z m29 -1 c-3 -7 -6 -13 -8 -13 -2 0 -5 6 -8 13 -3 8 1 14 8 14 7 0 11 -6 + 8 -14z m4436 -23 c5 -17 6 -28 2 -25 -5 3 -14 19 -20 35 -5 17 -6 28 -2 25 5 + -3 14 -19 20 -35z m22 26 c12 7 11 -7 -1 -26 -6 -9 -10 -10 -10 -3 0 6 -2 17 + -3 25 -2 7 -2 10 0 5 3 -4 9 -5 14 -1z m-4518 -46 c3 -11 1 -18 -4 -14 -5 3 + -9 12 -9 20 0 20 7 17 13 -6z m27 -36 c-10 -27 -19 -43 -20 -37 0 16 31 95 36 + 90 2 -2 -5 -25 -16 -53z m4510 26 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 + 10 11 10 2 0 4 -4 4 -10z m-10 -59 c0 -14 2 -14 10 -1 8 11 9 7 4 -15 -4 -16 + -7 -31 -8 -32 -1 -1 -9 22 -18 50 -13 41 -14 48 -3 33 8 -11 15 -27 15 -35z + m750 14 c0 -8 -7 -15 -16 -15 -14 0 -14 3 -4 15 7 8 14 15 16 15 2 0 4 -7 4 + -15z m-6020 -98 c0 -18 -2 -19 -11 -7 -7 11 -9 0 -5 -40 5 -49 4 -51 -5 -21 + -12 38 -4 105 12 96 5 -4 9 -16 9 -28z m5299 -27 c0 -9 -4 -8 -9 5 -5 11 -9 + 27 -9 35 0 9 4 8 9 -5 5 -11 9 -27 9 -35z m736 10 c3 -5 1 -10 -4 -10 -6 0 + -11 5 -11 10 0 6 2 10 4 10 3 0 8 -4 11 -10z m-5348 -32 c-3 -8 -6 -5 -6 6 -1 + 11 2 17 5 13 3 -3 4 -12 1 -19z m35 -5 c-2 -12 -6 -23 -7 -23 -1 0 -5 11 -7 + 23 -3 14 0 24 7 24 7 0 10 -10 7 -24z m4601 -38 c-3 -9 -8 -14 -10 -11 -3 3 + -2 9 2 15 9 16 15 13 8 -4z m-4636 -17 c-3 -8 -6 -5 -6 6 -1 11 2 17 5 13 3 + -3 4 -12 1 -19z m20 0 c-3 -8 -6 -5 -6 6 -1 11 2 17 5 13 3 -3 4 -12 1 -19z + m-740 -35 c-3 -10 -5 -4 -5 12 0 17 2 24 5 18 2 -7 2 -21 0 -30z m730 -5 c-3 + -8 -6 -5 -6 6 -1 11 2 17 5 13 3 -3 4 -12 1 -19z m5350 0 c-3 -8 -6 -5 -6 6 + -1 11 2 17 5 13 3 -3 4 -12 1 -19z m-702 -38 c10 -46 -4 -32 -15 15 -5 21 -5 + 34 0 29 4 -5 11 -25 15 -44z m-4664 -7 c-12 -20 -14 -14 -5 12 4 9 9 14 11 11 + 3 -2 0 -13 -6 -23z m4682 -118 c4 -60 3 -69 -3 -35 -9 46 -13 127 -6 119 2 -2 + 6 -40 9 -84z m-4698 15 c-4 -7 148 -10 448 -10 262 0 477 -4 508 -10 173 -32 + 339 -151 418 -299 43 -82 63 -171 64 -286 2 -182 -46 -301 -168 -416 -30 -30 + -62 -57 -70 -62 -8 -4 -15 -14 -15 -21 0 -8 64 -103 142 -212 78 -110 171 + -242 205 -294 l64 -95 -263 -3 c-144 -1 -269 0 -276 3 -8 3 -11 12 -8 21 3 8 + 2 13 -3 9 -8 -4 -148 192 -279 390 -15 22 -31 43 -37 47 -5 4 -72 8 -147 8 + l-138 0 0 -133 c0 -74 -3 -182 -7 -240 l-6 -107 -227 0 -227 0 -8 828 c-5 601 + -10 829 -19 834 -8 6 -8 8 2 8 6 0 12 9 12 19 0 18 12 28 33 30 5 1 5 -3 2 -9z + m4712 -162 c-3 -7 -5 -2 -5 12 0 14 2 19 5 13 2 -7 2 -19 0 -25z m10 -180 c-2 + -18 -4 -6 -4 27 0 33 2 48 4 33 2 -15 2 -42 0 -60z m0 -175 c-3 -10 -5 -2 -5 + 17 0 19 2 27 5 18 2 -10 2 -26 0 -35z m552 -115 c-5 -10 -11 -18 -12 -18 -2 0 + -3 8 -3 18 0 10 6 19 13 19 8 0 9 -6 2 -19z m-1266 -14 c335 -75 545 -426 458 + -765 -24 -92 -56 -149 -127 -229 -30 -34 -54 -66 -52 -70 2 -5 48 -57 103 + -115 113 -121 135 -154 135 -206 0 -81 -97 -158 -182 -144 -39 6 -59 23 -195 + 158 l-152 151 -83 -3 c-317 -10 -574 188 -647 501 -6 26 -11 82 -11 126 0 339 + 264 609 598 611 46 1 115 -6 155 -15z m1207 -48 c0 -2 -7 -7 -16 -10 -8 -3 + -12 -2 -9 4 6 10 25 14 25 6z m-2370 -1670 c0 -233 -3 -431 -6 -440 -5 -14 + -59 -16 -505 -16 l-499 0 0 440 0 440 505 0 505 0 0 -424z`}),Q.jsx("path",{d:`M7300 6220 c6 -11 13 -20 16 -20 2 0 0 9 -6 20 -6 11 -13 20 -16 20 + -2 0 0 -9 6 -20z`}),Q.jsx("path",{d:"M7336 6173 c-6 -14 -5 -15 5 -6 7 7 10 15 7 18 -3 3 -9 -2 -12 -12z"}),Q.jsx("path",{d:`M3141 6214 c-10 -12 -10 -19 -2 -27 8 -8 11 -6 11 7 0 9 4 14 10 11 + 6 -3 7 1 4 9 -7 19 -6 19 -23 0z`}),Q.jsx("path",{d:`M3337 4883 c-3 -60 -5 -150 -4 -200 l1 -93 196 0 c175 0 200 3 240 + 21 83 38 120 88 120 165 0 73 -19 122 -62 158 -57 49 -94 56 -301 56 l-185 0 + -5 -107z`}),Q.jsx("path",{d:`M6665 4376 c-126 -59 -179 -199 -121 -321 28 -61 56 -87 119 -115 + 120 -53 271 -1 326 113 29 60 28 146 -3 212 -53 116 -202 167 -321 111z`}),Q.jsx("path",{d:"M2865 7121 c-3 -5 -2 -12 3 -15 5 -3 9 1 9 9 0 17 -3 19 -12 6z"}),Q.jsx("path",{d:`M4013 7107 c-4 -6 -1 -7 7 -2 7 4 15 2 20 -4 5 -9 9 -9 18 1 8 10 5 + 13 -14 14 -13 1 -27 -3 -31 -9z`}),Q.jsx("path",{d:`M2821 7066 c-9 -11 -9 -16 1 -22 7 -4 10 -4 6 1 -4 4 -3 14 3 22 6 7 + 9 13 6 13 -2 0 -10 -6 -16 -14z`}),Q.jsx("path",{d:"M3955 7069 c-11 -17 1 -21 15 -4 8 9 8 15 2 15 -6 0 -14 -5 -17 -11z"}),Q.jsx("path",{d:"M7626 7067 c3 -10 9 -15 12 -12 3 3 0 11 -7 18 -10 9 -11 8 -5 -6z"}),Q.jsx("path",{d:"M3847 7029 c7 -7 15 -10 18 -7 3 3 -2 9 -12 12 -14 6 -15 5 -6 -5z"}),Q.jsx("path",{d:"M3869 7003 c-13 -16 -12 -17 4 -4 9 7 17 15 17 17 0 8 -8 3 -21 -13z"}),Q.jsx("path",{d:`M7680 7016 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21 + 13z`}),Q.jsx("path",{d:"M3681 6974 c0 -11 3 -14 6 -6 3 7 2 16 -1 19 -3 4 -6 -2 -5 -13z"}),Q.jsx("path",{d:`M7706 6972 c-3 -5 1 -9 9 -9 8 0 12 4 9 9 -3 4 -7 8 -9 8 -2 0 -6 -4 + -9 -8z`}),Q.jsx("path",{d:"M2786 6957 c3 -10 9 -15 12 -12 3 3 0 11 -7 18 -10 9 -11 8 -5 -6z"}),Q.jsx("path",{d:`M7684 6939 c0 -13 3 -15 13 -7 7 6 13 12 13 13 0 2 -6 5 -13 8 -7 3 + -13 -3 -13 -14z`}),Q.jsx("path",{d:"M3770 6946 c0 -2 7 -7 16 -10 8 -3 12 -2 9 4 -6 10 -25 14 -25 6z"}),Q.jsx("path",{d:`M6686 6941 c-7 -11 22 -36 31 -27 3 3 1 6 -6 6 -8 0 -11 7 -7 15 6 + 16 -9 21 -18 6z`}),Q.jsx("path",{d:`M7727 6943 c-4 -3 -7 -11 -7 -17 0 -6 4 -5 9 2 6 10 12 7 25 -13 9 + -14 15 -29 12 -34 -3 -4 1 -8 9 -8 12 0 11 6 -3 29 -21 36 -37 50 -45 41z`}),Q.jsx("path",{d:`M7700 6906 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21 + 13z`}),Q.jsx("path",{d:`M3643 6873 c-26 -9 -12 -22 17 -16 20 3 30 1 30 -6 0 -8 4 -8 14 1 8 + 7 13 14 11 16 -5 6 -60 10 -72 5z`}),Q.jsx("path",{d:`M6765 6870 c-3 -5 9 -18 27 -29 18 -11 44 -30 57 -43 l23 -23 -12 23 + c-9 19 -9 27 4 41 9 10 16 22 16 27 -1 5 -9 -1 -19 -13 l-19 -22 -38 19 c-42 + 21 -42 26 0 10 16 -6 27 -6 31 0 4 6 0 10 -7 11 -7 0 -23 2 -35 5 -12 2 -25 + -1 -28 -6z`}),Q.jsx("path",{d:`M2662 6848 c-7 -9 -6 -17 3 -25 10 -9 13 -7 11 13 -1 28 -1 28 -14 + 12z`}),Q.jsx("path",{d:"M2690 6841 c0 -6 4 -13 10 -16 6 -3 7 1 4 9 -7 18 -14 21 -14 7z"}),Q.jsx("path",{d:`M3588 6843 c-22 -5 -23 -19 -3 -27 9 -3 12 -12 9 -23 -5 -15 -4 -16 + 5 -3 6 8 8 24 4 35 -5 18 -5 18 12 2 14 -15 15 -20 3 -34 -12 -15 -11 -15 9 + -4 22 11 22 13 7 36 -9 14 -19 24 -23 24 -3 -1 -14 -3 -23 -6z`}),Q.jsx("path",{d:`M3650 6829 c0 -5 5 -7 10 -4 6 3 10 8 10 11 0 2 -4 4 -10 4 -5 0 -10 + -5 -10 -11z`}),Q.jsx("path",{d:`M7795 6810 c-3 -5 3 -7 12 -5 10 1 25 -2 33 -8 12 -9 13 -9 3 3 -15 + 16 -41 22 -48 10z`}),Q.jsx("path",{d:`M3526 6788 c3 -10 2 -18 -3 -17 -18 3 -33 -2 -33 -11 0 -16 50 -12 + 56 5 4 8 13 15 21 15 8 0 12 4 8 10 -3 5 -13 6 -22 3 -10 -4 -14 -2 -10 4 3 5 + 0 10 -9 10 -9 0 -12 -7 -8 -19z`}),Q.jsx("path",{d:"M7750 6800 c-9 -6 -10 -10 -3 -10 6 0 15 5 18 10 8 12 4 12 -15 0z"}),Q.jsx("path",{d:"M3448 6793 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:`M6922 6778 c5 -15 28 -23 28 -10 0 5 -7 13 -16 16 -10 4 -14 1 -12 + -6z`}),Q.jsx("path",{d:`M7520 6769 c0 -5 5 -7 10 -4 6 3 10 8 10 11 0 2 -4 4 -10 4 -5 0 -10 + -5 -10 -11z`}),Q.jsx("path",{d:`M7855 6749 c2 -26 7 -33 26 -35 13 -2 18 0 12 2 -7 3 -13 11 -13 17 + 0 7 -7 20 -14 30 -12 16 -13 15 -11 -14z`}),Q.jsx("path",{d:`M6911 6739 c11 -11 23 -18 26 -15 9 8 -17 36 -33 36 -10 0 -7 -7 7 + -21z`}),Q.jsx("path",{d:`M7585 6750 c-3 -5 -1 -10 4 -10 6 0 11 5 11 10 0 6 -2 10 -4 10 -3 0 + -8 -4 -11 -10z`}),Q.jsx("path",{d:`M3345 6720 c11 -5 27 -9 35 -9 9 0 8 4 -5 9 -11 5 -27 9 -35 9 -9 0 + -8 -4 5 -9z`}),Q.jsx("path",{d:`M3425 6720 c28 -12 45 -12 45 0 0 6 -15 10 -32 9 -28 0 -30 -2 -13 + -9z`}),Q.jsx("path",{d:"M7748 6723 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:`M6982 6703 c29 -18 45 -43 28 -43 -15 0 -12 -26 4 -39 10 -9 15 -8 + 19 3 4 10 1 13 -9 9 -7 -3 -14 0 -14 6 0 6 6 11 14 11 8 0 13 9 12 24 0 13 -4 + 22 -8 19 -5 -2 -18 3 -30 11 -12 9 -27 16 -33 16 -5 0 2 -8 17 -17z`}),Q.jsx("path",{d:`M6946 6695 c7 -18 44 -40 44 -27 0 6 -11 17 -25 26 -21 14 -24 14 + -19 1z`}),Q.jsx("path",{d:`M7903 6676 c0 -30 12 -42 23 -25 5 8 3 9 -6 4 -9 -6 -12 -4 -8 7 4 8 + 3 21 -2 27 -5 9 -7 4 -7 -13z`}),Q.jsx("path",{d:"M7835 6660 c4 -6 11 -8 16 -5 14 9 11 15 -7 15 -8 0 -12 -5 -9 -10z"}),Q.jsx("path",{d:`M7867 6657 c-3 -8 1 -14 8 -14 7 0 11 6 8 14 -3 7 -6 13 -8 13 -2 0 + -5 -6 -8 -13z`}),Q.jsx("path",{d:`M2865 6650 c-3 -5 -1 -10 4 -10 6 0 11 5 11 10 0 6 -2 10 -4 10 -3 0 + -8 -4 -11 -10z`}),Q.jsx("path",{d:`M7335 6641 l-60 -6 50 -6 c33 -4 57 -1 70 8 11 7 15 12 10 11 -6 -1 + -37 -4 -70 -7z`}),Q.jsx("path",{d:"M2920 6630 l-45 -7 40 -1 c22 0 49 3 60 8 23 10 9 10 -55 0z"}),Q.jsx("path",{d:"M7098 6633 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:`M7927 6634 c-3 -4 0 -18 7 -33 8 -14 12 -45 10 -68 -2 -25 1 -45 8 + -49 6 -4 8 -3 5 3 -4 6 -3 32 2 57 5 28 5 46 -1 46 -5 0 -6 5 -3 10 3 6 -1 13 + -9 16 -9 3 -13 10 -10 15 6 10 0 12 -9 3z`}),Q.jsx("path",{d:`M7740 6610 c0 -5 5 -10 10 -10 6 0 10 5 10 10 0 6 -4 10 -10 10 -5 0 + -10 -4 -10 -10z`}),Q.jsx("path",{d:`M3010 6600 c0 -5 7 -10 15 -10 8 0 15 5 15 10 0 6 -7 10 -15 10 -8 0 + -15 -4 -15 -10z`}),Q.jsx("path",{d:"M7037 6604 c-4 -4 -4 -10 -1 -15 6 -10 34 0 34 12 0 10 -24 12 -33 3z"}),Q.jsx("path",{d:"M2898 6593 c12 -2 32 -2 45 0 12 2 2 4 -23 4 -25 0 -35 -2 -22 -4z"}),Q.jsx("path",{d:`M7415 6591 c-6 -6 -39 -14 -75 -19 l-65 -10 68 -1 c39 0 67 3 67 9 0 + 6 7 10 15 10 8 0 15 5 15 10 0 13 -13 13 -25 1z`}),Q.jsx("path",{d:"M7922 6560 c1 -33 6 -34 13 -2 2 12 0 24 -5 27 -5 3 -8 -8 -8 -25z"}),Q.jsx("path",{d:`M7082 6558 c-7 -10 -2 -23 19 -48 16 -19 29 -29 29 -23 0 7 -4 14 -9 + 18 -6 3 -8 14 -6 25 2 12 0 18 -5 15 -5 -3 -11 -1 -14 4 -4 5 2 12 11 14 15 4 + 15 5 2 6 -9 0 -21 -5 -27 -11z`}),Q.jsx("path",{d:"M7688 6563 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"}),Q.jsx("path",{d:`M7970 6567 c0 -11 39 -87 45 -87 6 0 -15 49 -32 75 -7 11 -13 16 -13 + 12z`}),Q.jsx("path",{d:`M7150 6550 c0 -5 5 -10 11 -10 5 0 7 5 4 10 -3 6 -8 10 -11 10 -2 0 + -4 -4 -4 -10z`}),Q.jsx("path",{d:"M7218 6533 c12 -2 32 -2 45 0 12 2 2 4 -23 4 -25 0 -35 -2 -22 -4z"}),Q.jsx("path",{d:"M7971 6504 c0 -11 3 -14 6 -6 3 7 2 16 -1 19 -3 4 -6 -2 -5 -13z"}),Q.jsx("path",{d:"M2456 6493 c-6 -14 -5 -15 5 -6 7 7 10 15 7 18 -3 3 -9 -2 -12 -12z"}),Q.jsx("path",{d:`M2501 6476 c-8 -10 -8 -16 3 -25 11 -9 15 -6 18 14 6 28 -3 32 -21 + 11z`}),Q.jsx("path",{d:`M3300 6465 c0 -5 5 -17 10 -25 5 -8 10 -10 10 -5 0 6 -5 17 -10 25 + -5 8 -10 11 -10 5z`}),Q.jsx("path",{d:`M8015 6455 c4 -11 9 -31 10 -43 4 -26 15 -43 15 -23 0 7 5 9 10 6 14 + -9 -10 46 -28 65 -13 13 -14 13 -7 -5z`}),Q.jsx("path",{d:`M2530 6446 c0 -2 7 -9 15 -16 12 -10 15 -10 15 4 0 9 -7 16 -15 16 + -8 0 -15 -2 -15 -4z`}),Q.jsx("path",{d:`M2422 6423 c-12 -23 1 -63 13 -43 5 9 4 15 -3 18 -9 3 -9 9 -2 23 6 + 10 8 19 6 19 -3 0 -9 -8 -14 -17z`}),Q.jsx("path",{d:`M7190 6404 c0 -6 8 -19 19 -30 10 -11 21 -30 25 -41 3 -11 13 -20 21 + -20 11 0 9 8 -8 31 -31 44 -57 71 -57 60z`}),Q.jsx("path",{d:`M8011 6373 c-1 -28 8 -53 21 -53 7 0 7 4 0 13 -5 6 -12 23 -15 37 -4 + 22 -4 22 -6 3z`}),Q.jsx("path",{d:`M8061 6370 c0 -8 6 -23 13 -33 8 -10 12 -28 9 -40 -4 -19 -3 -20 7 + -5 8 14 6 26 -9 55 -11 21 -20 31 -20 23z`}),Q.jsx("path",{d:"M2435 6350 c-8 -13 5 -13 25 0 13 8 13 10 -2 10 -9 0 -20 -4 -23 -10z"})]})});var XC={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 i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ie.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Er(r)):Dl.isFragment(r)&&r.props?n=n.concat(Er(r.props.children,t)):n.push(r))}),n}var rv={},BI=function(t){};function HI(e,t){}function VI(e,t){}function KI(){rv={}}function ZC(e,t,n){!t&&!rv[n]&&(e(!1,n),rv[n]=!0)}function Xt(e,t){ZC(HI,e,t)}function WI(e,t){ZC(VI,e,t)}Xt.preMessage=BI;Xt.resetWarned=KI;Xt.noteOnce=WI;function Fe(e){"@babel/helpers - typeof";return Fe=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},Fe(e)}function UI(e,t){if(Fe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JC(e){var t=UI(e,"string");return Fe(t)=="symbol"?t:t+""}function L(e,t,n){return(t=JC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A0(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 A(e){for(var t=1;t=19;var iv=s.createContext(null);function qI(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(iv),a=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(iv.Provider,{value:a},t)}var tx=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!av||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),e4?(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(){!av||!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=JI.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),nx=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ha(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new c4(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 Ha(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 u4(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}(),ox=typeof WeakMap<"u"?new WeakMap:new tx,ix=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=t4.getInstance(),r=new d4(t,n,this);ox.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ix.prototype[e]=function(){var t;return(t=ox.get(this))[e].apply(t,arguments)}});var f4=function(){return typeof xu.ResizeObserver<"u"?xu.ResizeObserver:ix}(),ni=new Map;function m4(e){e.forEach(function(t){var n,r=t.target;(n=ni.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var ax=new f4(m4);function v4(e,t){ni.has(e)||(ni.set(e,new Set),ax.observe(e)),ni.get(e).add(t)}function p4(e,t){ni.has(e)&&(ni.get(e).delete(t),ni.get(e).size||(ax.unobserve(e),ni.delete(e)))}function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;V0+=1;var r=V0;function o(i){if(i===0)ux(r),t();else{var a=sx(function(){o(i-1)});Sg.set(r,a)}}return o(n),r};Tt.cancel=function(e){var t=Sg.get(e);return ux(e),cx(t)};function dx(e){if(Array.isArray(e))return e}function $4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function fx(){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 J(e,t){return dx(e)||$4(e,t)||bg(e,t)||fx()}function ps(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 Un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function E4(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 K0="data-rc-order",W0="data-rc-priority",I4="rc-util-key",sv=new Map;function mx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):I4}function Cd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function O4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cg(e){return Array.from((sv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function vx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Un())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=O4(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(K0,a),l&&i&&c.setAttribute(W0,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Cd(t),d=u.firstChild;if(r){if(l){var f=(t.styles||Cg(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(K0)))return!1;var v=Number(m.getAttribute(W0)||0);return i>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function px(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Cd(t);return(t.styles||Cg(n)).find(function(r){return r.getAttribute(mx(t))===e})}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=px(e,t);if(n){var r=Cd(t);r.removeChild(n)}}function R4(e,t){var n=sv.get(e);if(!n||!E4(document,n)){var r=vx("",t),o=r.parentNode;sv.set(e,o),e.removeChild(r)}}function jo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Cd(n),o=Cg(r),i=A(A({},n),{},{styles:o});R4(r,i);var a=px(t,i);if(a){var l,c;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=vx(e,i);return d.setAttribute(mx(i),t),d}function P4(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ot(e,t){if(e==null)return{};var n,r,o=P4(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Xt(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(u,d){var f=J(u,2),m=f[1];return o.internalGet(d)[1]0,void 0),U0+=1}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),$f=new xg;function uv(e){var t=Array.isArray(e)?e:[e];return $f.has(t)||$f.set(t,new gx(t)),$f.get(t)}var _4=new WeakMap,Ef={};function j4(e,t){for(var n=_4,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=G0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof gx?n+=o.id:o&&Fe(o)==="object"?n+=Al(o,t):n+=o}),t&&(n=ps(n)),G0.set(e,n)),n}function q0(e,t){return ps("".concat(t,"_").concat(Al(e,!0)))}var dv=Un();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function $u(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=A(A({},r),{},L(L({},Va,t),no,n)),a=Object.keys(i).map(function(l){var c=i[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Ac=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()},k4=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 i=J(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},hx=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,u=J(a,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=Ac(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(v,")")}}),[i,k4(o,n,{scope:r==null?void 0:r.scope})]},X0=Un()?s.useLayoutEffect:s.useEffect,Nt=function(t,n){var r=s.useRef(!0);X0(function(){return t(r.current)},n),X0(function(){return r.current=!1,function(){r.current=!0}},[])},Y0=function(t,n){Nt(function(r){if(!r)return t()},n)},L4=A({},qu),Q0=L4.useInsertionEffect,D4=function(t,n,r){s.useMemo(t,r),Nt(function(){return n(!0)},r)},F4=Q0?function(e,t,n){return Q0(function(){return e(),t()},n)}:D4,A4=A({},qu),B4=A4.useInsertionEffect,H4=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},V4=function(){return function(t){t()}},K4=typeof B4<"u"?H4:V4;function wg(e,t,n,r,o){var i=s.useContext(xd),a=i.cache,l=[e].concat(de(t)),c=cv(l),u=K4([c]),d=function(g){a.opUpdate(c,function(S){var b=S||[void 0,void 0],h=J(b,2),p=h[0],y=p===void 0?0:p,C=h[1],x=C,w=x||n(),$=[y,w];return g?g($):$})};s.useMemo(function(){d()},[c]);var f=a.opGet(c),m=f[1];return F4(function(){o==null||o(m)},function(v){return d(function(g){var S=J(g,2),b=S[0],h=S[1];return v&&b===0&&(o==null||o(m)),[b+1,h]}),function(){a.opUpdate(c,function(g){var S=g||[],b=J(S,2),h=b[0],p=h===void 0?0:h,y=b[1],C=p-1;return C===0?(u(function(){(v||!a.opGet(c))&&(r==null||r(y,!1))}),null):[p-1,y]})}},[c]),m}var W4={},U4="css",Pi=new Map;function G4(e){Pi.set(e,(Pi.get(e)||0)+1)}function q4(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Va,'="').concat(e,'"]'));n.forEach(function(r){if(r[ri]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var X4=0;function Y4(e,t){Pi.set(e,(Pi.get(e)||0)-1);var n=Array.from(Pi.keys()),r=n.filter(function(o){var i=Pi.get(o)||0;return i<=0});n.length-r.length>X4&&r.forEach(function(o){q4(o,t),Pi.delete(o)})}var Q4=function(t,n,r,o){var i=r.getDerivativeToken(t),a=A(A({},i),n);return o&&(a=o(a)),a},yx="token";function Z4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(xd),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,u=c===void 0?W4:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=j4(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),g=Al(v),S=Al(u),b=m?Al(m):"",h=wg(yx,[l,e.id,g,S,b],function(){var p,y=f?f(v,u,e):Q4(v,u,e,d),C=A({},y),x="";if(m){var w=hx(y,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),$=J(w,2);y=$[0],x=$[1]}var I=q0(y,l);y._tokenKey=I,C._tokenKey=q0(C,l);var E=(p=m==null?void 0:m.key)!==null&&p!==void 0?p:I;y._themeKey=E,G4(E);var O="".concat(U4,"-").concat(ps(I));return y._hashId=O,[y,O,C,x,(m==null?void 0:m.key)||""]},function(p){Y4(p[0]._themeKey,o)},function(p){var y=J(p,4),C=y[0],x=y[3];if(m&&x){var w=jo(x,ps("css-variables-".concat(C._themeKey)),{mark:no,prepend:"queue",attachTo:i,priority:-999});w[ri]=o,w.setAttribute(Va,C._themeKey)}});return h}var J4=function(t,n,r){var o=J(t,5),i=o[2],a=o[3],l=o[4],c=r||{},u=c.plain;if(!a)return null;var d=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=$u(a,l,d,m,u);return[f,d,v]},eO={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},bx="comm",Sx="rule",Cx="decl",tO="@import",nO="@keyframes",rO="@layer",xx=Math.abs,$g=String.fromCharCode;function wx(e){return e.trim()}function Bc(e,t,n){return e.replace(t,n)}function oO(e,t,n){return e.indexOf(t,n)}function hs(e,t){return e.charCodeAt(t)|0}function ys(e,t,n){return e.slice(t,n)}function No(e){return e.length}function iO(e){return e.length}function dc(e,t){return t.push(e),e}var wd=1,Ka=1,$x=0,Ar=0,hn=0,el="";function Eg(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:wd,column:Ka,length:a,return:"",siblings:l}}function aO(){return hn}function lO(){return hn=Ar>0?hs(el,--Ar):0,Ka--,hn===10&&(Ka=1,wd--),hn}function ro(){return hn=Ar<$x?hs(el,Ar++):0,Ka++,hn===10&&(Ka=1,wd++),hn}function Li(){return hs(el,Ar)}function Hc(){return Ar}function $d(e,t){return ys(el,e,t)}function fv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sO(e){return wd=Ka=1,$x=No(el=e),Ar=0,[]}function cO(e){return el="",e}function If(e){return wx($d(Ar-1,mv(e===91?e+2:e===40?e+1:e)))}function uO(e){for(;(hn=Li())&&hn<33;)ro();return fv(e)>2||fv(hn)>3?"":" "}function dO(e,t){for(;--t&&ro()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return $d(e,Hc()+(t<6&&Li()==32&&ro()==32))}function mv(e){for(;ro();)switch(hn){case e:return Ar;case 34:case 39:e!==34&&e!==39&&mv(hn);break;case 40:e===41&&mv(e);break;case 92:ro();break}return Ar}function fO(e,t){for(;ro()&&e+hn!==57;)if(e+hn===84&&Li()===47)break;return"/*"+$d(t,Ar-1)+"*"+$g(e===47?e:ro())}function mO(e){for(;!fv(Li());)ro();return $d(e,Ar)}function vO(e){return cO(Vc("",null,null,null,[""],e=sO(e),0,[0],e))}function Vc(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,m=0,v=0,g=0,S=1,b=1,h=1,p=0,y="",C=o,x=i,w=r,$=y;b;)switch(g=p,p=ro()){case 40:if(g!=108&&hs($,f-1)==58){oO($+=Bc(If(p),"&","&\f"),"&\f",xx(u?l[u-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:$+=If(p);break;case 9:case 10:case 13:case 32:$+=uO(g);break;case 92:$+=dO(Hc()-1,7);continue;case 47:switch(Li()){case 42:case 47:dc(pO(fO(ro(),Hc()),t,n,c),c);break;default:$+="/"}break;case 123*S:l[u++]=No($)*h;case 125*S:case 59:case 0:switch(p){case 0:case 125:b=0;case 59+d:h==-1&&($=Bc($,/\f/g,"")),v>0&&No($)-f&&dc(v>32?J0($+";",r,n,f-1,c):J0(Bc($," ","")+";",r,n,f-2,c),c);break;case 59:$+=";";default:if(dc(w=Z0($,t,n,u,d,o,l,y,C=[],x=[],f,i),i),p===123)if(d===0)Vc($,t,w,w,C,i,f,l,x);else switch(m===99&&hs($,3)===110?100:m){case 100:case 108:case 109:case 115:Vc(e,w,w,r&&dc(Z0(e,w,w,0,0,o,l,y,o,C=[],f,x),x),o,x,f,l,r?C:x);break;default:Vc($,w,w,w,[""],x,0,l,x)}}u=d=v=0,S=h=1,y=$="",f=a;break;case 58:f=1+No($),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&lO()==125)continue}switch($+=$g(p),p*S){case 38:h=d>0?1:($+="\f",-1);break;case 44:l[u++]=(No($)-1)*h,h=1;break;case 64:Li()===45&&($+=If(ro())),m=Li(),d=f=No(y=$+=mO(Hc())),p++;break;case 45:g===45&&No($)==2&&(S=0)}}return i}function Z0(e,t,n,r,o,i,a,l,c,u,d,f){for(var m=o-1,v=o===0?i:[""],g=iO(v),S=0,b=0,h=0;S0?v[p]+" "+y:Bc(y,/&\f/g,v[p])))&&(c[h++]=C);return Eg(e,t,n,o===0?Sx:l,c,u,d,f)}function pO(e,t,n,r){return Eg(e,t,n,bx,$g(aO()),ys(e,2,-2),0,r)}function J0(e,t,n,r,o){return Eg(e,t,n,Cx,ys(e,0,r),ys(e,r+1,-1),r,o)}function vv(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,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",v={};function g(h){var p=h.getName(l);if(!v[p]){var y=e(h.style,n,{root:!1,parentSelectors:a}),C=J(y,1),x=C[0];v[p]="@keyframes ".concat(h.getName(l)).concat(x)}}function S(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(y){Array.isArray(y)?S(y,p):y&&p.push(y)}),p}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function(h){var p=typeof h=="string"&&!o?{}:h;if(typeof p=="string")m+="".concat(p,` +`);else if(p._keyframe)g(p);else{var y=f.reduce(function(C,x){var w;return(x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,C))||C},p);Object.keys(y).forEach(function(C){var x=y[C];if(Fe(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!CO(x)){var w=!1,$=C.trim(),I=!1;(o||i)&&l?$.startsWith("@")?w=!0:$=xO(C,l,u):o&&!l&&($==="&"||$==="")&&($="",I=!0);var E=e(x,n,{root:I,injectHash:w,parentSelectors:[].concat(de(a),[$])}),O=J(E,2),T=O[0],j=O[1];v=A(A({},v),j),m+="".concat($).concat(T)}else{let k=function(M,N){var P=M.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),_=N;!eO[M]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),M==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(g(N),_=N.getName(l)),m+="".concat(P,":").concat(_,";")};var z,R=(z=x==null?void 0:x.value)!==null&&z!==void 0?z:x;Fe(x)==="object"&&x!==null&&x!==void 0&&x[Ox]&&Array.isArray(R)?R.forEach(function(M){k(C,M)}):k(C,R)}})}}),o?c&&(m="@layer ".concat(c.name," {").concat(m,"}"),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(c.name,";")}).join(` +`))):m="{".concat(m,"}"),[m,v]};function Rx(e,t){return ps("".concat(e.join("%")).concat(t))}function $O(){return null}var Px="style";function pv(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(xd),f=d.autoClear;d.mock;var m=d.defaultCache,v=d.hashPriority,g=d.container,S=d.ssrInline,b=d.transformers,h=d.linters,p=d.cache,y=d.layer,C=n._tokenKey,x=[C];y&&x.push("layer"),x.push.apply(x,de(r));var w=dv,$=wg(Px,x,function(){var j=x.join("|");if(yO(j)){var z=bO(j),R=J(z,2),k=R[0],M=R[1];if(k)return[k,C,M,{},l,u]}var N=t(),P=wO(N,{hashId:o,hashPriority:v,layer:y?i:void 0,path:r.join("-"),transformers:b,linters:h}),_=J(P,2),F=_[0],D=_[1],B=Kc(F),V=Rx(x,B);return[B,C,V,D,l,u]},function(j,z){var R=J(j,3),k=R[2];(z||f)&&dv&&gs(k,{mark:no})},function(j){var z=J(j,4),R=z[0];z[1];var k=z[2],M=z[3];if(w&&R!==Ex){var N={mark:no,prepend:y?!1:"queue",attachTo:g,priority:u},P=typeof a=="function"?a():a;P&&(N.csp={nonce:P});var _=[],F=[];Object.keys(M).forEach(function(B){B.startsWith("@layer")?_.push(B):F.push(B)}),_.forEach(function(B){jo(Kc(M[B]),"_layer-".concat(B),A(A({},N),{},{prepend:!0}))});var D=jo(R,k,N);D[ri]=p.instanceId,D.setAttribute(Va,C),F.forEach(function(B){jo(Kc(M[B]),"_effect-".concat(B),N)})}}),I=J($,3),E=I[0],O=I[1],T=I[2];return function(j){var z;return!S||w||!m?z=s.createElement($O,null):z=s.createElement("style",he({},L(L({},Va,O),no,T),{dangerouslySetInnerHTML:{__html:E}})),s.createElement(s.Fragment,null,z,j)}}var EO=function(t,n,r){var o=J(t,6),i=o[0],a=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=i,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=$u(i,a,l,g,m),c&&Object.keys(c).forEach(function(S){if(!n[S]){n[S]=!0;var b=Kc(c[S]),h=$u(b,a,"_effect-".concat(S),g,m);S.startsWith("@layer")?v=h+v:v+=h}}),[d,l,v]},Nx="cssVar",IO=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(xd),f=d.cache.instanceId,m=d.container,v=l._tokenKey,g=[].concat(de(t.path),[r,u,v]),S=wg(Nx,g,function(){var b=n(),h=hx(b,r,{prefix:o,unitless:i,ignore:a,scope:u}),p=J(h,2),y=p[0],C=p[1],x=Rx(g,C);return[y,C,x,r]},function(b){var h=J(b,3),p=h[2];dv&&gs(p,{mark:no})},function(b){var h=J(b,3),p=h[1],y=h[2];if(p){var C=jo(p,y,{mark:no,prepend:"queue",attachTo:m,priority:-999});C[ri]=f,C.setAttribute(Va,r)}});return S},OO=function(t,n,r){var o=J(t,4),i=o[1],a=o[2],l=o[3],c=r||{},u=c.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=$u(i,l,a,f,u);return[d,a,m]};L(L(L({},Px,EO),yx,J4),Nx,OO);var It=function(){function e(t,n){bn(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return Sn(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 ta(e){return e.notSplit=!0,e}ta(["borderTop","borderBottom"]),ta(["borderTop"]),ta(["borderBottom"]),ta(["borderLeft","borderRight"]),ta(["borderLeft"]),ta(["borderRight"]);var Ig=s.createContext({});function Mx(e){return dx(e)||lx(e)||bg(e)||fx()}function Cr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Cr(e,t.slice(0,-1))?e:Tx(e,t,n,r)}function RO(e){return Fe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t1(e){return Array.isArray(e)?[]:{}}var PO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=NO,e},zx=s.createContext(void 0);var _x={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"},TO={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},zO=A(A({},TO),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 jx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},n1={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"]},zO),timePickerLocale:Object.assign({},jx)},pr="${label} is not a valid ${type}",pi={locale:"en",Pagination:_x,DatePicker:n1,TimePicker:jx,Calendar:n1,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",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},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:pr,method:pr,array:pr,object:pr,number:pr,date:pr,boolean:pr,integer:pr,float:pr,regexp:pr,email:pr,url:pr,hex:pr},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},pi.Modal);let Wc=[];const r1=()=>Wc.reduce((e,t)=>Object.assign(Object.assign({},e),t),pi.Modal);function _O(e){if(e){const t=Object.assign({},e);return Wc.push(t),r1(),()=>{Wc=Wc.filter(n=>n!==t),r1()}}Object.assign({},pi.Modal)}const Og=s.createContext(void 0),Rg=(e,t)=>{const n=s.useContext(Og),r=s.useMemo(()=>{var i;const a=t||pi[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=s.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?pi.locale:i},[n]);return[r,o]},jO="internalMark",kO=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>_O(t==null?void 0:t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(Og.Provider,{value:o},n)};function jn(e,t){LO(e)&&(e="100%");var n=DO(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 fc(e){return Math.min(1,Math.max(0,e))}function LO(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function DO(e){return typeof e=="string"&&e.indexOf("%")!==-1}function kx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function zi(e){return e.length===1?"0"+e:String(e)}function FO(e,t,n){return{r:jn(e,255)*255,g:jn(t,255)*255,b:jn(n,255)*255}}function o1(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(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 AO(e,t,n){var r,o,i;if(e=jn(e,360),t=jn(t,100),n=jn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Of(l,a,e+1/3),o=Of(l,a,e),i=Of(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function gv(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var yv={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 ua(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=GO(e)),typeof e=="object"&&(Eo(e.r)&&Eo(e.g)&&Eo(e.b)?(t=FO(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Eo(e.h)&&Eo(e.s)&&Eo(e.v)?(r=mc(e.s),o=mc(e.v),t=BO(e.h,r,o),a=!0,l="hsv"):Eo(e.h)&&Eo(e.s)&&Eo(e.l)&&(r=mc(e.s),i=mc(e.l),t=AO(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=kx(n),{ok:a,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 WO="[-\\+]?\\d+%?",UO="[-\\+]?\\d*\\.\\d+%?",oi="(?:".concat(UO,")|(?:").concat(WO,")"),Rf="[\\s|\\(]+(".concat(oi,")[,|\\s]+(").concat(oi,")[,|\\s]+(").concat(oi,")\\s*\\)?"),Pf="[\\s|\\(]+(".concat(oi,")[,|\\s]+(").concat(oi,")[,|\\s]+(").concat(oi,")[,|\\s]+(").concat(oi,")\\s*\\)?"),Ur={CSS_UNIT:new RegExp(oi),rgb:new RegExp("rgb"+Rf),rgba:new RegExp("rgba"+Pf),hsl:new RegExp("hsl"+Rf),hsla:new RegExp("hsla"+Pf),hsv:new RegExp("hsv"+Rf),hsva:new RegExp("hsva"+Pf),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 GO(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yv[e])e=yv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ur.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ur.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ur.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ur.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ur.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ur.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ur.hex8.exec(e),n?{r:hr(n[1]),g:hr(n[2]),b:hr(n[3]),a:i1(n[4]),format:t?"name":"hex8"}:(n=Ur.hex6.exec(e),n?{r:hr(n[1]),g:hr(n[2]),b:hr(n[3]),format:t?"name":"hex"}:(n=Ur.hex4.exec(e),n?{r:hr(n[1]+n[1]),g:hr(n[2]+n[2]),b:hr(n[3]+n[3]),a:i1(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ur.hex3.exec(e),n?{r:hr(n[1]+n[1]),g:hr(n[2]+n[2]),b:hr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Eo(e){return!!Ur.CSS_UNIT.exec(String(e))}var qt=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=KO(t)),this.originalInput=t;var o=ua(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,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.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=kx(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=gv(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=gv(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=o1(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=o1(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),hv(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),HO(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(jn(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(jn(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="#"+hv(this.r,this.g,this.b,!1),n=0,r=Object.entries(yv);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=fc(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=fc(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=fc(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=fc(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(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-vc*t:Math.round(e.h)+vc*t:r=n?Math.round(e.h)+vc*t:Math.round(e.h)-vc*t,r<0?r+=360:r>=360&&(r-=360),r}function c1(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-a1*t:t===Dx?r=e.s+a1:r=e.s+qO*t,r>1&&(r=1),n&&t===Lx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function u1(e,t,n){var r;return n?r=e.v+XO*t:r=e.v-YO*t,r>1&&(r=1),Number(r.toFixed(2))}function bs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ua(e),o=Lx;o>0;o-=1){var i=l1(r),a=pc(ua({h:s1(i,o,!0),s:c1(i,o,!0),v:u1(i,o,!0)}));n.push(a)}n.push(pc(r));for(var l=1;l<=Dx;l+=1){var c=l1(r),u=pc(ua({h:s1(c,l),s:c1(c,l),v:u1(c,l)}));n.push(u)}return t.theme==="dark"?QO.map(function(d){var f=d.index,m=d.opacity,v=pc(ZO(ua(t.backgroundColor||"#141414"),ua(n[f]),m*100));return v}):n}var Nf={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"},bv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bv.primary=bv[5];var Sv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sv.primary=Sv[5];var Cv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cv.primary=Cv[5];var xv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];xv.primary=xv[5];var wv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];wv.primary=wv[5];var $v=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$v.primary=$v[5];var Ev=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ev.primary=Ev[5];var Iv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Iv.primary=Iv[5];var Eu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Eu.primary=Eu[5];var Ov=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ov.primary=Ov[5];var Rv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Rv.primary=Rv[5];var Pv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Pv.primary=Pv[5];var Nv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Nv.primary=Nv[5];var Mf={red:bv,volcano:Sv,orange:Cv,gold:xv,yellow:wv,lime:$v,green:Ev,cyan:Iv,blue:Eu,geekblue:Ov,purple:Rv,magenta:Pv,grey:Nv};const Fx={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"},Ss=Object.assign(Object.assign({},Fx),{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 JO(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),v=n(i),g=n(a),S=n(l),b=r(u,d),h=e.colorLink||e.colorInfo,p=n(h);return Object.assign(Object.assign({},b),{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],colorErrorBgActive:g[3],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:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const eR=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 tR(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},eR(r))}const nR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Uc(e){return(e+8)/e}function rR(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Uc(n)}))}const oR=e=>{const t=rR(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function iR(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 Io=(e,t)=>new qt(e).setAlpha(t).toRgbString(),gl=(e,t)=>new qt(e).darken(t).toHexString(),aR=e=>{const t=bs(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]}},lR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Io(r,.88),colorTextSecondary:Io(r,.65),colorTextTertiary:Io(r,.45),colorTextQuaternary:Io(r,.25),colorFill:Io(r,.15),colorFillSecondary:Io(r,.06),colorFillTertiary:Io(r,.04),colorFillQuaternary:Io(r,.02),colorBgLayout:gl(n,4),colorBgContainer:gl(n,0),colorBgElevated:gl(n,0),colorBgSpotlight:Io(r,.85),colorBgBlur:"transparent",colorBorder:gl(n,15),colorBorderSecondary:gl(n,6)}};function sR(e){Nf.pink=Nf.magenta,Mf.pink=Mf.magenta;const t=Object.keys(Fx).map(n=>{const r=e[n]===Nf[n]?Mf[n]:bs(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],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),JO(e,{generateColorPalettes:aR,generateNeutralColorPalettes:lR})),oR(e.fontSize)),iR(e)),nR(e)),tR(e))}const Ax=uv(sR),Mv={token:Ss,override:{override:Ss},hashed:!0},Bx=ie.createContext(Mv),Cs="ant",Pg="anticon",cR=["outlined","borderless","filled"],uR=(e,t)=>t||(e?`${Cs}-${e}`:Cs),it=s.createContext({getPrefixCls:uR,iconPrefixCls:Pg}),dR=`-ant-${Date.now()}-${Math.random()}`;function fR(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new qt(a),u=bs(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.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 a=new qt(t.primaryColor),l=bs(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const c=new qt(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,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(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function mR(e,t){const n=fR(e,t);Un()&&jo(n,`${dR}-dynamic-theme`)}const Co=s.createContext(!1),Hx=e=>{let{children:t,disabled:n}=e;const r=s.useContext(Co);return s.createElement(Co.Provider,{value:n??r},t)},Ki=s.createContext(void 0),vR=e=>{let{children:t,size:n}=e;const r=s.useContext(Ki);return s.createElement(Ki.Provider,{value:n||r},t)};function pR(){const e=s.useContext(Co),t=s.useContext(Ki);return{componentDisabled:e,componentSize:t}}var Vx=Sn(function e(){bn(this,e)}),Kx="CALC_UNIT",gR=new RegExp(Kx,"g");function Tf(e){return typeof e=="number"?"".concat(e).concat(Kx):e}var hR=function(e){xo(n,e);var t=wo(n);function n(r,o){var i;bn(this,n),i=t.call(this),L(ve(i),"result",""),L(ve(i),"unitlessCssVar",void 0),L(ve(i),"lowPriority",void 0);var a=Fe(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=Tf(r):a==="string"&&(i.result=r),i}return Sn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Tf(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Tf(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(gR,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Vx),yR=function(e){xo(n,e);var t=wo(n);function n(r){var o;return bn(this,n),o=t.call(this),L(ve(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Sn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(Vx),bR=function(t,n){var r=t==="css"?hR:yR;return function(o){return new r(o,n)}},d1=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function At(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>wR&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),p1=new $R;function ER(e,t){return ie.useMemo(function(){var n=p1.get(t);if(n)return n;var r=e();return p1.set(t,r),r},t)}var IR=function(){return{}};function OR(e){var t=e.useCSP,n=t===void 0?IR:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,v,g,S){var b=Array.isArray(m)?m[0]:m;function h(I){return"".concat(String(b)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var p=(S==null?void 0:S.unitless)||{},y=typeof l=="function"?l(m):{},C=A(A({},y),{},L({},h("zIndexPopup"),!0));Object.keys(p).forEach(function(I){C[h(I)]=p[I]});var x=A(A({},S),{},{unitless:C,prefixToken:h}),w=d(m,v,g,x),$=u(b,g,x);return function(I){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,O=w(I,E),T=J(O,2),j=T[1],z=$(E),R=J(z,2),k=R[0],M=R[1];return[k,j,M]}}function u(m,v,g){var S=g.unitless,b=g.injectStyle,h=b===void 0?!0:b,p=g.prefixToken,y=g.ignore,C=function($){var I=$.rootCls,E=$.cssVar,O=E===void 0?{}:E,T=r(),j=T.realToken;return IO({path:[m],prefix:O.prefix,key:O.key,unitless:S,ignore:y,token:j,scope:I},function(){var z=v1(m,j,v),R=f1(m,j,z,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(z).forEach(function(k){R[p(k)]=R[k],delete R[k]}),R}),null},x=function($){var I=r(),E=I.cssVar;return[function(O){return h&&E?ie.createElement(ie.Fragment,null,ie.createElement(C,{rootCls:$,cssVar:E,component:m}),O):O},E==null?void 0:E.key]};return x}function d(m,v,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(m)?m:[m,m],h=J(b,1),p=h[0],y=b.join("-");return function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,w=r(),$=w.theme,I=w.realToken,E=w.hashId,O=w.token,T=w.cssVar,j=o(),z=j.rootPrefixCls,R=j.iconPrefixCls,k=n(),M=T?"css":"js",N=ER(function(){var V=new Set;return T&&Object.keys(S.unitless||{}).forEach(function(q){V.add(Ac(q,T.prefix)),V.add(Ac(q,d1(p,T.prefix)))}),bR(M,V)},[M,p,T==null?void 0:T.prefix]),P=xR(M),_=P.max,F=P.min,D={theme:$,token:O,hashId:E,nonce:function(){return k.nonce},clientOnly:S.clientOnly,layer:{name:"antd"},order:S.order||-999};pv(A(A({},D),{},{clientOnly:!1,path:["Shared",z]}),function(){return typeof i=="function"?i(O):[]});var B=pv(A(A({},D),{},{path:[y,C,R]}),function(){if(S.injectStyle===!1)return[];var V=CR(O),q=V.token,H=V.flush,X=v1(p,I,g),K=".".concat(C),ne=f1(p,I,X,{deprecatedTokens:S.deprecatedTokens});T&&Fe(X)==="object"&&Object.keys(X).forEach(function(ee){X[ee]="var(".concat(Ac(ee,d1(p,T.prefix)),")")});var oe=zt(q,{componentCls:K,prefixCls:C,iconCls:".".concat(R),antCls:".".concat(z),calc:N,max:_,min:F},T?X:ne),Y=v(oe,{hashId:E,prefixCls:C,rootPrefixCls:z,iconPrefixCls:R});H(p,ne);var W=typeof a=="function"?a(oe,C,x,S.resetFont):null;return[S.resetStyle===!1?null:W,Y]});return[B,E]}}function f(m,v,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(m,v,g,A({resetStyle:!1,order:-998},S)),h=function(y){var C=y.prefixCls,x=y.rootCls,w=x===void 0?C:x;return b(C,w),null};return h}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Iu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],RR="5.20.1";function _f(e){return e>=0&&e<=255}function gc(e,t){const{r:n,g:r,b:o,a:i}=new qt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new qt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(_f(d)&&_f(f)&&_f(m))return new qt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new qt({r:n,g:r,b:o,a:1}).toRgbString()}var PR=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),i=480,a=576,l=768,c=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:gc(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:gc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:gc(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:gc(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) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new qt("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new qt("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new qt("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var g1=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,i=g1(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ux(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=g1(u,["theme"]);let m=f;d&&(m=qx(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=m}),a};function Ln(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ie.useContext(Bx),i=`${RR}-${t||""}`,a=n||Ax,[l,c,u]=Z4(a,[Ss,e],{salt:i,override:r,getComputedToken:qx,formatToken:Ux,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Gx,ignore:NR,preserve:MR}});return[a,u,t?c:"",l,o]}const TR=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),xs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=function(e){let t=arguments.length>1&&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}},Ed=()=>({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"}}),Ou=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zR=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),_R=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},gi=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ws=e=>({"&:focus-visible":Object.assign({},gi(e))}),Xx=(e,t)=>{const[n,r]=Ln();return pv({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ed()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:vn,genComponentStyleHook:jR,genSubStyleComponent:Id}=OR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ln();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=s.useContext(it);return Xx(t,e),e??{}},getResetStyles:e=>[{"&":zR(e)}],getCommonStyle:_R,getCompUnitless:()=>Gx});function kR(e,t){return Iu.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const LR=Object.assign({},qu),{useId:h1}=LR,DR=()=>"",FR=typeof h1>"u"?DR:h1;function AR(e,t,n){var r;Ci();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Mv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Mv.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=FR();return Yi(()=>{var l,c;if(!e)return t;const u=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${a.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:u,cssVar:f})},[o,i],(l,c)=>l.some((u,d)=>{const f=c[d];return!So(u,f,!0)}))}var BR=["children"],Yx=s.createContext({});function HR(e){var t=e.children,n=ot(e,BR);return s.createElement(Yx.Provider,{value:n},t)}var VR=function(e){xo(n,e);var t=wo(n);function n(){return bn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function KR(e){var t=s.useReducer(function(l){return l+1},0),n=J(t,2),r=n[1],o=s.useRef(e),i=At(function(){return o.current}),a=At(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Go="none",hc="appear",yc="enter",bc="leave",y1="none",Yr="prepare",$a="start",Ea="active",Ng="end",Qx="prepared";function b1(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 WR(e,t){var n={animationend:b1("Animation","AnimationEnd"),transitionend:b1("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var UR=WR(Un(),typeof window<"u"?window:{}),Zx={};if(Un()){var GR=document.createElement("div");Zx=GR.style}var Sc={};function Jx(e){if(Sc[e])return Sc[e];var t=UR[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Tt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var YR=[Yr,$a,Ea,Ng],QR=[Yr,Qx],o2=!1,ZR=!0;function i2(e){return e===Ea||e===Ng}const JR=function(e,t,n){var r=Wa(y1),o=J(r,2),i=o[0],a=o[1],l=XR(),c=J(l,2),u=c[0],d=c[1];function f(){a(Yr,!0)}var m=t?QR:YR;return r2(function(){if(i!==y1&&i!==Ng){var v=m.indexOf(i),g=m[v+1],S=n(i);S===o2?a(g,!0):g&&u(function(b){function h(){b.isCanceled()||a(g,!0)}S===!0?h():Promise.resolve(S).then(h)})}},[e,i]),s.useEffect(function(){return function(){d()}},[]),[f,i]};function e5(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,g=r.onLeavePrepare,S=r.onAppearStart,b=r.onEnterStart,h=r.onLeaveStart,p=r.onAppearActive,y=r.onEnterActive,C=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,$=r.onLeaveEnd,I=r.onVisibleChanged,E=Wa(),O=J(E,2),T=O[0],j=O[1],z=KR(Go),R=J(z,2),k=R[0],M=R[1],N=Wa(null),P=J(N,2),_=P[0],F=P[1],D=k(),B=s.useRef(!1),V=s.useRef(null);function q(){return n()}var H=s.useRef(!1);function X(){M(Go),F(null,!0)}var K=At(function(ue){var pe=k();if(pe!==Go){var Oe=q();if(!(ue&&!ue.deadline&&ue.target!==Oe)){var se=H.current,ce;pe===hc&&se?ce=x==null?void 0:x(Oe,ue):pe===yc&&se?ce=w==null?void 0:w(Oe,ue):pe===bc&&se&&(ce=$==null?void 0:$(Oe,ue)),se&&ce!==!1&&X()}}}),ne=qR(K),oe=J(ne,1),Y=oe[0],W=function(pe){switch(pe){case hc:return L(L(L({},Yr,m),$a,S),Ea,p);case yc:return L(L(L({},Yr,v),$a,b),Ea,y);case bc:return L(L(L({},Yr,g),$a,h),Ea,C);default:return{}}},ee=s.useMemo(function(){return W(D)},[D]),te=JR(D,!e,function(ue){if(ue===Yr){var pe=ee[Yr];return pe?pe(q()):o2}if(re in ee){var Oe;F(((Oe=ee[re])===null||Oe===void 0?void 0:Oe.call(ee,q(),null))||null)}return re===Ea&&D!==Go&&(Y(q()),d>0&&(clearTimeout(V.current),V.current=setTimeout(function(){K({deadline:!0})},d))),re===Qx&&X(),ZR}),U=J(te,2),ae=U[0],re=U[1],me=i2(re);H.current=me,r2(function(){j(t);var ue=B.current;B.current=!0;var pe;!ue&&t&&l&&(pe=hc),ue&&t&&i&&(pe=yc),(ue&&!t&&u||!ue&&f&&!t&&u)&&(pe=bc);var Oe=W(pe);pe&&(e||Oe[Yr])?(M(pe),ae()):M(Go)},[t]),s.useEffect(function(){(D===hc&&!l||D===yc&&!i||D===bc&&!u)&&M(Go)},[l,i,u]),s.useEffect(function(){return function(){B.current=!1,clearTimeout(V.current)}},[]);var le=s.useRef(!1);s.useEffect(function(){T&&(le.current=!0),T!==void 0&&D===Go&&((le.current||T)&&(I==null||I(T)),le.current=!0)},[T,D]);var fe=_;return ee[Yr]&&re===$a&&(fe=A({transition:"none"},fe)),[D,re,fe,T??t]}function t5(e){var t=e;Fe(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=s.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,g=o.eventProps,S=s.useContext(Yx),b=S.motion,h=n(o,b),p=s.useRef(),y=s.useRef();function C(){try{return p.current instanceof HTMLElement?p.current:Fl(y.current)}catch{return null}}var x=e5(h,l,C,o),w=J(x,4),$=w[0],I=w[1],E=w[2],O=w[3],T=s.useRef(O);O&&(T.current=!0);var j=s.useCallback(function(_){p.current=_,fs(i,_)},[i]),z,R=A(A({},g),{},{visible:l});if(!f)z=null;else if($===Go)O?z=f(A({},R),j):!u&&T.current&&v?z=f(A(A({},R),{},{className:v}),j):d||!u&&!v?z=f(A(A({},R),{},{style:{display:"none"}}),j):z=null;else{var k;I===Yr?k="prepare":i2(I)?k="active":I===$a&&(k="start");var M=x1(m,"".concat($,"-").concat(k));z=f(A(A({},R),{},{className:Z(x1(m,$),L(L({},M,M&&k),m,typeof m=="string")),style:E}),j)}if(s.isValidElement(z)&&io(z)){var N=z,P=N.ref;P||(z=s.cloneElement(z,{ref:j}))}return s.createElement(VR,{ref:y},z)});return r.displayName="CSSMotion",r}const xi=t5(n2);var zv="add",_v="keep",jv="remove",jf="removed";function n5(e){var t;return e&&Fe(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function kv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(n5)}function r5(){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,i=kv(e),a=kv(t);i.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==jv}),n.forEach(function(d){d.key===u&&(d.status=_v)})}),n}var o5=["component","children","onVisibleChanged","onAllRemoved"],i5=["status"],a5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function l5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xi,n=function(r){xo(i,r);var o=wo(i);function i(){var a;bn(this,i);for(var l=arguments.length,c=new Array(l),u=0;unull;var u5=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 v5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ru=t),n!==void 0&&(l2=n),"holderRender"in e&&(c2=o),r&&(m5(r)?mR(Gc(),r):s2=r)},p5=()=>({getPrefixCls:(e,t)=>t||(e?`${Gc()}-${e}`:Gc()),getIconPrefixCls:f5,getRootPrefixCls:()=>Ru||Gc(),getTheme:()=>s2,holderRender:c2}),g5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:v,popupOverflow:g,legacyLocale:S,parentContext:b,iconPrefixCls:h,theme:p,componentDisabled:y,segmented:C,statistic:x,spin:w,calendar:$,carousel:I,cascader:E,collapse:O,typography:T,checkbox:j,descriptions:z,divider:R,drawer:k,skeleton:M,steps:N,image:P,layout:_,list:F,mentions:D,modal:B,progress:V,result:q,slider:H,breadcrumb:X,menu:K,pagination:ne,input:oe,textArea:Y,empty:W,badge:ee,radio:te,rate:U,switch:ae,transfer:re,avatar:me,message:le,tag:fe,table:ue,card:pe,tabs:Oe,timeline:se,timePicker:ce,upload:ye,notification:be,tree:Ke,colorPicker:je,datePicker:We,rangePicker:Se,flex:Be,wave:Pe,dropdown:Re,warning:Ie,tour:Me,floatButtonGroup:ke,variant:nt,inputNumber:Ue,treeSelect:$t}=e,at=s.useCallback((Ce,we)=>{const{prefixCls:xe}=e;if(we)return we;const Ne=xe||b.getPrefixCls("");return Ce?`${Ne}-${Ce}`:Ne},[b.getPrefixCls,e.prefixCls]),Ot=h||b.iconPrefixCls||Pg,lt=n||b.csp;Xx(Ot,lt);const Rt=AR(p,b.theme,{prefixCls:at("")}),Je={csp:lt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||S,direction:u,space:d,virtual:f,popupMatchSelectWidth:v??m,popupOverflow:g,getPrefixCls:at,iconPrefixCls:Ot,theme:Rt,segmented:C,statistic:x,spin:w,calendar:$,carousel:I,cascader:E,collapse:O,typography:T,checkbox:j,descriptions:z,divider:R,drawer:k,skeleton:M,steps:N,image:P,input:oe,textArea:Y,layout:_,list:F,mentions:D,modal:B,progress:V,result:q,slider:H,breadcrumb:X,menu:K,pagination:ne,empty:W,badge:ee,radio:te,rate:U,switch:ae,transfer:re,avatar:me,message:le,tag:fe,table:ue,card:pe,tabs:Oe,timeline:se,timePicker:ce,upload:ye,notification:be,tree:Ke,colorPicker:je,datePicker:We,rangePicker:Se,flex:Be,wave:Pe,dropdown:Re,warning:Ie,tour:Me,floatButtonGroup:ke,variant:nt,inputNumber:Ue,treeSelect:$t},He=Object.assign({},b);Object.keys(Je).forEach(Ce=>{Je[Ce]!==void 0&&(He[Ce]=Je[Ce])}),d5.forEach(Ce=>{const we=e[Ce];we&&(He[Ce]=we)}),typeof r<"u"&&(He.button=Object.assign({autoInsertSpace:r},He.button));const Qe=Yi(()=>He,He,(Ce,we)=>{const xe=Object.keys(Ce),Ne=Object.keys(we);return xe.length!==Ne.length||xe.some(dt=>Ce[dt]!==we[dt])}),Le=s.useMemo(()=>({prefixCls:Ot,csp:lt}),[Ot,lt]);let $e=s.createElement(s.Fragment,null,s.createElement(c5,{dropdownMatchSelectWidth:m}),t);const Ge=s.useMemo(()=>{var Ce,we,xe,Ne;return wa(((Ce=pi.Form)===null||Ce===void 0?void 0:Ce.defaultValidateMessages)||{},((xe=(we=Qe.locale)===null||we===void 0?void 0:we.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((Ne=Qe.form)===null||Ne===void 0?void 0:Ne.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Qe,a==null?void 0:a.validateMessages]);Object.keys(Ge).length>0&&($e=s.createElement(zx.Provider,{value:Ge},$e)),l&&($e=s.createElement(kO,{locale:l,_ANT_MARK__:jO},$e)),(Ot||lt)&&($e=s.createElement(Ig.Provider,{value:Le},$e)),c&&($e=s.createElement(vR,{size:c},$e)),$e=s.createElement(s5,null,$e);const et=s.useMemo(()=>{const Ce=Rt||{},{algorithm:we,token:xe,components:Ne,cssVar:dt}=Ce,mt=u5(Ce,["algorithm","token","components","cssVar"]),Pt=we&&(!Array.isArray(we)||we.length>0)?uv(we):Ax,Te={};Object.entries(Ne||{}).forEach(De=>{let[Xe,bt]=De;const gt=Object.assign({},bt);"algorithm"in gt&&(gt.algorithm===!0?gt.theme=Pt:(Array.isArray(gt.algorithm)||typeof gt.algorithm=="function")&&(gt.theme=uv(gt.algorithm)),delete gt.algorithm),Te[Xe]=gt});const qe=Object.assign(Object.assign({},Ss),xe);return Object.assign(Object.assign({},mt),{theme:Pt,token:qe,components:Te,override:Object.assign({override:qe},Te),cssVar:dt})},[Rt]);return p&&($e=s.createElement(Bx.Provider,{value:et},$e)),Qe.warning&&($e=s.createElement(MO.Provider,{value:Qe.warning},$e)),y!==void 0&&($e=s.createElement(Hx,{disabled:y},$e)),s.createElement(it.Provider,{value:Qe},$e)},Qi=e=>{const t=s.useContext(it),n=s.useContext(Og);return s.createElement(g5,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=it;Qi.SizeContext=Ki;Qi.config=v5;Qi.useConfig=pR;Object.defineProperty(Qi,"SizeContext",{get:()=>Ki});var h5={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"};function u2(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function y5(e){return u2(e)instanceof ShadowRoot}function Pu(e){return y5(e)?u2(e):null}function b5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function S5(e,t){Xt(e,"[@ant-design/icons] ".concat(t))}function w1(e){return Fe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Fe(e.icon)==="object"||typeof e.icon=="function")}function $1(){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[b5(n)]=r}return t},{})}function Lv(e,t,n){return n?ie.createElement(e.tag,A(A({key:t},$1(e.attrs)),n),(e.children||[]).map(function(r,o){return Lv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ie.createElement(e.tag,A({key:t},$1(e.attrs)),(e.children||[]).map(function(r,o){return Lv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function d2(e){return bs(e)[0]}function f2(e){return e?Array.isArray(e)?e:[e]:[]}var C5=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,x5=function(t){var n=s.useContext(Ig),r=n.csp,o=n.prefixCls,i=C5;o&&(i=i.replace(/anticon/g,o)),s.useEffect(function(){var a=t.current,l=Pu(a);jo(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},w5=["icon","className","onClick","style","primaryColor","secondaryColor"],Bl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $5(e){var t=e.primaryColor,n=e.secondaryColor;Bl.primaryColor=t,Bl.secondaryColor=n||d2(t),Bl.calculated=!!n}function E5(){return A({},Bl)}var tl=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=ot(t,w5),u=s.useRef(),d=Bl;if(a&&(d={primaryColor:a,secondaryColor:l||d2(a)}),x5(u),S5(w1(n),"icon should be icon definiton, but got ".concat(n)),!w1(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Lv(f.icon,"svg-".concat(f.name),A(A({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};tl.displayName="IconReact";tl.getTwoToneColors=E5;tl.setTwoToneColors=$5;function m2(e){var t=f2(e),n=J(t,2),r=n[0],o=n[1];return tl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function I5(){var e=tl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var O5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];m2(Eu.primary);var jt=s.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=ot(e,O5),d=s.useContext(Ig),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,g=Z(v,m,L(L({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),S=a;S===void 0&&l&&(S=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,h=f2(c),p=J(h,2),y=p[0],C=p[1];return s.createElement("span",he({role:"img","aria-label":r.name},u,{ref:t,tabIndex:S,onClick:l,className:g}),s.createElement(tl,{icon:r,primaryColor:y,secondaryColor:C,style:b}))});jt.displayName="AntdIcon";jt.getTwoToneColor=I5;jt.setTwoToneColor=m2;var R5=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:h5}))},v2=s.forwardRef(R5),P5={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"},N5=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:P5}))},Od=s.forwardRef(N5),M5={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"},T5=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:M5}))},p2=s.forwardRef(T5),z5={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"},_5=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:z5}))},g2=s.forwardRef(_5),j5={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"},k5=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:j5}))},L5=s.forwardRef(k5),D5=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,F5=`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`,A5="".concat(D5," ").concat(F5).split(/[\s\n]+/),B5="aria-",H5="data-";function E1(e,t){return e.indexOf(t)===0}function Br(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=A({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||E1(o,B5))||n.data&&E1(o,H5)||n.attr&&A5.includes(o))&&(r[o]=e[o])}),r}function h2(e){return e&&ie.isValidElement(e)&&e.type===ie.Fragment}const V5=(e,t,n)=>ie.isValidElement(e)?ie.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ir(e,t){return V5(e,e,t)}const I1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,O1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",kf=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,K5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},R1=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:M=>M!==u;if(!I1(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let g=e;for(;I1(g)&&f(g);){if(g=K5(g),g===m){v.push(g);break}g!=null&&g===document.body&&kf(g)&&!kf(document.documentElement)||g!=null&&kf(g,d)&&v.push(g)}const S=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:h,scrollY:p}=window,{height:y,width:C,top:x,right:w,bottom:$,left:I}=e.getBoundingClientRect(),{top:E,right:O,bottom:T,left:j}=(M=>{const N=window.getComputedStyle(M);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let z=l==="start"||l==="nearest"?x-E:l==="end"?$+T:x+y/2-E+T,R=c==="center"?I+C/2-j+O:c==="end"?w+O:I-j;const k=[];for(let M=0;M=0&&I>=0&&$<=b&&w<=S&&x>=F&&$<=B&&I>=V&&w<=D)return k;const q=getComputedStyle(N),H=parseInt(q.borderLeftWidth,10),X=parseInt(q.borderTopWidth,10),K=parseInt(q.borderRightWidth,10),ne=parseInt(q.borderBottomWidth,10);let oe=0,Y=0;const W="offsetWidth"in N?N.offsetWidth-N.clientWidth-H-K:0,ee="offsetHeight"in N?N.offsetHeight-N.clientHeight-X-ne:0,te="offsetWidth"in N?N.offsetWidth===0?0:_/N.offsetWidth:0,U="offsetHeight"in N?N.offsetHeight===0?0:P/N.offsetHeight:0;if(m===N)oe=l==="start"?z:l==="end"?z-b:l==="nearest"?Cc(p,p+b,b,X,ne,p+z,p+z+y,y):z-b/2,Y=c==="start"?R:c==="center"?R-S/2:c==="end"?R-S:Cc(h,h+S,S,H,K,h+R,h+R+C,C),oe=Math.max(0,oe+p),Y=Math.max(0,Y+h);else{oe=l==="start"?z-F-X:l==="end"?z-B+ne+ee:l==="nearest"?Cc(F,B,P,X,ne+ee,z,z+y,y):z-(F+P/2)+ee/2,Y=c==="start"?R-V-H:c==="center"?R-(V+_/2)+W/2:c==="end"?R-D+K+W:Cc(V,D,_,H,K+W,R,R+C,C);const{scrollLeft:ae,scrollTop:re}=N;oe=U===0?0:Math.max(0,Math.min(re+oe/U,N.scrollHeight-P/U+ee)),Y=te===0?0:Math.max(0,Math.min(ae+Y/te,N.scrollWidth-_/te+W)),z+=re-oe,R+=ae-Y}k.push({el:N,top:oe,left:Y})}return k},W5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function U5(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(R1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of R1(e,W5(t))){const l=i-n.top+n.bottom,c=a-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}function Dv(e){return e!=null&&e===e.window}const G5=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Dv(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Dv(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function q5(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function X5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=G5(i),l=Date.now(),c=()=>{const d=Date.now()-l,f=q5(d>o?o:d,a,e,o);Dv(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d{const[,,,,t]=Ln();return t?`${e}-css-var`:""};var ge={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>=ge.F1&&n<=ge.F12)return!1;switch(n){case ge.ALT:case ge.CAPS_LOCK:case ge.CONTEXT_MENU:case ge.CTRL:case ge.DOWN:case ge.END:case ge.ESC:case ge.HOME:case ge.INSERT:case ge.LEFT:case ge.MAC_FF_META:case ge.META:case ge.NUMLOCK:case ge.NUM_CENTER:case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAUSE:case ge.PRINT_SCREEN:case ge.RIGHT:case ge.SHIFT:case ge.UP:case ge.WIN_KEY:case ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ge.ZERO&&t<=ge.NINE||t>=ge.NUM_ZERO&&t<=ge.NUM_MULTIPLY||t>=ge.A&&t<=ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ge.SPACE:case ge.QUESTION_MARK:case ge.NUM_PLUS:case ge.NUM_MINUS:case ge.NUM_PERIOD:case ge.NUM_DIVISION:case ge.SEMICOLON:case ge.DASH:case ge.EQUALS:case ge.COMMA:case ge.PERIOD:case ge.SLASH:case ge.APOSTROPHE:case ge.SINGLE_QUOTE:case ge.OPEN_SQUARE_BRACKET:case ge.BACKSLASH:case ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y2=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,g=v===void 0?"x":v,S=e.props,b=e.onClick,h=e.onNoticeClose,p=e.times,y=e.hovering,C=s.useState(!1),x=J(C,2),w=x[0],$=x[1],I=s.useState(0),E=J(I,2),O=E[0],T=E[1],j=s.useState(0),z=J(j,2),R=z[0],k=z[1],M=y||w,N=a>0&&l,P=function(){h(d)},_=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===ge.ENTER)&&P()};s.useEffect(function(){if(!M&&a>0){var q=Date.now()-R,H=setTimeout(function(){P()},a*1e3-R);return function(){u&&clearTimeout(H),k(Date.now()-q)}}},[a,M,p]),s.useEffect(function(){if(!M&&N&&(u||R===0)){var q=performance.now(),H,X=function K(){cancelAnimationFrame(H),H=requestAnimationFrame(function(ne){var oe=ne+R-q,Y=Math.min(oe/(a*1e3),1);T(Y*100),Y<1&&K()})};return X(),function(){u&&cancelAnimationFrame(H)}}},[a,R,M,N,p]);var F=s.useMemo(function(){return Fe(m)==="object"&&m!==null?m:m?{closeIcon:g}:{}},[m,g]),D=Br(F,!0),B=100-(!O||O<0?0:O>100?100:O),V="".concat(n,"-notice");return s.createElement("div",he({},S,{ref:t,className:Z(V,o,L({},"".concat(V,"-closable"),m)),style:r,onMouseEnter:function(H){var X;$(!0),S==null||(X=S.onMouseEnter)===null||X===void 0||X.call(S,H)},onMouseLeave:function(H){var X;$(!1),S==null||(X=S.onMouseLeave)===null||X===void 0||X.call(S,H)},onClick:b}),s.createElement("div",{className:"".concat(V,"-content")},f),m&&s.createElement("a",he({tabIndex:0,className:"".concat(V,"-close"),onKeyDown:_,"aria-label":"Close"},D,{onClick:function(H){H.preventDefault(),H.stopPropagation(),P()}}),F.closeIcon),N&&s.createElement("progress",{className:"".concat(V,"-progress"),max:"100",value:B},B+"%"))}),b2=ie.createContext({}),Y5=function(t){var n=t.children,r=t.classNames;return ie.createElement(b2.Provider,{value:{classNames:r}},n)},P1=8,N1=3,M1=16,Q5=function(t){var n={offset:P1,threshold:N1,gap:M1};if(t&&Fe(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:P1,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:N1,n.gap=(i=t.gap)!==null&&i!==void 0?i:M1}return[!!t,n]},Z5=["className","style","classNames","styles"],J5=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(b2),m=f.classNames,v=s.useRef({}),g=s.useState(null),S=J(g,2),b=S[0],h=S[1],p=s.useState([]),y=J(p,2),C=y[0],x=y[1],w=n.map(function(M){return{config:M,key:String(M.key)}}),$=Q5(d),I=J($,2),E=I[0],O=I[1],T=O.offset,j=O.threshold,z=O.gap,R=E&&(C.length>0||w.length<=j),k=typeof l=="function"?l(r):l;return s.useEffect(function(){E&&C.length>1&&x(function(M){return M.filter(function(N){return w.some(function(P){var _=P.key;return N===_})})})},[C,w,E]),s.useEffect(function(){var M;if(E&&v.current[(M=w[w.length-1])===null||M===void 0?void 0:M.key]){var N;h(v.current[(N=w[w.length-1])===null||N===void 0?void 0:N.key])}},[w,E]),ie.createElement(a2,he({key:r,className:Z(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,L(L({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),R)),style:a,keys:w,motionAppear:!0},k,{onAllRemoved:function(){c(r)}}),function(M,N){var P=M.config,_=M.className,F=M.style,D=M.index,B=P,V=B.key,q=B.times,H=String(V),X=P,K=X.className,ne=X.style,oe=X.classNames,Y=X.styles,W=ot(X,Z5),ee=w.findIndex(function(ce){return ce.key===H}),te={};if(E){var U=w.length-1-(ee>-1?ee:D-1),ae=r==="top"||r==="bottom"?"-50%":"0";if(U>0){var re,me,le;te.height=R?(re=v.current[H])===null||re===void 0?void 0:re.offsetHeight:b==null?void 0:b.offsetHeight;for(var fe=0,ue=0;ue-1?v.current[H]=ye:delete v.current[H]},prefixCls:o,classNames:oe,styles:Y,className:Z(K,m==null?void 0:m.notice),style:ne,times:q,key:V,eventKey:V,onNoticeClose:u,hovering:E&&C.length>0})))})},eP=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),v=J(m,2),g=v[0],S=v[1],b=function(E){var O,T=g.find(function(j){return j.key===E});T==null||(O=T.onClose)===null||O===void 0||O.call(T),S(function(j){return j.filter(function(z){return z.key!==E})})};s.useImperativeHandle(t,function(){return{open:function(E){S(function(O){var T=de(O),j=T.findIndex(function(k){return k.key===E.key}),z=A({},E);if(j>=0){var R;z.times=(((R=O[j])===null||R===void 0?void 0:R.times)||0)+1,T[j]=z}else z.times=0,T.push(z);return a>0&&T.length>a&&(T=T.slice(-a)),T})},close:function(E){b(E)},destroy:function(){S([])}}});var h=s.useState({}),p=J(h,2),y=p[0],C=p[1];s.useEffect(function(){var I={};g.forEach(function(E){var O=E.placement,T=O===void 0?"topRight":O;T&&(I[T]=I[T]||[],I[T].push(E))}),Object.keys(y).forEach(function(E){I[E]=I[E]||[]}),C(I)},[g]);var x=function(E){C(function(O){var T=A({},O),j=T[E]||[];return j.length||delete T[E],T})},w=s.useRef(!1);if(s.useEffect(function(){Object.keys(y).length>0?w.current=!0:w.current&&(u==null||u(),w.current=!1)},[y]),!o)return null;var $=Object.keys(y);return bo.createPortal(s.createElement(s.Fragment,null,$.map(function(I){var E=y[I],O=s.createElement(J5,{key:I,configList:E,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:c==null?void 0:c(I),motion:i,onNoticeClose:b,onAllNoticeRemoved:x,stack:d});return f?f(O,{prefixCls:r,key:I}):O})),o)}),tP=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],nP=function(){return document.body},T1=0;function rP(){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?nP:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ot(e,tP),m=s.useState(),v=J(m,2),g=v[0],S=v[1],b=s.useRef(),h=s.createElement(eP,{container:g,ref:b,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),p=s.useState([]),y=J(p,2),C=y[0],x=y[1],w=s.useMemo(function(){return{open:function(I){var E=rP(f,I);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(T1),T1+=1),x(function(O){return[].concat(de(O),[{type:"open",config:E}])})},close:function(I){x(function(E){return[].concat(de(E),[{type:"close",key:I}])})},destroy:function(){x(function(I){return[].concat(de(I),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){S(n())}),s.useEffect(function(){b.current&&C.length&&(C.forEach(function($){switch($.type){case"open":b.current.open($.config);break;case"close":b.current.close($.key);break;case"destroy":b.current.destroy();break}}),x(function($){return $.filter(function(I){return!C.includes(I)})}))},[C]),[w,h]}var iP={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"},aP=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:iP}))},Rd=s.forwardRef(aP);const Mg=ie.createContext(void 0),Ri=100,lP=10,sP=Ri*lP,S2={Modal:Ri,Drawer:Ri,Popover:Ri,Popconfirm:Ri,Tooltip:Ri,Tour:Ri},cP={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function uP(e){return e in S2}function Pd(e,t){const[,n]=Ln(),r=ie.useContext(Mg),o=uP(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+S2[e]:a+=cP[e],i=[r===void 0?t:a,a]}return i}function er(){er=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(M,N,P){M[N]=P.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(M,N,P){return Object.defineProperty(M,N,{value:P,enumerable:!0,configurable:!0,writable:!0}),M[N]}try{u({},"")}catch{u=function(P,_,F){return P[_]=F}}function d(M,N,P,_){var F=N&&N.prototype instanceof h?N:h,D=Object.create(F.prototype),B=new R(_||[]);return o(D,"_invoke",{value:O(M,P,B)}),D}function f(M,N,P){try{return{type:"normal",arg:M.call(N,P)}}catch(_){return{type:"throw",arg:_}}}t.wrap=d;var m="suspendedStart",v="suspendedYield",g="executing",S="completed",b={};function h(){}function p(){}function y(){}var C={};u(C,a,function(){return this});var x=Object.getPrototypeOf,w=x&&x(x(k([])));w&&w!==n&&r.call(w,a)&&(C=w);var $=y.prototype=h.prototype=Object.create(C);function I(M){["next","throw","return"].forEach(function(N){u(M,N,function(P){return this._invoke(N,P)})})}function E(M,N){function P(F,D,B,V){var q=f(M[F],M,D);if(q.type!=="throw"){var H=q.arg,X=H.value;return X&&Fe(X)=="object"&&r.call(X,"__await")?N.resolve(X.__await).then(function(K){P("next",K,B,V)},function(K){P("throw",K,B,V)}):N.resolve(X).then(function(K){H.value=K,B(H)},function(K){return P("throw",K,B,V)})}V(q.arg)}var _;o(this,"_invoke",{value:function(D,B){function V(){return new N(function(q,H){P(D,B,q,H)})}return _=_?_.then(V,V):V()}})}function O(M,N,P){var _=m;return function(F,D){if(_===g)throw Error("Generator is already running");if(_===S){if(F==="throw")throw D;return{value:e,done:!0}}for(P.method=F,P.arg=D;;){var B=P.delegate;if(B){var V=T(B,P);if(V){if(V===b)continue;return V}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(_===m)throw _=S,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);_=g;var q=f(M,N,P);if(q.type==="normal"){if(_=P.done?S:v,q.arg===b)continue;return{value:q.arg,done:P.done}}q.type==="throw"&&(_=S,P.method="throw",P.arg=q.arg)}}}function T(M,N){var P=N.method,_=M.iterator[P];if(_===e)return N.delegate=null,P==="throw"&&M.iterator.return&&(N.method="return",N.arg=e,T(M,N),N.method==="throw")||P!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+P+"' method")),b;var F=f(_,M.iterator,N.arg);if(F.type==="throw")return N.method="throw",N.arg=F.arg,N.delegate=null,b;var D=F.arg;return D?D.done?(N[M.resultName]=D.value,N.next=M.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):D:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function j(M){var N={tryLoc:M[0]};1 in M&&(N.catchLoc=M[1]),2 in M&&(N.finallyLoc=M[2],N.afterLoc=M[3]),this.tryEntries.push(N)}function z(M){var N=M.completion||{};N.type="normal",delete N.arg,M.completion=N}function R(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(j,this),this.reset(!0)}function k(M){if(M||M===""){var N=M[a];if(N)return N.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var P=-1,_=function F(){for(;++P=0;--F){var D=this.tryEntries[F],B=D.completion;if(D.tryLoc==="root")return _("end");if(D.tryLoc<=this.prev){var V=r.call(D,"catchLoc"),q=r.call(D,"finallyLoc");if(V&&q){if(this.prev=0;--_){var F=this.tryEntries[_];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--P){var _=this.tryEntries[P];if(_.finallyLoc===N)return this.complete(_.completion,_.afterLoc),z(_),b}},catch:function(N){for(var P=this.tryEntries.length-1;P>=0;--P){var _=this.tryEntries[P];if(_.tryLoc===N){var F=_.completion;if(F.type==="throw"){var D=F.arg;z(_)}return D}}throw Error("illegal catch attempt")},delegateYield:function(N,P,_){return this.delegate={iterator:k(N),resultName:P,nextLoc:_},this.method==="next"&&(this.arg=e),b}},t}function z1(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,o)}function Zi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){z1(i,r,o,a,l,"next",c)}function l(c){z1(i,r,o,a,l,"throw",c)}a(void 0)})}}var Ls=A({},kI),dP=Ls.version,fP=Ls.render,mP=Ls.unmountComponentAtNode,Nd;try{var vP=Number((dP||"").split(".")[0]);vP>=18&&(Nd=Ls.createRoot)}catch{}function _1(e){var t=Ls.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Fe(t)==="object"&&(t.usingClientEntryPoint=e)}var Nu="__rc_react_root__";function pP(e,t){_1(!0);var n=t[Nu]||Nd(t);_1(!1),n.render(e),t[Nu]=n}function gP(e,t){fP(e,t)}function C2(e,t){if(Nd){pP(e,t);return}gP(e,t)}function hP(e){return Fv.apply(this,arguments)}function Fv(){return Fv=Zi(er().mark(function e(t){return er().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Nu])===null||o===void 0||o.unmount(),delete t[Nu]}));case 1:case"end":return r.stop()}},e)})),Fv.apply(this,arguments)}function yP(e){mP(e)}function bP(e){return Av.apply(this,arguments)}function Av(){return Av=Zi(er().mark(function e(t){return er().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Nd===void 0){r.next=2;break}return r.abrupt("return",hP(t));case 2:yP(t);case 3:case"end":return r.stop()}},e)})),Av.apply(this,arguments)}const Lf=()=>({height:0,opacity:0}),j1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},SP=e=>({height:e?e.offsetHeight:0}),Df=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Mu=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cs}-motion-collapse`,onAppearStart:Lf,onEnterStart:Lf,onAppearActive:j1,onEnterActive:j1,onLeaveStart:SP,onLeaveActive:Lf,onAppearEnd:Df,onEnterEnd:Df,onLeaveEnd:Df,motionDeadline:500}},x2=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ds=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1},CP=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},xP=jR("Wave",e=>[CP(e)]),Md=`${Cs}-wave-target`;function wP(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 Ff(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&wP(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function $P(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Ff(t)?t:Ff(n)?n:Ff(r)?r:null}function Af(e){return Number.isNaN(e)?0:e}const EP=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[i,a]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[f,m]=s.useState(0),[v,g]=s.useState(0),[S,b]=s.useState(0),[h,p]=s.useState(!1),y={left:u,top:f,width:v,height:S,borderRadius:l.map(w=>`${w}px`).join(" ")};i&&(y["--wave-color"]=i);function C(){const w=getComputedStyle(n);a($P(n));const $=w.position==="static",{borderLeftWidth:I,borderTopWidth:E}=w;d($?n.offsetLeft:Af(-parseFloat(I))),m($?n.offsetTop:Af(-parseFloat(E))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:T,borderBottomLeftRadius:j,borderBottomRightRadius:z}=w;c([O,T,z,j].map(R=>Af(parseFloat(R))))}if(s.useEffect(()=>{if(n){const w=Tt(()=>{C(),p(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(C),$.observe(n)),()=>{Tt.cancel(w),$==null||$.disconnect()}}},[]),!h)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Md));return s.createElement(xi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,$)=>{var I;if($.deadline||$.propertyName==="opacity"){const E=(I=o.current)===null||I===void 0?void 0:I.parentElement;bP(E).then(()=>{E==null||E.remove()})}return!1}},(w,$)=>{let{className:I}=w;return s.createElement("div",{ref:Pr(o,$),className:Z(t,I,{"wave-quick":x}),style:y})})},IP=(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),C2(s.createElement(EP,Object.assign({},t,{target:e})),o)},OP=(e,t,n)=>{const{wave:r}=s.useContext(it),[,o,i]=Ln(),a=At(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Md}`)||d,{showEffect:m}=r||{};(m||IP)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=s.useRef();return u=>{Tt.cancel(l.current),l.current=Tt(()=>{a(u)})}},Tg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=s.useContext(it),i=s.useRef(null),a=o("wave"),[,l]=xP(a),c=OP(i,Z(a,l),r);if(ie.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!Ds(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ie.isValidElement(t))return t??null;const u=io(t)?Pr(t.ref,i):i;return Ir(t,{ref:u})},so=e=>{const t=ie.useContext(Ki);return ie.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},RP=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},PP=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"}}}},NP=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}}}},w2=vn("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[PP(t),NP(t),RP(t)]},()=>({}),{resetStyle:!1});var $2=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=s.useContext(Td),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return Z(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${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}},MP=e=>{let{children:t}=e;return s.createElement(Td.Provider,{value:null},t)},TP=e=>{var{children:t}=e,n=$2(e,["children"]);return s.createElement(Td.Provider,{value:n},t)},zP=e=>{const{getPrefixCls:t,direction:n}=s.useContext(it),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:u}=e,d=$2(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=so(y=>r??y),m=t("space-compact",a),[v,g]=w2(m),S=Z(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,c),b=s.useContext(Td),h=Er(u),p=s.useMemo(()=>h.map((y,C)=>{const x=(y==null?void 0:y.key)||`${m}-item-${C}`;return s.createElement(TP,{key:x,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:C===h.length-1&&(!b||(b==null?void 0:b.isLastItem))},y)}),[r,h,b]);return h.length===0?null:v(s.createElement("div",Object.assign({className:S},d),p))};var _P=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}=s.useContext(it),{prefixCls:r,size:o,className:i}=e,a=_P(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Ln();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"},i,c);return s.createElement(E2.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:d})))},k1=/^[\u4e00-\u9fa5]{2}$/,Bv=k1.test.bind(k1);function L1(e){return typeof e=="string"}function Bf(e){return e==="text"||e==="link"}function kP(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&L1(e.type)&&Bv(e.props.children)?Ir(e,{children:e.props.children.split("").join(n)}):L1(e)?Bv(e)?ie.createElement("span",null,e.split("").join(n)):ie.createElement("span",null,e):h2(e)?ie.createElement("span",null,e):e}function LP(e,t){let n=!1;const r=[];return ie.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),ie.Children.map(r,o=>kP(o,t))}const I2=s.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Z(`${i}-icon`,n);return ie.createElement("span",{ref:t,className:a,style:r},o)}),D1=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=Z(`${n}-loading-icon`,r);return ie.createElement(I2,{prefixCls:n,className:a,style:o,ref:t},ie.createElement(Rd,{className:i}))}),Hf=()=>({width:0,opacity:0,transform:"scale(0)"}),Vf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),DP=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?ie.createElement(D1,{prefixCls:t,className:o,style:i}):ie.createElement(xi,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Hf,onAppearActive:Vf,onEnterStart:Hf,onEnterActive:Vf,onLeaveStart:Vf,onLeaveActive:Hf},(l,c)=>{let{className:u,style:d}=l;return ie.createElement(D1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:c,iconClassName:u})})},F1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),FP=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},F1(`${t}-primary`,o),F1(`${t}-danger`,i)]}},O2=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},R2=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(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:Uc(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Uc(c),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Uc(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:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},AP=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(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:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ws(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Ao=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),BP=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HP=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VP=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),$s=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ao(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),zg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VP(e))}),P2=e=>Object.assign({},zg(e)),Tu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),N2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P2(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ao(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),$s(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},Ao(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$s(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),zg(e))}),KP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P2(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Ao(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),$s(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},Ao(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),$s(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zg(e))}),WP=e=>Object.assign(Object.assign({},N2(e)),{borderStyle:"dashed"}),UP=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ao(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Tu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ao(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Tu(e))}),GP=e=>Object.assign(Object.assign(Object.assign({},Ao(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Tu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Tu(e)),Ao(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),qP=e=>{const{componentCls:t}=e;return{[`${t}-default`]:N2(e),[`${t}-primary`]:KP(e),[`${t}-dashed`]:WP(e),[`${t}-link`]:UP(e),[`${t}-text`]:GP(e),[`${t}-ghost`]:$s(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},_g=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${G(u)} ${G(l)}`,borderRadius:a,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{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}`]:BP(e)},{[`${n}${n}-round${t}`]:HP(e)}]},XP=e=>{const t=zt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return _g(t,e.componentCls)},YP=e=>{const t=zt(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 _g(t,`${e.componentCls}-sm`)},QP=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return _g(t,`${e.componentCls}-lg`)},ZP=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},JP=vn("Button",e=>{const t=O2(e);return[AP(t),XP(t),YP(t),QP(t),ZP(t),qP(t),FP(t)]},R2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function e6(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).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] ${a}`]:{zIndex:0}})}}function t6(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 jg(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({},e6(e,r,t)),t6(n,r,t))}}function n6(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 r6(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 o6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},n6(e,t)),r6(e.componentCls,t))}}const i6=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% + ${G(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% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},a6=Id(["Button","compact"],e=>{const t=O2(e);return[jg(t),o6(t),i6(t)]},R2);var l6=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;const{loading:i=!1,prefixCls:a,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:m,className:v,rootClassName:g,children:S,icon:b,iconPosition:h="start",ghost:p=!1,block:y=!1,htmlType:C="button",classNames:x,style:w={},autoInsertSpace:$}=e,I=l6(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),E=l||"default",{getPrefixCls:O,direction:T,button:j}=s.useContext(it),z=(n=$??(j==null?void 0:j.autoInsertSpace))!==null&&n!==void 0?n:!0,R=O("btn",a),[k,M,N]=JP(R),P=s.useContext(Co),_=m??P,F=s.useContext(E2),D=s.useMemo(()=>s6(i),[i]),[B,V]=s.useState(D.loading),[q,H]=s.useState(!1),K=Pr(t,s.createRef()),ne=s.Children.count(S)===1&&!b&&!Bf(E);s.useEffect(()=>{let ce=null;D.delay>0?ce=setTimeout(()=>{ce=null,V(!0)},D.delay):V(D.loading);function ye(){ce&&(clearTimeout(ce),ce=null)}return ye},[D]),s.useEffect(()=>{if(!K||!K.current||!z)return;const ce=K.current.textContent;ne&&Bv(ce)?q||H(!0):q&&H(!1)},[K]);const oe=ce=>{const{onClick:ye}=e;if(B||_){ce.preventDefault();return}ye==null||ye(ce)},{compactSize:Y,compactItemClassnames:W}=Fs(R,T),ee={large:"lg",small:"sm",middle:void 0},te=so(ce=>{var ye,be;return(be=(ye=d??Y)!==null&&ye!==void 0?ye:F)!==null&&be!==void 0?be:ce}),U=te&&ee[te]||"",ae=B?"loading":b,re=Tn(I,["navigate"]),me=Z(R,M,N,{[`${R}-${u}`]:u!=="default"&&u,[`${R}-${E}`]:E,[`${R}-${U}`]:U,[`${R}-icon-only`]:!S&&S!==0&&!!ae,[`${R}-background-ghost`]:p&&!Bf(E),[`${R}-loading`]:B,[`${R}-two-chinese-chars`]:q&&z&&!B,[`${R}-block`]:y,[`${R}-dangerous`]:c,[`${R}-rtl`]:T==="rtl",[`${R}-icon-end`]:h==="end"},W,v,g,j==null?void 0:j.className),le=Object.assign(Object.assign({},j==null?void 0:j.style),w),fe=Z(x==null?void 0:x.icon,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.icon),ue=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.icon)||{}),pe=b&&!B?ie.createElement(I2,{prefixCls:R,className:fe,style:ue},b):ie.createElement(DP,{existIcon:!!b,prefixCls:R,loading:B}),Oe=S||S===0?LP(S,ne&&z):null;if(re.href!==void 0)return k(ie.createElement("a",Object.assign({},re,{className:Z(me,{[`${R}-disabled`]:_}),href:_?void 0:re.href,style:le,onClick:oe,ref:K,tabIndex:_?-1:0}),pe,Oe));let se=ie.createElement("button",Object.assign({},I,{type:C,className:me,style:le,onClick:oe,disabled:_,ref:K}),pe,Oe,!!W&&ie.createElement(a6,{key:"compact",prefixCls:R}));return Bf(E)||(se=ie.createElement(Tg,{component:"Button",disabled:B},se)),k(se)}),Zn=c6;Zn.Group=jP;Zn.__ANT_BUTTON=!0;var M2=s.createContext(null),A1=[];function u6(e,t){var n=s.useState(function(){if(!Un())return null;var g=document.createElement("div");return g}),r=J(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(M2),l=s.useState(A1),c=J(l,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(g){d(function(S){var b=[g].concat(de(S));return b})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function v(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1}return Nt(function(){return e?a?a(m):m():v(),v},[e]),Nt(function(){u.length&&(u.forEach(function(g){return g()}),d(A1))},[u]),[o,f]}var Kf;function T2(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,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";jo(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(d,` +`).concat(f,` +}`),t)}catch(g){console.error(g),o=c,i=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gs(t),{width:m,height:v}}function B1(e){return typeof document>"u"?0:(Kf===void 0&&(Kf=T2()),Kf.width)}function Hv(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:T2(e)}function d6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var f6="rc-util-locker-".concat(Date.now()),H1=0;function m6(e){var t=!!e,n=s.useState(function(){return H1+=1,"".concat(f6,"_").concat(H1)}),r=J(n,1),o=r[0];Nt(function(){if(t){var i=Hv(document.body).width,a=d6();jo(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else gs(o);return function(){gs(o)}},[t,o])}var v6=!1;function p6(e){return v6}var V1=function(t){return t===!1?!1:!Un()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},z2=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,c=s.useState(n),u=J(c,2),d=u[0],f=u[1],m=d||n;s.useEffect(function(){(a||n)&&f(n)},[n,a]);var v=s.useState(function(){return V1(o)}),g=J(v,2),S=g[0],b=g[1];s.useEffect(function(){var T=V1(o);b(T??null)});var h=u6(m&&!S),p=J(h,2),y=p[0],C=p[1],x=S??y;m6(r&&n&&Un()&&(x===y||x===document.body));var w=null;if(l&&io(l)&&t){var $=l;w=$.ref}var I=Ja(w,t);if(!m||!Un()||S===void 0)return null;var E=x===!1||p6(),O=l;return t&&(O=s.cloneElement(l,{ref:I})),s.createElement(M2.Provider,{value:C},E?O:bo.createPortal(O,x))});function g6(){var e=A({},qu);return e.useId}var K1=0,W1=g6();const h6=W1?function(t){var n=W1();return t||n}:function(t){var n=s.useState("ssr-id"),r=J(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=K1;K1+=1,i("rc_unique_".concat(a))},[]),t||o};var _i="RC_FORM_INTERNAL_HOOKS",Ft=function(){Xt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wi=s.createContext({getFieldValue:Ft,getFieldsValue:Ft,getFieldError:Ft,getFieldWarning:Ft,getFieldsError:Ft,isFieldsTouched:Ft,isFieldTouched:Ft,isFieldValidating:Ft,isFieldsValidating:Ft,resetFields:Ft,setFields:Ft,setFieldValue:Ft,setFieldsValue:Ft,validateFields:Ft,submit:Ft,getInternalHooks:function(){return Ft(),{dispatch:Ft,initEntityValue:Ft,registerField:Ft,useSubscribe:Ft,setInitialValues:Ft,destroyForm:Ft,setCallbacks:Ft,registerWatch:Ft,getFields:Ft,setValidateMessages:Ft,setPreserve:Ft,getInitialValue:Ft}}}),Es=s.createContext(null);function Vv(e){return e==null?[]:Array.isArray(e)?e:[e]}function y6(e){return e&&!!e._init}function Kv(){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 Wv=Kv();function b6(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function S6(e,t,n){if(yg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ms(o,n.prototype),o}function Uv(e){var t=typeof Map=="function"?new Map:void 0;return Uv=function(r){if(r===null||!b6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return S6(r,arguments,vs(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ms(o,r)},Uv(e)}var C6=/%[sdj%]/g,x6=function(){};function Gv(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 xr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)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 a}return e}function w6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function En(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||w6(t)&&typeof e=="string"&&!e)}function $6(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,de(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function U1(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,lt.max?o.push(xr(i.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&o.push(xr(i.messages[f].range,t.fullField,t.min,t.max))},_2=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||En(n,a||t.type))&&o.push(xr(i.messages.required,t.fullField))},xc;const T6=function(){if(xc)return xc;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function(w){return w&&w.exact?l:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(a).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,g=d.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(g,"|").concat(S).concat(b).concat(h,")").concat(p).concat(y);return xc=new RegExp("(?:^".concat(C,"$)"),"i"),xc};var Y1={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},Il={integer:function(t){return Il.number(t)&&parseInt(t,10)===t},float:function(t){return Il.number(t)&&!Il.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 Fe(t)==="object"&&!Il.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Y1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(T6())},hex:function(t){return typeof t=="string"&&!!t.match(Y1.hex)}},z6=function(t,n,r,o,i){if(t.required&&n===void 0){_2(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Il[l](n)||o.push(xr(i.messages.types[l],t.fullField,t.type)):l&&Fe(n)!==t.type&&o.push(xr(i.messages.types[l],t.fullField,t.type))},_6=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(xr(i.messages.whitespace,t.fullField))};const Et={required:_2,whitespace:_6,type:z6,range:M6,enum:P6,pattern:N6};var j6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i)}r(a)},k6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Et.required(t,n,o,a,i,"array"),n!=null&&(Et.type(t,n,o,a,i),Et.range(t,n,o,a,i))}r(a)},L6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&Et.type(t,n,o,a,i)}r(a)},D6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n,"date")&&!t.required)return r();if(Et.required(t,n,o,a,i),!En(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Et.type(t,c,o,a,i),c&&Et.range(t,c.getTime(),o,a,i)}}r(a)},F6="enum",A6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&Et[F6](t,n,o,a,i)}r(a)},B6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&(Et.type(t,n,o,a,i),Et.range(t,n,o,a,i))}r(a)},H6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&(Et.type(t,n,o,a,i),Et.range(t,n,o,a,i))}r(a)},V6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&Et.type(t,n,o,a,i)}r(a)},K6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&(Et.type(t,n,o,a,i),Et.range(t,n,o,a,i))}r(a)},W6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),n!==void 0&&Et.type(t,n,o,a,i)}r(a)},U6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n,"string")&&!t.required)return r();Et.required(t,n,o,a,i),En(n,"string")||Et.pattern(t,n,o,a,i)}r(a)},G6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n)&&!t.required)return r();Et.required(t,n,o,a,i),En(n)||Et.type(t,n,o,a,i)}r(a)},q6=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":Fe(n);Et.required(t,n,o,a,i,l),r(a)},X6=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(En(n,"string")&&!t.required)return r();Et.required(t,n,o,a,i,"string"),En(n,"string")||(Et.type(t,n,o,a,i),Et.range(t,n,o,a,i),Et.pattern(t,n,o,a,i),t.whitespace===!0&&Et.whitespace(t,n,o,a,i))}r(a)},Wf=function(t,n,r,o,i){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(En(n,a)&&!t.required)return r();Et.required(t,n,o,l,i,a),En(n,a)||Et.type(t,n,o,l,i)}r(l)};const Hl={string:X6,method:V6,number:K6,boolean:L6,regexp:G6,integer:H6,float:B6,array:k6,object:W6,enum:A6,pattern:U6,date:D6,url:Wf,hex:Wf,email:Wf,required:q6,any:j6};var As=function(){function e(t){bn(this,e),L(this,"rules",null),L(this,"_messages",Wv),this.define(t)}return Sn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Fe(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=X1(Kv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(g){var S=[],b={};function h(y){if(Array.isArray(y)){var C;S=(C=S).concat.apply(C,de(y))}else S.push(y)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray($)?$:[$];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&b.message!==void 0&&(I=[].concat(b.message));var E=I.map(q1(b,a));if(l.first&&E.length)return v[b.field]=1,S(E);if(!h)S(E);else{if(b.required&&!g.value)return b.message!==void 0?E=[].concat(b.message).map(q1(b,a)):l.error&&(E=[l.error(b,xr(l.messages.required,b.field))]),S(E);var O={};b.defaultField&&Object.keys(g.value).map(function(z){O[z]=b.defaultField}),O=A(A({},O),g.rule.fields);var T={};Object.keys(O).forEach(function(z){var R=O[z],k=Array.isArray(R)?R:[R];T[z]=k.map(p.bind(null,z))});var j=new e(T);j.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),j.validate(g.value,g.rule.options||l,function(z){var R=[];E&&E.length&&R.push.apply(R,de(E)),z&&z.length&&R.push.apply(R,de(z)),S(R.length?R:null)})}}var C;if(b.asyncValidator)C=b.asyncValidator(b,g.value,y,g.source,l);else if(b.validator){try{C=b.validator(b,g.value,y,g.source,l)}catch($){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,$),l.suppressValidatorError||setTimeout(function(){throw $},0),y($.message)}C===!0?y():C===!1?y(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):C instanceof Array?y(C):C instanceof Error&&y(C.message)}C&&C.then&&C.then(function(){return y()},function($){return y($)})},function(g){u(g)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Hl.hasOwnProperty(n.type))throw new Error(xr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Hl.required:Hl[this.getType(n)]||void 0}}]),e}();L(As,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hl[t]=n});L(As,"warning",x6);L(As,"messages",Wv);L(As,"validators",Hl);var gr="'${name}' is not a valid ${type}",j2={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:gr,method:gr,array:gr,object:gr,number:gr,date:gr,boolean:gr,integer:gr,float:gr,regexp:gr,email:gr,url:gr,hex:gr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Q1=As;function Y6(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Z1="CODE_LOGIC_ERROR";function qv(e,t,n,r,o){return Xv.apply(this,arguments)}function Xv(){return Xv=Zi(er().mark(function e(t,n,r,o,i){var a,l,c,u,d,f,m,v,g;return er().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=A({},r),delete a.ruleIndex,Q1.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(Z1)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new Q1(L({},t,[a])),d=wa(j2,o.validateMessages),u.messages(d),f=[],b.prev=10,b.next=13,Promise.resolve(u.validate(L({},t,n),A({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(h,p){var y=h.message,C=y===Z1?d.default:y;return s.isValidElement(C)?s.cloneElement(C,{key:"error_".concat(p)}):C}));case 18:if(!(!f.length&&c)){b.next=23;break}return b.next=21,Promise.all(n.map(function(h,p){return qv("".concat(t,".").concat(p),h,c,o,i)}));case 21:return m=b.sent,b.abrupt("return",m.reduce(function(h,p){return[].concat(de(h),de(p))},[]));case 23:return v=A(A({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),g=f.map(function(h){return typeof h=="string"?Y6(h,v):h}),b.abrupt("return",g);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Xv.apply(this,arguments)}function Q6(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var m=d.validator,v=A(A({},d),{},{ruleIndex:f});return m&&(v.validator=function(g,S,b){var h=!1,p=function(){for(var x=arguments.length,w=new Array(x),$=0;$2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return k2(t,r,n)})}function k2(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 eN(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Fe(e)!=="object"||Fe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return de(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function tN(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Fe(t.target)==="object"&&e in t.target?t.target[e]:t}function ey(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(de(e.slice(0,n)),[o],de(e.slice(n,t)),de(e.slice(t+1,r))):i<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[o],de(e.slice(n+1,r))):e}var nN=["name"],Nr=[];function Uf(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var kg=function(e){xo(n,e);var t=wo(n);function n(r){var o;if(bn(this,n),o=t.call(this,r),L(ve(o),"state",{resetCount:0}),L(ve(o),"cancelRegisterFunc",null),L(ve(o),"mounted",!1),L(ve(o),"touched",!1),L(ve(o),"dirty",!1),L(ve(o),"validatePromise",void 0),L(ve(o),"prevValidating",void 0),L(ve(o),"errors",Nr),L(ve(o),"warnings",Nr),L(ve(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,fn(f)),o.cancelRegisterFunc=null}),L(ve(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(de(m),de(u)):[]}),L(ve(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),L(ve(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),L(ve(o),"metaCache",null),L(ve(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=A(A({},o.getMeta()),{},{destroy:c});So(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),L(ve(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,g=v===void 0?[]:v,S=f.onReset,b=d.store,h=o.getNamePath(),p=o.getValue(c),y=o.getValue(b),C=u&&Ta(u,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!So(p,y)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent()),d.type){case"reset":if(!u||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),S==null||S(),o.refresh();return}break;case"remove":{if(m&&Uf(m,c,b,p,y,d)){o.reRender();return}break}case"setField":{var x=d.data;if(C){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Nr),"warnings"in x&&(o.warnings=x.warnings||Nr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&Ta(u,h,!0)){o.reRender();return}if(m&&!h.length&&Uf(m,c,b,p,y,d)){o.reRender();return}break}case"dependenciesUpdate":{var w=g.map(fn);if(w.some(function($){return Ta(d.relatedFields,$)})){o.reRender();return}break}default:if(C||(!g.length||h.length||m)&&Uf(m,c,b,p,y,d)){o.reRender();return}break}m===!0&&o.reRender()}),L(ve(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,g=v===void 0?!1:v,S=Promise.resolve().then(Zi(er().mark(function b(){var h,p,y,C,x,w,$;return er().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(h=o.props,p=h.validateFirst,y=p===void 0?!1:p,C=h.messageVariables,x=h.validateDebounce,w=o.getRules(),m&&(w=w.filter(function(O){return O}).filter(function(O){var T=O.validateTrigger;if(!T)return!0;var j=Vv(T);return j.includes(m)})),!(x&&m)){E.next=10;break}return E.next=8,new Promise(function(O){setTimeout(O,x)});case 8:if(o.validatePromise===S){E.next=10;break}return E.abrupt("return",[]);case 10:return $=Q6(u,d,w,c,y,C),$.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nr;if(o.validatePromise===S){var T;o.validatePromise=null;var j=[],z=[];(T=O.forEach)===null||T===void 0||T.call(O,function(R){var k=R.rule.warningOnly,M=R.errors,N=M===void 0?Nr:M;k?z.push.apply(z,de(N)):j.push.apply(j,de(N))}),o.errors=j,o.warnings=z,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",$);case 13:case"end":return E.stop()}},b)})));return g||(o.validatePromise=S,o.dirty=!0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),o.reRender()),S}),L(ve(o),"isFieldValidating",function(){return!!o.validatePromise}),L(ve(o),"isFieldTouched",function(){return o.touched}),L(ve(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(_i),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),L(ve(o),"getErrors",function(){return o.errors}),L(ve(o),"getWarnings",function(){return o.warnings}),L(ve(o),"isListField",function(){return o.props.isListField}),L(ve(o),"isList",function(){return o.props.isList}),L(ve(o),"isPreserve",function(){return o.props.preserve}),L(ve(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),L(ve(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return A(A({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=Er(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(ve(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Cr(c||u(!0),d)}),L(ve(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,g=u.normalize,S=u.valuePropName,b=u.getValueProps,h=u.fieldContext,p=m!==void 0?m:h.validateTrigger,y=o.getNamePath(),C=h.getInternalHooks,x=h.getFieldsValue,w=C(_i),$=w.dispatch,I=o.getValue(),E=b||function(R){return L({},S,R)},O=c[f],T=d!==void 0?E(I):{},j=A(A({},c),T);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,k=arguments.length,M=new Array(k),N=0;N=0&&O<=T.length?(d.keys=[].concat(de(d.keys.slice(0,O)),[d.id],de(d.keys.slice(O))),y([].concat(de(T.slice(0,O)),[E],de(T.slice(O))))):(d.keys=[].concat(de(d.keys),[d.id]),y([].concat(de(T),[E]))),d.id+=1},remove:function(E){var O=x(),T=new Set(Array.isArray(E)?E:[E]);T.size<=0||(d.keys=d.keys.filter(function(j,z){return!T.has(z)}),y(O.filter(function(j,z){return!T.has(z)})))},move:function(E,O){if(E!==O){var T=x();E<0||E>=T.length||O<0||O>=T.length||(d.keys=ey(d.keys,E,O),y(ey(T,E,O)))}}},$=p||[];return Array.isArray($)||($=[]),r($.map(function(I,E){var O=d.keys[E];return O===void 0&&(d.keys[E]=d.id,O=d.keys[E],d.id+=1),{name:E,key:O,isListField:!0}}),w,b)})))}function rN(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var D2="__@field_split__";function Gf(e){return e.map(function(t){return"".concat(Fe(t),":").concat(t)}).join(D2)}var ra=function(){function e(){bn(this,e),L(this,"kvs",new Map)}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Gf(n),r)}},{key:"get",value:function(n){return this.kvs.get(Gf(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Gf(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var o=J(r,2),i=o[0],a=o[1],l=i.split(D2);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=J(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),oN=["name"],iN=Sn(function e(t){var n=this;bn(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===_i?(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}):(Xt(!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 i,a=wa(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;a=Xr(a,c,Cr(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ra;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),L(this,"getInitialValue",function(r){var o=Cr(n.initialValues,r);return r.length?wa(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(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,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 ra;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=fn(i);return o.get(a)||{INVALIDATE_NAME_PATH:fn(i)}})}),L(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Fe(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,S;if((g=(S=d).isList)!==null&&g!==void 0&&g.call(S))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)u.push(v);else{var b="getMeta"in d?d.getMeta():null;a(b)&&u.push(v)}}),J1(n.store,u.map(fn))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var o=fn(r);return Cr(n.store,o)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:fn(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var o=fn(r),i=n.getFieldsError([o])[0];return i.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var o=fn(r),i=n.getFieldsError([o])[0];return i.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new ra,i=n.getFieldEntities(!0);i.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)Xt(!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)Xt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var S=n.getFieldValue(m),b=d.isListField();!b&&(!r.skipExist||S===void 0)&&n.updateStore(Xr(n.store,m,de(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,de(de(u).map(function(f){return f.entity})))}})):l=i,a(l)}),L(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(wa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(fn);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Xr(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),L(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,c=ot(a,oN),u=fn(l);i.push(u),"value"in c&&n.updateStore(Xr(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),c=A(A({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),L(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Cr(n.store,i);a===void 0&&n.updateStore(Xr(n.store,i,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 i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!k2(f.getNamePath(),o)})){var d=n.store;n.updateStore(Xr(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,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),L(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=A(A({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(de(i))}),i}),L(this,"updateValue",function(r,o){var i=fn(r),a=n.store;n.updateStore(Xr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var u=J1(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(de(l)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=wa(n.store,r);n.updateStore(i)}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,i=[],a=new ra;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=fn(d);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),c(m))}})};return l(r),i}),L(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new ra;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return Ta(r,d)});c.length&&i(c,a)}}),L(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,c=l?i.map(fn):[],u=[],d=String(Date.now()),f=new Set,m=a||{},v=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||c.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(g&&!p.isFieldDirty())){var y=p.getNamePath();if(f.add(y.join(d)),!l||Ta(c,y,v)){var C=p.validateRules(A({validateMessages:A(A({},j2),n.validateMessages)},a));u.push(C.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(x){var w,$=[],I=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(E){var O=E.rule.warningOnly,T=E.errors;O?I.push.apply(I,de(T)):$.push.apply($,de(T))}),$.length?Promise.reject({name:y,errors:$,warnings:I}):{name:y,errors:$,warnings:I}}))}}});var S=rN(u);n.lastValidatePromise=S,S.catch(function(p){return p}).then(function(p){var y=p.map(function(C){var x=C.name;return x});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,p)});var b=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(p){var y=p.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:y,outOfDate:n.lastValidatePromise!==S})});b.catch(function(p){return p});var h=c.filter(function(p){return f.has(p.join(d))});return n.triggerOnFieldsChange(h),b}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Dg(e){var t=s.useRef(),n=s.useState({}),r=J(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new iN(i);t.current=a.getForm()}return[t.current]}var Zv=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),F2=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=s.useContext(Zv),l=s.useRef({});return s.createElement(Zv.Provider,{value:A(A({},a),{},{validateMessages:A(A({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=A(A({},l.current),{},L({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=A({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},aN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lN=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,g=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,h=t.onFinishFailed,p=t.clearOnDestroy,y=ot(t,aN),C=s.useRef(null),x=s.useContext(Zv),w=Dg(a),$=J(w,1),I=$[0],E=I.getInternalHooks(_i),O=E.useSubscribe,T=E.setInitialValues,j=E.setCallbacks,z=E.setValidateMessages,R=E.setPreserve,k=E.destroyForm;s.useImperativeHandle(n,function(){return A(A({},I),{},{nativeElement:C.current})}),s.useEffect(function(){return x.registerForm(r,I),function(){x.unregisterForm(r)}},[x,I,r]),z(A(A({},x.validateMessages),f)),j({onValuesChange:g,onFieldsChange:function(q){if(x.triggerFormChange(r,q),S){for(var H=arguments.length,X=new Array(H>1?H-1:0),K=1;K{}}),B2=s.createContext(null),H2=e=>{const t=Tn(e,["prefixCls"]);return s.createElement(F2,Object.assign({},t))},Fg=s.createContext({prefixCls:""}),tr=s.createContext({}),cN=e=>{let{children:t,status:n,override:r}=e;const o=s.useContext(tr),i=s.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return s.createElement(tr.Provider,{value:i},t)},V2=s.createContext(void 0),zu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=ie.createElement(cN,{override:!0,status:!0},o)),t&&(o=ie.createElement(MP,null,o)),o};var K2=function(t){if(Un()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},uN=function(t,n){if(!K2(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function dN(e,t){return!Array.isArray(e)&&t!==void 0?uN(e,t):K2(e)}const Ag=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`}}}),fN=e=>({animationDuration:e,animationFillMode:"both"}),mN=e=>({animationDuration:e,animationFillMode:"both"}),Bg=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},fN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},mN(r)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vN=new It("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pN=new It("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),gN=new It("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hN=new It("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yN=new It("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bN=new It("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SN=new It("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CN=new It("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xN={"move-up":{inKeyframes:SN,outKeyframes:CN},"move-down":{inKeyframes:vN,outKeyframes:pN},"move-left":{inKeyframes:gN,outKeyframes:hN},"move-right":{inKeyframes:yN,outKeyframes:bN}},_u=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xN[t];return[Bg(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Hg=new It("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vg=new It("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kg=new It("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Wg=new It("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),wN=new It("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$N=new It("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),EN=new It("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),IN=new It("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ON={"slide-up":{inKeyframes:Hg,outKeyframes:Vg},"slide-down":{inKeyframes:Kg,outKeyframes:Wg},"slide-left":{inKeyframes:wN,outKeyframes:$N},"slide-right":{inKeyframes:EN,outKeyframes:IN}},Ua=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ON[t];return[Bg(r,o,i,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}}]},Ug=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RN=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ny=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ry=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),PN=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),NN=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),MN=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),TN=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),zN=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),_N=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jN=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),kN=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),LN={zoom:{inKeyframes:Ug,outKeyframes:RN},"zoom-big":{inKeyframes:ny,outKeyframes:ry},"zoom-big-fast":{inKeyframes:ny,outKeyframes:ry},"zoom-left":{inKeyframes:MN,outKeyframes:TN},"zoom-right":{inKeyframes:zN,outKeyframes:_N},"zoom-up":{inKeyframes:PN,outKeyframes:NN},"zoom-down":{inKeyframes:jN,outKeyframes:kN}},Gg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=LN[t];return[Bg(r,o,i,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}}]},DN=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new It("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new It("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new It("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new It("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:a}},[`&${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:i}},[`&${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:c}}}}},FN=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],AN={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},BN=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[AN[t]]:{value:0,_skip_check_:!0}}}}},HN=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)},VN=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"},HN(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},VN(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"}}}},FN.map(n=>BN(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},W2=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:v,notificationMarginEdge:g,notificationProgressBg:S,notificationProgressHeight:b,fontSize:h,lineHeight:p,width:y,notificationIconSize:C,colorText:x}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[w]:{padding:v,width:y,maxWidth:`calc(100vw - ${G(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:h,color:x},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:h},[`${w}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${w}-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}},ws(e)),[`${w}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${G(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:b,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:S},"&::-webkit-progress-value":{borderRadius:a,background:S}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},WN=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new It("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Zt(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,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",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},W2(e))}}]},U2=e=>({zIndexPopup:e.zIndexPopupBase+sP+50,width:384}),G2=e=>{const t=e.paddingMD,n=e.paddingLG;return zt(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:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},q2=vn("Notification",e=>{const t=G2(e);return[WN(t),DN(t),KN(t)]},U2),UN=Id(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=G2(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},W2(n)),{width:n.width,maxWidth:`calc(100vw - ${G(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},U2);var GN=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,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(qN[r]||null,{className:Z(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:Z({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},i),a&&s.createElement("div",{className:`${t}-btn`},a))},XN=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:c=!0,closeIcon:u,className:d}=e,f=GN(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=s.useContext(it),v=t||m("notification"),g=`${v}-notice`,S=qn(v),[b,h,p]=q2(v,S);return b(s.createElement("div",{className:Z(`${g}-pure-panel`,h,n,p,S)},s.createElement(UN,{prefixCls:v}),s.createElement(y2,Object.assign({},f,{prefixCls:v,eventKey:"pure",duration:null,closable:c,className:Z({notificationClassName:d}),closeIcon:qg(v,u),content:s.createElement(X2,{prefixCls:g,icon:r,type:o,message:i,description:a,btn:l})}))))};function YN(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 QN(e){return{motionName:`${e}-fade`}}var ZN=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=qn(n),[o,i,a]=q2(n,r);return o(ie.createElement(Y5,{classNames:{list:Z(i,a,r)}},t))},nM=(e,t)=>{let{prefixCls:n,key:r}=t;return ie.createElement(tM,{prefixCls:n,key:r},e)},rM=ie.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:v,getPopupContainer:g,notification:S,direction:b}=s.useContext(it),[,h]=Ln(),p=o||v("notification"),y=I=>YN(I,n??oy,r??oy),C=()=>Z({[`${p}-rtl`]:l??b==="rtl"}),x=()=>QN(p),[w,$]=oP({prefixCls:p,style:y,className:C,motion:x,closable:!0,closeIcon:qg(p),duration:d??JN,getContainer:()=>(i==null?void 0:i())||(g==null?void 0:g())||document.body,maxCount:a,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:nM,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:h.margin}});return ie.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:p,notification:S})),$});function Y2(e){const t=ie.useRef(null);return Ci(),[ie.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:v,description:g,icon:S,type:b,btn:h,className:p,style:y,role:C="alert",closeIcon:x,closable:w}=l,$=ZN(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),I=qg(m,typeof x<"u"?x:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:eM},$),{content:ie.createElement(X2,{prefixCls:m,icon:S,type:b,message:v,description:g,btn:h,role:C}),className:Z(b&&`${m}-${b}`,p,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),closeIcon:I,closable:w??!!I}))},i={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),i},[]),ie.createElement(rM,Object.assign({key:"notification-holder"},e,{ref:t}))]}function oM(e){return Y2(e)}const iM=ie.createContext({});function aM(e){return t=>s.createElement(Qi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const Q2=(e,t,n,r)=>aM(i=>{const{prefixCls:a,style:l}=i,c=s.useRef(null),[u,d]=s.useState(0),[f,m]=s.useState(0),[v,g]=Mn(!1,{value:i.open}),{getPrefixCls:S}=s.useContext(it),b=S(t||"select",a);s.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(x=>{const w=x[0].target;d(w.offsetHeight+8),m(w.offsetWidth)}),C=setInterval(()=>{var x;const w=n?`.${n(b)}`:`.${b}-dropdown`,$=(x=c.current)===null||x===void 0?void 0:x.querySelector(w);$&&(clearInterval(C),y.observe($))},10);return()=>{clearInterval(C),y.disconnect()}}},[]);let h=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>c.current});r&&(h=r(h));const p={paddingBottom:u,position:"relative",minWidth:f};return s.createElement("div",{ref:c,style:p},s.createElement(e,Object.assign({},h)))}),Z2=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 zd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:Z(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},lM=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=ie.useMemo(function(){if(Fe(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=ie.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,a,r.length,l,c]);return{allowClear:d,clearIcon:ie.createElement(zd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},J2=s.createContext(null);function sM(){return s.useContext(J2)}function cM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=J(t,2),r=n[0],o=n[1],i=s.useRef(null),a=function(){window.clearTimeout(i.current)};s.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.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 uM(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function dM(e){return![ge.ESC,ge.SHIFT,ge.BACKSPACE,ge.TAB,ge.WIN_KEY,ge.ALT,ge.META,ge.WIN_KEY_RIGHT,ge.CTRL,ge.SEMICOLON,ge.EQUALS,ge.CAPS_LOCK,ge.CONTEXT_MENU,ge.F1,ge.F2,ge.F3,ge.F4,ge.F5,ge.F6,ge.F7,ge.F8,ge.F9,ge.F10,ge.F11,ge.F12].includes(e)}var fM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oa=void 0;function mM(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,g=e.order,S=e.component,b=S===void 0?"div":S,h=ot(e,fM),p=a&&!v;function y(I){c(u,I)}s.useEffect(function(){return function(){y(null)}},[]);var C=i&&o!==oa?i(o):m,x;r||(x={opacity:p?0:1,height:p?0:oa,overflowY:p?"hidden":oa,order:a?g:oa,pointerEvents:p?"none":oa,position:p?"absolute":oa});var w={};p&&(w["aria-hidden"]=!0);var $=s.createElement(b,he({className:Z(!r&&n,d),style:A(A({},x),f)},w,h,{ref:t}),C);return a&&($=s.createElement(lo,{onResize:function(E){var O=E.offsetWidth;y(O)},disabled:l},$)),$}var Vl=s.forwardRef(mM);Vl.displayName="Item";function vM(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function pM(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],vM(function(){bo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function hl(e,t){var n=s.useState(t),r=J(n,2),o=r[0],i=r[1],a=At(function(l){e(function(){i(l)})});return[o,a]}var ju=ie.createContext(null),gM=["component"],hM=["className"],yM=["className"],bM=function(t,n){var r=s.useContext(ju);if(!r){var o=t.component,i=o===void 0?"div":o,a=ot(t,gM);return s.createElement(i,he({},a,{ref:n}))}var l=r.className,c=ot(r,hM),u=t.className,d=ot(t,yM);return s.createElement(ju.Provider,{value:null},s.createElement(Vl,he({ref:n,className:Z(l,u)},c,d)))},tw=s.forwardRef(bM);tw.displayName="RawItem";var SM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],nw="responsive",rw="invalidate";function CM(e){return"+ ".concat(e.length," ...")}function xM(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,g=e.maxCount,S=e.renderRest,b=e.renderRawRest,h=e.suffix,p=e.component,y=p===void 0?"div":p,C=e.itemComponent,x=e.onVisibleChange,w=ot(e,SM),$=f==="full",I=pM(),E=hl(I,null),O=J(E,2),T=O[0],j=O[1],z=T||0,R=hl(I,new Map),k=J(R,2),M=k[0],N=k[1],P=hl(I,0),_=J(P,2),F=_[0],D=_[1],B=hl(I,0),V=J(B,2),q=V[0],H=V[1],X=hl(I,0),K=J(X,2),ne=K[0],oe=K[1],Y=s.useState(null),W=J(Y,2),ee=W[0],te=W[1],U=s.useState(null),ae=J(U,2),re=ae[0],me=ae[1],le=s.useMemo(function(){return re===null&&$?Number.MAX_SAFE_INTEGER:re||0},[re,T]),fe=s.useState(!1),ue=J(fe,2),pe=ue[0],Oe=ue[1],se="".concat(r,"-item"),ce=Math.max(F,q),ye=g===nw,be=i.length&&ye,Ke=g===rw,je=be||typeof g=="number"&&i.length>g,We=s.useMemo(function(){var Le=i;return be?T===null&&$?Le=i:Le=i.slice(0,Math.min(i.length,z/d)):typeof g=="number"&&(Le=i.slice(0,g)),Le},[i,d,T,g,be]),Se=s.useMemo(function(){return be?i.slice(le+1):i.slice(We.length)},[i,We,be,le]),Be=s.useCallback(function(Le,$e){var Ge;return typeof c=="function"?c(Le):(Ge=c&&(Le==null?void 0:Le[c]))!==null&&Ge!==void 0?Ge:$e},[c]),Pe=s.useCallback(a||function(Le){return Le},[a]);function Re(Le,$e,Ge){re===Le&&($e===void 0||$e===ee)||(me(Le),Ge||(Oe(Lez){Re(et-1,Le-Ce-ne+q);break}}h&&Ue(0)+ne>z&&te(null)}},[z,M,q,ne,Be,We]);var $t=pe&&!!Se.length,at={};ee!==null&&be&&(at={position:"absolute",left:ee,top:0});var Ot={prefixCls:se,responsive:be,component:C,invalidate:Ke},lt=l?function(Le,$e){var Ge=Be(Le,$e);return s.createElement(ju.Provider,{key:Ge,value:A(A({},Ot),{},{order:$e,item:Le,itemKey:Ge,registerSize:Me,display:$e<=le})},l(Le,$e))}:function(Le,$e){var Ge=Be(Le,$e);return s.createElement(Vl,he({},Ot,{order:$e,key:Ge,item:Le,renderItem:Pe,itemKey:Ge,registerSize:Me,display:$e<=le}))},Rt,Je={order:$t?le:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:ke,display:$t};if(b)b&&(Rt=s.createElement(ju.Provider,{value:A(A({},Ot),Je)},b(Se)));else{var He=S||CM;Rt=s.createElement(Vl,he({},Ot,Je),typeof He=="function"?He(Se):He)}var Qe=s.createElement(y,he({className:Z(!Ke&&r,v),style:m,ref:t},w),We.map(lt),je?Rt:null,h&&s.createElement(Vl,he({},Ot,{responsive:ye,responsiveDisabled:!be,order:le,className:"".concat(se,"-suffix"),registerSize:nt,display:!0,style:at}),h));return ye&&(Qe=s.createElement(lo,{onResize:Ie,disabled:!be},Qe)),Qe}var yo=s.forwardRef(xM);yo.displayName="Overflow";yo.Item=tw;yo.RESPONSIVE=nw;yo.INVALIDATE=rw;var wM=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,v=t.value,g=t.maxLength,S=t.onKeyDown,b=t.onMouseDown,h=t.onChange,p=t.onPaste,y=t.onCompositionStart,C=t.onCompositionEnd,x=t.open,w=t.attrs,$=a||s.createElement("input",null),I=$,E=I.ref,O=I.props,T=O.onKeyDown,j=O.onChange,z=O.onMouseDown,R=O.onCompositionStart,k=O.onCompositionEnd,M=O.style;return"maxLength"in $.props,$=s.cloneElement($,A(A(A({type:"search"},O),{},{id:i,ref:Pr(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:Z("".concat(o,"-selection-search-input"),(r=$)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?m:void 0},w),{},{value:f?v:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:A(A({},M),{},{opacity:f?null:0}),onKeyDown:function(P){S(P),T&&T(P)},onMouseDown:function(P){b(P),z&&z(P)},onChange:function(P){h(P),j&&j(P)},onCompositionStart:function(P){y(P),R&&R(P)},onCompositionEnd:function(P){C(P),k&&k(P)},onPaste:p})),$},ow=s.forwardRef(wM);function iw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var $M=typeof window<"u"&&window.document&&window.document.documentElement,EM=$M;function IM(e){return e!=null}function OM(e){return!e&&e!==0}function iy(e){return["string","number"].includes(Fe(e))}function aw(e){var t=void 0;return e&&(iy(e.title)?t=e.title.toString():iy(e.label)&&(t=e.label.toString())),t}function RM(e,t){EM?s.useLayoutEffect(e,t):s.useEffect(e,t)}function PM(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ay=function(t){t.preventDefault(),t.stopPropagation()},NM=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,g=t.autoComplete,S=t.activeDescendantId,b=t.tabIndex,h=t.removeIcon,p=t.maxTagCount,y=t.maxTagTextLength,C=t.maxTagPlaceholder,x=C===void 0?function(te){return"+ ".concat(te.length," ...")}:C,w=t.tagRender,$=t.onToggleOpen,I=t.onRemove,E=t.onInputChange,O=t.onInputPaste,T=t.onInputKeyDown,j=t.onInputMouseDown,z=t.onInputCompositionStart,R=t.onInputCompositionEnd,k=s.useRef(null),M=s.useState(0),N=J(M,2),P=N[0],_=N[1],F=s.useState(!1),D=J(F,2),B=D[0],V=D[1],q="".concat(r,"-selection"),H=i||f==="multiple"&&l===!1||f==="tags"?a:"",X=f==="tags"||f==="multiple"&&l===!1||m&&(i||B);RM(function(){_(k.current.scrollWidth)},[H]);var K=function(U,ae,re,me,le){return s.createElement("span",{title:aw(U),className:Z("".concat(q,"-item"),L({},"".concat(q,"-item-disabled"),re))},s.createElement("span",{className:"".concat(q,"-item-content")},ae),me&&s.createElement(zd,{className:"".concat(q,"-item-remove"),onMouseDown:ay,onClick:le,customizeIcon:h},"×"))},ne=function(U,ae,re,me,le,fe){var ue=function(Oe){ay(Oe),$(!i)};return s.createElement("span",{onMouseDown:ue},w({label:ae,value:U,disabled:re,closable:me,onClose:le,isMaxTag:!!fe}))},oe=function(U){var ae=U.disabled,re=U.label,me=U.value,le=!d&&!ae,fe=re;if(typeof y=="number"&&(typeof re=="string"||typeof re=="number")){var ue=String(fe);ue.length>y&&(fe="".concat(ue.slice(0,y),"..."))}var pe=function(se){se&&se.stopPropagation(),I(U)};return typeof w=="function"?ne(me,fe,ae,le,pe):K(U,fe,ae,le,pe)},Y=function(U){var ae=typeof x=="function"?x(U):x;return typeof w=="function"?ne(void 0,ae,!1,!1,void 0,!0):K({title:ae},ae,!1)},W=s.createElement("div",{className:"".concat(q,"-search"),style:{width:P},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},s.createElement(ow,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:g,editable:X,activeDescendantId:S,value:H,onKeyDown:T,onMouseDown:j,onChange:E,onPaste:O,onCompositionStart:z,onCompositionEnd:R,tabIndex:b,attrs:Br(t,!0)}),s.createElement("span",{ref:k,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},H," ")),ee=s.createElement(yo,{prefixCls:"".concat(q,"-overflow"),data:o,renderItem:oe,renderRest:Y,suffix:W,itemKey:PM,maxCount:p});return s.createElement(s.Fragment,null,ee,!o.length&&!H&&s.createElement("span",{className:"".concat(q,"-placeholder")},u))},MM=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,g=t.tabIndex,S=t.showSearch,b=t.searchValue,h=t.activeValue,p=t.maxLength,y=t.onInputKeyDown,C=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,$=t.onInputCompositionStart,I=t.onInputCompositionEnd,E=t.title,O=s.useState(!1),T=J(O,2),j=T[0],z=T[1],R=d==="combobox",k=R||S,M=m[0],N=b||"";R&&h&&!j&&(N=h),s.useEffect(function(){R&&z(!1)},[R,h]);var P=d!=="combobox"&&!f&&!S?!1:!!N,_=E===void 0?aw(M):E,F=s.useMemo(function(){return M?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},v)},[M,P,v,r]);return s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(ow,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:k,activeDescendantId:u,value:N,onKeyDown:y,onMouseDown:C,onChange:function(B){z(!0),x(B)},onPaste:w,onCompositionStart:$,onCompositionEnd:I,tabIndex:g,attrs:Br(t,!0),maxLength:R?p:void 0})),!R&&M?s.createElement("span",{className:"".concat(r,"-selection-item"),title:_,style:P?{visibility:"hidden"}:void 0},M.label):null,F)},TM=function(t,n){var r=s.useRef(null),o=s.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,m=t.onSearch,v=t.onSearchSubmit,g=t.onToggleOpen,S=t.onInputKeyDown,b=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(P){r.current.focus(P)},blur:function(){r.current.blur()}}});var h=ew(0),p=J(h,2),y=p[0],C=p[1],x=function(P){var _=P.which;(_===ge.UP||_===ge.DOWN)&&P.preventDefault(),S&&S(P),_===ge.ENTER&&l==="tags"&&!o.current&&!a&&(v==null||v(P.target.value)),dM(_)&&g(!0)},w=function(){C(!0)},$=s.useRef(null),I=function(P){m(P,!0,o.current)!==!1&&g(!0)},E=function(){o.current=!0},O=function(P){o.current=!1,l!=="combobox"&&I(P.target.value)},T=function(P){var _=P.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var F=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(F,$.current)}$.current=null,I(_)},j=function(P){var _=P.clipboardData,F=_==null?void 0:_.getData("text");$.current=F||""},z=function(P){var _=P.target;if(_!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(P){var _=y();P.target!==r.current&&!_&&!(l==="combobox"&&d)&&P.preventDefault(),(l!=="combobox"&&(!c||!_)||!a)&&(a&&f!==!1&&m("",!0,!1),g())},k={inputRef:r,onInputKeyDown:x,onInputMouseDown:w,onInputChange:T,onInputPaste:j,onInputCompositionStart:E,onInputCompositionEnd:O},M=l==="multiple"||l==="tags"?s.createElement(NM,he({},t,k)):s.createElement(MM,he({},t,k));return s.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:z,onMouseDown:R},M)},zM=s.forwardRef(TM);function _M(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],S=n.points[1],b=g[0],h=g[1],p=S[0],y=S[1];b===p||!["t","b"].includes(b)?v.top=f:b==="t"?v.top=0:v.bottom=0,h===y||!["l","r"].includes(h)?v.left=u:h==="l"?v.left=0:v.right=0}return s.createElement("div",{ref:m,className:Z("".concat(t,"-arrow"),a),style:v},l)}function jM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(xi,he({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),l)})}):null}var kM=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),LM=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,g=e.arrowPos,S=e.align,b=e.motion,h=e.maskMotion,p=e.forceRender,y=e.getPopupContainer,C=e.autoDestroy,x=e.portal,w=e.zIndex,$=e.onMouseEnter,I=e.onMouseLeave,E=e.onPointerEnter,O=e.ready,T=e.offsetX,j=e.offsetY,z=e.offsetR,R=e.offsetB,k=e.onAlign,M=e.onPrepare,N=e.stretch,P=e.targetWidth,_=e.targetHeight,F=typeof n=="function"?n():n,D=c||u,B=(y==null?void 0:y.length)>0,V=s.useState(!y||!B),q=J(V,2),H=q[0],X=q[1];if(Nt(function(){!H&&B&&a&&X(!0)},[H,B,a]),!H)return null;var K="auto",ne={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(O||!c){var oe,Y=S.points,W=S.dynamicInset||((oe=S._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ee=W&&Y[0][1]==="r",te=W&&Y[0][0]==="b";ee?(ne.right=z,ne.left=K):(ne.left=T,ne.right=K),te?(ne.bottom=R,ne.top=K):(ne.top=j,ne.bottom=K)}var U={};return N&&(N.includes("height")&&_?U.height=_:N.includes("minHeight")&&_&&(U.minHeight=_),N.includes("width")&&P?U.width=P:N.includes("minWidth")&&P&&(U.minWidth=P)),c||(U.pointerEvents="none"),s.createElement(x,{open:p||D,getContainer:y&&function(){return y(a)},autoDestroy:C},s.createElement(jM,{prefixCls:o,open:c,zIndex:w,mask:m,motion:h}),s.createElement(lo,{onResize:k,disabled:!c},function(ae){return s.createElement(xi,he({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:M,onEnterPrepare:M,visible:c,onVisibleChanged:function(me){var le;b==null||(le=b.onVisibleChanged)===null||le===void 0||le.call(b,me),l(me)}}),function(re,me){var le=re.className,fe=re.style,ue=Z(o,le,r);return s.createElement("div",{ref:Pr(ae,t,me),className:ue,style:A(A(A(A({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},ne),U),fe),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:$,onMouseLeave:I,onPointerEnter:E,onClick:f},v&&s.createElement(_M,{prefixCls:o,arrow:v,arrowPos:g,align:S}),s.createElement(kM,{cache:!c&&!d},F))})}))}),DM=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=io(n),i=s.useCallback(function(l){fs(t,r?r(l):l)},[r]),a=Ja(i,n.ref);return o?s.cloneElement(n,{ref:a}):n}),ly=s.createContext(null);function sy(e){return e?Array.isArray(e)?e:[e]:[]}function FM(e,t,n,r){return s.useMemo(function(){var o=sy(n??t),i=sy(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function AM(){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 BM(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function yl(e){return Is(parseFloat(e),0)}function uy(e,t){var n=A({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Bs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,g=r.offsetWidth,S=r.clientWidth,b=yl(l),h=yl(c),p=yl(u),y=yl(d),C=Is(Math.round(f.width/g*1e3)/1e3),x=Is(Math.round(f.height/m*1e3)/1e3),w=(g-S-p-y)*C,$=(m-v-b-h)*x,I=b*x,E=h*x,O=p*C,T=y*C,j=0,z=0;if(i==="clip"){var R=yl(a);j=R*C,z=R*x}var k=f.x+O-j,M=f.y+I-z,N=k+f.width+2*j-O-T-w,P=M+f.height+2*z-I-E-$;n.left=Math.max(n.left,k),n.top=Math.max(n.top,M),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,P)}}),n}function dy(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 fy(e,t){var n=t||[],r=J(n,2),o=r[0],i=r[1];return[dy(e.width,o),dy(e.height,i)]}function my(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ia(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function Uo(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 HM(e,t,n,r,o,i,a){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=J(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Jv(t):[]},[t]),v=s.useRef({}),g=function(){v.current={}};e||g();var S=At(function(){if(t&&n&&e){let Ye=function(on,an){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue,mr=F.x+on,vr=F.y+an,Kr=mr+oe,$o=vr+ne,wi=Math.max(mr,Vt.left),Xd=Math.max(vr,Vt.top),Ve=Math.min(Kr,Vt.right),ft=Math.min($o,Vt.bottom);return Math.max(0,(Ve-wi)*(ft-Xd))},St=function(){Te=F.y+He,qe=Te+ne,De=F.x+Je,Xe=De+oe};var An=Ye,Ko=St,p,y,C=t,x=C.ownerDocument,w=Bs(C),$=w.getComputedStyle(C),I=$.width,E=$.height,O=$.position,T=C.style.left,j=C.style.top,z=C.style.right,R=C.style.bottom,k=C.style.overflow,M=A(A({},o[r]),i),N=x.createElement("div");(p=C.parentElement)===null||p===void 0||p.appendChild(N),N.style.left="".concat(C.offsetLeft,"px"),N.style.top="".concat(C.offsetTop,"px"),N.style.position=O,N.style.height="".concat(C.offsetHeight,"px"),N.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var _=n.getBoundingClientRect();P={x:_.x,y:_.y,width:_.width,height:_.height}}var F=C.getBoundingClientRect(),D=x.documentElement,B=D.clientWidth,V=D.clientHeight,q=D.scrollWidth,H=D.scrollHeight,X=D.scrollTop,K=D.scrollLeft,ne=F.height,oe=F.width,Y=P.height,W=P.width,ee={left:0,top:0,right:B,bottom:V},te={left:-K,top:-X,right:q-K,bottom:H-X},U=M.htmlRegion,ae="visible",re="visibleFirst";U!=="scroll"&&U!==re&&(U=ae);var me=U===re,le=uy(te,m),fe=uy(ee,m),ue=U===ae?fe:le,pe=me?fe:ue;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Oe=C.getBoundingClientRect();C.style.left=T,C.style.top=j,C.style.right=z,C.style.bottom=R,C.style.overflow=k,(y=C.parentElement)===null||y===void 0||y.removeChild(N);var se=Is(Math.round(oe/parseFloat(I)*1e3)/1e3),ce=Is(Math.round(ne/parseFloat(E)*1e3)/1e3);if(se===0||ce===0||ds(n)&&!Ds(n))return;var ye=M.offset,be=M.targetOffset,Ke=fy(F,ye),je=J(Ke,2),We=je[0],Se=je[1],Be=fy(P,be),Pe=J(Be,2),Re=Pe[0],Ie=Pe[1];P.x-=Re,P.y-=Ie;var Me=M.points||[],ke=J(Me,2),nt=ke[0],Ue=ke[1],$t=my(Ue),at=my(nt),Ot=ia(P,$t),lt=ia(F,at),Rt=A({},M),Je=Ot.x-lt.x+We,He=Ot.y-lt.y+Se,Qe=Ye(Je,He),Le=Ye(Je,He,fe),$e=ia(P,["t","l"]),Ge=ia(F,["t","l"]),et=ia(P,["b","r"]),Ce=ia(F,["b","r"]),we=M.overflow||{},xe=we.adjustX,Ne=we.adjustY,dt=we.shiftX,mt=we.shiftY,Pt=function(an){return typeof an=="boolean"?an:an>=0},Te,qe,De,Xe;St();var bt=Pt(Ne),gt=at[0]===$t[0];if(bt&&at[0]==="t"&&(qe>pe.bottom||v.current.bt)){var _t=He;gt?_t-=ne-Y:_t=$e.y-Ce.y-Se;var Ct=Ye(Je,_t),ze=Ye(Je,_t,fe);Ct>Qe||Ct===Qe&&(!me||ze>=Le)?(v.current.bt=!0,He=_t,Se=-Se,Rt.points=[Uo(at,0),Uo($t,0)]):v.current.bt=!1}if(bt&&at[0]==="b"&&(TeQe||tt===Qe&&(!me||yt>=Le)?(v.current.tb=!0,He=_e,Se=-Se,Rt.points=[Uo(at,0),Uo($t,0)]):v.current.tb=!1}var Ht=Pt(xe),en=at[1]===$t[1];if(Ht&&at[1]==="l"&&(Xe>pe.right||v.current.rl)){var Ut=Je;en?Ut-=oe-W:Ut=$e.x-Ce.x-We;var tn=Ye(Ut,He),Cn=Ye(Ut,He,fe);tn>Qe||tn===Qe&&(!me||Cn>=Le)?(v.current.rl=!0,Je=Ut,We=-We,Rt.points=[Uo(at,1),Uo($t,1)]):v.current.rl=!1}if(Ht&&at[1]==="r"&&(DeQe||Dn===Qe&&(!me||Ze>=Le)?(v.current.lr=!0,Je=nn,We=-We,Rt.points=[Uo(at,1),Uo($t,1)]):v.current.lr=!1}St();var rt=dt===!0?0:dt;typeof rt=="number"&&(Defe.right&&(Je-=Xe-fe.right-We,P.x>fe.right-rt&&(Je+=P.x-fe.right+rt)));var ht=mt===!0?0:mt;typeof ht=="number"&&(Tefe.bottom&&(He-=qe-fe.bottom-Se,P.y>fe.bottom-ht&&(He+=P.y-fe.bottom+ht)));var dn=F.x+Je,Fn=dn+oe,Xn=F.y+He,or=Xn+ne,Vr=P.x,fr=Vr+W,In=P.y,pt=In+Y,st=Math.max(dn,Vr),vt=Math.min(Fn,fr),ct=(st+vt)/2,ut=ct-dn,xt=Math.max(Xn,In),kt=Math.min(or,pt),rn=(xt+kt)/2,On=rn-Xn;a==null||a(t,Rt);var Rn=Oe.right-F.x-(Je+F.width),pn=Oe.bottom-F.y-(He+F.height);se===1&&(Je=Math.round(Je),Rn=Math.round(Rn)),ce===1&&(He=Math.round(He),pn=Math.round(pn));var Yn={ready:!0,offsetX:Je/se,offsetY:He/ce,offsetR:Rn/se,offsetB:pn/ce,arrowX:ut/se,arrowY:On/ce,scaleX:se,scaleY:ce,align:Rt};d(Yn)}}),b=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&S()})},h=function(){d(function(y){return A(A({},y),{},{ready:!1})})};return Nt(h,[r]),Nt(function(){e||h()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,b]}function VM(e,t,n,r,o){Nt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,i=t,a=n,l=Jv(i),c=Jv(a),u=Bs(a),d=new Set([u].concat(de(l),de(c)));return d.forEach(function(v){v.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function KM(e,t,n,r,o,i,a,l){var c=s.useRef(e);c.current=e,s.useEffect(function(){if(t&&r&&(!o||i)){var u=function(v){var g;c.current&&!a(((g=v.composedPath)===null||g===void 0||(g=g.call(v))===null||g===void 0?void 0:g[0])||v.target)&&l(!1)},d=Bs(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=Pu(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,i])}var WM=["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 UM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z2,t=s.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,S=n.mouseEnterDelay,b=n.mouseLeaveDelay,h=b===void 0?.1:b,p=n.focusDelay,y=n.blurDelay,C=n.mask,x=n.maskClosable,w=x===void 0?!0:x,$=n.getPopupContainer,I=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,T=n.popup,j=n.popupClassName,z=n.popupStyle,R=n.popupPlacement,k=n.builtinPlacements,M=k===void 0?{}:k,N=n.popupAlign,P=n.zIndex,_=n.stretch,F=n.getPopupClassNameFromAlign,D=n.fresh,B=n.alignPoint,V=n.onPopupClick,q=n.onPopupAlign,H=n.arrow,X=n.popupMotion,K=n.maskMotion,ne=n.popupTransitionName,oe=n.popupAnimation,Y=n.maskTransitionName,W=n.maskAnimation,ee=n.className,te=n.getTriggerDOMNode,U=ot(n,WM),ae=E||O||!1,re=s.useState(!1),me=J(re,2),le=me[0],fe=me[1];Nt(function(){fe(Z2())},[]);var ue=s.useRef({}),pe=s.useContext(ly),Oe=s.useMemo(function(){return{registerSubPopup:function(ft,ln){ue.current[ft]=ln,pe==null||pe.registerSubPopup(ft,ln)}}},[pe]),se=h6(),ce=s.useState(null),ye=J(ce,2),be=ye[0],Ke=ye[1],je=s.useRef(null),We=At(function(Ve){je.current=Ve,ds(Ve)&&be!==Ve&&Ke(Ve),pe==null||pe.registerSubPopup(se,Ve)}),Se=s.useState(null),Be=J(Se,2),Pe=Be[0],Re=Be[1],Ie=s.useRef(null),Me=At(function(Ve){ds(Ve)&&Pe!==Ve&&(Re(Ve),Ie.current=Ve)}),ke=s.Children.only(a),nt=(ke==null?void 0:ke.props)||{},Ue={},$t=At(function(Ve){var ft,ln,xn=Pe;return(xn==null?void 0:xn.contains(Ve))||((ft=Pu(xn))===null||ft===void 0?void 0:ft.host)===Ve||Ve===xn||(be==null?void 0:be.contains(Ve))||((ln=Pu(be))===null||ln===void 0?void 0:ln.host)===Ve||Ve===be||Object.values(ue.current).some(function(sn){return(sn==null?void 0:sn.contains(Ve))||Ve===sn})}),at=cy(i,X,oe,ne),Ot=cy(i,K,W,Y),lt=s.useState(m||!1),Rt=J(lt,2),Je=Rt[0],He=Rt[1],Qe=f??Je,Le=At(function(Ve){f===void 0&&He(Ve)});Nt(function(){He(f||!1)},[f]);var $e=s.useRef(Qe);$e.current=Qe;var Ge=s.useRef([]);Ge.current=[];var et=At(function(Ve){var ft;Le(Ve),((ft=Ge.current[Ge.current.length-1])!==null&&ft!==void 0?ft:Qe)!==Ve&&(Ge.current.push(Ve),v==null||v(Ve))}),Ce=s.useRef(),we=function(){clearTimeout(Ce.current)},xe=function(ft){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;we(),ln===0?et(ft):Ce.current=setTimeout(function(){et(ft)},ln*1e3)};s.useEffect(function(){return we},[]);var Ne=s.useState(!1),dt=J(Ne,2),mt=dt[0],Pt=dt[1];Nt(function(Ve){(!Ve||Qe)&&Pt(!0)},[Qe]);var Te=s.useState(null),qe=J(Te,2),De=qe[0],Xe=qe[1],bt=s.useState([0,0]),gt=J(bt,2),_t=gt[0],Ct=gt[1],ze=function(ft){Ct([ft.clientX,ft.clientY])},_e=HM(Qe,be,B?_t:Pe,R,M,N,q),tt=J(_e,11),yt=tt[0],Ht=tt[1],en=tt[2],Ut=tt[3],tn=tt[4],Cn=tt[5],nn=tt[6],Dn=tt[7],Ze=tt[8],rt=tt[9],ht=tt[10],dn=FM(le,c,u,d),Fn=J(dn,2),Xn=Fn[0],or=Fn[1],Vr=Xn.has("click"),fr=or.has("click")||or.has("contextMenu"),In=At(function(){mt||ht()}),pt=function(){$e.current&&B&&fr&&xe(!1)};VM(Qe,Pe,be,In,pt),Nt(function(){In()},[_t,R]),Nt(function(){Qe&&!(M!=null&&M[R])&&In()},[JSON.stringify(N)]);var st=s.useMemo(function(){var Ve=BM(M,i,rt,B);return Z(Ve,F==null?void 0:F(rt))},[rt,F,M,i,B]);s.useImperativeHandle(r,function(){return{nativeElement:Ie.current,popupElement:je.current,forceAlign:In}});var vt=s.useState(0),ct=J(vt,2),ut=ct[0],xt=ct[1],kt=s.useState(0),rn=J(kt,2),On=rn[0],Rn=rn[1],pn=function(){if(_&&Pe){var ft=Pe.getBoundingClientRect();xt(ft.width),Rn(ft.height)}},Yn=function(){pn(),In()},An=function(ft){Pt(!1),ht(),g==null||g(ft)},Ko=function(){return new Promise(function(ft){pn(),Xe(function(){return ft})})};Nt(function(){De&&(ht(),De(),Xe(null))},[De]);function Ye(Ve,ft,ln,xn){Ue[Ve]=function(sn){var Us;xn==null||xn(sn),xe(ft,ln);for(var Yd=arguments.length,Nh=new Array(Yd>1?Yd-1:0),Gs=1;Gs1?ln-1:0),sn=1;sn1?ln-1:0),sn=1;sn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=lw(n,!1),a=i.label,l=i.value,c=i.options,u=i.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var g=v[l];o.push({key:vy(v,o.length),groupOption:m,data:v,label:v[a],value:g})}else{var S=v[u];S===void 0&&r&&(S=v.label),o.push({key:vy(v,o.length),group:!0,data:v,label:S}),d(v[c],!0)}})}return d(e,!1),o}function tp(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Xt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ZM=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(c,u){var d=Mx(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(g,S){return[].concat(de(g),de(l(S,m)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},Xg=s.createContext(null);function JM(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(Fe(i))?i:a}).join(", ")),n.length>r?", ...":null)}var eT=["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"],tT=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],np=function(t){return t==="tags"||t==="multiple"},nT=s.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,S=e.onClear,b=e.mode,h=e.disabled,p=e.loading,y=e.getInputElement,C=e.getRawInputElement,x=e.open,w=e.defaultOpen,$=e.onDropdownVisibleChange,I=e.activeValue,E=e.onActiveValueChange,O=e.activeDescendantId,T=e.searchValue,j=e.autoClearSearchValue,z=e.onSearch,R=e.onSearchSplit,k=e.tokenSeparators,M=e.allowClear,N=e.suffixIcon,P=e.clearIcon,_=e.OptionList,F=e.animation,D=e.transitionName,B=e.dropdownStyle,V=e.dropdownClassName,q=e.dropdownMatchSelectWidth,H=e.dropdownRender,X=e.dropdownAlign,K=e.placement,ne=e.builtinPlacements,oe=e.getPopupContainer,Y=e.showAction,W=Y===void 0?[]:Y,ee=e.onFocus,te=e.onBlur,U=e.onKeyUp,ae=e.onKeyDown,re=e.onMouseDown,me=ot(e,eT),le=np(b),fe=(a!==void 0?a:le)||b==="combobox",ue=A({},me);tT.forEach(function(pt){delete ue[pt]}),u==null||u.forEach(function(pt){delete ue[pt]});var pe=s.useState(!1),Oe=J(pe,2),se=Oe[0],ce=Oe[1];s.useEffect(function(){ce(Z2())},[]);var ye=s.useRef(null),be=s.useRef(null),Ke=s.useRef(null),je=s.useRef(null),We=s.useRef(null),Se=s.useRef(!1),Be=cM(),Pe=J(Be,3),Re=Pe[0],Ie=Pe[1],Me=Pe[2];s.useImperativeHandle(t,function(){var pt,st;return{focus:(pt=je.current)===null||pt===void 0?void 0:pt.focus,blur:(st=je.current)===null||st===void 0?void 0:st.blur,scrollTo:function(ct){var ut;return(ut=We.current)===null||ut===void 0?void 0:ut.scrollTo(ct)},nativeElement:ye.current||be.current}});var ke=s.useMemo(function(){var pt;if(b!=="combobox")return T;var st=(pt=d[0])===null||pt===void 0?void 0:pt.value;return typeof st=="string"||typeof st=="number"?String(st):""},[T,b,d]),nt=b==="combobox"&&typeof y=="function"&&y()||null,Ue=typeof C=="function"&&C(),$t=Ja(be,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),at=s.useState(!1),Ot=J(at,2),lt=Ot[0],Rt=Ot[1];Nt(function(){Rt(!0)},[]);var Je=Mn(!1,{defaultValue:w,value:x}),He=J(Je,2),Qe=He[0],Le=He[1],$e=lt?Qe:!1,Ge=!g&&m;(h||Ge&&$e&&b==="combobox")&&($e=!1);var et=Ge?!1:$e,Ce=s.useCallback(function(pt){var st=pt!==void 0?pt:!$e;h||(Le(st),$e!==st&&($==null||$(st)))},[h,$e,Le,$]),we=s.useMemo(function(){return(k||[]).some(function(pt){return[` +`,`\r +`].includes(pt)})},[k]),xe=s.useContext(Xg)||{},Ne=xe.maxCount,dt=xe.rawValues,mt=function(st,vt,ct){if(!(le&&ep(Ne)&&(dt==null?void 0:dt.size)>=Ne)){var ut=!0,xt=st;E==null||E(null);var kt=ZM(st,k,ep(Ne)?Ne-dt.size:void 0),rn=ct?null:kt;return b!=="combobox"&&rn&&(xt="",R==null||R(rn),Ce(!1),ut=!1),z&&ke!==xt&&z(xt,{source:vt?"typing":"effect"}),ut}},Pt=function(st){!st||!st.trim()||z(st,{source:"submit"})};s.useEffect(function(){!$e&&!le&&b!=="combobox"&&mt("",!1,!1)},[$e]),s.useEffect(function(){Qe&&h&&Le(!1),h&&!Se.current&&Ie(!1)},[h]);var Te=ew(),qe=J(Te,2),De=qe[0],Xe=qe[1],bt=s.useRef(!1),gt=function(st){var vt=De(),ct=st.key,ut=ct==="Enter";if(ut&&(b!=="combobox"&&st.preventDefault(),$e||Ce(!0)),Xe(!!ke),ct==="Backspace"&&!vt&&le&&!ke&&d.length){for(var xt=de(d),kt=null,rn=xt.length-1;rn>=0;rn-=1){var On=xt[rn];if(!On.disabled){xt.splice(rn,1),kt=On;break}}kt&&f(xt,{type:"remove",values:[kt]})}for(var Rn=arguments.length,pn=new Array(Rn>1?Rn-1:0),Yn=1;Yn1?vt-1:0),ut=1;ut1?kt-1:0),On=1;On"u"?"undefined":Fe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const cw=function(e,t,n,r){var o=s.useRef(!1),i=s.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var l=s.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function lT(e,t,n,r,o,i,a){var l=s.useRef(0),c=s.useRef(null),u=s.useRef(null),d=s.useRef(!1),f=cw(t,n,r,o);function m(p,y){Tt.cancel(c.current),l.current+=y,u.current=y,!f(!1,y)&&(py||p.preventDefault(),c.current=Tt(function(){var C=d.current?10:1;a(l.current*C),l.current=0}))}function v(p,y){a(y,!0),py||p.preventDefault()}var g=s.useRef(null),S=s.useRef(null);function b(p){if(e){Tt.cancel(S.current),S.current=Tt(function(){g.current=null},2);var y=p.deltaX,C=p.deltaY,x=p.shiftKey,w=y,$=C;(g.current==="sx"||!g.current&&x&&C&&!y)&&(w=C,$=0,g.current="sx");var I=Math.abs(w),E=Math.abs($);g.current===null&&(g.current=i&&I>E?"x":"y"),g.current==="y"?m(p,$):v(p,w)}}function h(p){e&&(d.current=p.detail===u.current)}return[b,h]}function sT(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=J(o,2),a=i[0],l=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=a.get(d),v=a.get(f);if(m===void 0||v===void 0)for(var g=e.length,S=l.length;S0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(b,h){if(b&&b.offsetParent){var p=Fl(b),y=p.offsetHeight;c.current.get(h)!==y&&c.current.set(h,p.offsetHeight)}}),a(function(b){return b+1})};v?g():u.current=Tt(g)}function m(v,g){var S=e(v);l.current.get(S),g?(l.current.set(S,g),f()):l.current.delete(S)}return s.useEffect(function(){return d},[]),[m,f,c.current,i]}var gy=14/15;function dT(e,t,n){var r=s.useRef(!1),o=s.useRef(0),i=s.useRef(0),a=s.useRef(null),l=s.useRef(null),c,u=function(v){if(r.current){var g=Math.ceil(v.touches[0].pageX),S=Math.ceil(v.touches[0].pageY),b=o.current-g,h=i.current-S,p=Math.abs(b)>Math.abs(h);p?o.current=g:i.current=S,n(p,p?b:h)&&v.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){p?b*=gy:h*=gy;var y=Math.floor(p?b:h);(!n(p,y,!0)||Math.abs(y)<=.1)&&clearInterval(l.current)},16)}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),i.current=Math.ceil(v.touches[0].pageY),a.current=v.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};c=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",d))},Nt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}var fT=10;function mT(e,t,n,r,o,i,a,l){var c=s.useRef(),u=s.useState(null),d=J(u,2),f=d[0],m=d[1];return Nt(function(){if(f&&f.times=0;R-=1){var k=o(t[R]),M=n.get(k);if(M===void 0){p=!0;break}if(z-=M,z<=0)break}switch(x){case"top":C=$-b;break;case"bottom":C=I-h+b;break;default:{var N=e.current.scrollTop,P=N+h;$P&&(y="bottom")}}C!==null&&a(C),C!==f.lastTop&&(p=!0)}p&&m(A(A({},f),{},{times:f.times+1,targetAlign:y,lastTop:C}))}},[f,e.current]),function(v){if(v==null){l();return}if(Tt.cancel(c.current),typeof v=="number")a(v);else if(v&&Fe(v)==="object"){var g,S=v.align;"index"in v?g=v.index:g=t.findIndex(function(p){return o(p)===v.key});var b=v.offset,h=b===void 0?0:b;m({times:0,index:g,offset:h,originAlign:S})}}}function hy(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var yy=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,g=s.useState(!1),S=J(g,2),b=S[0],h=S[1],p=s.useState(null),y=J(p,2),C=y[0],x=y[1],w=s.useState(null),$=J(w,2),I=$[0],E=$[1],O=!r,T=s.useRef(),j=s.useRef(),z=s.useState(!1),R=J(z,2),k=R[0],M=R[1],N=s.useRef(),P=function(){clearTimeout(N.current),M(!0),N.current=setTimeout(function(){M(!1)},3e3)},_=i-f||0,F=f-d||0,D=s.useMemo(function(){if(o===0||_===0)return 0;var Y=o/_;return Y*F},[o,_,F]),B=function(W){W.stopPropagation(),W.preventDefault()},V=s.useRef({top:D,dragging:b,pageY:C,startTop:I});V.current={top:D,dragging:b,pageY:C,startTop:I};var q=function(W){h(!0),x(hy(W,u)),E(V.current.top),a(),W.stopPropagation(),W.preventDefault()};s.useEffect(function(){var Y=function(U){U.preventDefault()},W=T.current,ee=j.current;return W.addEventListener("touchstart",Y,{passive:!1}),ee.addEventListener("touchstart",q,{passive:!1}),function(){W.removeEventListener("touchstart",Y),ee.removeEventListener("touchstart",q)}},[]);var H=s.useRef();H.current=_;var X=s.useRef();X.current=F,s.useEffect(function(){if(b){var Y,W=function(U){var ae=V.current,re=ae.dragging,me=ae.pageY,le=ae.startTop;Tt.cancel(Y);var fe=T.current.getBoundingClientRect(),ue=f/(u?fe.width:fe.height);if(re){var pe=(hy(U,u)-me)*ue,Oe=le;!O&&u?Oe-=pe:Oe+=pe;var se=H.current,ce=X.current,ye=ce?Oe/ce:0,be=Math.ceil(ye*se);be=Math.max(be,0),be=Math.min(be,se),Y=Tt(function(){c(be,u)})}},ee=function(){h(!1),l()};return window.addEventListener("mousemove",W,{passive:!0}),window.addEventListener("touchmove",W,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",W),window.removeEventListener("touchmove",W),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Tt.cancel(Y)}}},[b]),s.useEffect(function(){return P(),function(){clearTimeout(N.current)}},[o]),s.useImperativeHandle(t,function(){return{delayHidden:P}});var K="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:k?null:"hidden"},oe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(ne.height=8,ne.left=0,ne.right=0,ne.bottom=0,oe.height="100%",oe.width=d,O?oe.left=D:oe.right=D):(ne.width=8,ne.top=0,ne.bottom=0,O?ne.right=0:ne.left=0,oe.width="100%",oe.height=d,oe.top=D),s.createElement("div",{ref:T,className:Z(K,L(L(L({},"".concat(K,"-horizontal"),u),"".concat(K,"-vertical"),!u),"".concat(K,"-visible"),k)),style:A(A({},ne),m),onMouseDown:B,onMouseMove:P},s.createElement("div",{ref:j,className:Z("".concat(K,"-thumb"),L({},"".concat(K,"-thumb-moving"),b)),style:A(A({},oe),v),onMouseDown:q}))}),vT=20;function by(){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,vT),Math.floor(n)}var pT=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],gT=[],hT={overflowY:"auto",overflowAnchor:"none"};function yT(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,g=e.direction,S=e.scrollWidth,b=e.component,h=b===void 0?"div":b,p=e.onScroll,y=e.onVirtualScroll,C=e.onVisibleChange,x=e.innerProps,w=e.extraRender,$=e.styles,I=ot(e,pT),E=s.useCallback(function(ze){return typeof m=="function"?m(ze):ze==null?void 0:ze[m]},[m]),O=uT(E),T=J(O,4),j=T[0],z=T[1],R=T[2],k=T[3],M=!!(v!==!1&&i&&a),N=s.useMemo(function(){return Object.values(R.maps).reduce(function(ze,_e){return ze+_e},0)},[R.id,R.maps]),P=M&&d&&(Math.max(a*d.length,N)>i||!!S),_=g==="rtl",F=Z(r,L({},"".concat(r,"-rtl"),_),o),D=d||gT,B=s.useRef(),V=s.useRef(),q=s.useRef(),H=s.useState(0),X=J(H,2),K=X[0],ne=X[1],oe=s.useState(0),Y=J(oe,2),W=Y[0],ee=Y[1],te=s.useState(!1),U=J(te,2),ae=U[0],re=U[1],me=function(){re(!0)},le=function(){re(!1)},fe={getKey:E};function ue(ze){ne(function(_e){var tt;typeof ze=="function"?tt=ze(_e):tt=ze;var yt=lt(tt);return B.current.scrollTop=yt,yt})}var pe=s.useRef({start:0,end:D.length}),Oe=s.useRef(),se=aT(D,E),ce=J(se,1),ye=ce[0];Oe.current=ye;var be=s.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!P){var ze;return{scrollHeight:((ze=V.current)===null||ze===void 0?void 0:ze.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var _e=0,tt,yt,Ht,en=D.length,Ut=0;Ut=K&&tt===void 0&&(tt=Ut,yt=_e),Dn>K+i&&Ht===void 0&&(Ht=Ut),_e=Dn}return tt===void 0&&(tt=0,yt=0,Ht=Math.ceil(i/a)),Ht===void 0&&(Ht=D.length-1),Ht=Math.min(Ht+1,D.length-1),{scrollHeight:_e,start:tt,end:Ht,offset:yt}},[P,M,K,D,k,i]),Ke=be.scrollHeight,je=be.start,We=be.end,Se=be.offset;pe.current.start=je,pe.current.end=We;var Be=s.useState({width:0,height:i}),Pe=J(Be,2),Re=Pe[0],Ie=Pe[1],Me=function(_e){Ie({width:_e.offsetWidth,height:_e.offsetHeight})},ke=s.useRef(),nt=s.useRef(),Ue=s.useMemo(function(){return by(Re.width,S)},[Re.width,S]),$t=s.useMemo(function(){return by(Re.height,Ke)},[Re.height,Ke]),at=Ke-i,Ot=s.useRef(at);Ot.current=at;function lt(ze){var _e=ze;return Number.isNaN(Ot.current)||(_e=Math.min(_e,Ot.current)),_e=Math.max(_e,0),_e}var Rt=K<=0,Je=K>=at,He=W<=0,Qe=W>=S,Le=cw(Rt,Je,He,Qe),$e=function(){return{x:_?-W:W,y:K}},Ge=s.useRef($e()),et=At(function(ze){if(y){var _e=A(A({},$e()),ze);(Ge.current.x!==_e.x||Ge.current.y!==_e.y)&&(y(_e),Ge.current=_e)}});function Ce(ze,_e){var tt=ze;_e?(bo.flushSync(function(){ee(tt)}),et()):ue(tt)}function we(ze){var _e=ze.currentTarget.scrollTop;_e!==K&&ue(_e),p==null||p(ze),et()}var xe=function(_e){var tt=_e,yt=S?S-Re.width:0;return tt=Math.max(tt,0),tt=Math.min(tt,yt),tt},Ne=At(function(ze,_e){_e?(bo.flushSync(function(){ee(function(tt){var yt=tt+(_?-ze:ze);return xe(yt)})}),et()):ue(function(tt){var yt=tt+ze;return yt})}),dt=lT(M,Rt,Je,He,Qe,!!S,Ne),mt=J(dt,2),Pt=mt[0],Te=mt[1];dT(M,B,function(ze,_e,tt){return Le(ze,_e,tt)?!1:(Pt({preventDefault:function(){},deltaX:ze?_e:0,deltaY:ze?0:_e}),!0)}),Nt(function(){function ze(tt){M&&tt.preventDefault()}var _e=B.current;return _e.addEventListener("wheel",Pt,{passive:!1}),_e.addEventListener("DOMMouseScroll",Te,{passive:!0}),_e.addEventListener("MozMousePixelScroll",ze,{passive:!1}),function(){_e.removeEventListener("wheel",Pt),_e.removeEventListener("DOMMouseScroll",Te),_e.removeEventListener("MozMousePixelScroll",ze)}},[M]),Nt(function(){if(S){var ze=xe(W);ee(ze),et({x:ze})}},[Re.width,S]);var qe=function(){var _e,tt;(_e=ke.current)===null||_e===void 0||_e.delayHidden(),(tt=nt.current)===null||tt===void 0||tt.delayHidden()},De=mT(B,D,R,a,E,function(){return z(!0)},ue,qe);s.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:$e,scrollTo:function(_e){function tt(yt){return yt&&Fe(yt)==="object"&&("left"in yt||"top"in yt)}tt(_e)?(_e.left!==void 0&&ee(xe(_e.left)),De(_e.top)):De(_e)}}}),Nt(function(){if(C){var ze=D.slice(je,We+1);C(ze,D)}},[je,We,D]);var Xe=sT(D,E,R,a),bt=w==null?void 0:w({start:je,end:We,virtual:P,offsetX:W,offsetY:Se,rtl:_,getSize:Xe}),gt=oT(D,je,We,S,W,j,f,fe),_t=null;i&&(_t=A(L({},c?"height":"maxHeight",i),hT),M&&(_t.overflowY="hidden",S&&(_t.overflowX="hidden"),ae&&(_t.pointerEvents="none")));var Ct={};return _&&(Ct.dir="rtl"),s.createElement("div",he({ref:q,style:A(A({},u),{},{position:"relative"}),className:F},Ct,I),s.createElement(lo,{onResize:Me},s.createElement(h,{className:"".concat(r,"-holder"),style:_t,ref:B,onScroll:we,onMouseEnter:qe},s.createElement(sw,{prefixCls:r,height:Ke,offsetX:W,offsetY:Se,scrollWidth:S,onInnerResize:z,ref:V,innerProps:x,rtl:_,extra:bt},gt))),P&&Ke>i&&s.createElement(yy,{ref:ke,prefixCls:r,scrollOffset:K,scrollRange:Ke,rtl:_,onScroll:Ce,onStartMove:me,onStopMove:le,spinSize:$t,containerSize:Re.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),P&&S>Re.width&&s.createElement(yy,{ref:nt,prefixCls:r,scrollOffset:W,scrollRange:S,rtl:_,onScroll:Ce,onStartMove:me,onStopMove:le,spinSize:Ue,containerSize:Re.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var jd=s.forwardRef(yT);jd.displayName="List";function bT(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ST=["disabled","title","children","style","className"];function Sy(e){return typeof e=="string"||typeof e=="number"}var CT=function(t,n){var r=sM(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=s.useContext(Xg),g=v.maxCount,S=v.flattenOptions,b=v.onActiveValue,h=v.defaultActiveFirstOption,p=v.onSelect,y=v.menuItemSelectedIcon,C=v.rawValues,x=v.fieldNames,w=v.virtual,$=v.direction,I=v.listHeight,E=v.listItemHeight,O=v.optionRender,T="".concat(o,"-item"),j=Yi(function(){return S},[a,S],function(Y,W){return W[0]&&Y[1]!==W[1]}),z=s.useRef(null),R=s.useMemo(function(){return l&&ep(g)&&(C==null?void 0:C.size)>=g},[l,g,C==null?void 0:C.size]),k=function(W){W.preventDefault()},M=function(W){var ee;(ee=z.current)===null||ee===void 0||ee.scrollTo(typeof W=="number"?{index:W}:W)},N=function(W){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=j.length,U=0;U1&&arguments[1]!==void 0?arguments[1]:!1;D(W);var te={source:ee?"keyboard":"mouse"},U=j[W];if(!U){b(null,-1,te);return}b(U.value,W,te)};s.useEffect(function(){B(h!==!1?N(0):-1)},[j.length,u]);var V=s.useCallback(function(Y){return C.has(Y)&&c!=="combobox"},[c,de(C).toString(),C.size]);s.useEffect(function(){var Y=setTimeout(function(){if(!l&&a&&C.size===1){var ee=Array.from(C)[0],te=j.findIndex(function(U){var ae=U.data;return ae.value===ee});te!==-1&&(B(te),M(te))}});if(a){var W;(W=z.current)===null||W===void 0||W.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[a,u]);var q=function(W){W!==void 0&&p(W,{selected:!C.has(W)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(W){var ee=W.which,te=W.ctrlKey;switch(ee){case ge.N:case ge.P:case ge.UP:case ge.DOWN:{var U=0;if(ee===ge.UP?U=-1:ee===ge.DOWN?U=1:bT()&&te&&(ee===ge.N?U=1:ee===ge.P&&(U=-1)),U!==0){var ae=N(F+U,U);M(ae),B(ae,!0)}break}case ge.ENTER:{var re,me=j[F];me&&!(me!=null&&(re=me.data)!==null&&re!==void 0&&re.disabled)&&!R?q(me.value):q(void 0),a&&W.preventDefault();break}case ge.ESC:d(!1),a&&W.stopPropagation()}},onKeyUp:function(){},scrollTo:function(W){M(W)}}}),j.length===0)return s.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(T,"-empty"),onMouseDown:k},f);var H=Object.keys(x).map(function(Y){return x[Y]}),X=function(W){return W.label};function K(Y,W){var ee=Y.group;return{role:ee?"presentation":"option",id:"".concat(i,"_list_").concat(W)}}var ne=function(W){var ee=j[W];if(!ee)return null;var te=ee.data||{},U=te.value,ae=ee.group,re=Br(te,!0),me=X(ee);return ee?s.createElement("div",he({"aria-label":typeof me=="string"&&!ae?me:null},re,{key:W},K(ee,W),{"aria-selected":V(U)}),U):null},oe={role:"listbox",id:"".concat(i,"_list")};return s.createElement(s.Fragment,null,w&&s.createElement("div",he({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ne(F-1),ne(F),ne(F+1)),s.createElement(jd,{itemKey:"key",ref:z,data:j,height:I,itemHeight:E,fullHeight:!1,onMouseDown:k,onScroll:m,virtual:w,direction:$,innerProps:w?null:oe},function(Y,W){var ee=Y.group,te=Y.groupOption,U=Y.data,ae=Y.label,re=Y.value,me=U.key;if(ee){var le,fe=(le=U.title)!==null&&le!==void 0?le:Sy(ae)?ae.toString():void 0;return s.createElement("div",{className:Z(T,"".concat(T,"-group"),U.className),title:fe},ae!==void 0?ae:me)}var ue=U.disabled,pe=U.title;U.children;var Oe=U.style,se=U.className,ce=ot(U,ST),ye=Tn(ce,H),be=V(re),Ke=ue||!be&&R,je="".concat(T,"-option"),We=Z(T,je,se,L(L(L(L({},"".concat(je,"-grouped"),te),"".concat(je,"-active"),F===W&&!Ke),"".concat(je,"-disabled"),Ke),"".concat(je,"-selected"),be)),Se=X(Y),Be=!y||typeof y=="function"||be,Pe=typeof Se=="number"?Se:Se||re,Re=Sy(Pe)?Pe.toString():void 0;return pe!==void 0&&(Re=pe),s.createElement("div",he({},Br(ye),w?{}:K(Y,W),{"aria-selected":be,className:We,title:Re,onMouseMove:function(){F===W||Ke||B(W)},onClick:function(){Ke||q(re)},style:Oe}),s.createElement("div",{className:"".concat(je,"-content")},typeof O=="function"?O(Y,{index:W}):Pe),s.isValidElement(y)||be,Be&&s.createElement(zd,{className:"".concat(T,"-option-state"),customizeIcon:y,customizeIconProps:{value:re,disabled:Ke,isSelected:be}},be?"✓":null))}))},xT=s.forwardRef(CT);const wT=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var i=n.current,a=i.values,l=i.options,c=e.map(function(f){if(f.label===void 0){var m;return A(A({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.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,c},[e,t]),o=s.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function qf(e,t){return iw(e).join("").toUpperCase().includes(t)}const $T=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,g){return o?qf(g[o],d):g[i]?qf(g[a!=="children"?a:"label"],d):qf(g[l],d)},m=u?function(v){return tp(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var g=f(n,m(v));if(g)c.push(v);else{var S=v[i].filter(function(b){return f(n,m(b))});S.length&&c.push(A(A({},v),{},L({},i,S)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var Cy=0,ET=Un();function IT(){var e;return ET?(e=Cy,Cy+=1):e="TEST_OR_SSR",e}function OT(e){var t=s.useState(),n=J(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(IT()))},[]),e||r}var RT=["children","value"],PT=["children"];function NT(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=ot(r,RT);return A({key:n,value:i!==void 0?i:n,children:o},a)}function uw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Er(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,u=ot(l,PT);return t||!i?NT(n):A(A({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:uw(c)})}).filter(function(n){return n})}var MT=function(t,n,r,o,i){return s.useMemo(function(){var a=t,l=!t;l&&(a=uw(n));var c=new Map,u=new Map,d=function(v,g,S){S&&typeof S=="string"&&v.set(g[S],g)},f=function m(v){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S2&&arguments[2]!==void 0?arguments[2]:{},Ne=xe.source,dt=Ne===void 0?"keyboard":Ne;lt(we),a&&r==="combobox"&&Ce!==null&&dt==="keyboard"&&Ue(String(Ce))},[a,r]),He=function(we,xe,Ne){var dt=function(){var Ct,ze=ye(we);return[_?{label:ze==null?void 0:ze[K.label],value:we,key:(Ct=ze==null?void 0:ze.key)!==null&&Ct!==void 0?Ct:we}:we,tp(ze)]};if(xe&&v){var mt=dt(),Pt=J(mt,2),Te=Pt[0],qe=Pt[1];v(Te,qe)}else if(!xe&&g&&Ne!=="clear"){var De=dt(),Xe=J(De,2),bt=Xe[0],gt=Xe[1];g(bt,gt)}},Qe=xy(function(Ce,we){var xe,Ne=q?we.selected:!0;Ne?xe=q?[].concat(de(ce),[Ce]):[Ce]:xe=ce.filter(function(dt){return dt.value!==Ce}),Ie(xe),He(Ce,Ne),r==="combobox"?Ue(""):(!np||m)&&(W(""),Ue(""))}),Le=function(we,xe){Ie(we);var Ne=xe.type,dt=xe.values;(Ne==="remove"||Ne==="clear")&&dt.forEach(function(mt){He(mt.value,!1,Ne)})},$e=function(we,xe){if(W(we),Ue(null),xe.source==="submit"){var Ne=(we||"").trim();if(Ne){var dt=Array.from(new Set([].concat(de(Ke),[Ne])));Ie(dt),He(Ne,!0),W("")}return}xe.source!=="blur"&&(r==="combobox"&&Ie(we),d==null||d(we))},Ge=function(we){var xe=we;r!=="tags"&&(xe=we.map(function(dt){var mt=U.get(dt);return mt==null?void 0:mt.value}).filter(function(dt){return dt!==void 0}));var Ne=Array.from(new Set([].concat(de(Ke),de(xe))));Ie(Ne),Ne.forEach(function(dt){He(dt,!0)})},et=s.useMemo(function(){var Ce=O!==!1&&b!==!1;return A(A({},ee),{},{flattenOptions:Re,onActiveValue:Je,defaultActiveFirstOption:Rt,onSelect:Qe,menuItemSelectedIcon:E,rawValues:Ke,fieldNames:K,virtual:Ce,direction:T,listHeight:z,listItemHeight:k,childrenAsData:H,maxCount:D,optionRender:w})},[D,ee,Re,Je,Rt,Qe,E,Ke,K,O,b,T,z,k,H,w]);return s.createElement(Xg.Provider,{value:et},s.createElement(nT,he({},B,{id:V,prefixCls:i,ref:t,omitDomProps:zT,mode:r,displayValues:be,onDisplayValuesChange:Le,direction:T,searchValue:Y,onSearch:$e,autoClearSearchValue:m,onSearchSplit:Ge,dropdownMatchSelectWidth:b,OptionList:xT,emptyOptions:!Re.length,activeValue:nt,activeDescendantId:"".concat(V,"_list_").concat(Ot)})))}),Zg=jT;Zg.Option=Qg;Zg.OptGroup=Yg;function ku(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 kd=(e,t)=>t||e,kT=()=>{const[,e]=Ln(),n=new qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,"empty image"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},LT=()=>{const[,e]=Ln(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=s.useMemo(()=>({borderColor:new qt(t).onBackground(o).toHexShortString(),shadowColor:new qt(n).onBackground(o).toHexShortString(),contentColor:new qt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,"Simple Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:i},s.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"}),s.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}))))},DT=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${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}}}}},FT=vn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[DT(o)]});var AT=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=dw,description:i,children:a,imageStyle:l,style:c}=e,u=AT(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=s.useContext(it),v=d("empty",r),[g,S,b]=FT(v),[h]=Rg("Empty"),p=typeof i<"u"?i:h==null?void 0:h.description,y=typeof p=="string"?p:"empty";let C=null;return typeof o=="string"?C=s.createElement("img",{alt:y,src:o}):C=o,g(s.createElement("div",Object.assign({className:Z(S,b,v,m==null?void 0:m.className,{[`${v}-normal`]:o===fw,[`${v}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),s.createElement("div",{className:`${v}-image`,style:l},C),p&&s.createElement("div",{className:`${v}-description`},p),a&&s.createElement("div",{className:`${v}-footer`},a)))};Mo.PRESENTED_IMAGE_DEFAULT=dw;Mo.PRESENTED_IMAGE_SIMPLE=fw;const mw=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(it),r=n("empty");switch(t){case"Table":case"List":return ie.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ie.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ie.createElement(Mo,null)}},Jg=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=s.useContext(it),l=s.useContext(V2),c=a==null?void 0:a.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=l??c)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=cR.includes(u);return[u,d]},BT=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 HT(e,t){return e||BT(t)}const wy=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"}},VT=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Zt(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, + ${i}${l}bottomLeft + `]:{animationName:Hg},[` + ${o}${l}topLeft, + ${i}${l}topLeft, + ${o}${l}topRight, + ${i}${l}topRight + `]:{animationName:Kg},[`${a}${l}bottomLeft`]:{animationName:Vg},[` + ${a}${l}topLeft, + ${a}${l}topRight + `]:{animationName:Wg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},wy(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"},xs),"&-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({},wy(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Ua(e,"slide-up"),Ua(e,"slide-down"),_u(e,"move-up"),_u(e,"move-down")]},KT=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},WT=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},UT=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ed()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},GT=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=WT(e),l=t?`${n}-${t}`:"",c=KT(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},UT(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-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:i,fontFamily:e.fontFamily,lineHeight:G(i),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 Xf(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[GT(e,t),o]}const qT=e=>{const{componentCls:t}=e,n=zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Xf(e),Xf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Xf(r,"lg")]};function Yf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Zt(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:G(i),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 ${G(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:G(i)}}},[`&${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 ${G(r)}`,"&:after":{display:"none"}}}}}}}function XT(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Yf(e),Yf(zt(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 ${G(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()}}}},Yf(zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const YT=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:g,colorFillSecondary:S,colorBgContainerDisabled:b,colorTextDisabled:h}=e,p=l*2,y=r*2,C=Math.min(o-p,o-y),x=Math.min(i-p,i-y),w=Math.min(a-p,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:x,multipleItemHeightLG:w,multipleSelectorBgDisabled:b,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},vw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(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 ${G(o)} ${t.activeShadowColor}`,outline:0}}}},$y=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vw(e,t))}),QT=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vw(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),$y(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),$y(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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),pw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(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}}}},Ey=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},pw(e,t))}),ZT=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Ey(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Ey(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),JT=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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),e8=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},QT(e)),ZT(e)),JT(e))}),t8=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"}}}},n8=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"}}}},r8=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},t8(e)),n8(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},xs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},xs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ed()),{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()}}}},o8=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},r8(e),XT(e),qT(e),VT(e),{[`${t}-rtl`]:{direction:"rtl"}},jg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},i8=vn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=zt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[o8(r),e8(r)]},YT,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var a8={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"},l8=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:a8}))},s8=s.forwardRef(l8),c8={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"},u8=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:c8}))},gw=s.forwardRef(u8),d8={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"},f8=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:d8}))},Ld=s.forwardRef(f8);function m8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const v=n??s.createElement(Od,null),g=p=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&p,l&&d);let S=null;if(t!==void 0)S=g(t);else if(i)S=g(s.createElement(Rd,{spin:!0}));else{const p=`${c}-suffix`;S=y=>{let{open:C,showSearch:x}=y;return g(C&&x?s.createElement(Ld,{className:p}):s.createElement(gw,{className:p}))}}let b=null;r!==void 0?b=r:a?b=s.createElement(s8,null):b=null;let h=null;return o!==void 0?h=o:h=s.createElement(p2,null),{clearIcon:v,suffixIcon:S,itemIcon:b,removeIcon:h}}function v8(e,t){return t!==void 0?t:e!==null}var p8=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:i,rootClassName:a,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:v,disabled:g,notFoundContent:S,status:b,builtinPlacements:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:y,direction:C,style:x,allowClear:w,variant:$,dropdownStyle:I,transitionName:E,tagRender:O,maxCount:T}=e,j=p8(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:z,getPrefixCls:R,renderEmpty:k,direction:M,virtual:N,popupMatchSelectWidth:P,popupOverflow:_,select:F}=s.useContext(it),[,D]=Ln(),B=m??(D==null?void 0:D.controlHeight),V=R("select",r),q=R(),H=C??M,{compactSize:X,compactItemClassnames:K}=Fs(V,H),[ne,oe]=Jg("select",$,o),Y=qn(V),[W,ee,te]=i8(V,Y),U=s.useMemo(()=>{const{mode:nt}=e;if(nt!=="combobox")return nt===hw?"combobox":nt},[e.mode]),ae=U==="multiple"||U==="tags",re=v8(e.suffixIcon,e.showArrow),me=(n=y??p)!==null&&n!==void 0?n:P,{status:le,hasFeedback:fe,isFormItemInput:ue,feedbackIcon:pe}=s.useContext(tr),Oe=kd(le,b);let se;S!==void 0?se=S:U==="combobox"?se=null:se=(k==null?void 0:k("Select"))||s.createElement(mw,{componentName:"Select"});const{suffixIcon:ce,itemIcon:ye,removeIcon:be,clearIcon:Ke}=m8(Object.assign(Object.assign({},j),{multiple:ae,hasFeedback:fe,feedbackIcon:pe,showSuffixIcon:re,prefixCls:V,componentName:"Select"})),je=w===!0?{clearIcon:Ke}:w,We=Tn(j,["suffixIcon","itemIcon"]),Se=Z(c||u,{[`${V}-dropdown-${H}`]:H==="rtl"},a,te,Y,ee),Be=so(nt=>{var Ue;return(Ue=v??X)!==null&&Ue!==void 0?Ue:nt}),Pe=s.useContext(Co),Re=g??Pe,Ie=Z({[`${V}-lg`]:Be==="large",[`${V}-sm`]:Be==="small",[`${V}-rtl`]:H==="rtl",[`${V}-${ne}`]:oe,[`${V}-in-form-item`]:ue},ku(V,Oe,fe),K,F==null?void 0:F.className,i,a,te,Y,ee),Me=s.useMemo(()=>f!==void 0?f:H==="rtl"?"bottomRight":"bottomLeft",[f,H]),[ke]=Pd("SelectLike",I==null?void 0:I.zIndex);return W(s.createElement(Zg,Object.assign({ref:t,virtual:N,showSearch:F==null?void 0:F.showSearch},We,{style:Object.assign(Object.assign({},F==null?void 0:F.style),x),dropdownMatchSelectWidth:me,transitionName:x2(q,"slide-up",E),builtinPlacements:HT(h,_),listHeight:d,listItemHeight:B,mode:U,prefixCls:V,placement:Me,direction:H,suffixIcon:ce,menuItemSelectedIcon:ye,removeIcon:be,allowClear:je,notFoundContent:se,className:Ie,getPopupContainer:l||z,dropdownClassName:Se,disabled:Re,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:ke}),maxCount:ae?T:void 0,tagRender:ae?O:void 0})))},Vo=s.forwardRef(g8),h8=Q2(Vo);Vo.SECRET_COMBOBOX_MODE_DO_NOT_USE=hw;Vo.Option=Qg;Vo.OptGroup=Yg;Vo._InternalPanelDoNotUseOrYouWillBeFired=h8;const Os=["xxl","xl","lg","md","sm","xs"],y8=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)`}),b8=e=>{const t=e,n=[].concat(Os).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},c=window.matchMedia(a);c.addListener(l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function bw(){const[,e]=s.useReducer(t=>t+1,0);return e}function Sw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=s.useRef({}),n=bw(),r=yw();return Nt(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}function Cw(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:Z("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var aa={shiftX:64,adjustY:1},la={adjustX:1,shiftY:!0},Mr=[0,0],S8={left:{points:["cr","cl"],overflow:la,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:la,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:aa,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:aa,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:aa,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:la,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:aa,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:la,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:aa,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:la,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:aa,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:la,offset:[-4,0],targetOffset:Mr}},C8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],x8=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,g=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,h=t.animation,p=t.motion,y=t.placement,C=y===void 0?"right":y,x=t.align,w=x===void 0?{}:x,$=t.destroyTooltipOnHide,I=$===void 0?!1:$,E=t.defaultVisible,O=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,z=t.id,R=t.showArrow,k=R===void 0?!0:R,M=ot(t,C8),N=s.useRef(null);s.useImperativeHandle(n,function(){return N.current});var P=A({},M);"visible"in t&&(P.popupVisible=t.visible);var _=function(){return s.createElement(Cw,{key:"content",prefixCls:m,id:z,overlayInnerStyle:T},j)};return s.createElement(_d,he({popupClassName:r,prefixCls:m,popup:_,action:i,builtinPlacements:S8,popupPlacement:C,ref:N,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:h,popupMotion:p,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:k},P),v)};const w8=s.forwardRef(x8);function xw(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),c=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,v=2*o-l,g=c,S=2*o-i,b=a,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),p=r*(Math.sqrt(2)-1),y=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,C=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${g} A ${r} ${r} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:h,arrowPath:C,arrowPolygon:y}}const $8=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ww=8;function eh(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ww:r}}function wc(e,t){return e?t:{}}function $w(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={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"},$8(e,t,o)),{"&:before":{background:t}})]},wc(!!c.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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wc(!!c.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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wc(!!c.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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),wc(!!c.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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function E8(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Iy={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"]}},I8={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"]}},O8=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ew(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Iy).forEach(u=>{const d=r&&I8[u]||Iy[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,O8.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=eh({contentRadius:i,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=E8(u,m,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const R8=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,ww)}},[`${t}-content`]:{position:"relative"}}),kR(e,(f,m)=>{let{darkColor:v}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},$w(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},P8=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},eh({contentRadius:e.borderRadius,limitVerticalRadius:!0})),xw(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Iw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return vn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=zt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[R8(l),Gg(r,"zoom-big-fast")]},P8,{resetStyle:!1,injectStyle:t})(e)},N8=Iu.map(e=>`${e}-inverse`);function M8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(de(N8),de(Iu)).includes(e):Iu.includes(e)}function Ow(e,t){const n=M8(t),r=Z({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const T8=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(it),c=l("tooltip",t),[u,d,f]=Iw(c),m=Ow(c,i),v=m.arrowStyle,g=Object.assign(Object.assign({},a),m.overlayStyle),S=Z(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:S,style:v},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Cw,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var z8=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:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:g=!0,title:S,overlay:b,builtinPlacements:h,arrowPointAtCenter:p=!1,autoAdjustOverflow:y=!0}=e,C=!!g,[,x]=Ln(),{getPopupContainer:w,getPrefixCls:$,direction:I}=s.useContext(it),E=Ci(),O=s.useRef(null),T=()=>{var se;(se=O.current)===null||se===void 0||se.forceAlign()};s.useImperativeHandle(t,()=>{var se;return{forceAlign:T,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),T()},nativeElement:(se=O.current)===null||se===void 0?void 0:se.nativeElement}});const[j,z]=Mn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!S&&!b&&S!==0,k=se=>{var ce,ye;z(R?!1:se),R||((ce=e.onOpenChange)===null||ce===void 0||ce.call(e,se),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,se))},M=s.useMemo(()=>{var se,ce;let ye=p;return typeof g=="object"&&(ye=(ce=(se=g.pointAtCenter)!==null&&se!==void 0?se:g.arrowPointAtCenter)!==null&&ce!==void 0?ce:p),h||Ew({arrowPointAtCenter:ye,autoAdjustOverflow:y,arrowWidth:C?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[p,g,h,x]),N=s.useMemo(()=>S===0?S:b||S||"",[b,S]),P=s.createElement(zu,{space:!0},typeof N=="function"?N():N),{getPopupContainer:_,placement:F="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:V,rootClassName:q}=e,H=z8(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=$("tooltip",o),K=$(),ne=e["data-popover-inject"];let oe=j;!("open"in e)&&!("visible"in e)&&R&&(oe=!1);const Y=s.isValidElement(d)&&!h2(d)?d:s.createElement("span",null,d),W=Y.props,ee=!W.className||typeof W.className=="string"?Z(W.className,i||`${X}-open`):W.className,[te,U,ae]=Iw(X,!ne),re=Ow(X,c),me=re.arrowStyle,le=Object.assign(Object.assign({},u),re.overlayStyle),fe=Z(l,{[`${X}-rtl`]:I==="rtl"},re.className,q,U,ae),[ue,pe]=Pd("Tooltip",H.zIndex),Oe=s.createElement(w8,Object.assign({},H,{zIndex:ue,showArrow:C,placement:F,mouseEnterDelay:D,mouseLeaveDelay:B,prefixCls:X,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},me),V),getTooltipContainer:_||a||w,ref:O,builtinPlacements:M,overlay:P,visible:oe,onVisibleChange:k,afterVisibleChange:f??m,overlayInnerStyle:le,arrowContent:s.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:x2(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),oe?Ir(Y,{className:ee}):Y);return te(s.createElement(Mg.Provider,{value:pe},Oe))}),Rs=_8;Rs._InternalPanelDoNotUseOrYouWillBeFired=T8;var j8={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"},k8=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:j8}))},Ps=s.forwardRef(k8),L8=ge.ESC,D8=ge.TAB;function F8(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.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)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case L8:l();break;case D8:{var m=!1;a.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Tt(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var A8=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Pr(t,i==null?void 0:i.ref);return ie.createElement(ie.Fragment,null,r&&ie.createElement("div",{className:"".concat(o,"-arrow")}),ie.cloneElement(i,{ref:io(i)?a:void 0}))}),sa={adjustX:1,adjustY:1},ca=[0,0],B8={topLeft:{points:["bl","tl"],overflow:sa,offset:[0,-4],targetOffset:ca},top:{points:["bc","tc"],overflow:sa,offset:[0,-4],targetOffset:ca},topRight:{points:["br","tr"],overflow:sa,offset:[0,-4],targetOffset:ca},bottomLeft:{points:["tl","bl"],overflow:sa,offset:[0,4],targetOffset:ca},bottom:{points:["tc","bc"],overflow:sa,offset:[0,4],targetOffset:ca},bottomRight:{points:["tr","br"],overflow:sa,offset:[0,4],targetOffset:ca}},H8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function V8(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?B8:m,g=e.getPopupContainer,S=e.showAction,b=e.hideAction,h=e.overlayClassName,p=e.overlayStyle,y=e.visible,C=e.trigger,x=C===void 0?["hover"]:C,w=e.autoFocus,$=e.overlay,I=e.children,E=e.onVisibleChange,O=ot(e,H8),T=ie.useState(),j=J(T,2),z=j[0],R=j[1],k="visible"in e?y:z,M=ie.useRef(null),N=ie.useRef(null),P=ie.useRef(null);ie.useImperativeHandle(t,function(){return M.current});var _=function(ne){R(ne),E==null||E(ne)};F8({visible:k,triggerRef:P,onVisibleChange:_,autoFocus:w,overlayRef:N});var F=function(ne){var oe=e.onOverlayClick;R(!1),oe&&oe(ne)},D=function(){return ie.createElement(A8,{ref:N,overlay:$,prefixCls:a,arrow:o})},B=function(){return typeof $=="function"?D:D()},V=function(){var ne=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!oe},q=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(a,"-open")},H=ie.cloneElement(I,{className:Z((n=I.props)===null||n===void 0?void 0:n.className,k&&q()),ref:io(I)?Pr(P,I.ref):void 0}),X=b;return!X&&x.indexOf("contextMenu")!==-1&&(X=["click"]),ie.createElement(_d,he({builtinPlacements:v},O,{prefixCls:a,ref:M,popupClassName:Z(h,L({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:x,showAction:S,hideAction:X,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:k,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:_,onPopupClick:F,getPopupContainer:g}),H)}const K8=ie.forwardRef(V8);var Rw=s.createContext(null);function Pw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Nw(e){var t=s.useContext(Rw);return Pw(t,e)}var W8=["children","locked"],ao=s.createContext(null);function U8(e,t){var n=A({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ns(e){var t=e.children,n=e.locked,r=ot(e,W8),o=s.useContext(ao),i=Yi(function(){return U8(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!So(a[1],l[1],!0))});return s.createElement(ao.Provider,{value:i},t)}var G8=[],Mw=s.createContext(null);function Dd(){return s.useContext(Mw)}var Tw=s.createContext(G8);function rl(e){var t=s.useContext(Tw);return s.useMemo(function(){return e!==void 0?[].concat(de(t),[e]):t},[t,e])}var zw=s.createContext(null),th=s.createContext({});function Oy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ds(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function q8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=de(e.querySelectorAll("*")).filter(function(r){return Oy(r,t)});return Oy(e,t)&&n.unshift(e),n}var rp=ge.LEFT,op=ge.RIGHT,ip=ge.UP,qc=ge.DOWN,Xc=ge.ENTER,_w=ge.ESC,bl=ge.HOME,Sl=ge.END,Ry=[ip,qc,rp,op];function X8(e,t,n,r){var o,i,a,l,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===Xc)return{inlineTrigger:!0};var m=(o={},L(o,ip,c),L(o,qc,u),o),v=(i={},L(i,rp,n?u:c),L(i,op,n?c:u),L(i,qc,d),L(i,Xc,d),i),g=(a={},L(a,ip,c),L(a,qc,u),L(a,Xc,d),L(a,_w,f),L(a,rp,n?d:f),L(a,op,n?f:d),a),S={inline:m,horizontal:v,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},b=(l=S["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(b){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function Y8(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Q8(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nh(e,t){var n=q8(e,!0);return n.filter(function(r){return t.has(r)})}function Py(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=nh(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var ap=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(Pw(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function Z8(e,t,n,r,o,i,a,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){Tt.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(v){var g=v.which;if([].concat(Ry,[Xc,_w,bl,Sl]).includes(g)){var S=i(),b=ap(S,r),h=b,p=h.elements,y=h.key2element,C=h.element2key,x=y.get(t),w=Q8(x,p),$=C.get(w),I=X8(e,a($,!0).length===1,n,g);if(!I&&g!==bl&&g!==Sl)return;(Ry.includes(g)||[bl,Sl].includes(g))&&v.preventDefault();var E=function(N){if(N){var P=N,_=N.querySelector("a");_!=null&&_.getAttribute("href")&&(P=_);var F=C.get(N);l(F),m(),d.current=Tt(function(){f.current===F&&P.focus()})}};if([bl,Sl].includes(g)||I.sibling||!w){var O;!w||e==="inline"?O=o.current:O=Y8(w);var T,j=nh(O,p);g===bl?T=j[0]:g===Sl?T=j[j.length-1]:T=Py(O,p,w,I.offset),E(T)}else if(I.inlineTrigger)c($);else if(I.offset>0)c($,!0),m(),d.current=Tt(function(){b=ap(S,r);var M=w.getAttribute("aria-controls"),N=document.getElementById(M),P=Py(N,b.elements);E(P)},5);else if(I.offset<0){var z=a($,!0),R=z[z.length-2],k=y.get(R);c(R,!1),E(k)}}u==null||u(v)}}function J8(e){Promise.resolve().then(e)}var rh="__RC_UTIL_PATH_SPLIT__",Ny=function(t){return t.join(rh)},ez=function(t){return t.split(rh)},lp="rc-menu-more";function tz(){var e=s.useState({}),t=J(e,2),n=t[1],r=s.useRef(new Map),o=s.useRef(new Map),i=s.useState([]),a=J(i,2),l=a[0],c=a[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(y,C){var x=Ny(C);o.current.set(x,y),r.current.set(y,x),u.current+=1;var w=u.current;J8(function(){w===u.current&&f()})},[]),v=s.useCallback(function(y,C){var x=Ny(C);o.current.delete(x),r.current.delete(y)},[]),g=s.useCallback(function(y){c(y)},[]),S=s.useCallback(function(y,C){var x=r.current.get(y)||"",w=ez(x);return C&&l.includes(w[0])&&w.unshift(lp),w},[l]),b=s.useCallback(function(y,C){return y.filter(function(x){return x!==void 0}).some(function(x){var w=S(x,!0);return w.includes(C)})},[S]),h=function(){var C=de(r.current.keys());return l.length&&C.push(lp),C},p=s.useCallback(function(y){var C="".concat(r.current.get(y)).concat(rh),x=new Set;return de(o.current.keys()).forEach(function(w){w.startsWith(C)&&x.add(o.current.get(w))}),x},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:g,isSubPathKey:b,getKeyPath:S,getKeys:h,getSubPathKeys:p}}function Ol(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(p.motionAppear=!1);var y=p.onVisibleChanged;return p.onVisibleChanged=function(C){return!m.current&&!C&&b(!0),y==null?void 0:y(C)},S?null:s.createElement(Ns,{mode:i,locked:!m.current},s.createElement(xi,he({visible:h},p,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var x=C.className,w=C.style;return s.createElement(oh,{id:t,className:x,style:w},o)}))}var yz=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],bz=["active"],Sz=s.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,v=e.popupOffset,g=e.popupStyle,S=e.onClick,b=e.onMouseEnter,h=e.onMouseLeave,p=e.onTitleClick,y=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=ot(e,yz),w=Nw(a),$=s.useContext(ao),I=$.prefixCls,E=$.mode,O=$.openKeys,T=$.disabled,j=$.overflowDisabled,z=$.activeKey,R=$.selectedKeys,k=$.itemIcon,M=$.expandIcon,N=$.onItemClick,P=$.onOpenChange,_=$.onActive,F=s.useContext(th),D=F._internalRenderSubMenuItem,B=s.useContext(zw),V=B.isSubPathKey,q=rl(),H="".concat(I,"-submenu"),X=T||l,K=s.useRef(),ne=s.useRef(),oe=d??k,Y=f??M,W=O.includes(a),ee=!j&&W,te=V(R,a),U=jw(a,X,y,C),ae=U.active,re=ot(U,bz),me=s.useState(!1),le=J(me,2),fe=le[0],ue=le[1],pe=function(ke){X||ue(ke)},Oe=function(ke){pe(!0),b==null||b({key:a,domEvent:ke})},se=function(ke){pe(!1),h==null||h({key:a,domEvent:ke})},ce=s.useMemo(function(){return ae||(E!=="inline"?fe||V([z],a):!1)},[E,ae,z,fe,a,V]),ye=kw(q.length),be=function(ke){X||(p==null||p({key:a,domEvent:ke}),E==="inline"&&P(a,!W))},Ke=Ol(function(Me){S==null||S(Lu(Me)),N(Me)}),je=function(ke){E!=="inline"&&P(a,ke)},We=function(){_(a)},Se=w&&"".concat(w,"-popup"),Be=s.createElement("div",he({role:"menuitem",style:ye,className:"".concat(H,"-title"),tabIndex:X?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":j&&w?null:w,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":X,onClick:be,onFocus:We},re),i,s.createElement(Lw,{icon:E!=="horizontal"?Y:void 0,props:A(A({},e),{},{isOpen:ee,isSubMenu:!0})},s.createElement("i",{className:"".concat(H,"-arrow")}))),Pe=s.useRef(E);if(E!=="inline"&&q.length>1?Pe.current="vertical":Pe.current=E,!j){var Re=Pe.current;Be=s.createElement(gz,{mode:Re,prefixCls:H,visible:!c&&ee&&E!=="inline",popupClassName:m,popupOffset:v,popupStyle:g,popup:s.createElement(Ns,{mode:Re==="horizontal"?"vertical":Re},s.createElement(oh,{id:Se,ref:ne},u)),disabled:X,onVisibleChange:je},Be)}var Ie=s.createElement(yo.Item,he({ref:t,role:"none"},x,{component:"li",style:r,className:Z(H,"".concat(H,"-").concat(E),o,(n={},L(n,"".concat(H,"-open"),ee),L(n,"".concat(H,"-active"),ce),L(n,"".concat(H,"-selected"),te),L(n,"".concat(H,"-disabled"),X),n)),onMouseEnter:Oe,onMouseLeave:se}),Be,!j&&s.createElement(hz,{id:Se,open:ee,keyPath:q},u));return D&&(Ie=D(Ie,e,{selected:te,active:ce,open:ee,disabled:X})),s.createElement(Ns,{onItemClick:Ke,mode:E==="horizontal"?"vertical":E,itemIcon:oe,expandIcon:Y},Ie)}),Ad=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=rl(n),i=ih(r,o),a=Dd();s.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=s.createElement(Sz,he({ref:t},e),i),s.createElement(Tw.Provider,{value:o},l)});function ah(e){var t=e.className,n=e.style,r=s.useContext(ao),o=r.prefixCls,i=Dd();return i?null:s.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),t),style:n})}var Cz=["className","title","eventKey","children"],xz=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=ot(e,Cz),a=s.useContext(ao),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",he({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:Z(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),lh=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=rl(n),i=ih(r,o),a=Dd();return a?i:s.createElement(xz,he({ref:t},Tn(e,["warnKey"])),i)}),wz=["label","children","key","type"];function sp(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&Fe(a)==="object"){var c=a,u=c.label,d=c.children,f=c.key,m=c.type,v=ot(c,wz),g=f??"tmp-".concat(l);return d||m==="group"?m==="group"?s.createElement(r,he({key:g},v,{title:u}),sp(d,t)):s.createElement(o,he({key:g},v,{title:u}),sp(d,t)):m==="divider"?s.createElement(i,he({key:g},v)):s.createElement(n,he({key:g},v),u)}return null}).filter(function(a){return a})}function Ty(e,t,n,r){var o=e,i=A({divider:ah,item:Fd,group:lh,submenu:Ad},r);return t&&(o=sp(t,i)),ih(o,n)}var $z=["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","_internalComponents"],$i=[],Ez=s.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,v=o.children,g=o.direction,S=o.id,b=o.mode,h=b===void 0?"vertical":b,p=o.inlineCollapsed,y=o.disabled,C=o.disabledOverflow,x=o.subMenuOpenDelay,w=x===void 0?.1:x,$=o.subMenuCloseDelay,I=$===void 0?.1:$,E=o.forceSubMenuRender,O=o.defaultOpenKeys,T=o.openKeys,j=o.activeKey,z=o.defaultActiveFirst,R=o.selectable,k=R===void 0?!0:R,M=o.multiple,N=M===void 0?!1:M,P=o.defaultSelectedKeys,_=o.selectedKeys,F=o.onSelect,D=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,q=o.motion,H=o.defaultMotions,X=o.triggerSubMenuAction,K=X===void 0?"hover":X,ne=o.builtinPlacements,oe=o.itemIcon,Y=o.expandIcon,W=o.overflowedIndicator,ee=W===void 0?"...":W,te=o.overflowedIndicatorPopupClassName,U=o.getPopupContainer,ae=o.onClick,re=o.onOpenChange,me=o.onKeyDown;o.openAnimation,o.openTransitionName;var le=o._internalRenderMenuItem,fe=o._internalRenderSubMenuItem,ue=o._internalComponents,pe=ot(o,$z),Oe=s.useMemo(function(){return[Ty(v,m,$i,ue),Ty(v,m,$i,{})]},[v,m,ue]),se=J(Oe,2),ce=se[0],ye=se[1],be=s.useState(!1),Ke=J(be,2),je=Ke[0],We=Ke[1],Se=s.useRef(),Be=rz(S),Pe=g==="rtl",Re=Mn(O,{value:T,postState:function(ct){return ct||$i}}),Ie=J(Re,2),Me=Ie[0],ke=Ie[1],nt=function(ct){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xt(){ke(ct),re==null||re(ct)}ut?bo.flushSync(xt):xt()},Ue=s.useState(Me),$t=J(Ue,2),at=$t[0],Ot=$t[1],lt=s.useRef(!1),Rt=s.useMemo(function(){return(h==="inline"||h==="vertical")&&p?["vertical",p]:[h,!1]},[h,p]),Je=J(Rt,2),He=Je[0],Qe=Je[1],Le=He==="inline",$e=s.useState(He),Ge=J($e,2),et=Ge[0],Ce=Ge[1],we=s.useState(Qe),xe=J(we,2),Ne=xe[0],dt=xe[1];s.useEffect(function(){Ce(He),dt(Qe),lt.current&&(Le?ke(at):nt($i))},[He,Qe]);var mt=s.useState(0),Pt=J(mt,2),Te=Pt[0],qe=Pt[1],De=Te>=ce.length-1||et!=="horizontal"||C;s.useEffect(function(){Le&&Ot(Me)},[Me]),s.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var Xe=tz(),bt=Xe.registerPath,gt=Xe.unregisterPath,_t=Xe.refreshOverflowKeys,Ct=Xe.isSubPathKey,ze=Xe.getKeyPath,_e=Xe.getKeys,tt=Xe.getSubPathKeys,yt=s.useMemo(function(){return{registerPath:bt,unregisterPath:gt}},[bt,gt]),Ht=s.useMemo(function(){return{isSubPathKey:Ct}},[Ct]);s.useEffect(function(){_t(De?$i:ce.slice(Te+1).map(function(vt){return vt.key}))},[Te,De]);var en=Mn(j||z&&((n=ce[0])===null||n===void 0?void 0:n.key),{value:j}),Ut=J(en,2),tn=Ut[0],Cn=Ut[1],nn=Ol(function(vt){Cn(vt)}),Dn=Ol(function(){Cn(void 0)});s.useImperativeHandle(t,function(){return{list:Se.current,focus:function(ct){var ut,xt=_e(),kt=ap(xt,Be),rn=kt.elements,On=kt.key2element,Rn=kt.element2key,pn=nh(Se.current,rn),Yn=tn??(pn[0]?Rn.get(pn[0]):(ut=ce.find(function(Ye){return!Ye.props.disabled}))===null||ut===void 0?void 0:ut.key),An=On.get(Yn);if(Yn&&An){var Ko;An==null||(Ko=An.focus)===null||Ko===void 0||Ko.call(An,ct)}}}});var Ze=Mn(P||[],{value:_,postState:function(ct){return Array.isArray(ct)?ct:ct==null?$i:[ct]}}),rt=J(Ze,2),ht=rt[0],dn=rt[1],Fn=function(ct){if(k){var ut=ct.key,xt=ht.includes(ut),kt;N?xt?kt=ht.filter(function(On){return On!==ut}):kt=[].concat(de(ht),[ut]):kt=[ut],dn(kt);var rn=A(A({},ct),{},{selectedKeys:kt});xt?D==null||D(rn):F==null||F(rn)}!N&&Me.length&&et!=="inline"&&nt($i)},Xn=Ol(function(vt){ae==null||ae(Lu(vt)),Fn(vt)}),or=Ol(function(vt,ct){var ut=Me.filter(function(kt){return kt!==vt});if(ct)ut.push(vt);else if(et!=="inline"){var xt=tt(vt);ut=ut.filter(function(kt){return!xt.has(kt)})}So(Me,ut,!0)||nt(ut,!0)}),Vr=function(ct,ut){var xt=ut??!Me.includes(ct);or(ct,xt)},fr=Z8(et,tn,Pe,Be,Se,_e,ze,Cn,Vr,me);s.useEffect(function(){We(!0)},[]);var In=s.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:fe}},[le,fe]),pt=et!=="horizontal"||C?ce:ce.map(function(vt,ct){return s.createElement(Ns,{key:vt.key,overflowDisabled:ct>Te},vt)}),st=s.createElement(yo,he({id:S,ref:Se,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Fd,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(et),u,(r={},L(r,"".concat(a,"-inline-collapsed"),Ne),L(r,"".concat(a,"-rtl"),Pe),r),l),dir:g,style:c,role:"menu",tabIndex:f,data:pt,renderRawItem:function(ct){return ct},renderRawRest:function(ct){var ut=ct.length,xt=ut?ce.slice(-ut):null;return s.createElement(Ad,{eventKey:lp,title:ee,disabled:De,internalPopupClose:ut===0,popupClassName:te},xt)},maxCount:et!=="horizontal"||C?yo.INVALIDATE:yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ct){qe(ct)},onKeyDown:fr},pe));return s.createElement(th.Provider,{value:In},s.createElement(Rw.Provider,{value:Be},s.createElement(Ns,{prefixCls:a,rootClassName:l,mode:et,openKeys:Me,rtl:Pe,disabled:y,motion:je?q:null,defaultMotions:je?H:null,activeKey:tn,onActive:nn,onInactive:Dn,selectedKeys:ht,inlineIndent:V,subMenuOpenDelay:w,subMenuCloseDelay:I,forceSubMenuRender:E,builtinPlacements:ne,triggerSubMenuAction:K,getPopupContainer:U,itemIcon:oe,expandIcon:Y,onItemClick:Xn,onOpenChange:or},s.createElement(zw.Provider,{value:Ht},st),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Mw.Provider,{value:yt},ye)))))}),Hs=Ez;Hs.Item=Fd;Hs.SubMenu=Ad;Hs.ItemGroup=lh;Hs.Divider=ah;var Iz={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"},Oz=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:Iz}))},Rz=s.forwardRef(Oz),Pz={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"},Nz=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:Pz}))},Du=s.forwardRef(Nz);const Mz=e=>!isNaN(parseFloat(e))&&isFinite(e),Fw=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Tz=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}`}})(),Aw=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:g,onCollapse:S,onBreakpoint:b}=e,h=Tz(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:p}=s.useContext(Fw),[y,C]=s.useState("collapsed"in e?e.collapsed:a),[x,w]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const $=(z,R)=>{"collapsed"in e||C(z),S==null||S(z,R)},I=s.useRef();I.current=z=>{w(z.matches),b==null||b(z.matches),y!==z.matches&&$(z.matches,"responsive")},s.useEffect(()=>{function z(k){return I.current(k)}let R;if(typeof window<"u"){const{matchMedia:k}=window;if(k&&g&&g in zy){R=k(`screen and (max-width: ${zy[g]})`);try{R.addEventListener("change",z)}catch{R.addListener(z)}z(R)}}return()=>{try{R==null||R.removeEventListener("change",z)}catch{R==null||R.removeListener(z)}}},[g]),s.useEffect(()=>{const z=zz("ant-sider-");return p.addSider(z),()=>p.removeSider(z)},[]);const E=()=>{$(!y,"clickTrigger")},{getPrefixCls:O}=s.useContext(it),T=()=>{const z=O("layout-sider",n),R=Tn(h,["collapsed"]),k=y?m:f,M=Mz(k)?`${k}px`:String(k),N=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:Z(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${d?"right":"left"}`),style:v},o||s.createElement(Rz,null)):null,F={expanded:d?s.createElement(Ps,null):s.createElement(Du,null),collapsed:d?s.createElement(Du,null):s.createElement(Ps,null)}[y?"collapsed":"expanded"],D=o!==null?N||s.createElement("div",{className:`${z}-trigger`,onClick:E,style:{width:M}},o||F):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${M}`,maxWidth:M,minWidth:M,width:M}),V=Z(z,`${z}-${l}`,{[`${z}-collapsed`]:!!y,[`${z}-has-trigger`]:u&&o!==null&&!N,[`${z}-below`]:!!x,[`${z}-zero-width`]:parseFloat(M)===0},r);return s.createElement("aside",Object.assign({className:V},R,{style:B,ref:t}),s.createElement("div",{className:`${z}-children`},i),u||x&&N?D:null)},j=s.useMemo(()=>({siderCollapsed:y}),[y]);return s.createElement(Bd.Provider,{value:j},T())});var _z={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"},jz=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:_z}))},Bw=s.forwardRef(jz);const Fu=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var kz=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=kz(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(it),a=i("menu",t),l=Z({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(ah,Object.assign({className:l},o))},Vw=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=s.useContext(Fu),m=p=>{const y=s.createElement("span",{className:`${l}-title-content`},r);return(!o||s.isValidElement(r)&&r.type==="span")&&r&&p&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):y},{siderCollapsed:v}=s.useContext(Bd);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const S={title:g};!v&&!f&&(S.title=null,S.open=!1);const b=Er(r).length;let h=s.createElement(Fd,Object.assign({},Tn(e,["title","icon","danger"]),{className:Z({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),Ir(o,{className:Z(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(h=s.createElement(Rs,Object.assign({},S,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),h)),h};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{const{children:n}=e,r=Lz(e,["children"]),o=s.useContext(Au),i=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=GI(n),l=Ja(t,a?n.ref:null);return s.createElement(Au.Provider,{value:i},s.createElement(zu,{space:!0},a?s.cloneElement(n,{ref:l}):n))}),Dz=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline: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"}}}},Fz=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(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},_y=e=>Object.assign({},gi(e)),jy=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:v,motionEaseOut:g,itemPaddingInline:S,motionDurationMid:b,itemHoverColor:h,lineType:p,colorSplit:y,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:$,dangerItemActiveBg:I,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:T,itemActiveBg:j,menuSubMenuBg:z,horizontalItemSelectedColor:R,horizontalItemSelectedBg:k,horizontalItemBorderRadius:M,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},_y(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},_y(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:z},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${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:M,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${G(u)} solid transparent`,transition:`border-color ${m} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:k,"&:hover":{backgroundColor:k},"&::after":{borderBottomWidth:u,borderBottomColor:R}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(f)} ${p} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(",")}}}}}},ky=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:G(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},Az=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:g,collapsedWidth:S,collapsedIconSize:b}=e,h={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ky(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ky(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${G(e.calc(a).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} ${c}`,`padding-inline calc(50% - ${G(e.calc(f).div(2).equal())} - ${G(d)})`].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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:S,[`&${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% - ${G(e.calc(f).div(2).equal())} - ${G(d)})`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:G(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({},xs),{paddingInline:v})}}]},Ly=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Ed()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Dy=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).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(${G(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(a)})`}}}}},Bz=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:g,menuArrowOffset:S,lineType:b,groupTitleLineHeight:h,groupTitleFontSize:p}=e;return[{"":{[n]:Object.assign(Object.assign({},Ou()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),Ou()),{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:`${G(l)} ${G(c)}`,fontSize:p,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${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:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ly(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-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},Ly(e)),Dy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),Dy(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(S)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Hz=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:g,controlItemBgActive:S,colorBgTextHover:b,controlHeightLG:h,lineHeight:p,colorBgElevated:y,marginXXS:C,padding:x,fontSize:w,controlHeightSM:$,fontSizeLG:I,colorTextLightSolid:E,colorErrorHover:O}=e,T=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,j=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,z=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new qt(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:m,itemActiveBg:S,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:v,activeBarBorderWidth:j,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:p,collapsedWidth:h*2,popupBg:y,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:`${h*1.15}px`,iconSize:w,iconMarginInlineEnd:$-w,collapsedIconSize:I,groupTitleFontSize:w,darkItemDisabledColor:new qt(E).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:T?`calc(100% + ${j}px)`:`calc(100% - ${z*2}px)`}},Vz=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 vn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:g,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:x,popupBg:w,darkPopupBg:$}=o,I=o.calc(l).div(7).mul(5).equal(),E=zt(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:w}),O=zt(E,{itemColor:c,itemHoverColor:h,groupTitleColor:b,itemSelectedColor:m,itemBg:d,popupBg:$,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:p,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:C,dangerItemActiveBg:x,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[Bz(E),Dz(E),Az(E),jy(E,"light"),jy(O,"dark"),Fz(E),Ag(E),Ua(E,"slide-up"),Ua(E,"slide-down"),Gg(E,"zoom-big")]},Hz,{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)},Ww=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(Fu),{prefixCls:l,inlineCollapsed:c,theme:u}=a,d=rl();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const g=s.isValidElement(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Ir(r,{className:Z(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[v]=Pd("Menu");return s.createElement(Fu.Provider,{value:m},s.createElement(Ad,Object.assign({},Tn(e,["icon"]),{title:f,popupClassName:Z(l,n,`${l}-${i||u}`),popupStyle:{zIndex:v}})))};var Kz=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=s.useContext(Au),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:c}=s.useContext(it),u=i(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:h,rootClassName:p,mode:y,selectable:C,onClick:x,overflowedIndicatorPopupClassName:w}=e,$=Kz(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Tn($,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:y});const E=At(function(){var B;x==null||x.apply(void 0,arguments),(B=o.onClick)===null||B===void 0||B.call(o)}),O=o.mode||y,T=C??o.selectable,j=s.useMemo(()=>h!==void 0?h:b,[b,h]),z={horizontal:{motionName:`${u}-slide-up`},inline:Mu(u),other:{motionName:`${u}-zoom-big`}},R=i("menu",d||o.prefixCls),k=qn(R),[M,N,P]=Vz(R,k,!r),_=Z(`${R}-${v}`,c==null?void 0:c.className,f),F=s.useMemo(()=>{var B,V;if(typeof g=="function"||Qf(g))return g||null;if(typeof o.expandIcon=="function"||Qf(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Qf(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const q=(B=g??(o==null?void 0:o.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return Ir(q,{className:Z(`${R}-submenu-expand-icon`,s.isValidElement(q)?(V=q.props)===null||V===void 0?void 0:V.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,R]),D=s.useMemo(()=>({prefixCls:R,inlineCollapsed:j||!1,direction:l,firstLevel:!0,theme:v,mode:O,disableMenuItemTitleTooltip:S}),[R,j,l,S,v]);return M(s.createElement(Au.Provider,{value:null},s.createElement(Fu.Provider,{value:D},s.createElement(Hs,Object.assign({getPopupContainer:a,overflowedIndicator:s.createElement(Bw,null),overflowedIndicatorPopupClassName:Z(R,`${R}-${v}`,w),mode:O,selectable:T,onClick:E},I,{inlineCollapsed:j,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:_,prefixCls:R,direction:l,defaultMotions:z,expandIcon:F,ref:t,rootClassName:Z(p,N,o.rootClassName,P,k),_internalComponents:Wz})))))}),ol=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(Bd);return s.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(Uz,Object.assign({ref:n},e,r))});ol.Item=Vw;ol.SubMenu=Ww;ol.Divider=Hw;ol.ItemGroup=lh;const Gz=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},qz=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:g,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:v},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, + &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, + &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, + &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, + &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, + &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Hg},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, + &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, + &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, + &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, + &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, + &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Kg},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, + &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, + &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vg},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, + &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, + &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Wg}}},$w(e,S,{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`]:Object.assign(Object.assign({},Zt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ws(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${G(u)} ${G(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ws(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(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:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(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:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ua(e,"slide-up"),Ua(e,"slide-down"),_u(e,"move-up"),_u(e,"move-down"),Gg(e,"zoom-big")]]},Xz=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},eh({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),xw(e)),Yz=vn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=zt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[qz(i),Gz(i)]},Xz,{resetStyle:!1}),Hd=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:v,onOpenChange:g,visible:S,onVisibleChange:b,mouseEnterDelay:h=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:x,transitionName:w}=e,{getPopupContainer:$,getPrefixCls:I,direction:E,dropdown:O}=s.useContext(it);Ci();const T=s.useMemo(()=>{const te=I();return w!==void 0?w:C.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[I,C,w]),j=s.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:E==="rtl"?"bottomRight":"bottomLeft",[C,E]),z=I("dropdown",o),R=qn(z),[k,M,N]=Yz(z,R),[,P]=Ln(),_=s.Children.only(i),F=Ir(_,{className:Z(`${z}-trigger`,{[`${z}-rtl`]:E==="rtl"},_.props.className),disabled:(t=_.props.disabled)!==null&&t!==void 0?t:l}),D=l?[]:a,B=!!(D!=null&&D.includes("contextMenu")),[V,q]=Mn(!1,{value:v??S}),H=At(te=>{g==null||g(te,{source:"trigger"}),b==null||b(te),q(te)}),X=Z(d,f,M,N,R,O==null?void 0:O.className,{[`${z}-rtl`]:E==="rtl"}),K=Ew({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:y,offset:P.marginXXS,arrowWidth:r?P.sizePopupArrow:0,borderRadius:P.borderRadius}),ne=s.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(g==null||g(!1,{source:"menu"}),q(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),oe=()=>{let te;return n!=null&&n.items?te=s.createElement(ol,Object.assign({},n)):typeof x=="function"?te=x():te=x,c&&(te=c(te)),te=s.Children.only(typeof te=="string"?s.createElement("span",null,te):te),s.createElement(Kw,{prefixCls:`${z}-menu`,rootClassName:Z(N,R),expandIcon:s.createElement("span",{className:`${z}-menu-submenu-arrow`},s.createElement(Ps,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:U=>{}},te)},[Y,W]=Pd("Dropdown",m==null?void 0:m.zIndex);let ee=s.createElement(K8,Object.assign({alignPoint:B},Tn(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:p,visible:V,builtinPlacements:K,arrow:!!r,overlayClassName:X,prefixCls:z,getPopupContainer:u||$,transitionName:T,trigger:D,overlay:oe,placement:j,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),m),{zIndex:Y})}),F);return Y&&(ee=s.createElement(Mg.Provider,{value:W},ee)),k(ee)};function Qz(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Zz=Q2(Hd,"dropdown",e=>e,Qz),Jz=e=>s.createElement(Zz,Object.assign({},e),s.createElement("span",null));Hd._InternalPanelDoNotUseOrYouWillBeFired=Jz;const Uw=s.createContext(null),e_=Uw.Provider,Gw=s.createContext(null),t_=Gw.Provider;var n_=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],qw=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,g=ot(e,n_),S=s.useRef(null),b=s.useRef(null),h=Mn(u,{value:a}),p=J(h,2),y=p[0],C=p[1];s.useImperativeHandle(t,function(){return{focus:function(I){var E;(E=S.current)===null||E===void 0||E.focus(I)},blur:function(){var I;(I=S.current)===null||I===void 0||I.blur()},input:S.current,nativeElement:b.current}});var x=Z(r,o,L(L({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),l)),w=function(I){l||("checked"in e||C(I.target.checked),v==null||v({target:A(A({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return s.createElement("span",{className:x,title:m,style:i,ref:b},s.createElement("input",he({},g,{className:"".concat(r,"-input"),ref:S,onChange:w,disabled:l,checked:!!y,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});const r_=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Zt(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"}})}},o_=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:g,lineType:S,radioColor:b,radioBgColor:h,calc:p}=e,y=`${t}-inner`,x=p(o).sub(p(4).mul(2)),w=p(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Zt(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:`${G(d)} ${S} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},gi(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:w,height:w,marginBlockStart:p(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:p(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:b,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{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`]:{[y]:{"&::after":{transform:`scale(${p(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},i_=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:v,controlHeightSM:g,paddingXS:S,borderRadius:b,borderRadiusSM:h,borderRadiusLG:p,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:I,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:T,buttonSolidCheckedBg:j,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:R,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(k(n).sub(k(o).mul(2)).equal()),background:f,border:`${G(o)} ${i} ${a}`,borderBlockStartWidth:k(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].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:k(o).mul(-1).equal(),insetInlineStart:k(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(o)} ${i} ${a}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:v,fontSize:m,lineHeight:G(k(v).sub(k(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},[`${r}-group-small &`]:{height:g,paddingInline:k(S).sub(o).equal(),paddingBlock:0,lineHeight:G(k(g).sub(k(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},gi(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:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:j,borderColor:j,"&:hover":{color:C,background:z,borderColor:z},"&:active":{color:C,background:R,borderColor:R}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:$,borderColor:a,boxShadow:"none"}}}},a_=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:g}=e,S=4,b=i,h=t?b-S*2:b-(S+o)*2;return{radioSize:b,dotSize:h,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?l:f}},Xw=vn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,i=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[r_(i),o_(i),i_(i)]},a_,{unitless:{radioSize:!0,dotSize:!0}});var l_=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=s.useContext(Uw),i=s.useContext(Gw),{getPrefixCls:a,direction:l,radio:c}=s.useContext(it),u=s.useRef(null),d=Pr(t,u),{isFormItemInput:f}=s.useContext(tr),m=R=>{var k,M;(k=e.onChange)===null||k===void 0||k.call(e,R),(M=o==null?void 0:o.onChange)===null||M===void 0||M.call(o,R)},{prefixCls:v,className:g,rootClassName:S,children:b,style:h,title:p}=e,y=l_(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",v),x=((o==null?void 0:o.optionType)||i)==="button",w=x?`${C}-button`:C,$=qn(C),[I,E,O]=Xw(C,$),T=Object.assign({},y),j=s.useContext(Co);o&&(T.name=o.name,T.onChange=m,T.checked=e.value===o.value,T.disabled=(n=T.disabled)!==null&&n!==void 0?n:o.disabled),T.disabled=(r=T.disabled)!==null&&r!==void 0?r:j;const z=Z(`${w}-wrapper`,{[`${w}-wrapper-checked`]:T.checked,[`${w}-wrapper-disabled`]:T.disabled,[`${w}-wrapper-rtl`]:l==="rtl",[`${w}-wrapper-in-form-item`]:f},c==null?void 0:c.className,g,S,E,O,$);return I(s.createElement(Tg,{component:"Radio",disabled:T.disabled},s.createElement("label",{className:z,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:p},s.createElement(qw,Object.assign({},T,{className:Z(T.className,{[Md]:!x}),type:"radio",prefixCls:w,ref:d})),b!==void 0?s.createElement("span",null,b):null)))},Bu=s.forwardRef(s_),c_=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(it),[o,i]=Mn(e.defaultValue,{value:e.value}),a=R=>{const k=o,M=R.target.value;"value"in e||i(M);const{onChange:N}=e;N&&M!==k&&N(R)},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:v,size:g,style:S,id:b,onMouseEnter:h,onMouseLeave:p,onFocus:y,onBlur:C}=e,x=n("radio",l),w=`${x}-group`,$=qn(x),[I,E,O]=Xw(x,$);let T=v;d&&d.length>0&&(T=d.map(R=>typeof R=="string"||typeof R=="number"?s.createElement(Bu,{key:R.toString(),prefixCls:x,disabled:m,value:R,checked:o===R},R):s.createElement(Bu,{key:`radio-group-value-options-${R.value}`,prefixCls:x,disabled:R.disabled||m,value:R.value,checked:o===R.value,title:R.title,style:R.style,id:R.id,required:R.required},R.label)));const j=so(g),z=Z(w,`${w}-${f}`,{[`${w}-${j}`]:j,[`${w}-rtl`]:r==="rtl"},c,u,E,O,$);return I(s.createElement("div",Object.assign({},Br(e,{aria:!0,data:!0}),{className:z,style:S,onMouseEnter:h,onMouseLeave:p,onFocus:y,onBlur:C,id:b,ref:t}),s.createElement(e_,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},T)))}),u_=s.memo(c_);var d_=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}=s.useContext(it),{prefixCls:r}=e,o=d_(e,["prefixCls"]),i=n("radio",r);return s.createElement(t_,{value:"button"},s.createElement(Bu,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},m_=s.forwardRef(f_),Vs=Bu;Vs.Button=m_;Vs.Group=u_;Vs.__ANT_RADIO=!0;function sh(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const ch=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:g,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:h,colorWarningOutline:p,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:v,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${h}`,warningActiveShadow:`0 0 0 ${S}px ${p}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},v_=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Vd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},v_(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),uh=(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}}),Fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),p_=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Vd(e))}),Fy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Fy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Ay=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),g_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ay(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Ay(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Vd(e))}})}),h_=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Yw=(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}}),By=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),y_=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Vd(e))}),By(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),By(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Hy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),b_=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:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Hy(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Hy(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),S_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qw=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${G(t)} ${G(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},dh=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),fh=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},S_(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({},Qw(e)),"&-sm":Object.assign({},dh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),C_=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({},Qw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dh(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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(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:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(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"},Ou()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-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}}}})}},x_=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=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({},Zt(e)),fh(e)),p_(e)),y_(e)),h_(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},w_=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 ${G(e.inputAffixPadding)}`}}}},$_=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},fh(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),w_(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},E_=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),C_(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}}},g_(e)),b_(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}}})})}},I_=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()},[`> ${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}}}}},O_=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}, + &-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.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},R_=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},mh=vn("Input",e=>{const t=zt(e,sh(e));return[x_(t),O_(t),$_(t),E_(t),I_(t),R_(t),jg(t)]},ch,{resetFont:!1});function P_(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function g(b){var h=b||{},p=h.upcomingOnly,y=p===void 0?!1:p;v(),f=!y}function S(){for(var b=arguments.length,h=new Array(b),p=0;pe?l?(m=Date.now(),i||(d=setTimeout(u?w:x,e))):x():i!==!0&&(d=setTimeout(u?w:x,u===void 0?e-C:e))}return S.cancel=g,S}function N_(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return P_(e,t,{debounceMode:i!==!1})}function ar(e,t){return e[t]}var M_=["children"];function Zw(e,t){return"".concat(e,"-").concat(t)}function T_(e){return e&&e.type&&e.type.isTreeNode}function Ks(e,t){return e??t}function Ga(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function Jw(e){function t(n){var r=Er(n);return r.map(function(o){if(!T_(o))return Xt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,c=ot(a,M_),u=A({key:i},c),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Zf(e,t,n){var r=Ga(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var g=Zw(f?f.pos:"0",v),S=Ks(m[i],g),b,h=0;h1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),z_(e,function(v){var g=v.node,S=v.index,b=v.pos,h=v.key,p=v.parentPos,y=v.level,C=v.nodes,x={node:g,nodes:C,index:S,key:h,pos:b,level:y},w=Ks(h,b);d[b]=x,f[w]=x,x.parent=d[p],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,m)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),o&&o(m),m}function Kl(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=ar(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function gn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,g=A(A({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Xt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function e$(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function __(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function j_(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(f){var m=f.key,v=f.node,g=f.children,S=g===void 0?[]:g;o.has(m)&&!r(v)&&S.filter(function(b){return!r(b.node)}).forEach(function(b){o.add(b.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var g=!0,S=!1;(m.children||[]).filter(function(b){return!r(b.node)}).forEach(function(b){var h=b.key,p=o.has(h);g&&!p&&(g=!1),!S&&(p||i.has(h))&&(S=!0)}),g&&o.add(m.key),S&&i.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(e$(i,o))}}function k_(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var v=m.key,g=m.node,S=m.children,b=S===void 0?[]:S;!i.has(v)&&!a.has(v)&&!o(g)&&b.filter(function(h){return!o(h.node)}).forEach(function(h){i.delete(h.key)})})}a=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 v=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var S=!0,b=!1;(v.children||[]).filter(function(h){return!o(h.node)}).forEach(function(h){var p=h.key,y=i.has(p);S&&!y&&(S=!1),!b&&(y||a.has(p))&&(b=!0)}),S||i.delete(v.key),b&&a.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(e$(a,i))}}function za(e,t,n,r){var o=[],i;r?i=r:i=__;var a=new Set(e.filter(function(d){var f=!!ar(n,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=l.get(m);v||(v=new Set,l.set(m,v)),v.add(f),c=Math.max(c,m)}),Xt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=j_(a,l,c,i):u=k_(a,t.halfCheckedKeys,l,c,i),u}const L_=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Zt(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({},Zt(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({},gi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(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:`${G(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} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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 t$(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[L_(n)]}const n$=vn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[t$(n,e)]}),r$=ie.createContext(null);var D_=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:i,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=D_(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:S,checkbox:b}=s.useContext(it),h=s.useContext(r$),{isFormItemInput:p}=s.useContext(tr),y=s.useContext(Co),C=(n=(h==null?void 0:h.disabled)||m)!==null&&n!==void 0?n:y,x=s.useRef(v.value);s.useEffect(()=>{h==null||h.registerValue(v.value)},[]),s.useEffect(()=>{if(!f)return v.value!==x.current&&(h==null||h.cancelValue(x.current),h==null||h.registerValue(v.value),x.current=v.value),()=>h==null?void 0:h.cancelValue(v.value)},[v.value]);const w=g("checkbox",r),$=qn(w),[I,E,O]=n$(w,$),T=Object.assign({},v);h&&!f&&(T.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),h.toggleOption&&h.toggleOption({label:a,value:v.value})},T.name=h.name,T.checked=h.value.includes(v.value));const j=Z(`${w}-wrapper`,{[`${w}-rtl`]:S==="rtl",[`${w}-wrapper-checked`]:T.checked,[`${w}-wrapper-disabled`]:C,[`${w}-wrapper-in-form-item`]:p},b==null?void 0:b.className,o,i,O,$,E),z=Z({[`${w}-indeterminate`]:l},Md,E),R=l?"mixed":void 0;return I(s.createElement(Tg,{component:"Checkbox",disabled:C},s.createElement("label",{className:j,style:Object.assign(Object.assign({},b==null?void 0:b.style),c),onMouseEnter:u,onMouseLeave:d},s.createElement(qw,Object.assign({"aria-checked":R},T,{prefixCls:w,className:z,disabled:C,ref:t})),a!==void 0&&s.createElement("span",null,a))))},o$=s.forwardRef(F_);var A_=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:i,className:a,rootClassName:l,style:c,onChange:u}=e,d=A_(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(it),[v,g]=s.useState(d.value||n||[]),[S,b]=s.useState([]);s.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const h=s.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),p=k=>{b(M=>M.filter(N=>N!==k))},y=k=>{b(M=>[].concat(de(M),[k]))},C=k=>{const M=v.indexOf(k.value),N=de(v);M===-1?N.push(k.value):N.splice(M,1),"value"in d||g(N),u==null||u(N.filter(P=>S.includes(P)).sort((P,_)=>{const F=h.findIndex(B=>B.value===P),D=h.findIndex(B=>B.value===_);return F-D}))},x=f("checkbox",i),w=`${x}-group`,$=qn(x),[I,E,O]=n$(x,$),T=Tn(d,["value","disabled"]),j=o.length?h.map(k=>s.createElement(o$,{prefixCls:x,key:k.value.toString(),disabled:"disabled"in k?k.disabled:d.disabled,value:k.value,checked:v.includes(k.value),onChange:k.onChange,className:`${w}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,z={toggleOption:C,value:v,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:p},R=Z(w,{[`${w}-rtl`]:m==="rtl"},a,l,O,$,E);return I(s.createElement("div",Object.assign({className:R,style:c},T,{ref:t}),s.createElement(r$.Provider,{value:z},j)))}),qa=o$;qa.Group=B_;qa.__ANT_CHECKBOX=!0;const i$=s.createContext({}),H_=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"}}}},V_=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},K_=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},cp=(e,t)=>K_(e,t),W_=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},cp(e,n))}),U_=()=>({}),G_=()=>({}),q_=vn("Grid",H_,U_),X_=vn("Grid",e=>{const t=zt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[V_(t),cp(t,""),cp(t,"-xs"),Object.keys(n).map(r=>W_(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},G_);var Y_=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}=s.useContext(it),{gutter:o,wrap:i}=s.useContext(i$),{prefixCls:a,span:l,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:g,style:S}=e,b=Y_(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),h=n("col",a),[p,y,C]=X_(h),x={};let w={};Q_.forEach(E=>{let O={};const T=e[E];typeof T=="number"?O.span=T:typeof T=="object"&&(O=T||{}),delete b[E],w=Object.assign(Object.assign({},w),{[`${h}-${E}-${O.span}`]:O.span!==void 0,[`${h}-${E}-order-${O.order}`]:O.order||O.order===0,[`${h}-${E}-offset-${O.offset}`]:O.offset||O.offset===0,[`${h}-${E}-push-${O.push}`]:O.push||O.push===0,[`${h}-${E}-pull-${O.pull}`]:O.pull||O.pull===0,[`${h}-rtl`]:r==="rtl"}),O.flex&&(w[`${h}-${E}-flex`]=!0,x[`--${h}-${E}-flex`]=Vy(O.flex))});const $=Z(h,{[`${h}-${l}`]:l!==void 0,[`${h}-order-${c}`]:c,[`${h}-offset-${u}`]:u,[`${h}-push-${d}`]:d,[`${h}-pull-${f}`]:f},m,w,y,C),I={};if(o&&o[0]>0){const E=o[0]/2;I.paddingLeft=E,I.paddingRight=E}return g&&(I.flex=Vy(g),i===!1&&!I.minWidth&&(I.minWidth=0)),p(s.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},I),S),x),className:$,ref:t}),v))});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{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{o()},[JSON.stringify(e),t]),n}const J_=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:u}=e,d=Z_(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(it),[v,g]=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,b]=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),h=Ky(o,S),p=Ky(r,S),y=s.useRef(c),C=yw();s.useEffect(()=>{const N=C.subscribe(P=>{b(P);const _=y.current||0;(!Array.isArray(_)&&typeof _=="object"||Array.isArray(_)&&(typeof _[0]=="object"||typeof _[1]=="object"))&&g(P)});return()=>C.unsubscribe(N)},[]);const x=()=>{const N=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((_,F)=>{if(typeof _=="object")for(let D=0;D0?O[0]/-2:void 0;z&&(j.marginLeft=z,j.marginRight=z);const[R,k]=O;j.rowGap=k;const M=s.useMemo(()=>({gutter:[R,k],wrap:u}),[R,k,u]);return $(s.createElement(i$.Provider,{value:M},s.createElement("div",Object.assign({},d,{className:T,style:Object.assign(Object.assign({},j),a),ref:t}),l)))}),ej=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{borderBlockStart:`${G(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(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:`${G(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(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},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-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}}})}},tj=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),nj=vn("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[ej(t)]},tj,{unitless:{orientationMargin:!0}});var rj=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}=s.useContext(it),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:m="solid",plain:v,style:g}=e,S=rj(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",o),[h,p,y]=nj(b),C=!!d,x=a==="left"&&l!=null,w=a==="right"&&l!=null,$=Z(b,r==null?void 0:r.className,p,y,`${b}-${i}`,{[`${b}-with-text`]:C,[`${b}-with-text-${a}`]:C,[`${b}-dashed`]:!!f,[`${b}-${m}`]:m!=="solid",[`${b}-plain`]:!!v,[`${b}-rtl`]:n==="rtl",[`${b}-no-default-orientation-margin-left`]:x,[`${b}-no-default-orientation-margin-right`]:w},c,u),I=s.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),E=Object.assign(Object.assign({},x&&{marginLeft:I}),w&&{marginRight:I});return h(s.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),g)},S,{role:"separator"}),d&&i!=="vertical"&&s.createElement("span",{className:`${b}-inner-text`,style:E},d)))};function oj(e){return!!(e.addonBefore||e.addonAfter)}function ij(e){return!!(e.prefix||e.suffix||e.allowClear)}function Wy(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),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Hu(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Wy(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Wy(t,e,r),n(o);return}n(o)}}function aj(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 l$=ie.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,v=e.disabled,g=e.readOnly,S=e.focused,b=e.triggerFocus,h=e.allowClear,p=e.value,y=e.handleReset,C=e.hidden,x=e.classes,w=e.classNames,$=e.dataAttrs,I=e.styles,E=e.components,O=e.onClear,T=i??o,j=(E==null?void 0:E.affixWrapper)||"span",z=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",k=(E==null?void 0:E.groupAddon)||"span",M=s.useRef(null),N=function(U){var ae;(ae=M.current)!==null&&ae!==void 0&&ae.contains(U.target)&&(b==null||b())},P=ij(e),_=s.cloneElement(T,{value:p,className:Z(T.props.className,!P&&(w==null?void 0:w.variant))||null}),F=s.useRef(null);if(ie.useImperativeHandle(t,function(){return{nativeElement:F.current||M.current}}),P){var D=null;if(h){var B=!v&&!g&&p,V="".concat(a,"-clear-icon"),q=Fe(h)==="object"&&h!==null&&h!==void 0&&h.clearIcon?h.clearIcon:"✖";D=ie.createElement("span",{onClick:function(U){y==null||y(U),O==null||O()},onMouseDown:function(U){return U.preventDefault()},className:Z(V,L(L({},"".concat(V,"-hidden"),!B),"".concat(V,"-has-suffix"),!!c)),role:"button",tabIndex:-1},q)}var H="".concat(a,"-affix-wrapper"),X=Z(H,L(L(L(L(L({},"".concat(a,"-disabled"),v),"".concat(H,"-disabled"),v),"".concat(H,"-focused"),S),"".concat(H,"-readonly"),g),"".concat(H,"-input-with-clear-btn"),c&&h&&p),x==null?void 0:x.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),K=(c||h)&&ie.createElement("span",{className:Z("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:I==null?void 0:I.suffix},D,c);_=ie.createElement(j,he({className:X,style:I==null?void 0:I.affixWrapper,onClick:N},$==null?void 0:$.affixWrapper,{ref:M}),l&&ie.createElement("span",{className:Z("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:I==null?void 0:I.prefix},l),_,K)}if(oj(e)){var ne="".concat(a,"-group"),oe="".concat(ne,"-addon"),Y="".concat(ne,"-wrapper"),W=Z("".concat(a,"-wrapper"),ne,x==null?void 0:x.wrapper,w==null?void 0:w.wrapper),ee=Z(Y,L({},"".concat(Y,"-disabled"),v),x==null?void 0:x.group,w==null?void 0:w.groupWrapper);_=ie.createElement(z,{className:ee,ref:F},ie.createElement(R,{className:W},u&&ie.createElement(k,{className:oe},u),_,d&&ie.createElement(k,{className:oe},d)))}return ie.cloneElement(_,{className:Z((n=_.props)===null||n===void 0?void 0:n.className,f)||null,style:A(A({},(r=_.props)===null||r===void 0?void 0:r.style),m),hidden:C})}),lj=["show"];function s$(e,t){return s.useMemo(function(){var n={};t&&(n.show=Fe(t)==="object"&&t.formatter?t.formatter:!!t),n=A(A({},n),e);var r=n,o=r.show,i=ot(r,lj);return A(A({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var sj=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],cj=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,v=e.className,g=e.maxLength,S=e.suffix,b=e.showCount,h=e.count,p=e.type,y=p===void 0?"text":p,C=e.classes,x=e.classNames,w=e.styles,$=e.onCompositionStart,I=e.onCompositionEnd,E=ot(e,sj),O=s.useState(!1),T=J(O,2),j=T[0],z=T[1],R=s.useRef(!1),k=s.useRef(!1),M=s.useRef(null),N=s.useRef(null),P=function(ce){M.current&&aj(M.current,ce)},_=Mn(e.defaultValue,{value:e.value}),F=J(_,2),D=F[0],B=F[1],V=D==null?"":String(D),q=s.useState(null),H=J(q,2),X=H[0],K=H[1],ne=s$(h,b),oe=ne.max||g,Y=ne.strategy(V),W=!!oe&&Y>oe;s.useImperativeHandle(t,function(){var se;return{focus:P,blur:function(){var ye;(ye=M.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,be,Ke){var je;(je=M.current)===null||je===void 0||je.setSelectionRange(ye,be,Ke)},select:function(){var ye;(ye=M.current)===null||ye===void 0||ye.select()},input:M.current,nativeElement:((se=N.current)===null||se===void 0?void 0:se.nativeElement)||M.current}}),s.useEffect(function(){z(function(se){return se&&f?!1:se})},[f]);var ee=function(ce,ye,be){var Ke=ye;if(!R.current&&ne.exceedFormatter&&ne.max&&ne.strategy(ye)>ne.max){if(Ke=ne.exceedFormatter(ye,{max:ne.max}),ye!==Ke){var je,We;K([((je=M.current)===null||je===void 0?void 0:je.selectionStart)||0,((We=M.current)===null||We===void 0?void 0:We.selectionEnd)||0])}}else if(be.source==="compositionEnd")return;B(Ke),M.current&&Hu(M.current,ce,r,Ke)};s.useEffect(function(){if(X){var se;(se=M.current)===null||se===void 0||se.setSelectionRange.apply(se,de(X))}},[X]);var te=function(ce){ee(ce,ce.target.value,{source:"change"})},U=function(ce){R.current=!1,ee(ce,ce.currentTarget.value,{source:"compositionEnd"}),I==null||I(ce)},ae=function(ce){a&&ce.key==="Enter"&&!k.current&&(k.current=!0,a(ce)),l==null||l(ce)},re=function(ce){ce.key==="Enter"&&(k.current=!1),c==null||c(ce)},me=function(ce){z(!0),o==null||o(ce)},le=function(ce){z(!1),i==null||i(ce)},fe=function(ce){B(""),P(),M.current&&Hu(M.current,ce,r)},ue=W&&"".concat(d,"-out-of-range"),pe=function(){var ce=Tn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ie.createElement("input",he({autoComplete:n},ce,{onChange:te,onFocus:me,onBlur:le,onKeyDown:ae,onKeyUp:re,className:Z(d,L({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:w==null?void 0:w.input,ref:M,size:m,type:y,onCompositionStart:function(be){R.current=!0,$==null||$(be)},onCompositionEnd:U}))},Oe=function(){var ce=Number(oe)>0;if(S||ne.show){var ye=ne.showFormatter?ne.showFormatter({value:V,count:Y,maxLength:oe}):"".concat(Y).concat(ce?" / ".concat(oe):"");return ie.createElement(ie.Fragment,null,ne.show&&ie.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!S),x==null?void 0:x.count),style:A({},w==null?void 0:w.count)},ye),S)}return null};return ie.createElement(l$,he({},E,{prefixCls:d,className:Z(v,ue),handleReset:fe,value:V,focused:j,triggerFocus:P,suffix:Oe(),disabled:f,classes:C,classNames:x,styles:w}),pe())});const uj=e=>{const{getPrefixCls:t,direction:n}=s.useContext(it),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c]=mh(a),u=Z(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),d=s.useContext(tr),f=s.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(s.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(tr.Provider,{value:f},e.children)))},c$=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ie.createElement(Od,null)}),t};function u$(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function dj(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var fj=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:i,size:a,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:g,style:S,styles:b,rootClassName:h,onChange:p,classNames:y,variant:C}=e,x=fj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:$,input:I}=ie.useContext(it),E=w("input",r),O=s.useRef(null),T=qn(E),[j,z,R]=mh(E,T),{compactSize:k,compactItemClassnames:M}=Fs(E,$),N=so(te=>{var U;return(U=a??k)!==null&&U!==void 0?U:te}),P=ie.useContext(Co),_=l??P,{status:F,hasFeedback:D,feedbackIcon:B}=s.useContext(tr),V=kd(F,i),q=dj(e)||!!D;s.useRef(q);const H=u$(O,!0),X=te=>{H(),c==null||c(te)},K=te=>{H(),u==null||u(te)},ne=te=>{H(),p==null||p(te)},oe=(D||d)&&ie.createElement(ie.Fragment,null,d,D&&B),Y=c$(f??(I==null?void 0:I.allowClear)),[W,ee]=Jg("input",C,o);return j(ie.createElement(cj,Object.assign({ref:Pr(t,O),prefixCls:E,autoComplete:I==null?void 0:I.autoComplete},x,{disabled:_,onBlur:X,onFocus:K,style:Object.assign(Object.assign({},I==null?void 0:I.style),S),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),b),suffix:oe,allowClear:Y,className:Z(g,h,R,T,M,I==null?void 0:I.className),onChange:ne,addonBefore:v&&ie.createElement(zu,{form:!0,space:!0},v),addonAfter:m&&ie.createElement(zu,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},y),I==null?void 0:I.classNames),{input:Z({[`${E}-sm`]:N==="small",[`${E}-lg`]:N==="large",[`${E}-rtl`]:$==="rtl"},y==null?void 0:y.input,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.input,z),variant:Z({[`${E}-${W}`]:ee},ku(E,V)),affixWrapper:Z({[`${E}-affix-wrapper-sm`]:N==="small",[`${E}-affix-wrapper-lg`]:N==="large",[`${E}-affix-wrapper-rtl`]:$==="rtl"},z),wrapper:Z({[`${E}-group-rtl`]:$==="rtl"},z),groupWrapper:Z({[`${E}-group-wrapper-sm`]:N==="small",[`${E}-group-wrapper-lg`]:N==="large",[`${E}-group-wrapper-rtl`]:$==="rtl",[`${E}-group-wrapper-${W}`]:ee},ku(`${E}-group-wrapper`,V,D),z)})})))}),Kd=vj,pj=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},gj=vn(["Input","OTP"],e=>{const t=zt(e,sh(e));return[pj(t)]},ch);var hj=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:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=hj(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof a=="string"?a:n,u=g=>{r(i,g.target.value)},d=s.useRef(null);s.useImperativeHandle(t,()=>d.current);const f=()=>{Tt(()=>{var g;const S=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===S&&S&&S.select()})},m=g=>{let{key:S}=g;S==="ArrowLeft"?o(i-1):S==="ArrowRight"&&o(i+1),f()},v=g=>{g.key==="Backspace"&&!n&&o(i-1),f()};return s.createElement(Kd,Object.assign({},l,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:m,onKeyUp:v,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var bj=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,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,g=bj(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:S,direction:b}=s.useContext(it),h=S("otp",n),p=Br(g,{aria:!0,data:!0,attr:!0}),y=qn(h),[C,x,w]=gj(h,y),$=so(D=>o??D),I=s.useContext(tr),E=kd(I.status,f),O=s.useMemo(()=>Object.assign(Object.assign({},I),{status:E,hasFeedback:!1,feedbackIcon:null}),[I,E]),T=s.useRef(null),j=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var D;(D=j.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let B=0;Bc?c(D):D,[R,k]=s.useState(Ec(z(i||"")));s.useEffect(()=>{a!==void 0&&k(Ec(a))},[a]);const M=At(D=>{k(D),l&&D.length===r&&D.every(B=>B)&&D.some((B,V)=>R[V]!==B)&&l(D.join(""))}),N=At((D,B)=>{let V=de(R);for(let H=0;H=0&&!V[H];H-=1)V.pop();const q=z(V.map(H=>H||" ").join(""));return V=Ec(q).map((H,X)=>H===" "&&!V[X]?V[X]:H),V}),P=(D,B)=>{var V;const q=N(D,B),H=Math.min(D+B.length,r-1);H!==D&&((V=j.current[H])===null||V===void 0||V.focus()),M(q)},_=D=>{var B;(B=j.current[D])===null||B===void 0||B.focus()},F={variant:u,disabled:d,status:E,mask:v};return C(s.createElement("div",Object.assign({},p,{ref:T,className:Z(h,{[`${h}-sm`]:$==="small",[`${h}-lg`]:$==="large",[`${h}-rtl`]:b==="rtl"},w,x)}),s.createElement(tr.Provider,{value:O},Array.from({length:r}).map((D,B)=>{const V=`otp-${B}`,q=R[B]||"";return s.createElement(yj,Object.assign({ref:H=>{j.current[B]=H},key:V,index:B,size:$,htmlSize:1,className:`${h}-input`,onChange:P,value:q,onActiveChange:_,autoFocus:B===0&&m},F))}))))});var Cj={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"},xj=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:Cj}))},wj=s.forwardRef(xj),$j={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"},Ej=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:$j}))},Ij=s.forwardRef(Ej),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);oe?s.createElement(Ij,null):s.createElement(wj,null),Pj={click:"onClick",hover:"onMouseOver"},Nj=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=Rj}=e,a=typeof o=="object"&&o.visible!==void 0,[l,c]=s.useState(()=>a?o.visible:!1),u=s.useRef(null);s.useEffect(()=>{a&&c(o.visible)},[a,o]);const d=u$(u),f=()=>{n||(l&&d(),c(I=>{var E;const O=!I;return typeof o=="object"&&((E=o.onVisibleChange)===null||E===void 0||E.call(o,O)),O}))},m=I=>{const E=Pj[r]||"",O=i(l),T={[E]:f,className:`${I}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return s.cloneElement(s.isValidElement(O)?O:s.createElement("span",null,O),T)},{className:v,prefixCls:g,inputPrefixCls:S,size:b}=e,h=Oj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:p}=s.useContext(it),y=p("input",S),C=p("input-password",g),x=o&&m(C),w=Z(C,v,{[`${C}-${b}`]:!!b}),$=Object.assign(Object.assign({},Tn(h,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:w,prefixCls:y,suffix:x});return b&&($.size=b),s.createElement(Kd,Object.assign({ref:Pr(t,u)},$))});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{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:g}=e,S=Mj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:h}=s.useContext(it),p=s.useRef(!1),y=b("input-search",n),C=b("input",r),{compactSize:x}=Fs(y,h),w=so(F=>{var D;return(D=i??x)!==null&&D!==void 0?D:F}),$=s.useRef(null),I=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),m==null||m(F)},E=F=>{var D;document.activeElement===((D=$.current)===null||D===void 0?void 0:D.input)&&F.preventDefault()},O=F=>{var D,B;f&&f((B=(D=$.current)===null||D===void 0?void 0:D.input)===null||B===void 0?void 0:B.value,F,{source:"input"})},T=F=>{p.current||u||O(F)},j=typeof l=="boolean"?s.createElement(Ld,null):null,z=`${y}-button`;let R;const k=l||{},M=k.type&&k.type.__ANT_BUTTON===!0;M||k.type==="button"?R=Ir(k,Object.assign({onMouseDown:E,onClick:F=>{var D,B;(B=(D=k==null?void 0:k.props)===null||D===void 0?void 0:D.onClick)===null||B===void 0||B.call(D,F),O(F)},key:"enterButton"},M?{className:z,size:w}:{})):R=s.createElement(Zn,{className:z,type:l?"primary":void 0,size:w,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:j},l),c&&(R=[R,Ir(c,{key:"addonAfter"})]);const N=Z(y,{[`${y}-rtl`]:h==="rtl",[`${y}-${w}`]:!!w,[`${y}-with-button`]:!!l},o),P=F=>{p.current=!0,v==null||v(F)},_=F=>{p.current=!1,g==null||g(F)};return s.createElement(Kd,Object.assign({ref:Pr($,t),onPressEnter:T},S,{size:w,onCompositionStart:P,onCompositionEnd:_,prefixCls:C,addonAfter:R,suffix:a,onChange:I,className:N,disabled:d}))});var zj=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,_j=["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"],Jf={},Tr;function jj(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&&Jf[n])return Jf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=_j.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Jf[n]=c),c}function kj(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;Tr||(Tr=document.createElement("textarea"),Tr.setAttribute("tab-index","-1"),Tr.setAttribute("aria-hidden","true"),document.body.appendChild(Tr)),e.getAttribute("wrap")?Tr.setAttribute("wrap",e.getAttribute("wrap")):Tr.removeAttribute("wrap");var o=jj(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Tr.setAttribute("style","".concat(c,";").concat(zj)),Tr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Tr.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){Tr.value=" ";var v=Tr.scrollHeight-i;n!==null&&(u=v*n,l==="border-box"&&(u=u+i+a),m=Math.max(u,m)),r!==null&&(d=v*r,l==="border-box"&&(d=d+i+a),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 Lj=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],em=0,tm=1,nm=2,Dj=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ot(n,Lj),v=Mn(o,{value:i,postState:function(q){return q??""}}),g=J(v,2),S=g[0],b=g[1],h=function(q){b(q.target.value),f==null||f(q)},p=s.useRef();s.useImperativeHandle(t,function(){return{textArea:p.current}});var y=s.useMemo(function(){return a&&Fe(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=J(y,2),x=C[0],w=C[1],$=!!a,I=function(){try{if(document.activeElement===p.current){var q=p.current,H=q.selectionStart,X=q.selectionEnd,K=q.scrollTop;p.current.setSelectionRange(H,X),p.current.scrollTop=K}}catch{}},E=s.useState(nm),O=J(E,2),T=O[0],j=O[1],z=s.useState(),R=J(z,2),k=R[0],M=R[1],N=function(){j(em)};Nt(function(){$&&N()},[i,x,w,$]),Nt(function(){if(T===em)j(tm);else if(T===tm){var V=kj(p.current,!1,x,w);j(nm),M(V)}else I()},[T]);var P=s.useRef(),_=function(){Tt.cancel(P.current)},F=function(q){T===nm&&(l==null||l(q),a&&(_(),P.current=Tt(function(){N()})))};s.useEffect(function(){return _},[]);var D=$?k:null,B=A(A({},u),D);return(T===em||T===tm)&&(B.overflowY="hidden",B.overflowX="hidden"),s.createElement(lo,{onResize:F,disabled:!(a||l)},s.createElement("textarea",he({},m,{ref:p,style:B,className:Z(r,c,L({},"".concat(r,"-disabled"),d)),disabled:d,value:S,onChange:h})))}),Fj=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Aj=ie.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,g=v===void 0?"rc-textarea":v,S=e.showCount,b=e.count,h=e.className,p=e.style,y=e.disabled,C=e.hidden,x=e.classNames,w=e.styles,$=e.onResize,I=e.onClear,E=e.onPressEnter,O=e.readOnly,T=e.autoSize,j=e.onKeyDown,z=ot(e,Fj),R=Mn(r,{value:o,defaultValue:r}),k=J(R,2),M=k[0],N=k[1],P=M==null?"":String(M),_=ie.useState(!1),F=J(_,2),D=F[0],B=F[1],V=ie.useRef(!1),q=ie.useState(null),H=J(q,2),X=H[0],K=H[1],ne=s.useRef(null),oe=s.useRef(null),Y=function(){var Ie;return(Ie=oe.current)===null||Ie===void 0?void 0:Ie.textArea},W=function(){Y().focus()};s.useImperativeHandle(t,function(){var Re;return{resizableTextArea:oe.current,focus:W,blur:function(){Y().blur()},nativeElement:((Re=ne.current)===null||Re===void 0?void 0:Re.nativeElement)||Y()}}),s.useEffect(function(){B(function(Re){return!y&&Re})},[y]);var ee=ie.useState(null),te=J(ee,2),U=te[0],ae=te[1];ie.useEffect(function(){if(U){var Re;(Re=Y()).setSelectionRange.apply(Re,de(U))}},[U]);var re=s$(b,S),me=(n=re.max)!==null&&n!==void 0?n:u,le=Number(me)>0,fe=re.strategy(P),ue=!!me&&fe>me,pe=function(Ie,Me){var ke=Me;!V.current&&re.exceedFormatter&&re.max&&re.strategy(Me)>re.max&&(ke=re.exceedFormatter(Me,{max:re.max}),Me!==ke&&ae([Y().selectionStart||0,Y().selectionEnd||0])),N(ke),Hu(Ie.currentTarget,Ie,l,ke)},Oe=function(Ie){V.current=!0,d==null||d(Ie)},se=function(Ie){V.current=!1,pe(Ie,Ie.currentTarget.value),f==null||f(Ie)},ce=function(Ie){pe(Ie,Ie.target.value)},ye=function(Ie){Ie.key==="Enter"&&E&&E(Ie),j==null||j(Ie)},be=function(Ie){B(!0),i==null||i(Ie)},Ke=function(Ie){B(!1),a==null||a(Ie)},je=function(Ie){N(""),W(),Hu(Y(),Ie,l)},We=m,Se;re.show&&(re.showFormatter?Se=re.showFormatter({value:P,count:fe,maxLength:me}):Se="".concat(fe).concat(le?" / ".concat(me):""),We=ie.createElement(ie.Fragment,null,We,ie.createElement("span",{className:Z("".concat(g,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},Se)));var Be=function(Ie){var Me;$==null||$(Ie),(Me=Y())!==null&&Me!==void 0&&Me.style.height&&K(!0)},Pe=!T&&!S&&!c;return ie.createElement(l$,{ref:ne,value:P,allowClear:c,handleReset:je,suffix:We,prefixCls:g,classNames:A(A({},x),{},{affixWrapper:Z(x==null?void 0:x.affixWrapper,L(L({},"".concat(g,"-show-count"),S),"".concat(g,"-textarea-allow-clear"),c))}),disabled:y,focused:D,className:Z(h,ue&&"".concat(g,"-out-of-range")),style:A(A({},p),X&&!Pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:C,readOnly:O,onClear:I},ie.createElement(Dj,he({},z,{autoSize:T,maxLength:u,onKeyDown:ye,onChange:ce,onFocus:be,onBlur:Ke,onCompositionStart:Oe,onCompositionEnd:se,className:Z(x==null?void 0:x.textarea),style:A(A({},w==null?void 0:w.textarea),{},{resize:p==null?void 0:p.resize}),disabled:y,prefixCls:g,onResize:Be,ref:oe,readOnly:O})))}),Bj=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:i=!0,size:a,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:g,variant:S}=e,b=Bj(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:h,direction:p,textArea:y}=s.useContext(it),C=so(a),x=s.useContext(Co),w=l??x,{status:$,hasFeedback:I,feedbackIcon:E}=s.useContext(tr),O=kd($,c),T=s.useRef(null);s.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=T.current)===null||F===void 0?void 0:F.resizableTextArea,focus:D=>{var B,V;mj((V=(B=T.current)===null||B===void 0?void 0:B.resizableTextArea)===null||V===void 0?void 0:V.textArea,D)},blur:()=>{var D;return(D=T.current)===null||D===void 0?void 0:D.blur()}}});const j=h("input",o),z=qn(j),[R,k,M]=mh(j,z),[N,P]=Jg("textArea",S,i),_=c$(u??(y==null?void 0:y.allowClear));return R(s.createElement(Aj,Object.assign({autoComplete:y==null?void 0:y.autoComplete},b,{style:Object.assign(Object.assign({},y==null?void 0:y.style),v),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),g),disabled:w,allowClear:_,className:Z(M,z,m,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Z({[`${j}-sm`]:C==="small",[`${j}-lg`]:C==="large"},k,d==null?void 0:d.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:Z({[`${j}-${N}`]:P},ku(j,O)),affixWrapper:Z(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:p==="rtl",[`${j}-affix-wrapper-sm`]:C==="small",[`${j}-affix-wrapper-lg`]:C==="large",[`${j}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},k)}),prefixCls:j,suffix:I&&s.createElement("span",{className:`${j}-textarea-suffix`},E),ref:T})))}),po=Kd;po.Group=uj;po.Search=Tj;po.TextArea=Rl;po.Password=Nj;po.OTP=Sj;function Uy(e){return["small","middle","large"].includes(e)}function Gy(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const d$=ie.createContext({latestIndex:0}),Hj=d$.Provider,Vj=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=s.useContext(d$);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:i},r),n{var n,r,o;const{getPrefixCls:i,space:a,direction:l}=s.useContext(it),{size:c=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:m,direction:v="horizontal",prefixCls:g,split:S,style:b,wrap:h=!1,classNames:p,styles:y}=e,C=Kj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,w]=Array.isArray(c)?c:[c,c],$=Uy(w),I=Uy(x),E=Gy(w),O=Gy(x),T=Er(m,{keepEmpty:!0}),j=u===void 0&&v==="horizontal"?"center":u,z=i("space",g),[R,k,M]=w2(z),N=Z(z,a==null?void 0:a.className,k,`${z}-${v}`,{[`${z}-rtl`]:l==="rtl",[`${z}-align-${j}`]:j,[`${z}-gap-row-${w}`]:$,[`${z}-gap-col-${x}`]:I},d,f,M),P=Z(`${z}-item`,(r=p==null?void 0:p.item)!==null&&r!==void 0?r:(o=a==null?void 0:a.classNames)===null||o===void 0?void 0:o.item);let _=0;const F=T.map((V,q)=>{var H,X;V!=null&&(_=q);const K=(V==null?void 0:V.key)||`${P}-${q}`;return s.createElement(Vj,{className:P,key:K,index:q,split:S,style:(H=y==null?void 0:y.item)!==null&&H!==void 0?H:(X=a==null?void 0:a.styles)===null||X===void 0?void 0:X.item},V)}),D=s.useMemo(()=>({latestIndex:_}),[_]);if(T.length===0)return null;const B={};return h&&(B.flexWrap="wrap"),!I&&O&&(B.columnGap=x),!$&&E&&(B.rowGap=w),R(s.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),a==null?void 0:a.style),b)},C),s.createElement(Hj,{value:D},F)))}),mo=Wj;mo.Compact=zP;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);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(it),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:g,autoFocus:S,overlay:b,trigger:h,align:p,open:y,onOpenChange:C,placement:x,getPopupContainer:w,href:$,icon:I=s.createElement(Bw,null),title:E,buttonsRender:O=ne=>ne,mouseEnterDelay:T,mouseLeaveDelay:j,overlayClassName:z,overlayStyle:R,destroyPopupOnHide:k,dropdownRender:M}=e,N=Uj(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"]),P=n("dropdown",o),_=`${P}-button`,F={menu:v,arrow:g,autoFocus:S,align:p,disabled:l,trigger:l?[]:h,onOpenChange:C,getPopupContainer:w||t,mouseEnterDelay:T,mouseLeaveDelay:j,overlayClassName:z,overlayStyle:R,destroyPopupOnHide:k,dropdownRender:M},{compactSize:D,compactItemClassnames:B}=Fs(P,r),V=Z(_,B,m);"overlay"in e&&(F.overlay=b),"open"in e&&(F.open=y),"placement"in e?F.placement=x:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=s.createElement(Zn,{type:i,danger:a,disabled:l,loading:c,onClick:u,htmlType:d,href:$,title:E},f),H=s.createElement(Zn,{type:i,danger:a,icon:I}),[X,K]=O([q,H]);return s.createElement(mo.Compact,Object.assign({className:V,size:D,block:!0},N),X,s.createElement(Hd,Object.assign({},F),K))};f$.__ANT_BUTTON=!0;const ph=Hd;ph.Button=f$;function Vu(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Gj=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)"}}}}},qj=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(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 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),qy=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Xj=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Zt(e)),qj(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},qy(e,e.controlHeightSM)),"&-large":Object.assign({},qy(e,e.controlHeightLG))})}},Yj=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${i}-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:u,color:l,fontSize:c,[`> ${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:d,marginInlineEnd:f},[`&${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:Ug,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Xy=(e,t)=>{const{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"}}}}},Qj=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-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"}}}}},Jr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),m$=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Jr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Zj=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + ${r}-col-24${n}-label, + ${r}-col-xl-24${n}-label`]:Jr(e)}},[`@media (max-width: ${G(e.screenXSMax)})`]:[m$(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jr(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jr(e)}}}}},Jj=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${n}-col-24${t}-label, + ${n}-col-xl-24${t}-label`]:Jr(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[m$(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jr(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jr(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jr(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jr(e)}}}},ek=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,inlineItemMarginBottom:0}),v$=(e,t)=>zt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),gh=vn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=v$(e,n);return[Xj(r),Yj(r),Gj(r),Xy(r,r.componentCls),Xy(r,r.formItemCls),Qj(r),Zj(r),Jj(r),Ag(r),Ug]},ek,{order:-1e3}),Yy=[];function rm(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 p$=e=>{let{help:t,helpStatus:n,errors:r=Yy,warnings:o=Yy,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(Fg),u=`${c}-item-explain`,d=qn(c),[f,m,v]=gh(c,d),g=s.useMemo(()=>Mu(c),[c]),S=Vu(r),b=Vu(o),h=s.useMemo(()=>t!=null?[rm(t,"help",n)]:[].concat(de(S.map((y,C)=>rm(y,"error","error",C))),de(b.map((y,C)=>rm(y,"warning","warning",C)))),[t,n,S,b]),p={};return a&&(p.id=`${a}_help`),f(s.createElement(xi,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!h.length,onVisibleChanged:l},y=>{const{className:C,style:x}=y;return s.createElement("div",Object.assign({},p,{className:Z(u,C,v,d,i,m),style:x,role:"alert"}),s.createElement(a2,Object.assign({keys:h},Mu(c),{motionName:`${c}-show-help-item`,component:!1}),w=>{const{key:$,error:I,errorStatus:E,className:O,style:T}=w;return s.createElement("div",{key:$,className:Z(O,{[`${u}-${E}`]:E}),style:T},I)}))}))},tk=["parentNode"],nk="form_item";function Wl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function g$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:tk.includes(n)?`${nk}_${n}`:n}function h$(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Qy(e){return Wl(e).join("_")}function rk(e,t){const n=t.getFieldInstance(e),r=ex(n);if(r)return r;const o=g$(Wl(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function y$(e){const[t]=Dg(),n=s.useRef({}),r=s.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Qy(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=rk(o,r);a&&U5(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Qy(o);return n.current[i]}}),[e,t]);return[r]}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 n=s.useContext(Co),{getPrefixCls:r,direction:o,form:i}=s.useContext(it),{prefixCls:a,className:l,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:v,labelWrap:g,labelCol:S,wrapperCol:b,hideRequiredMark:h,layout:p="horizontal",scrollToFirstError:y,requiredMark:C,onFinishFailed:x,name:w,style:$,feedbackIcons:I,variant:E}=e,O=ok(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=so(u),j=s.useContext(zx),z=s.useMemo(()=>C!==void 0?C:h?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[h,C,i]),R=m??(i==null?void 0:i.colon),k=r("form",a),M=qn(k),[N,P,_]=gh(k,M),F=Z(k,`${k}-${p}`,{[`${k}-hide-required-mark`]:z===!1,[`${k}-rtl`]:o==="rtl",[`${k}-${T}`]:T},_,M,P,i==null?void 0:i.className,l,c),[D]=y$(f),{__INTERNAL__:B}=D;B.name=w;const V=s.useMemo(()=>({name:w,labelAlign:v,labelCol:S,labelWrap:g,wrapperCol:b,vertical:p==="vertical",colon:R,requiredMark:z,itemRef:B.itemRef,form:D,feedbackIcons:I}),[w,v,S,b,p,R,z,D,I]),q=s.useRef(null);s.useImperativeHandle(t,()=>{var K;return Object.assign(Object.assign({},D),{nativeElement:(K=q.current)===null||K===void 0?void 0:K.nativeElement})});const H=(K,ne)=>{if(K){let oe={block:"nearest"};typeof K=="object"&&(oe=K),D.scrollToField(ne,oe)}},X=K=>{if(x==null||x(K),K.errorFields.length){const ne=K.errorFields[0].name;if(y!==void 0){H(y,ne);return}i&&i.scrollToFirstError!==void 0&&H(i.scrollToFirstError,ne)}};return N(s.createElement(V2.Provider,{value:E},s.createElement(Hx,{disabled:d},s.createElement(Ki.Provider,{value:T},s.createElement(H2,{validateMessages:j},s.createElement(Bo.Provider,{value:V},s.createElement(nl,Object.assign({id:w},O,{name:w,onFinishFailed:X,form:D,ref:q,style:Object.assign(Object.assign({},i==null?void 0:i.style),$),className:F}))))))))},ak=s.forwardRef(ik);function lk(e){if(typeof e=="function")return e;const t=Er(e);return t.length<=1?t[0]:t}const b$=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(tr);return{status:e,errors:t,warnings:n}};b$.Context=tr;function sk(e){const[t,n]=s.useState(e),r=s.useRef(null),o=s.useRef([]),i=s.useRef(!1);s.useEffect(()=>(i.current=!1,()=>{i.current=!0,Tt.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Tt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,a]}function ck(){const{itemRef:e}=s.useContext(Bo),t=s.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Pr(e(r),i)),t.current.ref}return n}const uk=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},dk=Id(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=v$(e,n);return[uk(r)]}),fk=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,v=`${t}-item`,g=s.useContext(Bo),S=r||g.wrapperCol||{},b=Z(`${v}-control`,S.className),h=s.useMemo(()=>Object.assign({},g),[g]);delete h.labelCol,delete h.wrapperCol;const p=s.createElement("div",{className:`${v}-control-input`},s.createElement("div",{className:`${v}-control-input-content`},o)),y=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=f!==null||i.length||a.length?s.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},s.createElement(Fg.Provider,{value:y},s.createElement(p$,{fieldId:d,errors:i,warnings:a,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:m})),!!f&&s.createElement("div",{style:{width:0,height:f}})):null,x={};d&&(x.id=`${d}_extra`);const w=c?s.createElement("div",Object.assign({},x,{className:`${v}-extra`}),c):null,$=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:p,errorList:C,extra:w}):s.createElement(s.Fragment,null,p,C,w);return s.createElement(Bo.Provider,{value:h},s.createElement(a$,Object.assign({},S,{className:b}),$),s.createElement(dk,{prefixCls:t}))};var mk={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"},vk=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:mk}))},pk=s.forwardRef(vk),gk=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:i,colon:a,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[m]=Rg("Form"),{labelAlign:v,labelCol:g,labelWrap:S,colon:b}=s.useContext(Bo);if(!n)return null;const h=o||g||{},p=i||v,y=`${t}-item-label`,C=Z(y,p==="left"&&`${y}-left`,h.className,{[`${y}-wrap`]:!!S});let x=n;const w=a===!0||b!==!1&&a!==!1;w&&!d&&typeof n=="string"&&n.trim()&&(x=n.replace(/[:|:]\s*$/,""));const I=hk(u);if(I){const{icon:j=s.createElement(pk,null)}=I,z=gk(I,["icon"]),R=s.createElement(Rs,Object.assign({},z),s.cloneElement(j,{className:`${t}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));x=s.createElement(s.Fragment,null,x,R)}const E=c==="optional",O=typeof c=="function";O?x=c(x,{required:!!l}):E&&!l&&(x=s.createElement(s.Fragment,null,x,s.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=pi.Form)===null||f===void 0?void 0:f.optional))));const T=Z({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||O,[`${t}-item-no-colon`]:!w});return s.createElement(a$,Object.assign({},h,{className:C}),s.createElement("label",{htmlFor:r,className:T,title:typeof n=="string"?n:""},x))},bk={success:v2,warning:g2,error:Od,validating:Rd};function S$(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:d}=s.useContext(Bo),f=h$(n,r,l,null,!!o,i),{isFormItemInput:m,status:v,hasFeedback:g,feedbackIcon:S}=s.useContext(tr),b=s.useMemo(()=>{var h;let p;if(o){const C=o!==!0&&o.icons||d,x=f&&((h=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||h===void 0?void 0:h[f]),w=f&&bk[f];p=x!==!1&&w?s.createElement("span",{className:Z(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},x||s.createElement(w,null)):null}const y={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:p,isFormItemInput:!0};return c&&(y.status=(f??v)||"",y.isFormItemInput=m,y.hasFeedback=!!(o??g),y.feedbackIcon=o!==void 0?y.feedbackIcon:S),y},[f,o,c,m,v]);return s.createElement(tr.Provider,{value:b},t)}var Sk=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&&$.current){const _=getComputedStyle($.current);R(parseInt(_.marginBottom,10))}},[T,j]);const k=_=>{_||R(null)},N=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=_?I:u.errors,D=_?E:u.warnings;return h$(F,D,u,"",!!d,c)}(),P=Z(y,n,r,{[`${y}-with-help`]:O||I.length||E.length,[`${y}-has-feedback`]:N&&d,[`${y}-has-success`]:N==="success",[`${y}-has-warning`]:N==="warning",[`${y}-has-error`]:N==="error",[`${y}-is-validating`]:N==="validating",[`${y}-hidden`]:f,[`${y}-${h}`]:h});return s.createElement("div",{className:P,style:o,ref:$},s.createElement(J_,Object.assign({className:`${y}-row`},Tn(p,["_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"])),s.createElement(yk,Object.assign({htmlFor:v},e,{requiredMark:C,required:g??S,prefixCls:t,vertical:w})),s.createElement(fk,Object.assign({},e,u,{errors:I,warnings:E,prefixCls:t,status:N,help:i,marginBottom:z,onErrorVisibleChanged:k}),s.createElement(B2.Provider,{value:b},s.createElement(S$,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},m)))),!!z&&s.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-z}}))}const xk="__SPLIT__";function wk(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const $k=s.memo(e=>{let{children:t}=e;return t},(e,t)=>wk(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Zy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ek(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:g,help:S,layout:b}=e,{getPrefixCls:h}=s.useContext(it),{name:p}=s.useContext(Bo),y=lk(c),C=typeof y=="function",x=s.useContext(B2),{validateTrigger:w}=s.useContext(Wi),$=v!==void 0?v:w,I=t!=null,E=h("form",i),O=qn(E),[T,j,z]=gh(E,O);Ci();const R=s.useContext(Es),k=s.useRef(),[M,N]=sk({}),[P,_]=Wa(()=>Zy()),F=K=>{const ne=R==null?void 0:R.getKey(K.name);if(_(K.destroy?Zy():K,!0),n&&S!==!1&&x){let oe=K.name;if(K.destroy)oe=k.current||oe;else if(ne!==void 0){const[Y,W]=ne;oe=[Y].concat(de(W)),k.current=oe}x(K,oe)}},D=(K,ne)=>{N(oe=>{const Y=Object.assign({},oe),ee=[].concat(de(K.name.slice(0,-1)),de(ne)).join(xk);return K.destroy?delete Y[ee]:Y[ee]=K,Y})},[B,V]=s.useMemo(()=>{const K=de(P.errors),ne=de(P.warnings);return Object.values(M).forEach(oe=>{K.push.apply(K,de(oe.errors||[])),ne.push.apply(ne,de(oe.warnings||[]))}),[K,ne]},[M,P.errors,P.warnings]),q=ck();function H(K,ne,oe){return n&&!g?s.createElement(S$,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:B,warnings:V,noStyle:!0},K):s.createElement(Ck,Object.assign({key:"row"},e,{className:Z(r,z,O,j),prefixCls:E,fieldId:ne,isRequired:oe,errors:B,warnings:V,meta:P,onSubItemMetaChange:D,layout:b}),K)}if(!I&&!C&&!o)return T(H(y));let X={};return typeof d=="string"?X.label=d:t&&(X.label=String(t)),f&&(X=Object.assign(Object.assign({},X),f)),T(s.createElement(Lg,Object.assign({},e,{messageVariables:X,trigger:m,validateTrigger:$,onMetaChange:F}),(K,ne,oe)=>{const Y=Wl(t).length&&ne?ne.name:[],W=g$(Y,p),ee=u!==void 0?u:!!(l!=null&&l.some(ae=>{if(ae&&typeof ae=="object"&&ae.required&&!ae.warningOnly)return!0;if(typeof ae=="function"){const re=ae(oe);return(re==null?void 0:re.required)&&!(re!=null&&re.warningOnly)}return!1})),te=Object.assign({},K);let U=null;if(Array.isArray(y)&&I)U=y;else if(!(C&&(!(a||o)||I))){if(!(o&&!C&&!I))if(s.isValidElement(y)){const ae=Object.assign(Object.assign({},y.props),te);if(ae.id||(ae.id=W),S||B.length>0||V.length>0||e.extra){const le=[];(S||B.length>0)&&le.push(`${W}_help`),e.extra&&le.push(`${W}_extra`),ae["aria-describedby"]=le.join(" ")}B.length>0&&(ae["aria-invalid"]="true"),ee&&(ae["aria-required"]="true"),io(y)&&(ae.ref=q(Y,y)),new Set([].concat(de(Wl(m)),de(Wl($)))).forEach(le=>{ae[le]=function(){for(var fe,ue,pe,Oe,se,ce=arguments.length,ye=new Array(ce),be=0;be{var{prefixCls:t,children:n}=e,r=Ik(e,["prefixCls","children"]);const{getPrefixCls:o}=s.useContext(it),i=o("form",t),a=s.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return s.createElement(L2,Object.assign({},r),(l,c,u)=>s.createElement(Fg.Provider,{value:a},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function Rk(){const{form:e}=s.useContext(Bo);return e}const cn=ak;cn.Item=C$;cn.List=Ok;cn.ErrorList=p$;cn.useForm=y$;cn.useFormInstance=Rk;cn.useWatch=A2;cn.Provider=H2;cn.create=()=>{};function Jy(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)}}function Ic(e,t,n,r){var o=us.unstable_batchedUpdates?function(a){us.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function Pk(e,t,n){return typeof n=="boolean"?n:e.length?!0:Er(t).some(o=>o.type===Aw)}const Nk=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},Mk=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:v,motionDurationMid:g,motionDurationSlow:S,fontSize:b,borderRadius:h,bodyBg:p,headerBg:y,siderBg:C}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{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:C,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:G(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(v).mul(-1).equal(),zIndex:1,width:v,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${S} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${S}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(v).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},Nk(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:u,lineHeight:G(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:b,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Tk=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=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:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},x$=vn("Layout",e=>[Mk(e)],Tk,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});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);os.forwardRef((a,l)=>s.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const hh=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=w$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(it),c=l("layout",n),[u,d,f]=x$(c),m=r?`${c}-${r}`:c;return u(s.createElement(i,Object.assign({className:Z(n||m,o,d,f),ref:t},a)))}),zk=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(it),[r,o]=s.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=w$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=Tn(m,["suffixCls"]),{getPrefixCls:g,layout:S}=s.useContext(it),b=g("layout",i),h=Pk(r,c,u),[p,y,C]=x$(b),x=Z(b,{[`${b}-has-sider`]:h,[`${b}-rtl`]:n==="rtl"},S==null?void 0:S.className,a,l,y,C),w=s.useMemo(()=>({siderHook:{addSider:$=>{o(I=>[].concat(de(I),[$]))},removeSider:$=>{o(I=>I.filter(E=>E!==$))}}}),[]);return p(s.createElement(Fw.Provider,{value:w},s.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},S==null?void 0:S.style),f)},v),c)))}),_k=Wd({tagName:"div",displayName:"Layout"})(zk),$$=Wd({suffixCls:"header",tagName:"header",displayName:"Header"})(hh),E$=Wd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(hh),I$=Wd({suffixCls:"content",tagName:"main",displayName:"Content"})(hh),Ui=_k;Ui.Header=$$;Ui.Footer=E$;Ui.Content=I$;Ui.Sider=Aw;Ui._InternalSiderContext=Bd;const jk=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};var kk={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"},Lk=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:kk}))},eb=s.forwardRef(Lk),Dk={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"},Fk=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:Dk}))},tb=s.forwardRef(Fk),Ak={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:"页码"},Bk=["10","20","50","100"],Hk=function(t){var n=t.pageSizeOptions,r=n===void 0?Bk:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,v=t.buildOptionText,g=ie.useState(""),S=J(g,2),b=S[0],h=S[1],p=function(){return!b||Number.isNaN(b)?void 0:Number(b)},y=typeof v=="function"?v:function(R){return"".concat(R," ").concat(o.items_per_page)},C=function(k){i==null||i(Number(k))},x=function(k){h(k.target.value)},w=function(k){l||b===""||(h(""),!(k.relatedTarget&&(k.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||k.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(p())))},$=function(k){b!==""&&(k.keyCode===ge.ENTER||k.type==="click")&&(h(""),c==null||c(p()))},I=function(){return r.some(function(k){return k.toString()===a.toString()})?r:r.concat([a.toString()]).sort(function(k,M){var N=Number.isNaN(Number(k))?0:Number(k),P=Number.isNaN(Number(M))?0:Number(M);return N-P})},E="".concat(u,"-options");if(!i&&!c)return null;var O=null,T=null,j=null;if(i&&d){var z=I().map(function(R,k){return ie.createElement(d.Option,{key:k,value:R.toString()},y(R))});O=ie.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),onChange:C,getPopupContainer:function(k){return k.parentNode},"aria-label":o.page_size,defaultOpen:!1},z)}return c&&(l&&(j=typeof l=="boolean"?ie.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):ie.createElement("span",{onClick:$,onKeyUp:$},l)),T=ie.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,ie.createElement("input",{disabled:m,type:"text",value:b,onChange:x,onKeyUp:$,onBlur:w,"aria-label":o.page}),o.page,j)),ie.createElement("li",{className:E},O,T)},Cl=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,c=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"),i),L(n,"".concat(f,"-disabled"),!o),n),a),v=function(){c(o)},g=function(h){u(h,c,o)},S=d(o,"page",ie.createElement("a",{rel:"nofollow"},o));return S?ie.createElement("li",{title:l?String(o):null,className:m,onClick:v,onKeyDown:g,tabIndex:0},S):null},Vk=function(t,n,r){return r};function nb(){}function rb(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ei(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Kk=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,l=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,v=m===void 0?0:m,g=t.pageSize,S=t.defaultPageSize,b=S===void 0?10:S,h=t.onChange,p=h===void 0?nb:h,y=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,w=x===void 0?!0:x,$=t.showQuickJumper,I=t.showLessItems,E=t.showTitle,O=E===void 0?!0:E,T=t.onShowSizeChange,j=T===void 0?nb:T,z=t.locale,R=z===void 0?Ak:z,k=t.style,M=t.totalBoundaryShowSizeChanger,N=M===void 0?50:M,P=t.disabled,_=t.simple,F=t.showTotal,D=t.showSizeChanger,B=t.pageSizeOptions,V=t.itemRender,q=V===void 0?Vk:V,H=t.jumpPrevIcon,X=t.jumpNextIcon,K=t.prevIcon,ne=t.nextIcon,oe=ie.useRef(null),Y=Mn(10,{value:g,defaultValue:b}),W=J(Y,2),ee=W[0],te=W[1],U=Mn(1,{value:u,defaultValue:f,postState:function(rt){return Math.max(1,Math.min(rt,Ei(void 0,ee,v)))}}),ae=J(U,2),re=ae[0],me=ae[1],le=ie.useState(re),fe=J(le,2),ue=fe[0],pe=fe[1];s.useEffect(function(){pe(re)},[re]);var Oe=Math.max(1,re-(I?3:5)),se=Math.min(Ei(void 0,ee,v),re+(I?3:5));function ce(Ze,rt){var ht=Ze||ie.createElement("button",{type:"button","aria-label":rt,className:"".concat(o,"-item-link")});return typeof Ze=="function"&&(ht=ie.createElement(Ze,A({},t))),ht}function ye(Ze){var rt=Ze.target.value,ht=Ei(void 0,ee,v),dn;return rt===""?dn=rt:Number.isNaN(Number(rt))?dn=ue:rt>=ht?dn=ht:dn=Number(rt),dn}function be(Ze){return rb(Ze)&&Ze!==re&&rb(v)&&v>0}var Ke=v>ee?$:!1;function je(Ze){(Ze.keyCode===ge.UP||Ze.keyCode===ge.DOWN)&&Ze.preventDefault()}function We(Ze){var rt=ye(Ze);switch(rt!==ue&&pe(rt),Ze.keyCode){case ge.ENTER:Pe(rt);break;case ge.UP:Pe(rt-1);break;case ge.DOWN:Pe(rt+1);break}}function Se(Ze){Pe(ye(Ze))}function Be(Ze){var rt=Ei(Ze,ee,v),ht=re>rt&&rt!==0?rt:re;te(Ze),pe(ht),j==null||j(re,Ze),me(ht),p==null||p(ht,Ze)}function Pe(Ze){if(be(Ze)&&!P){var rt=Ei(void 0,ee,v),ht=Ze;return Ze>rt?ht=rt:Ze<1&&(ht=1),ht!==ue&&pe(ht),me(ht),p==null||p(ht,ee),ht}return re}var Re=re>1,Ie=reN;function ke(){Re&&Pe(re-1)}function nt(){Ie&&Pe(re+1)}function Ue(){Pe(Oe)}function $t(){Pe(se)}function at(Ze,rt){if(Ze.key==="Enter"||Ze.charCode===ge.ENTER||Ze.keyCode===ge.ENTER){for(var ht=arguments.length,dn=new Array(ht>2?ht-2:0),Fn=2;Fnv?v:re*ee])),Ce=null,we=Ei(void 0,ee,v);if(y&&v<=ee)return null;var xe=[],Ne={rootPrefixCls:o,onClick:Pe,onKeyPress:at,showTitle:O,itemRender:q,page:-1},dt=re-1>0?re-1:0,mt=re+1=Xe*2&&re!==3&&(xe[0]=ie.cloneElement(xe[0],{className:Z("".concat(o,"-item-after-jump-prev"),xe[0].props.className)}),xe.unshift($e)),we-re>=Xe*2&&re!==we-2){var Ht=xe[xe.length-1];xe[xe.length-1]=ie.cloneElement(Ht,{className:Z("".concat(o,"-item-before-jump-next"),Ht.props.className)}),xe.push(Ce)}_e!==1&&xe.unshift(ie.createElement(Cl,he({},Ne,{key:1,page:1}))),tt!==we&&xe.push(ie.createElement(Cl,he({},Ne,{key:we,page:we})))}var en=He(dt);if(en){var Ut=!Re||!we;en=ie.createElement("li",{title:O?R.prev_page:null,onClick:ke,tabIndex:Ut?null:0,onKeyDown:Ot,className:Z("".concat(o,"-prev"),L({},"".concat(o,"-disabled"),Ut)),"aria-disabled":Ut},en)}var tn=Qe(mt);if(tn){var Cn,nn;_?(Cn=!Ie,nn=Re?0:null):(Cn=!Ie||!we,nn=Cn?null:0),tn=ie.createElement("li",{title:O?R.next_page:null,onClick:nt,tabIndex:nn,onKeyDown:lt,className:Z("".concat(o,"-next"),L({},"".concat(o,"-disabled"),Cn)),"aria-disabled":Cn},tn)}var Dn=Z(o,l,(n={},L(n,"".concat(o,"-start"),C==="start"),L(n,"".concat(o,"-center"),C==="center"),L(n,"".concat(o,"-end"),C==="end"),L(n,"".concat(o,"-simple"),_),L(n,"".concat(o,"-disabled"),P),n));return ie.createElement("ul",he({className:Dn,style:k,ref:oe},Ge),et,en,_?De:xe,tn,ie.createElement(Hk,{locale:R,rootPrefixCls:o,disabled:P,selectComponentClass:c,selectPrefixCls:a,changeSize:Me?Be:null,pageSize:ee,pageSizeOptions:B,quickGo:Ke?Pe:null,goButton:qe}))};const O$=e=>s.createElement(Vo,Object.assign({},e,{showSearch:!0,size:"small"})),R$=e=>s.createElement(Vo,Object.assign({},e,{showSearch:!0,size:"middle"}));O$.Option=Vo.Option;R$.Option=Vo.Option;const Wk=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"}}}}}},Uk=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(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:G(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:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},dh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Gk=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:G(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:G(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(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:`${G(e.inputOutlineOffset)} 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},qk=e=>{const{componentCls:t,antCls:n}=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 + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(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:`${G(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":{display:"inline-block",width:"auto",[`${n}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},fh(e)),uh(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Vd(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Xk=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(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}}}}},Yk=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Xk(e)),qk(e)),Gk(e)),Uk(e)),Wk(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"}}},Qk=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ws(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},gi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},gi(e))}}}},P$=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},ch(e)),N$=e=>zt(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.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},sh(e)),Zk=vn("Pagination",e=>{const t=N$(e);return[Yk(t),Qk(t)]},P$),Jk=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:`${G(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}}}}},e7=Id(["Pagination","bordered"],e=>{const t=N$(e);return[Jk(t)]},P$);var t7=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{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,m=t7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=Sw(d),[,g]=Ln(),{getPrefixCls:S,direction:b,pagination:h={}}=s.useContext(it),p=S("pagination",n),[y,C,x]=Zk(p),w=f??h.showSizeChanger,$=s.useMemo(()=>{const k=s.createElement("span",{className:`${p}-item-ellipsis`},"•••"),M=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},b==="rtl"?s.createElement(Ps,null):s.createElement(Du,null)),N=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},b==="rtl"?s.createElement(Du,null):s.createElement(Ps,null)),P=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},b==="rtl"?s.createElement(tb,{className:`${p}-item-link-icon`}):s.createElement(eb,{className:`${p}-item-link-icon`}),k)),_=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},b==="rtl"?s.createElement(eb,{className:`${p}-item-link-icon`}):s.createElement(tb,{className:`${p}-item-link-icon`}),k));return{prevIcon:M,nextIcon:N,jumpPrevIcon:P,jumpNextIcon:_}},[b,p]),[I]=Rg("Pagination",_x),E=Object.assign(Object.assign({},I),c),O=so(l),T=O==="small"||!!(v&&!O&&d),j=S("select",r),z=Z({[`${p}-${t}`]:!!t,[`${p}-mini`]:T,[`${p}-rtl`]:b==="rtl",[`${p}-bordered`]:g.wireframe},h==null?void 0:h.className,o,i,C,x),R=Object.assign(Object.assign({},h==null?void 0:h.style),a);return y(s.createElement(s.Fragment,null,g.wireframe&&s.createElement(e7,{prefixCls:p}),s.createElement(Kk,Object.assign({},$,m,{style:R,prefixCls:p,selectPrefixCls:j,className:z,selectComponentClass:u||(T?O$:R$),locale:E,showSizeChanger:w}))))},Ku=100,M$=Ku/5,T$=Ku/2-M$/2,om=T$*2*Math.PI,ob=50,ib=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:Z(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:T$,cx:ob,cy:ob,strokeWidth:M$,style:n})},r7=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=s.useState(!1);Nt(()=>{t!==0&&l(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!a)return null;const u={strokeDashoffset:`${om/4}`,strokeDasharray:`${om*c/100} ${om*(100-c)/100}`};return s.createElement("span",{className:Z(o,`${r}-progress`,c<=0&&i)},s.createElement("svg",{viewBox:`0 0 ${Ku} ${Ku}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},s.createElement(ib,{dotClassName:r,hasCircleCls:!0}),s.createElement(ib,{dotClassName:r,style:u})))};function o7(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:Z(o,n>0&&i)},s.createElement("span",{className:Z(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>s.createElement("i",{className:`${t}-dot-item`,key:a})))),s.createElement(r7,{prefixCls:t,percent:n}))}function i7(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&s.isValidElement(n)?Ir(n,{className:Z(n.props.className,o),percent:r}):s.createElement(o7,{prefixCls:t,percent:r})}const a7=new It("antSpinMove",{to:{opacity:1}}),l7=new It("antRotate",{to:{transform:"rotate(405deg)"}}),s7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",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]:{[`${t}-dot-holder`]:{color: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-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${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(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:a7,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:l7,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{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`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{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"}})}},c7=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},u7=vn("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return[s7(t)]},c7),d7=200,ab=[[30,.05],[70,.03],[96,.01]];function f7(e,t){const[n,r]=s.useState(0),o=s.useRef(),i=t==="auto";return s.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c{clearInterval(o.current)}),[i,e]),i?n:t}var m7=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,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:v,percent:g}=e,S=m7(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:h,spin:p}=s.useContext(it),y=b("spin",n),[C,x,w]=u7(y),[$,I]=s.useState(()=>r&&!v7(r,o)),E=f7($,g);s.useEffect(()=>{if(r){const M=N_(o,()=>{I(!0)});return M(),()=>{var N;(N=M==null?void 0:M.cancel)===null||N===void 0||N.call(M)}}I(!1)},[o,r]);const O=s.useMemo(()=>typeof f<"u"&&!m,[f,m]),T=Z(y,p==null?void 0:p.className,{[`${y}-sm`]:l==="small",[`${y}-lg`]:l==="large",[`${y}-spinning`]:$,[`${y}-show-text`]:!!c,[`${y}-rtl`]:h==="rtl"},i,!m&&a,x,w),j=Z(`${y}-container`,{[`${y}-blur`]:$}),z=(t=v??(p==null?void 0:p.indicator))!==null&&t!==void 0?t:z$,R=Object.assign(Object.assign({},p==null?void 0:p.style),d),k=s.createElement("div",Object.assign({},S,{style:R,className:T,"aria-live":"polite","aria-busy":$}),s.createElement(i7,{prefixCls:y,indicator:z,percent:E}),c&&(O||m)?s.createElement("div",{className:`${y}-text`},c):null);return C(O?s.createElement("div",Object.assign({},S,{className:Z(`${y}-nested-loading`,u,x,w)}),$&&s.createElement("div",{key:"loading"},k),s.createElement("div",{className:j,key:"container"},f)):m?s.createElement("div",{className:Z(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:$},a,x,w)},k):k)};yh.setDefaultIndicator=e=>{z$=e};let Qr=null,Yc=e=>e(),Wu=[],Ms={};function lb(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ms,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const p7=ie.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=s.useContext(it),i=Ms.prefixCls||o("notification"),a=s.useContext(iM),[l,c]=Y2(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return ie.useEffect(r,[]),ie.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}}),c}),g7=ie.forwardRef((e,t)=>{const[n,r]=ie.useState(lb),o=()=>{r(lb)};ie.useEffect(o,[]);const i=p5(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=ie.createElement(p7,{ref:t,sync:o,notificationConfig:n});return ie.createElement(Qi,{prefixCls:a,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(u):u)});function bh(){if(!Qr){const e=document.createDocumentFragment(),t={fragment:e};Qr=t,Yc(()=>{C2(ie.createElement(g7,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,bh())})}}),e)});return}Qr.instance&&(Wu.forEach(e=>{switch(e.type){case"open":{Yc(()=>{Qr.instance.open(Object.assign(Object.assign({},Ms),e.config))});break}case"destroy":Yc(()=>{Qr==null||Qr.instance.destroy(e.key)});break}}),Wu=[])}function h7(e){Ms=Object.assign(Object.assign({},Ms),e),Yc(()=>{var t;(t=Qr==null?void 0:Qr.sync)===null||t===void 0||t.call(Qr)})}function _$(e){Wu.push({type:"open",config:e}),bh()}const y7=e=>{Wu.push({type:"destroy",key:e}),bh()},b7=["success","info","warning","error"],S7={open:_$,destroy:y7,config:h7,useNotification:oM,_InternalPanelDoNotUseOrYouWillBeFired:XN},yr=S7;b7.forEach(e=>{yr[e]=t=>_$(Object.assign(Object.assign({},t),{type:e}))});var C7={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"},x7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:C7}))},w7=s.forwardRef(x7),$7={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},E7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:$7}))},I7=s.forwardRef(E7),O7={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},R7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:O7}))},P7=s.forwardRef(R7),N7={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"},M7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:N7}))},j$=s.forwardRef(M7),T7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},z7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:T7}))},_7=s.forwardRef(z7),j7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},k7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:j7}))},L7=s.forwardRef(k7),D7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},F7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:D7}))},A7=s.forwardRef(F7),B7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},H7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:B7}))},V7=s.forwardRef(H7),K7={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"},W7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:K7}))},U7=s.forwardRef(W7),G7={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"},q7=function(t,n){return s.createElement(jt,he({},t,{ref:n,icon:G7}))},X7=s.forwardRef(q7),Qo={},Ws="rc-table-internal-hook";function Sh(e){var t=s.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=s.useRef(i);l.current=i;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=J(c,1),d=u[0];return Nt(function(){bo.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),s.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function Gn(e,t){var n=At(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(v){m[v]=f[v]}),m}),r=s.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=s.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var c=s.useState({}),u=J(c,2),d=u[1];return Nt(function(){if(!r)return;function f(m){var v=n(m);So(l.current,v,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),l.current}function Y7(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(o,i){var a=io(o),l=function(u,d){var f=a?{ref:d}:{},m=s.useRef(0),v=s.useRef(u),g=t();return g!==null?s.createElement(o,he({},u,f)):((!i||i(v.current,u))&&(m.current+=1),v.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(o,he({},u,f))))};return a?s.forwardRef(l):l}function r(o,i){var a=io(o),l=function(u,d){var f=a?{ref:d}:{};return t(),s.createElement(o,he({},u,f))};return a?s.memo(s.forwardRef(l),i):s.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Ch=Y7(),k$=Ch.makeImmutable,il=Ch.responseImmutable,Q7=Ch.useImmutableMark,dr=Sh(),L$=s.createContext({renderWithProps:!1}),Z7="RC_TABLE_KEY";function J7(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ud(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||J7(a).join("-")||Z7;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function up(e){return e!=null}function eL(e){return e&&Fe(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function tL(e,t,n,r,o,i){var a=s.useContext(L$),l=Q7(),c=Yi(function(){if(up(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Cr(e,u),f=d,m=void 0;if(o){var v=o(d,e,n);eL(v)?(f=v.children,m=v.props,a.renderWithProps=!0):f=v}return[f,m]},[l,e,r,t,o,n],function(u,d){if(i){var f=J(u,2),m=f[1],v=J(d,2),g=v[1];return i(g,m)}return a.renderWithProps?!0:!So(u,d,!0)});return c}function nL(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function rL(e,t){return Gn(dr,function(n){var r=nL(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var oL=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function iL(e){var t,n,r,o,i,a,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,v=e.prefixCls,g=e.className,S=e.align,b=e.record,h=e.render,p=e.dataIndex,y=e.renderIndex,C=e.shouldCellUpdate,x=e.index,w=e.rowType,$=e.colSpan,I=e.rowSpan,E=e.fixLeft,O=e.fixRight,T=e.firstFixLeft,j=e.lastFixLeft,z=e.firstFixRight,R=e.lastFixRight,k=e.appendNode,M=e.additionalProps,N=M===void 0?{}:M,P=e.isSticky,_="".concat(v,"-cell"),F=Gn(dr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),D=F.supportSticky,B=F.allColumnsFixedLeft,V=F.rowHoverable,q=tL(b,p,y,d,h,C),H=J(q,2),X=H[0],K=H[1],ne={},oe=typeof E=="number"&&D,Y=typeof O=="number"&&D;oe&&(ne.position="sticky",ne.left=E),Y&&(ne.position="sticky",ne.right=O);var W=(t=(n=(r=K==null?void 0:K.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:$)!==null&&t!==void 0?t:1,ee=(o=(i=(a=K==null?void 0:K.rowSpan)!==null&&a!==void 0?a:N.rowSpan)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:1,te=rL(x,ee),U=J(te,2),ae=U[0],re=U[1],me=At(function(ce){var ye;b&&re(x,x+ee-1),N==null||(ye=N.onMouseEnter)===null||ye===void 0||ye.call(N,ce)}),le=At(function(ce){var ye;b&&re(-1,-1),N==null||(ye=N.onMouseLeave)===null||ye===void 0||ye.call(N,ce)});if(W===0||ee===0)return null;var fe=(l=N.title)!==null&&l!==void 0?l:oL({rowType:w,ellipsis:f,children:X}),ue=Z(_,g,(c={},L(c,"".concat(_,"-fix-left"),oe&&D),L(c,"".concat(_,"-fix-left-first"),T&&D),L(c,"".concat(_,"-fix-left-last"),j&&D),L(c,"".concat(_,"-fix-left-all"),j&&B&&D),L(c,"".concat(_,"-fix-right"),Y&&D),L(c,"".concat(_,"-fix-right-first"),z&&D),L(c,"".concat(_,"-fix-right-last"),R&&D),L(c,"".concat(_,"-ellipsis"),f),L(c,"".concat(_,"-with-append"),k),L(c,"".concat(_,"-fix-sticky"),(oe||Y)&&P&&D),L(c,"".concat(_,"-row-hover"),!K&&ae),c),N.className,K==null?void 0:K.className),pe={};S&&(pe.textAlign=S);var Oe=A(A(A(A({},ne),N.style),pe),K==null?void 0:K.style),se=X;return Fe(se)==="object"&&!Array.isArray(se)&&!s.isValidElement(se)&&(se=null),f&&(j||z)&&(se=s.createElement("span",{className:"".concat(_,"-content")},se)),s.createElement(u,he({},K,N,{className:ue,style:Oe,title:fe,scope:m,onMouseEnter:V?me:void 0,onMouseLeave:V?le:void 0,colSpan:W!==1?W:null,rowSpan:ee!==1?ee:null}),k,se)}const Ji=s.memo(iL);function xh(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},l,c;i.fixed==="left"?l=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,v=n[t+1],g=n[e-1],S=v&&!v.fixed||g&&!g.fixed||n.every(function(C){return C.fixed==="left"});if(o==="rtl"){if(l!==void 0){var b=g&&g.fixed==="left";m=!b&&S}else if(c!==void 0){var h=v&&v.fixed==="right";f=!h&&S}}else if(l!==void 0){var p=v&&v.fixed==="left";u=!p&&S}else if(c!==void 0){var y=g&&g.fixed==="right";d=!y&&S}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var D$=s.createContext({});function aL(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,c=Gn(dr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(D$),m=f.scrollColumnIndex,v=f.stickyOffsets,g=f.flattenColumns,S=n+i-1,b=S+1===m?i+1:i,h=xh(n,n+b-1,g,v,d);return s.createElement(Ji,he({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:b,rowSpan:a,render:function(){return r}},h))}var lL=["children"];function sL(e){var t=e.children,n=ot(e,lL);return s.createElement("tr",n,t)}function Gd(e){var t=e.children;return t}Gd.Row=sL;Gd.Cell=aL;function cL(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Gn(dr,"prefixCls"),i=r.length-1,a=r[i],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return s.createElement(D$.Provider,{value:l},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Oc=il(cL);var F$=Gd;function uL(e){return null}function dL(e){return null}function A$(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?T-1:0),z=1;z=1?x:""),style:A(A({},n),h==null?void 0:h.style)}),g.map(function(E,O){var T=E.render,j=E.dataIndex,z=E.className,R=K$(m,E,O,c,o),k=R.key,M=R.fixedInfo,N=R.appendCellNode,P=R.additionalCellProps;return s.createElement(Ji,he({className:z,ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:E.rowScope?f:d,prefixCls:v,key:k,record:r,index:o,renderIndex:i,dataIndex:j,render:T,shouldCellUpdate:E.shouldCellUpdate},M,{appendNode:N,additionalProps:P}))})),$;if(y&&(C.current||p)){var I=b(r,o,c+1,p);$=s.createElement(V$,{expanded:p,className:Z("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(c+1),x),prefixCls:v,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},I)}return s.createElement(s.Fragment,null,w,$)}const mL=il(fL);function vL(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return s.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),s.createElement(lo,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function pL(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(lo.Collection,{onBatchResize:function(i){i.forEach(function(a){var l=a.data,c=a.size;r(l,c.offsetWidth)})}},n.map(function(o){return s.createElement(vL,{key:o,columnKey:o,onColumnResize:r})})))}function gL(e){var t=e.data,n=e.measureColumnWidth,r=Gn(dr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=B$(t,d,u,c),v=s.useRef({renderWithProps:!1}),g=i(["body","wrapper"],"tbody"),S=i(["body","row"],"tr"),b=i(["body","cell"],"td"),h=i(["body","cell"],"th"),p;t.length?p=m.map(function(C,x){var w=C.record,$=C.indent,I=C.index,E=c(w,x);return s.createElement(mL,{key:E,rowKey:E,record:w,index:x,renderIndex:I,rowComponent:S,cellComponent:b,scopeCellComponent:h,getRowKey:c,indent:$})}):p=s.createElement(V$,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:S,cellComponent:b,colSpan:l.length,isEmpty:!0},f);var y=Ud(l);return s.createElement(L$.Provider,{value:v.current},s.createElement(g,{className:"".concat(o,"-tbody")},n&&s.createElement(pL,{prefixCls:o,columnsKey:y,onColumnResize:a}),p))}const hL=il(gL);var yL=["expandable"],Ul="RC_TABLE_INTERNAL_COL_DEFINE";function bL(e){var t=e.expandable,n=ot(e,yL),r;return"expandable"in e?r=A(A({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var SL=["columnType"];function W$(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],i=r||n.length,a=!1,l=i-1;l>=0;l-=1){var c=t[l],u=n&&n[l],d=u&&u[Ul];if(c||d||a){var f=d||{};f.columnType;var m=ot(f,SL);o.unshift(s.createElement("col",he({key:l,style:{width:c}},m))),a=!0}}return s.createElement("colgroup",null,o)}var CL=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function xL(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:b.ellipsis,align:b.align,component:a,prefixCls:d,key:v[S]},h,{additionalProps:p,rowType:"header"}))}))};function EL(e){var t=[];function n(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=a.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},v=1,g=f.children;return g&&g.length>0&&(v=n(g,u,c+1).reduce(function(S,b){return S+b},0),m.hasSubColumns=!0),"colSpan"in f&&(v=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=v,m.colEnd=m.colStart+v-1,t[c].push(m),u+=v,v});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function OL(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var v=ub(t,m.width);v?r+=v:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,u=0,d=e.map(function(m){var v=A({},m),g=ub(t,v.width);if(g)v.width=g;else{var S=Math.floor(c);v.width=l===1?a:S,a-=S,l-=1}return u+=v.width,v});if(u0?A(A({},t),{},{children:U$(n)}):t})}function dp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Fe(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,l="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(de(n),de(dp(c,l).map(function(u){return A({fixed:a},u)}))):[].concat(de(n),[A(A({key:l},r),{},{fixed:a})])},[])}function NL(e){return e.map(function(t){var n=t.fixed,r=ot(t,PL),o=n;return n==="left"?o="right":n==="right"&&(o="left"),A({fixed:o},r)})}function ML(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,v=e.direction,g=e.expandRowByClick,S=e.columnWidth,b=e.fixed,h=e.scrollWidth,p=e.clientWidth,y=s.useMemo(function(){var j=r||wh(o)||[];return U$(j.slice())},[r,o]),C=s.useMemo(function(){if(i){var j,z=y.slice();if(!z.includes(Qo)){var R=m||0;R>=0&&z.splice(R,0,Qo)}var k=z.indexOf(Qo);z=z.filter(function(_,F){return _!==Qo||F===k});var M=y[k],N;(b==="left"||b)&&!m?N="left":(b==="right"||b)&&m===y.length?N="right":N=M?M.fixed:null;var P=(j={},L(j,Ul,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),L(j,"title",l),L(j,"fixed",N),L(j,"className","".concat(n,"-row-expand-icon-cell")),L(j,"width",S),L(j,"render",function(F,D,B){var V=c(D,B),q=a.has(V),H=f?f(D):!0,X=d({prefixCls:n,expanded:q,expandable:H,record:D,onExpand:u});return g?s.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},X):X}),j);return z.map(function(_){return _===Qo?P:_})}return y.filter(function(_){return _!==Qo})},[i,y,c,a,d,v]),x=s.useMemo(function(){var j=C;return t&&(j=t(j)),j.length||(j=[{render:function(){return null}}]),j},[t,C,v]),w=s.useMemo(function(){return v==="rtl"?NL(dp(x)):dp(x)},[x,v,h]),$=s.useMemo(function(){for(var j=-1,z=w.length-1;z>=0;z-=1){var R=w[z].fixed;if(R==="left"||R===!0){j=z;break}}if(j>=0)for(var k=0;k<=j;k+=1){var M=w[k].fixed;if(M!=="left"&&M!==!0)return!0}var N=w.findIndex(function(F){var D=F.fixed;return D==="right"});if(N>=0)for(var P=N;P=f&&(P=f-m),a({scrollLeft:P/f*(d+2)}),p.current.x=R.pageX},T=function(){$.current=Tt(function(){if(i.current){var R=Jy(i.current).top,k=R+i.current.offsetHeight,M=c===window?document.documentElement.scrollTop+window.innerHeight:Jy(c).top+c.clientHeight;k-B1()<=M||R>=M-l?h(function(N){return A(A({},N),{},{isHiddenScrollBar:!0})}):h(function(N){return A(A({},N),{},{isHiddenScrollBar:!1})})}})},j=function(R){h(function(k){return A(A({},k),{},{scrollLeft:R/d*f||0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:j,checkScrollBarVisible:T}}),s.useEffect(function(){var z=Ic(document.body,"mouseup",I,!1),R=Ic(document.body,"mousemove",O,!1);return T(),function(){z.remove(),R.remove()}},[m,x]),s.useEffect(function(){var z=Ic(c,"scroll",T,!1),R=Ic(window,"resize",T,!1);return function(){z.remove(),R.remove()}},[c]),s.useEffect(function(){b.isHiddenScrollBar||h(function(z){var R=i.current;return R?A(A({},z),{},{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):z})},[b.isHiddenScrollBar]),d<=f||!m||b.isHiddenScrollBar?null:s.createElement("div",{style:{height:B1(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},s.createElement("div",{onMouseDown:E,ref:v,className:Z("".concat(u,"-sticky-scroll-bar"),L({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const BL=s.forwardRef(AL);var q$="rc-table",HL=[],VL={};function KL(){return"No Data"}function WL(e,t){var n,r=A({rowKey:"key",prefixCls:q$,emptyText:KL},e),o=r.prefixCls,i=r.className,a=r.rowClassName,l=r.style,c=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,m=r.direction,v=r.title,g=r.footer,S=r.summary,b=r.caption,h=r.id,p=r.showHeader,y=r.components,C=r.emptyText,x=r.onRow,w=r.onHeaderRow,$=r.onScroll,I=r.internalHooks,E=r.transformColumns,O=r.internalRefs,T=r.tailor,j=r.getContainerWidth,z=r.sticky,R=r.rowHoverable,k=R===void 0?!0:R,M=c||HL,N=!!M.length,P=I===Ws,_=s.useCallback(function(Ye,St){return Cr(y,Ye)||St},[y]),F=s.useMemo(function(){return typeof u=="function"?u:function(Ye){var St=Ye&&Ye[u];return St}},[u]),D=_(["body"]),B=LL(),V=J(B,3),q=V[0],H=V[1],X=V[2],K=_L(r,M,F),ne=J(K,6),oe=ne[0],Y=ne[1],W=ne[2],ee=ne[3],te=ne[4],U=ne[5],ae=d==null?void 0:d.x,re=s.useState(0),me=J(re,2),le=me[0],fe=me[1],ue=ML(A(A(A({},r),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:W,getRowKey:F,onTriggerExpand:U,expandIcon:ee,expandIconColumnIndex:oe.expandIconColumnIndex,direction:m,scrollWidth:P&&T&&typeof ae=="number"?ae:null,clientWidth:le}),P?E:null),pe=J(ue,4),Oe=pe[0],se=pe[1],ce=pe[2],ye=pe[3],be=ce??ae,Ke=s.useMemo(function(){return{columns:Oe,flattenColumns:se}},[Oe,se]),je=s.useRef(),We=s.useRef(),Se=s.useRef(),Be=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:je.current,scrollTo:function(St){var on;if(Se.current instanceof HTMLElement){var an=St.index,Vt=St.top,mr=St.key;if(Vt){var vr;(vr=Se.current)===null||vr===void 0||vr.scrollTo({top:Vt})}else{var Kr,$o=mr??F(M[an]);(Kr=Se.current.querySelector('[data-row-key="'.concat($o,'"]')))===null||Kr===void 0||Kr.scrollIntoView()}}else(on=Se.current)!==null&&on!==void 0&&on.scrollTo&&Se.current.scrollTo(St)}}});var Pe=s.useRef(),Re=s.useState(!1),Ie=J(Re,2),Me=Ie[0],ke=Ie[1],nt=s.useState(!1),Ue=J(nt,2),$t=Ue[0],at=Ue[1],Ot=G$(new Map),lt=J(Ot,2),Rt=lt[0],Je=lt[1],He=Ud(se),Qe=He.map(function(Ye){return Rt.get(Ye)}),Le=s.useMemo(function(){return Qe},[Qe.join("_")]),$e=FL(Le,se,m),Ge=d&&up(d.y),et=d&&up(be)||!!oe.fixed,Ce=et&&se.some(function(Ye){var St=Ye.fixed;return St}),we=s.useRef(),xe=DL(z,o),Ne=xe.isSticky,dt=xe.offsetHeader,mt=xe.offsetSummary,Pt=xe.offsetScroll,Te=xe.stickyClassName,qe=xe.container,De=s.useMemo(function(){return S==null?void 0:S(M)},[S,M]),Xe=(Ge||Ne)&&s.isValidElement(De)&&De.type===Gd&&De.props.fixed,bt,gt,_t;Ge&&(gt={overflowY:"scroll",maxHeight:d.y}),et&&(bt={overflowX:"auto"},Ge||(gt={overflowY:"hidden"}),_t={width:be===!0?"auto":be,minWidth:"100%"});var Ct=s.useCallback(function(Ye,St){Ds(je.current)&&Je(function(on){if(on.get(Ye)!==St){var an=new Map(on);return an.set(Ye,St),an}return on})},[]),ze=kL(),_e=J(ze,2),tt=_e[0],yt=_e[1];function Ht(Ye,St){St&&(typeof St=="function"?St(Ye):St.scrollLeft!==Ye&&(St.scrollLeft=Ye,St.scrollLeft!==Ye&&setTimeout(function(){St.scrollLeft=Ye},0)))}var en=At(function(Ye){var St=Ye.currentTarget,on=Ye.scrollLeft,an=m==="rtl",Vt=typeof on=="number"?on:St.scrollLeft,mr=St||VL;if(!yt()||yt()===mr){var vr;tt(mr),Ht(Vt,We.current),Ht(Vt,Se.current),Ht(Vt,Pe.current),Ht(Vt,(vr=we.current)===null||vr===void 0?void 0:vr.setScrollLeft)}var Kr=St||We.current;if(Kr){var $o=Kr.scrollWidth,wi=Kr.clientWidth;if($o===wi){ke(!1),at(!1);return}an?(ke(-Vt<$o-wi),at(-Vt>0)):(ke(Vt>0),at(Vt<$o-wi))}}),Ut=At(function(Ye){en(Ye),$==null||$(Ye)}),tn=function(){et&&Se.current?en({currentTarget:Se.current}):(ke(!1),at(!1))},Cn=function(St){var on,an=St.width;(on=we.current)===null||on===void 0||on.checkScrollBarVisible();var Vt=je.current?je.current.offsetWidth:an;P&&j&&je.current&&(Vt=j(je.current,Vt)||Vt),Vt!==le&&(tn(),fe(Vt))},nn=s.useRef(!1);s.useEffect(function(){nn.current&&tn()},[et,c,Oe.length]),s.useEffect(function(){nn.current=!0},[]);var Dn=s.useState(0),Ze=J(Dn,2),rt=Ze[0],ht=Ze[1],dn=s.useState(!0),Fn=J(dn,2),Xn=Fn[0],or=Fn[1];s.useEffect(function(){(!T||!P)&&(Se.current instanceof Element?ht(Hv(Se.current).width):ht(Hv(Be.current).width)),or(dN("position","sticky"))},[]),s.useEffect(function(){P&&O&&(O.body.current=Se.current)});var Vr=s.useCallback(function(Ye){return s.createElement(s.Fragment,null,s.createElement(cb,Ye),Xe==="top"&&s.createElement(Oc,Ye,De))},[Xe,De]),fr=s.useCallback(function(Ye){return s.createElement(Oc,Ye,De)},[De]),In=_(["table"],"table"),pt=s.useMemo(function(){return f||(Ce?be==="max-content"?"auto":"fixed":Ge||Ne||se.some(function(Ye){var St=Ye.ellipsis;return St})?"fixed":"auto")},[Ge,Ce,se,f,Ne]),st,vt={colWidths:Le,columCount:se.length,stickyOffsets:$e,onHeaderRow:w,fixHeader:Ge,scroll:d},ct=s.useMemo(function(){return N?null:typeof C=="function"?C():C},[N,C]),ut=s.createElement(hL,{data:M,measureColumnWidth:Ge||et||Ne}),xt=s.createElement(W$,{colWidths:se.map(function(Ye){var St=Ye.width;return St}),columns:se}),kt=b!=null?s.createElement("caption",{className:"".concat(o,"-caption")},b):void 0,rn=Br(r,{data:!0}),On=Br(r,{aria:!0});if(Ge||Ne){var Rn;typeof D=="function"?(Rn=D(M,{scrollbarSize:rt,ref:Se,onScroll:en}),vt.colWidths=se.map(function(Ye,St){var on=Ye.width,an=St===se.length-1?on-rt:on;return typeof an=="number"&&!Number.isNaN(an)?an:0})):Rn=s.createElement("div",{style:A(A({},bt),gt),onScroll:Ut,ref:Se,className:Z("".concat(o,"-body"))},s.createElement(In,he({style:A(A({},_t),{},{tableLayout:pt})},On),kt,xt,ut,!Xe&&De&&s.createElement(Oc,{stickyOffsets:$e,flattenColumns:se},De)));var pn=A(A(A({noData:!M.length,maxContentScroll:et&&be==="max-content"},vt),Ke),{},{direction:m,stickyClassName:Te,onScroll:en});st=s.createElement(s.Fragment,null,p!==!1&&s.createElement(sb,he({},pn,{stickyTopOffset:dt,className:"".concat(o,"-header"),ref:We}),Vr),Rn,Xe&&Xe!=="top"&&s.createElement(sb,he({},pn,{stickyBottomOffset:mt,className:"".concat(o,"-summary"),ref:Pe}),fr),Ne&&Se.current&&Se.current instanceof Element&&s.createElement(BL,{ref:we,offsetScroll:Pt,scrollBodyRef:Se,onScroll:en,container:qe}))}else st=s.createElement("div",{style:A(A({},bt),gt),className:Z("".concat(o,"-content")),onScroll:en,ref:Se},s.createElement(In,he({style:A(A({},_t),{},{tableLayout:pt})},On),kt,xt,p!==!1&&s.createElement(cb,he({},vt,Ke)),ut,De&&s.createElement(Oc,{stickyOffsets:$e,flattenColumns:se},De)));var Yn=s.createElement("div",he({className:Z(o,i,(n={},L(n,"".concat(o,"-rtl"),m==="rtl"),L(n,"".concat(o,"-ping-left"),Me),L(n,"".concat(o,"-ping-right"),$t),L(n,"".concat(o,"-layout-fixed"),f==="fixed"),L(n,"".concat(o,"-fixed-header"),Ge),L(n,"".concat(o,"-fixed-column"),Ce),L(n,"".concat(o,"-fixed-column-gapped"),Ce&&ye),L(n,"".concat(o,"-scroll-horizontal"),et),L(n,"".concat(o,"-has-fix-left"),se[0]&&se[0].fixed),L(n,"".concat(o,"-has-fix-right"),se[se.length-1]&&se[se.length-1].fixed==="right"),n)),style:l,id:h,ref:je},rn),v&&s.createElement(fb,{className:"".concat(o,"-title")},v(M)),s.createElement("div",{ref:Be,className:"".concat(o,"-container")},st),g&&s.createElement(fb,{className:"".concat(o,"-footer")},g(M)));et&&(Yn=s.createElement(lo,{onResize:Cn},Yn));var An=jL(se,$e,m),Ko=s.useMemo(function(){return{scrollX:be,prefixCls:o,getComponent:_,scrollbarSize:rt,direction:m,fixedInfoList:An,isSticky:Ne,supportSticky:Xn,componentWidth:le,fixHeader:Ge,fixColumn:Ce,horizonScroll:et,tableLayout:pt,rowClassName:a,expandedRowClassName:oe.expandedRowClassName,expandIcon:ee,expandableType:Y,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,onTriggerExpand:U,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:se.every(function(Ye){return Ye.fixed==="left"}),emptyNode:ct,columns:Oe,flattenColumns:se,onColumnResize:Ct,hoverStartRow:q,hoverEndRow:H,onHover:X,rowExpandable:oe.rowExpandable,onRow:x,getRowKey:F,expandedKeys:W,childrenColumnName:te,rowHoverable:k}},[be,o,_,rt,m,An,Ne,Xn,le,Ge,Ce,et,pt,a,oe.expandedRowClassName,ee,Y,oe.expandRowByClick,oe.expandedRowRender,U,oe.expandIconColumnIndex,oe.indentSize,ct,Oe,se,Ct,q,H,X,oe.rowExpandable,x,F,W,te,k]);return s.createElement(dr.Provider,{value:Ko},Yn)}var UL=s.forwardRef(WL);function X$(e){return k$(UL,e)}var al=X$();al.EXPAND_COLUMN=Qo;al.INTERNAL_HOOKS=Ws;al.Column=uL;al.ColumnGroup=dL;al.Summary=F$;var $h=Sh(null),Y$=Sh(null);function GL(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function qL(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,v=n.render,g=n.dataIndex,S=n.className,b=n.width,h=Gn(Y$,["columnsOffset"]),p=h.columnsOffset,y=K$(t,n,r,o,i),C=y.key,x=y.fixedInfo,w=y.appendCellNode,$=y.additionalCellProps,I=$.style,E=$.colSpan,O=E===void 0?1:E,T=$.rowSpan,j=T===void 0?1:T,z=r-1,R=GL(z,O,p),k=O>1?b-R:0,M=A(A(A({},I),u),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:k,pointerEvents:"auto"}),N=s.useMemo(function(){return f?j<=1:O===0||j===0||j>1},[j,O,f]);N?M.visibility="hidden":f&&(M.height=m==null?void 0:m(j));var P=N?function(){return null}:v,_={};return(j===0||O===0)&&(_.rowSpan=1,_.colSpan=1),s.createElement(Ji,he({className:Z(S,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:C,record:c,index:i,renderIndex:l,dataIndex:g,render:P,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:w,additionalProps:A(A({},$),{},{style:M},_)}))}var XL=["data","index","className","rowKey","style","extra","getHeight"],YL=s.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,l=e.extra,c=e.getHeight,u=ot(e,XL),d=n.record,f=n.indent,m=n.index,v=Gn(dr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=v.scrollX,S=v.flattenColumns,b=v.prefixCls,h=v.fixColumn,p=v.componentWidth,y=Gn($h,["getComponent"]),C=y.getComponent,x=H$(d,i,r,f),w=C(["body","row"],"div"),$=C(["body","cell"],"div"),I=x.rowSupportExpand,E=x.expanded,O=x.rowProps,T=x.expandedRowRender,j=x.expandedRowClassName,z;if(I&&E){var R=T(d,r,f+1,E),k=j==null?void 0:j(d,r,f),M={};h&&(M={style:L({},"--virtual-width","".concat(p,"px"))});var N="".concat(b,"-expanded-row-cell");z=s.createElement(w,{className:Z("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),k)},s.createElement(Ji,{component:$,prefixCls:b,className:Z(N,L({},"".concat(N,"-fixed"),h)),additionalProps:M},R))}var P=A(A({},a),{},{width:g});l&&(P.position="absolute",P.pointerEvents="none");var _=s.createElement(w,he({},O,u,{"data-row-key":i,ref:I?null:t,className:Z(o,"".concat(b,"-row"),O==null?void 0:O.className,L({},"".concat(b,"-row-extra"),l)),style:A(A({},P),O==null?void 0:O.style)}),S.map(function(F,D){return s.createElement(qL,{key:D,component:$,rowInfo:x,column:F,colIndex:D,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return I?s.createElement("div",{ref:t},_,z):_}),mb=il(YL),QL=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Gn(dr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,m=o.scrollX,v=Gn($h),g=v.sticky,S=v.scrollY,b=v.listItemHeight,h=v.getComponent,p=v.onScroll,y=s.useRef(),C=B$(n,d,c,l),x=s.useMemo(function(){var M=0;return i.map(function(N){var P=N.width,_=N.key;return M+=P,[_,P,M]})},[i]),w=s.useMemo(function(){return x.map(function(M){return M[2]})},[x]);s.useEffect(function(){x.forEach(function(M){var N=J(M,2),P=N[0],_=N[1];a(P,_)})},[x]),s.useImperativeHandle(t,function(){var M={scrollTo:function(P){var _;(_=y.current)===null||_===void 0||_.scrollTo(P)}};return Object.defineProperty(M,"scrollLeft",{get:function(){var P;return((P=y.current)===null||P===void 0?void 0:P.getScrollInfo().x)||0},set:function(P){var _;(_=y.current)===null||_===void 0||_.scrollTo({left:P})}}),M});var $=function(N,P){var _,F=(_=C[P])===null||_===void 0?void 0:_.record,D=N.onCell;if(D){var B,V=D(F,P);return(B=V==null?void 0:V.rowSpan)!==null&&B!==void 0?B:1}return 1},I=function(N){var P=N.start,_=N.end,F=N.getSize,D=N.offsetY;if(_<0)return null;for(var B=i.filter(function(U){return $(U,P)===0}),V=P,q=function(ae){if(B=B.filter(function(re){return $(re,ae)===0}),!B.length)return V=ae,1},H=P;H>=0&&!q(H);H-=1);for(var X=i.filter(function(U){return $(U,_)!==1}),K=_,ne=function(ae){if(X=X.filter(function(re){return $(re,ae)!==1}),!X.length)return K=Math.max(ae-1,_),1},oe=_;oe1})&&Y.push(ae)},ee=V;ee<=K;ee+=1)W(ee);var te=Y.map(function(U){var ae=C[U],re=l(ae.record,U),me=function(ue){var pe=U+ue-1,Oe=l(C[pe].record,pe),se=F(re,Oe);return se.bottom-se.top},le=F(re);return s.createElement(mb,{key:U,data:ae,rowKey:re,index:U,style:{top:-D+le.top},extra:!0,getHeight:me})});return te},E=s.useMemo(function(){return{columnsOffset:w}},[w]),O="".concat(u,"-tbody"),T=h(["body","wrapper"]),j=h(["body","row"],"div"),z=h(["body","cell"],"div"),R;if(C.length){var k={};g&&(k.position="sticky",k.bottom=0,Fe(g)==="object"&&g.offsetScroll&&(k.bottom=g.offsetScroll)),R=s.createElement(jd,{fullHeight:!1,ref:y,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:k},className:O,height:S,itemHeight:b||24,data:C,itemKey:function(N){return l(N.record)},component:T,scrollWidth:m,onVirtualScroll:function(N){var P=N.x;r({scrollLeft:P})},onScroll:p,extraRender:I},function(M,N,P){var _=l(M.record,N);return s.createElement(mb,{data:M,rowKey:_,index:N,style:P.style})})}else R=s.createElement(j,{className:Z("".concat(u,"-placeholder"))},s.createElement(Ji,{component:z,prefixCls:u},f));return s.createElement(Y$.Provider,{value:E},R)}),ZL=il(QL),JL=function(t,n){var r=n.ref,o=n.onScroll;return s.createElement(ZL,{ref:r,data:t,onScroll:o})};function e9(e,t){var n=e.columns,r=e.scroll,o=e.sticky,i=e.prefixCls,a=i===void 0?q$:i,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},m=f.x,v=f.y;typeof m!="number"&&(m=1),typeof v!="number"&&(v=500);var g=At(function(h,p){return Cr(u,h)||p}),S=At(d),b=s.useMemo(function(){return{sticky:o,scrollY:v,listItemHeight:c,getComponent:g,onScroll:S}},[o,v,c,g,S]);return s.createElement($h.Provider,{value:b},s.createElement(al,he({},e,{className:Z(l,"".concat(a,"-virtual")),scroll:A(A({},r),{},{x:m}),components:A(A({},u),{},{body:JL}),columns:n,internalHooks:Ws,tailor:!0,ref:t})))}var t9=s.forwardRef(e9);function Q$(e){return k$(t9,e)}Q$();const n9=e=>null,r9=e=>null;var Eh=s.createContext(null),o9=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function Oo(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Ih(e){return e.split("-")}function c9(e,t){var n=[],r=ar(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,c=a.children;n.push(l),o(c)})}return o(r.children),n}function u9(e){if(e.parent){var t=Ih(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function d9(e){var t=Ih(e.pos);return Number(t[t.length-1])===0}function gb(e,t,n,r,o,i,a,l,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),g=v.top,S=v.height,b=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),h=(b-12)/r,p=c.filter(function(M){var N;return(N=l[M])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),y=ar(l,n.props.eventKey);if(m-1.5?i({dragNode:z,dropNode:R,dropPosition:1})?O=1:k=!1:i({dragNode:z,dropNode:R,dropPosition:0})?O=0:i({dragNode:z,dropNode:R,dropPosition:1})?O=1:k=!1:i({dragNode:z,dropNode:R,dropPosition:1})?O=1:k=!1,{dropPosition:O,dropLevelOffset:T,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:E,dropContainerKey:O===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:k}}function hb(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function im(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Fe(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Xt(!1,"`checkedKeys` is not an array or an object"),null;return t}function fp(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=ar(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),de(n)}function f9(e){const[t,n]=s.useState(null);return[s.useCallback((i,a,l)=>{const c=t??i,u=Math.min(c||0,i),d=Math.max(c||0,i),f=a.slice(u,d+1).map(g=>e(g)),m=f.some(g=>!l.has(g)),v=[];return f.forEach(g=>{m?(l.has(g)||v.push(g),l.add(g)):(l.delete(g),v.push(g))}),n(m?d:null),v},[t]),i=>{n(i)}]}const qo={},mp="SELECT_ALL",vp="SELECT_INVERT",pp="SELECT_NONE",yb=[],Z$=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(de(n),de(Z$(e,r[e]))))}),n},m9=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:v,selections:g,fixed:S,renderCell:b,hideSelectAll:h,checkStrictly:p=!0}=t||{},{prefixCls:y,data:C,pageData:x,getRecordByKey:w,getRowKey:$,expandType:I,childrenColumnName:E,locale:O,getPopupContainer:T}=e,j=Ci(),[z,R]=f9(W=>W),[k,M]=Mn(r||o||yb,{value:r}),N=s.useRef(new Map),P=s.useCallback(W=>{if(n){const ee=new Map;W.forEach(te=>{let U=w(te);!U&&N.current.has(te)&&(U=N.current.get(te)),ee.set(te,U)}),N.current=ee}},[w,n]);s.useEffect(()=>{P(k)},[k]);const{keyEntities:_}=s.useMemo(()=>{if(p)return{keyEntities:null};let W=C;if(n){const ee=new Set(C.map((U,ae)=>$(U,ae))),te=Array.from(N.current).reduce((U,ae)=>{let[re,me]=ae;return ee.has(re)?U:U.concat(me)},[]);W=[].concat(de(W),de(te))}return vh(W,{externalGetKey:$,childrenPropName:E})},[C,$,p,E,n]),F=s.useMemo(()=>Z$(E,x),[E,x]),D=s.useMemo(()=>{const W=new Map;return F.forEach((ee,te)=>{const U=$(ee,te),ae=(i?i(ee):null)||{};W.set(U,ae)}),W},[F,$,i]),B=s.useCallback(W=>{var ee;return!!(!((ee=D.get($(W)))===null||ee===void 0)&&ee.disabled)},[D,$]),[V,q]=s.useMemo(()=>{if(p)return[k||[],[]];const{checkedKeys:W,halfCheckedKeys:ee}=za(k,!0,_,B);return[W||[],ee]},[k,p,_,B]),H=s.useMemo(()=>{const W=v==="radio"?V.slice(0,1):V;return new Set(W)},[V,v]),X=s.useMemo(()=>v==="radio"?new Set:new Set(q),[q,v]);s.useEffect(()=>{t||M(yb)},[!!t]);const K=s.useCallback((W,ee)=>{let te,U;P(W),n?(te=W,U=W.map(ae=>N.current.get(ae))):(te=[],U=[],W.forEach(ae=>{const re=w(ae);re!==void 0&&(te.push(ae),U.push(re))})),M(te),a==null||a(te,U,{type:ee})},[M,w,a,n]),ne=s.useCallback((W,ee,te,U)=>{if(l){const ae=te.map(re=>w(re));l(w(W),ee,ae,U)}K(te,"single")},[l,w,K]),oe=s.useMemo(()=>!g||h?null:(g===!0?[mp,vp,pp]:g).map(ee=>ee===mp?{key:"all",text:O.selectionAll,onSelect(){K(C.map((te,U)=>$(te,U)).filter(te=>{const U=D.get(te);return!(U!=null&&U.disabled)||H.has(te)}),"all")}}:ee===vp?{key:"invert",text:O.selectInvert,onSelect(){const te=new Set(H);x.forEach((ae,re)=>{const me=$(ae,re),le=D.get(me);le!=null&&le.disabled||(te.has(me)?te.delete(me):te.add(me))});const U=Array.from(te);u&&(j.deprecated(!1,"onSelectInvert","onChange"),u(U)),K(U,"invert")}}:ee===pp?{key:"none",text:O.selectNone,onSelect(){d==null||d(),K(Array.from(H).filter(te=>{const U=D.get(te);return U==null?void 0:U.disabled}),"none")}}:ee).map(ee=>Object.assign(Object.assign({},ee),{onSelect:function(){for(var te,U,ae=arguments.length,re=new Array(ae),me=0;me{var ee;if(!t)return W.filter(Se=>Se!==qo);let te=de(W);const U=new Set(H),ae=F.map($).filter(Se=>!D.get(Se).disabled),re=ae.every(Se=>U.has(Se)),me=ae.some(Se=>U.has(Se)),le=()=>{const Se=[];re?ae.forEach(Pe=>{U.delete(Pe),Se.push(Pe)}):ae.forEach(Pe=>{U.has(Pe)||(U.add(Pe),Se.push(Pe))});const Be=Array.from(U);c==null||c(!re,Be.map(Pe=>w(Pe)),Se.map(Pe=>w(Pe))),K(Be,"all"),R(null)};let fe,ue;if(v!=="radio"){let Se;if(oe){const Me={getPopupContainer:T,items:oe.map((ke,nt)=>{const{key:Ue,text:$t,onSelect:at}=ke;return{key:Ue??nt,onClick:()=>{at==null||at(ae)},label:$t}})};Se=s.createElement("div",{className:`${y}-selection-extra`},s.createElement(ph,{menu:Me,getPopupContainer:T},s.createElement("span",null,s.createElement(gw,null))))}const Be=F.map((Me,ke)=>{const nt=$(Me,ke),Ue=D.get(nt)||{};return Object.assign({checked:U.has(nt)},Ue)}).filter(Me=>{let{disabled:ke}=Me;return ke}),Pe=!!Be.length&&Be.length===F.length,Re=Pe&&Be.every(Me=>{let{checked:ke}=Me;return ke}),Ie=Pe&&Be.some(Me=>{let{checked:ke}=Me;return ke});ue=s.createElement(qa,{checked:Pe?Re:!!F.length&&re,indeterminate:Pe?!Re&&Ie:!re&&me,onChange:le,disabled:F.length===0||Pe,"aria-label":Se?"Custom selection":"Select all",skipGroup:!0}),fe=!h&&s.createElement("div",{className:`${y}-selection`},ue,Se)}let pe;v==="radio"?pe=(Se,Be,Pe)=>{const Re=$(Be,Pe),Ie=U.has(Re);return{node:s.createElement(Vs,Object.assign({},D.get(Re),{checked:Ie,onClick:Me=>Me.stopPropagation(),onChange:Me=>{U.has(Re)||ne(Re,!0,[Re],Me.nativeEvent)}})),checked:Ie}}:pe=(Se,Be,Pe)=>{var Re;const Ie=$(Be,Pe),Me=U.has(Ie),ke=X.has(Ie),nt=D.get(Ie);let Ue;return I==="nest"?Ue=ke:Ue=(Re=nt==null?void 0:nt.indeterminate)!==null&&Re!==void 0?Re:ke,{node:s.createElement(qa,Object.assign({},nt,{indeterminate:Ue,checked:Me,skipGroup:!0,onClick:$t=>$t.stopPropagation(),onChange:$t=>{let{nativeEvent:at}=$t;const{shiftKey:Ot}=at,lt=ae.findIndex(Je=>Je===Ie),Rt=V.some(Je=>ae.includes(Je));if(Ot&&p&&Rt){const Je=z(lt,ae,U),He=Array.from(U);f==null||f(!Me,He.map(Qe=>w(Qe)),Je.map(Qe=>w(Qe))),K(He,"multiple")}else{const Je=V;if(p){const He=Me?uo(Je,Ie):Oo(Je,Ie);ne(Ie,!Me,He,at)}else{const He=za([].concat(de(Je),[Ie]),!0,_,B),{checkedKeys:Qe,halfCheckedKeys:Le}=He;let $e=Qe;if(Me){const Ge=new Set(Qe);Ge.delete(Ie),$e=za(Array.from(Ge),{checked:!1,halfCheckedKeys:Le},_,B).checkedKeys}ne(Ie,!Me,$e,at)}}R(Me?null:lt)}})),checked:Me}};const Oe=(Se,Be,Pe)=>{const{node:Re,checked:Ie}=pe(Se,Be,Pe);return b?b(Ie,Be,Pe,Re):Re};if(!te.includes(qo))if(te.findIndex(Se=>{var Be;return((Be=Se[Ul])===null||Be===void 0?void 0:Be.columnType)==="EXPAND_COLUMN"})===0){const[Se,...Be]=te;te=[Se,qo].concat(de(Be))}else te=[qo].concat(de(te));const se=te.indexOf(qo);te=te.filter((Se,Be)=>Se!==qo||Be===se);const ce=te[se-1],ye=te[se+1];let be=S;be===void 0&&((ye==null?void 0:ye.fixed)!==void 0?be=ye.fixed:(ce==null?void 0:ce.fixed)!==void 0&&(be=ce.fixed)),be&&ce&&((ee=ce[Ul])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"&&ce.fixed===void 0&&(ce.fixed=be);const Ke=Z(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:g&&v==="checkbox"}),je=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ue):t.columnTitle:fe,We={fixed:be,width:m,className:`${y}-selection-column`,title:je(),render:Oe,onCell:t.onCell,[Ul]:{className:Ke}};return te.map(Se=>Se===qo?We:Se)},[$,F,t,V,H,X,m,oe,I,D,f,ne,B]),H]};function v9(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function p9(e,t){return s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):v9(r,n)})}function g9(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:Z(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function h9(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);i=r-l-c}return i}}const hi=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ll(e,t){return t?`${t}-${e}`:`${e}`}const qd=(e,t)=>typeof e=="function"?e(t):e,y9=(e,t)=>{const n=qd(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function b9(e){const t=s.useRef(e),n=bw();return[()=>t.current,r=>{t.current=r,n()}]}function S9(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 s.createElement("div",{style:o})}function J$(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function C9(e,t){var n=s.useState(!1),r=J(n,2),o=r[0],i=r[1];Nt(function(){if(o)return e(),function(){t()}},[o]),Nt(function(){return i(!0),function(){i(!1)}},[])}var x9=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],eE=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=ot(t,x9),v=s.useState(!0),g=J(v,2),S=g[0],b=g[1],h=s.useContext(Eh),p=h.prefixCls,y=a&&l!=="hide";Nt(function(){a&&y!==S&&b(y)},[a]);var C=function(){a&&c()},x=s.useRef(!1),w=function(){a&&!x.current&&(x.current=!0,u())};C9(C,w);var $=function(E){y===E&&w()};return a?s.createElement(xi,he({ref:n,visible:S},i,{motionAppear:l==="show",onVisibleChanged:$}),function(I,E){var O=I.className,T=I.style;return s.createElement("div",{ref:E,className:Z("".concat(p,"-treenode-motion"),O),style:T},a.map(function(j){var z=Object.assign({},(J$(j.data),j.data)),R=j.title,k=j.key,M=j.isStart,N=j.isEnd;delete z.children;var P=Kl(k,f);return s.createElement(Xa,he({},z,P,{title:R,active:d,data:j.data,key:k,isStart:M,isEnd:N}))}))}):s.createElement(Xa,he({domRef:n,className:r,style:o},m,{active:d}))};eE.displayName="MotionTreeNode";var w9=s.forwardRef(eE);function $9(){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(i,a){var l=new Map;i.forEach(function(u){l.set(u,!0)});var c=a.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var nE=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,g=e.dropPosition,S=e.motion,b=e.height,h=e.itemHeight,p=e.virtual,y=e.focusable,C=e.activeItem,x=e.focused,w=e.tabIndex,$=e.onKeyDown,I=e.onFocus,E=e.onBlur,O=e.onActiveChange,T=e.onListChangeStart,j=e.onListChangeEnd,z=ot(e,E9),R=s.useRef(null),k=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(pe){R.current.scrollTo(pe)},getIndentWidth:function(){return k.current.offsetWidth}}});var M=s.useState(o),N=J(M,2),P=N[0],_=N[1],F=s.useState(r),D=J(F,2),B=D[0],V=D[1],q=s.useState(r),H=J(q,2),X=H[0],K=H[1],ne=s.useState([]),oe=J(ne,2),Y=oe[0],W=oe[1],ee=s.useState(null),te=J(ee,2),U=te[0],ae=te[1],re=s.useRef(r);re.current=r;function me(){var ue=re.current;V(ue),K(ue),W([]),ae(null),j()}Nt(function(){_(o);var ue=$9(P,o);if(ue.key!==null)if(ue.add){var pe=B.findIndex(function(Ke){var je=Ke.key;return je===ue.key}),Oe=xb(bb(B,r,ue.key),p,b,h),se=B.slice();se.splice(pe+1,0,Cb),K(se),W(Oe),ae("show")}else{var ce=r.findIndex(function(Ke){var je=Ke.key;return je===ue.key}),ye=xb(bb(r,B,ue.key),p,b,h),be=r.slice();be.splice(ce+1,0,Cb),K(be),W(ye),ae("hide")}else B!==r&&(V(r),K(r))},[o,r]),s.useEffect(function(){m||me()},[m]);var le=S?X:r,fe={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:g,keyEntities:d};return s.createElement(s.Fragment,null,x&&C&&s.createElement("span",{style:Sb,"aria-live":"assertive"},O9(C)),s.createElement("div",null,s.createElement("input",{style:Sb,disabled:y===!1||f,tabIndex:y!==!1?w:null,onKeyDown:$,onFocus:I,onBlur:E,value:"",onChange:I9,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:k,className:"".concat(n,"-indent-unit")}))),s.createElement(jd,he({},z,{data:le,itemKey:wb,height:b,fullHeight:!1,virtual:p,itemHeight:h,prefixCls:"".concat(n,"-list"),ref:R,onVisibleChange:function(pe,Oe){var se=new Set(pe),ce=Oe.filter(function(ye){return!se.has(ye)});ce.some(function(ye){return wb(ye)===Gi})&&me()}}),function(ue){var pe=ue.pos,Oe=Object.assign({},(J$(ue.data),ue.data)),se=ue.title,ce=ue.key,ye=ue.isStart,be=ue.isEnd,Ke=Ks(ce,pe);delete Oe.key,delete Oe.children;var je=Kl(Ke,fe);return s.createElement(w9,he({},Oe,je,{title:se,active:!!C&&ce===C.key,pos:pe,data:ue.data,isStart:ye,isEnd:be,motion:S,motionNodes:ce===Gi?Y:null,motionType:U,onMotionStart:T,onMotionEnd:me,treeNodeRequiredProps:fe,onMouseMove:function(){O(null)}}))}))});nE.displayName="NodeList";var R9=10,Oh=function(e){xo(n,e);var t=wo(n);function n(){var r;bn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,g=f.dropTargetKey,S=f.dropTargetPos,b=f.dropAllowed;if(b){var h=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var p=A(A({},Kl(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:ar(r.state.keyEntities,g).node}),y=m.indexOf(g)!==-1;Xt(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=Ih(S),x={event:l,node:gn(p),dragNode:r.dragNode?gn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(C[C.length-1])};d||h==null||h(x),r.dragNode=null}}}),L(ve(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(ve(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,g=c.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var S=f.filter(function(h){return h.key===v})[0],b=gn(A(A({},Kl(v,r.getTreeNodeRequiredProps())),{},{data:S.data}));r.setExpandedKeys(m?uo(d,v):Oo(d,v)),r.onNodeExpand(l,b)}}),L(ve(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),L(ve(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),L(ve(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,g=v.onSelect,S=v.multiple,b=c.selected,h=c[m.key],p=!b;p?S?u=Oo(u,h):u=[h]:u=uo(u,h);var y=u.map(function(C){var x=ar(f,C);return x?x.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:p,node:c,selectedNodes:y,nativeEvent:l.nativeEvent})}),L(ve(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,g=r.props,S=g.checkStrictly,b=g.onCheck,h=c.key,p,y={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(S){var C=u?Oo(m,h):uo(m,h),x=uo(v,h);p={checked:C,halfChecked:x},y.checkedNodes=C.map(function(T){return ar(f,T)}).filter(function(T){return T}).map(function(T){return T.node}),r.setUncontrolledState({checkedKeys:C})}else{var w=za([].concat(de(m),[h]),!0,f),$=w.checkedKeys,I=w.halfCheckedKeys;if(!u){var E=new Set($);E.delete(h);var O=za(Array.from(E),{checked:!1,halfCheckedKeys:I},f);$=O.checkedKeys,I=O.halfCheckedKeys}p=$,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=I,$.forEach(function(T){var j=ar(f,T);if(j){var z=j.node,R=j.pos;y.checkedNodes.push(z),y.checkedNodesPositions.push({node:z,pos:R})}}),r.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:I})}b==null||b(p,y)}),L(ve(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=ar(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,g){r.setState(function(S){var b=S.loadedKeys,h=b===void 0?[]:b,p=S.loadingKeys,y=p===void 0?[]:p,C=r.props,x=C.loadData,w=C.onLoad;if(!x||h.indexOf(u)!==-1||y.indexOf(u)!==-1)return null;var $=x(l);return $.then(function(){var I=r.state.loadedKeys,E=Oo(I,u);w==null||w(E,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:E}),r.setState(function(O){return{loadingKeys:uo(O.loadingKeys,u)}}),v()}).catch(function(I){if(r.setState(function(O){return{loadingKeys:uo(O.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=R9){var E=r.state.loadedKeys;Xt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Oo(E,u)}),v()}g(I)}),{loadingKeys:Oo(y,u)}})});return m.catch(function(){}),m}}),L(ve(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),L(ve(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),L(ve(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),L(ve(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),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(v){if(v in r.props){f=!1;return}d=!0,m[v]=l[v]}),d&&(!c||f)&&r.setState(A(A({},m),u))}}),L(ve(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Sn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,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,i=o.focused,a=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,g=o.dragOverNodeKey,S=o.indent,b=this.props,h=b.prefixCls,p=b.className,y=b.style,C=b.showLine,x=b.focusable,w=b.tabIndex,$=w===void 0?0:w,I=b.selectable,E=b.showIcon,O=b.icon,T=b.switcherIcon,j=b.draggable,z=b.checkable,R=b.checkStrictly,k=b.disabled,M=b.motion,N=b.loadData,P=b.filterTreeNode,_=b.height,F=b.itemHeight,D=b.virtual,B=b.titleRender,V=b.dropIndicatorRender,q=b.onContextMenu,H=b.onScroll,X=b.direction,K=b.rootClassName,ne=b.rootStyle,oe=Br(this.props,{aria:!0,data:!0}),Y;return j&&(Fe(j)==="object"?Y=j:typeof j=="function"?Y={nodeDraggable:j}:Y={}),s.createElement(Eh.Provider,{value:{prefixCls:h,selectable:I,showIcon:E,icon:O,switcherIcon:T,draggable:Y,draggingNodeKey:c,checkable:z,checkStrictly:R,disabled:k,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:g,indent:S,direction:X,dropIndicatorRender:V,loadData:N,filterTreeNode:P,titleRender:B,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}},s.createElement("div",{role:"tree",className:Z(h,p,K,L(L(L({},"".concat(h,"-show-line"),C),"".concat(h,"-focused"),i),"".concat(h,"-active-focused"),u!==null)),style:ne},s.createElement(nE,he({ref:this.listRef,prefixCls:h,style:y,data:a,disabled:k,selectable:I,checkable:!!z,motion:M,dragging:c!==null,height:_,itemHeight:F,virtual:D,focusable:x,focused:i,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:H},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function c(w){return!a&&w in o||a&&a[w]!==o[w]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=Ga(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Xt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=Jw(o.children)),u){l.treeData=u;var f=vh(u,{fieldNames:d});l.keyEntities=A(L({},Gi,tE),f.keyEntities)}var m=l.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?fp(o.expandedKeys,m):o.expandedKeys;else if(!a&&o.defaultExpandAll){var v=A({},m);delete v[Gi],l.expandedKeys=Object.keys(v).map(function(w){return v[w].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?fp(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var g=Zf(u||i.treeData,l.expandedKeys||i.expandedKeys,d);l.flattenNodes=g}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=hb(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=hb(o.defaultSelectedKeys,o))),o.checkable){var S;if(c("checkedKeys")?S=im(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?S=im(o.defaultCheckedKeys)||{}:u&&(S=im(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),S){var b=S,h=b.checkedKeys,p=h===void 0?[]:h,y=b.halfCheckedKeys,C=y===void 0?[]:y;if(!o.checkStrictly){var x=za(p,!0,m);p=x.checkedKeys,C=x.halfCheckedKeys}l.checkedKeys=p,l.halfCheckedKeys=C}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(s.Component);L(Oh,"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:S9,allowDrop:function(){return!0},expandAction:!1});L(Oh,"TreeNode",Xa);const P9=new It("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),N9=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),M9=(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:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),T9=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},Zt(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({},gi(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:P9,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(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:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:G(i),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:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},N9(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:G(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).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(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:G(i),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:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:G(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:G(i),userSelect:"none"},M9(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(i).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:`${G(t.calc(i).div(2).equal())} !important`}}}}})}},z9=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=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:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},_9=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=zt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[T9(e,i),z9(i)]},j9=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},k9=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},j9(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},L9=vn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:t$(`${n}-checkbox`,e)},_9(n,e),Ag(e)]},k9),$b=4;function D9(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",c={[a]:-n*o+$b,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+$b;break}return ie.createElement("div",{style:c,className:`${r}-drop-indicator`})}const F9=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return s.isValidElement(i)?i:s.createElement(Rd,{className:`${t}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),a){if(!o)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,v=`${t}-switcher-line-custom-icon`;return s.isValidElement(m)?Ir(m,{className:Z(m.props.className||"",v)}):m}return u?s.createElement(j$,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return s.isValidElement(f)?Ir(f,{className:Z(f.props.className||"",d)}):f!==void 0?f:o?l?s.createElement(U7,{className:`${t}-switcher-line-icon`}):s.createElement(X7,{className:`${t}-switcher-line-icon`}):s.createElement(w7,{className:d})},rE=ie.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=ie.useContext(it),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:g,checkable:S=!1,selectable:b=!0,draggable:h,motion:p,style:y}=e,C=r("tree",l),x=r(),w=p??Object.assign(Object.assign({},Mu(x)),{motionAppear:!1}),$=Object.assign(Object.assign({},e),{checkable:S,selectable:b,showIcon:u,motion:w,blockNode:v,showLine:!!d,dropIndicatorRender:D9}),[I,E,O]=L9(C),[,T]=Ln(),j=T.paddingXS/2+(((n=T.Tree)===null||n===void 0?void 0:n.titleHeight)||T.controlHeightSM),z=ie.useMemo(()=>{if(!h)return!1;let k={};switch(typeof h){case"function":k.nodeDraggable=h;break;case"object":k=Object.assign({},h);break}return k.icon!==!1&&(k.icon=k.icon||ie.createElement(V7,null)),k},[h]),R=k=>ie.createElement(F9,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:k,showLine:d});return I(ie.createElement(Oh,Object.assign({itemHeight:j,ref:t,virtual:i},$,{style:Object.assign(Object.assign({},a==null?void 0:a.style),y),prefixCls:C,className:Z({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:v,[`${C}-unselectable`]:!b,[`${C}-rtl`]:o==="rtl"},a==null?void 0:a.className,c,E,O),direction:o,checkable:S&&ie.createElement("span",{className:`${C}-checkbox-inner`}),selectable:b,switcherIcon:R,draggable:z}),g))}),Eb=0,am=1,Ib=2;function Rh(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],c=a[o];t(l,a)!==!1&&Rh(c||[],t,n)}e.forEach(i)}function A9(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=Eb;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return Rh(t,u=>{if(l===Ib)return!1;if(c(u)){if(a.push(u),l===Eb)l=am;else if(l===am)return l=Ib,!1}else l===am&&a.push(u);return n.includes(u)},Ga(i)),a}function lm(e,t,n){const r=de(t),o=[];return Rh(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},Ga(n)),o}var Ob=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{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Ob(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=s.useRef(),l=s.useRef(),c=()=>{const{keyEntities:I}=vh(Rb(i));let E;return n?E=Object.keys(I):r?E=fp(i.expandedKeys||o||[],I):E=i.expandedKeys||o||[],E},[u,d]=s.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),s.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const v=(I,E)=>{var O;return"expandedKeys"in i||m(I),(O=i.onExpand)===null||O===void 0?void 0:O.call(i,I,E)},g=(I,E)=>{var O;const{multiple:T,fieldNames:j}=i,{node:z,nativeEvent:R}=E,{key:k=""}=z,M=Rb(i),N=Object.assign(Object.assign({},E),{selected:!0}),P=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),_=R==null?void 0:R.shiftKey;let F;T&&P?(F=I,a.current=k,l.current=F,N.selectedNodes=lm(M,F,j)):T&&_?(F=Array.from(new Set([].concat(de(l.current||[]),de(A9({treeData:M,expandedKeys:f,startKey:k,endKey:a.current,fieldNames:j}))))),N.selectedNodes=lm(M,F,j)):(F=[k],a.current=k,l.current=F,N.selectedNodes=lm(M,F,j)),(O=i.onSelect)===null||O===void 0||O.call(i,F,N),"selectedKeys"in i||d(F)},{getPrefixCls:S,direction:b}=s.useContext(it),{prefixCls:h,className:p,showIcon:y=!0,expandAction:C="click"}=i,x=Ob(i,["prefixCls","className","showIcon","expandAction"]),w=S("tree",h),$=Z(`${w}-directory`,{[`${w}-directory-rtl`]:b==="rtl"},p);return s.createElement(rE,Object.assign({icon:B9,ref:t,blockNode:!0},x,{showIcon:y,expandAction:C,prefixCls:w,className:$,expandedKeys:f,selectedKeys:u,onSelect:g,onExpand:v}))},V9=s.forwardRef(H9),Ph=rE;Ph.DirectoryTree=V9;Ph.TreeNode=Xa;const Pb=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(po,{prefix:s.createElement(Ld,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},K9=e=>{const{keyCode:t}=e;t===ge.ENTER&&e.stopPropagation()},W9=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:K9,ref:t},e.children));function _a(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(de(t),de(_a(o))))}),t}function U9(e){return e.some(t=>{let{children:n}=t;return n})}function oE(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function iE(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:iE({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?qa:Vs,f={key:l.value!==void 0?u:c,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:r.includes(u)}),s.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?f:null:oE(i,l.text)?f:null:f})}function sm(e){return e||[]}const G9=e=>{var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:v,locale:g,children:S,getPopupContainer:b,rootClassName:h}=e,{filterDropdownOpen:p,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:C,defaultFilteredValue:x,filterDropdownVisible:w,onFilterDropdownVisibleChange:$}=i,[I,E]=s.useState(!1),O=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),T=le=>{E(le),y==null||y(le),$==null||$(le)},j=(n=p??w)!==null&&n!==void 0?n:I,z=m==null?void 0:m.filteredKeys,[R,k]=b9(sm(z)),M=le=>{let{selectedKeys:fe}=le;k(fe)},N=(le,fe)=>{let{node:ue,checked:pe}=fe;M(u?{selectedKeys:le}:{selectedKeys:pe&&ue.key?[ue.key]:[]})};s.useEffect(()=>{I&&M({selectedKeys:sm(z)})},[z]);const[P,_]=s.useState([]),F=le=>{_(le)},[D,B]=s.useState(""),V=le=>{const{value:fe}=le.target;B(fe)};s.useEffect(()=>{I||B("")},[I]);const q=le=>{const fe=le!=null&&le.length?le:null;if(fe===null&&(!m||!m.filteredKeys)||So(fe,m==null?void 0:m.filteredKeys,!0))return null;v({column:i,key:l,filteredKeys:fe})},H=()=>{T(!1),q(R())},X=function(){let{confirm:le,closeDropdown:fe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};le&&q([]),fe&&T(!1),B(""),k(C?(x||[]).map(ue=>String(ue)):[])},K=function(){let{closeDropdown:le}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};le&&T(!1),q(R())},ne=(le,fe)=>{fe.source==="trigger"&&(le&&z!==void 0&&k(sm(z)),T(le),!le&&!i.filterDropdown&&c&&H())},oe=Z({[`${a}-menu-without-submenu`]:!U9(i.filters||[])}),Y=le=>{if(le.target.checked){const fe=_a(i==null?void 0:i.filters).map(ue=>String(ue));k(fe)}else k([])},W=le=>{let{filters:fe}=le;return(fe||[]).map((ue,pe)=>{const Oe=String(ue.value),se={title:ue.text,key:ue.value!==void 0?Oe:String(pe)};return ue.children&&(se.children=W({filters:ue.children})),se})},ee=le=>{var fe;return Object.assign(Object.assign({},le),{text:le.title,value:le.key,children:((fe=le.children)===null||fe===void 0?void 0:fe.map(ue=>ee(ue)))||[]})};let te;const{direction:U,renderEmpty:ae}=s.useContext(it);if(typeof i.filterDropdown=="function")te=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:le=>M({selectedKeys:le}),selectedKeys:R(),confirm:K,clearFilters:X,filters:i.filters,visible:j,close:()=>{T(!1)}});else if(i.filterDropdown)te=i.filterDropdown;else{const le=R()||[],fe=()=>{var pe;const Oe=(pe=ae==null?void 0:ae("Table.filter"))!==null&&pe!==void 0?pe:s.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((i.filters||[]).length===0)return Oe;if(d==="tree")return s.createElement(s.Fragment,null,s.createElement(Pb,{filterSearch:f,value:D,onChange:V,tablePrefixCls:r,locale:g}),s.createElement("div",{className:`${r}-filter-dropdown-tree`},u?s.createElement(qa,{checked:le.length===_a(i.filters).length,indeterminate:le.length>0&&le.length<_a(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:Y},g.filterCheckall):null,s.createElement(Ph,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${a}-menu`,onCheck:N,checkedKeys:le,selectedKeys:le,showIcon:!1,treeData:W({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:D.trim()?ye=>typeof f=="function"?f(D,ee(ye)):oE(D,ye.title):void 0})));const se=iE({filters:i.filters||[],filterSearch:f,prefixCls:o,filteredKeys:R(),filterMultiple:u,searchValue:D}),ce=se.every(ye=>ye===null);return s.createElement(s.Fragment,null,s.createElement(Pb,{filterSearch:f,value:D,onChange:V,tablePrefixCls:r,locale:g}),ce?Oe:s.createElement(ol,{selectable:!0,multiple:u,prefixCls:`${a}-menu`,className:oe,onSelect:M,onDeselect:M,selectedKeys:le,getPopupContainer:b,openKeys:P,onOpenChange:F,items:se}))},ue=()=>C?So((x||[]).map(pe=>String(pe)),le,!0):le.length===0;te=s.createElement(s.Fragment,null,fe(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(Zn,{type:"link",size:"small",disabled:ue(),onClick:()=>X()},g.filterReset),s.createElement(Zn,{type:"primary",size:"small",onClick:H},g.filterConfirm)))}i.filterDropdown&&(te=s.createElement(Kw,{selectable:void 0},te));const re=()=>s.createElement(W9,{className:`${o}-dropdown`},te);let me;return typeof i.filterIcon=="function"?me=i.filterIcon(O):i.filterIcon?me=i.filterIcon:me=s.createElement(_7,null),s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${r}-column-title`},S),s.createElement(ph,{dropdownRender:re,trigger:["click"],open:j,onOpenChange:ne,getPopupContainer:b,placement:U==="rtl"?"bottomLeft":"bottomRight",rootClassName:h},s.createElement("span",{role:"button",tabIndex:-1,className:Z(`${o}-trigger`,{active:O}),onClick:le=>{le.stopPropagation()}},me)))},hp=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const l=ll(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(a=c==null?void 0:c.map(String))!==null&&a!==void 0?a:c),r.push({column:o,key:hi(o,l),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:hi(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(de(r),de(hp(o.children,t,l))))}),r};function aE(e,t,n,r,o,i,a,l,c){return n.map((u,d)=>{const f=ll(d,l),{filterOnClose:m=!0,filterMultiple:v=!0,filterMode:g,filterSearch:S}=u;let b=u;if(b.filters||b.filterDropdown){const h=hi(b,f),p=r.find(y=>{let{key:C}=y;return h===C});b=Object.assign(Object.assign({},b),{title:y=>s.createElement(G9,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:b,columnKey:h,filterState:p,filterOnClose:m,filterMultiple:v,filterMode:g,filterSearch:S,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:c},qd(u.title,y))})}return"children"in b&&(b=Object.assign(Object.assign({},b),{children:aE(e,t,b.children,r,o,i,a,f,c)})),b})}const Nb=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:c}=i;if(c)t[a]=o||null;else if(Array.isArray(o)){const u=_a(l);t[a]=u.filter(d=>o.includes(String(d)))}else t[a]=null}),t},yp=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:l},filteredKeys:c}=i;return a&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=_a(l),m=f.findIndex(g=>String(g)===String(d)),v=m!==-1?f[m]:d;return u[n]&&(u[n]=yp(u[n],t,n)),a(v,u)})):o},e),lE=e=>e.flatMap(t=>"children"in t?[t].concat(de(lE(t.children||[]))):[t]),q9=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;Ci();const c=s.useMemo(()=>lE(r||[]),[r]),[u,d]=s.useState(()=>hp(c,!0)),f=s.useMemo(()=>{const S=hp(c,!1);if(S.length===0)return S;let b=!0;if(S.forEach(h=>{let{filteredKeys:p}=h;p!==void 0&&(b=!1)}),b){const h=(c||[]).map((p,y)=>hi(p,ll(y)));return u.filter(p=>{let{key:y}=p;return h.includes(y)}).map(p=>{const y=c[h.findIndex(C=>C===p.key)];return Object.assign(Object.assign({},p),{column:Object.assign(Object.assign({},p.column),y),forceFiltered:y.filtered})})}return S},[c,u]),m=s.useMemo(()=>Nb(f),[f]),v=S=>{const b=f.filter(h=>{let{key:p}=h;return p!==S.key});b.push(S),d(b),o(Nb(b),b)};return[S=>aE(t,n,S,f,a,v,i,void 0,l),f,m]},X9=(e,t,n)=>{const r=s.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const v=n(f,m);c.set(v,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var l=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(i)}return[o]};var Y9=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 i=e[o];typeof i!="function"&&(n[o]=i)}),n}function Z9(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=Y9(r,["total"]),[a,l]=s.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:sE})),c=jk(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,v)=>{l({current:m??1,pageSize:v||c.pageSize})},f=(m,v)=>{var g;n&&((g=n.onChange)===null||g===void 0||g.call(n,m,v)),d(m,v),t(m,v||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const Qc="ascend",cm="descend",Uu=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Mb=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,J9=(e,t)=>t?e[e.indexOf(t)+1]:e[0],bp=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:hi(i,a),multiplePriority:Uu(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const l=ll(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(de(r),de(bp(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:hi(i,l),multiplePriority:Uu(i),sortOrder:i.defaultSortOrder}))}),r},cE=(e,t,n,r,o,i,a,l)=>(t||[]).map((u,d)=>{const f=ll(d,l);let m=u;if(m.sorter){const v=m.sortDirections||o,g=m.showSorterTooltip===void 0?a:m.showSorterTooltip,S=hi(m,f),b=n.find(E=>{let{key:O}=E;return O===S}),h=b?b.sortOrder:null,p=J9(v,h);let y;if(u.sortIcon)y=u.sortIcon({sortOrder:h});else{const E=v.includes(Qc)&&s.createElement(P7,{className:Z(`${e}-column-sorter-up`,{active:h===Qc})}),O=v.includes(cm)&&s.createElement(I7,{className:Z(`${e}-column-sorter-down`,{active:h===cm})});y=s.createElement("span",{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(E&&O)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},E,O))}const{cancelSort:C,triggerAsc:x,triggerDesc:w}=i||{};let $=C;p===cm?$=w:p===Qc&&($=x);const I=typeof g=="object"?Object.assign({title:$},g):{title:$};m=Object.assign(Object.assign({},m),{className:Z(m.className,{[`${e}-column-sort`]:h}),title:E=>{const O=`${e}-column-sorters`,T=s.createElement("span",{className:`${e}-column-title`},qd(u.title,E)),j=s.createElement("div",{className:O},T,y);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?s.createElement("div",{className:`${O} ${e}-column-sorters-tooltip-target-sorter`},T,s.createElement(Rs,Object.assign({},I),y)):s.createElement(Rs,Object.assign({},I),j):j},onHeaderCell:E=>{var O;const T=((O=u.onHeaderCell)===null||O===void 0?void 0:O.call(u,E))||{},j=T.onClick,z=T.onKeyDown;T.onClick=M=>{r({column:u,key:S,sortOrder:p,multiplePriority:Uu(u)}),j==null||j(M)},T.onKeyDown=M=>{M.keyCode===ge.ENTER&&(r({column:u,key:S,sortOrder:p,multiplePriority:Uu(u)}),z==null||z(M))};const R=y9(u.title,{}),k=R==null?void 0:R.toString();return h?T["aria-sort"]=h==="ascend"?"ascending":"descending":T["aria-label"]=k||"",T.className=Z(T.className,`${e}-column-has-sorters`),T.tabIndex=0,u.ellipsis&&(T.title=(R??"").toString()),T}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:cE(e,m.children,n,r,o,i,a,f)})),m}),Tb=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},zb=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Tb);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Tb(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t},Sp=(e,t,n)=>{const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:c}=a;return Mb(l)&&c});return i.length?o.sort((a,l)=>{for(let c=0;c{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:Sp(l,t,n)}):a}):o},eD=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[l,c]=s.useState(bp(n,!0)),u=(S,b)=>{const h=[];return S.forEach((p,y)=>{const C=ll(y,b);if(h.push(hi(p,C)),Array.isArray(p.children)){const x=u(p.children,C);h.push.apply(h,de(x))}}),h},d=s.useMemo(()=>{let S=!0;const b=bp(n,!1);if(!b.length){const C=u(n);return l.filter(x=>{let{key:w}=x;return C.includes(w)})}const h=[];function p(C){S?h.push(C):h.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return b.forEach(C=>{y===null?(p(C),C.sortOrder&&(C.multiplePriority===!1?S=!1:y=!0)):(y&&C.multiplePriority!==!1||(S=!1),p(C))}),h},[n,l]),f=s.useMemo(()=>{var S,b;const h=d.map(p=>{let{column:y,sortOrder:C}=p;return{column:y,order:C}});return{sortColumns:h,sortColumn:(S=h[0])===null||S===void 0?void 0:S.column,sortOrder:(b=h[0])===null||b===void 0?void 0:b.order}},[d]),m=S=>{let b;S.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?b=[S]:b=[].concat(de(d.filter(h=>{let{key:p}=h;return p!==S.key})),[S]),c(b),a(zb(b),b)};return[S=>cE(t,S,d,m,r,o,i),d,f,()=>zb(d)]},uE=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=qd(r.title,t),"children"in o&&(o.children=uE(o.children,t)),o}),tD=e=>[s.useCallback(n=>uE(n,e),[e])],nD=X$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),rD=Q$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),oD=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,u=`${G(n)} ${r} ${o}`,d=(f,m,v)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(m).mul(-1).equal())} + ${G(c(c(v).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(a).mul(-1).equal())} ${G(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},iD=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},xs),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},aD=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},lD=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:g,expandIconMarginTop:S,expandIconSize:b,expandIconHalfInner:h,expandIconScale:p,calc:y}=e,C=`${G(o)} ${a} ${l}`,x=y(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},TR(e)),{position:"relative",float:"left",boxSizing:"border-box",width:b,height:b,padding:0,color:"inherit",lineHeight:G(b),background:c,border:C,borderRadius:d,transform:`scale(${p})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:h,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:S,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(y(f).mul(-1).equal())} ${G(y(m).mul(-1).equal())}`,padding:`${G(f)} ${G(m)}`}}}},sD=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:v,tablePaddingHorizontal:g,borderRadius:S,motionDurationSlow:b,colorTextDescription:h,colorPrimary:p,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:w,controlItemBgHover:$,controlItemBgActive:I,boxShadowSecondary:E,filterDropdownMenuBg:O,calc:T}=e,j=`${n}-dropdown`,z=`${t}-filter-dropdown`,R=`${n}-tree`,k=`${G(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(a).mul(-1).equal(),marginInline:`${G(a)} ${G(T(g).div(2).mul(-1).equal())}`,padding:`0 ${G(a)}`,color:m,fontSize:v,borderRadius:S,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:h,background:y},"&.active":{color:p}}}},{[`${n}-dropdown`]:{[z]:Object.assign(Object.assign({},Zt(e)),{minWidth:o,backgroundColor:x,borderRadius:S,boxShadow:E,overflow:"hidden",[`${j}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${G(l)} 0`,color:C,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${z}-tree`]:{paddingBlock:`${G(l)} 0`,paddingInline:l,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:$},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${z}-search`]:{padding:l,borderBottom:k,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G(T(l).sub(u).equal())} ${G(l)}`,overflow:"hidden",borderTop:k}})}},{[`${n}-dropdown ${z}, ${z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},cD=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:i,background:a},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},uD=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${G(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},dD=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${G(n)} ${G(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${G(n)} ${G(n)}`}}}}},fD=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},mD=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:v,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).add(g(a).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:g(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:G(g(v).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},vD=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${G(a)} ${G(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:G(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${G(r(a).mul(-1).equal())} ${G(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:G(r(a).mul(-1).equal()),marginInline:`${G(r(n).sub(l).equal())} ${G(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:G(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},pD=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},gD=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${G(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},_b=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${G(o(n).mul(-1).equal())} 0 ${r}`}}}},hD=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${G(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},yD=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:v,tableHeaderBg:g,tableHeaderCellSplitColor:S,tableFooterTextColor:b,tableFooterBg:h,calc:p}=e,y=`${G(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Ou()),{[t]:Object.assign(Object.assign({},Zt(e)),{fontSize:u,background:d,borderRadius:`${G(f)} ${G(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(f)} ${G(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${G(r)} ${G(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${G(r)} ${G(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:y,transition:`background ${v} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:S,transform:"translateY(-50%)",transition:`background-color ${v}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${v}, border-color ${v}`,borderBottom:y,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:G(p(r).mul(-1).equal()),marginInline:`${G(p(i).sub(o).equal())} + ${G(p(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:y,transition:`background ${v} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(o)}`,color:b,background:h}})}},bD=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:v,colorTextPlaceholder:g,fontSize:S,fontSizeSM:b,lineHeight:h,lineWidth:p,colorIcon:y,colorIconHover:C,opacityLoading:x,controlInteractiveSize:w}=e,$=new qt(o).onBackground(n).toHexShortString(),I=new qt(i).onBackground(n).toHexShortString(),E=new qt(t).onBackground(n).toHexShortString(),O=new qt(y),T=new qt(C),j=w/2-p,z=j*2+p*3;return{headerBg:E,headerColor:r,headerSortActiveBg:$,headerSortHoverBg:I,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:E,footerColor:r,cellFontSize:S,cellFontSizeMD:S,cellFontSizeSM:S,headerSplitColor:f,fixedHeaderSortActiveBg:$,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:v,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(S*h-p*3)/2-Math.ceil((b*1.4-p*3)/2),headerIconColor:O.clone().setAlpha(O.getAlpha()*x).toRgbString(),headerIconHoverColor:T.clone().setAlpha(T.getAlpha()*x).toRgbString(),expandIconHalfInner:j,expandIconSize:z,expandIconScale:w/z}},jb=2,SD=vn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:v,cellPaddingBlock:g,cellPaddingInline:S,cellPaddingBlockMD:b,cellPaddingInlineMD:h,cellPaddingBlockSM:p,cellPaddingInlineSM:y,borderColor:C,footerBg:x,footerColor:w,headerBorderRadius:$,cellFontSize:I,cellFontSizeMD:E,cellFontSizeSM:O,headerSplitColor:T,fixedHeaderSortActiveBg:j,headerFilterHoverBg:z,filterDropdownBg:R,expandIconBg:k,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,_=zt(e,{tableFontSize:I,tableBg:r,tableRadius:$,tablePaddingVertical:g,tablePaddingHorizontal:S,tablePaddingVerticalMiddle:b,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:p,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:x,tableHeaderCellSplitColor:T,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:j,tableHeaderFilterActiveBg:z,tableFilterDropdownBg:R,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:jb,zIndexTableSticky:P(jb).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:O,tableSelectionColumnWidth:M,tableExpandIconBg:k,tableExpandColumnWidth:P(o).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:v,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[yD(_),uD(_),_b(_),pD(_),sD(_),oD(_),dD(_),lD(_),_b(_),aD(_),mD(_),cD(_),gD(_),iD(_),vD(_),fD(_),hD(_)]},bD,{unitless:{expandIconScale:!0}}),CD=[],xD=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:v,rowKey:g="key",rowClassName:S,columns:b,children:h,childrenColumnName:p,onChange:y,getPopupContainer:C,loading:x,expandIcon:w,expandable:$,expandedRowRender:I,expandIconColumnIndex:E,indentSize:O,scroll:T,sortDirections:j,locale:z,showSorterTooltip:R={target:"full-header"},virtual:k}=e;Ci();const M=s.useMemo(()=>b||wh(h),[b,h]),N=s.useMemo(()=>M.some(Te=>Te.responsive),[M]),P=Sw(N),_=s.useMemo(()=>{const Te=new Set(Object.keys(P).filter(qe=>P[qe]));return M.filter(qe=>!qe.responsive||qe.responsive.some(De=>Te.has(De)))},[M,P]),F=Tn(e,["className","style","columns"]),{locale:D=pi,direction:B,table:V,renderEmpty:q,getPrefixCls:H,getPopupContainer:X}=s.useContext(it),K=so(c),ne=Object.assign(Object.assign({},D.Table),z),oe=f||CD,Y=H("table",o),W=H("dropdown",d),[,ee]=Ln(),te=qn(Y),[U,ae,re]=SD(Y,te),me=Object.assign(Object.assign({childrenColumnName:p,expandIconColumnIndex:E},$),{expandIcon:(n=$==null?void 0:$.expandIcon)!==null&&n!==void 0?n:(r=V==null?void 0:V.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:le="children"}=me,fe=s.useMemo(()=>oe.some(Te=>Te==null?void 0:Te[le])?"nest":I||$!=null&&$.expandedRowRender?"row":null,[oe]),ue={body:s.useRef()},pe=h9(Y),Oe=s.useRef(null),se=s.useRef(null);p9(t,()=>Object.assign(Object.assign({},se.current),{nativeElement:Oe.current}));const ce=s.useMemo(()=>typeof g=="function"?g:Te=>Te==null?void 0:Te[g],[g]),[ye]=X9(oe,le,ce),be={},Ke=function(Te,qe){let De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Xe,bt,gt,_t;const Ct=Object.assign(Object.assign({},be),Te);De&&((Xe=be.resetPagination)===null||Xe===void 0||Xe.call(be),!((bt=Ct.pagination)===null||bt===void 0)&&bt.current&&(Ct.pagination.current=1),m&&((gt=m.onChange)===null||gt===void 0||gt.call(m,1,(_t=Ct.pagination)===null||_t===void 0?void 0:_t.pageSize))),T&&T.scrollToFirstRowOnChange!==!1&&ue.body.current&&X5(0,{getContainer:()=>ue.body.current}),y==null||y(Ct.pagination,Ct.filters,Ct.sorter,{currentDataSource:yp(Sp(oe,Ct.sorterStates,le),Ct.filterStates,le),action:qe})},je=(Te,qe)=>{Ke({sorter:Te,sorterStates:qe},"sort",!1)},[We,Se,Be,Pe]=eD({prefixCls:Y,mergedColumns:_,onSorterChange:je,sortDirections:j||["ascend","descend"],tableLocale:ne,showSorterTooltip:R}),Re=s.useMemo(()=>Sp(oe,Se,le),[oe,Se]);be.sorter=Pe(),be.sorterStates=Se;const Ie=(Te,qe)=>{Ke({filters:Te,filterStates:qe},"filter",!0)},[Me,ke,nt]=q9({prefixCls:Y,locale:ne,dropdownPrefixCls:W,mergedColumns:_,onFilterChange:Ie,getPopupContainer:C||X,rootClassName:Z(a,te)}),Ue=yp(Re,ke,le);be.filters=nt,be.filterStates=ke;const $t=s.useMemo(()=>{const Te={};return Object.keys(nt).forEach(qe=>{nt[qe]!==null&&(Te[qe]=nt[qe])}),Object.assign(Object.assign({},Be),{filters:Te})},[Be,nt]),[at]=tD($t),Ot=(Te,qe)=>{Ke({pagination:Object.assign(Object.assign({},be.pagination),{current:Te,pageSize:qe})},"paginate")},[lt,Rt]=Z9(Ue.length,Ot,m);be.pagination=m===!1?{}:Q9(lt,m),be.resetPagination=Rt;const Je=s.useMemo(()=>{if(m===!1||!lt.pageSize)return Ue;const{current:Te=1,total:qe,pageSize:De=sE}=lt;return Ue.lengthDe?Ue.slice((Te-1)*De,Te*De):Ue:Ue.slice((Te-1)*De,Te*De)},[!!m,Ue,lt==null?void 0:lt.current,lt==null?void 0:lt.pageSize,lt==null?void 0:lt.total]),[He,Qe]=m9({prefixCls:Y,data:Ue,pageData:Je,getRowKey:ce,getRecordByKey:ye,expandType:fe,childrenColumnName:le,locale:ne,getPopupContainer:C||X},v),Le=(Te,qe,De)=>{let Xe;return typeof S=="function"?Xe=Z(S(Te,qe,De)):Xe=Z(S),Z({[`${Y}-row-selected`]:Qe.has(ce(Te,qe))},Xe)};me.__PARENT_RENDER_ICON__=me.expandIcon,me.expandIcon=me.expandIcon||w||g9(ne),fe==="nest"&&me.expandIconColumnIndex===void 0?me.expandIconColumnIndex=v?1:0:me.expandIconColumnIndex>0&&v&&(me.expandIconColumnIndex-=1),typeof me.indentSize!="number"&&(me.indentSize=typeof O=="number"?O:15);const $e=s.useCallback(Te=>at(He(Me(We(Te)))),[We,Me,He]);let Ge,et;if(m!==!1&&(lt!=null&<.total)){let Te;lt.size?Te=lt.size:Te=K==="small"||K==="middle"?"small":void 0;const qe=bt=>s.createElement(n7,Object.assign({},lt,{className:Z(`${Y}-pagination ${Y}-pagination-${bt}`,lt.className),size:Te})),De=B==="rtl"?"left":"right",{position:Xe}=lt;if(Xe!==null&&Array.isArray(Xe)){const bt=Xe.find(Ct=>Ct.includes("top")),gt=Xe.find(Ct=>Ct.includes("bottom")),_t=Xe.every(Ct=>`${Ct}`=="none");!bt&&!gt&&!_t&&(et=qe(De)),bt&&(Ge=qe(bt.toLowerCase().replace("top",""))),gt&&(et=qe(gt.toLowerCase().replace("bottom","")))}else et=qe(De)}let Ce;typeof x=="boolean"?Ce={spinning:x}:typeof x=="object"&&(Ce=Object.assign({spinning:!0},x));const we=Z(re,te,`${Y}-wrapper`,V==null?void 0:V.className,{[`${Y}-wrapper-rtl`]:B==="rtl"},i,a,ae),xe=Object.assign(Object.assign({},V==null?void 0:V.style),l),Ne=typeof(z==null?void 0:z.emptyText)<"u"?z.emptyText:(q==null?void 0:q("Table"))||s.createElement(mw,{componentName:"Table"}),dt=k?rD:nD,mt={},Pt=s.useMemo(()=>{const{fontSize:Te,lineHeight:qe,padding:De,paddingXS:Xe,paddingSM:bt}=ee,gt=Math.floor(Te*qe);switch(K){case"large":return De*2+gt;case"small":return Xe*2+gt;default:return bt*2+gt}},[ee,K]);return k&&(mt.listItemHeight=Pt),U(s.createElement("div",{ref:Oe,className:we,style:xe},s.createElement(yh,Object.assign({spinning:!1},Ce),Ge,s.createElement(dt,Object.assign({},mt,F,{ref:se,columns:_,direction:B,expandable:me,prefixCls:Y,className:Z({[`${Y}-middle`]:K==="middle",[`${Y}-small`]:K==="small",[`${Y}-bordered`]:u,[`${Y}-empty`]:oe.length===0},re,te,ae),data:Je,rowKey:ce,rowClassName:Le,emptyText:Ne,internalHooks:Ws,internalRefs:ue,transformColumns:$e,getContainerWidth:pe})),et)))},wD=s.forwardRef(xD),$D=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(wD,Object.assign({},e,{ref:t,_renderTimes:n.current}))},kr=s.forwardRef($D);kr.SELECTION_COLUMN=qo;kr.EXPAND_COLUMN=Qo;kr.SELECTION_ALL=mp;kr.SELECTION_INVERT=vp;kr.SELECTION_NONE=pp;kr.Column=n9;kr.ColumnGroup=r9;kr.Summary=F$;const ED=()=>Q.jsx("div",{className:"full-page-loader",children:Q.jsx(yh,{size:"large"})}),ID=[{title:"No",dataIndex:"index",key:"index",width:80,render:(e,t,n)=>n+1},{title:"Purpose",dataIndex:"purpose",key:"purpose",width:500},{title:"Question",dataIndex:"question",key:"question",width:500}],OD=(e,t)=>[{width:65,title:"Filter",dataIndex:"checkbox",render:(n,r)=>Q.jsx("input",{type:"checkbox",checked:e.includes(r),onChange:()=>t(r)})},{title:"No",dataIndex:"index",key:"index",width:80,render:(n,r,o)=>o+1},{title:"Title",dataIndex:"title",key:"title",width:200},{title:"Author",dataIndex:"creator",key:"creator",width:100},{title:"Publication URL",dataIndex:"link",key:"link",width:400},{title:"Journal Name",dataIndex:"publicationName",key:"publicationName",width:200},{title:"DOI",dataIndex:"doi",key:"doi",width:200},{title:"Paper Type",dataIndex:"aggregationType",key:"aggregationType",width:150},{title:"Affiliation Country",dataIndex:"affiliation-country",key:"affiliation-country",width:100},{title:"Affiliation Name",dataIndex:"affilname",key:"affilname",width:200},{title:"Volume",dataIndex:"volume",key:"volume",width:90},{title:"Publication Year",dataIndex:"year",key:"year",width:90},{title:"Open Access",dataIndex:"openaccess",key:"openaccess",render:n=>n?"Yes":"No",width:150}],RD=[{title:"No",dataIndex:"index",key:"index",width:80,render:(e,t,n)=>n+1},{title:"Title",dataIndex:"title",key:"title",width:200},{title:"Author",dataIndex:"creator",key:"creator",width:100},{title:"Publication URL",dataIndex:"link",key:"link",width:400},{title:"Journal Name",dataIndex:"publicationName",key:"publicationName",width:200},{title:"DOI",dataIndex:"doi",key:"doi",width:200},{title:"Paper Type",dataIndex:"aggregationType",key:"aggregationType",width:150},{title:"Affiliation Country",dataIndex:"affiliation-country",key:"affiliation-country",width:100},{title:"Affiliation Name",dataIndex:"affilname",key:"affilname",width:200},{title:"Volume",dataIndex:"volume",key:"volume",width:90},{title:"Publication Year",dataIndex:"year",key:"year",width:90},{title:"Open Access",dataIndex:"openaccess",key:"openaccess",render:e=>e?"Yes":"No",width:150}],PD=[{title:"No",dataIndex:"index",key:"index",width:80,render:(e,t,n)=>n+1},{title:"Question",dataIndex:"question",key:"question",width:280},{title:"Answer",dataIndex:"answer",key:"answer"}];function ND(){const[e,t]=s.useState(!1),n=s.useRef(),r=()=>{let H=document.getElementById("mainContainer");setTimeout(()=>{H.scroll(0,H.scrollHeight)},300)},[o,i]=s.useState("'My work aims to systematically identify and analyze, the literature on Large language models in software development'"),[a,l]=s.useState(2),[c,u]=s.useState([]),[d,f]=s.useState(),[m,v]=s.useState(""),[g,S]=s.useState(2023);s.useState(2020);const b=async H=>{H.preventDefault();try{t(!0);const K=await(await fetch("/api/generate_search_string",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({objective:o,research_questions:c})})).json();v(K.search_string.replace(/^\d+\.\s*/,"").replace(/\bAND\b/g,"OR").replace(/[()]/g,"")),t(!1),r(),yr.success({message:"Search String Generated"})}catch{yr.error({message:"internal Server Error"}),t(!1)}},[h,p]=s.useState(),[y,C]=s.useState(10),x=async H=>{H.preventDefault();try{t(!0);const K=await(await fetch("/api/search_papers",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({search_string:m,start_year:g,limit:y})})).json();K&&p(K),r(),t(!1),yr.success({message:"Papers Found"})}catch(X){console.log("error:",X),t(!1),yr.error({message:"Internal Server Error"})}},w=async H=>{H.preventDefault();try{t(!0);const K=await(await fetch("/api/generate_research_questions_and_purpose",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({objective:o,num_questions:a})})).json();let ne=K.research_questions.research_questions.map((Y,W)=>({...Y,key:W}));console.log("response:",ne),f(ne);let oe=K.research_questions.research_questions.map(Y=>Y.question);u(oe),t(!1),r(),yr.success({message:"Research Questions Generated"})}catch(X){console.error("Error submitting data:",X),t(!1),yr.error({message:"Internal Server Error"})}},[$,I]=s.useState([]),E=H=>{const X=[...$];X.includes(H)?X.splice(X.indexOf(H),1):X.push(H),I(X)},O=async H=>{H.preventDefault();try{t(!0);const K=await(await fetch("/api/filter_papers",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({search_string:m,papers:h})})).json();if(K){const ne=K.filtered_papers,oe=[...new Set([...$,...ne])];I(oe)}r(),t(!1),yr.success({message:"Papers Filtered"})}catch(X){console.log("error:",X),t(!1),yr.error({message:"internal server error"})}},[T,j]=s.useState(),z=async H=>{H.preventDefault();try{t(!0);const K=await(await fetch("/api/answer_question",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({questions:c,papers_info:[...new Set([...$,...$])]})})).json();console.log("message:",K),K&&j(K.answers),t(!1),yr.success({message:"Answers Generated"}),r()}catch(X){console.log("error:",X),t(!1),yr.error({message:"Internal Server Error"})}},[R,k]=s.useState(),[M,N]=s.useState(),P=async H=>{H.preventDefault(),t(!0);try{let K=await(await fetch("api/generate-summary-abstract",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({questions:c,objective:o,search_string:m})})).json();k(K.summary_abstract),t(!1),yr.success({message:"Summary Abstract Generated"}),r()}catch(X){t(!1),console.log("error:",X)}},_=async H=>{H.preventDefault(),t(!0);try{let K=await(await fetch("api/generate-introduction-summary",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({questions:c,objective:o,search_string:m,total_papers:h,filtered_papers:$,answers:T})})).json();N(K.introduction_summary),t(!1),yr.success({message:"Introduction Summary Generated"}),r()}catch(X){t(!1),console.log("error:",X)}},[F,D]=s.useState(),B=async H=>{H.preventDefault(),t(!0);try{let X=await fetch("api/generate-summary-all",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({abstract_summary:R,intro_summary:M,conclusion_summary:R})});if(!X.ok)throw new Error(`Error: ${X.status} - ${X.statusText}`);const K=await X.blob(),ne=X.headers.get("Content-Disposition"),oe=ne?ne.split("filename=")[1]:"paper_summary.tex",Y=window.URL.createObjectURL(new Blob([K])),W=document.createElement("a");W.href=Y,W.setAttribute("download",oe),document.body.appendChild(W),W.click(),window.URL.revokeObjectURL(Y),document.body.removeChild(W),t(!1)}catch(X){t(!1),console.log("error:",X)}},V=H=>{const K=H.target.value.replace(/^Question \d+: /gm,"");console.log("modified value",K.trim());const ne=K.split(` +`).map(oe=>oe);u(ne)},q=H=>{H.target.value==""?v(" "):v(H.target.value)};return Q.jsxs(Ui,{children:[Q.jsx($$,{style:{backgroundColor:"#f3fff3"},children:Q.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginLeft:"0px"},children:[Q.jsx("div",{children:Q.jsx(LI,{width:"60px",height:"60px"})}),Q.jsx("div",{style:{fontSize:"20px",color:"black"},children:Q.jsx("strong",{children:"SLR Automation Tool"})}),Q.jsx("div",{})]})}),Q.jsx(Ui,{children:Q.jsxs(I$,{children:[e&&Q.jsx(ED,{}),Q.jsxs("div",{id:"mainContainer",style:{lineHeight:"0px",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"auto",height:"85vh",paddingBottom:"30px"},ref:n,children:[Q.jsxs("div",{children:[Q.jsx("div",{children:Q.jsx("h5",{children:"Hello, I am your Agent, Enter Your Research Objective."})}),Q.jsx("div",{style:{display:"flex",alignItems:"center",width:"80vw",border:"1px solid #ccc",padding:15,marginBottom:5,borderRadius:"10px"},children:Q.jsxs(cn,{layout:"vertical",style:{width:"100%",display:"flex",alignItems:"center"},children:[Q.jsx(cn.Item,{label:"Objective",style:{flex:"1 1 70%",marginRight:"5px"},children:Q.jsx(po,{placeholder:"Ask me anything...",value:o,onChange:H=>i(H.target.value)})}),Q.jsx(cn.Item,{label:"No of Questions",style:{flex:1,marginRight:"5px"},children:Q.jsx(po,{placeholder:"Number of Questions",min:1,max:5,value:a,onChange:H=>l(H.target.value),type:"number"})}),Q.jsx(cn.Item,{style:{marginBottom:"-4px"},children:Q.jsx(Zn,{type:"primary",icon:Q.jsx(Ld,{}),onClick:w,children:"Search"})})]})})]}),d&&Q.jsx("div",{style:{display:"flex",alignItems:"center",width:"80vw",border:"1px solid #ccc",padding:10,borderRadius:"10px",marginBottom:5},children:Q.jsx(mo,{direction:"vertical",style:{width:"100%",padding:"10px 0px"},children:Q.jsx(kr,{scroll:{x:1200,y:500},style:{width:"100%"},dataSource:d,columns:ID,pagination:!1})})}),c&&c.length>0&&Q.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"80vw",border:"1px solid #ccc",padding:10,borderRadius:"10px"},children:[Q.jsx("div",{children:Q.jsx(mo,{align:"center",direction:"vertical",style:{display:"flex",justifyContent:"center"},children:Q.jsxs(cn,{layout:"vertical",children:[Q.jsx(cn.Item,{label:"List Of Questions",children:Q.jsx(Rl,{style:{width:"70vw"},onChange:V,value:c.map((H,X)=>H.length==0?"":`Question ${X+1}: ${H}`).join(` +`),rows:c.length})}),Q.jsx(Zn,{type:"primary",style:{width:"auto",float:"right"},onClick:b,children:"Create Search String"})]})})}),m&&m.length>0&&Q.jsx("div",{children:Q.jsxs("div",{children:[Q.jsx($c,{}),Q.jsx(mo,{align:"center",direction:"vertical",style:{display:"flex",justifyContent:"center"},children:Q.jsxs(cn,{layout:"vertical",children:[Q.jsx(cn.Item,{label:"Search String",children:Q.jsx(Rl,{onChange:q,value:m,rows:3,style:{width:"70vw"}})}),Q.jsx(cn.Item,{label:"Year",style:{width:"70vw"},children:Q.jsx(po,{type:"number",max:2024,min:2014,value:g,onChange:H=>S(H.target.value)})}),Q.jsx(cn.Item,{label:"No of Papers",style:{width:"70vw"},children:Q.jsx(po,{type:"number",max:15,min:5,value:y,onChange:H=>C(H.target.value),placeholder:"No Of Papers"})}),Q.jsx(Zn,{type:"primary",style:{width:"auto",float:"right"},onClick:x,children:"Fetch Papers"})]})})]})}),h&&Q.jsxs(Q.Fragment,{children:[Q.jsx($c,{}),Q.jsxs(mo,{direction:"vertical",style:{width:"100%",padding:"10px 0px"},children:[Q.jsx(kr,{scroll:{x:1500,y:450},style:{width:"100%"},dataSource:h,columns:OD($,E),pagination:!1}),Q.jsx(Zn,{type:"primary",style:{float:"right",marginTop:"10px"},onClick:O,children:"Filter with title"})]})]}),($.length>0||$.length>0)&&Q.jsxs(mo,{direction:"vertical",style:{width:"100%",padding:"10px 0px"},children:[Q.jsx(kr,{scroll:{x:1500,y:450},dataSource:[...new Set([...$,...$])],columns:RD,pagination:!1}),($.length>0||$.length>0)&&Q.jsx(Zn,{type:"primary",style:{float:"right",marginTop:"10px"},onClick:z,children:"Find Answers of Each Question "})]}),T&&Q.jsxs(mo,{direction:"vertical",style:{width:"100%",padding:"10px 0px"},children:[Q.jsx(kr,{dataSource:T,columns:PD,pagination:!1}),Q.jsx(Zn,{type:"primary",style:{float:"right",marginTop:"10px"},onClick:P,children:"Generate Summary Abstract "})]}),R&&R.length>0&&Q.jsxs(Q.Fragment,{children:[Q.jsx($c,{}),Q.jsx(mo,{align:"center",direction:"vertical",style:{display:"flex",justifyContent:"center"},children:Q.jsxs(cn,{layout:"vertical",children:[Q.jsx(cn.Item,{label:"Summary Abstract",children:Q.jsx(Rl,{onChange:H=>k(H.target.value),value:R,rows:7,style:{width:"70vw"}})}),Q.jsx(Zn,{type:"primary",style:{width:"auto",float:"right"},onClick:_,children:"Introduction Summary"})]})})]}),M&&M.length>0&&Q.jsxs(Q.Fragment,{children:[Q.jsx($c,{}),Q.jsx(mo,{align:"center",direction:"vertical",style:{display:"flex",justifyContent:"center"},children:Q.jsxs(cn,{layout:"vertical",children:[Q.jsx(cn.Item,{label:"Introduction Summary",children:Q.jsx(Rl,{onChange:H=>N(H.target.value),value:M,rows:7,style:{width:"70vw"}})}),Q.jsx(Zn,{type:"primary",style:{width:"auto",float:"right"},onClick:B,children:"Create Paper Summary"}),F&&F.length>0&&Q.jsx("a",{href:F,children:"download file"})]})})]})]})]})]})}),Q.jsx(E$,{className:"footerFixed",children:Q.jsx("div",{style:{float:"right",lineHeight:0},children:Q.jsxs("p",{children:["© ",new Date().getFullYear()," SLR Automation Tool. All rights reserved. "]})})})]})}um.createRoot(document.getElementById("root")).render(Q.jsx(ie.StrictMode,{children:Q.jsx(ND,{})}));