function rb(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 _m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ob={exports:{}},dc={},ib={exports:{}},dt={};/** * @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 Zl=Symbol.for("react.element"),Ax=Symbol.for("react.portal"),jx=Symbol.for("react.fragment"),Dx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),kx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),Vx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),Ux=Symbol.for("react.memo"),Kx=Symbol.for("react.lazy"),bg=Symbol.iterator;function Gx(e){return e===null||typeof e!="object"?null:(e=bg&&e[bg]||e["@@iterator"],typeof e=="function"?e:null)}var ab={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lb=Object.assign,sb={};function Ia(e,t,n){this.props=e,this.context=t,this.refs=sb,this.updater=n||ab}Ia.prototype.isReactComponent={};Ia.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")};Ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ub(){}ub.prototype=Ia.prototype;function Mm(e,t,n){this.props=e,this.context=t,this.refs=sb,this.updater=n||ab}var Nm=Mm.prototype=new ub;Nm.constructor=Mm;lb(Nm,Ia.prototype);Nm.isPureReactComponent=!0;var Sg=Array.isArray,cb=Object.prototype.hasOwnProperty,Lm={current:null},db={key:!0,ref:!0,__self:!0,__source:!0};function fb(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)cb.call(t,r)&&!db.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,V=_[H];if(0>>1;Ho(k,z))Ko(Z,k)?(_[H]=Z,_[K]=z,H=K):(_[H]=k,_[D]=z,H=D);else if(Ko(Z,z))_[H]=Z,_[K]=z,H=K;else break e}}return B}function o(_,B){var z=_.sortIndex-B.sortIndex;return z!==0?z:_.id-B.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 s=[],c=[],d=1,f=null,v=3,g=!1,m=!1,y=!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 S(_){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=_)r(c),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(c)}}function C(_){if(y=!1,S(_),!m)if(n(s)!==null)m=!0,L(w);else{var B=n(c);B!==null&&A(C,B.startTime-_)}}function w(_,B){m=!1,y&&(y=!1,h($),$=-1),g=!0;var z=v;try{for(S(B),f=n(s);f!==null&&(!(f.expirationTime>B)||_&&!P());){var H=f.callback;if(typeof H=="function"){f.callback=null,v=f.priorityLevel;var V=H(f.expirationTime<=B);B=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(s)&&r(s),S(B)}else r(s);f=n(s)}if(f!==null)var W=!0;else{var D=n(c);D!==null&&A(C,D.startTime-B),W=!1}return W}finally{f=null,v=z,g=!1}}var x=!1,E=null,$=-1,R=5,O=-1;function P(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var z=v;v=B;try{return _()}finally{v=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=v;v=_;try{return B()}finally{v=z}},e.unstable_scheduleCallback=function(_,B,z){var H=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0H?(_.sortIndex=z,t(c,_),n(s)===null&&_===n(c)&&(y?(h($),$=-1):y=!0,A(C,z-H))):(_.sortIndex=V,t(s,_),m||g||(m=!0,L(w))),_},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(_){var B=v;return function(){var z=v;v=B;try{return _.apply(this,arguments)}finally{v=z}}}})(hb);gb.exports=hb;var oE=gb.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 iE=u,vr=oE;function ve(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"),Tf=Object.prototype.hasOwnProperty,aE=/^[: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]*$/,wg={},xg={};function lE(e){return Tf.call(xg,e)?!0:Tf.call(wg,e)?!1:aE.test(e)?xg[e]=!0:(wg[e]=!0,!1)}function sE(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 uE(e,t,n,r){if(t===null||typeof t>"u"||sE(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 Hn(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 xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xn[e]=new Hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xn[t]=new Hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xn[e]=new Hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xn[e]=new Hn(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){xn[e]=new Hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xn[e]=new Hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xn[e]=new Hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xn[e]=new Hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xn[e]=new Hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var zm=/[\-:]([a-z])/g;function Am(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(zm,Am);xn[t]=new Hn(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(zm,Am);xn[t]=new Hn(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(zm,Am);xn[t]=new Hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!1,!1)});xn.xlinkHref=new Hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function jm(e,t,n,r){var o=xn.hasOwnProperty(t)?xn[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nl(e):""}function cE(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return e=$d(e.type,!1),e;case 11:return e=$d(e.type.render,!1),e;case 1:return e=$d(e.type,!0),e;default:return""}}function Lf(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 Hi:return"Fragment";case ki:return"Portal";case _f:return"Profiler";case Dm:return"StrictMode";case Mf:return"Suspense";case Nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sb:return(e.displayName||"Context")+".Consumer";case bb:return(e._context.displayName||"Context")+".Provider";case Bm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case km:return t=e.displayName||null,t!==null?t:Lf(e.type)||"Memo";case Po:t=e._payload,e=e._init;try{return Lf(e(t))}catch{}}return null}function dE(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 Lf(t);case 8:return t===Dm?"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 Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fE(e){var t=wb(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 $s(e){e._valueTracker||(e._valueTracker=fE(e))}function xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xu(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 Ff(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $g(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Uo(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 Eb(e,t){t=t.checked,t!=null&&jm(e,"checked",t,!1)}function zf(e,t){Eb(e,t);var n=Uo(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")?Af(e,t.type,n):t.hasOwnProperty("defaultValue")&&Af(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rg(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 Af(e,t,n){(t!=="number"||xu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rl=Array.isArray;function ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ul={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},vE=["Webkit","ms","Moz","O"];Object.keys(ul).forEach(function(e){vE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ul[t]=ul[e]})});function Pb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ul.hasOwnProperty(e)&&ul[e]?(""+t).trim():t+"px"}function Ib(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Pb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mE=Qt({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 Bf(e,t){if(t){if(mE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function kf(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 Hf=null;function Hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vf=null,oa=null,ia=null;function Ig(e){if(e=ns(e)){if(typeof Vf!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=hc(t),Vf(e.stateNode,e.type,t))}}function Tb(e){oa?ia?ia.push(e):ia=[e]:oa=e}function _b(){if(oa){var e=oa,t=ia;if(ia=oa=null,Ig(e),t)for(e=0;e>>=0,e===0?32:31-($E(e)/RE|0)|0}var Os=64,Ps=4194304;function ol(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 Ou(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=ol(l):(i&=a,i!==0&&(r=ol(i)))}else a=n&~o,a!==0?r=ol(a):i!==0&&(r=ol(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 es(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fr(t),e[t]=n}function TE(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=dl),jg=" ",Dg=!1;function Yb(e,t){switch(e){case"keyup":return o$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vi=!1;function a$(e,t){switch(e){case"compositionend":return Jb(t);case"keypress":return t.which!==32?null:(Dg=!0,jg);case"textInput":return e=t.data,e===jg&&Dg?null:e;default:return null}}function l$(e,t){if(Vi)return e==="compositionend"||!Qm&&Yb(e,t)?(e=Xb(),Zs=Gm=Mo=null,Vi=!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=Vg(n)}}function nS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rS(){for(var e=window,t=xu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xu(e.document)}return t}function Ym(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 g$(e){var t=rS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nS(n.ownerDocument.documentElement,n)){if(r!==null&&Ym(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=Wg(n,i);var a=Wg(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,Wi=null,Xf=null,vl=null,Qf=!1;function Ug(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qf||Wi==null||Wi!==xu(r)||(r=Wi,"selectionStart"in r&&Ym(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}),vl&&Pl(vl,r)||(vl=r,r=Tu(Xf,"onSelect"),0Gi||(e.current=nv[Gi],nv[Gi]=null,Gi--)}function Lt(e,t){Gi++,nv[Gi]=e.current,e.current=t}var Ko={},Mn=Xo(Ko),Yn=Xo(!1),mi=Ko;function va(e,t){var n=e.type.contextTypes;if(!n)return Ko;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 Jn(e){return e=e.childContextTypes,e!=null}function Mu(){Bt(Yn),Bt(Mn)}function Jg(e,t,n){if(Mn.current!==Ko)throw Error(ve(168));Lt(Mn,t),Lt(Yn,n)}function fS(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(ve(108,dE(e)||"Unknown",o));return Qt({},n,r)}function Nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ko,mi=Mn.current,Lt(Mn,e),Lt(Yn,Yn.current),!0}function Zg(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=fS(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,Bt(Yn),Bt(Mn),Lt(Mn,e)):Bt(Yn),Lt(Yn,n)}var io=null,yc=!1,Dd=!1;function vS(e){io===null?io=[e]:io.push(e)}function P$(e){yc=!0,vS(e)}function Qo(){if(!Dd&&io!==null){Dd=!0;var e=0,t=Ot;try{var n=io;for(Ot=1;e>=a,o-=a,ao=1<<32-Fr(t)+o|n<$?(R=E,E=null):R=E.sibling;var O=v(h,E,S[$],C);if(O===null){E===null&&(E=R);break}e&&E&&O.alternate===null&&t(h,E),p=i(O,p,$),x===null?w=O:x.sibling=O,x=O,E=R}if($===S.length)return n(h,E),Wt&&ei(h,$),w;if(E===null){for(;$$?(R=E,E=null):R=E.sibling;var P=v(h,E,O.value,C);if(P===null){E===null&&(E=R);break}e&&E&&P.alternate===null&&t(h,E),p=i(P,p,$),x===null?w=P:x.sibling=P,x=P,E=R}if(O.done)return n(h,E),Wt&&ei(h,$),w;if(E===null){for(;!O.done;$++,O=S.next())O=f(h,O.value,C),O!==null&&(p=i(O,p,$),x===null?w=O:x.sibling=O,x=O);return Wt&&ei(h,$),w}for(E=r(h,E);!O.done;$++,O=S.next())O=g(E,h,$,O.value,C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?$:O.key),p=i(O,p,$),x===null?w=O:x.sibling=O,x=O);return e&&E.forEach(function(I){return t(h,I)}),Wt&&ei(h,$),w}function b(h,p,S,C){if(typeof S=="object"&&S!==null&&S.type===Hi&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Es:e:{for(var w=S.key,x=p;x!==null;){if(x.key===w){if(w=S.type,w===Hi){if(x.tag===7){n(h,x.sibling),p=o(x,S.props.children),p.return=h,h=p;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Po&&nh(w)===x.type){n(h,x.sibling),p=o(x,S.props),p.ref=Ga(h,x,S),p.return=h,h=p;break e}n(h,x);break}else t(h,x);x=x.sibling}S.type===Hi?(p=di(S.props.children,h.mode,C,S.key),p.return=h,h=p):(C=lu(S.type,S.key,S.props,null,h.mode,C),C.ref=Ga(h,p,S),C.return=h,h=C)}return a(h);case ki:e:{for(x=S.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===S.containerInfo&&p.stateNode.implementation===S.implementation){n(h,p.sibling),p=o(p,S.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Gd(S,h.mode,C),p.return=h,h=p}return a(h);case Po:return x=S._init,b(h,p,x(S._payload),C)}if(rl(S))return m(h,p,S,C);if(Ha(S))return y(h,p,S,C);Fs(h,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,S),p.return=h,h=p):(n(h,p),p=Kd(S,h.mode,C),p.return=h,h=p),a(h)):n(h,p)}return b}var pa=hS(!0),yS=hS(!1),zu=Xo(null),Au=null,Qi=null,tp=null;function np(){tp=Qi=Au=null}function rp(e){var t=zu.current;Bt(zu),e._currentValue=t}function iv(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 la(e,t){Au=e,tp=Qi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qn=!0),e.firstContext=null)}function Er(e){var t=e._currentValue;if(tp!==e)if(e={context:e,memoizedValue:t,next:null},Qi===null){if(Au===null)throw Error(ve(308));Qi=e,Au.dependencies={lanes:0,firstContext:e}}else Qi=Qi.next=e;return t}var ii=null;function op(e){ii===null?ii=[e]:ii.push(e)}function bS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,op(t)):(n.next=o.next,o.next=n),t.interleaved=n,mo(e,r)}function mo(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 Io=!1;function ip(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function SS(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 uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ko(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,yt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mo(e,n)}return o=r.interleaved,o===null?(t.next=t,op(r)):(t.next=o.next,o.next=t),r.interleaved=t,mo(e,n)}function tu(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,Wm(e,n)}}function rh(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 ju(e,t,n,r){var o=e.updateQueue;Io=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var f=o.baseState;a=0,d=c=s=null,l=i;do{var v=l.lane,g=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,y=l;switch(v=t,g=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(g,f,v);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,v=typeof m=="function"?m.call(g,f,v):m,v==null)break e;f=Qt({},f,v);break e;case 2:Io=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else g={eventTime:g,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=f):d=d.next=g,a|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=c,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 oh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=kd.transition;kd.transition={};try{e(!1),t()}finally{Ot=n,kd.transition=r}}function AS(){return $r().memoizedState}function M$(e,t,n){var r=Vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jS(e))DS(t,n);else if(n=bS(e,t,n,r),n!==null){var o=Bn();zr(n,e,r,o),BS(n,t,r)}}function N$(e,t,n){var r=Vo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jS(e))DS(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,Br(l,a)){var s=t.interleaved;s===null?(o.next=o,op(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=bS(e,t,o,r),n!==null&&(o=Bn(),zr(n,e,r,o),BS(n,t,r))}}function jS(e){var t=e.alternate;return e===Xt||t!==null&&t===Xt}function DS(e,t){ml=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function BS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wm(e,n)}}var ku={readContext:Er,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},L$={readContext:Er,useCallback:function(e,t){return Gr().memoizedState=[e,t===void 0?null:t],e},useContext:Er,useEffect:ah,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ru(4194308,4,MS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return ru(4,2,e,t)},useMemo:function(e,t){var n=Gr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gr();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=M$.bind(null,Xt,e),[r.memoizedState,e]},useRef:function(e){var t=Gr();return e={current:e},t.memoizedState=e},useState:ih,useDebugValue:vp,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=ih(!1),t=e[0];return e=_$.bind(null,e[1]),Gr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xt,o=Gr();if(Wt){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=t(),yn===null)throw Error(ve(349));gi&30||ES(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ah(RS.bind(null,r,i,e),[e]),r.flags|=2048,zl(9,$S.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Gr(),t=yn.identifierPrefix;if(Wt){var n=lo,r=ao;n=(r&~(1<<32-Fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ll++,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[Xr]=t,e[_l]=r,QS(e,t,!1,!1),t.stateNode=e;e:{switch(a=kf(n,r),n){case"dialog":jt("cancel",e),jt("close",e),o=r;break;case"iframe":case"object":case"embed":jt("load",e),o=r;break;case"video":case"audio":for(o=0;oya&&(t.flags|=128,r=!0,qa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Du(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Wt)return Rn(t),null}else 2*tn()-i.renderingStartTime>ya&&n!==1073741824&&(t.flags|=128,r=!0,qa(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=tn(),t.sibling=null,n=qt.current,Lt(qt,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return bp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?sr&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function H$(e,t){switch(Zm(t),t.tag){case 1:return Jn(t.type)&&Mu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),Bt(Yn),Bt(Mn),sp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Bt(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bt(qt),null;case 4:return ga(),null;case 10:return rp(t.type._context),null;case 22:case 23:return bp(),null;case 24:return null;default:return null}}var As=!1,In=!1,V$=typeof WeakSet=="function"?WeakSet:Set,Le=null;function Yi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Jt(e,t,r)}else n.current=null}function mv(e,t,n){try{n()}catch(r){Jt(e,t,r)}}var hh=!1;function W$(e,t){if(Yf=Pu,e=rS(),Ym(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,s=-1,c=0,d=0,f=e,v=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)v=f,f=g;for(;;){if(f===e)break t;if(v===n&&++c===o&&(l=a),v===i&&++d===r&&(s=a),(g=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jf={focusedElem:e,selectionRange:n},Pu=!1,Le=t;Le!==null;)if(t=Le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Le=e;else for(;Le!==null;){t=Le;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,b=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Tr(t.type,y),b);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ve(163))}}catch(C){Jt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Le=e;break}Le=t.return}return m=hh,hh=!1,m}function pl(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&&mv(t,n,i)}o=o.next}while(o!==r)}}function Cc(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 pv(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 ZS(e){var t=e.alternate;t!==null&&(e.alternate=null,ZS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[_l],delete t[tv],delete t[R$],delete t[O$])),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 eC(e){return e.tag===5||e.tag===3||e.tag===4}function yh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eC(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 gv(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=_u));else if(r!==4&&(e=e.child,e!==null))for(gv(e,t,n),e=e.sibling;e!==null;)gv(e,t,n),e=e.sibling}function hv(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(hv(e,t,n),e=e.sibling;e!==null;)hv(e,t,n),e=e.sibling}var Cn=null,_r=!1;function Eo(e,t,n){for(n=n.child;n!==null;)tC(e,t,n),n=n.sibling}function tC(e,t,n){if(Yr&&typeof Yr.onCommitFiberUnmount=="function")try{Yr.onCommitFiberUnmount(vc,n)}catch{}switch(n.tag){case 5:In||Yi(n,t);case 6:var r=Cn,o=_r;Cn=null,Eo(e,t,n),Cn=r,_r=o,Cn!==null&&(_r?(e=Cn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Cn.removeChild(n.stateNode));break;case 18:Cn!==null&&(_r?(e=Cn,n=n.stateNode,e.nodeType===8?jd(e.parentNode,n):e.nodeType===1&&jd(e,n),Rl(e)):jd(Cn,n.stateNode));break;case 4:r=Cn,o=_r,Cn=n.stateNode.containerInfo,_r=!0,Eo(e,t,n),Cn=r,_r=o;break;case 0:case 11:case 14:case 15:if(!In&&(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)&&mv(n,t,a),o=o.next}while(o!==r)}Eo(e,t,n);break;case 1:if(!In&&(Yi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Jt(n,t,l)}Eo(e,t,n);break;case 21:Eo(e,t,n);break;case 22:n.mode&1?(In=(r=In)||n.memoizedState!==null,Eo(e,t,n),In=r):Eo(e,t,n);break;default:Eo(e,t,n)}}function bh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new V$),t.forEach(function(r){var o=Z$.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*K$(r/1960))-r,10e?16:e,No===null)var r=!1;else{if(e=No,No=null,Wu=0,yt&6)throw Error(ve(331));var o=yt;for(yt|=4,Le=e.current;Le!==null;){var i=Le,a=i.child;if(Le.flags&16){var l=i.deletions;if(l!==null){for(var s=0;stn()-hp?ci(e,0):gp|=n),Zn(e,t)}function uC(e,t){t===0&&(e.mode&1?(t=Ps,Ps<<=1,!(Ps&130023424)&&(Ps=4194304)):t=1);var n=Bn();e=mo(e,t),e!==null&&(es(e,t,n),Zn(e,n))}function J$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uC(e,n)}function Z$(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(ve(314))}r!==null&&r.delete(t),uC(e,n)}var cC;cC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Qn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qn=!1,B$(e,t,n);Qn=!!(e.flags&131072)}else Qn=!1,Wt&&t.flags&1048576&&mS(t,Fu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=va(t,Mn.current);la(t,n),o=cp(null,t,r,e,o,n);var i=dp();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,Jn(r)?(i=!0,Nu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ip(t),o.updater=Sc,t.stateNode=o,o._reactInternals=t,lv(t,r,e,n),t=cv(null,t,r,!0,i,n)):(t.tag=0,Wt&&i&&Jm(t),Dn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t2(r),e=Tr(r,e),o){case 0:t=uv(null,t,r,e,n);break e;case 1:t=mh(null,t,r,e,n);break e;case 11:t=fh(null,t,r,e,n);break e;case 14:t=vh(null,t,r,Tr(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Tr(r,o),uv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Tr(r,o),mh(e,t,r,o,n);case 3:e:{if(GS(t),e===null)throw Error(ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,SS(e,t),ju(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=ha(Error(ve(423)),t),t=ph(e,t,r,n,o);break e}else if(r!==o){o=ha(Error(ve(424)),t),t=ph(e,t,r,n,o);break e}else for(ur=Bo(t.stateNode.containerInfo.firstChild),dr=t,Wt=!0,Lr=null,n=yS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ma(),r===o){t=po(e,t,n);break e}Dn(e,t,r,n)}t=t.child}return t;case 5:return CS(t),e===null&&ov(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Zf(r,o)?a=null:i!==null&&Zf(r,i)&&(t.flags|=32),KS(e,t),Dn(e,t,a,n),t.child;case 6:return e===null&&ov(t),null;case 13:return qS(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pa(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Tr(r,o),fh(e,t,r,o,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(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,Lt(zu,r._currentValue),r._currentValue=a,i!==null)if(Br(i.value,a)){if(i.children===o.children&&!Yn.current){t=po(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 s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=uo(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),iv(i.return,n,t),l.lanes|=n;break}s=s.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(ve(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),iv(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}Dn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,la(t,n),o=Er(o),r=r(o),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return r=t.type,o=Tr(r,t.pendingProps),o=Tr(r.type,o),vh(e,t,r,o,n);case 15:return WS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Tr(r,o),ou(e,t),t.tag=1,Jn(r)?(e=!0,Nu(t)):e=!1,la(t,n),kS(t,r,o),lv(t,r,o,n),cv(null,t,r,!0,e,n);case 19:return XS(e,t,n);case 22:return US(e,t,n)}throw Error(ve(156,t.tag))};function dC(e,t){return jb(e,t)}function e2(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 wr(e,t,n,r){return new e2(e,t,n,r)}function Cp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t2(e){if(typeof e=="function")return Cp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bm)return 11;if(e===km)return 14}return 2}function Wo(e,t){var n=e.alternate;return n===null?(n=wr(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 lu(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Cp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Hi:return di(n.children,o,i,t);case Dm:a=8,o|=8;break;case _f:return e=wr(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Mf:return e=wr(13,n,t,o),e.elementType=Mf,e.lanes=i,e;case Nf:return e=wr(19,n,t,o),e.elementType=Nf,e.lanes=i,e;case Cb:return xc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bb:a=10;break e;case Sb:a=9;break e;case Bm:a=11;break e;case km:a=14;break e;case Po:a=16,r=null;break e}throw Error(ve(130,e==null?e:typeof e,""))}return t=wr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function di(e,t,n,r){return e=wr(7,e,r,t),e.lanes=n,e}function xc(e,t,n,r){return e=wr(22,e,r,t),e.elementType=Cb,e.lanes=n,e.stateNode={isHidden:!1},e}function Kd(e,t,n){return e=wr(6,e,null,t),e.lanes=n,e}function Gd(e,t,n){return t=wr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n2(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=Od(0),this.expirationTimes=Od(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Od(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wp(e,t,n,r,o,i,a,l,s){return e=new n2(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ip(i),e}function r2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pC)}catch(e){console.error(e)}}pC(),pb.exports=mr;var go=pb.exports;const wv=_m(go),s2=rb({__proto__:null,default:wv},[go]);var Oh=go;If.createRoot=Oh.createRoot,If.hydrateRoot=Oh.hydrateRoot;var gC={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 ne.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(eo(r)):hC(r)&&r.props?n=n.concat(eo(r.props.children,t)):n.push(r))}),n}var xv={},v2=function(t){};function m2(e,t){}function p2(e,t){}function g2(){xv={}}function yC(e,t,n){!t&&!xv[n]&&(e(!1,n),xv[n]=!0)}function _n(e,t){yC(m2,e,t)}function h2(e,t){yC(p2,e,t)}_n.preMessage=v2;_n.resetWarned=g2;_n.noteOnce=h2;function y2(e,t){if(Be(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Be(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bC(e){var t=y2(e,"string");return Be(t)=="symbol"?t:t+""}function M(e,t,n){return(t=bC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ph(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 F(e){for(var t=1;t=19)return!0;var o=qd.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==qd.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==qd.ForwardRef)};function wC(e){return u.isValidElement(e)&&!hC(e)}var Ma=function(t){if(t&&wC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Ev=u.createContext(null);function x2(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),i=u.useContext(Ev),a=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return u.createElement(Ev.Provider,{value:a},t)}var xC=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(){!$v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),I2?(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(){!$v||!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=P2.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}(),EC=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ba(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new j2(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 ba(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 D2(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}(),RC=typeof WeakMap<"u"?new WeakMap:new xC,OC=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=T2.getInstance(),r=new B2(t,n,this);RC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){OC.prototype[e]=function(){var t;return(t=RC.get(this))[e].apply(t,arguments)}});var k2=function(){return typeof Gu.ResizeObserver<"u"?Gu.ResizeObserver:OC}(),Lo=new Map;function H2(e){e.forEach(function(t){var n,r=t.target;(n=Lo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var PC=new k2(H2);function V2(e,t){Lo.has(e)||(Lo.set(e,new Set),PC.observe(e)),Lo.get(e).add(t)}function W2(e,t){Lo.has(e)&&(Lo.get(e).delete(t),Lo.get(e).size||(PC.unobserve(e),Lo.delete(e)))}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Th(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;_h+=1;var r=_h;function o(i){if(i===0)MC(r),t();else{var a=TC(function(){o(i-1)});_p.set(r,a)}}return o(n),r};Rt.cancel=function(e){var t=_p.get(e);return MC(e),_C(t)};function NC(e){if(Array.isArray(e))return e}function Z2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function LC(){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 U(e,t){return NC(e)||Z2(e,t)||Tp(e,t)||LC()}function kl(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 nr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function eR(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 Mh="data-rc-order",Nh="data-rc-priority",tR="rc-util-key",Ov=new Map;function FC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):tR}function Dc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Mp(e){return Array.from((Ov.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=nR(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(Mh,a),l&&i&&s.setAttribute(Nh,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Dc(t),d=c.firstChild;if(r){if(l){var f=(t.styles||Mp(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Mh)))return!1;var g=Number(v.getAttribute(Nh)||0);return i>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function AC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Dc(t);return(t.styles||Mp(n)).find(function(r){return r.getAttribute(FC(t))===e})}function Hl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=AC(e,t);if(n){var r=Dc(t);r.removeChild(n)}}function rR(e,t){var n=Ov.get(e);if(!n||!eR(document,n)){var r=zC("",t),o=r.parentNode;Ov.set(e,o),e.removeChild(r)}}function co(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Dc(n),o=Mp(r),i=F(F({},n),{},{styles:o});rR(r,i);var a=AC(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=zC(e,i);return d.setAttribute(FC(i),t),d}function oR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Je(e,t){if(e==null)return{};var n,r,o=oR(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,s=r.has(i);if(_n(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var c=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 s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.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(c,d){var f=U(c,2),v=f[1];return o.internalGet(d)[1]0,void 0),Lh+=1}return un(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Xd=new Np;function Iv(e){var t=Array.isArray(e)?e:[e];return Xd.has(t)||Xd.set(t,new jC(t)),Xd.get(t)}var uR=new WeakMap,Qd={};function cR(e,t){for(var n=uR,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=F(F({},r),{},M(M({},Sa,t),jr,n)),a=Object.keys(i).map(function(l){var s=i[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"")}var uu=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()},dR=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=U(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},DC=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=U(a,2),d=c[0],f=c[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&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var v,g=uu(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(g,")")}}),[i,dR(o,n,{scope:r==null?void 0:r.scope})]},Ah=nr()?u.useLayoutEffect:u.useEffect,Dt=function(t,n){var r=u.useRef(!0);Ah(function(){return t(r.current)},n),Ah(function(){return r.current=!1,function(){r.current=!0}},[])},_v=function(t,n){Dt(function(r){if(!r)return t()},n)},fR=F({},fc),jh=fR.useInsertionEffect,vR=function(t,n,r){u.useMemo(t,r),Dt(function(){return n(!0)},r)},mR=jh?function(e,t,n){return jh(function(){return e(),t()},n)}:vR,pR=F({},fc),gR=pR.useInsertionEffect,hR=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},yR=function(){return function(t){t()}},bR=typeof gR<"u"?hR:yR;function Lp(e,t,n,r,o){var i=u.useContext(is),a=i.cache,l=[e].concat(Ce(t)),s=Pv(l),c=bR([s]),d=function(m){a.opUpdate(s,function(y){var b=y||[void 0,void 0],h=U(b,2),p=h[0],S=p===void 0?0:p,C=h[1],w=C,x=w||n(),E=[S,x];return m?m(E):E})};u.useMemo(function(){d()},[s]);var f=a.opGet(s),v=f[1];return mR(function(){o==null||o(v)},function(g){return d(function(m){var y=U(m,2),b=y[0],h=y[1];return g&&b===0&&(o==null||o(v)),[b+1,h]}),function(){a.opUpdate(s,function(m){var y=m||[],b=U(y,2),h=b[0],p=h===void 0?0:h,S=b[1],C=p-1;return C===0?(c(function(){(g||!a.opGet(s))&&(r==null||r(S,!1))}),null):[p-1,S]})}},[s]),v}var SR={},CR="css",ni=new Map;function wR(e){ni.set(e,(ni.get(e)||0)+1)}function xR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Sa,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var ER=0;function $R(e,t){ni.set(e,(ni.get(e)||0)-1);var n=new Set;ni.forEach(function(r,o){r<=0&&n.add(o)}),ni.size-n.size>ER&&n.forEach(function(r){xR(r,t),ni.delete(r)})}var RR=function(t,n,r,o){var i=r.getDerivativeToken(t),a=F(F({},i),n);return o&&(a=o(a)),a},BC="token";function OR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(is),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?SR:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,g=cR(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),m=yl(g),y=yl(c),b=v?yl(v):"",h=Lp(BC,[l,e.id,m,y,b],function(){var p,S=f?f(g,c,e):RR(g,c,e,d),C=F({},S),w="";if(v){var x=DC(S,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),E=U(x,2);S=E[0],w=E[1]}var $=zh(S,l);S._tokenKey=$,C._tokenKey=zh(C,l);var R=(p=v==null?void 0:v.key)!==null&&p!==void 0?p:$;S._themeKey=R,wR(R);var O="".concat(CR,"-").concat(kl($));return S._hashId=O,[S,O,C,w,(v==null?void 0:v.key)||""]},function(p){$R(p[0]._themeKey,o)},function(p){var S=U(p,4),C=S[0],w=S[3];if(v&&w){var x=co(w,kl("css-variables-".concat(C._themeKey)),{mark:jr,prepend:"queue",attachTo:i,priority:-999});x[Fo]=o,x.setAttribute(Sa,C._themeKey)}});return h}var PR=function(t,n,r){var o=U(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var d=i._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Xu(a,l,d,v,c);return[f,d,g]},IR={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},kC="comm",HC="rule",VC="decl",TR="@import",_R="@namespace",MR="@keyframes",NR="@layer",WC=Math.abs,Fp=String.fromCharCode;function UC(e){return e.trim()}function cu(e,t,n){return e.replace(t,n)}function LR(e,t,n){return e.indexOf(t,n)}function ua(e,t){return e.charCodeAt(t)|0}function Ca(e,t,n){return e.slice(t,n)}function qr(e){return e.length}function FR(e){return e.length}function Bs(e,t){return t.push(e),e}var Bc=1,wa=1,KC=0,Rr=0,on=0,Na="";function zp(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bc,column:wa,length:a,return:"",siblings:l}}function zR(){return on}function AR(){return on=Rr>0?ua(Na,--Rr):0,wa--,on===10&&(wa=1,Bc--),on}function Dr(){return on=Rr2||Wl(on)>3?"":" "}function kR(e,t){for(;--t&&Dr()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return kc(e,du()+(t<6&&zo()==32&&Dr()==32))}function Mv(e){for(;Dr();)switch(on){case e:return Rr;case 34:case 39:e!==34&&e!==39&&Mv(on);break;case 40:e===41&&Mv(e);break;case 92:Dr();break}return Rr}function HR(e,t){for(;Dr()&&e+on!==57;)if(e+on===84&&zo()===47)break;return"/*"+kc(t,Rr-1)+"*"+Fp(e===47?e:Dr())}function VR(e){for(;!Wl(zo());)Dr();return kc(e,Rr)}function WR(e){return DR(fu("",null,null,null,[""],e=jR(e),0,[0],e))}function fu(e,t,n,r,o,i,a,l,s){for(var c=0,d=0,f=a,v=0,g=0,m=0,y=1,b=1,h=1,p=0,S="",C=o,w=i,x=r,E=S;b;)switch(m=p,p=Dr()){case 40:if(m!=108&&ua(E,f-1)==58){LR(E+=cu(Yd(p),"&","&\f"),"&\f",WC(c?l[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:E+=Yd(p);break;case 9:case 10:case 13:case 32:E+=BR(m);break;case 92:E+=kR(du()-1,7);continue;case 47:switch(zo()){case 42:case 47:Bs(UR(HR(Dr(),du()),t,n,s),s),(Wl(m||1)==5||Wl(zo()||1)==5)&&qr(E)&&Ca(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*y:l[c++]=qr(E)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:b=0;case 59+d:h==-1&&(E=cu(E,/\f/g,"")),g>0&&(qr(E)-f||y===0&&m===47)&&Bs(g>32?Bh(E+";",r,n,f-1,s):Bh(cu(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(Bs(x=Dh(E,t,n,c,d,o,l,S,C=[],w=[],f,i),i),p===123)if(d===0)fu(E,t,x,x,C,i,f,l,w);else{switch(v){case 99:if(ua(E,3)===110)break;case 108:if(ua(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?fu(e,x,x,r&&Bs(Dh(e,x,x,0,0,o,l,S,o,C=[],f,w),w),o,w,f,l,r?C:w):fu(E,x,x,x,[""],w,0,l,w)}}c=d=g=0,y=h=1,S=E="",f=a;break;case 58:f=1+qr(E),g=m;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&AR()==125)continue}switch(E+=Fp(p),p*y){case 38:h=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(qr(E)-1)*h,h=1;break;case 64:zo()===45&&(E+=Yd(Dr())),v=zo(),d=f=qr(S=E+=VR(du())),p++;break;case 45:m===45&&qr(E)==2&&(y=0)}}return i}function Dh(e,t,n,r,o,i,a,l,s,c,d,f){for(var v=o-1,g=o===0?i:[""],m=FR(g),y=0,b=0,h=0;y0?g[p]+" "+S:cu(S,/&\f/g,g[p])))&&(s[h++]=C);return zp(e,t,n,o===0?HC:l,s,c,d,f)}function UR(e,t,n,r){return zp(e,t,n,kC,Fp(zR()),Ca(e,2,-2),0,r)}function Bh(e,t,n,r,o){return zp(e,t,n,VC,Ca(e,0,r),Ca(e,r+1,-1),r,o)}function Nv(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,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var v="",g={};function m(h){var p=h.getName(l);if(!g[p]){var S=e(h.style,n,{root:!1,parentSelectors:a}),C=U(S,1),w=C[0];g[p]="@keyframes ".concat(h.getName(l)).concat(w)}}function y(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(S){Array.isArray(S)?y(S,p):S&&p.push(S)}),p}var b=y(Array.isArray(t)?t:[t]);return b.forEach(function(h){var p=typeof h=="string"&&!o?{}:h;if(typeof p=="string")v+="".concat(p,` `);else if(p._keyframe)m(p);else{var S=f.reduce(function(C,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,C))||C},p);Object.keys(S).forEach(function(C){var w=S[C];if(Be(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!YR(w)){var x=!1,E=C.trim(),$=!1;(o||i)&&l?E.startsWith("@")?x=!0:E==="&"?E=Hh("",l,c):E=Hh(C,l,c):o&&!l&&(E==="&"||E==="")&&(E="",$=!0);var R=e(w,n,{root:$,injectHash:x,parentSelectors:[].concat(Ce(a),[E])}),O=U(R,2),P=O[0],I=O[1];g=F(F({},g),I),v+="".concat(E).concat(P)}else{let j=function(L,A){var _=L.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),B=A;!IR[L]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),L==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(m(A),B=A.getName(l)),v+="".concat(_,":").concat(B,";")};var T,N=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Be(w)==="object"&&w!==null&&w!==void 0&&w[XC]&&Array.isArray(N)?N.forEach(function(L){j(C,L)}):j(C,N)}})}}),o?s&&(v&&(v="@layer ".concat(s.name," {").concat(v,"}")),s.dependencies&&(g["@layer ".concat(s.name)]=s.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(s.name,";")}).join(` `))):v="{".concat(v,"}"),[v,g]};function QC(e,t){return kl("".concat(e.join("%")).concat(t))}function ZR(){return null}var YC="style";function Lv(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(is),f=d.autoClear;d.mock;var v=d.defaultCache,g=d.hashPriority,m=d.container,y=d.ssrInline,b=d.transformers,h=d.linters,p=d.cache,S=d.layer,C=n._tokenKey,w=[C];S&&w.push("layer"),w.push.apply(w,Ce(r));var x=Tv,E=Lp(YC,w,function(){var I=w.join("|");if(qR(I)){var T=XR(I),N=U(T,2),j=N[0],L=N[1];if(j)return[j,C,L,{},l,c]}var A=t(),_=JR(A,{hashId:o,hashPriority:g,layer:S?i:void 0,path:r.join("-"),transformers:b,linters:h}),B=U(_,2),z=B[0],H=B[1],V=vu(z),W=QC(w,V);return[V,C,W,H,l,c]},function(I,T){var N=U(I,3),j=N[2];(T||f)&&Tv&&Hl(j,{mark:jr,attachTo:m})},function(I){var T=U(I,4),N=T[0];T[1];var j=T[2],L=T[3];if(x&&N!==GC){var A={mark:jr,prepend:S?!1:"queue",attachTo:m,priority:c},_=typeof a=="function"?a():a;_&&(A.csp={nonce:_});var B=[],z=[];Object.keys(L).forEach(function(V){V.startsWith("@layer")?B.push(V):z.push(V)}),B.forEach(function(V){co(vu(L[V]),"_layer-".concat(V),F(F({},A),{},{prepend:!0}))});var H=co(N,j,A);H[Fo]=p.instanceId,H.setAttribute(Sa,C),z.forEach(function(V){co(vu(L[V]),"_effect-".concat(V),A)})}}),$=U(E,3),R=$[0],O=$[1],P=$[2];return function(I){var T;return!y||x||!v?T=u.createElement(ZR,null):T=u.createElement("style",we({},M(M({},Sa,O),jr,P),{dangerouslySetInnerHTML:{__html:R}})),u.createElement(u.Fragment,null,T,I)}}var eO=function(t,n,r){var o=U(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},v=f.plain;if(c)return null;var g=i,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=Xu(i,a,l,m,v),s&&Object.keys(s).forEach(function(y){if(!n[y]){n[y]=!0;var b=vu(s[y]),h=Xu(b,a,"_effect-".concat(y),m,v);y.startsWith("@layer")?g=h+g:g+=h}}),[d,l,g]},JC="cssVar",tO=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(is),f=d.cache.instanceId,v=d.container,g=l._tokenKey,m=[].concat(Ce(t.path),[r,c,g]),y=Lp(JC,m,function(){var b=n(),h=DC(b,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=U(h,2),S=p[0],C=p[1],w=QC(m,C);return[S,C,w,r]},function(b){var h=U(b,3),p=h[2];Tv&&Hl(p,{mark:jr,attachTo:v})},function(b){var h=U(b,3),p=h[1],S=h[2];if(p){var C=co(p,S,{mark:jr,prepend:"queue",attachTo:v,priority:-999});C[Fo]=f,C.setAttribute(Sa,r)}});return y},nO=function(t,n,r){var o=U(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=Xu(i,l,a,f,c);return[d,a,v]};M(M(M({},YC,eO),BC,PR),JC,nO);var vn=function(){function e(t,n){sn(this,e),M(this,"name",void 0),M(this,"style",void 0),M(this,"_keyframe",!0),this.name=t,this.style=n}return un(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 Mi(e){return e.notSplit=!0,e}Mi(["borderTop","borderBottom"]),Mi(["borderTop"]),Mi(["borderBottom"]),Mi(["borderLeft","borderRight"]),Mi(["borderLeft"]),Mi(["borderRight"]);var Ap=u.createContext({});function ZC(e){return NC(e)||IC(e)||Tp(e)||LC()}function Qr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Qr(e,t.slice(0,-1))?e:e1(e,t,n,r)}function rO(e){return Be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Vh(e){return Array.isArray(e)?[]:{}}var oO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Zi(){for(var e=arguments.length,t=new Array(e),n=0;nmu.reduce((e,t)=>Object.assign(Object.assign({},e),t),xa.Modal);function cO(e){if(e){const t=Object.assign({},e);return mu.push(t),Uh(),()=>{mu=mu.filter(n=>n!==t),Uh()}}Object.assign({},xa.Modal)}const jp=u.createContext(void 0),Dp=(e,t)=>{const n=u.useContext(jp),r=u.useMemo(()=>{var i;const a=xa[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=u.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?xa.locale:i},[n]);return[r,o]},dO="internalMark",fO=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>cO(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(jp.Provider,{value:o},n)},n1={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"},Ul=Object.assign(Object.assign({},n1),{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}),gn=Math.round;function Jd(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Kh=(e,t,n)=>n===0?e:e/100;function Qa(e,t){const n=t||255;return e>n?n:e<0?0:e}class Mt{constructor(t){M(this,"isValid",!0),M(this,"r",0),M(this,"g",0),M(this,"b",0),M(this,"a",1),M(this,"_h",void 0),M(this,"_s",void 0),M(this,"_l",void 0),M(this,"_v",void 0),M(this,"_max",void 0),M(this,"_min",void 0),M(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var r=i;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof Mt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Qa(t.r),this.g=Qa(t.g),this.b=Qa(t.b),this.a=typeof t.a=="number"?Qa(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=gn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],a={r:gn(i("r")),g:gn(i("g")),b:gn(i("b")),a:gn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>gn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=gn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=gn(this.getSaturation()*100),r=gn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Qa(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const v=gn(r*255);this.r=v,this.g=v,this.b=v}let i=0,a=0,l=0;const s=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=d):s>=1&&s<2?(i=d,a=c):s>=2&&s<3?(a=c,l=d):s>=3&&s<4?(a=d,l=c):s>=4&&s<5?(i=d,l=c):s>=5&&s<6&&(i=c,l=d);const f=r-c/2;this.r=gn((i+f)*255),this.g=gn((a+f)*255),this.b=gn((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=gn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),s=a-l,c=gn(r*(1-n)*255),d=gn(r*(1-n*s)*255),f=gn(r*(1-n*(1-s))*255);switch(l){case 0:this.g=f,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=d;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=Jd(t,Kh);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Jd(t,Kh);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Jd(t,(r,o)=>o.includes("%")?gn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ks=2,Gh=.16,vO=.05,mO=.05,pO=.15,r1=5,o1=4,gO=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function qh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ks*t:Math.round(e.h)+ks*t:r=n?Math.round(e.h)+ks*t:Math.round(e.h)-ks*t,r<0?r+=360:r>=360&&(r-=360),r}function Xh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Gh*t:t===o1?r=e.s+Gh:r=e.s+vO*t,r>1&&(r=1),n&&t===r1&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Qh(e,t,n){var r;return n?r=e.v+mO*t:r=e.v-pO*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Kl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Mt(e),o=r.toHsv(),i=r1;i>0;i-=1){var a=new Mt({h:qh(o,i,!0),s:Xh(o,i,!0),v:Qh(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=o1;l+=1){var s=new Mt({h:qh(o,l),s:Xh(o,l),v:Qh(o,l)});n.push(s)}return t.theme==="dark"?gO.map(function(c){var d=c.index,f=c.amount;return new Mt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Zd={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"},Fv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Fv.primary=Fv[5];var zv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];zv.primary=zv[5];var Av=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Av.primary=Av[5];var jv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jv.primary=jv[5];var Dv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Dv.primary=Dv[5];var Bv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Bv.primary=Bv[5];var kv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];kv.primary=kv[5];var Hv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Hv.primary=Hv[5];var Qu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Qu.primary=Qu[5];var Vv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vv.primary=Vv[5];var Wv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wv.primary=Wv[5];var Uv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Uv.primary=Uv[5];var Kv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Kv.primary=Kv[5];var ef={red:Fv,volcano:zv,orange:Av,gold:jv,yellow:Dv,lime:Bv,green:kv,cyan:Hv,blue:Qu,geekblue:Vv,purple:Wv,magenta:Uv,grey:Kv};function hO(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),f=t(r),v=t(o),g=t(i),m=t(a),y=n(s,c),b=e.colorLink||e.colorInfo,h=t(b),p=new Mt(g[1]).mix(new Mt(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:p,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:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Mt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const yO=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 bO(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},yO(r))}const SO=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function pu(e){return(e+8)/e}function CO(e){const t=Array.from({length:10}).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:pu(n)}))}const wO=e=>{const t=CO(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],s=r[0],c=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:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function xO(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 hr=(e,t)=>new Mt(e).setA(t).toRgbString(),Ya=(e,t)=>new Mt(e).darken(t).toHexString(),EO=e=>{const t=Kl(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]}},$O=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:hr(r,.88),colorTextSecondary:hr(r,.65),colorTextTertiary:hr(r,.45),colorTextQuaternary:hr(r,.25),colorFill:hr(r,.15),colorFillSecondary:hr(r,.06),colorFillTertiary:hr(r,.04),colorFillQuaternary:hr(r,.02),colorBgSolid:hr(r,1),colorBgSolidHover:hr(r,.75),colorBgSolidActive:hr(r,.95),colorBgLayout:Ya(n,4),colorBgContainer:Ya(n,0),colorBgElevated:Ya(n,0),colorBgSpotlight:hr(r,.85),colorBgBlur:"transparent",colorBorder:Ya(n,15),colorBorderSecondary:Ya(n,6)}};function RO(e){Zd.pink=Zd.magenta,ef.pink=ef.magenta;const t=Object.keys(n1).map(n=>{const r=e[n]===Zd[n]?ef[n]:Kl(e[n]);return Array.from({length:10},()=>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),hO(e,{generateColorPalettes:EO,generateNeutralColorPalettes:$O})),wO(e.fontSize)),xO(e)),SO(e)),bO(e))}const i1=Iv(RO),Gv={token:Ul,override:{override:Ul},hashed:!0},a1=ne.createContext(Gv),Yu="ant",Hc="anticon",OO=["outlined","borderless","filled","underlined"],PO=(e,t)=>t||(e?`${Yu}-${e}`:Yu),ct=u.createContext({getPrefixCls:PO,iconPrefixCls:Hc}),{Consumer:Pj}=ct,Yh={};function Yo(e){const t=u.useContext(ct),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Yh,styles:Yh},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const IO=`-ant-${Date.now()}-${Math.random()}`;function TO(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new Mt(a),c=Kl(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Mt(t.primaryColor),l=Kl(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const s=new Mt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.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 _O(e,t){const n=TO(e,t);nr()&&co(n,`${IO}-dynamic-theme`)}const Go=u.createContext(!1),MO=({children:e,disabled:t})=>{const n=u.useContext(Go);return u.createElement(Go.Provider,{value:t??n},e)},Ea=u.createContext(void 0),NO=({children:e,size:t})=>{const n=u.useContext(Ea);return u.createElement(Ea.Provider,{value:t||n},e)};function LO(){const e=u.useContext(Go),t=u.useContext(Ea);return{componentDisabled:e,componentSize:t}}var l1=un(function e(){sn(this,e)}),s1="CALC_UNIT",FO=new RegExp(s1,"g");function tf(e){return typeof e=="number"?"".concat(e).concat(s1):e}var zO=function(e){bo(n,e);var t=So(n);function n(r,o){var i;sn(this,n),i=t.call(this),M(st(i),"result",""),M(st(i),"unitlessCssVar",void 0),M(st(i),"lowPriority",void 0);var a=Be(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 un(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,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(s=!1),this.result=this.result.replace(FO,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(l1),AO=function(e){bo(n,e);var t=So(n);function n(r){var o;return sn(this,n),o=t.call(this),M(st(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return un(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}(l1),jO=function(t,n){var r=t==="css"?zO:AO;return function(o){return new r(o,n)}},Jh=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 an(e){var t=u.useRef();t.current=e;var n=u.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>HO&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),n0=new VO;function WO(e,t){return ne.useMemo(function(){var n=n0.get(t);if(n)return n;var r=e();return n0.set(t,r),r},t)}var UO=function(){return{}};function KO(e){var t=e.useCSP,n=t===void 0?UO:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(v,g,m,y){var b=Array.isArray(v)?v[0]:v;function h($){return"".concat(String(b)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var p=(y==null?void 0:y.unitless)||{},S=typeof l=="function"?l(v):{},C=F(F({},S),{},M({},h("zIndexPopup"),!0));Object.keys(p).forEach(function($){C[h($)]=p[$]});var w=F(F({},y),{},{unitless:C,prefixToken:h}),x=d(v,g,m,w),E=c(b,m,w);return function($){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,O=x($,R),P=U(O,2),I=P[1],T=E(R),N=U(T,2),j=N[0],L=N[1];return[j,I,L]}}function c(v,g,m){var y=m.unitless,b=m.injectStyle,h=b===void 0?!0:b,p=m.prefixToken,S=m.ignore,C=function(E){var $=E.rootCls,R=E.cssVar,O=R===void 0?{}:R,P=r(),I=P.realToken;return tO({path:[v],prefix:O.prefix,key:O.key,unitless:y,ignore:S,token:I,scope:$},function(){var T=t0(v,I,g),N=Zh(v,I,T,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(T).forEach(function(j){N[p(j)]=N[j],delete N[j]}),N}),null},w=function(E){var $=r(),R=$.cssVar;return[function(O){return h&&R?ne.createElement(ne.Fragment,null,ne.createElement(C,{rootCls:E,cssVar:R,component:v}),O):O},R==null?void 0:R.key]};return w}function d(v,g,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(v)?v:[v,v],h=U(b,1),p=h[0],S=b.join("-"),C=e.layer||{name:"antd"};return function(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),$=E.theme,R=E.realToken,O=E.hashId,P=E.token,I=E.cssVar,T=o(),N=T.rootPrefixCls,j=T.iconPrefixCls,L=n(),A=I?"css":"js",_=WO(function(){var D=new Set;return I&&Object.keys(y.unitless||{}).forEach(function(k){D.add(uu(k,I.prefix)),D.add(uu(k,Jh(p,I.prefix)))}),jO(A,D)},[A,p,I==null?void 0:I.prefix]),B=kO(A),z=B.max,H=B.min,V={theme:$,token:P,hashId:O,nonce:function(){return L.nonce},clientOnly:y.clientOnly,layer:C,order:y.order||-999};typeof i=="function"&&Lv(F(F({},V),{},{clientOnly:!1,path:["Shared",N]}),function(){return i(P,{prefix:{rootPrefixCls:N,iconPrefixCls:j},csp:L})});var W=Lv(F(F({},V),{},{path:[S,w,j]}),function(){if(y.injectStyle===!1)return[];var D=BO(P),k=D.token,K=D.flush,Z=t0(p,R,m),q=".".concat(w),Y=Zh(p,R,Z,{deprecatedTokens:y.deprecatedTokens});I&&Z&&Be(Z)==="object"&&Object.keys(Z).forEach(function(ie){Z[ie]="var(".concat(uu(ie,Jh(p,I.prefix)),")")});var de=Yt(k,{componentCls:q,prefixCls:w,iconCls:".".concat(j),antCls:".".concat(N),calc:_,max:z,min:H},I?Z:Y),ee=g(de,{hashId:O,prefixCls:w,rootPrefixCls:N,iconPrefixCls:j});K(p,Y);var Q=typeof a=="function"?a(de,w,x,y.resetFont):null;return[y.resetStyle===!1?null:Q,ee]});return[W,O]}}function f(v,g,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(v,g,m,F({resetStyle:!1,order:-998},y)),h=function(S){var C=S.prefixCls,w=S.rootCls,x=w===void 0?C:w;return b(C,x),null};return h}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const Bp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],GO="5.29.0";function rf(e){return e>=0&&e<=255}function al(e,t){const{r:n,g:r,b:o,a:i}=new Mt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Mt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),v=Math.round((o-s*(1-c))/c);if(rf(d)&&rf(f)&&rf(v))return new Mt({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new Mt({r:n,g:r,b:o,a:1}).toRgbString()}var qO=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[v]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:al(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:al(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:al(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,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:al(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:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Mt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Mt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Mt("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 r0=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=r0(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=c1(a),i&&Object.entries(i).forEach(([l,s])=>{const{theme:c}=s,d=r0(s,["theme"]);let f=d;c&&(f=f1(Object.assign(Object.assign({},a),d),{override:d},c)),a[l]=f}),a};function ro(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ne.useContext(a1),i=`${GO}-${t||""}`,a=n||i1,[l,s,c]=OR(a,[Ul,e],{salt:i,override:r,getComputedToken:f1,formatToken:c1,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:d1,ignore:XO,preserve:QO}});return[a,c,t?s:"",l,o]}const $a={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Co=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Vc=()=>({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"}}),Wc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),YO=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"}}}),JO=(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})}},kp=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ju=(e,t)=>({"&:focus-visible":kp(e,t)}),v1=e=>({[`.${e}`]:Object.assign(Object.assign({},Vc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Ln,genComponentStyleHook:ZO,genSubStyleComponent:eP}=KO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=ro();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=u.useContext(ct);return e??{}},getResetStyles:(e,t)=>{var n;const r=YO(e);return[r,{"&":r},v1((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Hc)]},getCommonStyle:JO,getCompUnitless:()=>d1}),tP=(e,t)=>{const[n,r]=ro();return Lv({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>v1(e))},nP=Object.assign({},fc),{useId:o0}=nP,rP=()=>"",oP=typeof o0>"u"?rP:o0;function iP(e,t,n){var r;const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Gv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Gv.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=oP();return os(()=>{var l,s;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});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"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(l,s)=>l.some((c,d)=>{const f=s[d];return!Vl(c,f,!0)}))}var aP=["children"],m1=u.createContext({});function lP(e){var t=e.children,n=Je(e,aP);return u.createElement(m1.Provider,{value:n},t)}var sP=function(e){bo(n,e);var t=So(n);function n(){return sn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function uP(e){var t=u.useReducer(function(l){return l+1},0),n=U(t,2),r=n[1],o=u.useRef(e),i=an(function(){return o.current}),a=an(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Ro="none",Hs="appear",Vs="enter",Ws="leave",i0="none",Nr="prepare",ea="start",ta="active",Hp="end",p1="prepared";function a0(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 cP(e,t){var n={animationend:a0("Animation","AnimationEnd"),transitionend:a0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var dP=cP(nr(),typeof window<"u"?window:{}),g1={};if(nr()){var fP=document.createElement("div");g1=fP.style}var Us={};function h1(e){if(Us[e])return Us[e];var t=dP[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=Rt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var pP=[Nr,ea,ta,Hp],gP=[Nr,p1],w1=!1,hP=!0;function x1(e){return e===ta||e===Hp}const yP=function(e,t,n){var r=Gl(i0),o=U(r,2),i=o[0],a=o[1],l=mP(),s=U(l,2),c=s[0],d=s[1];function f(){a(Nr,!0)}var v=t?gP:pP;return C1(function(){if(i!==i0&&i!==Hp){var g=v.indexOf(i),m=v[g+1],y=n(i);y===w1?a(m,!0):m&&c(function(b){function h(){b.isCanceled()||a(m,!0)}y===!0?h():Promise.resolve(y).then(h)})}},[e,i]),u.useEffect(function(){return function(){d()}},[]),[f,i]};function bP(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,h=r.onLeaveStart,p=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,R=Gl(),O=U(R,2),P=O[0],I=O[1],T=uP(Ro),N=U(T,2),j=N[0],L=N[1],A=Gl(null),_=U(A,2),B=_[0],z=_[1],H=j(),V=u.useRef(!1),W=u.useRef(null);function D(){return n()}var k=u.useRef(!1);function K(){L(Ro),z(null,!0)}var Z=an(function(fe){var xe=j();if(xe!==Ro){var ge=D();if(!(fe&&!fe.deadline&&fe.target!==ge)){var le=k.current,Pe;xe===Hs&&le?Pe=w==null?void 0:w(ge,fe):xe===Vs&&le?Pe=x==null?void 0:x(ge,fe):xe===Ws&&le&&(Pe=E==null?void 0:E(ge,fe)),le&&Pe!==!1&&K()}}}),q=vP(Z),Y=U(q,1),de=Y[0],ee=function(xe){switch(xe){case Hs:return M(M(M({},Nr,v),ea,y),ta,p);case Vs:return M(M(M({},Nr,g),ea,b),ta,S);case Ws:return M(M(M({},Nr,m),ea,h),ta,C);default:return{}}},Q=u.useMemo(function(){return ee(H)},[H]),ie=yP(H,!e,function(fe){if(fe===Nr){var xe=Q[Nr];return xe?xe(D()):w1}if(te in Q){var ge;z(((ge=Q[te])===null||ge===void 0?void 0:ge.call(Q,D(),null))||null)}return te===ta&&H!==Ro&&(de(D()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){Z({deadline:!0})},d))),te===p1&&K(),hP}),J=U(ie,2),re=J[0],te=J[1],ce=x1(te);k.current=ce;var ue=u.useRef(null);C1(function(){if(!(V.current&&ue.current===t)){I(t);var fe=V.current;V.current=!0;var xe;!fe&&t&&l&&(xe=Hs),fe&&t&&i&&(xe=Vs),(fe&&!t&&c||!fe&&f&&!t&&c)&&(xe=Ws);var ge=ee(xe);xe&&(e||ge[Nr])?(L(xe),re()):L(Ro),ue.current=t}},[t]),u.useEffect(function(){(H===Hs&&!l||H===Vs&&!i||H===Ws&&!c)&&L(Ro)},[l,i,c]),u.useEffect(function(){return function(){V.current=!1,clearTimeout(W.current)}},[]);var pe=u.useRef(!1);u.useEffect(function(){P&&(pe.current=!0),P!==void 0&&H===Ro&&((pe.current||P)&&($==null||$(P)),pe.current=!0)},[P,H]);var be=B;return Q[Nr]&&te===ea&&(be=F({transition:"none"},be)),[H,te,be,P??t]}function SP(e){var t=e;Be(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=u.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,v=o.motionName,g=o.leavedClassName,m=o.eventProps,y=u.useContext(m1),b=y.motion,h=n(o,b),p=u.useRef(),S=u.useRef();function C(){try{return p.current instanceof HTMLElement?p.current:su(S.current)}catch{return null}}var w=bP(h,l,C,o),x=U(w,4),E=x[0],$=x[1],R=x[2],O=x[3],P=u.useRef(O);O&&(P.current=!0);var I=u.useCallback(function(_){p.current=_,Pp(i,_)},[i]),T,N=F(F({},m),{},{visible:l});if(!f)T=null;else if(E===Ro)O?T=f(F({},N),I):!c&&P.current&&g?T=f(F(F({},N),{},{className:g}),I):d||!c&&!g?T=f(F(F({},N),{},{style:{display:"none"}}),I):T=null;else{var j;$===Nr?j="prepare":x1($)?j="active":$===ea&&(j="start");var L=u0(v,"".concat(E,"-").concat(j));T=f(F(F({},N),{},{className:X(u0(v,E),M(M({},L,L&&j),v,typeof v=="string")),style:R}),I)}if(u.isValidElement(T)&&xi(T)){var A=Ma(T);A||(T=u.cloneElement(T,{ref:I}))}return u.createElement(sP,{ref:S},T)});return r.displayName="CSSMotion",r}const Ei=SP(S1);var Xv="add",Qv="keep",Yv="remove",of="removed";function CP(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},F(F({},t),{},{key:String(t.key)})}function Jv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(CP)}function wP(){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=Jv(e),a=Jv(t);i.forEach(function(c){for(var d=!1,f=r;f1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==Yv}),n.forEach(function(d){d.key===c&&(d.status=Qv)})}),n}var xP=["component","children","onVisibleChanged","onAllRemoved"],EP=["status"],$P=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function RP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ei,n=function(r){bo(i,r);var o=So(i);function i(){var a;sn(this,i);for(var l=arguments.length,s=new Array(l),c=0;cnull;var TP=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 LP=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Zu=t),n!==void 0&&(E1=n),"holderRender"in e&&(R1=o),r&&(NP(r)?_O(gu(),r):$1=r)},FP=()=>({getPrefixCls:(e,t)=>t||(e?`${gu()}-${e}`:gu()),getIconPrefixCls:MP,getRootPrefixCls:()=>Zu||gu(),getTheme:()=>$1,holderRender:R1}),zP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:d,splitter:f,virtual:v,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:h,iconPrefixCls:p,theme:S,componentDisabled:C,segmented:w,statistic:x,spin:E,calendar:$,carousel:R,cascader:O,collapse:P,typography:I,checkbox:T,descriptions:N,divider:j,drawer:L,skeleton:A,steps:_,image:B,layout:z,list:H,mentions:V,modal:W,progress:D,result:k,slider:K,breadcrumb:Z,menu:q,pagination:Y,input:de,textArea:ee,empty:Q,badge:ie,radio:J,rate:re,switch:te,transfer:ce,avatar:ue,message:pe,tag:be,table:fe,card:xe,tabs:ge,timeline:le,timePicker:Pe,upload:Fe,notification:Ve,tree:ze,colorPicker:Re,datePicker:We,rangePicker:Ue,flex:ot,wave:ke,dropdown:he,warning:Ie,tour:qe,tooltip:He,popover:rt,popconfirm:mt,floatButton:rn,floatButtonGroup:Nt,variant:Ut,inputNumber:Kt,treeSelect:bt}=e,et=u.useCallback((Oe,it)=>{const{prefixCls:at}=e;if(it)return it;const lt=at||h.getPrefixCls("");return Oe?`${lt}-${Oe}`:lt},[h.getPrefixCls,e.prefixCls]),Xe=p||h.iconPrefixCls||Hc,Ct=n||h.csp;tP(Xe,Ct);const pt=iP(S,h.theme,{prefixCls:et("")}),Te={csp:Ct,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||b,direction:c,space:d,splitter:f,virtual:v,popupMatchSelectWidth:m??g,popupOverflow:y,getPrefixCls:et,iconPrefixCls:Xe,theme:pt,segmented:w,statistic:x,spin:E,calendar:$,carousel:R,cascader:O,collapse:P,typography:I,checkbox:T,descriptions:N,divider:j,drawer:L,skeleton:A,steps:_,image:B,input:de,textArea:ee,layout:z,list:H,mentions:V,modal:W,progress:D,result:k,slider:K,breadcrumb:Z,menu:q,pagination:Y,empty:Q,badge:ie,radio:J,rate:re,switch:te,transfer:ce,avatar:ue,message:pe,tag:be,table:fe,card:xe,tabs:ge,timeline:le,timePicker:Pe,upload:Fe,notification:Ve,tree:ze,colorPicker:Re,datePicker:We,rangePicker:Ue,flex:ot,wave:ke,dropdown:he,warning:Ie,tour:qe,tooltip:He,popover:rt,popconfirm:mt,floatButton:rn,floatButtonGroup:Nt,variant:Ut,inputNumber:Kt,treeSelect:bt},Ke=Object.assign({},h);Object.keys(Te).forEach(Oe=>{Te[Oe]!==void 0&&(Ke[Oe]=Te[Oe])}),_P.forEach(Oe=>{const it=e[Oe];it&&(Ke[Oe]=it)}),typeof r<"u"&&(Ke.button=Object.assign({autoInsertSpace:r},Ke.button));const Ze=os(()=>Ke,Ke,(Oe,it)=>{const at=Object.keys(Oe),lt=Object.keys(it);return at.length!==lt.length||at.some(ft=>Oe[ft]!==it[ft])}),{layer:Se}=u.useContext(is),se=u.useMemo(()=>({prefixCls:Xe,csp:Ct,layer:Se?"antd":void 0}),[Xe,Ct,Se]);let ae=u.createElement(u.Fragment,null,u.createElement(IP,{dropdownMatchSelectWidth:g}),t);const me=u.useMemo(()=>{var Oe,it,at,lt;return Zi(((Oe=xa.Form)===null||Oe===void 0?void 0:Oe.defaultValidateMessages)||{},((at=(it=Ze.locale)===null||it===void 0?void 0:it.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((lt=Ze.form)===null||lt===void 0?void 0:lt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ze,a==null?void 0:a.validateMessages]);Object.keys(me).length>0&&(ae=u.createElement(aO.Provider,{value:me},ae)),l&&(ae=u.createElement(fO,{locale:l,_ANT_MARK__:dO},ae)),ae=u.createElement(Ap.Provider,{value:se},ae),s&&(ae=u.createElement(NO,{size:s},ae)),ae=u.createElement(PP,null,ae);const Ne=u.useMemo(()=>{const Oe=pt||{},{algorithm:it,token:at,components:lt,cssVar:ft}=Oe,kt=TP(Oe,["algorithm","token","components","cssVar"]),Ft=it&&(!Array.isArray(it)||it.length>0)?Iv(it):i1,Gt={};Object.entries(lt||{}).forEach(([$t,_t])=>{const ye=Object.assign({},_t);"algorithm"in ye&&(ye.algorithm===!0?ye.theme=Ft:(Array.isArray(ye.algorithm)||typeof ye.algorithm=="function")&&(ye.theme=Iv(ye.algorithm)),delete ye.algorithm),Gt[$t]=ye});const cn=Object.assign(Object.assign({},Ul),at);return Object.assign(Object.assign({},kt),{theme:Ft,token:cn,components:Gt,override:Object.assign({override:cn},Gt),cssVar:ft})},[pt]);return S&&(ae=u.createElement(a1.Provider,{value:Ne},ae)),Ze.warning&&(ae=u.createElement(iO.Provider,{value:Ze.warning},ae)),C!==void 0&&(ae=u.createElement(MO,{disabled:C},ae)),u.createElement(ct.Provider,{value:Ze},ae)},$i=e=>{const t=u.useContext(ct),n=u.useContext(jp);return u.createElement(zP,Object.assign({parentContext:t,legacyLocale:n},e))};$i.ConfigContext=ct;$i.SizeContext=Ea;$i.config=LP;$i.useConfig=LO;Object.defineProperty($i,"SizeContext",{get:()=>Ea});var AP={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 O1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jP(e){return O1(e)instanceof ShadowRoot}function ec(e){return jP(e)?O1(e):null}function DP(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function BP(e,t){_n(e,"[@ant-design/icons] ".concat(t))}function d0(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function f0(){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[DP(n)]=r}return t},{})}function Zv(e,t,n){return n?ne.createElement(e.tag,F(F({key:t},f0(e.attrs)),n),(e.children||[]).map(function(r,o){return Zv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ne.createElement(e.tag,F({key:t},f0(e.attrs)),(e.children||[]).map(function(r,o){return Zv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function P1(e){return Kl(e)[0]}function I1(e){return e?Array.isArray(e)?e:[e]:[]}var kP=` .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); } } `,HP=function(t){var n=u.useContext(Ap),r=n.csp,o=n.prefixCls,i=n.layer,a=kP;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),u.useEffect(function(){var l=t.current,s=ec(l);co(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:s})},[])},VP=["icon","className","onClick","style","primaryColor","secondaryColor"],bl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function WP(e){var t=e.primaryColor,n=e.secondaryColor;bl.primaryColor=t,bl.secondaryColor=n||P1(t),bl.calculated=!!n}function UP(){return F({},bl)}var La=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=Je(t,VP),c=u.useRef(),d=bl;if(a&&(d={primaryColor:a,secondaryColor:l||P1(a)}),HP(c),BP(d0(n),"icon should be icon definiton, but got ".concat(n)),!d0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=F(F({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Zv(f.icon,"svg-".concat(f.name),F(F({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};La.displayName="IconReact";La.getTwoToneColors=UP;La.setTwoToneColors=WP;function T1(e){var t=I1(e),n=U(t,2),r=n[0],o=n[1];return La.setTwoToneColors({primaryColor:r,secondaryColor:o})}function KP(){var e=La.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var GP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];T1(Qu.primary);var pn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=Je(e,GP),d=u.useContext(Ap),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,m=X(g,v,M(M({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),y=a;y===void 0&&l&&(y=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,h=I1(s),p=U(h,2),S=p[0],C=p[1];return u.createElement("span",we({role:"img","aria-label":r.name},c,{ref:t,tabIndex:y,onClick:l,className:m}),u.createElement(La,{icon:r,primaryColor:S,secondaryColor:C,style:b}))});pn.displayName="AntdIcon";pn.getTwoToneColor=KP;pn.setTwoToneColor=T1;var qP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:AP}))},XP=u.forwardRef(qP),QP={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"},YP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:QP}))},Vp=u.forwardRef(YP),JP={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"},ZP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:JP}))},Wp=u.forwardRef(ZP),eI={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"},tI=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:eI}))},nI=u.forwardRef(tI),rI={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"},oI=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:rI}))},iI=u.forwardRef(oI),aI=`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`,lI=`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`,sI="".concat(aI," ").concat(lI).split(/[\s\n]+/),uI="aria-",cI="data-";function v0(e,t){return e.indexOf(t)===0}function Ra(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=F({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||v0(o,uI))||n.data&&v0(o,cI)||n.attr&&sI.includes(o))&&(r[o]=e[o])}),r}function dI(e){return e&&ne.isValidElement(e)&&e.type===ne.Fragment}const fI=(e,t,n)=>ne.isValidElement(e)?ne.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function tc(e,t){return fI(e,e,t)}const Fa=e=>{const[,,,,t]=ro();return t?`${e}-css-var`:""};var De={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},_1=u.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,s=e.pauseOnHover,c=s===void 0?!0:s,d=e.eventKey,f=e.content,v=e.closable,g=e.closeIcon,m=g===void 0?"x":g,y=e.props,b=e.onClick,h=e.onNoticeClose,p=e.times,S=e.hovering,C=u.useState(!1),w=U(C,2),x=w[0],E=w[1],$=u.useState(0),R=U($,2),O=R[0],P=R[1],I=u.useState(0),T=U(I,2),N=T[0],j=T[1],L=S||x,A=a>0&&l,_=function(){h(d)},B=function(k){(k.key==="Enter"||k.code==="Enter"||k.keyCode===De.ENTER)&&_()};u.useEffect(function(){if(!L&&a>0){var D=Date.now()-N,k=setTimeout(function(){_()},a*1e3-N);return function(){c&&clearTimeout(k),j(Date.now()-D)}}},[a,L,p]),u.useEffect(function(){if(!L&&A&&(c||N===0)){var D=performance.now(),k,K=function Z(){cancelAnimationFrame(k),k=requestAnimationFrame(function(q){var Y=q+N-D,de=Math.min(Y/(a*1e3),1);P(de*100),de<1&&Z()})};return K(),function(){c&&cancelAnimationFrame(k)}}},[a,N,L,A,p]);var z=u.useMemo(function(){return Be(v)==="object"&&v!==null?v:v?{closeIcon:m}:{}},[v,m]),H=Ra(z,!0),V=100-(!O||O<0?0:O>100?100:O),W="".concat(n,"-notice");return u.createElement("div",we({},y,{ref:t,className:X(W,o,M({},"".concat(W,"-closable"),v)),style:r,onMouseEnter:function(k){var K;E(!0),y==null||(K=y.onMouseEnter)===null||K===void 0||K.call(y,k)},onMouseLeave:function(k){var K;E(!1),y==null||(K=y.onMouseLeave)===null||K===void 0||K.call(y,k)},onClick:b}),u.createElement("div",{className:"".concat(W,"-content")},f),v&&u.createElement("a",we({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:B,"aria-label":"Close"},H,{onClick:function(k){k.preventDefault(),k.stopPropagation(),_()}}),z.closeIcon),A&&u.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:V},V+"%"))}),M1=ne.createContext({}),vI=function(t){var n=t.children,r=t.classNames;return ne.createElement(M1.Provider,{value:{classNames:r}},n)},m0=8,p0=3,g0=16,mI=function(t){var n={offset:m0,threshold:p0,gap:g0};if(t&&Be(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:m0,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:p0,n.gap=(i=t.gap)!==null&&i!==void 0?i:g0}return[!!t,n]},pI=["className","style","classNames","styles"],gI=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,s=t.onAllNoticeRemoved,c=t.onNoticeClose,d=t.stack,f=u.useContext(M1),v=f.classNames,g=u.useRef({}),m=u.useState(null),y=U(m,2),b=y[0],h=y[1],p=u.useState([]),S=U(p,2),C=S[0],w=S[1],x=n.map(function(L){return{config:L,key:String(L.key)}}),E=mI(d),$=U(E,2),R=$[0],O=$[1],P=O.offset,I=O.threshold,T=O.gap,N=R&&(C.length>0||x.length<=I),j=typeof l=="function"?l(r):l;return u.useEffect(function(){R&&C.length>1&&w(function(L){return L.filter(function(A){return x.some(function(_){var B=_.key;return A===B})})})},[C,x,R]),u.useEffect(function(){var L;if(R&&g.current[(L=x[x.length-1])===null||L===void 0?void 0:L.key]){var A;h(g.current[(A=x[x.length-1])===null||A===void 0?void 0:A.key])}},[x,R]),ne.createElement(OP,we({key:r,className:X(o,"".concat(o,"-").concat(r),v==null?void 0:v.list,i,M(M({},"".concat(o,"-stack"),!!R),"".concat(o,"-stack-expanded"),N)),style:a,keys:x,motionAppear:!0},j,{onAllRemoved:function(){s(r)}}),function(L,A){var _=L.config,B=L.className,z=L.style,H=L.index,V=_,W=V.key,D=V.times,k=String(W),K=_,Z=K.className,q=K.style,Y=K.classNames,de=K.styles,ee=Je(K,pI),Q=x.findIndex(function(le){return le.key===k}),ie={};if(R){var J=x.length-1-(Q>-1?Q:H-1),re=r==="top"||r==="bottom"?"-50%":"0";if(J>0){var te,ce,ue;ie.height=N?(te=g.current[k])===null||te===void 0?void 0:te.offsetHeight:b==null?void 0:b.offsetHeight;for(var pe=0,be=0;be-1?g.current[k]=Pe:delete g.current[k]},prefixCls:o,classNames:Y,styles:de,className:X(Z,v==null?void 0:v.notice),style:q,times:D,key:W,eventKey:W,onNoticeClose:c,hovering:R&&C.length>0})))})},hI=u.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,s=e.style,c=e.onAllRemoved,d=e.stack,f=e.renderNotifications,v=u.useState([]),g=U(v,2),m=g[0],y=g[1],b=function(R){var O,P=m.find(function(I){return I.key===R});P==null||(O=P.onClose)===null||O===void 0||O.call(P),y(function(I){return I.filter(function(T){return T.key!==R})})};u.useImperativeHandle(t,function(){return{open:function(R){y(function(O){var P=Ce(O),I=P.findIndex(function(j){return j.key===R.key}),T=F({},R);if(I>=0){var N;T.times=(((N=O[I])===null||N===void 0?void 0:N.times)||0)+1,P[I]=T}else T.times=0,P.push(T);return a>0&&P.length>a&&(P=P.slice(-a)),P})},close:function(R){b(R)},destroy:function(){y([])}}});var h=u.useState({}),p=U(h,2),S=p[0],C=p[1];u.useEffect(function(){var $={};m.forEach(function(R){var O=R.placement,P=O===void 0?"topRight":O;P&&($[P]=$[P]||[],$[P].push(R))}),Object.keys(S).forEach(function(R){$[R]=$[R]||[]}),C($)},[m]);var w=function(R){C(function(O){var P=F({},O),I=P[R]||[];return I.length||delete P[R],P})},x=u.useRef(!1);if(u.useEffect(function(){Object.keys(S).length>0?x.current=!0:x.current&&(c==null||c(),x.current=!1)},[S]),!o)return null;var E=Object.keys(S);return go.createPortal(u.createElement(u.Fragment,null,E.map(function($){var R=S[$],O=u.createElement(gI,{key:$,configList:R,placement:$,prefixCls:r,className:l==null?void 0:l($),style:s==null?void 0:s($),motion:i,onNoticeClose:b,onAllNoticeRemoved:w,stack:d});return f?f(O,{prefixCls:r,key:$}):O})),o)}),yI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],bI=function(){return document.body},h0=0;function SI(){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?bI:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=Je(e,yI),v=u.useState(),g=U(v,2),m=g[0],y=g[1],b=u.useRef(),h=u.createElement(hI,{container:m,ref:b,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:d}),p=u.useState([]),S=U(p,2),C=S[0],w=S[1],x=an(function($){var R=SI(f,$);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(h0),h0+=1),w(function(O){return[].concat(Ce(O),[{type:"open",config:R}])})}),E=u.useMemo(function(){return{open:x,close:function(R){w(function(O){return[].concat(Ce(O),[{type:"close",key:R}])})},destroy:function(){w(function(R){return[].concat(Ce(R),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){y(n())}),u.useEffect(function(){if(b.current&&C.length){C.forEach(function(O){switch(O.type){case"open":b.current.open(O.config);break;case"close":b.current.close(O.key);break;case"destroy":b.current.destroy();break}});var $,R;w(function(O){return($!==O||!R)&&($=O,R=O.filter(function(P){return!C.includes(P)})),R})}},[C]),[E,h]}var wI={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"},xI=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:wI}))},Up=u.forwardRef(xI);const EI=ne.createContext(void 0),Oo=100,$I=10,RI=Oo*$I,N1={Modal:Oo,Drawer:Oo,Popover:Oo,Popconfirm:Oo,Tooltip:Oo,Tour:Oo,FloatButton:Oo},OI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function PI(e){return e in N1}const II=(e,t)=>{const[,n]=ro(),r=ne.useContext(EI),o=PI(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+N1[e]:a+=OI[e],i=[r===void 0?t:a,a]}return i},TI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:v,paddingXS:g,borderRadiusLG:m,zIndexPopup:y,contentPadding:b,contentBg:h}=e,p=`${t}-notice`,S=new vn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),C=new vn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:v,fontSize:c},[`${p}-content`]:{display:"inline-block",padding:b,background:h,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},Co(e)),{color:o,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},_I=e=>({zIndexPopup:e.zIndexPopupBase+RI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),L1=Ln("Message",e=>{const t=Yt(e,{height:150});return TI(t)},_I);var MI=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);ou.createElement("div",{className:X(`${e}-custom-content`,`${e}-${t}`)},n||NI[t],u.createElement("span",null,r)),LI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=MI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=u.useContext(ct),s=t||l("message"),c=Fa(s),[d,f,v]=L1(s,c);return d(u.createElement(_1,Object.assign({},a,{prefixCls:s,className:X(n,f,`${s}-notice-pure-panel`,v,c),eventKey:"pure",duration:null,content:u.createElement(F1,{prefixCls:s,type:r,icon:o},i)})))};function FI(e,t){return{motionName:t??`${e}-move-up`}}function Kp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var zI=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=Fa(t),[r,o,i]=L1(t,n);return r(u.createElement(vI,{classNames:{list:X(o,i,n)}},e))},BI=(e,{prefixCls:t,key:n})=>u.createElement(DI,{prefixCls:t,key:n},e),kI=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=jI,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:v,direction:g}=u.useContext(ct),m=r||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:n??AI}),b=()=>X({[`${m}-rtl`]:l??g==="rtl"}),h=()=>FI(m,s),p=u.createElement("span",{className:`${m}-close-x`},u.createElement(Wp,{className:`${m}-close-icon`})),[S,C]=CI({prefixCls:m,style:y,className:b,motion:h,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:BI});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:m,message:v})),C});let y0=0;function z1(e){const t=u.useRef(null);return[u.useMemo(()=>{const r=s=>{var c;(c=t.current)===null||c===void 0||c.close(s)},o=s=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:c,prefixCls:d,message:f}=t.current,v=`${d}-notice`,{content:g,icon:m,type:y,key:b,className:h,style:p,onClose:S}=s,C=zI(s,["content","icon","type","key","className","style","onClose"]);let w=b;return w==null&&(y0+=1,w=`antd-message-${y0}`),Kp(x=>(c(Object.assign(Object.assign({},C),{key:w,content:u.createElement(F1,{prefixCls:d,type:y,icon:m},g),placement:"top",className:X(y&&`${v}-${y}`,h,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),p),onClose:()=>{S==null||S(),x()}})),()=>{r(w)}))},a={open:o,destroy:s=>{var c;s!==void 0?r(s):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(d,f,v)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let m,y;typeof f=="function"?y=f:(m=f,y=v);const b=Object.assign(Object.assign({onClose:y,duration:m},g),{type:s});return o(b)};a[s]=c}),a},[]),u.createElement(kI,Object.assign({key:"message-holder"},e,{ref:t}))]}function HI(e){return z1(e)}function A1(e,t){this.v=e,this.k=t}function On(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}On=function(a,l,s,c){function d(f,v){On(a,f,function(g){return this._invoke(f,v,g)})}l?o?o(a,l,{value:s,enumerable:!c,configurable:!c,writable:!c}):a[l]=s:(d("next",0),d("throw",1),d("return",2))},On(e,t,n,r)}function Gp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(g,m,y,b){var h=m&&m.prototype instanceof l?m:l,p=Object.create(h.prototype);return On(p,"_invoke",function(S,C,w){var x,E,$,R=0,O=w||[],P=!1,I={p:0,n:0,v:e,a:T,f:T.bind(e,4),d:function(j,L){return x=j,E=0,$=e,I.n=L,a}};function T(N,j){for(E=N,$=j,t=0;!P&&R&&!L&&t3?(L=B===j)&&($=A[(E=A[4])?5:(E=3,3)],A[4]=A[5]=e):A[0]<=_&&((L=N<2&&_j||j>B)&&(A[4]=N,A[5]=j,I.n=B,E=0))}if(L||N>1)return a;throw P=!0,j}return function(N,j,L){if(R>1)throw TypeError("Generator is already running");for(P&&j===1&&T(j,L),E=j,$=L;(t=E<2?e:$)||!P;){x||(E?E<3?(E>1&&(I.n=-1),T(E,$)):I.n=$:I.v=$);try{if(R=2,x){if(E||(N="next"),t=x[N]){if(!(t=t.call(x,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,E<2&&(E=0)}else E===1&&(t=x.return)&&t.call(x),E<2&&($=TypeError("The iterator does not provide a '"+N+"' method"),E=1);x=e}else if((t=(P=I.n<0)?$:S.call(C,I))!==a)break}catch(A){x=e,E=1,$=A}finally{R=1}}return{value:t,done:P}}}(g,y,b),!0),p}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(On(t={},r,function(){return this}),t),f=c.prototype=l.prototype=Object.create(d);function v(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,On(g,o,"GeneratorFunction")),g.prototype=Object.create(f),g}return s.prototype=c,On(f,"constructor",c),On(c,"constructor",s),s.displayName="GeneratorFunction",On(c,o,"GeneratorFunction"),On(f),On(f,o,"Generator"),On(f,r,function(){return this}),On(f,"toString",function(){return"[object Generator]"}),(Gp=function(){return{w:i,m:v}})()}function nc(e,t){function n(o,i,a,l){try{var s=e[o](i),c=s.value;return c instanceof A1?t.resolve(c.v).then(function(d){n("next",d,a,l)},function(d){n("throw",d,a,l)}):t.resolve(c).then(function(d){s.value=d,a(s)},function(d){return n("throw",d,a,l)})}catch(d){l(d)}}var r;this.next||(On(nc.prototype),On(nc.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),On(this,"_invoke",function(o,i,a){function l(){return new t(function(s,c){n(o,a,s,c)})}return r=r?r.then(l,l):l()},!0)}function j1(e,t,n,r,o){return new nc(Gp().w(e,t,n,r),o||Promise)}function VI(e,t,n,r,o){var i=j1(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function WI(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function b0(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Be(e)+" is not iterable")}function Nn(){var e=Gp(),t=e.m(Nn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var l=typeof a=="function"&&a.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var l,s;return function(c){l||(l={stop:function(){return s(c.a,2)},catch:function(){return c.v},abrupt:function(f,v){return s(c.a,o[f],v)},delegateYield:function(f,v,g){return l.resultName=v,s(c.d,b0(f),g)},finish:function(f){return s(c.f,f)}},s=function(f,v,g){c.p=l.prev,c.n=l.next;try{return f(v,g)}finally{l.next=c.n}}),l.resultName&&(l[l.resultName]=c.v,l.resultName=void 0),l.sent=c.v,l.next=c.n;try{return a.call(this,l)}finally{c.p=l.prev,c.n=l.next}}}return(Nn=function(){return{wrap:function(s,c,d,f){return e.w(i(s),c,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(s,c){return new A1(s,c)},AsyncIterator:nc,async:function(s,c,d,f,v){return(r(c)?j1:VI)(i(s),c,d,f,v)},keys:WI,values:b0}})()}function S0(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){S0(i,r,o,a,l,"next",s)}function l(s){S0(i,r,o,a,l,"throw",s)}a(void 0)})}}var as=F({},s2),UI=as.version,af=as.render,KI=as.unmountComponentAtNode,Uc;try{var GI=Number((UI||"").split(".")[0]);GI>=18&&(Uc=as.createRoot)}catch{}function C0(e){var t=as.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Be(t)==="object"&&(t.usingClientEntryPoint=e)}var rc="__rc_react_root__";function qI(e,t){C0(!0);var n=t[rc]||Uc(t);C0(!1),n.render(e),t[rc]=n}function XI(e,t){af==null||af(e,t)}function QI(e,t){if(Uc){qI(e,t);return}XI(e,t)}function YI(e){return em.apply(this,arguments)}function em(){return em=Ri(Nn().mark(function e(t){return Nn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[rc])===null||o===void 0||o.unmount(),delete t[rc]}));case 1:case"end":return r.stop()}},e)})),em.apply(this,arguments)}function JI(e){KI(e)}function ZI(e){return tm.apply(this,arguments)}function tm(){return tm=Ri(Nn().mark(function e(t){return Nn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Uc===void 0){r.next=2;break}return r.abrupt("return",YI(t));case 2:JI(t);case 3:case"end":return r.stop()}},e)})),tm.apply(this,arguments)}const eT=(e,t)=>(QI(e,t),()=>ZI(t));let tT=eT;function D1(e){return tT}const B1=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function rr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const qp=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},nT=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(",")}}}}},rT=ZO("Wave",nT),k1=`${Yu}-wave-target`;function oT(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function iT(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(oT))!==null&&t!==void 0?t:null}function lf(e){return Number.isNaN(e)?0:e}const aT=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=u.useRef(null),a=u.useRef(null);u.useEffect(()=>{a.current=o()},[]);const[l,s]=u.useState(null),[c,d]=u.useState([]),[f,v]=u.useState(0),[g,m]=u.useState(0),[y,b]=u.useState(0),[h,p]=u.useState(0),[S,C]=u.useState(!1),w={left:f,top:g,width:y,height:h,borderRadius:c.map($=>`${$}px`).join(" ")};l&&(w["--wave-color"]=l);function x(){const $=getComputedStyle(n);s(iT(n));const R=$.position==="static",{borderLeftWidth:O,borderTopWidth:P}=$;v(R?n.offsetLeft:lf(-Number.parseFloat(O))),m(R?n.offsetTop:lf(-Number.parseFloat(P))),b(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:T,borderBottomLeftRadius:N,borderBottomRightRadius:j}=$;d([I,T,j,N].map(L=>lf(Number.parseFloat(L))))}if(u.useEffect(()=>{if(n){const $=Rt(()=>{x(),C(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(n)),()=>{Rt.cancel($),R==null||R.disconnect()}}},[n]),!S)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(k1));return u.createElement(Ei,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,R)=>{var O,P;if(R.deadline||R.propertyName==="opacity"){const I=(O=i.current)===null||O===void 0?void 0:O.parentElement;(P=a.current)===null||P===void 0||P.call(a).then(()=>{I==null||I.remove()})}return!1}},({className:$},R)=>u.createElement("div",{ref:no(i,R),className:X(t,$,{"wave-quick":E}),style:w}))},lT=(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);const i=D1();let a=null;function l(){return a}a=i(u.createElement(aT,Object.assign({},t,{target:e,registerUnmount:l})),o)},sT=(e,t,n)=>{const{wave:r}=u.useContext(ct),[,o,i]=ro(),a=an(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${k1}`)||d,{showEffect:v}=r||{};(v||lT)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=u.useRef(null);return c=>{Rt.cancel(l.current),l.current=Rt(()=>{a(c)})}},uT=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(ct),i=u.useRef(null),a=o("wave"),[,l]=rT(a),s=sT(i,X(a,l),r);if(ne.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=v=>{!qp(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ne.isValidElement(t))return t??null;const c=xi(t)?no(Ma(t),i):i;return tc(t,{ref:c})},wo=e=>{const t=ne.useContext(Ea);return ne.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},cT=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},dT=Ln(["Space","Compact"],e=>[cT(e)],()=>({}),{resetStyle:!1});var H1=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=u.useContext(Kc),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return X(`${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}},fT=e=>{const{children:t}=e;return u.createElement(Kc.Provider,{value:null},t)},vT=e=>{const{children:t}=e,n=H1(e,["children"]);return u.createElement(Kc.Provider,{value:u.useMemo(()=>n,[n])},t)},mT=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ct),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=H1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=wo(S=>r??S),v=t("space-compact",a),[g,m]=dT(v),y=X(v,m,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:i,[`${v}-vertical`]:o==="vertical"},l,s),b=u.useContext(Kc),h=eo(c),p=u.useMemo(()=>h.map((S,C)=>{const w=(S==null?void 0:S.key)||`${v}-item-${C}`;return u.createElement(vT,{key:w,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))},S)}),[h,b,o,f,v]);return h.length===0?null:g(u.createElement("div",Object.assign({className:y},d),p))};var pT=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}=u.useContext(ct),{prefixCls:r,size:o,className:i}=e,a=pT(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=ro(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=X(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return u.createElement(V1.Provider,{value:o},u.createElement("div",Object.assign({},a,{className:d})))},w0=/^[\u4E00-\u9FA5]{2}$/,nm=w0.test.bind(w0);function x0(e){return typeof e=="string"}function sf(e){return e==="text"||e==="link"}function hT(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&x0(e.type)&&nm(e.props.children)?tc(e,{children:e.props.children.split("").join(n)}):x0(e)?nm(e)?ne.createElement("span",null,e.split("").join(n)):ne.createElement("span",null,e):dI(e)?ne.createElement("span",null,e):e}function yT(e,t){let n=!1;const r=[];return ne.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),ne.Children.map(r,o=>hT(o,t))}["default","primary","danger"].concat(Ce(Bp));const rm=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return ne.createElement("span",{ref:t,className:a,style:r},o)}),E0=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=X(`${n}-loading-icon`,r);return ne.createElement(rm,{prefixCls:n,className:a,style:o,ref:t},ne.createElement(Up,{className:i}))}),uf=()=>({width:0,opacity:0,transform:"scale(0)"}),cf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),bT=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?ne.createElement(E0,{prefixCls:t,className:o,style:i}):ne.createElement(Ei,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:uf,onAppearActive:cf,onEnterStart:uf,onEnterActive:cf,onLeaveStart:cf,onLeaveActive:uf},({className:s,style:c},d)=>{const f=Object.assign(Object.assign({},i),c);return ne.createElement(E0,{prefixCls:t,className:X(o,s),style:f,ref:d})})},$0=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ST=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}},$0(`${t}-primary`,o),$0(`${t}-danger`,i)]}};var CT=["b"],wT=["v"],df=function(t){return Math.round(Number(t||0))},xT=function(t){if(t instanceof Mt)return t;if(t&&Be(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,CT);return F(F({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ql=function(e){bo(n,e);var t=So(n);function n(r){return sn(this,n),t.call(this,xT(r))}return un(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=df(o.s*100),a=df(o.b*100),l=df(o.h),s=o.a,c="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Je(o,wT);return F(F({},a),{},{b:i,a:this.a})}}]),n}(Mt),ET=function(t){return t instanceof ql?t:new ql(t)};ET("#1677ff");const $T=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",RT=(e,t)=>e?$T(e,t):"";let OT=function(){function e(t){sn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new ql(this.colors[0].color.metaColor)):this.metaColor=new ql(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return un(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return RT(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var PT={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"},IT=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:PT}))},R0=u.forwardRef(IT);const TT=e=>({animationDuration:e,animationFillMode:"both"}),_T=e=>({animationDuration:e,animationFillMode:"both"}),W1=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},TT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},_T(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"}}},MT=new vn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NT=new vn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LT=new vn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FT=new vn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zT=new vn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AT=new vn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jT=new vn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DT=new vn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),BT={"move-up":{inKeyframes:jT,outKeyframes:DT},"move-down":{inKeyframes:MT,outKeyframes:NT},"move-left":{inKeyframes:LT,outKeyframes:FT},"move-right":{inKeyframes:zT,outKeyframes:AT}},O0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=BT[t];return[W1(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U1=new vn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),K1=new vn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),G1=new vn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),q1=new vn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kT=new vn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),HT=new vn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VT=new vn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),WT=new vn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UT={"slide-up":{inKeyframes:U1,outKeyframes:K1},"slide-down":{inKeyframes:G1,outKeyframes:q1},"slide-left":{inKeyframes:kT,outKeyframes:HT},"slide-right":{inKeyframes:VT,outKeyframes:WT}},oc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UT[t];return[W1(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}}]},KT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ql(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},X1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Q1=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:pu(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:pu(s),v=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:pu(c),g=KT(new OT(e.colorBgSolid),"#fff")?"#000":"#fff",m=Bp.reduce((y,b)=>Object.assign(Object.assign({},y),{[`${b}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${al(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)})},GT=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Vc(),"> a":{color:"currentColor"},"&:not(:disabled)":Ju(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Y1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),qT=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),XT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Gc=(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"},Y1(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),QT=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},XT(e))}),YT=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),qc=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?YT:QT;return Object.assign(Object.assign({},i(e)),Y1(e.componentCls,t,n))},Xc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},qc(e,r,o))}),Qc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},qc(e,r,o))}),Yc=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Jc=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},qc(e,n,r))}),to=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},qc(e,r,o,n))}),JT=e=>{const{componentCls:t}=e;return Bp.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Xc(e,e.colorTextLightSolid,o,{background:a},{background:c})),Qc(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Yc(e)),Jc(e,i,{color:o,background:l},{color:o,background:s})),to(e,o,"link",{color:a},{color:c})),to(e,o,"text",{color:a,background:i},{color:c,background:s}))})},{})},ZT=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Xc(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Yc(e)),Jc(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Gc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),to(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),e_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Qc(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Yc(e)),Jc(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),to(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),to(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Gc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),t_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Xc(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Qc(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yc(e)),Jc(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),to(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),to(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),n_=e=>Object.assign(Object.assign({},to(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Gc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),r_=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:ZT(e),[`${t}-color-primary`]:e_(e),[`${t}-color-dangerous`]:t_(e),[`${t}-color-link`]:n_(e)},JT(e))},o_=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Qc(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),to(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Xc(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),to(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xp=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${oe(s)} ${oe(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:qT(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},i_=e=>{const t=Yt(e,{fontSize:e.contentFontSize});return Xp(t,e.componentCls)},a_=e=>{const t=Yt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Xp(t,`${e.componentCls}-sm`)},l_=e=>{const t=Yt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Xp(t,`${e.componentCls}-lg`)},s_=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},u_=Ln("Button",e=>{const t=X1(e);return[GT(t),i_(t),a_(t),l_(t),s_(t),r_(t),o_(t),ST(t)]},Q1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function c_(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function d_(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 Zc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},c_(e,i,t,o)),d_(o,i,t))}}function f_(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function v_(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 m_(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},f_(e,t,e.componentCls)),v_(e.componentCls,t))}}const p_=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=l=>{const s=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${s} + ${s}::before`]:{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},g_=eP(["Button","compact"],e=>{const t=X1(e);return[Zc(t),m_(t),p_(t)]},Q1);var h_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:l,type:s,danger:c=!1,shape:d,size:f,styles:v,disabled:g,className:m,rootClassName:y,children:b,icon:h,iconPosition:p="start",ghost:S=!1,block:C=!1,htmlType:w="button",classNames:x,style:E={},autoInsertSpace:$,autoFocus:R}=e,O=h_(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=s||"default",{button:I}=ne.useContext(ct),T=d||(I==null?void 0:I.shape)||"default",[N,j]=u.useMemo(()=>{if(a&&l)return[a,l];if(s||c){const He=b_[P]||[];return c?["danger",He[1]]:He}return I!=null&&I.color&&(I!=null&&I.variant)?[I.color,I.variant]:["default","outlined"]},[a,l,s,c,I==null?void 0:I.color,I==null?void 0:I.variant,P]),A=N==="danger"?"dangerous":N,{getPrefixCls:_,direction:B,autoInsertSpace:z,className:H,style:V,classNames:W,styles:D}=Yo("button"),k=(n=$??z)!==null&&n!==void 0?n:!0,K=_("btn",i),[Z,q,Y]=u_(K),de=u.useContext(Go),ee=g??de,Q=u.useContext(V1),ie=u.useMemo(()=>y_(o),[o]),[J,re]=u.useState(ie.loading),[te,ce]=u.useState(!1),ue=u.useRef(null),pe=wi(t,ue),be=u.Children.count(b)===1&&!h&&!sf(j),fe=u.useRef(!0);ne.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),Dt(()=>{let He=null;ie.delay>0?He=setTimeout(()=>{He=null,re(!0)},ie.delay):re(ie.loading);function rt(){He&&(clearTimeout(He),He=null)}return rt},[ie.delay,ie.loading]),u.useEffect(()=>{if(!ue.current||!k)return;const He=ue.current.textContent||"";be&&nm(He)?te||ce(!0):te&&ce(!1)}),u.useEffect(()=>{R&&ue.current&&ue.current.focus()},[]);const xe=ne.useCallback(He=>{var rt;if(J||ee){He.preventDefault();return}(rt=e.onClick)===null||rt===void 0||rt.call(e,("href"in e,He))},[e.onClick,J,ee]),{compactSize:ge,compactItemClassnames:le}=za(K,B),Pe={large:"lg",small:"sm",middle:void 0},Fe=wo(He=>{var rt,mt;return(mt=(rt=f??ge)!==null&&rt!==void 0?rt:Q)!==null&&mt!==void 0?mt:He}),Ve=Fe&&(r=Pe[Fe])!==null&&r!==void 0?r:"",ze=J?"loading":h,Re=rr(O,["navigate"]),We=X(K,q,Y,{[`${K}-${T}`]:T!=="default"&&T,[`${K}-${P}`]:P,[`${K}-dangerous`]:c,[`${K}-color-${A}`]:A,[`${K}-variant-${j}`]:j,[`${K}-${Ve}`]:Ve,[`${K}-icon-only`]:!b&&b!==0&&!!ze,[`${K}-background-ghost`]:S&&!sf(j),[`${K}-loading`]:J,[`${K}-two-chinese-chars`]:te&&k&&!J,[`${K}-block`]:C,[`${K}-rtl`]:B==="rtl",[`${K}-icon-end`]:p==="end"},le,m,y,H),Ue=Object.assign(Object.assign({},V),E),ot=X(x==null?void 0:x.icon,W.icon),ke=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),D.icon||{}),he=h&&!J?ne.createElement(rm,{prefixCls:K,className:ot,style:ke},h):o&&typeof o=="object"&&o.icon?ne.createElement(rm,{prefixCls:K,className:ot,style:ke},o.icon):ne.createElement(bT,{existIcon:!!h,prefixCls:K,loading:J,mount:fe.current}),Ie=b||b===0?yT(b,be&&k):null;if(Re.href!==void 0)return Z(ne.createElement("a",Object.assign({},Re,{className:X(We,{[`${K}-disabled`]:ee}),href:ee?void 0:Re.href,style:Ue,onClick:xe,ref:pe,tabIndex:ee?-1:0,"aria-disabled":ee}),he,Ie));let qe=ne.createElement("button",Object.assign({},O,{type:w,className:We,style:Ue,onClick:xe,disabled:ee,ref:pe}),he,Ie,le&&ne.createElement(g_,{prefixCls:K}));return sf(j)||(qe=ne.createElement(uT,{component:"Button",disabled:J},qe)),Z(qe)}),ls=S_;ls.Group=gT;ls.__ANT_BUTTON=!0;var J1=u.createContext(null),P0=[];function C_(e,t){var n=u.useState(function(){if(!nr())return null;var m=document.createElement("div");return m}),r=U(n,1),o=r[0],i=u.useRef(!1),a=u.useContext(J1),l=u.useState(P0),s=U(l,2),c=s[0],d=s[1],f=a||(i.current?void 0:function(m){d(function(y){var b=[m].concat(Ce(y));return b})});function v(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var m;(m=o.parentElement)===null||m===void 0||m.removeChild(o),i.current=!1}return Dt(function(){return e?a?a(v):v():g(),g},[e]),Dt(function(){c.length&&(c.forEach(function(m){return m()}),d(P0))},[c]),[o,f]}function w_(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"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";co(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` }`),t)}catch(m){console.error(m),o=s,i=c}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Hl(t),{width:v,height:g}}function x_(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:w_(e)}function E_(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $_="rc-util-locker-".concat(Date.now()),I0=0;function R_(e){var t=!!e,n=u.useState(function(){return I0+=1,"".concat($_,"_").concat(I0)}),r=U(n,1),o=r[0];Dt(function(){if(t){var i=x_(document.body).width,a=E_();co(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Hl(o);return function(){Hl(o)}},[t,o])}var O_=!1;function P_(e){return O_}var T0=function(t){return t===!1?!1:!nr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Z1=u.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,s=u.useState(n),c=U(s,2),d=c[0],f=c[1],v=d||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var g=u.useState(function(){return T0(o)}),m=U(g,2),y=m[0],b=m[1];u.useEffect(function(){var P=T0(o);b(P??null)});var h=C_(v&&!y),p=U(h,2),S=p[0],C=p[1],w=y??S;R_(r&&n&&nr()&&(w===S||w===document.body));var x=null;if(l&&xi(l)&&t){var E=l;x=E.ref}var $=wi(x,t);if(!v||!nr()||y===void 0)return null;var R=w===!1||P_(),O=l;return t&&(O=u.cloneElement(l,{ref:$})),u.createElement(J1.Provider,{value:C},R?O:go.createPortal(O,w))});function I_(){var e=F({},fc);return e.useId}var _0=0,M0=I_();const T_=M0?function(t){var n=M0();return t||n}:function(t){var n=u.useState("ssr-id"),r=U(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=_0;_0+=1,i("rc_unique_".concat(a))},[]),t||o};var li="RC_FORM_INTERNAL_HOOKS",Tt=function(){_n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Oa=u.createContext({getFieldValue:Tt,getFieldsValue:Tt,getFieldError:Tt,getFieldWarning:Tt,getFieldsError:Tt,isFieldsTouched:Tt,isFieldTouched:Tt,isFieldValidating:Tt,isFieldsValidating:Tt,resetFields:Tt,setFields:Tt,setFieldValue:Tt,setFieldsValue:Tt,validateFields:Tt,submit:Tt,getInternalHooks:function(){return Tt(),{dispatch:Tt,initEntityValue:Tt,registerField:Tt,useSubscribe:Tt,setInitialValues:Tt,destroyForm:Tt,setCallbacks:Tt,registerWatch:Tt,getFields:Tt,setValidateMessages:Tt,setPreserve:Tt,getInitialValue:Tt}}}),ic=u.createContext(null);function om(e){return e==null?[]:Array.isArray(e)?e:[e]}function __(e){return e&&!!e._init}function im(){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 am=im();function M_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function N_(e,t,n){if(Ip())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Dl(o,n.prototype),o}function lm(e){var t=typeof Map=="function"?new Map:void 0;return lm=function(r){if(r===null||!M_(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 N_(r,arguments,Bl(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Dl(o,r)},lm(e)}var L_=/%[sdj%]/g,F_=function(){};function sm(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 cr(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 z_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function mn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||z_(t)&&typeof e=="string"&&!e)}function A_(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Ce(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function N0(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(cr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(cr(i.messages[f].range,t.fullField,t.min,t.max))},ew=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||mn(n,a||t.type))&&o.push(cr(i.messages.required,t.fullField))},Ks;const U_=function(){if(Ks)return Ks;var e="[a-fA-F\\d:]",t=function(x){return x&&x.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,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),d=function(x){return x&&x.exact?l:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};d.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,m=d.v6().source,y="(?:(?:[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})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(g,"|").concat(m,"|").concat(y).concat(b).concat(h,")").concat(p).concat(S);return Ks=new RegExp("(?:^".concat(C,"$)"),"i"),Ks};var A0={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},ll={integer:function(t){return ll.number(t)&&parseInt(t,10)===t},float:function(t){return ll.number(t)&&!ll.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 Be(t)==="object"&&!ll.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(A0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(U_())},hex:function(t){return typeof t=="string"&&!!t.match(A0.hex)}},K_=function(t,n,r,o,i){if(t.required&&n===void 0){ew(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?ll[l](n)||o.push(cr(i.messages.types[l],t.fullField,t.type)):l&&Be(n)!==t.type&&o.push(cr(i.messages.types[l],t.fullField,t.type))},G_=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(cr(i.messages.whitespace,t.fullField))};const vt={required:ew,whitespace:G_,type:K_,range:W_,enum:H_,pattern:V_};var q_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i)}r(a)},X_=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();vt.required(t,n,o,a,i,"array"),n!=null&&(vt.type(t,n,o,a,i),vt.range(t,n,o,a,i))}r(a)},Q_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&vt.type(t,n,o,a,i)}r(a)},Y_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n,"date")&&!t.required)return r();if(vt.required(t,n,o,a,i),!mn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),vt.type(t,s,o,a,i),s&&vt.range(t,s.getTime(),o,a,i)}}r(a)},J_="enum",Z_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&vt[J_](t,n,o,a,i)}r(a)},eM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&(vt.type(t,n,o,a,i),vt.range(t,n,o,a,i))}r(a)},tM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&(vt.type(t,n,o,a,i),vt.range(t,n,o,a,i))}r(a)},nM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&vt.type(t,n,o,a,i)}r(a)},rM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&(vt.type(t,n,o,a,i),vt.range(t,n,o,a,i))}r(a)},oM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),n!==void 0&&vt.type(t,n,o,a,i)}r(a)},iM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n,"string")&&!t.required)return r();vt.required(t,n,o,a,i),mn(n,"string")||vt.pattern(t,n,o,a,i)}r(a)},aM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n)&&!t.required)return r();vt.required(t,n,o,a,i),mn(n)||vt.type(t,n,o,a,i)}r(a)},lM=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":Be(n);vt.required(t,n,o,a,i,l),r(a)},sM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n,"string")&&!t.required)return r();vt.required(t,n,o,a,i,"string"),mn(n,"string")||(vt.type(t,n,o,a,i),vt.range(t,n,o,a,i),vt.pattern(t,n,o,a,i),t.whitespace===!0&&vt.whitespace(t,n,o,a,i))}r(a)},ff=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,a)&&!t.required)return r();vt.required(t,n,o,l,i,a),mn(n,a)||vt.type(t,n,o,l,i)}r(l)};const Sl={string:sM,method:nM,number:rM,boolean:Q_,regexp:aM,integer:tM,float:eM,array:X_,object:oM,enum:Z_,pattern:iM,date:Y_,url:ff,hex:ff,email:ff,required:lM,any:q_};var ss=function(){function e(t){sn(this,e),M(this,"rules",null),M(this,"_messages",am),this.define(t)}return un(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Be(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=z0(im(),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,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(m){var y=[],b={};function h(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,Ce(S))}else y.push(S)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(E)?E:[E];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&b.message!==void 0&&($=[].concat(b.message));var R=$.map(F0(b,a));if(l.first&&R.length)return g[b.field]=1,y(R);if(!h)y(R);else{if(b.required&&!m.value)return b.message!==void 0?R=[].concat(b.message).map(F0(b,a)):l.error&&(R=[l.error(b,cr(l.messages.required,b.field))]),y(R);var O={};b.defaultField&&Object.keys(m.value).map(function(T){O[T]=b.defaultField}),O=F(F({},O),m.rule.fields);var P={};Object.keys(O).forEach(function(T){var N=O[T],j=Array.isArray(N)?N:[N];P[T]=j.map(p.bind(null,T))});var I=new e(P);I.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),I.validate(m.value,m.rule.options||l,function(T){var N=[];R&&R.length&&N.push.apply(N,Ce(R)),T&&T.length&&N.push.apply(N,Ce(T)),y(N.length?N:null)})}}var C;if(b.asyncValidator)C=b.asyncValidator(b,m.value,S,m.source,l);else if(b.validator){try{C=b.validator(b,m.value,S,m.source,l)}catch(E){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,E),l.suppressValidatorError||setTimeout(function(){throw E},0),S(E.message)}C===!0?S():C===!1?S(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(E){return S(E)})},function(m){c(m)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Sl.hasOwnProperty(n.type))throw new Error(cr("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"?Sl.required:Sl[this.getType(n)]||void 0}}]),e}();M(ss,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Sl[t]=n});M(ss,"warning",F_);M(ss,"messages",am);M(ss,"validators",Sl);var ar="'${name}' is not a valid ${type}",tw={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:ar,method:ar,array:ar,object:ar,number:ar,date:ar,boolean:ar,integer:ar,float:ar,regexp:ar,email:ar,url:ar,hex:ar},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}"}},j0=ss;function uM(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var D0="CODE_LOGIC_ERROR";function um(e,t,n,r,o){return cm.apply(this,arguments)}function cm(){return cm=Ri(Nn().mark(function e(t,n,r,o,i){var a,l,s,c,d,f,v,g,m;return Nn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=F({},r),delete a.ruleIndex,j0.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(D0)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new j0(M({},t,[a])),d=Zi(tw,o.validateMessages),c.messages(d),f=[],b.prev=10,b.next=13,Promise.resolve(c.validate(M({},t,n),F({},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 S=h.message,C=S===D0?d.default:S;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(p)}):C}));case 18:if(!(!f.length&&s&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function(h,p){return um("".concat(t,".").concat(p),h,s,o,i)}));case 21:return v=b.sent,b.abrupt("return",v.reduce(function(h,p){return[].concat(Ce(h),Ce(p))},[]));case 23:return g=F(F({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=f.map(function(h){return typeof h=="string"?uM(h,g):h}),b.abrupt("return",m);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),cm.apply(this,arguments)}function cM(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var v=d.validator,g=F(F({},d),{},{ruleIndex:f});return v&&(g.validator=function(m,y,b){var h=!1,p=function(){for(var w=arguments.length,x=new Array(w),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return nw(t,r,n)})}function nw(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 vM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Be(e)!=="object"||Be(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ce(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function mM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Be(t.target)==="object"&&e in t.target?t.target[e]:t}function k0(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(Ce(e.slice(0,n)),[o],Ce(e.slice(n,t)),Ce(e.slice(t+1,r))):i<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,n+1)),[o],Ce(e.slice(n+1,r))):e}var pM=["name"],yr=[];function vf(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Qp=function(e){bo(n,e);var t=So(n);function n(r){var o;if(sn(this,n),o=t.call(this,r),M(st(o),"state",{resetCount:0}),M(st(o),"cancelRegisterFunc",null),M(st(o),"mounted",!1),M(st(o),"touched",!1),M(st(o),"dirty",!1),M(st(o),"validatePromise",void 0),M(st(o),"prevValidating",void 0),M(st(o),"errors",yr),M(st(o),"warnings",yr),M(st(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,en(f)),o.cancelRegisterFunc=null}),M(st(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(Ce(v),Ce(c)):[]}),M(st(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),M(st(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),M(st(o),"metaCache",null),M(st(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=F(F({},o.getMeta()),{},{destroy:s});Vl(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),M(st(o),"onStoreChange",function(s,c,d){var f=o.props,v=f.shouldUpdate,g=f.dependencies,m=g===void 0?[]:g,y=f.onReset,b=d.store,h=o.getNamePath(),p=o.getValue(s),S=o.getValue(b),C=c&&ca(c,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!Vl(p,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=yr,o.warnings=yr,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=yr,o.warnings=yr,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(v&&vf(v,s,b,p,S,d)){o.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||yr),"warnings"in w&&(o.warnings=w.warnings||yr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&ca(c,h,!0)){o.reRender();return}if(v&&!h.length&&vf(v,s,b,p,S,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=m.map(en);if(x.some(function(E){return ca(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!m.length||h.length||v)&&vf(v,s,b,p,S,d)){o.reRender();return}break}v===!0&&o.reRender()}),M(st(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,g=f.validateOnly,m=g===void 0?!1:g,y=Promise.resolve().then(Ri(Nn().mark(function b(){var h,p,S,C,w,x,E;return Nn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(o.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(h=o.props,p=h.validateFirst,S=p===void 0?!1:p,C=h.messageVariables,w=h.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(O){return O}).filter(function(O){var P=O.validateTrigger;if(!P)return!0;var I=om(P);return I.includes(v)})),!(w&&v)){R.next=10;break}return R.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(o.validatePromise===y){R.next=10;break}return R.abrupt("return",[]);case 10:return E=cM(c,d,x,s,S,C),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr;if(o.validatePromise===y){var P;o.validatePromise=null;var I=[],T=[];(P=O.forEach)===null||P===void 0||P.call(O,function(N){var j=N.rule.warningOnly,L=N.errors,A=L===void 0?yr:L;j?T.push.apply(T,Ce(A)):I.push.apply(I,Ce(A))}),o.errors=I,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),R.abrupt("return",E);case 13:case"end":return R.stop()}},b)})));return m||(o.validatePromise=y,o.dirty=!0,o.errors=yr,o.warnings=yr,o.triggerMetaEvent(),o.reRender()),y}),M(st(o),"isFieldValidating",function(){return!!o.validatePromise}),M(st(o),"isFieldTouched",function(){return o.touched}),M(st(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(li),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),M(st(o),"getErrors",function(){return o.errors}),M(st(o),"getWarnings",function(){return o.warnings}),M(st(o),"isListField",function(){return o.props.isListField}),M(st(o),"isList",function(){return o.props.isList}),M(st(o),"isPreserve",function(){return o.props.preserve}),M(st(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),M(st(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return F(F({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=eo(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),M(st(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Qr(s||c(!0),d)}),M(st(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,g=c.getValueFromEvent,m=c.normalize,y=c.valuePropName,b=c.getValueProps,h=c.fieldContext,p=v!==void 0?v:h.validateTrigger,S=o.getNamePath(),C=h.getInternalHooks,w=h.getFieldsValue,x=C(li),E=x.dispatch,$=o.getValue(),R=b||function(N){return M({},y,N)},O=s[f],P=d!==void 0?R($):{},I=F(F({},s),P);I[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,j=arguments.length,L=new Array(j),A=0;A=0&&O<=P.length?(d.keys=[].concat(Ce(d.keys.slice(0,O)),[d.id],Ce(d.keys.slice(O))),S([].concat(Ce(P.slice(0,O)),[R],Ce(P.slice(O))))):(d.keys=[].concat(Ce(d.keys),[d.id]),S([].concat(Ce(P),[R]))),d.id+=1},remove:function(R){var O=w(),P=new Set(Array.isArray(R)?R:[R]);P.size<=0||(d.keys=d.keys.filter(function(I,T){return!P.has(T)}),S(O.filter(function(I,T){return!P.has(T)})))},move:function(R,O){if(R!==O){var P=w();R<0||R>=P.length||O<0||O>=P.length||(d.keys=k0(d.keys,R,O),S(k0(P,R,O)))}}},E=p||[];return Array.isArray(E)||(E=[]),r(E.map(function($,R){var O=d.keys[R];return O===void 0&&(d.keys[R]=d.id,O=d.keys[R],d.id+=1),{name:R,key:O,isListField:!0}}),x,b)})))}function hM(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var ow="__@field_split__";function mf(e){return e.map(function(t){return"".concat(Be(t),":").concat(t)}).join(ow)}var Li=function(){function e(){sn(this,e),M(this,"kvs",new Map)}return un(e,[{key:"set",value:function(n,r){this.kvs.set(mf(n),r)}},{key:"get",value:function(n){return this.kvs.get(mf(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(mf(n))}},{key:"map",value:function(n){return Ce(this.kvs.entries()).map(function(r){var o=U(r,2),i=o[0],a=o[1],l=i.split(ow);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=U(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),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}(),yM=["name"],bM=un(function e(t){var n=this;sn(this,e),M(this,"formHooked",!1),M(this,"forceRootUpdate",void 0),M(this,"subscribable",!0),M(this,"store",{}),M(this,"fieldEntities",[]),M(this,"initialValues",{}),M(this,"callbacks",{}),M(this,"validateMessages",null),M(this,"preserve",null),M(this,"lastValidatePromise",null),M(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}}),M(this,"getInternalHooks",function(r){return r===li?(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}):(_n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),M(this,"useSubscribe",function(r){n.subscribable=r}),M(this,"prevWithoutPreserves",null),M(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Zi(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Mr(a,s,Qr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),M(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Li;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),M(this,"getInitialValue",function(r){var o=Qr(n.initialValues,r);return r.length?Zi(o):o}),M(this,"setCallbacks",function(r){n.callbacks=r}),M(this,"setValidateMessages",function(r){n.validateMessages=r}),M(this,"setPreserve",function(r){n.preserve=r}),M(this,"watchList",[]),M(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),M(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)})}}),M(this,"timeoutId",null),M(this,"warningUnhooked",function(){}),M(this,"updateStore",function(r){n.store=r}),M(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}),M(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Li;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),M(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=en(i);return o.get(a)||{INVALIDATE_NAME_PATH:en(i)}})}),M(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Be(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return s.forEach(function(d){var f,v,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var m,y;if((m=(y=d).isList)!==null&&m!==void 0&&m.call(y))return}else if(!i&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!a)c.push(g);else{var b="getMeta"in d?d.getMeta():null;a(b)&&c.push(g)}}),B0(n.store,c.map(en))}),M(this,"getFieldValue",function(r){n.warningUnhooked();var o=en(r);return Qr(n.store,o)}),M(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:en(r[a]),errors:[],warnings:[]}})}),M(this,"getFieldError",function(r){n.warningUnhooked();var o=en(r),i=n.getFieldsError([o])[0];return i.errors}),M(this,"getFieldWarning",function(r){n.warningUnhooked();var o=en(r),i=n.getFieldsError([o])[0];return i.warnings}),M(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 Li,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var a=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),g=n.getInitialValue(v);if(g!==void 0)_n(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var m=o.get(v);if(m&&m.size>1)_n(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var y=n.getFieldValue(v),b=d.isListField();!b&&(!r.skipExist||y===void 0)&&n.updateStore(Mr(n.store,v,Ce(m)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,Ce(Ce(c).map(function(f){return f.entity})))}})):l=i,a(l)}),M(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Zi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(en);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Mr(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),M(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=Je(a,yM),c=en(l);i.push(c),"value"in s&&n.updateStore(Mr(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),M(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=F(F({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),M(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Qr(n.store,i);a===void 0&&n.updateStore(Mr(n.store,i,o))}}),M(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),M(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 s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!nw(f.getNamePath(),o)})){var d=n.store;n.updateStore(Mr(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),M(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}}}),M(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=F(F({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),M(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(Ce(i))}),i}),M(this,"updateValue",function(r,o){var i=en(r),a=n.store;n.updateStore(Mr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var c=B0(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ce(l)))}),M(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Zi(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),M(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),M(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Li;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=en(d);a.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(c){var d=a.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(i.push(v),s(v))}})};return l(r),i}),M(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Li;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var d=c.name;return ca(r,d)});s.length&&i(s,a)}}),M(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,s=l?i.map(en):[],c=[],d=String(Date.now()),f=new Set,v=a||{},g=v.recursive,m=v.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||s.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(m&&!p.isFieldDirty())){var S=p.getNamePath();if(f.add(S.join(d)),!l||ca(s,S,g)){var C=p.validateRules(F({validateMessages:F(F({},tw),n.validateMessages)},a));c.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(w){var x,E=[],$=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(R){var O=R.rule.warningOnly,P=R.errors;O?$.push.apply($,Ce(P)):E.push.apply(E,Ce(P))}),E.length?Promise.reject({name:S,errors:E,warnings:$}):{name:S,errors:E,warnings:$}}))}}});var y=hM(c);n.lastValidatePromise=y,y.catch(function(p){return p}).then(function(p){var S=p.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,p)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(p){var S=p.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:S,outOfDate:n.lastValidatePromise!==y})});b.catch(function(p){return p});var h=s.filter(function(p){return f.has(p.join(d))});return n.triggerOnFieldsChange(h),b}),M(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 iw(e){var t=u.useRef(),n=u.useState({}),r=U(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new bM(i);t.current=a.getForm()}return[t.current]}var vm=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),SM=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=u.useContext(vm),l=u.useRef({});return u.createElement(vm.Provider,{value:F(F({},a),{},{validateMessages:F(F({},a.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),a.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:l.current}),a.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=F(F({},l.current),{},M({},c,d))),a.registerForm(c,d)},unregisterForm:function(c){var d=F({},l.current);delete d[c],l.current=d,a.unregisterForm(c)}})},i)},CM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],wM=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,g=v===void 0?"onChange":v,m=t.onValuesChange,y=t.onFieldsChange,b=t.onFinish,h=t.onFinishFailed,p=t.clearOnDestroy,S=Je(t,CM),C=u.useRef(null),w=u.useContext(vm),x=iw(a),E=U(x,1),$=E[0],R=$.getInternalHooks(li),O=R.useSubscribe,P=R.setInitialValues,I=R.setCallbacks,T=R.setValidateMessages,N=R.setPreserve,j=R.destroyForm;u.useImperativeHandle(n,function(){return F(F({},$),{},{nativeElement:C.current})}),u.useEffect(function(){return w.registerForm(r,$),function(){w.unregisterForm(r)}},[w,$,r]),T(F(F({},w.validateMessages),f)),I({onValuesChange:m,onFieldsChange:function(D){if(w.triggerFormChange(r,D),y){for(var k=arguments.length,K=new Array(k>1?k-1:0),Z=1;Z{const r=u.useContext(ho),o=u.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return u.createElement(ho.Provider,{value:o},e)},RM=u.createContext(void 0),mm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=ne.createElement($M,{override:!0,status:!0},o)),t&&(o=ne.createElement(fT,null,o)),o},ed=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=X({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=X({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:X(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},OM=new vn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),td=e=>({height:e,lineHeight:oe(e)}),da=e=>Object.assign({width:e},td(e)),PM=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:OM,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),pf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},td(e)),IM=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},da(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},da(o)),[`${t}${t}-sm`]:Object.assign({},da(i))}},TM=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},pf(t,l)),[`${r}-lg`]:Object.assign({},pf(o,l)),[`${r}-sm`]:Object.assign({},pf(i,l))}},V0=e=>Object.assign({width:e},td(e)),_M=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},V0(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},V0(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},gf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},hf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},td(e)),MM=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},hf(r,l))},gf(e,r,n)),{[`${n}-lg`]:Object.assign({},hf(o,l))}),gf(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},hf(i,l))}),gf(e,i,`${n}-sm`))},NM=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:g,borderRadius:m,titleHeight:y,blockRadius:b,paragraphLiHeight:h,controlHeightXS:p,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},da(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},da(c)),[`${n}-sm`]:Object.assign({},da(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:y,background:f,borderRadius:b,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:f,borderRadius:b,"+ li":{marginBlockStart:p}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},MM(e)),IM(e)),TM(e)),_M(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${i}, ${a}, ${l} `]:Object.assign({},PM(e))}}},LM=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Aa=Ln("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Yt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return NM(r)},LM,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),FM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls","className"]),g=X(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},v))))},zM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls"]),g=X(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-button`,size:a},v))))},AM="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",jM=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=u.useContext(ct),l=a("skeleton",t),[s,c,d]=Aa(l),f=X(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:X(`${l}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:AM,className:`${l}-image-path`})))))},DM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls"]),g=X(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-input`,size:a},v))))},BM=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=X(s,`${s}-element`,{[`${s}-active`]:i},d,n,r,f);return c(u.createElement("div",{className:v},u.createElement("div",{className:X(`${s}-image`,n),style:o},a)))},kM=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},HM=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>u.createElement("li",{key:l,style:{width:kM(l,e)}}));return u.createElement("ul",{className:X(t,n),style:r},i)},VM=({prefixCls:e,className:t,width:n,style:r})=>u.createElement("h3",{className:X(e,t),style:Object.assign({width:n},r)});function yf(e){return e&&typeof e=="object"?e:{}}function WM(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function UM(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function KM(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ja=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:v,direction:g,className:m,style:y}=Yo("skeleton"),b=v("skeleton",t),[h,p,S]=Aa(b);if(n||!("loading"in e)){const C=!!l,w=!!s,x=!!c;let E;if(C){const O=Object.assign(Object.assign({prefixCls:`${b}-avatar`},WM(w,x)),yf(l));E=u.createElement("div",{className:`${b}-header`},u.createElement(ed,Object.assign({},O)))}let $;if(w||x){let O;if(w){const I=Object.assign(Object.assign({prefixCls:`${b}-title`},UM(C,x)),yf(s));O=u.createElement(VM,Object.assign({},I))}let P;if(x){const I=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},KM(C,w)),yf(c));P=u.createElement(HM,Object.assign({},I))}$=u.createElement("div",{className:`${b}-content`},O,P)}const R=X(b,{[`${b}-with-avatar`]:C,[`${b}-active`]:d,[`${b}-rtl`]:g==="rtl",[`${b}-round`]:f},m,r,o,p,S);return h(u.createElement("div",{className:R,style:Object.assign(Object.assign({},y),i)},E,$))}return a??null};ja.Button=zM;ja.Avatar=FM;ja.Input=DM;ja.Image=jM;ja.Node=BM;const GM=ne.createContext({});function qM(e){return t=>u.createElement($i,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const XM=(e,t,n,r,o)=>qM(a=>{const{prefixCls:l,style:s}=a,c=u.useRef(null),[d,f]=u.useState(0),[v,g]=u.useState(0),[m,y]=fr(!1,{value:a.open}),{getPrefixCls:b}=u.useContext(ct),h=b("select",l);u.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(x=>{const E=x[0].target;f(E.offsetHeight+8),g(E.offsetWidth)}),w=setInterval(()=>{var x;const E=`.${h}-dropdown`,$=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);$&&(clearInterval(w),C.observe($))},10);return()=>{clearInterval(w),C.disconnect()}}},[h]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:d,position:"relative",minWidth:v};return u.createElement("div",{ref:c,style:S},u.createElement(e,Object.assign({},p)))}),Yp=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 nd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return u.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},s!==void 0?s:u.createElement("span",{className:X(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},QM=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,s=arguments.length>7?arguments[7]:void 0,c=ne.useMemo(function(){if(Be(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=ne.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,a,r.length,l,s]);return{allowClear:d,clearIcon:ne.createElement(nd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},aw=u.createContext(null);function YM(){return u.useContext(aw)}function JM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=U(t,2),r=n[0],o=n[1],i=u.useRef(null),a=function(){window.clearTimeout(i.current)};u.useEffect(function(){return a},[]);var l=function(c,d){a(),i.current=window.setTimeout(function(){o(c),d&&d()},e)};return[r,l,a]}function lw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.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 ZM(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function eN(e){return e&&![De.ESC,De.SHIFT,De.BACKSPACE,De.TAB,De.WIN_KEY,De.ALT,De.META,De.WIN_KEY_RIGHT,De.CTRL,De.SEMICOLON,De.EQUALS,De.CAPS_LOCK,De.CONTEXT_MENU,De.F1,De.F2,De.F3,De.F4,De.F5,De.F6,De.F7,De.F8,De.F9,De.F10,De.F11,De.F12].includes(e)}var tN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fi=void 0;function nN(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,m=e.order,y=e.component,b=y===void 0?"div":y,h=Je(e,tN),p=a&&!g;function S($){s(c,$)}u.useEffect(function(){return function(){S(null)}},[]);var C=i&&o!==Fi?i(o,{index:m}):v,w;r||(w={opacity:p?0:1,height:p?0:Fi,overflowY:p?"hidden":Fi,order:a?m:Fi,pointerEvents:p?"none":Fi,position:p?"absolute":Fi});var x={};p&&(x["aria-hidden"]=!0);var E=u.createElement(b,we({className:X(!r&&n,d),style:F(F({},w),f)},x,h,{ref:t}),C);return a&&(E=u.createElement(Ar,{onResize:function(R){var O=R.offsetWidth;S(O)},disabled:l},E)),E}var na=u.forwardRef(nN);na.displayName="Item";function rN(e){if(typeof MessageChannel>"u")Rt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function oN(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],rN(function(){go.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function zi(e,t){var n=u.useState(t),r=U(n,2),o=r[0],i=r[1],a=an(function(l){e(function(){i(l)})});return[o,a]}var ac=ne.createContext(null),iN=["component"],aN=["className"],lN=["className"],sN=function(t,n){var r=u.useContext(ac);if(!r){var o=t.component,i=o===void 0?"div":o,a=Je(t,iN);return u.createElement(i,we({},a,{ref:n}))}var l=r.className,s=Je(r,aN),c=t.className,d=Je(t,lN);return u.createElement(ac.Provider,{value:null},u.createElement(na,we({ref:n,className:X(l,c)},s,d)))},sw=u.forwardRef(sN);sw.displayName="RawItem";var uN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],uw="responsive",cw="invalidate";function cN(e){return"+ ".concat(e.length," ...")}function dN(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,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,g=e.className,m=e.maxCount,y=e.renderRest,b=e.renderRawRest,h=e.prefix,p=e.suffix,S=e.component,C=S===void 0?"div":S,w=e.itemComponent,x=e.onVisibleChange,E=Je(e,uN),$=f==="full",R=oN(),O=zi(R,null),P=U(O,2),I=P[0],T=P[1],N=I||0,j=zi(R,new Map),L=U(j,2),A=L[0],_=L[1],B=zi(R,0),z=U(B,2),H=z[0],V=z[1],W=zi(R,0),D=U(W,2),k=D[0],K=D[1],Z=zi(R,0),q=U(Z,2),Y=q[0],de=q[1],ee=zi(R,0),Q=U(ee,2),ie=Q[0],J=Q[1],re=u.useState(null),te=U(re,2),ce=te[0],ue=te[1],pe=u.useState(null),be=U(pe,2),fe=be[0],xe=be[1],ge=u.useMemo(function(){return fe===null&&$?Number.MAX_SAFE_INTEGER:fe||0},[fe,I]),le=u.useState(!1),Pe=U(le,2),Fe=Pe[0],Ve=Pe[1],ze="".concat(r,"-item"),Re=Math.max(H,k),We=m===uw,Ue=i.length&&We,ot=m===cw,ke=Ue||typeof m=="number"&&i.length>m,he=u.useMemo(function(){var se=i;return Ue?I===null&&$?se=i:se=i.slice(0,Math.min(i.length,N/d)):typeof m=="number"&&(se=i.slice(0,m)),se},[i,d,I,m,Ue]),Ie=u.useMemo(function(){return Ue?i.slice(ge+1):i.slice(he.length)},[i,he,Ue,ge]),qe=u.useCallback(function(se,ae){var me;return typeof s=="function"?s(se):(me=s&&(se==null?void 0:se[s]))!==null&&me!==void 0?me:ae},[s]),He=u.useCallback(a||function(se){return se},[a]);function rt(se,ae,me){fe===se&&(ae===void 0||ae===ce)||(xe(se),me||(Ve(seN){rt(Ne-1,se-Oe-ie+k);break}}p&&bt(0)+ie>N&&ue(null)}},[N,A,k,Y,ie,qe,he]);var et=Fe&&!!Ie.length,Xe={};ce!==null&&Ue&&(Xe={position:"absolute",left:ce,top:0});var Ct={prefixCls:ze,responsive:Ue,component:w,invalidate:ot},pt=l?function(se,ae){var me=qe(se,ae);return u.createElement(ac.Provider,{key:me,value:F(F({},Ct),{},{order:ae,item:se,itemKey:me,registerSize:rn,display:ae<=ge})},l(se,ae))}:function(se,ae){var me=qe(se,ae);return u.createElement(na,we({},Ct,{order:ae,key:me,item:se,renderItem:He,itemKey:me,registerSize:rn,display:ae<=ge}))},Te={order:et?ge:Number.MAX_SAFE_INTEGER,className:"".concat(ze,"-rest"),registerSize:Nt,display:et},Ke=y||cN,Ze=b?u.createElement(ac.Provider,{value:F(F({},Ct),Te)},b(Ie)):u.createElement(na,we({},Ct,Te),typeof Ke=="function"?Ke(Ie):Ke),Se=u.createElement(C,we({className:X(!ot&&r,g),style:v,ref:t},E),h&&u.createElement(na,we({},Ct,{responsive:We,responsiveDisabled:!Ue,order:-1,className:"".concat(ze,"-prefix"),registerSize:Ut,display:!0}),h),he.map(pt),ke?Ze:null,p&&u.createElement(na,we({},Ct,{responsive:We,responsiveDisabled:!Ue,order:ge,className:"".concat(ze,"-suffix"),registerSize:Kt,display:!0,style:Xe}),p));return We?u.createElement(Ar,{onResize:mt,disabled:!Ue},Se):Se}var Zr=u.forwardRef(dN);Zr.displayName="Overflow";Zr.Item=sw;Zr.RESPONSIVE=uw;Zr.INVALIDATE=cw;function fN(e,t,n){var r=F(F({},e),t);return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var a,l=arguments.length,s=new Array(l),c=0;cS&&(be="".concat(fe.slice(0,S),"..."))}var xe=function(le){le&&le.stopPropagation(),$(re)};return typeof x=="function"?Y(ue,be,te,pe,xe):q(re,be,te,pe,xe)},ee=function(re){if(!o.length)return null;var te=typeof w=="function"?w(re):w;return typeof x=="function"?Y(void 0,te,!1,!1,void 0,!0):q({title:te},te,!1)},Q=u.createElement("div",{className:"".concat(k,"-search"),style:{width:B},onFocus:function(){D(!0)},onBlur:function(){D(!1)}},u.createElement(dw,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:m,editable:Z,activeDescendantId:y,value:K,onKeyDown:P,onMouseDown:I,onChange:R,onPaste:O,onCompositionStart:T,onCompositionEnd:N,onBlur:j,tabIndex:b,attrs:Ra(t,!0)}),u.createElement("span",{ref:L,className:"".concat(k,"-search-mirror"),"aria-hidden":!0},K," ")),ie=u.createElement(Zr,{prefixCls:"".concat(k,"-overflow"),data:o,renderItem:de,renderRest:ee,suffix:Q,itemKey:SN,maxCount:p});return u.createElement("span",{className:"".concat(k,"-wrap")},ie,!o.length&&!K&&u.createElement("span",{className:"".concat(k,"-placeholder")},c))},wN=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,g=t.placeholder,m=t.tabIndex,y=t.showSearch,b=t.searchValue,h=t.activeValue,p=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,$=t.onInputCompositionEnd,R=t.onInputBlur,O=t.title,P=u.useState(!1),I=U(P,2),T=I[0],N=I[1],j=d==="combobox",L=j||y,A=v[0],_=b||"";j&&h&&!T&&(_=h),u.useEffect(function(){j&&N(!1)},[j,h]);var B=d!=="combobox"&&!f&&!y?!1:!!_,z=O===void 0?vw(A):O,H=u.useMemo(function(){return A?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B?{visibility:"hidden"}:void 0},g)},[A,B,g,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(dw,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:c,value:_,onKeyDown:S,onMouseDown:C,onChange:function(W){N(!0),w(W)},onPaste:x,onCompositionStart:E,onCompositionEnd:$,onBlur:R,tabIndex:m,attrs:Ra(t,!0),maxLength:j?p:void 0})),!j&&A?u.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:B?{visibility:"hidden"}:void 0},A.label):null,H)},xN=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.prefix,v=t.autoClearSearchValue,g=t.onSearch,m=t.onSearchSubmit,y=t.onToggleOpen,b=t.onInputKeyDown,h=t.onInputBlur,p=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(z){r.current.focus(z)},blur:function(){r.current.blur()}}});var S=lw(0),C=U(S,2),w=C[0],x=C[1],E=function(z){var H=z.which,V=r.current instanceof HTMLTextAreaElement;!V&&a&&(H===De.UP||H===De.DOWN)&&z.preventDefault(),b&&b(z),H===De.ENTER&&l==="tags"&&!o.current&&!a&&(m==null||m(z.target.value)),!(V&&!a&&~[De.UP,De.DOWN,De.LEFT,De.RIGHT].indexOf(H))&&eN(H)&&y(!0)},$=function(){x(!0)},R=u.useRef(null),O=function(z){g(z,!0,o.current)!==!1&&y(!0)},P=function(){o.current=!0},I=function(z){o.current=!1,l!=="combobox"&&O(z.target.value)},T=function(z){var H=z.target.value;if(c&&R.current&&/[\r\n]/.test(R.current)){var V=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(V,R.current)}R.current=null,O(H)},N=function(z){var H=z.clipboardData,V=H==null?void 0:H.getData("text");R.current=V||""},j=function(z){var H=z.target;if(H!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},L=function(z){var H=w();z.target!==r.current&&!H&&!(l==="combobox"&&d)&&z.preventDefault(),(l!=="combobox"&&(!s||!H)||!a)&&(a&&v!==!1&&g("",!0,!1),y())},A={inputRef:r,onInputKeyDown:E,onInputMouseDown:$,onInputChange:T,onInputPaste:N,onInputCompositionStart:P,onInputCompositionEnd:I,onInputBlur:h},_=l==="multiple"||l==="tags"?u.createElement(CN,we({},t,A)):u.createElement(wN,we({},t,A));return u.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:j,onMouseDown:L},f&&u.createElement("div",{className:"".concat(i,"-prefix")},f),_)},EN=u.forwardRef(xN);function $N(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,v=u.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],y=n.points[1],b=m[0],h=m[1],p=y[0],S=y[1];b===p||!["t","b"].includes(b)?g.top=f:b==="t"?g.top=0:g.bottom=0,h===S||!["l","r"].includes(h)?g.left=c:h==="l"?g.left=0:g.right=0}return u.createElement("div",{ref:v,className:X("".concat(t,"-arrow"),a),style:g},l)}function RN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u.createElement(Ei,we({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),l)})}):null}var ON=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),PN=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,m=e.arrowPos,y=e.align,b=e.motion,h=e.maskMotion,p=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,R=e.onPointerEnter,O=e.onPointerDownCapture,P=e.ready,I=e.offsetX,T=e.offsetY,N=e.offsetR,j=e.offsetB,L=e.onAlign,A=e.onPrepare,_=e.stretch,B=e.targetWidth,z=e.targetHeight,H=typeof n=="function"?n():n,V=s||c,W=(S==null?void 0:S.length)>0,D=u.useState(!S||!W),k=U(D,2),K=k[0],Z=k[1];if(Dt(function(){!K&&W&&a&&Z(!0)},[K,W,a]),!K)return null;var q="auto",Y={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!s){var de,ee=y.points,Q=y.dynamicInset||((de=y._experimental)===null||de===void 0?void 0:de.dynamicInset),ie=Q&&ee[0][1]==="r",J=Q&&ee[0][0]==="b";ie?(Y.right=N,Y.left=q):(Y.left=I,Y.right=q),J?(Y.bottom=j,Y.top=q):(Y.top=T,Y.bottom=q)}var re={};return _&&(_.includes("height")&&z?re.height=z:_.includes("minHeight")&&z&&(re.minHeight=z),_.includes("width")&&B?re.width=B:_.includes("minWidth")&&B&&(re.minWidth=B)),s||(re.pointerEvents="none"),u.createElement(w,{open:p||V,getContainer:S&&function(){return S(a)},autoDestroy:C},u.createElement(RN,{prefixCls:o,open:s,zIndex:x,mask:v,motion:h}),u.createElement(Ar,{onResize:L,disabled:!s},function(te){return u.createElement(Ei,we({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:A,onEnterPrepare:A,visible:s,onVisibleChanged:function(ue){var pe;b==null||(pe=b.onVisibleChanged)===null||pe===void 0||pe.call(b,ue),l(ue)}}),function(ce,ue){var pe=ce.className,be=ce.style,fe=X(o,pe,r);return u.createElement("div",{ref:no(te,t,ue),className:fe,style:F(F(F(F({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Y),re),be),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:E,onMouseLeave:$,onPointerEnter:R,onClick:f,onPointerDownCapture:O},g&&u.createElement($N,{prefixCls:o,arrow:g,arrowPos:m,align:y}),u.createElement(ON,{cache:!s&&!d},H))})}))}),IN=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=xi(n),i=u.useCallback(function(l){Pp(t,r?r(l):l)},[r]),a=wi(i,Ma(n));return o?u.cloneElement(n,{ref:a}):n}),K0=u.createContext(null);function G0(e){return e?Array.isArray(e)?e:[e]:[]}function TN(e,t,n,r){return u.useMemo(function(){var o=G0(n??t),i=G0(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 _N(){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 MN(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 Ja(e){return Xl(parseFloat(e),0)}function X0(e,t){var n=F({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=cs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,m=r.offsetWidth,y=r.clientWidth,b=Ja(l),h=Ja(s),p=Ja(c),S=Ja(d),C=Xl(Math.round(f.width/m*1e3)/1e3),w=Xl(Math.round(f.height/v*1e3)/1e3),x=(m-y-p-S)*C,E=(v-g-b-h)*w,$=b*w,R=h*w,O=p*C,P=S*C,I=0,T=0;if(i==="clip"){var N=Ja(a);I=N*C,T=N*w}var j=f.x+O-I,L=f.y+$-T,A=j+f.width+2*I-O-P-x,_=L+f.height+2*T-$-R-E;n.left=Math.max(n.left,j),n.top=Math.max(n.top,L),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,_)}}),n}function Q0(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 Y0(e,t){var n=t||[],r=U(n,2),o=r[0],i=r[1];return[Q0(e.width,o),Q0(e.height,i)]}function J0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ai(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 $o(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 NN(e,t,n,r,o,i,a){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=U(l,2),c=s[0],d=s[1],f=u.useRef(0),v=u.useMemo(function(){return t?pm(t):[]},[t]),g=u.useRef({}),m=function(){g.current={}};e||m();var y=an(function(){if(t&&n&&e){let qn=function(Ii,xo){var Ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe,bs=V.x+Ii,Ss=V.y+xo,Sd=bs+J,je=Ss+ie,Ye=Math.max(bs,Ti.left),Ht=Math.max(Ss,Ti.top),Zt=Math.min(Sd,Ti.right),Vt=Math.min(je,Ti.bottom);return Math.max(0,(Zt-Ye)*(Vt-Ht))},Jo=function(){Ft=V.y+Ke,Gt=Ft+ie,cn=V.x+Te,$t=cn+J};var hg=qn,ys=Jo,p,S,C,w,x=t,E=x.ownerDocument,$=cs(x),R=$.getComputedStyle(x),O=R.position,P=x.style.left,I=x.style.top,T=x.style.right,N=x.style.bottom,j=x.style.overflow,L=F(F({},o[r]),i),A=E.createElement("div");(p=x.parentElement)===null||p===void 0||p.appendChild(A),A.style.left="".concat(x.offsetLeft,"px"),A.style.top="".concat(x.offsetTop,"px"),A.style.position=O,A.style.height="".concat(x.offsetHeight,"px"),A.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else{var B,z,H=n.getBoundingClientRect();H.x=(B=H.x)!==null&&B!==void 0?B:H.left,H.y=(z=H.y)!==null&&z!==void 0?z:H.top,_={x:H.x,y:H.y,width:H.width,height:H.height}}var V=x.getBoundingClientRect(),W=$.getComputedStyle(x),D=W.height,k=W.width;V.x=(S=V.x)!==null&&S!==void 0?S:V.left,V.y=(C=V.y)!==null&&C!==void 0?C:V.top;var K=E.documentElement,Z=K.clientWidth,q=K.clientHeight,Y=K.scrollWidth,de=K.scrollHeight,ee=K.scrollTop,Q=K.scrollLeft,ie=V.height,J=V.width,re=_.height,te=_.width,ce={left:0,top:0,right:Z,bottom:q},ue={left:-Q,top:-ee,right:Y-Q,bottom:de-ee},pe=L.htmlRegion,be="visible",fe="visibleFirst";pe!=="scroll"&&pe!==fe&&(pe=be);var xe=pe===fe,ge=X0(ue,v),le=X0(ce,v),Pe=pe===be?le:ge,Fe=xe?le:Pe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ve=x.getBoundingClientRect();x.style.left=P,x.style.top=I,x.style.right=T,x.style.bottom=N,x.style.overflow=j,(w=x.parentElement)===null||w===void 0||w.removeChild(A);var ze=Xl(Math.round(J/parseFloat(k)*1e3)/1e3),Re=Xl(Math.round(ie/parseFloat(D)*1e3)/1e3);if(ze===0||Re===0||jl(n)&&!qp(n))return;var We=L.offset,Ue=L.targetOffset,ot=Y0(V,We),ke=U(ot,2),he=ke[0],Ie=ke[1],qe=Y0(_,Ue),He=U(qe,2),rt=He[0],mt=He[1];_.x-=rt,_.y-=mt;var rn=L.points||[],Nt=U(rn,2),Ut=Nt[0],Kt=Nt[1],bt=J0(Kt),et=J0(Ut),Xe=Ai(_,bt),Ct=Ai(V,et),pt=F({},L),Te=Xe.x-Ct.x+he,Ke=Xe.y-Ct.y+Ie,Ze=qn(Te,Ke),Se=qn(Te,Ke,le),se=Ai(_,["t","l"]),ae=Ai(V,["t","l"]),me=Ai(_,["b","r"]),Ne=Ai(V,["b","r"]),Oe=L.overflow||{},it=Oe.adjustX,at=Oe.adjustY,lt=Oe.shiftX,ft=Oe.shiftY,kt=function(xo){return typeof xo=="boolean"?xo:xo>=0},Ft,Gt,cn,$t;Jo();var _t=kt(at),ye=et[0]===bt[0];if(_t&&et[0]==="t"&&(Gt>Fe.bottom||g.current.bt)){var Ee=Ke;ye?Ee-=ie-re:Ee=se.y-Ne.y-Ie;var Qe=qn(Te,Ee),nt=qn(Te,Ee,le);Qe>Ze||Qe===Ze&&(!xe||nt>=Se)?(g.current.bt=!0,Ke=Ee,Ie=-Ie,pt.points=[$o(et,0),$o(bt,0)]):g.current.bt=!1}if(_t&&et[0]==="b"&&(FtZe||Me===Ze&&(!xe||Ge>=Se)?(g.current.tb=!0,Ke=Ae,Ie=-Ie,pt.points=[$o(et,0),$o(bt,0)]):g.current.tb=!1}var ut=kt(it),gt=et[1]===bt[1];if(ut&&et[1]==="l"&&($t>Fe.right||g.current.rl)){var wt=Te;gt?wt-=J-te:wt=se.x-Ne.x-he;var zt=qn(wt,Ke),or=qn(wt,Ke,le);zt>Ze||zt===Ze&&(!xe||or>=Se)?(g.current.rl=!0,Te=wt,he=-he,pt.points=[$o(et,1),$o(bt,1)]):g.current.rl=!1}if(ut&&et[1]==="r"&&(cnZe||Wn===Ze&&(!xe||Un>=Se)?(g.current.lr=!0,Te=Vn,he=-he,pt.points=[$o(et,1),$o(bt,1)]):g.current.lr=!1}Jo();var bn=lt===!0?0:lt;typeof bn=="number"&&(cnle.right&&(Te-=$t-le.right-he,_.x>le.right-bn&&(Te+=_.x-le.right+bn)));var Kn=ft===!0?0:ft;typeof Kn=="number"&&(Ftle.bottom&&(Ke-=Gt-le.bottom-Ie,_.y>le.bottom-Kn&&(Ke+=_.y-le.bottom+Kn)));var Gn=V.x+Te,gr=Gn+J,Vr=V.y+Ke,Et=Vr+ie,_e=_.x,$e=_e+te,ht=_.y,St=ht+re,It=Math.max(Gn,_e),At=Math.min(gr,$e),Fn=(It+At)/2,Sn=Fn-Gn,zn=Math.max(Vr,ht),En=Math.min(Et,St),An=(zn+En)/2,Wr=An-Vr;a==null||a(t,pt);var jn=Ve.right-V.x-(Te+V.width),ka=Ve.bottom-V.y-(Ke+V.height);ze===1&&(Te=Math.round(Te),jn=Math.round(jn)),Re===1&&(Ke=Math.round(Ke),ka=Math.round(ka));var bd={ready:!0,offsetX:Te/ze,offsetY:Ke/Re,offsetR:jn/ze,offsetB:ka/Re,arrowX:Sn/ze,arrowY:Wr/Re,scaleX:ze,scaleY:Re,align:pt};d(bd)}}),b=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&y()})},h=function(){d(function(S){return F(F({},S),{},{ready:!1})})};return Dt(h,[r]),Dt(function(){e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function LN(e,t,n,r,o){Dt(function(){if(e&&t&&n){let v=function(){r(),o()};var f=v,i=t,a=n,l=pm(i),s=pm(a),c=cs(a),d=new Set([c].concat(Ce(l),Ce(s)));return d.forEach(function(g){g.addEventListener("scroll",v,{passive:!0})}),c.addEventListener("resize",v,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",v),c.removeEventListener("resize",v)})}}},[e,t,n])}function FN(e,t,n,r,o,i,a,l){var s=u.useRef(e);s.current=e;var c=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){c.current=!1},v=function(b){var h;s.current&&!a(((h=b.composedPath)===null||h===void 0||(h=h.call(b))===null||h===void 0?void 0:h[0])||b.target)&&!c.current&&l(!1)},g=cs(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",v,!0),g.addEventListener("contextmenu",v,!0);var m=ec(n);return m&&(m.addEventListener("mousedown",v,!0),m.addEventListener("contextmenu",v,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",v,!0),g.removeEventListener("contextmenu",v,!0),m&&(m.removeEventListener("mousedown",v,!0),m.removeEventListener("contextmenu",v,!0))}}},[t,n,r,o,i]);function d(){c.current=!0}return d}var zN=["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 AN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z1,t=u.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,h=b===void 0?.1:b,p=n.focusDelay,S=n.blurDelay,C=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,$=n.forceRender,R=n.autoDestroy,O=n.destroyPopupOnHide,P=n.popup,I=n.popupClassName,T=n.popupStyle,N=n.popupPlacement,j=n.builtinPlacements,L=j===void 0?{}:j,A=n.popupAlign,_=n.zIndex,B=n.stretch,z=n.getPopupClassNameFromAlign,H=n.fresh,V=n.alignPoint,W=n.onPopupClick,D=n.onPopupAlign,k=n.arrow,K=n.popupMotion,Z=n.maskMotion,q=n.popupTransitionName,Y=n.popupAnimation,de=n.maskTransitionName,ee=n.maskAnimation,Q=n.className,ie=n.getTriggerDOMNode,J=Je(n,zN),re=R||O||!1,te=u.useState(!1),ce=U(te,2),ue=ce[0],pe=ce[1];Dt(function(){pe(Yp())},[]);var be=u.useRef({}),fe=u.useContext(K0),xe=u.useMemo(function(){return{registerSubPopup:function(Ye,Ht){be.current[Ye]=Ht,fe==null||fe.registerSubPopup(Ye,Ht)}}},[fe]),ge=T_(),le=u.useState(null),Pe=U(le,2),Fe=Pe[0],Ve=Pe[1],ze=u.useRef(null),Re=an(function(je){ze.current=je,jl(je)&&Fe!==je&&Ve(je),fe==null||fe.registerSubPopup(ge,je)}),We=u.useState(null),Ue=U(We,2),ot=Ue[0],ke=Ue[1],he=u.useRef(null),Ie=an(function(je){jl(je)&&ot!==je&&(ke(je),he.current=je)}),qe=u.Children.only(a),He=(qe==null?void 0:qe.props)||{},rt={},mt=an(function(je){var Ye,Ht,Zt=ot;return(Zt==null?void 0:Zt.contains(je))||((Ye=ec(Zt))===null||Ye===void 0?void 0:Ye.host)===je||je===Zt||(Fe==null?void 0:Fe.contains(je))||((Ht=ec(Fe))===null||Ht===void 0?void 0:Ht.host)===je||je===Fe||Object.values(be.current).some(function(Vt){return(Vt==null?void 0:Vt.contains(je))||je===Vt})}),rn=q0(i,K,Y,q),Nt=q0(i,Z,ee,de),Ut=u.useState(v||!1),Kt=U(Ut,2),bt=Kt[0],et=Kt[1],Xe=f??bt,Ct=an(function(je){f===void 0&&et(je)});Dt(function(){et(f||!1)},[f]);var pt=u.useRef(Xe);pt.current=Xe;var Te=u.useRef([]);Te.current=[];var Ke=an(function(je){var Ye;Ct(je),((Ye=Te.current[Te.current.length-1])!==null&&Ye!==void 0?Ye:Xe)!==je&&(Te.current.push(je),g==null||g(je))}),Ze=u.useRef(),Se=function(){clearTimeout(Ze.current)},se=function(Ye){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),Ht===0?Ke(Ye):Ze.current=setTimeout(function(){Ke(Ye)},Ht*1e3)};u.useEffect(function(){return Se},[]);var ae=u.useState(!1),me=U(ae,2),Ne=me[0],Oe=me[1];Dt(function(je){(!je||Xe)&&Oe(!0)},[Xe]);var it=u.useState(null),at=U(it,2),lt=at[0],ft=at[1],kt=u.useState(null),Ft=U(kt,2),Gt=Ft[0],cn=Ft[1],$t=function(Ye){cn([Ye.clientX,Ye.clientY])},_t=NN(Xe,Fe,V&&Gt!==null?Gt:ot,N,L,A,D),ye=U(_t,11),Ee=ye[0],Qe=ye[1],nt=ye[2],Ae=ye[3],Me=ye[4],Ge=ye[5],ut=ye[6],gt=ye[7],wt=ye[8],zt=ye[9],or=ye[10],Vn=TN(ue,s,c,d),Wn=U(Vn,2),Un=Wn[0],bn=Wn[1],Kn=Un.has("click"),Gn=bn.has("click")||bn.has("contextMenu"),gr=an(function(){Ne||or()}),Vr=function(){pt.current&&V&&Gn&&se(!1)};LN(Xe,ot,Fe,gr,Vr),Dt(function(){gr()},[Gt,N]),Dt(function(){Xe&&!(L!=null&&L[N])&&gr()},[JSON.stringify(A)]);var Et=u.useMemo(function(){var je=MN(L,i,zt,V);return X(je,z==null?void 0:z(zt))},[zt,z,L,i,V]);u.useImperativeHandle(r,function(){return{nativeElement:he.current,popupElement:ze.current,forceAlign:gr}});var _e=u.useState(0),$e=U(_e,2),ht=$e[0],St=$e[1],It=u.useState(0),At=U(It,2),Fn=At[0],Sn=At[1],zn=function(){if(B&&ot){var Ye=ot.getBoundingClientRect();St(Ye.width),Sn(Ye.height)}},En=function(){zn(),gr()},An=function(Ye){Oe(!1),or(),m==null||m(Ye)},Wr=function(){return new Promise(function(Ye){zn(),ft(function(){return Ye})})};Dt(function(){lt&&(or(),lt(),ft(null))},[lt]);function jn(je,Ye,Ht,Zt){rt[je]=function(Vt){var Cs;Zt==null||Zt(Vt),se(Ye,Ht);for(var Cd=arguments.length,yg=new Array(Cd>1?Cd-1:0),ws=1;ws1?Ht-1:0),Vt=1;Vt1?Ht-1:0),Vt=1;Vt1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=mw(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(g){if(v||!(s in g)){var m=g[l];o.push({key:Z0(g,o.length),groupOption:v,data:g,label:g[a],value:m})}else{var y=g[c];y===void 0&&r&&(y=g.label),o.push({key:Z0(g,o.length),group:!0,data:g,label:y}),d(g[s],!0)}})}return d(e,!1),o}function hm(e){var t=F({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var VN=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(s,c){var d=ZC(c),f=d[0],v=d.slice(1);if(!f)return[s];var g=s.split(f);return o=o||g.length>1,g.reduce(function(m,y){return[].concat(Ce(m),Ce(l(y,v)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},Zp=u.createContext(null);function WN(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.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(Be(i))?i:a}).join(", ")),n.length>r?", ...":null)}var UN=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],KN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ym=function(t){return t==="tags"||t==="multiple"},GN=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,v=e.emptyOptions,g=e.notFoundContent,m=g===void 0?"Not Found":g,y=e.onClear,b=e.mode,h=e.disabled,p=e.loading,S=e.getInputElement,C=e.getRawInputElement,w=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,$=e.activeValue,R=e.onActiveValueChange,O=e.activeDescendantId,P=e.searchValue,I=e.autoClearSearchValue,T=e.onSearch,N=e.onSearchSplit,j=e.tokenSeparators,L=e.allowClear,A=e.prefix,_=e.suffixIcon,B=e.clearIcon,z=e.OptionList,H=e.animation,V=e.transitionName,W=e.dropdownStyle,D=e.dropdownClassName,k=e.dropdownMatchSelectWidth,K=e.dropdownRender,Z=e.dropdownAlign,q=e.placement,Y=e.builtinPlacements,de=e.getPopupContainer,ee=e.showAction,Q=ee===void 0?[]:ee,ie=e.onFocus,J=e.onBlur,re=e.onKeyUp,te=e.onKeyDown,ce=e.onMouseDown,ue=Je(e,UN),pe=ym(b),be=(a!==void 0?a:pe)||b==="combobox",fe=F({},ue);KN.forEach(function(_e){delete fe[_e]}),c==null||c.forEach(function(_e){delete fe[_e]});var xe=u.useState(!1),ge=U(xe,2),le=ge[0],Pe=ge[1];u.useEffect(function(){Pe(Yp())},[]);var Fe=u.useRef(null),Ve=u.useRef(null),ze=u.useRef(null),Re=u.useRef(null),We=u.useRef(null),Ue=u.useRef(!1),ot=JM(),ke=U(ot,3),he=ke[0],Ie=ke[1],qe=ke[2];u.useImperativeHandle(t,function(){var _e,$e;return{focus:(_e=Re.current)===null||_e===void 0?void 0:_e.focus,blur:($e=Re.current)===null||$e===void 0?void 0:$e.blur,scrollTo:function(St){var It;return(It=We.current)===null||It===void 0?void 0:It.scrollTo(St)},nativeElement:Fe.current||Ve.current}});var He=u.useMemo(function(){var _e;if(b!=="combobox")return P;var $e=(_e=d[0])===null||_e===void 0?void 0:_e.value;return typeof $e=="string"||typeof $e=="number"?String($e):""},[P,b,d]),rt=b==="combobox"&&typeof S=="function"&&S()||null,mt=typeof C=="function"&&C(),rn=wi(Ve,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),Nt=u.useState(!1),Ut=U(Nt,2),Kt=Ut[0],bt=Ut[1];Dt(function(){bt(!0)},[]);var et=fr(!1,{defaultValue:x,value:w}),Xe=U(et,2),Ct=Xe[0],pt=Xe[1],Te=Kt?Ct:!1,Ke=!m&&v;(h||Ke&&Te&&b==="combobox")&&(Te=!1);var Ze=Ke?!1:Te,Se=u.useCallback(function(_e){var $e=_e!==void 0?_e:!Te;h||(pt($e),Te!==$e&&(E==null||E($e)))},[h,Te,pt,E]),se=u.useMemo(function(){return(j||[]).some(function(_e){return[` `,`\r `].includes(_e)})},[j]),ae=u.useContext(Zp)||{},me=ae.maxCount,Ne=ae.rawValues,Oe=function($e,ht,St){if(!(pe&&gm(me)&&(Ne==null?void 0:Ne.size)>=me)){var It=!0,At=$e;R==null||R(null);var Fn=VN($e,j,gm(me)?me-Ne.size:void 0),Sn=St?null:Fn;return b!=="combobox"&&Sn&&(At="",N==null||N(Sn),Se(!1),It=!1),T&&He!==At&&T(At,{source:ht?"typing":"effect"}),It}},it=function($e){!$e||!$e.trim()||T($e,{source:"submit"})};u.useEffect(function(){!Te&&!pe&&b!=="combobox"&&Oe("",!1,!1)},[Te]),u.useEffect(function(){Ct&&h&&pt(!1),h&&!Ue.current&&Ie(!1)},[h]);var at=lw(),lt=U(at,2),ft=lt[0],kt=lt[1],Ft=u.useRef(!1),Gt=function($e){var ht=ft(),St=$e.key,It=St==="Enter";if(It&&(b!=="combobox"&&$e.preventDefault(),Te||Se(!0)),kt(!!He),St==="Backspace"&&!ht&&pe&&!He&&d.length){for(var At=Ce(d),Fn=null,Sn=At.length-1;Sn>=0;Sn-=1){var zn=At[Sn];if(!zn.disabled){At.splice(Sn,1),Fn=zn;break}}Fn&&f(At,{type:"remove",values:[Fn]})}for(var En=arguments.length,An=new Array(En>1?En-1:0),Wr=1;Wr1?ht-1:0),It=1;It1?Fn-1:0),zn=1;zn"u"?"undefined":Be(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const gw=function(e,t,n,r){var o=u.useRef(!1),i=u.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var l=u.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(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?c<0&&l.current.left||c>0&&l.current.right:c<0&&l.current.top||c>0&&l.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function JN(e,t,n,r,o,i,a){var l=u.useRef(0),s=u.useRef(null),c=u.useRef(null),d=u.useRef(!1),f=gw(t,n,r,o);function v(p,S){if(Rt.cancel(s.current),!f(!1,S)){var C=p;if(!C._virtualHandled)C._virtualHandled=!0;else return;l.current+=S,c.current=S,ey||C.preventDefault(),s.current=Rt(function(){var w=d.current?10:1;a(l.current*w,!1),l.current=0})}}function g(p,S){a(S,!0),ey||p.preventDefault()}var m=u.useRef(null),y=u.useRef(null);function b(p){if(e){Rt.cancel(y.current),y.current=Rt(function(){m.current=null},2);var S=p.deltaX,C=p.deltaY,w=p.shiftKey,x=S,E=C;(m.current==="sx"||!m.current&&w&&C&&!S)&&(x=C,E=0,m.current="sx");var $=Math.abs(x),R=Math.abs(E);m.current===null&&(m.current=i&&$>R?"x":"y"),m.current==="y"?v(p,E):g(p,x)}}function h(p){e&&(d.current=p.detail===c.current)}return[b,h]}function ZN(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=U(o,2),a=i[0],l=i[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,v=a.get(d),g=a.get(f);if(v===void 0||g===void 0)for(var m=e.length,y=l.length;y0&&arguments[0]!==void 0?arguments[0]:!1;d();var m=function(){var h=!1;l.current.forEach(function(p,S){if(p&&p.offsetParent){var C=p.offsetHeight,w=getComputedStyle(p),x=w.marginTop,E=w.marginBottom,$=ty(x),R=ty(E),O=C+$+R;s.current.get(S)!==O&&(s.current.set(S,O),h=!0)}}),h&&a(function(p){return p+1})};if(g)m();else{c.current+=1;var y=c.current;Promise.resolve().then(function(){y===c.current&&m()})}}function v(g,m){var y=e(g);l.current.get(y),m?(l.current.set(y,m),f()):l.current.delete(y)}return u.useEffect(function(){return d},[]),[v,f,s.current,i]}var ny=14/15;function n4(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(0),a=u.useRef(null),l=u.useRef(null),s,c=function(g){if(r.current){var m=Math.ceil(g.touches[0].pageX),y=Math.ceil(g.touches[0].pageY),b=o.current-m,h=i.current-y,p=Math.abs(b)>Math.abs(h);p?o.current=m:i.current=y;var S=n(p,p?b:h,!1,g);S&&g.preventDefault(),clearInterval(l.current),S&&(l.current=setInterval(function(){p?b*=ny:h*=ny;var C=Math.floor(p?b:h);(!n(p,C,!0)||Math.abs(C)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,s()},f=function(g){s(),g.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};s=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",d))},Dt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}function ry(e){return Math.floor(Math.pow(e,.5))}function bm(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function r4(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,l=function(){Rt.cancel(i)},s=function v(){l(),i=Rt(function(){n(a),v()})},c=function(){o=!1,l()},d=function(g){if(!(g.target.draggable||g.button!==0)){var m=g;m._virtualHandled||(m._virtualHandled=!0,o=!0)}},f=function(g){if(o){var m=bm(g,!1),y=r.getBoundingClientRect(),b=y.top,h=y.bottom;if(m<=b){var p=b-m;a=-ry(p),s()}else if(m>=h){var S=m-h;a=ry(S),s()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),l()}}},[e])}var o4=10;function i4(e,t,n,r,o,i,a,l){var s=u.useRef(),c=u.useState(null),d=U(c,2),f=d[0],v=d[1];return Dt(function(){if(f&&f.times=0;N-=1){var j=o(t[N]),L=n.get(j);if(L===void 0){p=!0;break}if(T-=L,T<=0)break}switch(w){case"top":C=E-b;break;case"bottom":C=$-h+b;break;default:{var A=e.current.scrollTop,_=A+h;E_&&(S="bottom")}}C!==null&&a(C),C!==f.lastTop&&(p=!0)}p&&v(F(F({},f),{},{times:f.times+1,targetAlign:S,lastTop:C}))}},[f,e.current]),function(g){if(g==null){l();return}if(Rt.cancel(s.current),typeof g=="number")a(g);else if(g&&Be(g)==="object"){var m,y=g.align;"index"in g?m=g.index:m=t.findIndex(function(p){return o(p)===g.key});var b=g.offset,h=b===void 0?0:b;v({times:0,index:m,offset:h,originAlign:y})}}}var oy=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,v=e.style,g=e.thumbStyle,m=e.showScrollBar,y=u.useState(!1),b=U(y,2),h=b[0],p=b[1],S=u.useState(null),C=U(S,2),w=C[0],x=C[1],E=u.useState(null),$=U(E,2),R=$[0],O=$[1],P=!r,I=u.useRef(),T=u.useRef(),N=u.useState(m),j=U(N,2),L=j[0],A=j[1],_=u.useRef(),B=function(){m===!0||m===!1||(clearTimeout(_.current),A(!0),_.current=setTimeout(function(){A(!1)},3e3))},z=i-f||0,H=f-d||0,V=u.useMemo(function(){if(o===0||z===0)return 0;var ee=o/z;return ee*H},[o,z,H]),W=function(Q){Q.stopPropagation(),Q.preventDefault()},D=u.useRef({top:V,dragging:h,pageY:w,startTop:R});D.current={top:V,dragging:h,pageY:w,startTop:R};var k=function(Q){p(!0),x(bm(Q,c)),O(D.current.top),a(),Q.stopPropagation(),Q.preventDefault()};u.useEffect(function(){var ee=function(re){re.preventDefault()},Q=I.current,ie=T.current;return Q.addEventListener("touchstart",ee,{passive:!1}),ie.addEventListener("touchstart",k,{passive:!1}),function(){Q.removeEventListener("touchstart",ee),ie.removeEventListener("touchstart",k)}},[]);var K=u.useRef();K.current=z;var Z=u.useRef();Z.current=H,u.useEffect(function(){if(h){var ee,Q=function(re){var te=D.current,ce=te.dragging,ue=te.pageY,pe=te.startTop;Rt.cancel(ee);var be=I.current.getBoundingClientRect(),fe=f/(c?be.width:be.height);if(ce){var xe=(bm(re,c)-ue)*fe,ge=pe;!P&&c?ge-=xe:ge+=xe;var le=K.current,Pe=Z.current,Fe=Pe?ge/Pe:0,Ve=Math.ceil(Fe*le);Ve=Math.max(Ve,0),Ve=Math.min(Ve,le),ee=Rt(function(){s(Ve,c)})}},ie=function(){p(!1),l()};return window.addEventListener("mousemove",Q,{passive:!0}),window.addEventListener("touchmove",Q,{passive:!0}),window.addEventListener("mouseup",ie,{passive:!0}),window.addEventListener("touchend",ie,{passive:!0}),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",ie),window.removeEventListener("touchend",ie),Rt.cancel(ee)}}},[h]),u.useEffect(function(){return B(),function(){clearTimeout(_.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:B}});var q="".concat(n,"-scrollbar"),Y={position:"absolute",visibility:L?null:"hidden"},de={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(Y,{height:8,left:0,right:0,bottom:0}),Object.assign(de,M({height:"100%",width:d},P?"left":"right",V))):(Object.assign(Y,M({width:8,top:0,bottom:0},P?"right":"left",0)),Object.assign(de,{width:"100%",height:d,top:V})),u.createElement("div",{ref:I,className:X(q,M(M(M({},"".concat(q,"-horizontal"),c),"".concat(q,"-vertical"),!c),"".concat(q,"-visible"),L)),style:F(F({},Y),v),onMouseDown:W,onMouseMove:B},u.createElement("div",{ref:T,className:X("".concat(q,"-thumb"),M({},"".concat(q,"-thumb-moving"),h)),style:F(F({},de),g),onMouseDown:k}))}),a4=20;function iy(){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,a4),Math.floor(n)}var l4=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],s4=[],u4={overflowY:"auto",overflowAnchor:"none"};function c4(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,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,v=e.itemKey,g=e.virtual,m=e.direction,y=e.scrollWidth,b=e.component,h=b===void 0?"div":b,p=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,$=e.showScrollBar,R=$===void 0?"optional":$,O=Je(e,l4),P=u.useCallback(function(ye){return typeof v=="function"?v(ye):ye==null?void 0:ye[v]},[v]),I=t4(P),T=U(I,4),N=T[0],j=T[1],L=T[2],A=T[3],_=!!(g!==!1&&i&&a),B=u.useMemo(function(){return Object.values(L.maps).reduce(function(ye,Ee){return ye+Ee},0)},[L.id,L.maps]),z=_&&d&&(Math.max(a*d.length,B)>i||!!y),H=m==="rtl",V=X(r,M({},"".concat(r,"-rtl"),H),o),W=d||s4,D=u.useRef(),k=u.useRef(),K=u.useRef(),Z=u.useState(0),q=U(Z,2),Y=q[0],de=q[1],ee=u.useState(0),Q=U(ee,2),ie=Q[0],J=Q[1],re=u.useState(!1),te=U(re,2),ce=te[0],ue=te[1],pe=function(){ue(!0)},be=function(){ue(!1)},fe={getKey:P};function xe(ye){de(function(Ee){var Qe;typeof ye=="function"?Qe=ye(Ee):Qe=ye;var nt=bt(Qe);return D.current.scrollTop=nt,nt})}var ge=u.useRef({start:0,end:W.length}),le=u.useRef(),Pe=YN(W,P),Fe=U(Pe,1),Ve=Fe[0];le.current=Ve;var ze=u.useMemo(function(){if(!_)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!z){var ye;return{scrollHeight:((ye=k.current)===null||ye===void 0?void 0:ye.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Ee=0,Qe,nt,Ae,Me=W.length,Ge=0;Ge=Y&&Qe===void 0&&(Qe=Ge,nt=Ee),zt>Y+i&&Ae===void 0&&(Ae=Ge),Ee=zt}return Qe===void 0&&(Qe=0,nt=0,Ae=Math.ceil(i/a)),Ae===void 0&&(Ae=W.length-1),Ae=Math.min(Ae+1,W.length-1),{scrollHeight:Ee,start:Qe,end:Ae,offset:nt}},[z,_,Y,W,A,i]),Re=ze.scrollHeight,We=ze.start,Ue=ze.end,ot=ze.offset;ge.current.start=We,ge.current.end=Ue,u.useLayoutEffect(function(){var ye=L.getRecord();if(ye.size===1){var Ee=Array.from(ye.keys())[0],Qe=ye.get(Ee),nt=W[We];if(nt&&Qe===void 0){var Ae=P(nt);if(Ae===Ee){var Me=L.get(Ee),Ge=Me-a;xe(function(ut){return ut+Ge})}}}L.resetRecord()},[Re]);var ke=u.useState({width:0,height:i}),he=U(ke,2),Ie=he[0],qe=he[1],He=function(Ee){qe({width:Ee.offsetWidth,height:Ee.offsetHeight})},rt=u.useRef(),mt=u.useRef(),rn=u.useMemo(function(){return iy(Ie.width,y)},[Ie.width,y]),Nt=u.useMemo(function(){return iy(Ie.height,Re)},[Ie.height,Re]),Ut=Re-i,Kt=u.useRef(Ut);Kt.current=Ut;function bt(ye){var Ee=ye;return Number.isNaN(Kt.current)||(Ee=Math.min(Ee,Kt.current)),Ee=Math.max(Ee,0),Ee}var et=Y<=0,Xe=Y>=Ut,Ct=ie<=0,pt=ie>=y,Te=gw(et,Xe,Ct,pt),Ke=function(){return{x:H?-ie:ie,y:Y}},Ze=u.useRef(Ke()),Se=an(function(ye){if(S){var Ee=F(F({},Ke()),ye);(Ze.current.x!==Ee.x||Ze.current.y!==Ee.y)&&(S(Ee),Ze.current=Ee)}});function se(ye,Ee){var Qe=ye;Ee?(go.flushSync(function(){J(Qe)}),Se()):xe(Qe)}function ae(ye){var Ee=ye.currentTarget.scrollTop;Ee!==Y&&xe(Ee),p==null||p(ye),Se()}var me=function(Ee){var Qe=Ee,nt=y?y-Ie.width:0;return Qe=Math.max(Qe,0),Qe=Math.min(Qe,nt),Qe},Ne=an(function(ye,Ee){Ee?(go.flushSync(function(){J(function(Qe){var nt=Qe+(H?-ye:ye);return me(nt)})}),Se()):xe(function(Qe){var nt=Qe+ye;return nt})}),Oe=JN(_,et,Xe,Ct,pt,!!y,Ne),it=U(Oe,2),at=it[0],lt=it[1];n4(_,D,function(ye,Ee,Qe,nt){var Ae=nt;return Te(ye,Ee,Qe)?!1:!Ae||!Ae._virtualHandled?(Ae&&(Ae._virtualHandled=!0),at({preventDefault:function(){},deltaX:ye?Ee:0,deltaY:ye?0:Ee}),!0):!1}),r4(z,D,function(ye){xe(function(Ee){return Ee+ye})}),Dt(function(){function ye(Qe){var nt=et&&Qe.detail<0,Ae=Xe&&Qe.detail>0;_&&!nt&&!Ae&&Qe.preventDefault()}var Ee=D.current;return Ee.addEventListener("wheel",at,{passive:!1}),Ee.addEventListener("DOMMouseScroll",lt,{passive:!0}),Ee.addEventListener("MozMousePixelScroll",ye,{passive:!1}),function(){Ee.removeEventListener("wheel",at),Ee.removeEventListener("DOMMouseScroll",lt),Ee.removeEventListener("MozMousePixelScroll",ye)}},[_,et,Xe]),Dt(function(){if(y){var ye=me(ie);J(ye),Se({x:ye})}},[Ie.width,y]);var ft=function(){var Ee,Qe;(Ee=rt.current)===null||Ee===void 0||Ee.delayHidden(),(Qe=mt.current)===null||Qe===void 0||Qe.delayHidden()},kt=i4(D,W,L,a,P,function(){return j(!0)},xe,ft);u.useImperativeHandle(t,function(){return{nativeElement:K.current,getScrollInfo:Ke,scrollTo:function(Ee){function Qe(nt){return nt&&Be(nt)==="object"&&("left"in nt||"top"in nt)}Qe(Ee)?(Ee.left!==void 0&&J(me(Ee.left)),kt(Ee.top)):kt(Ee)}}}),Dt(function(){if(C){var ye=W.slice(We,Ue+1);C(ye,W)}},[We,Ue,W]);var Ft=ZN(W,P,L,a),Gt=x==null?void 0:x({start:We,end:Ue,virtual:z,offsetX:ie,offsetY:ot,rtl:H,getSize:Ft}),cn=XN(W,We,Ue,y,ie,N,f,fe),$t=null;i&&($t=F(M({},s?"height":"maxHeight",i),u4),_&&($t.overflowY="hidden",y&&($t.overflowX="hidden"),ce&&($t.pointerEvents="none")));var _t={};return H&&(_t.dir="rtl"),u.createElement("div",we({ref:K,style:F(F({},c),{},{position:"relative"}),className:V},_t,O),u.createElement(Ar,{onResize:He},u.createElement(h,{className:"".concat(r,"-holder"),style:$t,ref:D,onScroll:ae,onMouseEnter:ft},u.createElement(pw,{prefixCls:r,height:Re,offsetX:ie,offsetY:ot,scrollWidth:y,onInnerResize:j,ref:k,innerProps:w,rtl:H,extra:Gt},cn))),z&&Re>i&&u.createElement(oy,{ref:rt,prefixCls:r,scrollOffset:Y,scrollRange:Re,rtl:H,onScroll:se,onStartMove:pe,onStopMove:be,spinSize:Nt,containerSize:Ie.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:R}),z&&y>Ie.width&&u.createElement(oy,{ref:mt,prefixCls:r,scrollOffset:ie,scrollRange:y,rtl:H,onScroll:se,onStartMove:pe,onStopMove:be,spinSize:rn,containerSize:Ie.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:R}))}var hw=u.forwardRef(c4);hw.displayName="List";function d4(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var f4=["disabled","title","children","style","className"];function ay(e){return typeof e=="string"||typeof e=="number"}var v4=function(t,n){var r=YM(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,g=u.useContext(Zp),m=g.maxCount,y=g.flattenOptions,b=g.onActiveValue,h=g.defaultActiveFirstOption,p=g.onSelect,S=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,x=g.virtual,E=g.direction,$=g.listHeight,R=g.listItemHeight,O=g.optionRender,P="".concat(o,"-item"),I=os(function(){return y},[a,y],function(ee,Q){return Q[0]&&ee[1]!==Q[1]}),T=u.useRef(null),N=u.useMemo(function(){return l&&gm(m)&&(C==null?void 0:C.size)>=m},[l,m,C==null?void 0:C.size]),j=function(Q){Q.preventDefault()},L=function(Q){var ie;(ie=T.current)===null||ie===void 0||ie.scrollTo(typeof Q=="number"?{index:Q}:Q)},A=u.useCallback(function(ee){return s==="combobox"?!1:C.has(ee)},[s,Ce(C).toString(),C.size]),_=function(Q){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=I.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;V(Q);var J={source:ie?"keyboard":"mouse"},re=I[Q];if(!re){b(null,-1,J);return}b(re.value,Q,J)};u.useEffect(function(){W(h!==!1?_(0):-1)},[I.length,c]);var D=u.useCallback(function(ee){return s==="combobox"?String(ee).toLowerCase()===c.toLowerCase():C.has(ee)},[s,c,Ce(C).toString(),C.size]);u.useEffect(function(){var ee=setTimeout(function(){if(!l&&a&&C.size===1){var ie=Array.from(C)[0],J=I.findIndex(function(re){var te=re.data;return c?String(te.value).startsWith(c):te.value===ie});J!==-1&&(W(J),L(J))}});if(a){var Q;(Q=T.current)===null||Q===void 0||Q.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[a,c]);var k=function(Q){Q!==void 0&&p(Q,{selected:!C.has(Q)}),l||d(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(Q){var ie=Q.which,J=Q.ctrlKey;switch(ie){case De.N:case De.P:case De.UP:case De.DOWN:{var re=0;if(ie===De.UP?re=-1:ie===De.DOWN?re=1:d4()&&J&&(ie===De.N?re=1:ie===De.P&&(re=-1)),re!==0){var te=_(H+re,re);L(te),W(te,!0)}break}case De.TAB:case De.ENTER:{var ce,ue=I[H];ue&&!(ue!=null&&(ce=ue.data)!==null&&ce!==void 0&&ce.disabled)&&!N?k(ue.value):k(void 0),a&&Q.preventDefault();break}case De.ESC:d(!1),a&&Q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Q){L(Q)}}}),I.length===0)return u.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(P,"-empty"),onMouseDown:j},f);var K=Object.keys(w).map(function(ee){return w[ee]}),Z=function(Q){return Q.label};function q(ee,Q){var ie=ee.group;return{role:ie?"presentation":"option",id:"".concat(i,"_list_").concat(Q)}}var Y=function(Q){var ie=I[Q];if(!ie)return null;var J=ie.data||{},re=J.value,te=ie.group,ce=Ra(J,!0),ue=Z(ie);return ie?u.createElement("div",we({"aria-label":typeof ue=="string"&&!te?ue:null},ce,{key:Q},q(ie,Q),{"aria-selected":D(re)}),re):null},de={role:"listbox",id:"".concat(i,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",we({},de,{style:{height:0,width:0,overflow:"hidden"}}),Y(H-1),Y(H),Y(H+1)),u.createElement(hw,{itemKey:"key",ref:T,data:I,height:$,itemHeight:R,fullHeight:!1,onMouseDown:j,onScroll:v,virtual:x,direction:E,innerProps:x?null:de},function(ee,Q){var ie=ee.group,J=ee.groupOption,re=ee.data,te=ee.label,ce=ee.value,ue=re.key;if(ie){var pe,be=(pe=re.title)!==null&&pe!==void 0?pe:ay(te)?te.toString():void 0;return u.createElement("div",{className:X(P,"".concat(P,"-group"),re.className),title:be},te!==void 0?te:ue)}var fe=re.disabled,xe=re.title;re.children;var ge=re.style,le=re.className,Pe=Je(re,f4),Fe=rr(Pe,K),Ve=A(ce),ze=fe||!Ve&&N,Re="".concat(P,"-option"),We=X(P,Re,le,M(M(M(M({},"".concat(Re,"-grouped"),J),"".concat(Re,"-active"),H===Q&&!ze),"".concat(Re,"-disabled"),ze),"".concat(Re,"-selected"),Ve)),Ue=Z(ee),ot=!S||typeof S=="function"||Ve,ke=typeof Ue=="number"?Ue:Ue||ce,he=ay(ke)?ke.toString():void 0;return xe!==void 0&&(he=xe),u.createElement("div",we({},Ra(Fe),x?{}:q(ee,Q),{"aria-selected":D(ce),className:We,title:he,onMouseMove:function(){H===Q||ze||W(Q)},onClick:function(){ze||k(ce)},style:ge}),u.createElement("div",{className:"".concat(Re,"-content")},typeof O=="function"?O(ee,{index:Q}):ke),u.isValidElement(S)||Ve,ot&&u.createElement(nd,{className:"".concat(P,"-option-state"),customizeIcon:S,customizeIconProps:{value:ce,disabled:ze,isSelected:Ve}},Ve?"✓":null))}))},m4=u.forwardRef(v4);const p4=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(f){if(f.label===void 0){var v;return F(F({},f),{},{label:(v=a.get(f.value))===null||v===void 0?void 0:v.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=d,s},[e,t]),o=u.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function bf(e,t){return fw(e).join("").toUpperCase().includes(t)}const g4=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(g,m){return o?bf(m[o],d):m[i]?bf(m[a!=="children"?a:"label"],d):bf(m[l],d)},v=c?function(g){return hm(g)}:function(g){return g};return e.forEach(function(g){if(g[i]){var m=f(n,v(g));if(m)s.push(g);else{var y=g[i].filter(function(b){return f(n,v(b))});y.length&&s.push(F(F({},g),{},M({},i,y)))}return}f(n,v(g))&&s.push(g)}),s},[e,r,o,n,t])};var ly=0,h4=nr();function y4(){var e;return h4?(e=ly,ly+=1):e="TEST_OR_SSR",e}function b4(e){var t=u.useState(),n=U(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(y4()))},[]),e||r}var S4=["children","value"],C4=["children"];function w4(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Je(r,S4);return F({key:n,value:i!==void 0?i:n,children:o},a)}function yw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return eo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=Je(l,C4);return t||!i?w4(n):F(F({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:yw(s)})}).filter(function(n){return n})}var x4=function(t,n,r,o,i){return u.useMemo(function(){var a=t,l=!t;l&&(a=yw(n));var s=new Map,c=new Map,d=function(g,m,y){y&&typeof y=="string"&&g.set(m[y],m)},f=function v(g){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y0?Se(me.options):me.options}):me})},ke=u.useMemo(function(){return p?ot(Ue):Ue},[Ue,p,de]),he=u.useMemo(function(){return HN(ke,{fieldNames:Z,childrenAsData:k})},[ke,Z,k]),Ie=function(se){var ae=te(se);if(be(ae),z&&(ae.length!==le.length||ae.some(function(Oe,it){var at;return((at=le[it])===null||at===void 0?void 0:at.value)!==(Oe==null?void 0:Oe.value)}))){var me=B?ae:ae.map(function(Oe){return Oe.value}),Ne=ae.map(function(Oe){return hm(Pe(Oe.value))});z(D?me:me[0],D?Ne:Ne[0])}},qe=u.useState(null),He=U(qe,2),rt=He[0],mt=He[1],rn=u.useState(0),Nt=U(rn,2),Ut=Nt[0],Kt=Nt[1],bt=$!==void 0?$:r!=="combobox",et=u.useCallback(function(Se,se){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},me=ae.source,Ne=me===void 0?"keyboard":me;Kt(se),a&&r==="combobox"&&Se!==null&&Ne==="keyboard"&&mt(String(Se))},[a,r]),Xe=function(se,ae,me){var Ne=function(){var $t,_t=Pe(se);return[B?{label:_t==null?void 0:_t[Z.label],value:se,key:($t=_t==null?void 0:_t.key)!==null&&$t!==void 0?$t:se}:se,hm(_t)]};if(ae&&g){var Oe=Ne(),it=U(Oe,2),at=it[0],lt=it[1];g(at,lt)}else if(!ae&&m&&me!=="clear"){var ft=Ne(),kt=U(ft,2),Ft=kt[0],Gt=kt[1];m(Ft,Gt)}},Ct=sy(function(Se,se){var ae,me=D?se.selected:!0;me?ae=D?[].concat(Ce(le),[Se]):[Se]:ae=le.filter(function(Ne){return Ne.value!==Se}),Ie(ae),Xe(Se,me),r==="combobox"?mt(""):(!ym||v)&&(ee(""),mt(""))}),pt=function(se,ae){Ie(se);var me=ae.type,Ne=ae.values;(me==="remove"||me==="clear")&&Ne.forEach(function(Oe){Xe(Oe.value,!1,me)})},Te=function(se,ae){if(ee(se),mt(null),ae.source==="submit"){var me=(se||"").trim();if(me){var Ne=Array.from(new Set([].concat(Ce(Ve),[me])));Ie(Ne),Xe(me,!0),ee("")}return}ae.source!=="blur"&&(r==="combobox"&&Ie(se),d==null||d(se))},Ke=function(se){var ae=se;r!=="tags"&&(ae=se.map(function(Ne){var Oe=J.get(Ne);return Oe==null?void 0:Oe.value}).filter(function(Ne){return Ne!==void 0}));var me=Array.from(new Set([].concat(Ce(Ve),Ce(ae))));Ie(me),me.forEach(function(Ne){Xe(Ne,!0)})},Ze=u.useMemo(function(){var Se=O!==!1&&b!==!1;return F(F({},Q),{},{flattenOptions:he,onActiveValue:et,defaultActiveFirstOption:bt,onSelect:Ct,menuItemSelectedIcon:R,rawValues:Ve,fieldNames:Z,virtual:Se,direction:P,listHeight:T,listItemHeight:j,childrenAsData:k,maxCount:H,optionRender:x})},[H,Q,he,et,bt,Ct,R,Ve,Z,O,b,P,T,j,k,x]);return u.createElement(Zp.Provider,{value:Ze},u.createElement(GN,we({},V,{id:W,prefixCls:i,ref:t,omitDomProps:$4,mode:r,displayValues:Fe,onDisplayValuesChange:pt,direction:P,searchValue:de,onSearch:Te,autoClearSearchValue:v,onSearchSplit:Ke,dropdownMatchSelectWidth:b,OptionList:m4,emptyOptions:!he.length,activeValue:rt,activeDescendantId:"".concat(W,"_list_").concat(Ut)})))}),ng=O4;ng.Option=tg;ng.OptGroup=eg;function lc(e,t,n){return X({[`${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 rd=(e,t)=>t||e,P4=()=>{const[,e]=ro(),[t]=Dp("Empty"),r=new Mt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.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"}),u.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)"}),u.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"}),u.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"})),u.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"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},I4=()=>{const[,e]=ro(),[t]=Dp("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=u.useMemo(()=>({borderColor:new Mt(n).onBackground(i).toHexString(),shadowColor:new Mt(r).onBackground(i).toHexString(),contentColor:new Mt(o).onBackground(i).toHexString()}),[n,r,o,i]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:a},u.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"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},T4=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}}}}},_4=Ln("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Yt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return T4(o)});var M4=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{className:n,rootClassName:r,prefixCls:o,image:i,description:a,children:l,imageStyle:s,style:c,classNames:d,styles:f}=e,v=M4(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:m,className:y,style:b,classNames:h,styles:p,image:S}=Yo("empty"),C=g("empty",o),[w,x,E]=_4(C),[$]=Dp("Empty"),R=typeof a<"u"?a:$==null?void 0:$.description,O=typeof R=="string"?R:"empty",P=(t=i??S)!==null&&t!==void 0?t:bw;let I=null;return typeof P=="string"?I=u.createElement("img",{draggable:!1,alt:O,src:P}):I=P,w(u.createElement("div",Object.assign({className:X(x,E,C,y,{[`${C}-normal`]:P===Sw,[`${C}-rtl`]:m==="rtl"},n,r,h.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},p.root),b),f==null?void 0:f.root),c)},v),u.createElement("div",{className:X(`${C}-image`,h.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),p.image),f==null?void 0:f.image)},I),R&&u.createElement("div",{className:X(`${C}-description`,h.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},p.description),f==null?void 0:f.description)},R),l&&u.createElement("div",{className:X(`${C}-footer`,h.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},p.footer),f==null?void 0:f.footer)},l)))};ri.PRESENTED_IMAGE_DEFAULT=bw;ri.PRESENTED_IMAGE_SIMPLE=Sw;const N4=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(ct),r=n("empty");switch(t){case"Table":case"List":return ne.createElement(ri,{image:ri.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ne.createElement(ri,{image:ri.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ne.createElement(ri,null)}},od=(e,t,n)=>{var r,o;const{variant:i,[e]:a}=u.useContext(ct),l=u.useContext(RM),s=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=OO.includes(c);return[c,d]},L4=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 F4(e,t){return e||L4(t)}const uy=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"}},z4=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-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Co(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:U1},[` ${o}${l}topLeft, ${i}${l}topLeft, ${o}${l}topRight, ${i}${l}topRight `]:{animationName:G1},[`${a}${l}bottomLeft`]:{animationName:K1},[` ${a}${l}topLeft, ${a}${l}topRight `]:{animationName:q1},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},uy(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"},$a),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},uy(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},oc(e,"slide-up"),oc(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},A4=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:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},j4=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},D4=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius: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({},Vc()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},B4=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=j4(e),l=t?`${n}-${t}`:"",s=A4(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},D4(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(r)} 0`,lineHeight:oe(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:oe(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item, ${n}-prefix + ${n}-selection-wrap `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${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:oe(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.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Sf(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[B4(e,t),o]}const k4=e=>{const{componentCls:t}=e,n=Yt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Yt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Sf(e),Sf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Sf(r,"lg")]};function Cf(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({},Co(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:oe(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{display:"block",padding:0,lineHeight:oe(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-search, &${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%",alignItems:"center",padding:`0 ${oe(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:oe(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 ${oe(r)}`,"&:after":{display:"none"}}}}}}}function H4(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Cf(e),Cf(Yt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(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()}}}},Cf(Yt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const V4=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:g,colorBgContainer:m,colorFillSecondary:y,colorBgContainerDisabled:b,colorTextDisabled:h,colorPrimaryHover:p,colorPrimary:S,controlOutline:C}=e,w=l*2,x=r*2,E=Math.min(o-w,o-x),$=Math.min(i-w,i-x),R=Math.min(a-w,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:g,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:$,multipleItemHeightLG:R,multipleSelectorBgDisabled:b,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:l}},Cw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${oe(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 ${oe(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},cy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Cw(e,t))}),W4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Cw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),cy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),cy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ww=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${oe(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}}}},dy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ww(e,t))}),U4=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ww(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),dy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),dy(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),K4=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} 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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),xw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},xw(e,t))}),G4=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},xw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),fy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),fy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),q4=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},W4(e)),U4(e)),K4(e)),G4(e))}),X4=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"}}}},Q4=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",appearance:"none"}}}},Y4=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Co(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},X4(e)),Q4(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},$a),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},$a),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Vc()),{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}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},J4=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Y4(e),H4(e),k4(e),z4(e),{[`${t}-rtl`]:{direction:"rtl"}},Zc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Z4=Ln("Select",(e,{rootPrefixCls:t})=>{const n=Yt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[J4(n),q4(n)]},V4,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var eL={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"},tL=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:eL}))},nL=u.forwardRef(tL),rL={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"},oL=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:rL}))},iL=u.forwardRef(oL),aL={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"},lL=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:aL}))},Ew=u.forwardRef(lL);function sL({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:i,hasFeedback:a,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:f}){const v=t??u.createElement(Vp,null),g=h=>e===null&&!a&&!d?null:u.createElement(u.Fragment,null,s!==!1&&h,a&&c);let m=null;if(e!==void 0)m=g(e);else if(o)m=g(u.createElement(Up,{spin:!0}));else{const h=`${l}-suffix`;m=({open:p,showSearch:S})=>g(p&&S?u.createElement(Ew,{className:h}):u.createElement(iL,{className:h}))}let y=null;n!==void 0?y=n:i?y=u.createElement(nL,null):y=null;let b=null;return r!==void 0?b=r:b=u.createElement(Wp,null),{clearIcon:v,suffixIcon:m,itemIcon:y,removeIcon:b}}function uL(e){return ne.useMemo(()=>{if(e)return(...t)=>ne.createElement(mm,{space:!0},e.apply(void 0,t))},[e])}function cL(e,t){return t!==void 0?t:e!==null}var dL=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,i,a;const{prefixCls:l,bordered:s,className:c,rootClassName:d,getPopupContainer:f,popupClassName:v,dropdownClassName:g,listHeight:m=256,placement:y,listItemHeight:b,size:h,disabled:p,notFoundContent:S,status:C,builtinPlacements:w,dropdownMatchSelectWidth:x,popupMatchSelectWidth:E,direction:$,style:R,allowClear:O,variant:P,dropdownStyle:I,transitionName:T,tagRender:N,maxCount:j,prefix:L,dropdownRender:A,popupRender:_,onDropdownVisibleChange:B,onOpenChange:z,styles:H,classNames:V}=e,W=dL(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","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:D,getPrefixCls:k,renderEmpty:K,direction:Z,virtual:q,popupMatchSelectWidth:Y,popupOverflow:de}=u.useContext(ct),{showSearch:ee,style:Q,styles:ie,className:J,classNames:re}=Yo("select"),[,te]=ro(),ce=b??(te==null?void 0:te.controlHeight),ue=k("select",l),pe=k(),be=$??Z,{compactSize:fe,compactItemClassnames:xe}=za(ue,be),[ge,le]=od("select",P,s),Pe=Fa(ue),[Fe,Ve,ze]=Z4(ue,Pe),Re=u.useMemo(()=>{const{mode:me}=e;if(me!=="combobox")return me===$w?"combobox":me},[e.mode]),We=Re==="multiple"||Re==="tags",Ue=cL(e.suffixIcon,e.showArrow),ot=(n=E??x)!==null&&n!==void 0?n:Y,ke=((r=H==null?void 0:H.popup)===null||r===void 0?void 0:r.root)||((o=ie.popup)===null||o===void 0?void 0:o.root)||I,he=uL(_||A),Ie=z||B,{status:qe,hasFeedback:He,isFormItemInput:rt,feedbackIcon:mt}=u.useContext(ho),rn=rd(qe,C);let Nt;S!==void 0?Nt=S:Re==="combobox"?Nt=null:Nt=(K==null?void 0:K("Select"))||u.createElement(N4,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:Kt,removeIcon:bt,clearIcon:et}=sL(Object.assign(Object.assign({},W),{multiple:We,hasFeedback:He,feedbackIcon:mt,showSuffixIcon:Ue,prefixCls:ue,componentName:"Select"})),Xe=O===!0?{clearIcon:et}:O,Ct=rr(W,["suffixIcon","itemIcon"]),pt=X(((i=V==null?void 0:V.popup)===null||i===void 0?void 0:i.root)||((a=re==null?void 0:re.popup)===null||a===void 0?void 0:a.root)||v||g,{[`${ue}-dropdown-${be}`]:be==="rtl"},d,re.root,V==null?void 0:V.root,ze,Pe,Ve),Te=wo(me=>{var Ne;return(Ne=h??fe)!==null&&Ne!==void 0?Ne:me}),Ke=u.useContext(Go),Ze=p??Ke,Se=X({[`${ue}-lg`]:Te==="large",[`${ue}-sm`]:Te==="small",[`${ue}-rtl`]:be==="rtl",[`${ue}-${ge}`]:le,[`${ue}-in-form-item`]:rt},lc(ue,rn,He),xe,J,c,re.root,V==null?void 0:V.root,d,ze,Pe,Ve),se=u.useMemo(()=>y!==void 0?y:be==="rtl"?"bottomRight":"bottomLeft",[y,be]),[ae]=II("SelectLike",ke==null?void 0:ke.zIndex);return Fe(u.createElement(ng,Object.assign({ref:t,virtual:q,showSearch:ee},Ct,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie.root),H==null?void 0:H.root),Q),R),dropdownMatchSelectWidth:ot,transitionName:B1(pe,"slide-up",T),builtinPlacements:F4(w,de),listHeight:m,listItemHeight:ce,mode:Re,prefixCls:ue,placement:se,direction:be,prefix:L,suffixIcon:Ut,menuItemSelectedIcon:Kt,removeIcon:bt,allowClear:Xe,notFoundContent:Nt,className:Se,getPopupContainer:f||D,dropdownClassName:pt,disabled:Ze,dropdownStyle:Object.assign(Object.assign({},ke),{zIndex:ae}),maxCount:We?j:void 0,tagRender:We?N:void 0,dropdownRender:he,onDropdownVisibleChange:Ie})))},so=u.forwardRef(fL),vL=XM(so,"dropdownAlign");so.SECRET_COMBOBOX_MODE_DO_NOT_USE=$w;so.Option=tg;so.OptGroup=eg;so._InternalPanelDoNotUseOrYouWillBeFired=vL;const mL=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},pL=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)};var gL={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"},hL=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:gL}))},vy=u.forwardRef(hL),yL=De.ESC,bL=De.TAB;function SL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u.useRef(!1),l=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case yL:l();break;case bL:{var v=!1;a.current||(v=s()),v?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Rt(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var CL=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=no(t,Ma(i));return ne.createElement(ne.Fragment,null,r&&ne.createElement("div",{className:"".concat(o,"-arrow")}),ne.cloneElement(i,{ref:xi(i)?a:void 0}))}),ji={adjustX:1,adjustY:1},Di=[0,0],wL={topLeft:{points:["bl","tl"],overflow:ji,offset:[0,-4],targetOffset:Di},top:{points:["bc","tc"],overflow:ji,offset:[0,-4],targetOffset:Di},topRight:{points:["br","tr"],overflow:ji,offset:[0,-4],targetOffset:Di},bottomLeft:{points:["tl","bl"],overflow:ji,offset:[0,4],targetOffset:Di},bottom:{points:["tc","bc"],overflow:ji,offset:[0,4],targetOffset:Di},bottomRight:{points:["tr","br"],overflow:ji,offset:[0,4],targetOffset:Di}},xL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function EL(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,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,g=v===void 0?wL:v,m=e.getPopupContainer,y=e.showAction,b=e.hideAction,h=e.overlayClassName,p=e.overlayStyle,S=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,x=e.autoFocus,E=e.overlay,$=e.children,R=e.onVisibleChange,O=Je(e,xL),P=ne.useState(),I=U(P,2),T=I[0],N=I[1],j="visible"in e?S:T,L=ne.useRef(null),A=ne.useRef(null),_=ne.useRef(null);ne.useImperativeHandle(t,function(){return L.current});var B=function(q){N(q),R==null||R(q)};SL({visible:j,triggerRef:_,onVisibleChange:B,autoFocus:x,overlayRef:A});var z=function(q){var Y=e.onOverlayClick;N(!1),Y&&Y(q)},H=function(){return ne.createElement(CL,{ref:A,overlay:E,prefixCls:a,arrow:o})},V=function(){return typeof E=="function"?H:H()},W=function(){var q=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!Y},D=function(){var q=e.openClassName;return q!==void 0?q:"".concat(a,"-open")},k=ne.cloneElement($,{className:X((n=$.props)===null||n===void 0?void 0:n.className,j&&D()),ref:xi($)?no(_,Ma($)):void 0}),K=b;return!K&&w.indexOf("contextMenu")!==-1&&(K=["click"]),ne.createElement(Jp,we({builtinPlacements:g},O,{prefixCls:a,ref:L,popupClassName:X(h,M({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:w,showAction:y,hideAction:K,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:j,stretch:W()?"minWidth":"",popup:V(),onPopupVisibleChange:B,onPopupClick:z,getPopupContainer:m}),k)}const $L=ne.forwardRef(EL);var Rw=u.createContext(null);function Ow(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Pw(e){var t=u.useContext(Rw);return Ow(t,e)}var RL=["children","locked"],kr=u.createContext(null);function OL(e,t){var n=F({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ql(e){var t=e.children,n=e.locked,r=Je(e,RL),o=u.useContext(kr),i=os(function(){return OL(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Vl(a[1],l[1],!0))});return u.createElement(kr.Provider,{value:i},t)}var PL=[],Iw=u.createContext(null);function id(){return u.useContext(Iw)}var Tw=u.createContext(PL);function ds(e){var t=u.useContext(Tw);return u.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var _w=u.createContext(null),rg=u.createContext({});function my(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(qp(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 IL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ce(e.querySelectorAll("*")).filter(function(r){return my(r,t)});return my(e,t)&&n.unshift(e),n}var Sm=De.LEFT,Cm=De.RIGHT,wm=De.UP,hu=De.DOWN,yu=De.ENTER,Mw=De.ESC,Za=De.HOME,el=De.END,py=[wm,hu,Sm,Cm];function TL(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if(e==="inline"&&r===yu)return{inlineTrigger:!0};var c=M(M({},wm,i),hu,a),d=M(M(M(M({},Sm,n?a:i),Cm,n?i:a),hu,l),yu,l),f=M(M(M(M(M(M({},wm,i),hu,a),yu,l),Mw,s),Sm,n?l:s),Cm,n?s:l),v={inline:c,horizontal:d,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},g=(o=v["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function _L(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ML(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function og(e,t){var n=IL(e,!0);return n.filter(function(r){return t.has(r)})}function gy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=og(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 xm=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(Ow(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function NL(e,t,n,r,o,i,a,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var v=function(){Rt.cancel(d.current)};return u.useEffect(function(){return function(){v()}},[]),function(g){var m=g.which;if([].concat(py,[yu,Mw,Za,el]).includes(m)){var y=i(),b=xm(y,r),h=b,p=h.elements,S=h.key2element,C=h.element2key,w=S.get(t),x=ML(w,p),E=C.get(x),$=TL(e,a(E,!0).length===1,n,m);if(!$&&m!==Za&&m!==el)return;(py.includes(m)||[Za,el].includes(m))&&g.preventDefault();var R=function(A){if(A){var _=A,B=A.querySelector("a");B!=null&&B.getAttribute("href")&&(_=B);var z=C.get(A);l(z),v(),d.current=Rt(function(){f.current===z&&_.focus()})}};if([Za,el].includes(m)||$.sibling||!x){var O;!x||e==="inline"?O=o.current:O=_L(x);var P,I=og(O,p);m===Za?P=I[0]:m===el?P=I[I.length-1]:P=gy(O,p,x,$.offset),R(P)}else if($.inlineTrigger)s(E);else if($.offset>0)s(E,!0),v(),d.current=Rt(function(){b=xm(y,r);var L=x.getAttribute("aria-controls"),A=document.getElementById(L),_=gy(A,b.elements);R(_)},5);else if($.offset<0){var T=a(E,!0),N=T[T.length-2],j=S.get(N);s(N,!1),R(j)}}c==null||c(g)}}function LL(e){Promise.resolve().then(e)}var ig="__RC_UTIL_PATH_SPLIT__",hy=function(t){return t.join(ig)},FL=function(t){return t.split(ig)},Em="rc-menu-more";function zL(){var e=u.useState({}),t=U(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u.useState([]),a=U(i,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},v=u.useCallback(function(S,C){var w=hy(C);o.current.set(w,S),r.current.set(S,w),c.current+=1;var x=c.current;LL(function(){x===c.current&&f()})},[]),g=u.useCallback(function(S,C){var w=hy(C);o.current.delete(w),r.current.delete(S)},[]),m=u.useCallback(function(S){s(S)},[]),y=u.useCallback(function(S,C){var w=r.current.get(S)||"",x=FL(w);return C&&l.includes(x[0])&&x.unshift(Em),x},[l]),b=u.useCallback(function(S,C){return S.filter(function(w){return w!==void 0}).some(function(w){var x=y(w,!0);return x.includes(C)})},[y]),h=function(){var C=Ce(r.current.keys());return l.length&&C.push(Em),C},p=u.useCallback(function(S){var C="".concat(r.current.get(S)).concat(ig),w=new Set;return Ce(o.current.keys()).forEach(function(x){x.startsWith(C)&&w.add(o.current.get(x))}),w},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:g,refreshOverflowKeys:m,isSubPathKey:b,getKeyPath:y,getKeys:h,getSubPathKeys:p}}function sl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(p.motionAppear=!1);var S=p.onVisibleChanged;return p.onVisibleChanged=function(C){return!v.current&&!C&&b(!0),S==null?void 0:S(C)},y?null:u.createElement(Ql,{mode:i,locked:!v.current},u.createElement(Ei,we({visible:h},p,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var w=C.className,x=C.style;return u.createElement(ag,{id:t,className:w,style:x},o)}))}var ZL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eF=["active"],tF=u.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,s=e.children,c=e.itemIcon,d=e.expandIcon,f=e.popupClassName,v=e.popupOffset,g=e.popupStyle,m=e.onClick,y=e.onMouseEnter,b=e.onMouseLeave,h=e.onTitleClick,p=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=Je(e,ZL),w=Pw(i),x=u.useContext(kr),E=x.prefixCls,$=x.mode,R=x.openKeys,O=x.disabled,P=x.overflowDisabled,I=x.activeKey,T=x.selectedKeys,N=x.itemIcon,j=x.expandIcon,L=x.onItemClick,A=x.onOpenChange,_=x.onActive,B=u.useContext(rg),z=B._internalRenderSubMenuItem,H=u.useContext(_w),V=H.isSubPathKey,W=ds(),D="".concat(E,"-submenu"),k=O||a,K=u.useRef(),Z=u.useRef(),q=c??N,Y=d??j,de=R.includes(i),ee=!P&&de,Q=V(T,i),ie=Nw(i,k,p,S),J=ie.active,re=Je(ie,eF),te=u.useState(!1),ce=U(te,2),ue=ce[0],pe=ce[1],be=function(qe){k||pe(qe)},fe=function(qe){be(!0),y==null||y({key:i,domEvent:qe})},xe=function(qe){be(!1),b==null||b({key:i,domEvent:qe})},ge=u.useMemo(function(){return J||($!=="inline"?ue||V([I],i):!1)},[$,J,I,ue,i,V]),le=Lw(W.length),Pe=function(qe){k||(h==null||h({key:i,domEvent:qe}),$==="inline"&&A(i,!de))},Fe=sl(function(Ie){m==null||m(sc(Ie)),L(Ie)}),Ve=function(qe){$!=="inline"&&A(i,qe)},ze=function(){_(i)},Re=w&&"".concat(w,"-popup"),We=u.useMemo(function(){return u.createElement(Fw,{icon:$!=="horizontal"?Y:void 0,props:F(F({},e),{},{isOpen:ee,isSubMenu:!0})},u.createElement("i",{className:"".concat(D,"-arrow")}))},[$,Y,e,ee,D]),Ue=u.createElement("div",we({role:"menuitem",style:le,className:"".concat(D,"-title"),tabIndex:k?null:-1,ref:K,title:typeof o=="string"?o:null,"data-menu-id":P&&w?null:w,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":Re,"aria-disabled":k,onClick:Pe,onFocus:ze},re),o,We),ot=u.useRef($);if($!=="inline"&&W.length>1?ot.current="vertical":ot.current=$,!P){var ke=ot.current;Ue=u.createElement(YL,{mode:ke,prefixCls:D,visible:!l&&ee&&$!=="inline",popupClassName:f,popupOffset:v,popupStyle:g,popup:u.createElement(Ql,{mode:ke==="horizontal"?"vertical":ke},u.createElement(ag,{id:Re,ref:Z},s)),disabled:k,onVisibleChange:Ve},Ue)}var he=u.createElement(Zr.Item,we({ref:t,role:"none"},C,{component:"li",style:n,className:X(D,"".concat(D,"-").concat($),r,M(M(M(M({},"".concat(D,"-open"),ee),"".concat(D,"-active"),ge),"".concat(D,"-selected"),Q),"".concat(D,"-disabled"),k)),onMouseEnter:fe,onMouseLeave:xe}),Ue,!P&&u.createElement(JL,{id:Re,open:ee,keyPath:W},s));return z&&(he=z(he,e,{selected:Q,active:ge,open:ee,disabled:k})),u.createElement(Ql,{onItemClick:Fe,mode:$==="horizontal"?"vertical":$,itemIcon:q,expandIcon:Y},he)}),sg=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ds(n),i=lg(r,o),a=id();u.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=u.createElement(tF,we({ref:t},e),i),u.createElement(Tw.Provider,{value:o},l)});function Aw(e){var t=e.className,n=e.style,r=u.useContext(kr),o=r.prefixCls,i=id();return i?null:u.createElement("li",{role:"separator",className:X("".concat(o,"-item-divider"),t),style:n})}var nF=["className","title","eventKey","children"],rF=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=Je(e,nF),a=u.useContext(kr),l=a.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",we({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:X(s,n)}),u.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),jw=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ds(n),i=lg(r,o),a=id();return a?i:u.createElement(rF,we({ref:t},rr(e,["warnKey"])),i)}),oF=["label","children","key","type","extra"];function $m(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(l,s){if(l&&Be(l)==="object"){var c=l,d=c.label,f=c.children,v=c.key,g=c.type,m=c.extra,y=Je(c,oF),b=v??"tmp-".concat(s);return f||g==="group"?g==="group"?u.createElement(o,we({key:b},y,{title:d}),$m(f,t,n)):u.createElement(i,we({key:b},y,{title:d}),$m(f,t,n)):g==="divider"?u.createElement(a,we({key:b},y)):u.createElement(r,we({key:b},y,{extra:m}),d,(!!m||m===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(l){return l})}function by(e,t,n,r,o){var i=e,a=F({divider:Aw,item:ad,group:jw,submenu:sg},r);return t&&(i=$m(t,a,o)),lg(i,n)}var iF=["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"],Zo=[],aF=u.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,l=r.style,s=r.className,c=r.tabIndex,d=c===void 0?0:c,f=r.items,v=r.children,g=r.direction,m=r.id,y=r.mode,b=y===void 0?"vertical":y,h=r.inlineCollapsed,p=r.disabled,S=r.disabledOverflow,C=r.subMenuOpenDelay,w=C===void 0?.1:C,x=r.subMenuCloseDelay,E=x===void 0?.1:x,$=r.forceSubMenuRender,R=r.defaultOpenKeys,O=r.openKeys,P=r.activeKey,I=r.defaultActiveFirst,T=r.selectable,N=T===void 0?!0:T,j=r.multiple,L=j===void 0?!1:j,A=r.defaultSelectedKeys,_=r.selectedKeys,B=r.onSelect,z=r.onDeselect,H=r.inlineIndent,V=H===void 0?24:H,W=r.motion,D=r.defaultMotions,k=r.triggerSubMenuAction,K=k===void 0?"hover":k,Z=r.builtinPlacements,q=r.itemIcon,Y=r.expandIcon,de=r.overflowedIndicator,ee=de===void 0?"...":de,Q=r.overflowedIndicatorPopupClassName,ie=r.getPopupContainer,J=r.onClick,re=r.onOpenChange,te=r.onKeyDown;r.openAnimation,r.openTransitionName;var ce=r._internalRenderMenuItem,ue=r._internalRenderSubMenuItem,pe=r._internalComponents,be=Je(r,iF),fe=u.useMemo(function(){return[by(v,f,Zo,pe,i),by(v,f,Zo,{},i)]},[v,f,pe]),xe=U(fe,2),ge=xe[0],le=xe[1],Pe=u.useState(!1),Fe=U(Pe,2),Ve=Fe[0],ze=Fe[1],Re=u.useRef(),We=jL(m),Ue=g==="rtl",ot=fr(R,{value:O,postState:function(_e){return _e||Zo}}),ke=U(ot,2),he=ke[0],Ie=ke[1],qe=function(_e){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ht(){Ie(_e),re==null||re(_e)}$e?go.flushSync(ht):ht()},He=u.useState(he),rt=U(He,2),mt=rt[0],rn=rt[1],Nt=u.useRef(!1),Ut=u.useMemo(function(){return(b==="inline"||b==="vertical")&&h?["vertical",h]:[b,!1]},[b,h]),Kt=U(Ut,2),bt=Kt[0],et=Kt[1],Xe=bt==="inline",Ct=u.useState(bt),pt=U(Ct,2),Te=pt[0],Ke=pt[1],Ze=u.useState(et),Se=U(Ze,2),se=Se[0],ae=Se[1];u.useEffect(function(){Ke(bt),ae(et),Nt.current&&(Xe?Ie(mt):qe(Zo))},[bt,et]);var me=u.useState(0),Ne=U(me,2),Oe=Ne[0],it=Ne[1],at=Oe>=ge.length-1||Te!=="horizontal"||S;u.useEffect(function(){Xe&&rn(he)},[he]),u.useEffect(function(){return Nt.current=!0,function(){Nt.current=!1}},[]);var lt=zL(),ft=lt.registerPath,kt=lt.unregisterPath,Ft=lt.refreshOverflowKeys,Gt=lt.isSubPathKey,cn=lt.getKeyPath,$t=lt.getKeys,_t=lt.getSubPathKeys,ye=u.useMemo(function(){return{registerPath:ft,unregisterPath:kt}},[ft,kt]),Ee=u.useMemo(function(){return{isSubPathKey:Gt}},[Gt]);u.useEffect(function(){Ft(at?Zo:ge.slice(Oe+1).map(function(Et){return Et.key}))},[Oe,at]);var Qe=fr(P||I&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:P}),nt=U(Qe,2),Ae=nt[0],Me=nt[1],Ge=sl(function(Et){Me(Et)}),ut=sl(function(){Me(void 0)});u.useImperativeHandle(t,function(){return{list:Re.current,focus:function(_e){var $e,ht=$t(),St=xm(ht,We),It=St.elements,At=St.key2element,Fn=St.element2key,Sn=og(Re.current,It),zn=Ae??(Sn[0]?Fn.get(Sn[0]):($e=ge.find(function(Wr){return!Wr.props.disabled}))===null||$e===void 0?void 0:$e.key),En=At.get(zn);if(zn&&En){var An;En==null||(An=En.focus)===null||An===void 0||An.call(En,_e)}}}});var gt=fr(A||[],{value:_,postState:function(_e){return Array.isArray(_e)?_e:_e==null?Zo:[_e]}}),wt=U(gt,2),zt=wt[0],or=wt[1],Vn=function(_e){if(N){var $e=_e.key,ht=zt.includes($e),St;L?ht?St=zt.filter(function(At){return At!==$e}):St=[].concat(Ce(zt),[$e]):St=[$e],or(St);var It=F(F({},_e),{},{selectedKeys:St});ht?z==null||z(It):B==null||B(It)}!L&&he.length&&Te!=="inline"&&qe(Zo)},Wn=sl(function(Et){J==null||J(sc(Et)),Vn(Et)}),Un=sl(function(Et,_e){var $e=he.filter(function(St){return St!==Et});if(_e)$e.push(Et);else if(Te!=="inline"){var ht=_t(Et);$e=$e.filter(function(St){return!ht.has(St)})}Vl(he,$e,!0)||qe($e,!0)}),bn=function(_e,$e){var ht=$e??!he.includes(_e);Un(_e,ht)},Kn=NL(Te,Ae,Ue,We,Re,$t,cn,Me,bn,te);u.useEffect(function(){ze(!0)},[]);var Gn=u.useMemo(function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:ue}},[ce,ue]),gr=Te!=="horizontal"||S?ge:ge.map(function(Et,_e){return u.createElement(Ql,{key:Et.key,overflowDisabled:_e>Oe},Et)}),Vr=u.createElement(Zr,we({id:m,ref:Re,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:ad,className:X(i,"".concat(i,"-root"),"".concat(i,"-").concat(Te),s,M(M({},"".concat(i,"-inline-collapsed"),se),"".concat(i,"-rtl"),Ue),a),dir:g,style:l,role:"menu",tabIndex:d,data:gr,renderRawItem:function(_e){return _e},renderRawRest:function(_e){var $e=_e.length,ht=$e?ge.slice(-$e):null;return u.createElement(sg,{eventKey:Em,title:ee,disabled:at,internalPopupClose:$e===0,popupClassName:Q},ht)},maxCount:Te!=="horizontal"||S?Zr.INVALIDATE:Zr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(_e){it(_e)},onKeyDown:Kn},be));return u.createElement(rg.Provider,{value:Gn},u.createElement(Rw.Provider,{value:We},u.createElement(Ql,{prefixCls:i,rootClassName:a,mode:Te,openKeys:he,rtl:Ue,disabled:p,motion:Ve?W:null,defaultMotions:Ve?D:null,activeKey:Ae,onActive:Ge,onInactive:ut,selectedKeys:zt,inlineIndent:V,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:$,builtinPlacements:Z,triggerSubMenuAction:K,getPopupContainer:ie,itemIcon:q,expandIcon:Y,onItemClick:Wn,onOpenChange:Un},u.createElement(_w.Provider,{value:Ee},Vr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(Iw.Provider,{value:ye},le)))))}),fs=aF;fs.Item=ad;fs.SubMenu=sg;fs.ItemGroup=jw;fs.Divider=Aw;var lF={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"},sF=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:lF}))},uF=u.forwardRef(sF);const Dw=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),cF=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:oe(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Bw=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},kw=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Hw=Ln("Layout",cF,Bw,{deprecatedTokens:kw}),dF=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:v,lightSiderBg:g,lightTriggerColor:m,lightTriggerBg:y,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:oe(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${oe(v)} ${oe(v)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${oe(v)} 0 0 ${oe(v)}`}},"&-light":{background:g,[`${t}-trigger`]:{color:m,background:y},[`${t}-zero-width-trigger`]:{color:m,background:y,border:`1px solid ${b}`,borderInlineStart:0}}}}},fF=Ln(["Layout","Sider"],dF,Bw,{deprecatedTokens:kw});var vF=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!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Vw=u.createContext({}),pF=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Ww=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:s={},collapsible:c=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:v=80,zeroWidthTriggerStyle:g,breakpoint:m,onCollapse:y,onBreakpoint:b}=e,h=vF(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:p}=u.useContext(Dw),[S,C]=u.useState("collapsed"in e?e.collapsed:a),[w,x]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const E=(q,Y)=>{"collapsed"in e||C(q),y==null||y(q,Y)},{getPrefixCls:$,direction:R}=u.useContext(ct),O=$("layout-sider",n),[P,I,T]=fF(O),N=u.useRef(null);N.current=q=>{x(q.matches),b==null||b(q.matches),S!==q.matches&&E(q.matches,"responsive")},u.useEffect(()=>{function q(de){var ee;return(ee=N.current)===null||ee===void 0?void 0:ee.call(N,de)}let Y;return typeof(window==null?void 0:window.matchMedia)<"u"&&m&&m in Sy&&(Y=window.matchMedia(`screen and (max-width: ${Sy[m]})`),mL(Y,q),q(Y)),()=>{pL(Y,q)}},[m]),u.useEffect(()=>{const q=pF("ant-sider-");return p.addSider(q),()=>p.removeSider(q)},[]);const j=()=>{E(!S,"clickTrigger")},L=rr(h,["collapsed"]),A=S?v:f,_=mF(A)?`${A}px`:String(A),B=Number.parseFloat(String(v||0))===0?u.createElement("span",{onClick:j,className:X(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${d?"right":"left"}`),style:g},o||u.createElement(uF,null)):null,z=R==="rtl"==!d,W={expanded:z?u.createElement(R0,null):u.createElement(vy,null),collapsed:z?u.createElement(vy,null):u.createElement(R0,null)}[S?"collapsed":"expanded"],D=o!==null?B||u.createElement("div",{className:`${O}-trigger`,onClick:j,style:{width:_}},o||W):null,k=Object.assign(Object.assign({},s),{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}),K=X(O,`${O}-${l}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!B,[`${O}-below`]:!!w,[`${O}-zero-width`]:Number.parseFloat(_)===0},r,I,T),Z=u.useMemo(()=>({siderCollapsed:S}),[S]);return P(u.createElement(Vw.Provider,{value:Z},u.createElement("aside",Object.assign({className:K},L,{style:k,ref:t}),u.createElement("div",{className:`${O}-children`},i),c||w&&B?D:null)))});var gF={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"},hF=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:gF}))},yF=u.forwardRef(hF);function ld(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const sd=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:g,colorPrimary:m,controlOutlineWidth:y,controlOutline:b,colorErrorOutline:h,colorWarningOutline:p,colorBgContainer:S,inputFontSize:C,inputFontSizeLG:w,inputFontSizeSM:x}=e,E=C||n,$=x||E,R=w||l,O=Math.round((t-E*r)/2*10)/10-o,P=Math.round((i-$*r)/2*10)/10-o,I=Math.ceil((a-R*s)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(I,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:m,hoverBorderColor:g,activeShadow:`0 0 0 ${y}px ${b}`,errorActiveShadow:`0 0 0 ${y}px ${h}`,warningActiveShadow:`0 0 0 ${y}px ${p}`,hoverBg:S,activeBg:S,inputFontSize:E,inputFontSizeLG:R,inputFontSizeSM:$}},bF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ug=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({},bF(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Uw=(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}}),Cy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Uw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),SF=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ug(e))}),Cy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Cy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),wy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),CF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},wy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),wy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ug(e))}})}),wF=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Kw=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},xy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Kw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),xF=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ug(e))}),xy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),xy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ey=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),EF=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ey(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ey(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Gw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),$y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),$F=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),$y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),$y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),RF=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:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Xw=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Qw=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RF(e.colorTextPlaceholder)),{"&-lg":Object.assign({},qw(e)),"&-sm":Object.assign({},Xw(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),OF=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({},Xw(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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(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:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${oe(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"},Wc()),{[`${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}}}})}},PF=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(Object.assign({},Co(e)),Qw(e)),SF(e)),xF(e)),wF(e)),$F(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},IF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},TF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Qw(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),IF(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},_F=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Co(e)),OF(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}}},CF(e)),EF(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},MF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,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,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${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}}}}},NF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yw=Ln(["Input","Shared"],e=>{const t=Yt(e,ld(e));return[PF(t),TF(t)]},sd,{resetFont:!1}),Jw=Ln(["Input","Component"],e=>{const t=Yt(e,ld(e));return[_F(t),MF(t),NF(t),Zc(t)]},sd,{resetFont:!1});var LF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},FF=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:LF}))},zF=u.forwardRef(FF);const ud=u.createContext(null);var AF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,d=u.useState(),f=U(d,2),v=f[0],g=f[1],m=u.useRef(),y=ne.useCallback(function(h){return typeof l=="function"?l(h):typeof l=="number"?l:h},[l]);function b(){Rt.cancel(m.current)}return u.useEffect(function(){var h={};if(n)if(r){h.width=y(n.width);var p=o?"right":"left";c==="start"&&(h[p]=n[p]),c==="center"&&(h[p]=n[p]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(h[p]=n[p]+n.width,h.transform="translateX(-100%)")}else h.height=y(n.height),c==="start"&&(h.top=n.top),c==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),c==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return b(),m.current=Rt(function(){var S=v&&h&&Object.keys(h).every(function(C){var w=h[C],x=v[C];return typeof w=="number"&&typeof x=="number"?Math.round(w)===Math.round(x):w===x});S||g(h)}),b},[JSON.stringify(n),r,o,c,y]),{style:v}},Ry={width:0,height:0,left:0,top:0};function jF(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ry,a=i.left+i.width,l=0;lN?(I=O,x.current="x"):(I=P,x.current="y"),t(-I,-I)&&R.preventDefault()}var $=u.useRef(null);$.current={onTouchStart:S,onTouchMove:C,onTouchEnd:w,onWheel:E},u.useEffect(function(){function R(T){$.current.onTouchStart(T)}function O(T){$.current.onTouchMove(T)}function P(T){$.current.onTouchEnd(T)}function I(T){$.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",P)}},[])}function Zw(e){var t=u.useState(0),n=U(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,_v(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function kF(e){var t=u.useRef([]),n=u.useState({}),r=U(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=Zw(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var Ty={width:0,height:0,left:0,top:0,right:0};function HF(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,m=g,y=0;yMath.floor(v+t)){m=y-1;break}}for(var h=0,p=g-1;p>=0;p-=1){var S=e.get(l[p].key)||Ty;if(S[f]m?[0,-1]:[h,m]},[e,t,r,o,i,v,s,l.map(function(g){return g.key}).join("_"),c])}function _y(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var VF="TABS_DQ";function ex(e){return String(e).replace(/"/g,VF)}function cg(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var tx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),My=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Be(o)==="object"&&!u.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),WF=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,g=e.rtl,m=e.removeAriaLabel,y=e.onTabClick,b=e.getPopupContainer,h=e.popupClassName,p=u.useState(!1),S=U(p,2),C=S[0],w=S[1],x=u.useState(null),E=U(x,2),$=E[0],R=E[1],O=s.icon,P=O===void 0?"More":O,I="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),N=$!==null?"".concat(I,"-").concat($):null,j=i==null?void 0:i.dropdownAriaLabel;function L(W,D){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:D,event:W})}var A=u.createElement(fs,{onClick:function(D){var k=D.key,K=D.domEvent;y(k,K),w(!1)},prefixCls:"".concat(T,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[$],"aria-label":j!==void 0?j:"expanded dropdown"},o.map(function(W){var D=W.closable,k=W.disabled,K=W.closeIcon,Z=W.key,q=W.label,Y=cg(D,K,f,k);return u.createElement(ad,{key:Z,id:"".concat(I,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:k},u.createElement("span",null,q),Y&&u.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),L(ee,Z)}},K||f.removeIcon||"×"))}));function _(W){for(var D=o.filter(function(Y){return!Y.disabled}),k=D.findIndex(function(Y){return Y.key===$})||0,K=D.length,Z=0;ZMe?"left":"right"})}),T=U(I,2),N=T[0],j=T[1],L=Oy(0,function(Ae,Me){!P&&y&&y({direction:Ae>Me?"top":"bottom"})}),A=U(L,2),_=A[0],B=A[1],z=u.useState([0,0]),H=U(z,2),V=H[0],W=H[1],D=u.useState([0,0]),k=U(D,2),K=k[0],Z=k[1],q=u.useState([0,0]),Y=U(q,2),de=Y[0],ee=Y[1],Q=u.useState([0,0]),ie=U(Q,2),J=ie[0],re=ie[1],te=kF(new Map),ce=U(te,2),ue=ce[0],pe=ce[1],be=jF(S,ue,K[0]),fe=Gs(V,P),xe=Gs(K,P),ge=Gs(de,P),le=Gs(J,P),Pe=Math.floor(fe)Re?Re:Ae}var Ue=u.useRef(null),ot=u.useState(),ke=U(ot,2),he=ke[0],Ie=ke[1];function qe(){Ie(Date.now())}function He(){Ue.current&&clearTimeout(Ue.current)}BF(E,function(Ae,Me){function Ge(ut,gt){ut(function(wt){var zt=We(wt+gt);return zt})}return Pe?(P?Ge(j,Ae):Ge(B,Me),He(),qe(),!0):!1}),u.useEffect(function(){return He(),he&&(Ue.current=setTimeout(function(){Ie(0)},100)),He},[he]);var rt=HF(be,Fe,P?N:_,xe,ge,le,F(F({},e),{},{tabs:S})),mt=U(rt,2),rn=mt[0],Nt=mt[1],Ut=an(function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Me=be.get(Ae)||{width:0,height:0,left:0,right:0,top:0};if(P){var Ge=N;l?Me.rightN+Fe&&(Ge=Me.right+Me.width-Fe):Me.left<-N?Ge=-Me.left:Me.left+Me.width>-N+Fe&&(Ge=-(Me.left+Me.width-Fe)),B(0),j(We(Ge))}else{var ut=_;Me.top<-_?ut=-Me.top:Me.top+Me.height>-_+Fe&&(ut=-(Me.top+Me.height-Fe)),j(0),B(We(ut))}}),Kt=u.useState(),bt=U(Kt,2),et=bt[0],Xe=bt[1],Ct=u.useState(!1),pt=U(Ct,2),Te=pt[0],Ke=pt[1],Ze=S.filter(function(Ae){return!Ae.disabled}).map(function(Ae){return Ae.key}),Se=function(Me){var Ge=Ze.indexOf(et||a),ut=Ze.length,gt=(Ge+Me+ut)%ut,wt=Ze[gt];Xe(wt)},se=function(Me,Ge){var ut=Ze.indexOf(Me),gt=S.find(function(zt){return zt.key===Me}),wt=cg(gt==null?void 0:gt.closable,gt==null?void 0:gt.closeIcon,c,gt==null?void 0:gt.disabled);wt&&(Ge.preventDefault(),Ge.stopPropagation(),c.onEdit("remove",{key:Me,event:Ge}),ut===Ze.length-1?Se(-1):Se(1))},ae=function(Me,Ge){Ke(!0),Ge.button===1&&se(Me,Ge)},me=function(Me){var Ge=Me.code,ut=l&&P,gt=Ze[0],wt=Ze[Ze.length-1];switch(Ge){case"ArrowLeft":{P&&Se(ut?1:-1);break}case"ArrowRight":{P&&Se(ut?-1:1);break}case"ArrowUp":{Me.preventDefault(),P||Se(-1);break}case"ArrowDown":{Me.preventDefault(),P||Se(1);break}case"Home":{Me.preventDefault(),Xe(gt);break}case"End":{Me.preventDefault(),Xe(wt);break}case"Enter":case"Space":{Me.preventDefault(),m(et??a,Me);break}case"Backspace":case"Delete":{se(et,Me);break}}},Ne={};P?Ne[l?"marginRight":"marginLeft"]=v:Ne.marginTop=v;var Oe=S.map(function(Ae,Me){var Ge=Ae.key;return u.createElement(KF,{id:o,prefixCls:p,key:Ge,tab:Ae,style:Me===0?void 0:Ne,closable:Ae.closable,editable:c,active:Ge===a,focus:Ge===et,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:Ze.length,currentPosition:Me+1,onClick:function(gt){m(Ge,gt)},onKeyDown:me,onFocus:function(){Te||Xe(Ge),Ut(Ge),qe(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){Xe(void 0)},onMouseDown:function(gt){return ae(Ge,gt)},onMouseUp:function(){Ke(!1)}})}),it=function(){return pe(function(){var Me,Ge=new Map,ut=(Me=$.current)===null||Me===void 0?void 0:Me.getBoundingClientRect();return S.forEach(function(gt){var wt,zt=gt.key,or=(wt=$.current)===null||wt===void 0?void 0:wt.querySelector('[data-node-key="'.concat(ex(zt),'"]'));if(or){var Vn=GF(or,ut),Wn=U(Vn,4),Un=Wn[0],bn=Wn[1],Kn=Wn[2],Gn=Wn[3];Ge.set(zt,{width:Un,height:bn,left:Kn,top:Gn})}}),Ge})};u.useEffect(function(){it()},[S.map(function(Ae){return Ae.key}).join("_")]);var at=Zw(function(){var Ae=Bi(C),Me=Bi(w),Ge=Bi(x);W([Ae[0]-Me[0]-Ge[0],Ae[1]-Me[1]-Ge[1]]);var ut=Bi(O);ee(ut);var gt=Bi(R);re(gt);var wt=Bi($);Z([wt[0]-ut[0],wt[1]-ut[1]]),it()}),lt=S.slice(0,rn),ft=S.slice(Nt+1),kt=[].concat(Ce(lt),Ce(ft)),Ft=be.get(a),Gt=AF({activeTabOffset:Ft,horizontal:P,indicator:b,rtl:l}),cn=Gt.style;u.useEffect(function(){Ut()},[a,ze,Re,_y(Ft),_y(be),P]),u.useEffect(function(){at()},[l]);var $t=!!kt.length,_t="".concat(p,"-nav-wrap"),ye,Ee,Qe,nt;return P?l?(Ee=N>0,ye=N!==Re):(ye=N<0,Ee=N!==ze):(Qe=_<0,nt=_!==ze),u.createElement(Ar,{onResize:at},u.createElement("div",{ref:wi(t,C),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:X("".concat(p,"-nav"),n),style:r,onKeyDown:function(){qe()}},u.createElement(My,{ref:w,position:"left",extra:s,prefixCls:p}),u.createElement(Ar,{onResize:at},u.createElement("div",{className:X(_t,M(M(M(M({},"".concat(_t,"-ping-left"),ye),"".concat(_t,"-ping-right"),Ee),"".concat(_t,"-ping-top"),Qe),"".concat(_t,"-ping-bottom"),nt)),ref:E},u.createElement(Ar,{onResize:at},u.createElement("div",{ref:$,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(_,"px)"),transition:he?"none":void 0}},Oe,u.createElement(tx,{ref:O,prefixCls:p,locale:d,editable:c,style:F(F({},Oe.length===0?void 0:Ne),{},{visibility:$t?"hidden":null})}),u.createElement("div",{className:X("".concat(p,"-ink-bar"),M({},"".concat(p,"-ink-bar-animated"),i.inkBar)),style:cn}))))),u.createElement(UF,we({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:p,tabs:kt,className:!$t&&Ve,tabMoving:!!he})),u.createElement(My,{ref:x,position:"right",extra:s,prefixCls:p})))}),nx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:X(n,a&&"".concat(n,"-active"),r),ref:t},s)}),qF=["renderTabBar"],XF=["label","key"],QF=function(t){var n=t.renderTabBar,r=Je(t,qF),o=u.useContext(ud),i=o.tabs;if(n){var a=F(F({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,d=Je(l,XF);return u.createElement(nx,we({tab:s,key:c,tabKey:c},d))})});return n(a,Ny)}return u.createElement(Ny,r)},YF=["key","forceRender","style","className","destroyInactiveTabPane"],JF=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=u.useContext(ud),s=l.prefixCls,c=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return u.createElement("div",{className:X("".concat(s,"-content-holder"))},u.createElement("div",{className:X("".concat(s,"-content"),"".concat(s,"-content-").concat(i),M({},"".concat(s,"-content-animated"),d))},c.map(function(v){var g=v.key,m=v.forceRender,y=v.style,b=v.className,h=v.destroyInactiveTabPane,p=Je(v,YF),S=g===r;return u.createElement(Ei,we({key:g,visible:S,forceRender:m,removeOnLeave:!!(a||h),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(C,w){var x=C.style,E=C.className;return u.createElement(nx,we({},p,{prefixCls:f,id:n,tabKey:g,animated:d,active:S,style:F(F({},y),x),className:X(b,E),ref:w}))})})))};function ZF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=F({inkBar:!0},Be(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ez=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ly=0,tz=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,g=v===void 0?"top":v,m=e.tabBarGutter,y=e.tabBarStyle,b=e.tabBarExtraContent,h=e.locale,p=e.more,S=e.destroyInactiveTabPane,C=e.renderTabBar,w=e.onChange,x=e.onTabClick,E=e.onTabScroll,$=e.getPopupContainer,R=e.popupClassName,O=e.indicator,P=Je(e,ez),I=u.useMemo(function(){return(a||[]).filter(function(J){return J&&Be(J)==="object"&&"key"in J})},[a]),T=l==="rtl",N=ZF(f),j=u.useState(!1),L=U(j,2),A=L[0],_=L[1];u.useEffect(function(){_(Yp())},[]);var B=fr(function(){var J;return(J=I[0])===null||J===void 0?void 0:J.key},{value:s,defaultValue:c}),z=U(B,2),H=z[0],V=z[1],W=u.useState(function(){return I.findIndex(function(J){return J.key===H})}),D=U(W,2),k=D[0],K=D[1];u.useEffect(function(){var J=I.findIndex(function(te){return te.key===H});if(J===-1){var re;J=Math.max(0,Math.min(k,I.length-1)),V((re=I[J])===null||re===void 0?void 0:re.key)}K(J)},[I.map(function(J){return J.key}).join("_"),H,k]);var Z=fr(null,{value:n}),q=U(Z,2),Y=q[0],de=q[1];u.useEffect(function(){n||(de("rc-tabs-".concat(Ly)),Ly+=1)},[]);function ee(J,re){x==null||x(J,re);var te=J!==H;V(J),te&&(w==null||w(J))}var Q={id:Y,activeKey:H,animated:N,tabPosition:g,rtl:T,mobile:A},ie=F(F({},Q),{},{editable:d,locale:h,more:p,tabBarGutter:m,onTabClick:ee,onTabScroll:E,extra:b,style:y,panes:null,getPopupContainer:$,popupClassName:R,indicator:O});return u.createElement(ud.Provider,{value:{tabs:I,prefixCls:o}},u.createElement("div",we({ref:t,id:n,className:X(o,"".concat(o,"-").concat(g),M(M(M({},"".concat(o,"-mobile"),A),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),T),i)},P),u.createElement(QF,we({},ie,{renderTabBar:C})),u.createElement(JF,we({destroyInactiveTabPane:S},Q,{animated:N}))))});const nz={motionAppear:!1,motionEnter:!0,motionLeave:!0};function rz(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},nz),{motionName:B1(e,"switch")})),n}var oz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function az(e,t){if(e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=eo(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=oz(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return iz(n)}const lz=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[oc(e,"slide-up"),oc(e,"slide-down")]]},sz=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${oe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:kp(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:oe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:oe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadiusLG)} 0 0 ${oe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},uz=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Co(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${oe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},$a),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${oe(e.paddingXXS)} ${oe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},cz=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:oe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dz=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},fz=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ju(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:kp(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},vz=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:oe(e.marginXS)},marginLeft:{_skip_check_:!0,value:oe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},mz=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Co(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ju(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),fz(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ju(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},pz=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,s=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},gz=Ln("Tabs",e=>{const t=Yt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${oe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${oe(e.horizontalItemGutter)}`});return[dz(t),vz(t),cz(t),uz(t),sz(t),mz(t),lz(t)]},pz),hz=()=>null;var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,l,s,c,d,f,v;const{type:g,className:m,rootClassName:y,size:b,onEdit:h,hideAdd:p,centered:S,addIcon:C,removeIcon:w,moreIcon:x,more:E,popupClassName:$,children:R,items:O,animated:P,style:I,indicatorSize:T,indicator:N,destroyInactiveTabPane:j,destroyOnHidden:L}=e,A=yz(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:_}=A,{direction:B,tabs:z,getPrefixCls:H,getPopupContainer:V}=u.useContext(ct),W=H("tabs",_),D=Fa(W),[k,K,Z]=gz(W,D),q=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:q.current}));let Y;g==="editable-card"&&(Y={onEdit:(te,{key:ce,event:ue})=>{h==null||h(te==="add"?ue:ce,te)},removeIcon:(n=w??(z==null?void 0:z.removeIcon))!==null&&n!==void 0?n:u.createElement(Wp,null),addIcon:(C??(z==null?void 0:z.addIcon))||u.createElement(zF,null),showAdd:p!==!0});const de=H(),ee=wo(b),Q=az(O,R),ie=rz(W,P),J=Object.assign(Object.assign({},z==null?void 0:z.style),I),re={align:(r=N==null?void 0:N.align)!==null&&r!==void 0?r:(o=z==null?void 0:z.indicator)===null||o===void 0?void 0:o.align,size:(s=(a=(i=N==null?void 0:N.size)!==null&&i!==void 0?i:T)!==null&&a!==void 0?a:(l=z==null?void 0:z.indicator)===null||l===void 0?void 0:l.size)!==null&&s!==void 0?s:z==null?void 0:z.indicatorSize};return k(u.createElement(tz,Object.assign({ref:q,direction:B,getPopupContainer:V},A,{items:Q,className:X({[`${W}-${ee}`]:ee,[`${W}-card`]:["card","editable-card"].includes(g),[`${W}-editable-card`]:g==="editable-card",[`${W}-centered`]:S},z==null?void 0:z.className,m,y,K,Z,D),popupClassName:X($,K,Z,D),style:J,editable:Y,more:Object.assign({icon:(v=(f=(d=(c=z==null?void 0:z.more)===null||c===void 0?void 0:c.icon)!==null&&d!==void 0?d:z==null?void 0:z.moreIcon)!==null&&f!==void 0?f:x)!==null&&v!==void 0?v:u.createElement(yF,null),transitionName:`${de}-slide-up`},E),prefixCls:W,animated:ie,indicator:re,destroyInactiveTabPane:L??j})))}),dg=bz;dg.TabPane=hz;var Sz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=Sz(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=u.useContext(ct),a=i("card",t),l=X(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:l}))},Cz=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${oe(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},Wc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$a),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},wz=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${oe(o)} 0 0 0 ${n}, 0 ${oe(o)} 0 0 ${n}, ${oe(o)} ${oe(o)} 0 0 ${n}, ${oe(o)} 0 0 0 ${n} inset, 0 ${oe(o)} 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},xz=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},Wc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:oe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:oe(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${i}`}}})},Ez=e=>Object.assign(Object.assign({margin:`${oe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Wc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$a),"&-description":{color:e.colorTextDescription}}),$z=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${oe(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${oe(e.padding)} ${oe(o)}`}}},Rz=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Oz=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Co(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Cz(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-grid`]:wz(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:xz(e),[`${t}-meta`]:Ez(e)}),[`${t}-bordered`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:$z(e),[`${t}-loading`]:Rz(e),[`${t}-rtl`]:{direction:"rtl"}}},Pz=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${oe(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Iz=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Tz=Ln("Card",e=>{const t=Yt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Oz(t),Pz(t)]},Iz);var Fy=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{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,o))}))},Mz=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:f,variant:v,size:g,type:m,cover:y,actions:b,tabList:h,children:p,activeTabKey:S,defaultActiveTabKey:C,tabBarExtraContent:w,hoverable:x,tabProps:E={},classNames:$,styles:R}=e,O=Fy(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:I,card:T}=u.useContext(ct),[N]=od("card",v,f),j=be=>{var fe;(fe=e.onTabChange)===null||fe===void 0||fe.call(e,be)},L=be=>{var fe;return X((fe=T==null?void 0:T.classNames)===null||fe===void 0?void 0:fe[be],$==null?void 0:$[be])},A=be=>{var fe;return Object.assign(Object.assign({},(fe=T==null?void 0:T.styles)===null||fe===void 0?void 0:fe[be]),R==null?void 0:R[be])},_=u.useMemo(()=>{let be=!1;return u.Children.forEach(p,fe=>{(fe==null?void 0:fe.type)===rx&&(be=!0)}),be},[p]),B=P("card",n),[z,H,V]=Tz(B),W=u.createElement(ja,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),D=S!==void 0,k=Object.assign(Object.assign({},E),{[D?"activeKey":"defaultActiveKey"]:D?S:C,tabBarExtraContent:w});let K;const Z=wo(g),q=!Z||Z==="default"?"large":Z,Y=h?u.createElement(dg,Object.assign({size:q},k,{className:`${B}-head-tabs`,onChange:j,items:h.map(be=>{var{tab:fe}=be,xe=Fy(be,["tab"]);return Object.assign({label:fe},xe)})})):null;if(c||a||Y){const be=X(`${B}-head`,L("header")),fe=X(`${B}-head-title`,L("title")),xe=X(`${B}-extra`,L("extra")),ge=Object.assign(Object.assign({},l),A("header"));K=u.createElement("div",{className:be,style:ge},u.createElement("div",{className:`${B}-head-wrapper`},c&&u.createElement("div",{className:fe,style:A("title")},c),a&&u.createElement("div",{className:xe,style:A("extra")},a)),Y)}const de=X(`${B}-cover`,L("cover")),ee=y?u.createElement("div",{className:de,style:A("cover")},y):null,Q=X(`${B}-body`,L("body")),ie=Object.assign(Object.assign({},s),A("body")),J=u.createElement("div",{className:Q,style:ie},d?W:p),re=X(`${B}-actions`,L("actions")),te=b!=null&&b.length?u.createElement(_z,{actionClasses:re,actionStyle:A("actions"),actions:b}):null,ce=rr(O,["onTabChange"]),ue=X(B,T==null?void 0:T.className,{[`${B}-loading`]:d,[`${B}-bordered`]:N!=="borderless",[`${B}-hoverable`]:x,[`${B}-contain-grid`]:_,[`${B}-contain-tabs`]:h==null?void 0:h.length,[`${B}-${Z}`]:Z,[`${B}-type-${m}`]:!!m,[`${B}-rtl`]:I==="rtl"},r,o,H,V),pe=Object.assign(Object.assign({},T==null?void 0:T.style),i);return z(u.createElement("div",Object.assign({ref:t},ce,{className:ue,style:pe}),K,ee,J,te))});var Nz=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,avatar:r,title:o,description:i}=e,a=Nz(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(ct),s=l("card",t),c=X(`${s}-meta`,n),d=r?u.createElement("div",{className:`${s}-meta-avatar`},r):null,f=o?u.createElement("div",{className:`${s}-meta-title`},o):null,v=i?u.createElement("div",{className:`${s}-meta-description`},i):null,g=f||v?u.createElement("div",{className:`${s}-meta-detail`},f,v):null;return u.createElement("div",Object.assign({},a,{className:c}),d,g)},cd=Mz;cd.Grid=rx;cd.Meta=Lz;function Fz(e){return!!(e.addonBefore||e.addonAfter)}function zz(e){return!!(e.prefix||e.suffix||e.allowClear)}function zy(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 uc(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=zy(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=zy(t,e,r),n(o);return}n(o)}}function ox(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 ix=ne.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,d=e.addonBefore,f=e.addonAfter,v=e.className,g=e.style,m=e.disabled,y=e.readOnly,b=e.focused,h=e.triggerFocus,p=e.allowClear,S=e.value,C=e.handleReset,w=e.hidden,x=e.classes,E=e.classNames,$=e.dataAttrs,R=e.styles,O=e.components,P=e.onClear,I=a??i,T=(O==null?void 0:O.affixWrapper)||"span",N=(O==null?void 0:O.groupWrapper)||"span",j=(O==null?void 0:O.wrapper)||"span",L=(O==null?void 0:O.groupAddon)||"span",A=u.useRef(null),_=function(re){var te;(te=A.current)!==null&&te!==void 0&&te.contains(re.target)&&(h==null||h())},B=zz(e),z=u.cloneElement(I,{value:S,className:X((n=I.props)===null||n===void 0?void 0:n.className,!B&&(E==null?void 0:E.variant))||null}),H=u.useRef(null);if(ne.useImperativeHandle(t,function(){return{nativeElement:H.current||A.current}}),B){var V=null;if(p){var W=!m&&!y&&S,D="".concat(l,"-clear-icon"),k=Be(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";V=ne.createElement("button",{type:"button",tabIndex:-1,onClick:function(re){C==null||C(re),P==null||P()},onMouseDown:function(re){return re.preventDefault()},className:X(D,M(M({},"".concat(D,"-hidden"),!W),"".concat(D,"-has-suffix"),!!c))},k)}var K="".concat(l,"-affix-wrapper"),Z=X(K,M(M(M(M(M({},"".concat(l,"-disabled"),m),"".concat(K,"-disabled"),m),"".concat(K,"-focused"),b),"".concat(K,"-readonly"),y),"".concat(K,"-input-with-clear-btn"),c&&p&&S),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),q=(c||p)&&ne.createElement("span",{className:X("".concat(l,"-suffix"),E==null?void 0:E.suffix),style:R==null?void 0:R.suffix},V,c);z=ne.createElement(T,we({className:Z,style:R==null?void 0:R.affixWrapper,onClick:_},$==null?void 0:$.affixWrapper,{ref:A}),s&&ne.createElement("span",{className:X("".concat(l,"-prefix"),E==null?void 0:E.prefix),style:R==null?void 0:R.prefix},s),z,q)}if(Fz(e)){var Y="".concat(l,"-group"),de="".concat(Y,"-addon"),ee="".concat(Y,"-wrapper"),Q=X("".concat(l,"-wrapper"),Y,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),ie=X(ee,M({},"".concat(ee,"-disabled"),m),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);z=ne.createElement(N,{className:ie,ref:H},ne.createElement(j,{className:Q},d&&ne.createElement(L,{className:de},d),z,f&&ne.createElement(L,{className:de},f)))}return ne.cloneElement(z,{className:X((r=z.props)===null||r===void 0?void 0:r.className,v)||null,style:F(F({},(o=z.props)===null||o===void 0?void 0:o.style),g),hidden:w})}),Az=["show"];function ax(e,t){return u.useMemo(function(){var n={};t&&(n.show=Be(t)==="object"&&t.formatter?t.formatter:!!t),n=F(F({},n),e);var r=n,o=r.show,i=Je(r,Az);return F(F({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var jz=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Dz=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,f=e.disabled,v=e.htmlSize,g=e.className,m=e.maxLength,y=e.suffix,b=e.showCount,h=e.count,p=e.type,S=p===void 0?"text":p,C=e.classes,w=e.classNames,x=e.styles,E=e.onCompositionStart,$=e.onCompositionEnd,R=Je(e,jz),O=u.useState(!1),P=U(O,2),I=P[0],T=P[1],N=u.useRef(!1),j=u.useRef(!1),L=u.useRef(null),A=u.useRef(null),_=function(le){L.current&&ox(L.current,le)},B=fr(e.defaultValue,{value:e.value}),z=U(B,2),H=z[0],V=z[1],W=H==null?"":String(H),D=u.useState(null),k=U(D,2),K=k[0],Z=k[1],q=ax(h,b),Y=q.max||m,de=q.strategy(W),ee=!!Y&&de>Y;u.useImperativeHandle(t,function(){var ge;return{focus:_,blur:function(){var Pe;(Pe=L.current)===null||Pe===void 0||Pe.blur()},setSelectionRange:function(Pe,Fe,Ve){var ze;(ze=L.current)===null||ze===void 0||ze.setSelectionRange(Pe,Fe,Ve)},select:function(){var Pe;(Pe=L.current)===null||Pe===void 0||Pe.select()},input:L.current,nativeElement:((ge=A.current)===null||ge===void 0?void 0:ge.nativeElement)||L.current}}),u.useEffect(function(){j.current&&(j.current=!1),T(function(ge){return ge&&f?!1:ge})},[f]);var Q=function(le,Pe,Fe){var Ve=Pe;if(!N.current&&q.exceedFormatter&&q.max&&q.strategy(Pe)>q.max){if(Ve=q.exceedFormatter(Pe,{max:q.max}),Pe!==Ve){var ze,Re;Z([((ze=L.current)===null||ze===void 0?void 0:ze.selectionStart)||0,((Re=L.current)===null||Re===void 0?void 0:Re.selectionEnd)||0])}}else if(Fe.source==="compositionEnd")return;V(Ve),L.current&&uc(L.current,le,r,Ve)};u.useEffect(function(){if(K){var ge;(ge=L.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,Ce(K))}},[K]);var ie=function(le){Q(le,le.target.value,{source:"change"})},J=function(le){N.current=!1,Q(le,le.currentTarget.value,{source:"compositionEnd"}),$==null||$(le)},re=function(le){a&&le.key==="Enter"&&!j.current&&(j.current=!0,a(le)),l==null||l(le)},te=function(le){le.key==="Enter"&&(j.current=!1),s==null||s(le)},ce=function(le){T(!0),o==null||o(le)},ue=function(le){j.current&&(j.current=!1),T(!1),i==null||i(le)},pe=function(le){V(""),_(),L.current&&uc(L.current,le,r)},be=ee&&"".concat(d,"-out-of-range"),fe=function(){var le=rr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ne.createElement("input",we({autoComplete:n},le,{onChange:ie,onFocus:ce,onBlur:ue,onKeyDown:re,onKeyUp:te,className:X(d,M({},"".concat(d,"-disabled"),f),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:L,size:v,type:S,onCompositionStart:function(Fe){N.current=!0,E==null||E(Fe)},onCompositionEnd:J}))},xe=function(){var le=Number(Y)>0;if(y||q.show){var Pe=q.showFormatter?q.showFormatter({value:W,count:de,maxLength:Y}):"".concat(de).concat(le?" / ".concat(Y):"");return ne.createElement(ne.Fragment,null,q.show&&ne.createElement("span",{className:X("".concat(d,"-show-count-suffix"),M({},"".concat(d,"-show-count-has-suffix"),!!y),w==null?void 0:w.count),style:F({},x==null?void 0:x.count)},Pe),y)}return null};return ne.createElement(ix,we({},R,{prefixCls:d,className:X(g,be),handleReset:pe,value:W,focused:I,triggerFocus:_,suffix:xe(),disabled:f,classes:C,classNames:w,styles:x,ref:A}),fe())});const lx=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ne.createElement(Vp,null)}),t};function sx(e,t){const n=u.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 u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Bz(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}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:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:d,addonAfter:f,addonBefore:v,className:g,style:m,styles:y,rootClassName:b,onChange:h,classNames:p,variant:S}=e,C=kz(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:x,allowClear:E,autoComplete:$,className:R,style:O,classNames:P,styles:I}=Yo("input"),T=w("input",n),N=u.useRef(null),j=Fa(T),[L,A,_]=Yw(T,b),[B]=Jw(T,j),{compactSize:z,compactItemClassnames:H}=za(T,x),V=wo(ue=>{var pe;return(pe=i??z)!==null&&pe!==void 0?pe:ue}),W=ne.useContext(Go),D=a??W,{status:k,hasFeedback:K,feedbackIcon:Z}=u.useContext(ho),q=rd(k,o),Y=Bz(e)||!!K;u.useRef(Y);const de=sx(N,!0),ee=ue=>{de(),l==null||l(ue)},Q=ue=>{de(),s==null||s(ue)},ie=ue=>{de(),h==null||h(ue)},J=(K||c)&&ne.createElement(ne.Fragment,null,c,K&&Z),re=lx(d??E),[te,ce]=od("input",S,r);return L(B(ne.createElement(Dz,Object.assign({ref:no(t,N),prefixCls:T,autoComplete:$},C,{disabled:D,onBlur:ee,onFocus:Q,style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},I),y),suffix:J,allowClear:re,className:X(g,b,_,j,H,R),onChange:ie,addonBefore:v&&ne.createElement(mm,{form:!0,space:!0},v),addonAfter:f&&ne.createElement(mm,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),P),{input:X({[`${T}-sm`]:V==="small",[`${T}-lg`]:V==="large",[`${T}-rtl`]:x==="rtl"},p==null?void 0:p.input,P.input,A),variant:X({[`${T}-${te}`]:ce},lc(T,q)),affixWrapper:X({[`${T}-affix-wrapper-sm`]:V==="small",[`${T}-affix-wrapper-lg`]:V==="large",[`${T}-affix-wrapper-rtl`]:x==="rtl"},A),wrapper:X({[`${T}-group-rtl`]:x==="rtl"},A),groupWrapper:X({[`${T}-group-wrapper-sm`]:V==="small",[`${T}-group-wrapper-lg`]:V==="large",[`${T}-group-wrapper-rtl`]:x==="rtl",[`${T}-group-wrapper-${te}`]:ce},lc(`${T}-group-wrapper`,q,K),A)})}))))});function Ay(e){return["small","middle","large"].includes(e)}function jy(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Hz=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:a,borderRadius:s},"&-small":{paddingInline:i,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Zc(e,{focus:!1})]}},Vz=Ln(["Space","Addon"],e=>[Hz(e)]);var Wz=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{className:n,children:r,style:o,prefixCls:i}=e,a=Wz(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:s}=ne.useContext(ct),c=l("space-addon",i),[d,f,v]=Vz(c),{compactItemClassnames:g,compactSize:m}=za(c,s),y=X(c,f,g,v,{[`${c}-${m}`]:m},n);return d(ne.createElement("div",Object.assign({ref:t,className:y,style:o},a),r))}),ux=ne.createContext({latestIndex:0}),Kz=ux.Provider,Gz=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=u.useContext(ux);return n==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:e,style:o},n),t{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"}}}},Xz=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}}}},Qz=Ln("Space",e=>{const t=Yt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qz(t),Xz(t)]},()=>({}),{resetStyle:!1});var Yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:l,classNames:s,styles:c}=Yo("space"),{size:d=i??"small",align:f,className:v,rootClassName:g,children:m,direction:y="horizontal",prefixCls:b,split:h,style:p,wrap:S=!1,classNames:C,styles:w}=e,x=Yz(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,$]=Array.isArray(d)?d:[d,d],R=Ay($),O=Ay(E),P=jy($),I=jy(E),T=eo(m,{keepEmpty:!0}),N=f===void 0&&y==="horizontal"?"center":f,j=r("space",b),[L,A,_]=Qz(j),B=X(j,a,A,`${j}-${y}`,{[`${j}-rtl`]:o==="rtl",[`${j}-align-${N}`]:N,[`${j}-gap-row-${$}`]:R,[`${j}-gap-col-${E}`]:O},v,g,_),z=X(`${j}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:s.item),H=Object.assign(Object.assign({},c.item),w==null?void 0:w.item),V=T.map((k,K)=>{const Z=(k==null?void 0:k.key)||`${z}-${K}`;return u.createElement(Gz,{className:z,key:Z,index:K,split:h,style:H},k)}),W=u.useMemo(()=>({latestIndex:T.reduce((K,Z,q)=>Z!=null?q:K,0)}),[T]);if(T.length===0)return null;const D={};return S&&(D.flexWrap="wrap"),!O&&I&&(D.columnGap=E),!R&&P&&(D.rowGap=$),L(u.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},D),l),p)},x),u.createElement(Kz,{value:W},V)))}),vs=Jz;vs.Compact=mT;vs.Addon=Uz;var Zz={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"},eA=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:Zz}))},tA=u.forwardRef(eA);const nA=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ct),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s,c]=Jw(a),d=X(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),f=u.useContext(ho),v=u.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(ho.Provider,{value:v},e.children)))},rA=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},oA=Ln(["Input","OTP"],e=>{const t=Yt(e,ld(e));return rA(t)},sd);var iA=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{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,s=iA(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=u.useContext(ct),d=c("otp"),f=typeof l=="string"?l:r,v=u.useRef(null);u.useImperativeHandle(t,()=>v.current);const g=b=>{o(a,b.target.value)},m=()=>{Rt(()=>{var b;const h=(b=v.current)===null||b===void 0?void 0:b.input;document.activeElement===h&&h&&h.select()})},y=b=>{const{key:h,ctrlKey:p,metaKey:S}=b;h==="ArrowLeft"?i(a-1):h==="ArrowRight"?i(a+1):h==="z"&&(p||S)?b.preventDefault():h==="Backspace"&&!r&&i(a-1),m()};return u.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&u.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),u.createElement(dd,Object.assign({"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text"},s,{ref:v,value:r,onInput:g,onFocus:m,onKeyDown:y,onMouseDown:m,onMouseUp:m,className:X(n,{[`${d}-mask-input`]:l})})))});var lA=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{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?u.createElement("span",{className:`${n}-separator`},o):null},uA=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,separator:c,variant:d,disabled:f,status:v,autoFocus:g,mask:m,type:y,onInput:b,inputMode:h}=e,p=lA(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:C}=u.useContext(ct),w=S("otp",n),x=Ra(p,{aria:!0,data:!0,attr:!0}),[E,$,R]=oA(w),O=wo(D=>o??D),P=u.useContext(ho),I=rd(P.status,v),T=u.useMemo(()=>Object.assign(Object.assign({},P),{status:I,hasFeedback:!1,feedbackIcon:null}),[P,I]),N=u.useRef(null),j=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var D;(D=j.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let k=0;ks?s(D):D,[A,_]=u.useState(()=>qs(L(i||"")));u.useEffect(()=>{a!==void 0&&_(qs(a))},[a]);const B=an(D=>{_(D),b&&b(D),l&&D.length===r&&D.every(k=>k)&&D.some((k,K)=>A[K]!==k)&&l(D.join(""))}),z=an((D,k)=>{let K=Ce(A);for(let q=0;q=0&&!K[q];q-=1)K.pop();const Z=L(K.map(q=>q||" ").join(""));return K=qs(Z).map((q,Y)=>q===" "&&!K[Y]?K[Y]:q),K}),H=(D,k)=>{var K;const Z=z(D,k),q=Math.min(D+k.length,r-1);q!==D&&Z[D]!==void 0&&((K=j.current[q])===null||K===void 0||K.focus()),B(Z)},V=D=>{var k;(k=j.current[D])===null||k===void 0||k.focus()},W={variant:d,disabled:f,status:I,mask:m,type:y,inputMode:h};return E(u.createElement("div",Object.assign({},x,{ref:N,className:X(w,{[`${w}-sm`]:O==="small",[`${w}-lg`]:O==="large",[`${w}-rtl`]:C==="rtl"},R,$),role:"group"}),u.createElement(ho.Provider,{value:T},Array.from({length:r}).map((D,k)=>{const K=`otp-${k}`,Z=A[k]||"";return u.createElement(u.Fragment,{key:K},u.createElement(aA,Object.assign({ref:q=>{j.current[k]=q},index:k,size:O,htmlSize:1,className:`${w}-input`,onChange:H,value:Z,onActiveChange:V,autoFocus:k===0&&g},W)),ke?u.createElement(tA,null):u.createElement(fA,null),pA={click:"onClick",hover:"onMouseOver"},gA=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=mA,suffix:a}=e,l=u.useContext(Go),s=n??l,c=typeof o=="object"&&o.visible!==void 0,[d,f]=u.useState(()=>c?o.visible:!1),v=u.useRef(null);u.useEffect(()=>{c&&f(o.visible)},[c,o]);const g=sx(v),m=()=>{var P;if(s)return;d&&g();const I=!d;f(I),typeof o=="object"&&((P=o.onVisibleChange)===null||P===void 0||P.call(o,I))},y=P=>{const I=pA[r]||"",T=i(d),N={[I]:m,className:`${P}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return u.cloneElement(u.isValidElement(T)?T:u.createElement("span",null,T),N)},{className:b,prefixCls:h,inputPrefixCls:p,size:S}=e,C=vA(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=u.useContext(ct),x=w("input",p),E=w("input-password",h),$=o&&y(E),R=X(E,b,{[`${E}-${S}`]:!!S}),O=Object.assign(Object.assign({},rr(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:R,prefixCls:x,suffix:u.createElement(u.Fragment,null,$,a)});return S&&(O.size=S),u.createElement(dd,Object.assign({ref:no(t,v)},O))});var hA=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:s,loading:c,disabled:d,onSearch:f,onChange:v,onCompositionStart:g,onCompositionEnd:m,variant:y,onPressEnter:b}=e,h=hA(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:S}=u.useContext(ct),C=u.useRef(!1),w=p("input-search",n),x=p("input",r),{compactSize:E}=za(w,S),$=wo(W=>{var D;return(D=i??E)!==null&&D!==void 0?D:W}),R=u.useRef(null),O=W=>{W!=null&&W.target&&W.type==="click"&&f&&f(W.target.value,W,{source:"clear"}),v==null||v(W)},P=W=>{var D;document.activeElement===((D=R.current)===null||D===void 0?void 0:D.input)&&W.preventDefault()},I=W=>{var D,k;f&&f((k=(D=R.current)===null||D===void 0?void 0:D.input)===null||k===void 0?void 0:k.value,W,{source:"input"})},T=W=>{C.current||c||(b==null||b(W),I(W))},N=typeof l=="boolean"?u.createElement(Ew,null):null,j=`${w}-button`;let L;const A=l||{},_=A.type&&A.type.__ANT_BUTTON===!0;_||A.type==="button"?L=tc(A,Object.assign({onMouseDown:P,onClick:W=>{var D,k;(k=(D=A==null?void 0:A.props)===null||D===void 0?void 0:D.onClick)===null||k===void 0||k.call(D,W),I(W)},key:"enterButton"},_?{className:j,size:$}:{})):L=u.createElement(ls,{className:j,color:l?"primary":"default",size:$,disabled:d,key:"enterButton",onMouseDown:P,onClick:I,loading:c,icon:N,variant:y==="borderless"||y==="filled"||y==="underlined"?"text":l?"solid":void 0},l),s&&(L=[L,tc(s,{key:"addonAfter"})]);const B=X(w,{[`${w}-rtl`]:S==="rtl",[`${w}-${$}`]:!!$,[`${w}-with-button`]:!!l},o),z=W=>{C.current=!0,g==null||g(W)},H=W=>{C.current=!1,m==null||m(W)},V=Object.assign(Object.assign({},h),{className:B,prefixCls:x,type:"search",size:$,variant:y,onPressEnter:T,onCompositionStart:z,onCompositionEnd:H,addonAfter:L,suffix:a,onChange:O,disabled:d});return u.createElement(dd,Object.assign({ref:no(R,t)},V))});var bA=` 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; `,SA=["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"],wf={},lr;function CA(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&&wf[n])return wf[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=SA.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wf[n]=s),s}function wA(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;lr||(lr=document.createElement("textarea"),lr.setAttribute("tab-index","-1"),lr.setAttribute("aria-hidden","true"),lr.setAttribute("name","hiddenTextarea"),document.body.appendChild(lr)),e.getAttribute("wrap")?lr.setAttribute("wrap",e.getAttribute("wrap")):lr.removeAttribute("wrap");var o=CA(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;lr.setAttribute("style","".concat(s,";").concat(bA)),lr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=lr.scrollHeight;if(l==="border-box"?v+=a:l==="content-box"&&(v-=i),n!==null||r!==null){lr.value=" ";var g=lr.scrollHeight-i;n!==null&&(c=g*n,l==="border-box"&&(c=c+i+a),v=Math.max(c,v)),r!==null&&(d=g*r,l==="border-box"&&(d=d+i+a),f=v>d?"":"hidden",v=Math.min(d,v))}var m={height:v,overflowY:f,resize:"none"};return c&&(m.minHeight=c),d&&(m.maxHeight=d),m}var xA=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xf=0,Ef=1,$f=2,EA=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var v=Je(n,xA),g=fr(o,{value:i,postState:function(W){return W??""}}),m=U(g,2),y=m[0],b=m[1],h=function(W){b(W.target.value),f==null||f(W)},p=u.useRef();u.useImperativeHandle(t,function(){return{textArea:p.current}});var S=u.useMemo(function(){return a&&Be(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=U(S,2),w=C[0],x=C[1],E=!!a,$=u.useState($f),R=U($,2),O=R[0],P=R[1],I=u.useState(),T=U(I,2),N=T[0],j=T[1],L=function(){P(xf)};Dt(function(){E&&L()},[i,w,x,E]),Dt(function(){if(O===xf)P(Ef);else if(O===Ef){var V=wA(p.current,!1,w,x);P($f),j(V)}},[O]);var A=u.useRef(),_=function(){Rt.cancel(A.current)},B=function(W){O===$f&&(l==null||l(W),a&&(_(),A.current=Rt(function(){L()})))};u.useEffect(function(){return _},[]);var z=E?N:null,H=F(F({},c),z);return(O===xf||O===Ef)&&(H.overflowY="hidden",H.overflowX="hidden"),u.createElement(Ar,{onResize:B,disabled:!(a||l)},u.createElement("textarea",we({},v,{ref:p,style:H,className:X(r,s,M({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:h})))}),$A=["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"],RA=ne.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,m=g===void 0?"rc-textarea":g,y=e.showCount,b=e.count,h=e.className,p=e.style,S=e.disabled,C=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,$=e.onClear,R=e.onPressEnter,O=e.readOnly,P=e.autoSize,I=e.onKeyDown,T=Je(e,$A),N=fr(r,{value:o,defaultValue:r}),j=U(N,2),L=j[0],A=j[1],_=L==null?"":String(L),B=ne.useState(!1),z=U(B,2),H=z[0],V=z[1],W=ne.useRef(!1),D=ne.useState(null),k=U(D,2),K=k[0],Z=k[1],q=u.useRef(null),Y=u.useRef(null),de=function(){var he;return(he=Y.current)===null||he===void 0?void 0:he.textArea},ee=function(){de().focus()};u.useImperativeHandle(t,function(){var ke;return{resizableTextArea:Y.current,focus:ee,blur:function(){de().blur()},nativeElement:((ke=q.current)===null||ke===void 0?void 0:ke.nativeElement)||de()}}),u.useEffect(function(){V(function(ke){return!S&&ke})},[S]);var Q=ne.useState(null),ie=U(Q,2),J=ie[0],re=ie[1];ne.useEffect(function(){if(J){var ke;(ke=de()).setSelectionRange.apply(ke,Ce(J))}},[J]);var te=ax(b,y),ce=(n=te.max)!==null&&n!==void 0?n:c,ue=Number(ce)>0,pe=te.strategy(_),be=!!ce&&pe>ce,fe=function(he,Ie){var qe=Ie;!W.current&&te.exceedFormatter&&te.max&&te.strategy(Ie)>te.max&&(qe=te.exceedFormatter(Ie,{max:te.max}),Ie!==qe&&re([de().selectionStart||0,de().selectionEnd||0])),A(qe),uc(he.currentTarget,he,l,qe)},xe=function(he){W.current=!0,d==null||d(he)},ge=function(he){W.current=!1,fe(he,he.currentTarget.value),f==null||f(he)},le=function(he){fe(he,he.target.value)},Pe=function(he){he.key==="Enter"&&R&&R(he),I==null||I(he)},Fe=function(he){V(!0),i==null||i(he)},Ve=function(he){V(!1),a==null||a(he)},ze=function(he){A(""),ee(),uc(de(),he,l)},Re=v,We;te.show&&(te.showFormatter?We=te.showFormatter({value:_,count:pe,maxLength:ce}):We="".concat(pe).concat(ue?" / ".concat(ce):""),Re=ne.createElement(ne.Fragment,null,Re,ne.createElement("span",{className:X("".concat(m,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},We)));var Ue=function(he){var Ie;E==null||E(he),(Ie=de())!==null&&Ie!==void 0&&Ie.style.height&&Z(!0)},ot=!P&&!y&&!s;return ne.createElement(ix,{ref:q,value:_,allowClear:s,handleReset:ze,suffix:Re,prefixCls:m,classNames:F(F({},w),{},{affixWrapper:X(w==null?void 0:w.affixWrapper,M(M({},"".concat(m,"-show-count"),y),"".concat(m,"-textarea-allow-clear"),s))}),disabled:S,focused:H,className:X(h,be&&"".concat(m,"-out-of-range")),style:F(F({},p),K&&!ot?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof We=="string"?We:void 0}},hidden:C,readOnly:O,onClear:$},ne.createElement(EA,we({},T,{autoSize:P,maxLength:c,onKeyDown:Pe,onChange:le,onFocus:Fe,onBlur:Ve,onCompositionStart:xe,onCompositionEnd:ge,className:X(w==null?void 0:w.textarea),style:F(F({},x==null?void 0:x.textarea),{},{resize:p==null?void 0:p.resize}),disabled:S,prefixCls:m,onResize:Ue,ref:Y,readOnly:O})))});const OA=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},PA=Ln(["Input","TextArea"],e=>{const t=Yt(e,ld(e));return OA(t)},sd,{resetFont:!1});var IA=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,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,style:v,styles:g,variant:m,showCount:y,onMouseDown:b,onResize:h}=e,p=IA(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:w,autoComplete:x,className:E,style:$,classNames:R,styles:O}=Yo("textArea"),P=u.useContext(Go),I=a??P,{status:T,hasFeedback:N,feedbackIcon:j}=u.useContext(ho),L=rd(T,l),A=u.useRef(null);u.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=A.current)===null||te===void 0?void 0:te.resizableTextArea,focus:ce=>{var ue,pe;ox((pe=(ue=A.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ce)},blur:()=>{var ce;return(ce=A.current)===null||ce===void 0?void 0:ce.blur()}}});const _=S("input",r),B=Fa(_),[z,H,V]=Yw(_,d),[W]=PA(_,B),{compactSize:D,compactItemClassnames:k}=za(_,C),K=wo(te=>{var ce;return(ce=i??D)!==null&&ce!==void 0?ce:te}),[Z,q]=od("textArea",m,o),Y=lx(s??w),[de,ee]=u.useState(!1),[Q,ie]=u.useState(!1),J=te=>{ee(!0),b==null||b(te);const ce=()=>{ee(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},re=te=>{var ce,ue;if(h==null||h(te),de&&typeof getComputedStyle=="function"){const pe=(ue=(ce=A.current)===null||ce===void 0?void 0:ce.nativeElement)===null||ue===void 0?void 0:ue.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&ie(!0)}};return z(W(u.createElement(RA,Object.assign({autoComplete:x},p,{style:Object.assign(Object.assign({},$),v),styles:Object.assign(Object.assign({},O),g),disabled:I,allowClear:Y,className:X(V,B,f,d,k,E,Q&&`${_}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),R),{textarea:X({[`${_}-sm`]:K==="small",[`${_}-lg`]:K==="large"},H,c==null?void 0:c.textarea,R.textarea,de&&`${_}-mouse-active`),variant:X({[`${_}-${Z}`]:q},lc(_,L)),affixWrapper:X(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:C==="rtl",[`${_}-affix-wrapper-sm`]:K==="small",[`${_}-affix-wrapper-lg`]:K==="large",[`${_}-textarea-show-count`]:y||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:_,suffix:N&&u.createElement("span",{className:`${_}-textarea-suffix`},j),showCount:y,ref:A,onResize:re,onMouseDown:J}))))}),Oi=dd;Oi.Group=nA;Oi.Search=yA;Oi.TextArea=TA;Oi.Password=gA;Oi.OTP=uA;function _A(e,t,n){return typeof n=="boolean"?n:e.length?!0:eo(t).some(o=>o.type===Ww)}var cx=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);ou.forwardRef((i,a)=>u.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},i)))}const fg=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=cx(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=u.useContext(ct),s=l("layout",n),[c,d,f]=Hw(s),v=r?`${s}-${r}`:s;return c(u.createElement(i,Object.assign({className:X(n||v,o,d,f),ref:t},a)))}),MA=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(ct),[r,o]=u.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:d,style:f}=e,v=cx(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=rr(v,["suffixCls"]),{getPrefixCls:m,className:y,style:b}=Yo("layout"),h=m("layout",i),p=_A(r,s,c),[S,C,w]=Hw(h),x=X(h,{[`${h}-has-sider`]:p,[`${h}-rtl`]:n==="rtl"},y,a,l,C,w),E=u.useMemo(()=>({siderHook:{addSider:$=>{o(R=>[].concat(Ce(R),[$]))},removeSider:$=>{o(R=>R.filter(O=>O!==$))}}}),[]);return S(u.createElement(Dw.Provider,{value:E},u.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},b),f)},g),s)))}),NA=fd({tagName:"div",displayName:"Layout"})(MA),LA=fd({suffixCls:"header",tagName:"header",displayName:"Header"})(fg),FA=fd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(fg),zA=fd({suffixCls:"content",tagName:"main",displayName:"Content"})(fg),Pi=NA;Pi.Header=LA;Pi.Footer=FA;Pi.Content=zA;Pi.Sider=Ww;Pi._InternalSiderContext=Vw;let br=null,si=e=>e(),Yl=[],Jl={};function Dy(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Jl,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const AA=ne.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(ct),i=Jl.prefixCls||o("message"),a=u.useContext(GM),[l,s]=z1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return ne.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(d=>{c[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:c,sync:r}}),s}),jA=ne.forwardRef((e,t)=>{const[n,r]=ne.useState(Dy),o=()=>{r(Dy)};ne.useEffect(o,[]);const i=FP(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=ne.createElement(AA,{ref:t,sync:o,messageConfig:n});return ne.createElement($i,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}),vd=()=>{if(!br){const e=document.createDocumentFragment(),t={fragment:e};br=t,si(()=>{D1()(ne.createElement(jA,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,vd())})}}),e)});return}br.instance&&(Yl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{si(()=>{const r=br.instance.open(Object.assign(Object.assign({},Jl),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":si(()=>{br==null||br.instance.destroy(e.key)});break;default:si(()=>{var r;const o=(r=br.instance)[t].apply(r,Ce(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Yl=[])};function DA(e){Jl=Object.assign(Object.assign({},Jl),e),si(()=>{var t;(t=br==null?void 0:br.sync)===null||t===void 0||t.call(br)})}function BA(e){const t=Kp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Yl.push(o),()=>{r?si(()=>{r()}):o.skipped=!0}});return vd(),t}function kA(e,t){const n=Kp(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Yl.push(i),()=>{o?si(()=>{o()}):i.skipped=!0}});return vd(),n}const HA=e=>{Yl.push({type:"destroy",key:e}),vd()},VA=["success","info","warning","error","loading"],WA={open:BA,destroy:HA,config:DA,useMessage:HI,_InternalPanelDoNotUseOrYouWillBeFired:LI},Rm=WA;VA.forEach(e=>{Rm[e]=(...t)=>kA(e,t)});const UA=5e3,KA=e=>{const[t,n]=u.useState([]),[r,o]=u.useState(!1),i=u.useRef(null),a=u.useRef(null),l=()=>{i.current&&i.current.close();const c=new EventSource(e);i.current=c,o(!0),c.onmessage=d=>{const f=JSON.parse(d.data);n(v=>[...v,f].slice(-2e3))},c.onerror=()=>{console.error("SSE Error: Conexão perdida"),o(!1),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{var d;((d=i.current)==null?void 0:d.readyState)===EventSource.CLOSED&&l()},UA)}};return u.useEffect(()=>(l(),()=>{i.current&&i.current.close(),a.current&&clearTimeout(a.current)}),[e]),{logs:t,isConnected:r,addInitialLogs:c=>{n(d=>[...c,...d].slice(-2e3))}}},Ir=e=>{const t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'\/]/g,n=>t[n])},dx=({line:e,format:t})=>{let n=Ir(e);switch(t){case"json":try{const a=JSON.parse(e);n=Object.keys(a).map(l=>`${Ir(l)}: ${Ir(String(a[l]))}`).join(" ")}catch{}break;case"apache":const o=/^(\S+) \S+ \S+ \[([\w:/]+\s[+\-]\d{4})\] "(\S+) (\S+) (\S+)" (\d{3}) (\d+|-)/.exec(e);o&&(n=`${Ir(o[1])} - - [${Ir(o[2])}] "${Ir(o[3])} ${Ir(o[4])} ${Ir(o[5])}" ${Ir(o[6])} ${Ir(o[7])}`);break;default:const i=/\b(INFO|WARN|ERROR|DEBUG|FATAL)\b/gi;n=n.replace(i,a=>`${Ir(a)}`)}return xt.jsx("div",{className:"log-line",dangerouslySetInnerHTML:{__html:n}})},By=({title:e,logs:t,filename:n})=>{const[r,o]=u.useState(""),[i,a]=u.useState("generic"),[l,s]=u.useState(!0),c=u.useMemo(()=>n?t.filter(v=>v.filename===n):t,[t,n]),d=u.useMemo(()=>{if(!r)return c;const v=r.toLowerCase();return c.filter(g=>g.line.toLowerCase().includes(v))},[c,r]),f=u.useRef(null);return u.useEffect(()=>{l&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[d,l]),xt.jsxs(cd,{title:e,size:"small",style:{height:"100%"},bodyStyle:{padding:0,height:"calc(100% - 57px)"},children:[xt.jsxs(vs,{style:{padding:"8px",borderBottom:"1px solid #333"},children:[xt.jsxs(so,{value:i,onChange:a,style:{width:120},children:[xt.jsx(so.Option,{value:"generic",children:"Genérico"}),xt.jsx(so.Option,{value:"json",children:"JSON"}),xt.jsx(so.Option,{value:"apache",children:"Apache"})]}),xt.jsx(Oi,{placeholder:"Filtrar...",value:r,onChange:v=>o(v.target.value),style:{width:200}}),xt.jsxs(ls,{type:l?"primary":"default",size:"small",onClick:()=>s(!l),children:["Auto Scroll: ",l?"ON":"OFF"]})]}),xt.jsxs("div",{className:"log-output",children:[d.map((v,g)=>xt.jsx(dx,{line:v.line,format:i},`${v.filename}-${g}`)),xt.jsx("div",{ref:f})]})]})},GA=({logs:e})=>{const[t,n]=u.useState(""),[r,o]=u.useState(!0),i=u.useMemo(()=>{const l=[...e].sort((c,d)=>c.timestamp?d.timestamp?c.timestamp.localeCompare(d.timestamp):-1:1);if(!t)return l;const s=t.toLowerCase();return l.filter(c=>c.line.toLowerCase().includes(s))},[e,t]),a=u.useRef(null);return u.useEffect(()=>{r&&a.current&&a.current.scrollIntoView({behavior:"smooth"})},[i,r]),xt.jsxs(cd,{title:"🔀 Mesclado",size:"small",style:{height:"100%"},bodyStyle:{padding:0,height:"calc(100% - 57px)"},children:[xt.jsxs(vs.Compact,{style:{margin:"8px",width:"calc(100% - 16px)"},children:[xt.jsx(Oi,{placeholder:"Filtrar logs mesclados...",value:t,onChange:l=>n(l.target.value),style:{flex:1}}),xt.jsxs(ls,{type:r?"primary":"default",size:"small",onClick:()=>o(!r),children:["Auto Scroll: ",r?"ON":"OFF"]})]}),xt.jsxs("div",{className:"log-output",children:[i.map((l,s)=>xt.jsx(dx,{line:l.line,format:"generic"},`merged-${l.filename}-${s}`)),xt.jsx("div",{ref:a})]})]})};function fx(e,t){return function(){return e.apply(t,arguments)}}const{toString:qA}=Object.prototype,{getPrototypeOf:vg}=Object,{iterator:md,toStringTag:vx}=Symbol,pd=(e=>t=>{const n=qA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>pd(t)===e),gd=e=>t=>typeof t===e,{isArray:Da}=Array,Pa=gd("undefined");function ms(e){return e!==null&&!Pa(e)&&e.constructor!==null&&!Pa(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mx=Hr("ArrayBuffer");function XA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mx(e.buffer),t}const QA=gd("string"),er=gd("function"),px=gd("number"),ps=e=>e!==null&&typeof e=="object",YA=e=>e===!0||e===!1,Su=e=>{if(pd(e)!=="object")return!1;const t=vg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vx in e)&&!(md in e)},JA=e=>{if(!ps(e)||ms(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ZA=Hr("Date"),e3=Hr("File"),t3=Hr("Blob"),n3=Hr("FileList"),r3=e=>ps(e)&&er(e.pipe),o3=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((t=pd(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},i3=Hr("URLSearchParams"),[a3,l3,s3,u3]=["ReadableStream","Request","Response","Headers"].map(Hr),c3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Da(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hx=e=>!Pa(e)&&e!==ui;function Om(){const{caseless:e,skipUndefined:t}=hx(this)&&this||{},n={},r=(o,i)=>{const a=e&&gx(n,i)||i;Su(n[a])&&Su(o)?n[a]=Om(n[a],o):Su(o)?n[a]=Om({},o):Da(o)?n[a]=o.slice():(!t||!Pa(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o(gs(t,(o,i)=>{n&&er(o)?e[i]=fx(o,n):e[i]=o},{allOwnKeys:r}),e),f3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),v3=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},m3=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&vg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},p3=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},g3=e=>{if(!e)return null;if(Da(e))return e;let t=e.length;if(!px(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},h3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vg(Uint8Array)),y3=(e,t)=>{const r=(e&&e[md]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},b3=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S3=Hr("HTMLFormElement"),C3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ky=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),w3=Hr("RegExp"),yx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gs(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},x3=e=>{yx(e,(t,n)=>{if(er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},E3=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Da(e)?r(e):r(String(e).split(t)),n},$3=()=>{},R3=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function O3(e){return!!(e&&er(e.append)&&e[vx]==="FormData"&&e[md])}const P3=e=>{const t=new Array(10),n=(r,o)=>{if(ps(r)){if(t.indexOf(r)>=0)return;if(ms(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Da(r)?[]:{};return gs(r,(a,l)=>{const s=n(a,o+1);!Pa(s)&&(i[l]=s)}),t[o]=void 0,i}}return r};return n(e,0)},I3=Hr("AsyncFunction"),T3=e=>e&&(ps(e)||er(e))&&er(e.then)&&er(e.catch),bx=((e,t)=>e?setImmediate:t?((n,r)=>(ui.addEventListener("message",({source:o,data:i})=>{o===ui&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ui.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er(ui.postMessage)),_3=typeof queueMicrotask<"u"?queueMicrotask.bind(ui):typeof process<"u"&&process.nextTick||bx,M3=e=>e!=null&&er(e[md]),G={isArray:Da,isArrayBuffer:mx,isBuffer:ms,isFormData:o3,isArrayBufferView:XA,isString:QA,isNumber:px,isBoolean:YA,isObject:ps,isPlainObject:Su,isEmptyObject:JA,isReadableStream:a3,isRequest:l3,isResponse:s3,isHeaders:u3,isUndefined:Pa,isDate:ZA,isFile:e3,isBlob:t3,isRegExp:w3,isFunction:er,isStream:r3,isURLSearchParams:i3,isTypedArray:h3,isFileList:n3,forEach:gs,merge:Om,extend:d3,trim:c3,stripBOM:f3,inherits:v3,toFlatObject:m3,kindOf:pd,kindOfTest:Hr,endsWith:p3,toArray:g3,forEachEntry:y3,matchAll:b3,isHTMLForm:S3,hasOwnProperty:ky,hasOwnProp:ky,reduceDescriptors:yx,freezeMethods:x3,toObjectSet:E3,toCamelCase:C3,noop:$3,toFiniteNumber:R3,findKey:gx,global:ui,isContextDefined:hx,isSpecCompliantForm:O3,toJSONObject:P3,isAsyncFn:I3,isThenable:T3,setImmediate:bx,asap:_3,isIterable:M3};function tt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Sx=tt.prototype,Cx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cx[e]={value:e}});Object.defineProperties(tt,Cx);Object.defineProperty(Sx,"isAxiosError",{value:!0});tt.from=(e,t,n,r,o,i)=>{const a=Object.create(Sx);G.toFlatObject(e,a,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",s=t==null&&e?e.code:t;return tt.call(a,l,s,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const N3=null;function Pm(e){return G.isPlainObject(e)||G.isArray(e)}function wx(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Hy(e,t,n){return e?e.concat(t).map(function(o,i){return o=wx(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function L3(e){return G.isArray(e)&&!e.some(Pm)}const F3=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function hd(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!G.isUndefined(b[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(G.isDate(m))return m.toISOString();if(G.isBoolean(m))return m.toString();if(!s&&G.isBlob(m))throw new tt("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(m)||G.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,y,b){let h=m;if(m&&!b&&typeof m=="object"){if(G.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(G.isArray(m)&&L3(m)||(G.isFileList(m)||G.endsWith(y,"[]"))&&(h=G.toArray(m)))return y=wx(y),h.forEach(function(S,C){!(G.isUndefined(S)||S===null)&&t.append(a===!0?Hy([y],C,i):a===null?y:y+"[]",c(S))}),!1}return Pm(m)?!0:(t.append(Hy(b,y,i),c(m)),!1)}const f=[],v=Object.assign(F3,{defaultVisitor:d,convertValue:c,isVisitable:Pm});function g(m,y){if(!G.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),G.forEach(m,function(h,p){(!(G.isUndefined(h)||h===null)&&o.call(t,h,G.isString(p)?p.trim():p,y,v))===!0&&g(h,y?y.concat(p):[p])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Vy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mg(e,t){this._pairs=[],e&&hd(e,this,t)}const xx=mg.prototype;xx.append=function(t,n){this._pairs.push([t,n])};xx.toString=function(t){const n=t?function(r){return t.call(this,r,Vy)}:Vy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function z3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ex(e,t,n){if(!t)return e;const r=n&&n.encode||z3;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=G.isURLSearchParams(t)?t.toString():new mg(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Wy{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $x={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A3=typeof URLSearchParams<"u"?URLSearchParams:mg,j3=typeof FormData<"u"?FormData:null,D3=typeof Blob<"u"?Blob:null,B3={isBrowser:!0,classes:{URLSearchParams:A3,FormData:j3,Blob:D3},protocols:["http","https","file","blob","url","data"]},pg=typeof window<"u"&&typeof document<"u",Im=typeof navigator=="object"&&navigator||void 0,k3=pg&&(!Im||["ReactNative","NativeScript","NS"].indexOf(Im.product)<0),H3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",V3=pg&&window.location.href||"http://localhost",W3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pg,hasStandardBrowserEnv:k3,hasStandardBrowserWebWorkerEnv:H3,navigator:Im,origin:V3},Symbol.toStringTag,{value:"Module"})),Tn={...W3,...B3};function U3(e,t){return hd(e,new Tn.classes.URLSearchParams,{visitor:function(n,r,o,i){return Tn.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function K3(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function G3(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&G.isArray(o)?o.length:a,s?(G.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!G.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&G.isArray(o[a])&&(o[a]=G3(o[a])),!l)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,o)=>{t(K3(r),o,n,0)}),n}return null}function q3(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const hs={transitional:$x,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(t);if(i&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return o?JSON.stringify(Rx(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U3(t,this.formSerializer).toString();if((l=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return hd(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),q3(t)):t}],transformResponse:[function(t){const n=this.transitional||hs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?tt.from(l,tt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tn.classes.FormData,Blob:Tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const X3=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Q3=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&X3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uy=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function Cu(e){return e===!1||e==null?e:G.isArray(e)?e.map(Cu):String(e)}function Y3(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const J3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rf(e,t,n,r,o){if(G.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function Z3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ej(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,c){const d=tl(s);if(!d)throw new Error("header name must be a non-empty string");const f=G.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||s]=Cu(l))}const a=(l,s)=>G.forEach(l,(c,d)=>i(c,d,s));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!J3(t))a(Q3(t),n);else if(G.isObject(t)&&G.isIterable(t)){let l={},s,c;for(const d of t){if(!G.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(s=l[c])?G.isArray(s)?[...s,d[1]]:[s,d[1]]:d[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=tl(t),t){const r=G.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Y3(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=tl(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=tl(a),a){const l=G.findKey(r,a);l&&(!n||Rf(r,r[l],l,n))&&(delete r[l],o=!0)}}return G.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Rf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return G.forEach(this,(o,i)=>{const a=G.findKey(r,i);if(a){n[a]=Cu(o),delete n[i];return}const l=t?Z3(i):String(i).trim();l!==i&&delete n[i],n[l]=Cu(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Uy]=this[Uy]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=tl(a);r[l]||(ej(o,a),r[l]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(tr);function Of(e,t){const n=this||hs,r=t||n,o=tr.from(r.headers);let i=r.data;return G.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function Ba(e,t,n){tt.call(this,e??"canceled",tt.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Ba,tt,{__CANCEL__:!0});function Px(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),d=r[i];a||(a=c),n[o]=s,r[o]=c;let f=i,v=0;for(;f!==o;)v+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=d,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?a(c,d):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const cc=(e,t,n=3)=>{let r=0;const o=nj(50,250);return rj(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-r,c=o(s),d=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Ky=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gy=e=>(...t)=>G.asap(()=>e(...t)),oj=Tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tn.origin),Tn.navigator&&/(msie|trident)/i.test(Tn.navigator.userAgent)):()=>!0,ij=Tn.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];G.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),G.isString(r)&&l.push(`path=${r}`),G.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),G.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function aj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ix(e,t,n){let r=!aj(t);return e&&(r||n==!1)?lj(e,t):t}const qy=e=>e instanceof tr?{...e}:e;function bi(e,t){t=t||{};const n={};function r(c,d,f,v){return G.isPlainObject(c)&&G.isPlainObject(d)?G.merge.call({caseless:v},c,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function o(c,d,f,v){if(G.isUndefined(d)){if(!G.isUndefined(c))return r(void 0,c,f,v)}else return r(c,d,f,v)}function i(c,d){if(!G.isUndefined(d))return r(void 0,d)}function a(c,d){if(G.isUndefined(d)){if(!G.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d,f)=>o(qy(c),qy(d),f,!0)};return G.forEach(Object.keys({...e,...t}),function(d){const f=s[d]||o,v=f(e[d],t[d],d);G.isUndefined(v)&&f!==l||(n[d]=v)}),n}const Tx=e=>{const t=bi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=tr.from(a),t.url=Ex(Ix(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(n)){if(Tn.hasStandardBrowserEnv||Tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const s=n.getHeaders(),c=["content-type","content-length"];Object.entries(s).forEach(([d,f])=>{c.includes(d.toLowerCase())&&a.set(d,f)})}}if(Tn.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||r!==!1&&oj(t.url))){const s=o&&i&&ij.read(i);s&&a.set(o,s)}return t},sj=typeof XMLHttpRequest<"u",uj=sj&&function(e){return new Promise(function(n,r){const o=Tx(e);let i=o.data;const a=tr.from(o.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:c}=o,d,f,v,g,m;function y(){g&&g(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function h(){if(!b)return;const S=tr.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:e,request:b};Px(function(E){n(E),y()},function(E){r(E),y()},w),b=null}"onloadend"in b?b.onloadend=h:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(h)},b.onabort=function(){b&&(r(new tt("Request aborted",tt.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){const w=C&&C.message?C.message:"Network Error",x=new tt(w,tt.ERR_NETWORK,e,b);x.event=C||null,r(x),b=null},b.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||$x;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new tt(C,w.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&G.forEach(a.toJSON(),function(C,w){b.setRequestHeader(w,C)}),G.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),c&&([v,m]=cc(c,!0),b.addEventListener("progress",v)),s&&b.upload&&([f,g]=cc(s),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=S=>{b&&(r(!S||S.type?new Ba(null,e,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const p=tj(o.url);if(p&&Tn.protocols.indexOf(p)===-1){r(new tt("Unsupported protocol "+p+":",tt.ERR_BAD_REQUEST,e));return}b.send(i||null)})},cj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,l();const d=c instanceof Error?c:this.reason;r.abort(d instanceof tt?d:new Ba(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>G.asap(l),s}},dj=function*(e,t){let n=e.byteLength;if(n{const o=fj(e,t);let i=0,a,l=s=>{a||(a=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:c,value:d}=await o.next();if(c){l(),s.close();return}let f=d.byteLength;if(n){let v=i+=f;n(v)}s.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(s){return l(s),o.return()}},{highWaterMark:2})},Qy=64*1024,{isFunction:Xs}=G,mj=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:Yy,TextEncoder:Jy}=G.global,Zy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pj=e=>{e=G.merge.call({skipUndefined:!0},mj,e);const{fetch:t,Request:n,Response:r}=e,o=t?Xs(t):typeof fetch=="function",i=Xs(n),a=Xs(r);if(!o)return!1;const l=o&&Xs(Yy),s=o&&(typeof Jy=="function"?(m=>y=>m.encode(y))(new Jy):async m=>new Uint8Array(await new n(m).arrayBuffer())),c=i&&l&&Zy(()=>{let m=!1;const y=new n(Tn.origin,{body:new Yy,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),d=a&&l&&Zy(()=>G.isReadableStream(new r("").body)),f={stream:d&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(y,b)=>{let h=y&&y[m];if(h)return h.call(y);throw new tt(`Response type '${m}' is not supported`,tt.ERR_NOT_SUPPORT,b)})});const v=async m=>{if(m==null)return 0;if(G.isBlob(m))return m.size;if(G.isSpecCompliantForm(m))return(await new n(Tn.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(G.isArrayBufferView(m)||G.isArrayBuffer(m))return m.byteLength;if(G.isURLSearchParams(m)&&(m=m+""),G.isString(m))return(await s(m)).byteLength},g=async(m,y)=>{const b=G.toFiniteNumber(m.getContentLength());return b??v(y)};return async m=>{let{url:y,method:b,data:h,signal:p,cancelToken:S,timeout:C,onDownloadProgress:w,onUploadProgress:x,responseType:E,headers:$,withCredentials:R="same-origin",fetchOptions:O}=Tx(m),P=t||fetch;E=E?(E+"").toLowerCase():"text";let I=cj([p,S&&S.toAbortSignal()],C),T=null;const N=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let j;try{if(x&&c&&b!=="get"&&b!=="head"&&(j=await g($,h))!==0){let H=new n(y,{method:"POST",body:h,duplex:"half"}),V;if(G.isFormData(h)&&(V=H.headers.get("content-type"))&&$.setContentType(V),H.body){const[W,D]=Ky(j,cc(Gy(x)));h=Xy(H.body,Qy,W,D)}}G.isString(R)||(R=R?"include":"omit");const L=i&&"credentials"in n.prototype,A={...O,signal:I,method:b.toUpperCase(),headers:$.normalize().toJSON(),body:h,duplex:"half",credentials:L?R:void 0};T=i&&new n(y,A);let _=await(i?P(T,O):P(y,A));const B=d&&(E==="stream"||E==="response");if(d&&(w||B&&N)){const H={};["status","statusText","headers"].forEach(k=>{H[k]=_[k]});const V=G.toFiniteNumber(_.headers.get("content-length")),[W,D]=w&&Ky(V,cc(Gy(w),!0))||[];_=new r(Xy(_.body,Qy,W,()=>{D&&D(),N&&N()}),H)}E=E||"text";let z=await f[G.findKey(f,E)||"text"](_,m);return!B&&N&&N(),await new Promise((H,V)=>{Px(H,V,{data:z,headers:tr.from(_.headers),status:_.status,statusText:_.statusText,config:m,request:T})})}catch(L){throw N&&N(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,m,T),{cause:L.cause||L}):tt.from(L,L&&L.code,m,T)}}},gj=new Map,_x=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,l=a,s,c,d=gj;for(;l--;)s=i[l],c=d.get(s),c===void 0&&d.set(s,c=l?new Map:pj(t)),d=c;return c};_x();const gg={http:N3,xhr:uj,fetch:{get:_x}};G.forEach(gg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eb=e=>`- ${e}`,hj=e=>G.isFunction(e)||e===null||e===!1;function yj(e,t){e=G.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since : `+a.map(eb).join(` `):" "+eb(a[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const Mx={getAdapter:yj,adapters:gg};function Pf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ba(null,e)}function tb(e){return Pf(e),e.headers=tr.from(e.headers),e.data=Of.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mx.getAdapter(e.adapter||hs.adapter,e)(e).then(function(r){return Pf(e),r.data=Of.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return Ox(r)||(Pf(e),r&&r.response&&(r.response.data=Of.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const Nx="1.13.2",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nb={};yd.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Nx+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new tt(o(a," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!nb[a]&&(nb[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};yd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bj(e,t,n){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new tt("option "+i+" must be "+s,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const wu={assertOptions:bj,validators:yd},Kr=wu.validators;let vi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Wy,response:new Wy}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&wu.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:wu.assertOptions(o,{encode:Kr.function,serialize:Kr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wu.assertOptions(n,{baseUrl:Kr.spelling("baseURL"),withXsrfToken:Kr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=tr.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(s=s&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,f=0,v;if(!s){const m=[tb.bind(this),void 0];for(m.unshift(...l),m.push(...c),v=m.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Ba(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lx(function(o){t=o}),cancel:t}}};function Cj(e){return function(n){return e.apply(null,n)}}function wj(e){return G.isObject(e)&&e.isAxiosError===!0}const Tm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tm).forEach(([e,t])=>{Tm[t]=e});function Fx(e){const t=new vi(e),n=fx(vi.prototype.request,t);return G.extend(n,vi.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Fx(bi(e,o))},n}const nn=Fx(hs);nn.Axios=vi;nn.CanceledError=Ba;nn.CancelToken=Sj;nn.isCancel=Ox;nn.VERSION=Nx;nn.toFormData=hd;nn.AxiosError=tt;nn.Cancel=nn.CanceledError;nn.all=function(t){return Promise.all(t)};nn.spread=Cj;nn.isAxiosError=wj;nn.mergeConfig=bi;nn.AxiosHeaders=tr;nn.formToJSON=e=>Rx(G.isHTMLForm(e)?new FormData(e):e);nn.getAdapter=Mx.getAdapter;nn.HttpStatusCode=Tm;nn.default=nn;const{Axios:_j,AxiosError:Mj,CanceledError:Nj,isCancel:Lj,CancelToken:Fj,VERSION:zj,all:Aj,Cancel:jj,isAxiosError:Dj,spread:Bj,toFormData:kj,AxiosHeaders:Hj,HttpStatusCode:Vj,formToJSON:Wj,getAdapter:Uj,mergeConfig:Kj}=nn,zx=nn.create({}),xj=()=>zx.get("/api/files"),Ej=(e,t=200)=>zx.get("/api/last",{params:{file:e,n:t}}),{Header:$j,Content:Rj}=Pi,Oj=()=>{const{logs:e,isConnected:t,addInitialLogs:n}=KA("/logs"),[r,o]=u.useState([]),[i,a]=u.useState("1"),[l,s]=u.useState([]);u.useEffect(()=>{xj().then(async f=>{const v=f.data;o(v);const g=v.map((m,y)=>({key:String(y+1),label:m,children:xt.jsx(By,{title:m,logs:e,filename:m}),closable:!0}));g.push({key:"merged",label:"🔀 Mesclado",children:xt.jsx(GA,{logs:e}),closable:!1}),s(g);for(const m of v)try{const y=await Ej(m,200);n(y.data)}catch{}}).catch(()=>Rm.error("Falha ao buscar lista de arquivos de log."))},[]);const c=()=>{const f=r.filter(y=>!l.some(b=>b.label===y));if(f.length===0){Rm.info("Todos os arquivos de log já estão abertos.");return}const v=f[0],g=String(Math.max(...l.map(y=>parseInt(y.key,10)))+1),m={key:g,label:v,children:xt.jsx(By,{title:v,logs:e,filename:v}),closable:!0};s([...l,m]),a(g)},d=(f,v)=>{if(v==="add")c();else if(v==="remove"){const g=String(f),m=l.filter(y=>y.key!==g);m.length&&i===g&&a(m[m.length-1].key),s(m)}};return xt.jsxs(Pi,{style:{height:"100vh"},children:[xt.jsxs($j,{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[xt.jsx("h1",{style:{color:"white",margin:0},children:"📋 Web Tail Pro"}),xt.jsx(vs,{children:xt.jsx("span",{style:{color:t?"#4fc3f7":"#f48fb1"},children:t?"🟢 Conectado":"🔴 Desconectado"})})]}),xt.jsx(Rj,{style:{padding:"0 16px"},children:xt.jsx(dg,{type:"editable-card",onChange:f=>a(f),activeKey:i,onEdit:d,items:l,style:{marginTop:16}})})]})};If.createRoot(document.getElementById("root")).render(xt.jsx(ne.StrictMode,{children:xt.jsx(Oj,{})}));