var b3=Object.create;var Dp=Object.defineProperty;var HE=Object.getOwnPropertyDescriptor;var S3=Object.getOwnPropertyNames;var C3=Object.getPrototypeOf,x3=Object.prototype.hasOwnProperty;var A0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Do=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k0=(e,t)=>{for(var r in t)Dp(e,r,{get:t[r],enumerable:!0})},w3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S3(t))!x3.call(e,o)&&o!==r&&Dp(e,o,{get:()=>t[o],enumerable:!(n=HE(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?b3(C3(e)):{},w3(t||!e||!e.__esModule?Dp(r,"default",{value:e,enumerable:!0}):r,e));var Jt=(e,t,r,n)=>{for(var o=n>1?void 0:n?HE(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Dp(t,r,o),o};var QR=Do(Rt=>{"use strict";var bd=Symbol.for("react.element"),lW=Symbol.for("react.portal"),cW=Symbol.for("react.fragment"),uW=Symbol.for("react.strict_mode"),dW=Symbol.for("react.profiler"),fW=Symbol.for("react.provider"),pW=Symbol.for("react.context"),mW=Symbol.for("react.forward_ref"),gW=Symbol.for("react.suspense"),hW=Symbol.for("react.memo"),vW=Symbol.for("react.lazy"),zR=Symbol.iterator;function yW(e){return e===null||typeof e!="object"?null:(e=zR&&e[zR]||e["@@iterator"],typeof e=="function"?e:null)}var VR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HR=Object.assign,UR={};function vc(e,t,r){this.props=e,this.context=t,this.refs=UR,this.updater=r||VR}vc.prototype.isReactComponent={};vc.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")};vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GR(){}GR.prototype=vc.prototype;function mb(e,t,r){this.props=e,this.context=t,this.refs=UR,this.updater=r||VR}var gb=mb.prototype=new GR;gb.constructor=mb;HR(gb,vc.prototype);gb.isPureReactComponent=!0;var jR=Array.isArray,qR=Object.prototype.hasOwnProperty,hb={current:null},KR={key:!0,ref:!0,__self:!0,__source:!0};function XR(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)qR.call(t,n)&&!KR.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1{"use strict";JR.exports=QR()});var l_=Do(er=>{"use strict";function Cb(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nSm(s,r))lSm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lSm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Sm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ZR=performance,er.unstable_now=function(){return ZR.now()}):(yb=Date,e_=yb.now(),er.unstable_now=function(){return yb.now()-e_});var ZR,yb,e_,Fi=[],es=[],wW=1,Mo=null,Pn=3,wm=!1,dl=!1,Cd=!1,n_=typeof setTimeout=="function"?setTimeout:null,o_=typeof clearTimeout=="function"?clearTimeout:null,t_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xb(e){for(var t=ci(es);t!==null;){if(t.callback===null)xm(es);else if(t.startTime<=e)xm(es),t.sortIndex=t.expirationTime,Cb(Fi,t);else break;t=ci(es)}}function wb(e){if(Cd=!1,xb(e),!dl)if(ci(Fi)!==null)dl=!0,Rb(Eb);else{var t=ci(es);t!==null&&_b(wb,t.startTime-e)}}function Eb(e,t){dl=!1,Cd&&(Cd=!1,o_(xd),xd=-1),wm=!0;var r=Pn;try{for(xb(t),Mo=ci(Fi);Mo!==null&&(!(Mo.expirationTime>t)||e&&!s_());){var n=Mo.callback;if(typeof n=="function"){Mo.callback=null,Pn=Mo.priorityLevel;var o=n(Mo.expirationTime<=t);t=er.unstable_now(),typeof o=="function"?Mo.callback=o:Mo===ci(Fi)&&xm(Fi),xb(t)}else xm(Fi);Mo=ci(Fi)}if(Mo!==null)var i=!0;else{var a=ci(es);a!==null&&_b(wb,a.startTime-t),i=!1}return i}finally{Mo=null,Pn=r,wm=!1}}var Em=!1,Cm=null,xd=-1,i_=5,a_=-1;function s_(){return!(er.unstable_now()-a_e||125n?(e.sortIndex=r,Cb(es,e),ci(Fi)===null&&e===ci(es)&&(Cd?(o_(xd),xd=-1):Cd=!0,_b(wb,r-n))):(e.sortIndex=o,Cb(Fi,e),dl||wm||(dl=!0,Rb(Eb))),e};er.unstable_shouldYield=s_;er.unstable_wrapCallback=function(e){var t=Pn;return function(){var r=Pn;Pn=t;try{return e.apply(this,arguments)}finally{Pn=r}}}});var u_=Do((zY,c_)=>{"use strict";c_.exports=l_()});var mN=Do(So=>{"use strict";var EW=I(),yo=u_();function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xb=Object.prototype.hasOwnProperty,RW=/^[: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]*$/,d_={},f_={};function _W(e){return Xb.call(f_,e)?!0:Xb.call(d_,e)?!1:RW.test(e)?f_[e]=!0:(d_[e]=!0,!1)}function PW(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function OW(e,t,r,n){if(t===null||typeof t>"u"||PW(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Un(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Un(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){yn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var jS=/[\-:]([a-z])/g;function BS(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(jS,BS);yn[t]=new Un(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(jS,BS);yn[t]=new Un(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(jS,BS);yn[t]=new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Un(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Un(e,1,!1,e.toLowerCase(),null,!0,!0)});function VS(e,t,r,n){var o=yn.hasOwnProperty(t)?yn[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ob=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Td(e):""}function NW(e){switch(e.tag){case 5:return Td(e.type);case 16:return Td("Lazy");case 13:return Td("Suspense");case 19:return Td("SuspenseList");case 0:case 2:case 15:return e=Nb(e.type,!1),e;case 11:return e=Nb(e.type.render,!1),e;case 1:return e=Nb(e.type,!0),e;default:return""}}function Zb(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 Cc:return"Fragment";case Sc:return"Portal";case Yb:return"Profiler";case HS:return"StrictMode";case Qb:return"Suspense";case Jb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bP:return(e.displayName||"Context")+".Consumer";case yP:return(e._context.displayName||"Context")+".Provider";case US:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case GS:return t=e.displayName||null,t!==null?t:Zb(e.type)||"Memo";case rs:t=e._payload,e=e._init;try{return Zb(e(t))}catch{}}return null}function IW(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 Zb(t);case 8:return t===HS?"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 hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function CP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TW(e){var t=CP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _m(e){e._valueTracker||(e._valueTracker=TW(e))}function xP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=CP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function eg(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 eS(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function m_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wP(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function tS(e,t){wP(e,t);var r=hs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rS(e,t.type,r):t.hasOwnProperty("defaultValue")&&rS(e,t.type,hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function rS(e,t,r){(t!=="number"||eg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $d=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ud(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kd={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},$W=["Webkit","ms","Moz","O"];Object.keys(kd).forEach(function(e){$W.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kd[t]=kd[e]})});function PP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||kd.hasOwnProperty(e)&&kd[e]?(""+t).trim():t+"px"}function OP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=PP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var DW=Rr({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 iS(e,t){if(t){if(DW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function aS(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 sS=null;function qS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lS=null,Dc=null,Ac=null;function y_(e){if(e=uf(e)){if(typeof lS!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Og(t),lS(e.stateNode,e.type,t))}}function NP(e){Dc?Ac?Ac.push(e):Ac=[e]:Dc=e}function IP(){if(Dc){var e=Dc,t=Ac;if(Ac=Dc=null,y_(e),t)for(e=0;e>>=0,e===0?32:31-(HW(e)/UW|0)|0}var Om=64,Nm=4194304;function Dd(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 og(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Dd(s):(i&=a,i!==0&&(n=Dd(i)))}else a=r&~o,a!==0?n=Dd(a):i!==0&&(n=Dd(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function lf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mi(t),e[t]=r}function XW(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Ld),P_=" ",O_=!1;function YP(e,t){switch(e){case"keyup":return wz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xc=!1;function Rz(e,t){switch(e){case"compositionend":return QP(t);case"keypress":return t.which!==32?null:(O_=!0,P_);case"textInput":return e=t.data,e===P_&&O_?null:e;default:return null}}function _z(e,t){if(xc)return e==="compositionend"||!tC&&YP(e,t)?(e=KP(),Um=JS=as=null,xc=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=T_(r)}}function tO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rO(){for(var e=window,t=eg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=eg(e.document)}return t}function rC(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 kz(e){var t=rO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&tO(r.ownerDocument.documentElement,r)){if(n!==null&&rC(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=$_(r,i);var a=$_(r,n);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>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wc=null,mS=null,Wd=null,gS=!1;function D_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gS||wc==null||wc!==eg(n)||(n=wc,"selectionStart"in n&&rC(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wd&&Qd(Wd,n)||(Wd=n,n=sg(mS,"onSelect"),0_c||(e.current=CS[_c],CS[_c]=null,_c--)}function tr(e,t){_c++,CS[_c]=e.current,e.current=t}var vs={},Tn=bs(vs),eo=bs(!1),bl=vs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return vs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function to(e){return e=e.childContextTypes,e!=null}function cg(){or(eo),or(Tn)}function B_(e,t,r){if(Tn.current!==vs)throw Error(ge(168));tr(Tn,t),tr(eo,r)}function dO(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,IW(e)||"Unknown",o));return Rr({},r,n)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vs,bl=Tn.current,tr(Tn,e),tr(eo,eo.current),!0}function V_(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=dO(e,t,bl),n.__reactInternalMemoizedMergedChildContext=e,or(eo),or(Tn),tr(Tn,e)):or(eo),tr(eo,r)}var pa=null,Ng=!1,zb=!1;function fO(e){pa===null?pa=[e]:pa.push(e)}function Uz(e){Ng=!0,fO(e)}function Ss(){if(!zb&&pa!==null){zb=!0;var e=0,t=jt;try{var r=pa;for(jt=1;e>=a,o-=a,ma=1<<32-mi(t)+o|r<R?(O=x,x=null):O=x.sibling;var _=f(g,x,b[R],S);if(_===null){x===null&&(x=O);break}e&&x&&_.alternate===null&&t(g,x),p=i(_,p,R),w===null?C=_:w.sibling=_,w=_,x=O}if(R===b.length)return r(g,x),vr&&fl(g,R),C;if(x===null){for(;RR?(O=x,x=null):O=x.sibling;var T=f(g,x,_.value,S);if(T===null){x===null&&(x=O);break}e&&x&&T.alternate===null&&t(g,x),p=i(T,p,R),w===null?C=T:w.sibling=T,w=T,x=O}if(_.done)return r(g,x),vr&&fl(g,R),C;if(x===null){for(;!_.done;R++,_=b.next())_=d(g,_.value,S),_!==null&&(p=i(_,p,R),w===null?C=_:w.sibling=_,w=_);return vr&&fl(g,R),C}for(x=n(g,x);!_.done;R++,_=b.next())_=m(x,g,R,_.value,S),_!==null&&(e&&_.alternate!==null&&x.delete(_.key===null?R:_.key),p=i(_,p,R),w===null?C=_:w.sibling=_,w=_);return e&&x.forEach(function($){return t(g,$)}),vr&&fl(g,R),C}function y(g,p,b,S){if(typeof b=="object"&&b!==null&&b.type===Cc&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Rm:e:{for(var C=b.key,w=p;w!==null;){if(w.key===C){if(C=b.type,C===Cc){if(w.tag===7){r(g,w.sibling),p=o(w,b.props.children),p.return=g,g=p;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rs&&G_(C)===w.type){r(g,w.sibling),p=o(w,b.props),p.ref=Pd(g,w,b),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}b.type===Cc?(p=yl(b.props.children,g.mode,S,b.key),p.return=g,g=p):(S=Zm(b.type,b.key,b.props,null,g.mode,S),S.ref=Pd(g,p,b),S.return=g,g=S)}return a(g);case Sc:e:{for(w=b.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===b.containerInfo&&p.stateNode.implementation===b.implementation){r(g,p.sibling),p=o(p,b.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=Kb(b,g.mode,S),p.return=g,g=p}return a(g);case rs:return w=b._init,y(g,p,w(b._payload),S)}if($d(b))return h(g,p,b,S);if(wd(b))return v(g,p,b,S);zm(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,b),p.return=g,g=p):(r(g,p),p=qb(b,g.mode,S),p.return=g,g=p),a(g)):r(g,p)}return y}var jc=hO(!0),vO=hO(!1),pg=bs(null),mg=null,Nc=null,aC=null;function sC(){aC=Nc=mg=null}function lC(e){var t=pg.current;or(pg),e._currentValue=t}function ES(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mc(e,t){mg=e,aC=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zn=!0),e.firstContext=null)}function jo(e){var t=e._currentValue;if(aC!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(mg===null)throw Error(ge(308));Nc=e,mg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var gl=null;function cC(e){gl===null?gl=[e]:gl.push(e)}function yO(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,cC(t)):(r.next=o.next,o.next=r),t.interleaved=r,ba(e,n)}function ba(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ns=!1;function uC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bO(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 ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(kt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ba(e,r)}return o=n.interleaved,o===null?(t.next=t,cC(n)):(t.next=o.next,o.next=t),n.interleaved=t,ba(e,r)}function qm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XS(e,r)}}function q_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gg(e,t,r,n){var o=e.updateQueue;ns=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,m=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(f=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){d=h.call(m,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,f=typeof h=="function"?h.call(m,d,f):h,f==null)break e;d=Rr({},d,f);break e;case 2:ns=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,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);xl|=a,e.lanes=a,e.memoizedState=d}}function K_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Bb.transition;Bb.transition={};try{e(!1),t()}finally{jt=r,Bb.transition=n}}function MO(){return Bo().memoizedState}function Xz(e,t,r){var n=ms(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},LO(e))FO(t,r);else if(r=yO(e,t,r,n),r!==null){var o=Hn();gi(r,e,n,o),WO(r,t,n)}}function Yz(e,t,r){var n=ms(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(LO(e))FO(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,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,hi(s,a)){var l=t.interleaved;l===null?(o.next=o,cC(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=yO(e,t,o,n),r!==null&&(o=Hn(),gi(r,e,n,o),WO(r,t,n))}}function LO(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function FO(e,t){zd=vg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function WO(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XS(e,r)}}var yg={readContext:jo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},Qz={readContext:jo,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:jo,useEffect:Y_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xm(4194308,4,TO.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xm(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Xz.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:X_,useDebugValue:yC,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=X_(!1),t=e[0];return e=Kz.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,o=zi();if(vr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),ln===null)throw Error(ge(349));(Cl&30)!==0||wO(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Y_(RO.bind(null,n,i,e),[e]),n.flags|=2048,af(9,EO.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=ln.identifierPrefix;if(vr){var r=ga,n=ma;r=(n&~(1<<32-mi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=nf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ji]=t,e[ef]=n,XO(e,t,!1,!1),t.stateNode=e;e:{switch(a=aS(r,n),r){case"dialog":nr("cancel",e),nr("close",e),o=n;break;case"iframe":case"object":case"embed":nr("load",e),o=n;break;case"video":case"audio":for(o=0;oHc&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304)}else{if(!n)if(e=hg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Od(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!vr)return Nn(t),null}else 2*Fr()-i.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,Od(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fr(),t.sibling=null,r=wr.current,tr(wr,n?r&1|2:r&1),t):(Nn(t),null);case 22:case 23:return EC(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(go&1073741824)!==0&&(Nn(t),t.subtreeFlags&6&&(t.flags|=8192)):Nn(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function i4(e,t){switch(oC(t),t.tag){case 1:return to(t.type)&&cg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),or(eo),or(Tn),pC(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return fC(t),null;case 13:if(or(wr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));zc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return or(wr),null;case 4:return Bc(),null;case 10:return lC(t.type._context),null;case 22:case 23:return EC(),null;case 24:return null;default:return null}}var Bm=!1,In=!1,a4=typeof WeakSet=="function"?WeakSet:Set,He=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Tr(e,t,n)}}var sP=!1;function s4(e,t){if(hS=ig,e=rO(),rC(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var m;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=a),f===i&&++u===n&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(vS={focusedElem:e,selectionRange:r},ig=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(S){Tr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return h=sP,sP=!1,h}function jd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function AS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function JO(e){var t=e.alternate;t!==null&&(e.alternate=null,JO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[ef],delete t[SS],delete t[Vz],delete t[Hz])),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 ZO(e){return e.tag===5||e.tag===3||e.tag===4}function lP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZO(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 kS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=lg));else if(n!==4&&(e=e.child,e!==null))for(kS(e,t,r),e=e.sibling;e!==null;)kS(e,t,r),e=e.sibling}function MS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(MS(e,t,r),e=e.sibling;e!==null;)MS(e,t,r),e=e.sibling}var hn=null,fi=!1;function ts(e,t,r){for(r=r.child;r!==null;)eN(e,t,r),r=r.sibling}function eN(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Eg,r)}catch{}switch(r.tag){case 5:In||Ic(r,t);case 6:var n=hn,o=fi;hn=null,ts(e,t,r),hn=n,fi=o,hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hn.removeChild(r.stateNode));break;case 18:hn!==null&&(fi?(e=hn,r=r.stateNode,e.nodeType===8?Wb(e.parentNode,r):e.nodeType===1&&Wb(e,r),Xd(e)):Wb(hn,r.stateNode));break;case 4:n=hn,o=fi,hn=r.stateNode.containerInfo,fi=!0,ts(e,t,r),hn=n,fi=o;break;case 0:case 11:case 14:case 15:if(!In&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}ts(e,t,r);break;case 1:if(!In&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tr(r,t,s)}ts(e,t,r);break;case 21:ts(e,t,r);break;case 22:r.mode&1?(In=(n=In)||r.memoizedState!==null,ts(e,t,r),In=n):ts(e,t,r);break;default:ts(e,t,r)}}function cP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new a4),t.forEach(function(n){var o=h4.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ui(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Fr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*c4(n/1960))-n,10e?16:e,ss===null)var n=!1;else{if(e=ss,ss=null,Cg=0,(kt&6)!==0)throw Error(ge(331));var o=kt;for(kt|=4,He=e.current;He!==null;){var i=He,a=i.child;if((He.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lFr()-xC?vl(e,0):CC|=r),ro(e,t)}function lN(e,t){t===0&&((e.mode&1)===0?t=1:(t=Nm,Nm<<=1,(Nm&130023424)===0&&(Nm=4194304)));var r=Hn();e=ba(e,t),e!==null&&(lf(e,t,r),ro(e,r))}function g4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lN(e,r)}function h4(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),lN(e,r)}var cN;cN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,n4(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,vr&&(t.flags&1048576)!==0&&pO(t,fg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ym(e,t),e=t.pendingProps;var o=Wc(t,Tn.current);Mc(t,r),o=gC(null,t,n,e,o,r);var i=hC();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,to(n)?(i=!0,ug(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uC(t),o.updater=Tg,t.stateNode=o,o._reactInternals=t,_S(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,vr&&i&&nC(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ym(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=y4(n),e=di(n,e),o){case 0:t=OS(null,t,n,e,r);break e;case 1:t=oP(null,t,n,e,r);break e;case 11:t=rP(null,t,n,e,r);break e;case 14:t=nP(null,t,n,di(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),OS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),oP(e,t,n,o,r);case 3:e:{if(GO(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,bO(e,t),gg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vc(Error(ge(423)),t),t=iP(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(ge(424)),t),t=iP(e,t,n,r,o);break e}else for(ho=ds(t.stateNode.containerInfo.firstChild),vo=t,vr=!0,pi=null,r=vO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zc(),n===o){t=Sa(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return SO(t),e===null&&wS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yS(n,o)?a=null:i!==null&&yS(n,i)&&(t.flags|=32),UO(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&wS(t),null;case 13:return qO(e,t,r);case 4:return dC(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),rP(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,tr(pg,n._currentValue),n._currentValue=a,i!==null)if(hi(i.value,a)){if(i.children===o.children&&!eo.current){t=Sa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ha(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ES(i.return,r,t),s.lanes|=r;break}l=l.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(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),ES(a,r,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}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mc(t,r),o=jo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),nP(e,t,n,o,r);case 15:return VO(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),Ym(e,t),t.tag=1,to(n)?(e=!0,ug(t)):e=!1,Mc(t,r),zO(t,n,o),_S(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return KO(e,t,r);case 22:return HO(e,t,r)}throw Error(ge(156,t.tag))};function uN(e,t){return LP(e,t)}function v4(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(e,t,r,n){return new v4(e,t,r,n)}function _C(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y4(e){if(typeof e=="function")return _C(e)?1:0;if(e!=null){if(e=e.$$typeof,e===US)return 11;if(e===GS)return 14}return 2}function gs(e,t){var r=e.alternate;return r===null?(r=Wo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zm(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")_C(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return yl(r.children,o,i,t);case HS:a=8,o|=8;break;case Yb:return e=Wo(12,r,t,o|2),e.elementType=Yb,e.lanes=i,e;case Qb:return e=Wo(13,r,t,o),e.elementType=Qb,e.lanes=i,e;case Jb:return e=Wo(19,r,t,o),e.elementType=Jb,e.lanes=i,e;case SP:return Ag(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yP:a=10;break e;case bP:a=9;break e;case US:a=11;break e;case GS:a=14;break e;case rs:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Wo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yl(e,t,r,n){return e=Wo(7,e,n,t),e.lanes=r,e}function Ag(e,t,r,n){return e=Wo(22,e,n,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function qb(e,t,r){return e=Wo(6,e,null,t),e.lanes=r,e}function Kb(e,t,r){return t=Wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b4(e,t,r,n,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=Tb(0),this.expirationTimes=Tb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tb(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PC(e,t,r,n,o,i,a,s,l){return e=new b4(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},uC(i),e}function S4(e,t,r){var n=3{"use strict";function gN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gN)}catch(e){console.error(e)}}gN(),hN.exports=mN()});var yN=Do(TC=>{"use strict";var vN=Hi();TC.createRoot=vN.createRoot,TC.hydrateRoot=vN.hydrateRoot;var VY});var $e=Do((GY,Wg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var AC=Symbol.for("react.element"),kC=Symbol.for("react.portal"),Bg=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),Hg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),D4=Symbol.for("react.server_context"),qg=Symbol.for("react.forward_ref"),Kg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),A4=Symbol.for("react.offscreen"),PN;PN=Symbol.for("react.module.reference");function Vo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AC:switch(e=e.type,e){case Bg:case Hg:case Vg:case Kg:case Xg:return e;default:switch(e=e&&e.$$typeof,e){case D4:case Gg:case qg:case Qg:case Yg:case Ug:return e;default:return t}}case kC:return t}}}Vt.ContextConsumer=Gg;Vt.ContextProvider=Ug;Vt.Element=AC;Vt.ForwardRef=qg;Vt.Fragment=Bg;Vt.Lazy=Qg;Vt.Memo=Yg;Vt.Portal=kC;Vt.Profiler=Hg;Vt.StrictMode=Vg;Vt.Suspense=Kg;Vt.SuspenseList=Xg;Vt.isAsyncMode=function(){return!1};Vt.isConcurrentMode=function(){return!1};Vt.isContextConsumer=function(e){return Vo(e)===Gg};Vt.isContextProvider=function(e){return Vo(e)===Ug};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AC};Vt.isForwardRef=function(e){return Vo(e)===qg};Vt.isFragment=function(e){return Vo(e)===Bg};Vt.isLazy=function(e){return Vo(e)===Qg};Vt.isMemo=function(e){return Vo(e)===Yg};Vt.isPortal=function(e){return Vo(e)===kC};Vt.isProfiler=function(e){return Vo(e)===Hg};Vt.isStrictMode=function(e){return Vo(e)===Vg};Vt.isSuspense=function(e){return Vo(e)===Kg};Vt.isSuspenseList=function(e){return Vo(e)===Xg};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bg||e===Hg||e===Vg||e===Kg||e===Xg||e===A4||typeof e=="object"&&e!==null&&(e.$$typeof===Qg||e.$$typeof===Yg||e.$$typeof===Ug||e.$$typeof===Gg||e.$$typeof===qg||e.$$typeof===PN||e.getModuleId!==void 0)};Vt.typeOf=Vo});var IN=Do((fQ,NN)=>{"use strict";NN.exports=ON()});var KF=Do(O0=>{"use strict";var sG=I(),lG=Symbol.for("react.element"),cG=Symbol.for("react.fragment"),uG=Object.prototype.hasOwnProperty,dG=sG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fG={key:!0,ref:!0,__self:!0,__source:!0};function qF(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)uG.call(t,n)&&!fG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:lG,type:e,key:i,ref:a,props:o,_owner:dG.current}}O0.Fragment=cG;O0.jsx=qF;O0.jsxs=qF});var fr=Do((jAe,XF)=>{"use strict";XF.exports=KF()});var M0={"SDPPP Get Document":"DEPRECATED! Get Document","SDPPP Get Layer By ID":"DEPRECATED! Get Layer","SDPPP Get Linked Layers":"DEPRECATED! Get Linked Layers","SDPPP Get Layers In Group":"DEPRECATED! Get Layers In Group","SDPPP Get Text From Layer":"DEPRECATED! Get Text From Layer","SDPPP Parse Layer Info":"DEPRECATED! Parse Layer Info","SDPPP Get Selection":"DEPRECATED! Get Selection","SDPPP Get Image From Photoshop":"DEPRECATED! Get Image From Photoshop","SDPPP Send Images To Photoshop":"DEPRECATED! Send Images To Photoshop","SDPPP Send Text To Layer":"DEPRECATED! Send Text To Layer","SDPPP Select Layer And Run PS Action":"DEPRECATED! Select Layer And Run PS Action","Photoshop Disconnected!":`Photoshop Disconnected! (2.0+ use LoadImage node)`};var L0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u5E9F\u5F03\u8282\u70B9! \u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u5E9F\u5F03\u8282\u70B9! \u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":`Photoshop \u672A\u8FDE\u63A5\uFF01 (2.0+ \u8BF7\u6539\u7528LoadImage\u8282\u70B9)`,rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var UE=typeof A0<"u"?A0:void 0,F0="en";typeof navigator<"u"&&navigator.language?F0=navigator.language=="zh-CN"?"zhcn":"en":UE&&(F0=UE("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=F0=="zhcn"?L0[e]:e in M0?M0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function ol(e,t){return e==t||L0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return ol(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return ol(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return ol(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return ol(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return ol(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return ol(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var W0={};k0(W0,{JsonPatchError:()=>Ir,_areEquals:()=>od,applyOperation:()=>il,applyPatch:()=>sc,applyReducer:()=>O3,deepClone:()=>_3,getValueByPointer:()=>al,validate:()=>qE,validator:()=>Fp});var E3=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),R3=Object.prototype.hasOwnProperty;function kp(e,t){return R3.call(e,t)}function Mp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function ki(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function rd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ap(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&f===void 0&&(c[m]===void 0?f=l.slice(0,u).join("/"):u==d-1&&(f=t.path),f!==void 0&&h(t,0,e,f)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!Lp(m))throw new Ir("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Lp(m)&&(m=~~m)}if(u>=d){if(r&&t.op==="add"&&m>c.length)throw new Ir("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=P3[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=d){var a=ac[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new Ir('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Ir("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ap(e.value))throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Ir("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Ir("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=qE([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ir("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function qE(e,t,r){try{if(!Array.isArray(e))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sc(Nr(t),Nr(e),r||!0);else{r=r||Fp;for(var n=0;nWp,generate:()=>z0,observe:()=>k3,unobserve:()=>A3});var j0=new WeakMap,N3=(function(){function e(t){this.observers=new Map,this.obj=t}return e})(),I3=(function(){function e(t,r){this.callback=t,this.observer=r}return e})();function T3(e){return j0.get(e)}function $3(e,t){return e.observers.get(t)}function D3(e,t){e.observers.delete(t.callback)}function A3(e,t){t.unobserve()}function k3(e,t){var r=[],n,o=T3(e);if(!o)o=new N3(e),j0.set(e,o);else{var i=$3(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Nr(e),t){n.callback=t,n.next=null;var a=function(){z0(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){z0(n),clearTimeout(n.next),D3(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new I3(t,n)),n}function z0(e,t){t===void 0&&(t=!1);var r=j0.get(e.object);B0(r.value,e.object,e.patches,"",t),e.patches.length&&sc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function B0(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Mp(t),a=Mp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],d=e[u];if(kp(t,u)&&!(t[u]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var f=t[u];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?B0(d,f,r,n+"/"+ki(u),o):d!==f&&(s=!0,o&&r.push({op:"test",path:n+"/"+ki(u),value:Nr(d)}),r.push({op:"replace",path:n+"/"+ki(u),value:Nr(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+ki(u),value:Nr(d)}),r.push({op:"remove",path:n+"/"+ki(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;cn!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:al(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:al(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function rr(e,t,r){return e.constructor[zp]||(e.constructor[zp]=[]),e.constructor[zp].push(t),{value:function(...n){let o=Nr(this._data);r.value.apply(this,n);let i=Wp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var sl=class extends H0{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Jt([rr],sl.prototype,"setSID",1);var on=class extends sl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Jt([rr],on.prototype,"setWebviewFromSid",1),Jt([rr],on.prototype,"setTitle",1),Jt([rr],on.prototype,"setProgress",1),Jt([rr],on.prototype,"setLastError",1),Jt([rr],on.prototype,"setQueueSize",1),Jt([rr],on.prototype,"setExecutingNodeTitle",1),Jt([rr],on.prototype,"setWidgetTableStructure",1),Jt([rr],on.prototype,"setWidgetTableValue",1),Jt([rr],on.prototype,"setWidgetTableErrors",1),Jt([rr],on.prototype,"setHasPSDNodes",1),Jt([rr],on.prototype,"setComfyUserToken",1),Jt([rr],on.prototype,"setComfyOrgLoggedIn",1),Jt([rr],on.prototype,"setComfyOrgAPIKey",1),Jt([rr],on.prototype,"setUseSliderForNumberWidget",1);var Ao=class extends sl{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Jt([rr],Ao.prototype,"setIsLocal",1),Jt([rr],Ao.prototype,"setUName",1),Jt([rr],Ao.prototype,"setDocument",1),Jt([rr],Ao.prototype,"setCanvasStateID",1),Jt([rr],Ao.prototype,"setSelectionStateID",1),Jt([rr],Ao.prototype,"setHistoryStateID",1),Jt([rr],Ao.prototype,"setComfyUserToken",1),Jt([rr],Ao.prototype,"setActions",1);var jp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var mt=window.comfyAPI.app.app,qG=window.comfyAPI.ui.$el,an=window.comfyAPI.api.api;var U0=class extends jp{createStore(t,r){return new Ao(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},Wn=new U0,Ke=new on;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Ke.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function XE(){document.title!==Ke.data.title&&Ke.setTitle(document.title),"user"in mt.extensionManager&&Ke.setComfyOrgLoggedIn(mt.extensionManager.user.isLoggedIn),requestAnimationFrame(XE)}requestAnimationFrame(XE);var KE=!1;async function YE(){if(KE)return Promise.resolve();an.user&&Ke.setComfyUserToken(an.user);let e=await an.getSetting("sdppp.useSliderForNumberWidget");e&&Ke.setUseSliderForNumberWidget(e),KE=!0}function M3(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Bp(e){return M3(e)}globalThis.sdpppX=globalThis.sdpppX||{};var sa=globalThis.sdpppX;var Mi=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Bp(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function G0(){let e=Wn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(an.user&&an.user!=r.data.comfyUserToken)return;let n=Mi.makeDocumentDataOptions(r).map(o=>q0(o,r.data.uname));t.push(...n)}),t}function QE(e,t){let r=[""],n=lc(e);if(!n)return[];let o=Mi.makeLayerOptions(n.documentData,t);return r.push(...o),r}function JE(){return an.user?Object.values(Wn.getAllStore()).filter(e=>an.user==e.data.comfyUserToken).length>0:Wn.storeCount()}function q0(e,t){return`${t}/${e}`}function lc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=Wn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:Bp(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var L3=function(e){let t=mt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function K0(e){let t=mt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(me("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=L3(s.link);if(!l)continue;let c=t.find(d=>d.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}sa.findDocumentNodeRecursive=K0;var Vp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function ZE(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new Vp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function eR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var li=Object.create(null);li.open="0";li.close="1";li.ping="2";li.pong="3";li.message="4";li.upgrade="5";li.noop="6";var id=Object.create(null);Object.keys(li).forEach(e=>{id[li[e]]=e});var ad={type:"error",data:"parser error"};var nR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oR=typeof ArrayBuffer=="function",iR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,sd=({type:e,data:t},r,n)=>nR&&t instanceof Blob?r?n(t):tR(t,n):oR&&(t instanceof ArrayBuffer||iR(t))?r?n(t):tR(new Blob([t]),n):n(li[e]+(t||"")),tR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function rR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var X0;function aR(e,t){if(nR&&e.data instanceof Blob)return e.data.arrayBuffer().then(rR).then(t);if(oR&&(e.data instanceof ArrayBuffer||iR(e.data)))return t(rR(e.data));sd(e,!1,r=>{X0||(X0=new TextEncoder),t(X0.encode(r))})}var sR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ld=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,n,o=0,i,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var F3=typeof ArrayBuffer=="function",cd=(e,t)=>{if(typeof e!="string")return{type:"message",data:cR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:W3(e.substring(1),t)}:id[r]?e.length>1?{type:id[r],data:e.substring(1)}:{type:id[r]}:ad},W3=(e,t)=>{if(F3){let r=lR(e);return cR(r,t)}else return{base64:!0,data:e}},cR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var uR="",dR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{sd(i,!1,s=>{n[a]=s,++o===r&&t(n.join(uR))})})},fR=(e,t)=>{let r=e.split(uR),n=[];for(let o=0;o{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Y0;function Hp(e){return e.reduce((t,r)=>t+r.length,0)}function Up(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;oMath.pow(2,21)-1){s.enqueue(ad);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Hp(r)e){s.enqueue(ad);break}}}})}var Q0=4;function Zt(e){if(e)return z3(e)}function z3(e){for(var t in Zt.prototype)e[t]=Zt.prototype[t];return e}Zt.prototype.on=Zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Zt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;oPromise.resolve().then(t):(t,r)=>r(t,0),zn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gR="arraybuffer";function Gp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var j3=zn.setTimeout,B3=zn.clearTimeout;function ca(e,t){t.useNativeTimers?(e.setTimeoutFn=j3.bind(zn),e.clearTimeoutFn=B3.bind(zn)):(e.setTimeoutFn=zn.setTimeout.bind(zn),e.clearTimeoutFn=zn.clearTimeout.bind(zn))}var V3=1.33;function hR(e){return typeof e=="string"?H3(e):Math.ceil((e.byteLength||e.size)*V3)}function H3(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function qp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function yR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};fR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,dR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=qp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var bR=!1;try{bR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var SR=bR;function U3(){}var J0=class extends ud{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Xa=class e extends Zt{constructor(t,r,n){super(),this.createRequest=t,ca(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=U3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Xa.requestsCount=0;Xa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CR);else if(typeof addEventListener=="function"){let e="onpagehide"in zn?"pagehide":"unload";addEventListener(e,CR,!1)}}function CR(){for(let e in Xa.requests)Xa.requests.hasOwnProperty(e)&&Xa.requests[e].abort()}var G3=(function(){let e=xR({xdomain:!1});return e&&e.responseType!==null})(),Ya=class extends J0{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=G3&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Xa(xR,this.uri(),t)}};function xR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SR))return new XMLHttpRequest}catch{}if(!t)try{return new zn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var wR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",eb=class extends ua{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=wR?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(n,i)}catch{}o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=qp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Z0=zn.WebSocket||zn.MozWebSocket,Qa=class extends eb{createSocket(t,r,n){return wR?new Z0(t,r,n):r?new Z0(t,r):new Z0(t)}doWrite(t,r){this.ws.send(r)}};var cc=class extends ua{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=mR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=pR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var tb={websocket:Qa,webtransport:cc,polling:Ya};var q3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,K3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=q3.exec(e||""),i={},a=14;for(;a--;)i[K3[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=X3(i,i.path),i.queryKey=Y3(i,i.query),i}function X3(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Y3(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var rb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xp=[];rb&&addEventListener("offline",()=>{Xp.forEach(e=>e())},!1);var ll=class e extends Zt{constructor(t,r){if(super(),this.binaryType=gR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=uc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=uc(r.host).host);ca(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yR(this.opts.query)),rb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Xp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Q0,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,la(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),rb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Xp.indexOf(this._offlineEventListener);n!==-1&&Xp.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};ll.protocol=Q0;var Yp=class extends ll{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ll.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=d=>{let f=new Error("probe error: "+d);f.transport=r.name,i(),this.emitReserved("upgradeError",f)};function s(){a("transport closed")}function l(){a("socket closed")}function c(d){r&&d.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;ntb[o]).filter(o=>!!o)),super(t,n)}};var EK=dc.protocol;function ER(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=uc(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var lb={};k0(lb,{Decoder:()=>ab,Encoder:()=>ib,PacketType:()=>Ot,protocol:()=>NR});var J3=typeof ArrayBuffer=="function",Z3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,RR=Object.prototype.toString,eW=typeof Blob=="function"||typeof Blob<"u"&&RR.call(Blob)==="[object BlobConstructor]",tW=typeof File=="function"||typeof File<"u"&&RR.call(File)==="[object FileConstructor]";function fd(e){return J3&&(e instanceof ArrayBuffer||Z3(e))||eW&&e instanceof Blob||tW&&e instanceof File}function dd(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ot.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ot.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ot.EVENT:case Ot.BINARY_EVENT:this.onevent(t);break;case Ot.ACK:case Ot.BINARY_ACK:this.onack(t);break;case Ot.DISCONNECT:this.ondisconnect();break;case Ot.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Ot.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ot.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}cl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};cl.prototype.reset=function(){this.attempts=0};cl.prototype.setMin=function(e){this.ms=e};cl.prototype.setMax=function(e){this.max=e};cl.prototype.setJitter=function(e){this.jitter=e};var pc=class extends Zt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ca(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new cl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||lb;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=mo(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=mo(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(mo(t,"ping",this.onping.bind(this)),mo(t,"data",this.ondata.bind(this)),mo(t,"error",this.onerror.bind(this)),mo(t,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){la(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new fc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;nt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var pd={};function md(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=ER(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=pd[o]&&i in pd[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new pc(n,t):(pd[o]||(pd[o]=new pc(n,t)),l=pd[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(md,{Manager:pc,Socket:fc,io:md,connect:md});var IR="507";var Qp=IR.trim();var cb=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=md(t,{transports:["websocket"],path:r,query:{api_level:Qp},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function TR(...e){return e.reduce((t,r)=>r(t),cb)}function $R(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&&mt.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var DR={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ja=[];sa.widgetable=sa.widgetable||{};sa.widgetable.add=function(e,t){typeof t=="function"?Ja.push([e,{formatter:t,setter:null}]):Ja.push([e,t])};function Zp(e,t,r){let n=Ja.find(([s])=>s=="__DEFAULT__"),o=Ja.find(([s])=>ub(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function gd(e){let t={},r=Ja.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Ja.find(([i])=>ub(i,n.type))||r;if(o)try{let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}catch{t[n.id]=[]}}),t}function em(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Ke.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=Jp(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ja.find(([u])=>ub(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((d,f)=>d+(f.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:me("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Ja.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((d,f)=>d+(f.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,d)=>u+(d.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=Jp(o),s=Jp(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Ke.data.useSliderForNumberWidget}}}function ub(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Jp(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}sa.getNodeTitle=Jp;var iW=new Map,ul=iW;function kR(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=mt.workflowManager||mt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){db||aW();let r=t.size,n=!1,o="",i={};try{tm=[];let s=await mt.queuePrompt(1,r);tm.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;ul.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Ke.setLastError(o):Ke.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],d=mt.graph.nodes.find(f=>f.id==u);l[u]=`[${d?.title||u}]`+s[c].errors.map(JSON.stringify).join(` `)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),d=s.includes(c);return u&&!d?-1:!u&&d?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=mt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||Zp(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Ke.setLastError(""),Ke.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await mt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await mt.loadGraphData(DR):await AR(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await AR(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Ke.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Ke.data.widgetTableStructure.widgetTableID,widgetTablePath:Ke.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Ke.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=mt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await mt.api.interrupt()}async clearQueue(t){await mt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:me("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:me("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function AR(e,t){mt.workflowManager==e?await t.load():(await e.openWorkflow(t),await mt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var db=!1,tm=[];function aW(){if(db)return;let e=an.queuePrompt;an.queuePrompt=async(...t)=>{try{let r=await e.call(an,...t);return tm.push({error:null,result:r}),r}catch(r){throw tm.push({error:r,result:null}),r}},db=!0}var jn=class e extends TR(ZE(Ke,"comfy"),eR(Wn,"photoshop"),$R,kR){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function rm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var nm=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},om=class extends nm{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Za=class e extends om{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return Wn.getStoreByName(t)?.data||null}static create(t,r){let n=G0(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:G0});return i.serializeValue=async()=>{let a=lc(i.value);if(!a)return JSON.stringify({instance_id:me("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await jn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){LR(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=Wn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=q0(r.data.documents[r.data.activeDocumentID].identify,t)}}},mc=class e extends om{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=lc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},sW={extraOptions:[],documentWidgetInNode:null},hd=class e extends mc{documentWidgetInNode;constructor(t,r,n=sW){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=lc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=QE(t.widget.value,this.extraOptions),LR(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},MR=0,gc=class extends nm{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||rm(Ke.data.widgetTableStructure.widgetTablePath)},i=K0(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=Wn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{Wn.storeCount()==0&&Date.now()-MR>3e3&&(MR=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${me("How to use .ccx file")}

${me("1. If you have installed Adobe Creative Cloud")}

${me("Just double click the .ccx file, it will install the plugin automatically")}

${me("2. If you don't have Adobe Creative Cloud")}

${me("Rename .ccx to .zip and extract it into ")}[${me("Photoshop directory")}]/Plug-ins ${me("or")} [${me("Photoshop directory")}]/Plug-ins/Generator

`)},300))})}update(){this.widget.label=Wn.storeCount()>0&&jn.instance.id?me("current ComfyUI pageid: {0}",jn.instance.id.slice(0,4)):me("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function LR(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var da=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,n){n.prehandleNodeType&&n.prehandleNodeType(t.nodeData||r);let o=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){o&&await o.call(this,...s);let l=new n(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let d=e.nodeMap.get(this);return s==1&&(d?.inputConnectionChange(l,c&&u),await d?.update()),s==2&&d?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",Qp)}};var Li=class extends da{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new gc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||JE()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(me("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var im=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},vd=class extends im{get documentWidget(){return FR(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},yd=class extends im{get documentWidget(){return FR(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function FR(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,n=e.graph.getNodeById(r);for(;n.type=="Reroute";)r=e.graph.links[n.inputs[0].link].origin_id,n=e.graph.getNodeById(r);return da.nodeMap.get(n)}var ko=class extends Li{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof vd||r instanceof yd));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof Za)}inputs=[];sdpppWidgets=[];constructor(t){super(t);let r=null;for(let n=0;n{if(!t.label)try{t.label=me(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(n=>{if(n.index==t){n.connected=r;let o=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(o),this.sdpppWidgets.forEach(i=>{(i instanceof mc||i instanceof gc)&&i.linkDocumentWidget(o)})}})}};var am=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},hc=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},sm=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},lm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},cm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},um=class extends Li{async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},dm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},fm=class extends ko{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&jn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Ke.data.ssid).then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=Wn.getAllPhotoshopDocumentData(),[n,o]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[n].sid,o):jn.instance.importPSDDataURLFromPhotoshop(r[n].sid,o,Ke.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.properties.psd?(Ke.setHasPSDNodes(!0),this.psdWidget.label=me("extract saved .psd to Photoshop")):(Ke.setHasPSDNodes(!1),this.psdWidget.label=me("save .psd to this workflow"))}},pm=class extends ko{async update(){super.update(),this.node.inputs.forEach(r=>r.label=me(r.name)),this.node.outputs.forEach(r=>r.label=me(r.name));let t=[];if(this.documentWidget){let r=this.documentWidget.getPSStore();r&&(t=r.actions)}this.node.widgets[0].options.values=t,this.node.constructor.nodeData.input.required.action[0]=t}};var mm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Za.create(t,"document"),n=hd.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=n,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=n.widget):(this.node.widgets[0]=r.widget,this.node.widgets[1]=n.widget)}onConfigure(t){if(t.properties["sdppp-version"])if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(hm["SDPPP Get Selection"],{pos:this.node.pos});new hc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(hm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,me("document linked")),this.layerWidget.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},gm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Za.create(t,"document"),n=hd.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=n}async update(){this.documentWidget?.lockMode(this.layerLinked,me("document linked")),this.layerWidget?.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=me(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=me(this.node.widgets[1].name)),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.inputs[2].label=me(this.node.inputs[2].name),this.node.outputs[0].label=me(this.node.outputs[0].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}onConfigure(t){"sdppp_send_prefix"in t.properties||this.node.setProperty("sdppp_send_prefix",""),super.onConfigure(t)}};var fb={"Get Image From Photoshop Layer":mm,"Send Images To Photoshop":gm,"SDPPP Send Text To Layer":um,"SDPPP Get Text From Layer":dm,"SDPPP Parse Layer Info":sm,"SDPPP Get Linked Layers":cm,"SDPPP Get Layers In Group":lm,"SDPPP Get Layer By ID":am,"SDPPP Get Document":fm,"SDPPP Get Selection":hc,"SDPPP Select Layer And Run PS Action":pm},hm={};function WR(e,t){let r=e.comfyClass||t.name;if(hm[r]=t,r in fb)e.title=me(t.display_name),t.display_name=me(t.display_name),da.registerNodeType(e,t,fb[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let n=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),o=!1;n.nodeData.nodes.forEach((i,a)=>{i.type in fb&&(o=!0)}),o&&da.registerNodeType(e,t,ko)}else return}var WE=E(yN(),1),zE=E(I(),1);var bN=`#sdppp-popup-root { width: 100%; height: 100%; position: absolute; top: 0; left: 0; padding: 16px; background: var(--bg-color); align-items: stretch; justify-content: stretch; z-index: 100; } .sdppp-menu-container { box-sizing: content-box; overflow-y: hidden; display: flex; flex-direction: column; align-items: stretch; min-width: 0; flex: 1; } .sdppp-menu-header { display: flex; flex-direction: row; gap: 10px; color: var(--fg-color); padding-bottom: 5px; border-bottom: 2px solid rgba(127, 127, 127, .4); align-items: center; justify-content: space-between; } .sdppp-menu-header button { text-align: center; background: var(--comfy-input-bg); border: none; box-shadow: none; } .sdppp-menu-header button:hover { background-color: var(--border-color); } .sdppp-menu-header button.active { background-color: var(--primary-bg); } .sdppp-menu-header button.active:hover { background-color: var(--primary-hover-bg); } .sdppp-menu-content { gap: 10px; flex: 1; min-height: 0; width: 100%; min-width: 0; overflow-x: hidden; } .sdppp-close-button { height: 30px; width: 30px; top: 10px; right: 10px; position: absolute; overflow: hidden; } .settings-container { padding: 10px; color: white; } .settings-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 15px; } .settings-section label { text-align: left; padding-right: 10px; } .settings-section input[type="number"] { width: 100%; padding: 5px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); } .settings-section .download-button { width: auto; padding: 5px 10px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); cursor: pointer; margin-right: 5px; } .settings-section .download-button:last-child { margin-right: 0; } .settings-section div:has(.download-button) { display: flex; justify-content: flex-start; gap: 5px; } .settings-section p { grid-column: 1 / -1; margin: 0; } .settings-container h2 { margin-top: 0; margin-bottom: 20px; } .settings-control { display: flex; gap: 5px; align-items: center; } .settings-control input[type="number"] { width: 100%; min-width: 80px; } .settings-label { display: flex; align-items: center; } .sdppp-menu-workflow-edit-wrap { font-size: 12px; width: 100%; height: 100%; } .sdppp-menu-workflow-edit-wrap p { margin: 0; padding: 0; color: var(--descrip-text) } .workflow-edit-content { display: flex; flex-direction: column; gap: 10px; } .workflow-edit-field { color: var(--fg-color); display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; width: 100%; } .workflow-edit-field > * { max-width: 100%; box-sizing: border-box; } @media (min-width: 639px) { .workflow-edit-content { flex-wrap: wrap; height: 100%; overflow-y: hidden; overflow-x: scroll; } .workflow-edit-field { max-width: 320px; } } .workflow-edit-field-title { color: var(--fg-color); font-size: 14px; border-left: 4px solid rgba(127, 127, 127, .4); padding: 2px 2px 2px 5px; margin: 3px 0; display: inline-flex; } .sdppp-side-icon { width: 48px; height: 48px; mask-image: url("./sd-ppp-static/sdppp-icon.svg"); mask-size: 27px; mask-position: center; mask-repeat: no-repeat; background-color: currentColor; } .sdppp-side-container { display: flex; width: 100%; height: 100%; flex-direction: column; position: relative; padding-top: 32px; } .sdppp-side-container .sdppp-side-header { position: absolute; top: 0; width: 100%; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-end; } .sdppp-side-container .sdppp-side-header button { width: 32px; height: 32px; border: 1px solid var(--border-color); cursor: pointer; } .sdppp-photoshop-icon { background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/af/Adobe_Photoshop_CC_icon.svg"); } .sdppp-premiere-icon { background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Adobe_Premiere_Pro_CC_icon.svg"); } /* GroupFilter component styles */ .sdppp-side-container .group-filter { display: flex; flex-wrap: wrap; padding: 4px 0; } .sdppp-side-container .group-filter-item { padding: 2px 8px; border-radius: 4px; cursor: pointer; white-space: nowrap; flex-shrink: 0; } .sdppp-side-container .group-filter-item:not(:first-child) { margin-left: 8px; } /* end of GroupFilter component styles */ `;var ed=E(I(),1);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return SN.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(vi(n)):ff(n)&&n.props?r=r.concat(vi(n.props.children,t)):r.push(n))}),r}var $C={},N4=[],I4=function(t){N4.push(t)};function pf(e,t){if(0)var r}function T4(e,t){if(0)var r}function CN(){$C={}}function xN(e,t,r){!t&&!$C[r]&&(e(!1,r),$C[r]=!0)}function zg(e,t){xN(pf,e,t)}function wN(e,t){xN(T4,e,t)}zg.preMessage=I4;zg.resetWarned=CN;zg.noteOnce=wN;var Bt=zg;function EN(e,t){if(ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jg(e){var t=EN(e,"string");return ce(t)=="symbol"?t:t+""}function P(e,t,r){return(t=jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t=19)return!0;var o=(0,mf.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==mf.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==mf.ForwardRef)};function $N(e){return(0,Jg.isValidElement)(e)&&!ff(e)}var Cs=function(t){if(t&&$N(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var zr=E(I());var Si=E(I()),Zg=Si.createContext(null);function DN(e){var t=e.children,r=e.onBatchResize,n=Si.useRef(0),o=Si.useRef([]),i=Si.useContext(Zg),a=Si.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return Si.createElement(Zg.Provider,{value:a},t)}var kN=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}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(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!MC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),j4?(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(){!MC||!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 r=t.propertyName,n=r===void 0?"":r,o=z4.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),MN=(function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof qc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Y4(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 qc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Q4(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),FN=typeof WeakMap<"u"?new WeakMap:new kN,WN=(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 r=B4.getInstance(),n=new J4(t,r,this);FN.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){WN.prototype[e]=function(){var t;return(t=FN.get(this))[e].apply(t,arguments)}});var Z4=(function(){return typeof eh.ResizeObserver<"u"?eh.ResizeObserver:WN})(),zN=Z4;var xs=new Map;function ej(e){e.forEach(function(t){var r,n=t.target;(r=xs.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var jN=new zN(ej);function BN(e,t){xs.has(e)||(xs.set(e,new Set),jN.observe(e)),xs.get(e).add(t)}function VN(e,t){xs.has(e)&&(xs.get(e).delete(t),xs.get(e).size||(jN.unobserve(e),xs.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HN(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;JN+=1;var n=JN;function o(i){if(i===0)tI(n),t();else{var a=ZN(function(){o(i-1)});LC.set(n,a)}}return o(r),n};rI.cancel=function(e){var t=LC.get(e);return tI(e),eI(t)};var dt=rI;var sr=E(I());function ih(e){if(Array.isArray(e))return e}function nI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ah(){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 L(e,t){return ih(e)||nI(e,t)||Kc(e,t)||ah()}function ij(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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)}var Es=ij;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function FC(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var oI="data-rc-order",iI="data-rc-priority",aj="rc-util-key",WC=new Map;function aI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):aj}function sh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sj(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zC(e){return Array.from((WC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=sj(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(oI,a),s&&i&&l.setAttribute(iI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=sh(t),u=c.firstChild;if(n){if(s){var d=(t.styles||zC(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(oI)))return!1;var m=Number(f.getAttribute(iI)||0);return i>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function lI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=sh(t);return(t.styles||zC(r)).find(function(n){return n.getAttribute(aI(t))===e})}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=lI(e,t);if(r){var n=sh(t);n.removeChild(r)}}function lj(e,t){var r=WC.get(e);if(!r||!FC(document,r)){var n=sI("",t),o=n.parentNode;WC.set(e,o),e.removeChild(n)}}function bn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=sh(r),o=zC(n),i=N(N({},r),{},{styles:o});lj(n,i);var a=lI(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.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 u=sI(e,i);return u.setAttribute(aI(i),t),u}var CI=E(I());function cI(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ze(e,t){if(e==null)return{};var r,n,o=cI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Bt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=L(c,2),f=d[1];return o.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),fI+=1}return at(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})();var jC=new yf;function _s(e){var t=Array.isArray(e)?e:[e];return jC.has(t)||jC.set(t,new Xc(t)),jC.get(t)}var vj=new WeakMap,BC={};function mI(e,t){for(var r=vj,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=N(N({},n),{},P(P({},qi,t),$n,r)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var Qc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").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()},yj=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=L(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},uh=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=L(a,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,m=Qc(u,n?.prefix);o[m]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(m,")")}}),[i,yj(o,r,{scope:n?.scope})]};var dh=E(I());var Jc=E(I());var gI=Yt()?Jc.useLayoutEffect:Jc.useEffect,hI=function(t,r){var n=Jc.useRef(!0);gI(function(){return t(n.current)},r),gI(function(){return n.current=!1,function(){n.current=!0}},[])},Nl=function(t,r){hI(function(n){if(!n)return t()},r)},ht=hI;var HC=E(I()),bj=N({},HC),vI=bj.useInsertionEffect,Sj=function(t,r,n){HC.useMemo(t,n),ht(function(){return r(!0)},n)},Cj=vI?function(e,t,r){return vI(function(){return e(),t()},r)}:Sj,yI=Cj;var UC=E(I()),xj=N({},UC),wj=xj.useInsertionEffect,Ej=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return UC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},Rj=function(){return function(t){t()}},_j=typeof wj<"u"?Ej:Rj,bI=_j;function Pj(){return!1}var SI=Pj;function Il(e,t,r,n,o){var i=dh.useContext(xi),a=i.cache,s=[e].concat(re(t)),l=lh(s),c=bI([l]),u=SI(),d=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],p=L(g,2),b=p[0],S=b===void 0?0:b,C=p[1],w=C,x=w||r(),R=[S,x];return v?v(R):R})};dh.useMemo(function(){d()},[l]);var f=a.opGet(l),m=f[1];return yI(function(){o?.(m)},function(h){return d(function(v){var y=L(v,2),g=y[0],p=y[1];return h&&g===0&&o?.(m),[g+1,p]}),function(){a.opUpdate(l,function(v){var y=v||[],g=L(y,2),p=g[0],b=p===void 0?0:p,S=g[1],C=b-1;return C===0?(c(function(){(h||!a.opGet(l))&&n?.(S,!1)}),null):[b-1,S]})}},[l]),m}var Oj={},Nj="css",Tl=new Map;function Ij(e){Tl.set(e,(Tl.get(e)||0)+1)}function Tj(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(qi,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ci]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var $j=0;function Dj(e,t){Tl.set(e,(Tl.get(e)||0)-1);var r=new Set;Tl.forEach(function(n,o){n<=0&&r.add(o)}),Tl.size-r.size>$j&&r.forEach(function(n){Tj(n,t),Tl.delete(n)})}var xI=function(t,r,n,o){var i=n.getDerivativeToken(t),a=N(N({},i),r);return o&&(a=o(a)),a},GC="token";function fh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,CI.useContext)(xi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?Oj:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,m=mI(function(){return Object.assign.apply(Object,[{}].concat(re(t)))},t),h=Yc(m),v=Yc(c),y=f?Yc(f):"",g=Il(GC,[s,e.id,h,v,y],function(){var p,b=d?d(m,c,e):xI(m,c,e,u),S=N({},b),C="";if(f){var w=uh(b,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),x=L(w,2);b=x[0],C=x[1]}var R=VC(b,s);b._tokenKey=R,S._tokenKey=VC(S,s);var O=(p=f?.key)!==null&&p!==void 0?p:R;b._themeKey=O,Ij(O);var _="".concat(Nj,"-").concat(Es(R));return b._hashId=_,[b,_,S,C,f?.key||""]},function(p){Dj(p[0]._themeKey,o)},function(p){var b=L(p,4),S=b[0],C=b[3];if(f&&C){var w=bn(C,Es("css-variables-".concat(S._themeKey)),{mark:$n,prepend:"queue",attachTo:i,priority:-999});w[Ci]=o,w.setAttribute(qi,S._themeKey)}});return g}var wI=function(t,r,n){var o=L(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Ps(a,s,u,f,c);return[d,u,m]};var XI=E(I());var Is=E(I());var Aj={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},qC=Aj;var ph="comm",mh="rule",gh="decl";var EI="@import";var RI="@namespace",_I="@keyframes";var PI="@layer";var KC=Math.abs,Sf=String.fromCharCode;function hh(e){return e.trim()}function Cf(e,t,r){return e.replace(t,r)}function OI(e,t,r){return e.indexOf(t,r)}function Os(e,t){return e.charCodeAt(t)|0}function Ns(e,t,r){return e.slice(t,r)}function Co(e){return e.length}function NI(e){return e.length}function Zc(e,t){return t.push(e),e}var vh=1,eu=1,II=0,Ho=0,Vr=0,ru="";function yh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:vh,column:eu,length:a,return:"",siblings:s}}function TI(){return Vr}function $I(){return Vr=Ho>0?Os(ru,--Ho):0,eu--,Vr===10&&(eu=1,vh--),Vr}function Uo(){return Vr=Ho2||tu(Vr)>3?"":" "}function MI(e,t){for(;--t&&Uo()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return bh(e,xf()+(t<6&&xa()==32&&Uo()==32))}function XC(e){for(;Uo();)switch(Vr){case e:return Ho;case 34:case 39:e!==34&&e!==39&&XC(Vr);break;case 40:e===41&&XC(e);break;case 92:Uo();break}return Ho}function LI(e,t){for(;Uo()&&e+Vr!==57;)if(e+Vr===84&&xa()===47)break;return"/*"+bh(t,Ho-1)+"*"+Sf(e===47?e:Uo())}function FI(e){for(;!tu(xa());)Uo();return bh(e,Ho)}function jI(e){return AI(Ch("",null,null,null,[""],e=DI(e),0,[0],e))}function Ch(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,m=0,h=0,v=1,y=1,g=1,p=0,b="",S=o,C=i,w=n,x=b;y;)switch(h=p,p=Uo()){case 40:if(h!=108&&Os(x,d-1)==58){OI(x+=Cf(Sh(p),"&","&\f"),"&\f",KC(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:x+=Sh(p);break;case 9:case 10:case 13:case 32:x+=kI(h);break;case 92:x+=MI(xf()-1,7);continue;case 47:switch(xa()){case 42:case 47:Zc(kj(LI(Uo(),xf()),t,r,l),l),(tu(h||1)==5||tu(xa()||1)==5)&&Co(x)&&Ns(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*v:s[c++]=Co(x)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+u:g==-1&&(x=Cf(x,/\f/g,"")),m>0&&(Co(x)-d||v===0&&h===47)&&Zc(m>32?zI(x+";",n,r,d-1,l):zI(Cf(x," ","")+";",n,r,d-2,l),l);break;case 59:x+=";";default:if(Zc(w=WI(x,t,r,c,u,o,s,b,S=[],C=[],d,i),i),p===123)if(u===0)Ch(x,t,w,w,S,i,d,s,C);else{switch(f){case 99:if(Os(x,3)===110)break;case 108:if(Os(x,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ch(e,w,w,n&&Zc(WI(e,w,w,0,0,o,s,b,o,S=[],d,C),C),o,C,d,s,n?S:C):Ch(x,w,w,w,[""],C,0,s,C)}}c=u=m=0,v=g=1,b=x="",d=a;break;case 58:d=1+Co(x),m=h;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&$I()==125)continue}switch(x+=Sf(p),p*v){case 38:g=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Co(x)-1)*g,g=1;break;case 64:xa()===45&&(x+=Sh(Uo())),f=xa(),u=d=Co(b=x+=FI(xf())),p++;break;case 45:h===45&&Co(x)==2&&(v=0)}}return i}function WI(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,m=o===0?i:[""],h=NI(m),v=0,y=0,g=0;v0?m[p]+" "+b:Cf(b,/&\f/g,m[p])))&&(l[g++]=S);return yh(e,t,r,o===0?mh:s,l,c,u,d)}function kj(e,t,r,n){return yh(e,t,r,ph,Sf(TI()),Ns(e,2,-2),0,n)}function zI(e,t,r,n,o){return yh(e,t,r,gh,Ns(e,0,n),Ns(e,n+1,-1),n,o)}function xh(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,m=r.linters,h=m===void 0?[]:m,v="",y={};function g(S){var C=S.getName(s);if(!y[C]){var w=e(S.style,r,{root:!1,parentSelectors:a}),x=L(w,1),R=x[0];y[C]="@keyframes ".concat(S.getName(s)).concat(R)}}function p(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(w){Array.isArray(w)?p(w,C):w&&C.push(w)}),C}var b=p(Array.isArray(t)?t:[t]);return b.forEach(function(S){var C=typeof S=="string"&&!o?{}:S;if(typeof C=="string")v+="".concat(C,` `);else if(C._keyframe)g(C);else{var w=f.reduce(function(x,R){var O;return(R==null||(O=R.visit)===null||O===void 0?void 0:O.call(R,x))||x},C);Object.keys(w).forEach(function(x){var R=w[x];if(ce(R)==="object"&&R&&(x!=="animationName"||!R._keyframe)&&!Bj(R)){var O=!1,_=x.trim(),T=!1;(o||i)&&s?_.startsWith("@")?O=!0:_==="&"?_=GI("",s,u):_=GI(x,s,u):o&&!s&&(_==="&"||_==="")&&(_="",T=!0);var $=e(R,r,{root:T,injectHash:O,parentSelectors:[].concat(re(a),[_])}),D=L($,2),M=D[0],A=D[1];y=N(N({},y),A),v+="".concat(_).concat(M)}else{let G=function(q,H){var U=q.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),z=H;!qC[q]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),q==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(g(H),z=H.getName(s)),v+="".concat(U,":").concat(z,";")};var j=G,F,W=(F=R?.value)!==null&&F!==void 0?F:R;ce(R)==="object"&&R!==null&&R!==void 0&&R[qI]&&Array.isArray(W)?W.forEach(function(q){G(x,q)}):G(x,W)}})}}),o?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(` `))):v="{".concat(v,"}"),[v,y]};function JC(e,t){return Es("".concat(e.join("%")).concat(t))}function Hj(){return null}var ZC="style";function Ts(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=Is.useContext(xi),d=u.autoClear,f=u.mock,m=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,p=u.linters,b=u.cache,S=u.layer,C=r._tokenKey,w=[C];S&&w.push("layer"),w.push.apply(w,re(n));var x=bf,R=Il(ZC,w,function(){var D=w.join("|");if(HI(D)){var M=UI(D),A=L(M,2),F=A[0],W=A[1];if(F)return[F,C,W,{},s,c]}var j=t(),G=Vj(j,{hashId:o,hashPriority:h,layer:S?i:void 0,path:n.join("-"),transformers:g,linters:p}),q=L(G,2),H=q[0],U=q[1],z=wh(H),k=JC(w,z);return[z,C,k,U,s,c]},function(D,M){var A=L(D,3),F=A[2];(M||d)&&bf&&Gi(F,{mark:$n,attachTo:v})},function(D){var M=L(D,4),A=M[0],F=M[1],W=M[2],j=M[3];if(x&&A!==QC){var G={mark:$n,prepend:S?!1:"queue",attachTo:v,priority:c},q=typeof a=="function"?a():a;q&&(G.csp={nonce:q});var H=[],U=[];Object.keys(j).forEach(function(k){k.startsWith("@layer")?H.push(k):U.push(k)}),H.forEach(function(k){bn(wh(j[k]),"_layer-".concat(k),N(N({},G),{},{prepend:!0}))});var z=bn(A,W,G);z[Ci]=b.instanceId,z.setAttribute(qi,C),U.forEach(function(k){bn(wh(j[k]),"_effect-".concat(k),G)})}}),O=L(R,3),_=O[0],T=O[1],$=O[2];return function(D){var M;return!y||x||!m?M=Is.createElement(Hj,null):M=Is.createElement("style",le({},P(P({},qi,T),$n,$),{dangerouslySetInnerHTML:{__html:_}})),Is.createElement(Is.Fragment,null,M,D)}}var KI=function(t,r,n){var o=L(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Ps(i,a,s,h,f),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=wh(l[v]),g=Ps(y,a,"_effect-".concat(v),h,f);v.startsWith("@layer")?m=g+m:m+=g}}),[u,s,m]};var ex="cssVar",Uj=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,XI.useContext)(xi),d=u.cache.instanceId,f=u.container,m=s._tokenKey,h=[].concat(re(t.path),[n,c,m]),v=Il(ex,h,function(){var y=r(),g=uh(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),p=L(g,2),b=p[0],S=p[1],C=JC(h,S);return[b,S,C,n]},function(y){var g=L(y,3),p=g[2];bf&&Gi(p,{mark:$n,attachTo:f})},function(y){var g=L(y,3),p=g[1],b=g[2];if(p){var S=bn(p,b,{mark:$n,prepend:"queue",attachTo:f,priority:-999});S[Ci]=d,S.setAttribute(qi,n)}});return v},YI=function(t,r,n){var o=L(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=Ps(i,s,a,d,c);return[u,a,f]},tx=Uj;var Kte=P(P(P({},ZC,KI),GC,wI),ex,YI);var Gj=(function(){function e(t,r){it(this,e),P(this,"name",void 0),P(this,"style",void 0),P(this,"_keyframe",!0),this.name=t,this.style=r}return at(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})(),Ct=Gj;function nu(e){return e.notSplit=!0,e}var tre={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:nu(["borderTop","borderBottom"]),borderBlockStart:nu(["borderTop"]),borderBlockEnd:nu(["borderBottom"]),borderInline:nu(["borderLeft","borderRight"]),borderInlineStart:nu(["borderLeft"]),borderInlineEnd:nu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var QI=E(I()),qj=(0,QI.createContext)({}),ou=qj;function Eh(e){return ih(e)||oh(e)||Kc(e)||ah()}function Sn(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Sn(e,t.slice(0,-1))?e:ZI(e,t,r,n)}function Kj(e){return ce(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function JI(e){return Array.isArray(e)?[]:{}}var Xj=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=Yj,e};var tT=E(I()),rT=(0,tT.createContext)(void 0);var au=E(I());var Qj={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},nT=Qj;var oT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Jj=N(N({},oT),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),iT=Jj;var Zj={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},_h=Zj;var eB={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},iT),timePickerLocale:Object.assign({},_h)},Ph=eB;var aT=Ph;var xo="${label} is not a valid ${type}",tB={locale:"en",Pagination:nT,DatePicker:Ph,TimePicker:_h,Calendar:aT,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xo,method:xo,array:xo,object:xo,number:xo,date:xo,boolean:xo,integer:xo,float:xo,regexp:xo,email:xo,url:xo,hex:xo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},wi=tB;var nx=Object.assign({},wi.Modal),Oh=[],sT=()=>Oh.reduce((e,t)=>Object.assign(Object.assign({},e),t),wi.Modal);function lT(e){if(e){let t=Object.assign({},e);return Oh.push(t),nx=sT(),()=>{Oh=Oh.filter(r=>r!==t),nx=sT()}}nx=Object.assign({},wi.Modal)}var cT=E(I()),rB=(0,cT.createContext)(void 0),iu=rB;var Ef=E(I());var nB=(e,t)=>{let r=Ef.useContext(iu),n=Ef.useMemo(()=>{var i;let a=t||wi[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=Ef.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?wi.locale:i},[r]);return[n,o]},Ea=nB;var uT="internalMark",oB=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;au.useEffect(()=>lT(t?.Modal),[t]);let o=au.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return au.createElement(iu.Provider,{value:o},r)},dT=oB;var LT=E(I());var ox={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"},iB=Object.assign(Object.assign({},ox),{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}),Ra=iB;var cn=Math.round;function ix(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var fT=(e,t,r)=>r===0?e:e/100;function Rf(e,t){let r=t||255;return e>r?r:e<0?0:e}var gt=class e{constructor(t){P(this,"isValid",!0),P(this,"r",0),P(this,"g",0),P(this,"b",0),P(this,"a",1),P(this,"_h",void 0),P(this,"_s",void 0),P(this,"_l",void 0),P(this,"_v",void 0),P(this,"_max",void 0),P(this,"_min",void 0),P(this,"_brightness",void 0);function r(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 n=i;let 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 e)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(r("rgb"))this.r=Rf(t.r),this.g=Rf(t.g),this.b=Rf(t.b),this.a=typeof t.a=="number"?Rf(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("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){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let 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){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:cn(i("r")),g:cn(i("g")),b:cn(i("b")),a:cn(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){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>cn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}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="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=cn(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(){let t=this.getHue(),r=cn(this.getSaturation()*100),n=cn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}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,r,n){let o=this.clone();return o[t]=Rf(r,n),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){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let f=cn(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let d=n-c/2;this.r=cn((i+d)*255),this.g=cn((a+d)*255),this.b=cn((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=cn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=cn(n*(1-r)*255),u=cn(n*(1-r*l)*255),d=cn(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=ix(t,fT);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=ix(t,fT);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=ix(t,(n,o)=>o.includes("%")?cn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Nh=2,pT=.16,aB=.05,sB=.05,lB=.15,vT=5,yT=4,cB=[{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 mT(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Nh*t:Math.round(e.h)+Nh*t:n=r?Math.round(e.h)+Nh*t:Math.round(e.h)-Nh*t,n<0?n+=360:n>=360&&(n-=360),n}function gT(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-pT*t:t===yT?n=e.s+pT:n=e.s+aB*t,n>1&&(n=1),r&&t===vT&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function hT(e,t,r){var n;return r?n=e.v+sB*t:n=e.v-lB*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ei(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new gt(e),o=n.toHsv(),i=vT;i>0;i-=1){var a=new gt({h:mT(o,i,!0),s:gT(o,i,!0),v:hT(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=yT;s+=1){var l=new gt({h:mT(o,s),s:gT(o,s),v:hT(o,s)});r.push(l)}return t.theme==="dark"?cB.map(function(c){var u=c.index,d=c.amount;return new gt(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var _a={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"},ax=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ax.primary=ax[5];var sx=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];sx.primary=sx[5];var lx=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];lx.primary=lx[5];var cx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];cx.primary=cx[5];var ux=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ux.primary=ux[5];var dx=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];dx.primary=dx[5];var fx=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fx.primary=fx[5];var px=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];px.primary=px[5];var $s=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$s.primary=$s[5];var mx=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];mx.primary=mx[5];var gx=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gx.primary=gx[5];var hx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];hx.primary=hx[5];var vx=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vx.primary=vx[5];var Ih={red:ax,volcano:sx,orange:lx,gold:cx,yellow:ux,lime:dx,green:fx,cyan:px,blue:$s,geekblue:mx,purple:gx,magenta:hx,grey:vx},bT=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];bT.primary=bT[5];var ST=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ST.primary=ST[5];var CT=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];CT.primary=CT[5];var xT=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];xT.primary=xT[5];var wT=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];wT.primary=wT[5];var ET=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ET.primary=ET[5];var RT=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];RT.primary=RT[5];var _T=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];_T.primary=_T[5];var PT=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];PT.primary=PT[5];var OT=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];OT.primary=OT[5];var NT=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];NT.primary=NT[5];var IT=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];IT.primary=IT[5];var TT=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];TT.primary=TT[5];function yx(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),m=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,g=t(y),p=new gt(m[1]).mix(new gt(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:p,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var uB=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},$T=uB;function bx(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},$T(n))}var dB=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},DT=dB;function su(e){return(e+8)/e}function Sx(e){let t=Array.from({length:10}).map((r,n)=>{let o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:su(r)}))}var fB=e=>{let t=Sx(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},AT=fB;function Cx(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var wo=(e,t)=>new gt(e).setA(t).toRgbString(),lu=(e,t)=>new gt(e).darken(t).toHexString();var kT=e=>{let t=Ei(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]}},MT=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:wo(n,.88),colorTextSecondary:wo(n,.65),colorTextTertiary:wo(n,.45),colorTextQuaternary:wo(n,.25),colorFill:wo(n,.15),colorFillSecondary:wo(n,.06),colorFillTertiary:wo(n,.04),colorFillQuaternary:wo(n,.02),colorBgSolid:wo(n,1),colorBgSolidHover:wo(n,.75),colorBgSolidActive:wo(n,.95),colorBgLayout:lu(r,4),colorBgContainer:lu(r,0),colorBgElevated:lu(r,0),colorBgSpotlight:wo(n,.85),colorBgBlur:"transparent",colorBorder:lu(r,15),colorBorderSecondary:lu(r,6)}};function xx(e){_a.pink=_a.magenta,Ih.pink=Ih.magenta;let t=Object.keys(ox).map(r=>{let n=e[r]===_a[r]?Ih[r]:Ei(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),yx(e,{generateColorPalettes:kT,generateNeutralColorPalettes:MT})),AT(e.fontSize)),Cx(e)),DT(e)),bx(e))}var pB=_s(xx),_f=pB;var Pf={token:Ra,override:{override:Ra},hashed:!0},Of=LT.default.createContext(Pf);var Th=E(I()),Ds="ant",Nf="anticon",wx=["outlined","borderless","filled","underlined"],mB=(e,t)=>t||(e?`${Ds}-${e}`:Ds),nt=Th.createContext({getPrefixCls:mB,iconPrefixCls:Nf}),{Consumer:gB}=nt,FT={};function Dn(e){let t=Th.useContext(nt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:FT,styles:FT},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var hB=`-ant-${Date.now()}-${Math.random()}`;function vB(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new gt(a),c=Ei(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");let a=new gt(t.primaryColor),s=Ei(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));let l=new gt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,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(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } `.trim()}function WT(e,t){let r=vB(e,t);Yt()&&bn(r,`${hB}-dynamic-theme`)}var cu=E(I()),Ex=cu.createContext(!1),zT=({children:e,disabled:t})=>{let r=cu.useContext(Ex);return cu.createElement(Ex.Provider,{value:t??r},e)},Hr=Ex;var _x=E(I());var uu=E(I()),Rx=uu.createContext(void 0),jT=({children:e,size:t})=>{let r=uu.useContext(Rx);return uu.createElement(Rx.Provider,{value:t||r},e)},Dl=Rx;function yB(){let e=(0,_x.useContext)(Hr),t=(0,_x.useContext)(Dl);return{componentDisabled:e,componentSize:t}}var BT=yB;var Lh=E(I());var bB=at(function e(){it(this,e)}),$h=bB;var VT="CALC_UNIT",SB=new RegExp(VT,"g");function Px(e){return typeof e=="number"?"".concat(e).concat(VT):e}var HT=(function(e){$r(r,e);var t=Dr(r);function r(n,o){var i;it(this,r),i=t.call(this),P(Xe(i),"result",""),P(Xe(i),"unitlessCssVar",void 0),P(Xe(i),"lowPriority",void 0);var a=ce(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=Px(n):a==="string"&&(i.result=n),i}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Px(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Px(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?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 r?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||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(SB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})($h);var CB=(function(e){$r(r,e);var t=Dr(r);function r(n){var o;return it(this,r),o=t.call(this),P(Xe(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})($h),UT=CB;var xB=function(t,r){var n=t==="css"?HT:UT;return function(o){return new n(o,r)}},Dh=xB;var wB=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Ox=wB;var Ah=E(I());function _t(e){var t=Ah.useRef();t.current=e;var r=Ah.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>NB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),KT=new IB;function TB(e,t){return XT.default.useMemo(function(){var r=KT.get(t);if(r)return r;var n=e();return KT.set(t,n),n},t)}var YT=TB;var $B=function(){return{}},QT=$B;function DB(e){var t=e.useCSP,r=t===void 0?QT:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,m,h,v){var y=Array.isArray(f)?f[0]:f;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},b=typeof s=="function"?s(f):{},S=N(N({},b),{},P({},g("zIndexPopup"),!0));Object.keys(p).forEach(function(R){S[g(R)]=p[R]});var C=N(N({},v),{},{unitless:S,prefixToken:g}),w=u(f,m,h,C),x=c(y,h,C);return function(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,_=w(R,O),T=L(_,2),$=T[1],D=x(O),M=L(D,2),A=M[0],F=M[1];return[A,$,F]}}function c(f,m,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,p=h.prefixToken,b=h.ignore,S=function(x){var R=x.rootCls,O=x.cssVar,_=O===void 0?{}:O,T=n(),$=T.realToken;return tx({path:[f],prefix:_.prefix,key:_.key,unitless:v,ignore:b,token:$,scope:R},function(){var D=$x(f,$,m),M=Ix(f,$,D,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(D).forEach(function(A){M[p(A)]=M[A],delete M[A]}),M}),null},C=function(x){var R=n(),O=R.cssVar;return[function(_){return g&&O?Lh.default.createElement(Lh.default.Fragment,null,Lh.default.createElement(S,{rootCls:x,cssVar:O,component:f}),_):_},O?.key]};return C}function u(f,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(f)?f:[f,f],g=L(y,1),p=g[0],b=y.join("-"),S=e.layer||{name:"antd"};return function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,x=n(),R=x.theme,O=x.realToken,_=x.hashId,T=x.token,$=x.cssVar,D=o(),M=D.rootPrefixCls,A=D.iconPrefixCls,F=r(),W=$?"css":"js",j=YT(function(){var k=new Set;return $&&Object.keys(v.unitless||{}).forEach(function(B){k.add(Qc(B,$.prefix)),k.add(Qc(B,Ox(p,$.prefix)))}),Dh(W,k)},[W,p,$?.prefix]),G=qT(W),q=G.max,H=G.min,U={theme:R,token:T,hashId:_,nonce:function(){return F.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof i=="function"&&Ts(N(N({},U),{},{clientOnly:!1,path:["Shared",M]}),function(){return i(T,{prefix:{rootPrefixCls:M,iconPrefixCls:A},csp:F})});var z=Ts(N(N({},U),{},{path:[b,C,A]}),function(){if(v.injectStyle===!1)return[];var k=Mh(T),B=k.token,V=k.flush,oe=$x(p,O,h),J=".".concat(C),Q=Ix(p,O,oe,{deprecatedTokens:v.deprecatedTokens});$&&oe&&ce(oe)==="object"&&Object.keys(oe).forEach(function(ee){oe[ee]="var(".concat(Qc(ee,Ox(p,$.prefix)),")")});var pe=ct(B,{componentCls:J,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(M),calc:j,max:q,min:H},$?oe:Q),Z=m(pe,{hashId:_,prefixCls:C,rootPrefixCls:M,iconPrefixCls:A});V(p,Q);var K=typeof a=="function"?a(pe,C,w,v.resetFont):null;return[v.resetStyle===!1?null:K,Z]});return[z,_]}}function d(f,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(f,m,h,N({resetStyle:!1,order:-998},v)),g=function(b){var S=b.prefixCls,C=b.rootCls,w=C===void 0?S:C;return y(S,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}var Dx=DB;var Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var t2=E(I());var JT="5.29.1";var ZT=JT;function Ax(e){return e>=0&&e<=255}function AB(e,t){let{r,g:n,b:o,a:i}=new gt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Ax(u)&&Ax(d)&&Ax(f))return new gt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new gt({r,g:n,b:o,a:1}).toRgbString()}var Al=AB;var kB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{delete n[f]});let o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new gt("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)"}),n)}var e2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let n=r.getDerivativeToken(e),{override:o}=t,i=e2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=Fh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=e2(l,["theme"]),d=u;c&&(d=r2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function yr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=t2.default.useContext(Of),i=`${ZT}-${t||""}`,a=r||_f,[s,l,c]=fh(a,[Ra,e],{salt:i,override:n,getComputedToken:r2,formatToken:Fh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:kx,ignore:MB,preserve:LB}});return[a,c,t?l:"",s,o]}var Lx=E(I());var Oa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=(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}),Na=()=>({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"}}),fu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n2=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"}}}),o2=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},Mx=(e,t)=>({outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),i2=(e,t)=>({"&:focus-visible":Mx(e,t)}),Wh=e=>({[`.${e}`]:Object.assign(Object.assign({},Na()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:qt,genComponentStyleHook:Fx,genSubStyleComponent:Wx}=Dx({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,Lx.useContext)(nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=yr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,Lx.useContext)(nt);return e??{}},getResetStyles:(e,t)=>{var r;let n=n2(e);return[n,{"&":n},Wh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Nf)]},getCommonStyle:o2,getCompUnitless:()=>kx});function zh(e,t){return Eo.reduce((r,n)=>{let o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var FB=(e,t)=>{let[r,n]=yr();return Ts({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Wh(e))},jh=FB;var WB=E(I()),zB=Object.assign({},WB),{useId:a2}=zB,jB=()=>"",BB=typeof a2>"u"?jB:a2,s2=BB;function zx(e,t,r){var n,o;let i=Rh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Pf),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Pf.hashed,cssVar:t?.cssVar}):t,l=s2();return Ui(()=>{var c,u;if(!e)return t;let d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});let f=`css-var-${l.replace(/:/g,"")}`,m=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:m})},[a,s],(c,u)=>c.some((d,f)=>{let m=u[f];return!Rs(d,m,!0)}))}var $a=E(I());var w2=E($e());var io=E(I()),Xx=E(I());var Bh=E(I()),VB=["children"],jx=Bh.createContext({});function Vh(e){var t=e.children,r=ze(e,VB);return Bh.createElement(jx.Provider,{value:r},t)}var l2=E(I()),HB=(function(e){$r(r,e);var t=Dr(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r})(l2.Component),c2=HB;var Hh=E(I());function Bx(e){var t=Hh.useReducer(function(s){return s+1},0),r=L(t,2),n=r[1],o=Hh.useRef(e),i=_t(function(){return o.current}),a=_t(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var Zh=E(I()),Ta=E(I());var Ki="none",If="appear",Tf="enter",$f="leave",Vx="none",oo="prepare",Ia="start",As="active",Uh="end",Gh="prepared";var h2=E(I()),v2=E(I());function u2(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function UB(e,t){var r={animationend:u2("Animation","AnimationEnd"),transitionend:u2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var GB=UB(Yt(),typeof window<"u"?window:{}),f2={};Yt()&&(d2=document.createElement("div"),f2=d2.style);var d2,qh={};function p2(e){if(qh[e])return qh[e];var t=GB[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=dt(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return Qh.useEffect(function(){return function(){t()}},[]),[r,t]});var KB=[oo,Ia,As,Uh],XB=[oo,Gh],qx=!1,C2=!0;function Jh(e){return e===As||e===Uh}var x2=(function(e,t,r){var n=Pa(Vx),o=L(n,2),i=o[0],a=o[1],s=b2(),l=L(s,2),c=l[0],u=l[1];function d(){a(oo,!0)}var f=t?XB:KB;return Yh(function(){if(i!==Vx&&i!==Uh){var m=f.indexOf(i),h=f[m+1],v=r(i);v===qx?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),S2.useEffect(function(){return function(){u()}},[]),[d,i]});function Kx(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,m=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,g=n.onLeaveStart,p=n.onAppearActive,b=n.onEnterActive,S=n.onLeaveActive,C=n.onAppearEnd,w=n.onEnterEnd,x=n.onLeaveEnd,R=n.onVisibleChanged,O=Pa(),_=L(O,2),T=_[0],$=_[1],D=Bx(Ki),M=L(D,2),A=M[0],F=M[1],W=Pa(null),j=L(W,2),G=j[0],q=j[1],H=A(),U=(0,Ta.useRef)(!1),z=(0,Ta.useRef)(null);function k(){return r()}var B=(0,Ta.useRef)(!1);function V(){F(Ki),q(null,!0)}var oe=_t(function(we){var Re=A();if(Re!==Ki){var ve=k();if(!(we&&!we.deadline&&we.target!==ve)){var Y=B.current,Ne;Re===If&&Y?Ne=C?.(ve,we):Re===Tf&&Y?Ne=w?.(ve,we):Re===$f&&Y&&(Ne=x?.(ve,we)),Y&&Ne!==!1&&V()}}}),J=y2(oe),Q=L(J,1),pe=Q[0],Z=function(Re){switch(Re){case If:return P(P(P({},oo,f),Ia,v),As,p);case Tf:return P(P(P({},oo,m),Ia,y),As,b);case $f:return P(P(P({},oo,h),Ia,g),As,S);default:return{}}},K=Zh.useMemo(function(){return Z(H)},[H]),ee=x2(H,!e,function(we){if(we===oo){var Re=K[oo];return Re?Re(k()):qx}if(X in K){var ve;q(((ve=K[X])===null||ve===void 0?void 0:ve.call(K,k(),null))||null)}return X===As&&H!==Ki&&(pe(k()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){oe({deadline:!0})},u))),X===Gh&&V(),C2}),ae=L(ee,2),te=ae[0],X=ae[1],de=Jh(X);B.current=de;var fe=(0,Ta.useRef)(null);Yh(function(){if(!(U.current&&fe.current===t)){$(t);var we=U.current;U.current=!0;var Re;!we&&t&&s&&(Re=If),we&&t&&i&&(Re=Tf),(we&&!t&&c||!we&&d&&!t&&c)&&(Re=$f);var ve=Z(Re);Re&&(e||ve[oo])?(F(Re),te()):F(Ki),fe.current=t}},[t]),(0,Ta.useEffect)(function(){(H===If&&!s||H===Tf&&!i||H===$f&&!c)&&F(Ki)},[s,i,c]),(0,Ta.useEffect)(function(){return function(){U.current=!1,clearTimeout(z.current)}},[]);var se=Zh.useRef(!1);(0,Ta.useEffect)(function(){T&&(se.current=!0),T!==void 0&&H===Ki&&((se.current||T)&&R?.(T),se.current=!0)},[T,H]);var Ee=G;return K[oo]&&X===Ia&&(Ee=N({transition:"none"},Ee)),[H,X,Ee,T??t]}function YB(e){var t=e;ce(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=io.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,m=o.leavedClassName,h=o.eventProps,v=io.useContext(jx),y=v.motion,g=r(o,y),p=(0,Xx.useRef)(),b=(0,Xx.useRef)();function S(){try{return p.current instanceof HTMLElement?p.current:Pl(b.current)}catch{return null}}var C=Kx(g,s,S,o),w=L(C,4),x=w[0],R=w[1],O=w[2],_=w[3],T=io.useRef(_);_&&(T.current=!0);var $=io.useCallback(function(j){p.current=j,gf(i,j)},[i]),D,M=N(N({},h),{},{visible:s});if(!d)D=null;else if(x===Ki)_?D=d(N({},M),$):!c&&T.current&&m?D=d(N(N({},M),{},{className:m}),$):u||!c&&!m?D=d(N(N({},M),{},{style:{display:"none"}}),$):D=null;else{var A;R===oo?A="prepare":Jh(R)?A="active":R===Ia&&(A="start");var F=Gx(f,"".concat(x,"-").concat(A));D=d(N(N({},M),{},{className:(0,w2.default)(Gx(f,x),P(P({},F,F&&A),f,typeof f=="string")),style:O}),$)}if(io.isValidElement(D)&&bi(D)){var W=Cs(D);W||(D=io.cloneElement(D,{ref:$}))}return io.createElement(c2,{ref:b},D)});return n.displayName="CSSMotion",n}var ev=YB(Kh);var kl=E(I());var tv="add",rv="keep",nv="remove",iv="removed";function QB(e){var t;return e&&ce(e)==="object"&&"key"in e?t=e:t={key:e},N(N({},t),{},{key:String(t.key)})}function ov(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(QB)}function E2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=ov(e),a=ov(t);i.forEach(function(c){for(var u=!1,d=n;d1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==nv}),r.forEach(function(u){u.key===c&&(u.status=rv)})}),r}var JB=["component","children","onVisibleChanged","onAllRemoved"],ZB=["status"],e5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function t5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ev,r=(function(n){$r(i,n);var o=Dr(i);function i(){var a;it(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var n5=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}var u5=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(P2=t),r!==void 0&&(i5=r),"holderRender"in e&&(s5=o),n&&(c5(n)?WT(l5(),n):a5=n)};var d5=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:p,theme:b,componentDisabled:S,segmented:C,statistic:w,spin:x,calendar:R,carousel:O,cascader:_,collapse:T,typography:$,checkbox:D,descriptions:M,divider:A,drawer:F,skeleton:W,steps:j,image:G,layout:q,list:H,mentions:U,modal:z,progress:k,result:B,slider:V,breadcrumb:oe,menu:J,pagination:Q,input:pe,textArea:Z,empty:K,badge:ee,radio:ae,rate:te,switch:X,transfer:de,avatar:fe,message:se,tag:Ee,table:we,card:Re,tabs:ve,timeline:Y,timePicker:Ne,upload:Ue,notification:Ze,tree:Ae,colorPicker:De,datePicker:je,rangePicker:Ie,flex:We,wave:Te,dropdown:_e,warning:Ge,tour:Ce,tooltip:he,popover:Be,popconfirm:Le,floatButton:rt,floatButtonGroup:St,variant:pt,inputNumber:ke,treeSelect:be}=e,qe=sr.useCallback((Ve,wt)=>{let{prefixCls:Dt}=e;if(wt)return wt;let Ft=Dt||g.getPrefixCls("");return Ve?`${Ft}-${Ve}`:Ft},[g.getPrefixCls,e.prefixCls]),Pe=p||g.iconPrefixCls||Nf,vt=r||g.csp;jh(Pe,vt);let yt=zx(b,g.theme,{prefixCls:qe("")}),Qe={csp:vt,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:qe,iconPrefixCls:Pe,theme:yt,segmented:C,statistic:w,spin:x,calendar:R,carousel:O,cascader:_,collapse:T,typography:$,checkbox:D,descriptions:M,divider:A,drawer:F,skeleton:W,steps:j,image:G,input:pe,textArea:Z,layout:q,list:H,mentions:U,modal:z,progress:k,result:B,slider:V,breadcrumb:oe,menu:J,pagination:Q,empty:K,badge:ee,radio:ae,rate:te,switch:X,transfer:de,avatar:fe,message:se,tag:Ee,table:we,card:Re,tabs:ve,timeline:Y,timePicker:Ne,upload:Ue,notification:Ze,tree:Ae,colorPicker:De,datePicker:je,rangePicker:Ie,flex:We,wave:Te,dropdown:_e,warning:Ge,tour:Ce,tooltip:he,popover:Be,popconfirm:Le,floatButton:rt,floatButtonGroup:St,variant:pt,inputNumber:ke,treeSelect:be},ut=Object.assign({},g);Object.keys(Qe).forEach(Ve=>{Qe[Ve]!==void 0&&(ut[Ve]=Qe[Ve])}),o5.forEach(Ve=>{let wt=e[Ve];wt&&(ut[Ve]=wt)}),typeof n<"u"&&(ut.button=Object.assign({autoInsertSpace:n},ut.button));let It=Ui(()=>ut,ut,(Ve,wt)=>{let Dt=Object.keys(Ve),Ft=Object.keys(wt);return Dt.length!==Ft.length||Dt.some(At=>Ve[At]!==wt[At])}),{layer:Oe}=sr.useContext(xi),ue=sr.useMemo(()=>({prefixCls:Pe,csp:vt,layer:Oe?"antd":void 0}),[Pe,vt,Oe]),ie=sr.createElement(sr.Fragment,null,sr.createElement(_2,{dropdownMatchSelectWidth:m}),t),ye=sr.useMemo(()=>{var Ve,wt,Dt,Ft;return wa(((Ve=wi.Form)===null||Ve===void 0?void 0:Ve.defaultValidateMessages)||{},((Dt=(wt=It.locale)===null||wt===void 0?void 0:wt.Form)===null||Dt===void 0?void 0:Dt.defaultValidateMessages)||{},((Ft=It.form)===null||Ft===void 0?void 0:Ft.validateMessages)||{},a?.validateMessages||{})},[It,a?.validateMessages]);Object.keys(ye).length>0&&(ie=sr.createElement(rT.Provider,{value:ye},ie)),s&&(ie=sr.createElement(dT,{locale:s,_ANT_MARK__:uT},ie)),(Pe||vt)&&(ie=sr.createElement(ou.Provider,{value:ue},ie)),l&&(ie=sr.createElement(jT,{size:l},ie)),ie=sr.createElement(Qx,null,ie);let et=sr.useMemo(()=>{let Ve=yt||{},{algorithm:wt,token:Dt,components:Ft,cssVar:At}=Ve,kr=n5(Ve,["algorithm","token","components","cssVar"]),pr=wt&&(!Array.isArray(wt)||wt.length>0)?_s(wt):_f,mr={};Object.entries(Ft||{}).forEach(([Qt,Or])=>{let xe=Object.assign({},Or);"algorithm"in xe&&(xe.algorithm===!0?xe.theme=pr:(Array.isArray(xe.algorithm)||typeof xe.algorithm=="function")&&(xe.theme=_s(xe.algorithm)),delete xe.algorithm),mr[Qt]=xe});let mn=Object.assign(Object.assign({},Ra),Dt);return Object.assign(Object.assign({},kr),{theme:pr,token:mn,components:mr,override:Object.assign({override:mn},mr),cssVar:At})},[yt]);return b&&(ie=sr.createElement(Of.Provider,{value:et},ie)),It.warning&&(ie=sr.createElement(eT.Provider,{value:It.warning},ie)),S!==void 0&&(ie=sr.createElement(zT,{disabled:S},ie)),sr.createElement(nt.Provider,{value:It},ie)},pu=e=>{let t=sr.useContext(nt),r=sr.useContext(iu);return sr.createElement(d5,Object.assign({parentContext:t,legacyLocale:r},e))};pu.ConfigContext=nt;pu.SizeContext=Dl;pu.config=u5;pu.useConfig=BT;Object.defineProperty(pu,"SizeContext",{get:()=>Dl});var Da=pu;var uv=E(I());var f5={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"},O2=f5;var Fl=E(I()),k2=E($e());var D2=E(I());function N2(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function p5(e){return N2(e)instanceof ShadowRoot}function Ml(e){return p5(e)?N2(e):null}var Ll=E(I());function m5(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function T2(e,t){Bt(e,"[@ant-design/icons] ".concat(t))}function Jx(e){return ce(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ce(e.icon)==="object"||typeof e.icon=="function")}function I2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[m5(r)]=n}return t},{})}function av(e,t,r){return r?Ll.default.createElement(e.tag,N(N({key:t},I2(e.attrs)),r),(e.children||[]).map(function(n,o){return av(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Ll.default.createElement(e.tag,N({key:t},I2(e.attrs)),(e.children||[]).map(function(n,o){return av(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Zx(e){return Ei(e)[0]}function sv(e){return e?Array.isArray(e)?e:[e]:[]}var g5=` .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); } } `,$2=function(t){var r=(0,Ll.useContext)(ou),n=r.csp,o=r.prefixCls,i=r.layer,a=g5;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),(0,Ll.useEffect)(function(){var s=t.current,l=Ml(s);bn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var h5=["icon","className","onClick","style","primaryColor","secondaryColor"],Df={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function v5(e){var t=e.primaryColor,r=e.secondaryColor;Df.primaryColor=t,Df.secondaryColor=r||Zx(t),Df.calculated=!!r}function y5(){return N({},Df)}var lv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=ze(t,h5),c=D2.useRef(),u=Df;if(a&&(u={primaryColor:a,secondaryColor:s||Zx(a)}),$2(c),T2(Jx(r),"icon should be icon definiton, but got ".concat(r)),!Jx(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=N(N({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),av(d.icon,"svg-".concat(d.name),N(N({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};lv.displayName="IconReact";lv.getTwoToneColors=y5;lv.setTwoToneColors=v5;var Af=lv;function ew(e){var t=sv(e),r=L(t,2),n=r[0],o=r[1];return Af.setTwoToneColors({primaryColor:n,secondaryColor:o})}function A2(){var e=Af.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var b5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ew($s.primary);var cv=Fl.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ze(e,b5),u=Fl.useContext(ou),d=u.prefixCls,f=d===void 0?"anticon":d,m=u.rootClassName,h=(0,k2.default)(m,f,P(P({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=sv(l),p=L(g,2),b=p[0],S=p[1];return Fl.createElement("span",le({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Fl.createElement(Af,{icon:n,primaryColor:b,secondaryColor:S,style:y}))});cv.displayName="AntdIcon";cv.getTwoToneColor=A2;cv.setTwoToneColor=ew;var Wt=cv;var S5=function(t,r){return uv.createElement(Wt,le({},t,{ref:r,icon:O2}))},C5=uv.forwardRef(S5),M2=C5;var dv=E(I());var x5={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"},L2=x5;var w5=function(t,r){return dv.createElement(Wt,le({},t,{ref:r,icon:L2}))},E5=dv.forwardRef(w5),mu=E5;var fv=E(I());var R5={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"},F2=R5;var _5=function(t,r){return fv.createElement(Wt,le({},t,{ref:r,icon:F2}))},P5=fv.forwardRef(_5),pv=P5;var O5=`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`,N5=`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`,I5="".concat(O5," ").concat(N5).split(/[\s\n]+/),T5="aria-",$5="data-";function W2(e,t){return e.indexOf(t)===0}function qo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=N({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||W2(o,T5))||r.data&&W2(o,$5)||r.attr&&I5.includes(o))&&(n[o]=e[o])}),n}var kf=E(I());function mv(e){return e&&kf.default.isValidElement(e)&&e.type===kf.default.Fragment}var D5=(e,t,r)=>kf.default.isValidElement(e)?kf.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Ko(e,t){return D5(e,e,t)}var A5=e=>{let[,,,,t]=yr();return t?`${e}-css-var`:""},Xo=A5;var st={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=st.F1&&r<=st.F12)return!1;switch(r){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=st.ZERO&&t<=st.NINE||t>=st.NUM_ZERO&&t<=st.NUM_MULTIPLY||t>=st.A&&t<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ye=st;var gv=E(I());var k5={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"},z2=k5;var M5=function(t,r){return gv.createElement(Wt,le({},t,{ref:r,icon:z2}))},L5=gv.forwardRef(M5),Wl=L5;var j2=E(I()),B2=()=>j2.default.useReducer(e=>e+1,0);var H2=E(I());var V2=E(I()),F5=V2.default.createContext(void 0),hv=F5;var Aa=100,W5=10,z5=Aa*W5,wce=z5+Aa,U2={Modal:Aa,Drawer:Aa,Popover:Aa,Popconfirm:Aa,Tooltip:Aa,Tour:Aa,FloatButton:Aa},j5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function B5(e){return e in U2}var vv=(e,t)=>{let[,r]=yr(),n=H2.default.useContext(hv),o=B5(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+U2[e]:a+=j5[e],i=[n===void 0?t:a,a]}return i};var Y5=E(I()),eue=E(Hi());function yv(e,t){this.v=e,this.k=t}function un(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}un=function(a,s,l,c){function u(d,f){un(a,d,function(m){return this._invoke(d,f,m)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},un(e,t,r,n)}function Mf(){var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(m,h,v,y){var g=h&&h.prototype instanceof s?h:s,p=Object.create(g.prototype);return un(p,"_invoke",(function(b,S,C){var w,x,R,O=0,_=C||[],T=!1,$={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(A,F){return w=A,x=0,R=e,$.n=F,a}};function D(M,A){for(x=M,R=A,t=0;!T&&O&&!F&&t<_.length;t++){var F,W=_[t],j=$.p,G=W[2];M>3?(F=G===A)&&(R=W[(x=W[4])?5:(x=3,3)],W[4]=W[5]=e):W[0]<=j&&((F=M<2&&jA||A>G)&&(W[4]=M,W[5]=A,$.n=G,x=0))}if(F||M>1)return a;throw T=!0,A}return function(M,A,F){if(O>1)throw TypeError("Generator is already running");for(T&&A===1&&D(A,F),x=A,R=F;(t=x<2?e:R)||!T;){w||(x?x<3?(x>1&&($.n=-1),D(x,R)):$.n=R:$.v=R);try{if(O=2,w){if(x||(M="next"),t=w[M]){if(!(t=t.call(w,R)))throw TypeError("iterator result is not an object");if(!t.done)return t;R=t.value,x<2&&(x=0)}else x===1&&(t=w.return)&&t.call(w),x<2&&(R=TypeError("The iterator does not provide a '"+M+"' method"),x=1);w=e}else if((t=(T=$.n<0)?R:b.call(S,$))!==a)break}catch(W){w=e,x=1,R=W}finally{O=1}}return{value:t,done:T}}})(m,v,y),!0),p}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(un(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,un(m,o,"GeneratorFunction")),m.prototype=Object.create(d),m}return l.prototype=c,un(d,"constructor",c),un(c,"constructor",l),l.displayName="GeneratorFunction",un(c,o,"GeneratorFunction"),un(d),un(d,o,"Generator"),un(d,n,function(){return this}),un(d,"toString",function(){return"[object Generator]"}),(Mf=function(){return{w:i,m:f}})()}function gu(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof yv?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(un(gu.prototype),un(gu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),un(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function bv(e,t,r,n,o){return new gu(Mf().w(e,t,r,n),o||Promise)}function G2(e,t,r,n,o){var i=bv(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function q2(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function tw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ce(e)+" is not iterable")}function Pt(){"use strict";var e=Mf(),t=e.m(Pt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,m){return s.resultName=f,l(c.d,tw(d),m)},finish:function(d){return l(c.f,d)}},l=function(d,f,m){c.p=s.prev,c.n=s.next;try{return d(f,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Pt=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new yv(l,c)},AsyncIterator:gu,async:function(l,c,u,d,f){return(n(c)?bv:G2)(i(l),c,u,d,f)},keys:q2,values:tw}})()}function K2(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){K2(i,n,o,a,s,"next",l)}function s(l){K2(i,n,o,a,s,"throw",l)}a(void 0)})}}var V5=E(Hi()),Lf=N({},V5),H5=Lf.version,rw=Lf.render,U5=Lf.unmountComponentAtNode,Cv;try{X2=Number((H5||"").split(".")[0]),X2>=18&&(Cv=Lf.createRoot)}catch{}var X2;function Y2(e){var t=Lf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ce(t)==="object"&&(t.usingClientEntryPoint=e)}var Sv="__rc_react_root__";function G5(e,t){Y2(!0);var r=t[Sv]||Cv(t);Y2(!1),r.render(e),t[Sv]=r}function q5(e,t){rw?.(e,t)}function Q2(e,t){if(Cv){G5(e,t);return}q5(e,t)}function K5(e){return nw.apply(this,arguments)}function nw(){return nw=Ur(Pt().mark(function e(t){return Pt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Sv])===null||o===void 0||o.unmount(),delete t[Sv]}));case 1:case"end":return n.stop()}},e)})),nw.apply(this,arguments)}function X5(e){U5(e)}function J2(e){return ow.apply(this,arguments)}function ow(){return ow=Ur(Pt().mark(function e(t){return Pt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Cv===void 0){n.next=2;break}return n.abrupt("return",K5(t));case 2:X5(t);case 3:case"end":return n.stop()}},e)})),ow.apply(this,arguments)}var Q5=(e,t)=>(Q2(e,t),()=>J2(t)),Z2=Q5;function e$(e){return e&&(Z2=e),Z2}var iw=()=>({height:0,opacity:0}),t$=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},J5=e=>({height:e?e.offsetHeight:0}),aw=(e,t)=>t?.deadline===!0||t.propertyName==="height",Z5=(e=Ds)=>({motionName:`${e}-motion-collapse`,onAppearStart:iw,onEnterStart:iw,onAppearActive:t$,onEnterActive:t$,onLeaveStart:J5,onLeaveActive:iw,onAppearEnd:aw,onEnterEnd:aw,onLeaveEnd:aw,motionDeadline:500});var xv=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var r$=Z5;var Ht=E(I()),Vv=E($e());function Gr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var zl=E(I()),l$=E($e());var wv=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1});var eV=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},n$=Fx("Wave",eV);var Ev=E(I());var hu=`${Ds}-wave-target`;var dn=E(I()),i$=E($e());function tV(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 o$(e){var t;let{borderTopColor:r,borderColor:n,backgroundColor:o}=getComputedStyle(e);return(t=[r,n,o].find(tV))!==null&&t!==void 0?t:null}function sw(e){return Number.isNaN(e)?0:e}var rV=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=dn.useRef(null),a=dn.useRef(null);dn.useEffect(()=>{a.current=o()},[]);let[s,l]=dn.useState(null),[c,u]=dn.useState([]),[d,f]=dn.useState(0),[m,h]=dn.useState(0),[v,y]=dn.useState(0),[g,p]=dn.useState(0),[b,S]=dn.useState(!1),C={left:d,top:m,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(C["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(o$(r));let O=R.position==="static",{borderLeftWidth:_,borderTopWidth:T}=R;f(O?r.offsetLeft:sw(-Number.parseFloat(_))),h(O?r.offsetTop:sw(-Number.parseFloat(T))),y(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:$,borderTopRightRadius:D,borderBottomLeftRadius:M,borderBottomRightRadius:A}=R;u([$,D,A,M].map(F=>sw(Number.parseFloat(F))))}if(dn.useEffect(()=>{if(r){let R=dt(()=>{w(),S(!0)}),O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(w),O.observe(r)),()=>{dt.cancel(R),O?.disconnect()}}},[r]),!b)return null;let x=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(hu);return dn.createElement(Go,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,O)=>{var _,T;if(O.deadline||O.propertyName==="opacity"){let $=(_=i.current)===null||_===void 0?void 0:_.parentElement;(T=a.current)===null||T===void 0||T.call(a).then(()=>{$?.remove()})}return!1}},({className:R},O)=>dn.createElement("div",{ref:Wr(i,O),className:(0,i$.default)(t,R,{"wave-quick":x}),style:C}))},nV=(e,t)=>{var r;let{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);let i=e$(),a=null;function s(){return a}a=i(dn.createElement(rV,Object.assign({},t,{target:e,registerUnmount:s})),o)},a$=nV;var oV=(e,t,r)=>{let{wave:n}=Ev.useContext(nt),[,o,i]=yr(),a=_t(c=>{let u=e.current;if(n?.disabled||!u)return;let d=u.querySelector(`.${hu}`)||u,{showEffect:f}=n||{};(f||a$)(d,{className:t,token:o,component:r,event:c,hashId:i})}),s=Ev.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},s$=oV;var iV=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,zl.useContext)(nt),i=(0,zl.useRef)(null),a=o("wave"),[,s]=n$(a),l=s$(i,(0,l$.default)(a,s),n);if(zl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||r)return;let d=f=>{!wv(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[r]),!zl.default.isValidElement(t))return t??null;let c=bi(t)?Wr(Cs(t),i):i;return Ko(t,{ref:c})},Rv=iV;var lw=E(I());var aV=e=>{let t=lw.default.useContext(Dl);return lw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ao=aV;var ks=E(I()),c$=E($e());var u$=ks.createContext(null),Yo=(e,t)=>{let r=ks.useContext(u$),n=ks.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,c$.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},d$=e=>{let{children:t}=e;return ks.createElement(u$.Provider,{value:null},t)};var ka=E(I()),f$=E($e());var sV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:t,direction:r}=ka.useContext(nt),{prefixCls:n,size:o,className:i}=e,a=sV(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=yr(),c=ka.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,f$.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return ka.createElement(cw.Provider,{value:o},ka.createElement("div",Object.assign({},a,{className:u})))},p$=lV;var vu=E(I());var m$=/^[\u4E00-\u9FA5]{2}$/,_v=m$.test.bind(m$);function g$(e){return typeof e=="string"}function Pv(e){return e==="text"||e==="link"}function cV(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&g$(e.type)&&_v(e.props.children)?Ko(e,{children:e.props.children.split("").join(r)}):g$(e)?_v(e)?vu.default.createElement("span",null,e.split("").join(r)):vu.default.createElement("span",null,e):mv(e)?vu.default.createElement("span",null,e):e}function h$(e,t){let r=!1,n=[];return vu.default.Children.forEach(e,o=>{let i=typeof o,a=i==="string"||i==="number";if(r&&a){let s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),vu.default.Children.map(n,o=>cV(o,t))}var Vue=["default","primary","danger"].concat(re(Eo));var Ms=E(I());var fw=E($e());var Ov=E(I()),v$=E($e()),uV=(0,Ov.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,v$.default)(`${i}-icon`,r);return Ov.default.createElement("span",{ref:t,className:a,style:n},o)}),Ff=uV;var y$=(0,Ms.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,fw.default)(`${r}-loading-icon`,n);return Ms.default.createElement(Ff,{prefixCls:r,className:a,style:o,ref:t},Ms.default.createElement(Wl,{className:i}))}),uw=()=>({width:0,opacity:0,transform:"scale(0)"}),dw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dV=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?Ms.default.createElement(y$,{prefixCls:t,className:o,style:i}):Ms.default.createElement(Go,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:uw,onAppearActive:dw,onEnterStart:uw,onEnterActive:dw,onLeaveStart:dw,onLeaveActive:uw},({className:l,style:c},u)=>{let d=Object.assign(Object.assign({},i),c);return Ms.default.createElement(y$,{prefixCls:t,className:(0,fw.default)(o,l),style:d,ref:u})})},b$=dV;var S$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fV=e=>{let{componentCls:t,fontSize:r,lineWidth:n,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(n).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:r}},S$(`${t}-primary`,o),S$(`${t}-danger`,i)]}},C$=fV;var hw=E(I());var pV=["b"],mV=["v"],pw=function(t){return Math.round(Number(t||0))},gV=function(t){if(t instanceof gt)return t;if(t&&ce(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ze(r,pV);return N(N({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ro=(function(e){$r(r,e);var t=Dr(r);function r(n){return it(this,r),t.call(this,gV(n))}return at(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=pw(o.s*100),a=pw(o.b*100),s=pw(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=ze(o,mV);return N(N({},a),{},{b:i,a:this.a})}}]),r})(gt);var mw=function(t){return t instanceof Ro?t:new Ro(t)},hV=mw("#1677ff");var TV=E($e());var vV=E($e()),yV=E(I());var w$=E(I());var gw=E(I());var bV=E($e()),SV=E(I());var CV=E(I());var x$=E(I());var OV=E(I());var IV=E(I());var R$=E(I());var NV=E($e());var E$=E(I());var $V=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",DV=(e,t)=>e?$V(e,t):"",Wf=(function(){function e(t){it(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Ro(this.colors[0].color.metaColor)):this.metaColor=new Ro(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return DV(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{let i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])})();var J$=E(I());var zV=E($e());var AV=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),vw=AV;var kV=e=>({animationDuration:e,animationFillMode:"both"}),MV=e=>({animationDuration:e,animationFillMode:"both"}),Ls=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},kV(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},MV(n)),{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:r,animationPlayState:"running",pointerEvents:"none"}}};var P$=new Ct("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),O$=new Ct("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),yw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[Ls(n,P$,O$,e.motionDurationMid,t),{[` ${o}${n}-enter, ${o}${n}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var N$=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I$=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),T$=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$$=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D$=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A$=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),k$=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M$=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),LV={"move-up":{inKeyframes:k$,outKeyframes:M$},"move-down":{inKeyframes:N$,outKeyframes:I$},"move-left":{inKeyframes:T$,outKeyframes:$$},"move-right":{inKeyframes:D$,outKeyframes:A$}},Nv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=LV[t];return[Ls(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Iv=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Tv=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$v=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Dv=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),L$=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),F$=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),W$=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),z$=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),FV={"slide-up":{inKeyframes:Iv,outKeyframes:Tv},"slide-down":{inKeyframes:$v,outKeyframes:Dv},"slide-left":{inKeyframes:L$,outKeyframes:F$},"slide-right":{inKeyframes:W$,outKeyframes:z$}},Av=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=FV[t];return[Ls(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var j$=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B$=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bw=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sw=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),V$=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),H$=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),U$=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),G$=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),q$=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),K$=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),X$=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Y$=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),WV={zoom:{inKeyframes:j$,outKeyframes:B$},"zoom-big":{inKeyframes:bw,outKeyframes:Sw},"zoom-big-fast":{inKeyframes:bw,outKeyframes:Sw},"zoom-left":{inKeyframes:U$,outKeyframes:G$},"zoom-right":{inKeyframes:q$,outKeyframes:K$},"zoom-up":{inKeyframes:V$,outKeyframes:H$},"zoom-down":{inKeyframes:X$,outKeyframes:Y$}},Cw=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=WV[t];return[Ls(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Q$=e=>e instanceof Wf?e:new Wf(e);var Z$=(e,t)=>{let{r,g:n,b:o,a:i}=e.toRgb(),a=new Ro(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192};var kv=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ct(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Mv=e=>{var t,r,n,o,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:su(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:su(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:su(c),m=Z$(new Wf(e.colorBgSolid),"#fff")?"#000":"#fff",h=Eo.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${ne(e.controlOutlineWidth)} 0 ${Al(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})};var jV=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ne(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`]:Na(),"> a":{color:"currentColor"},"&:not(:disabled)":i2(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{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:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},eD=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),BV=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),VV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Lv=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},eD(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),HV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VV(e))}),UV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Fv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?UV:HV;return Object.assign(Object.assign({},i(e)),eD(e.componentCls,t,r))},Wv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Fv(e,n,o))}),zv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Fv(e,n,o))}),jv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Bv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Fv(e,r,n))}),Xi=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Fv(e,n,o,r))}),GV=e=>{let{componentCls:t}=e;return Eo.reduce((r,n)=>{let o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},Wv(e,e.colorTextLightSolid,o,{background:a},{background:c})),zv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),jv(e)),Bv(e,i,{color:o,background:s},{color:o,background:l})),Xi(e,o,"link",{color:a},{color:c})),Xi(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},qV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Wv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),jv(e)),Bv(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Lv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Xi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),KV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},zv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),jv(e)),Bv(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Xi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Xi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Lv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),XV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Wv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),zv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jv(e)),Bv(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Xi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Xi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Lv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),YV=e=>Object.assign(Object.assign({},Xi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Lv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),QV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:qV(e),[`${t}-color-primary`]:KV(e),[`${t}-color-dangerous`]:XV(e),[`${t}-color-link`]:YV(e)},GV(e))},JV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},zv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Wv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Xi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xw=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${ne(l)} ${ne(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:BV(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},ZV=e=>{let t=ct(e,{fontSize:e.contentFontSize});return xw(t,e.componentCls)},e6=e=>{let t=ct(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return xw(t,`${e.componentCls}-sm`)},t6=e=>{let t=ct(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return xw(t,`${e.componentCls}-lg`)},r6=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},tD=qt("Button",e=>{let t=kv(e);return[jV(t),ZV(t),e6(t),t6(t),r6(t),QV(t),JV(t),C$(t)]},Mv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function n6(e,t,r,n){let{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function o6(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";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 Fs(e,t={focus:!0}){let{componentCls:r}=e,{componentCls:n}=t,o=n||r,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},n6(e,i,t,o)),o6(o,i,t))}}function i6(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function a6(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 rD(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},i6(e,t,e.componentCls)),a6(e.componentCls,t))}}var s6=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},nD=Wx(["Button","compact"],e=>{let t=kv(e);return[Fs(t),rD(t),s6(t)]},Mv);var l6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:m,className:h,rootClassName:v,children:y,icon:g,iconPosition:p="start",ghost:b=!1,block:S=!1,htmlType:C="button",classNames:w,style:x={},autoInsertSpace:R,autoFocus:O}=e,_=l6(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=l||"default",{button:$}=Ht.default.useContext(nt),D=u||$?.shape||"default",[M,A]=(0,Ht.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let he=u6[T]||[];return c?["danger",he[1]]:he}return $?.color&&$?.variant?[$.color,$.variant]:["default","outlined"]},[a,s,l,c,$?.color,$?.variant,T]),W=M==="danger"?"dangerous":M,{getPrefixCls:j,direction:G,autoInsertSpace:q,className:H,style:U,classNames:z,styles:k}=Dn("button"),B=(r=R??q)!==null&&r!==void 0?r:!0,V=j("btn",i),[oe,J,Q]=tD(V),pe=(0,Ht.useContext)(Hr),Z=m??pe,K=(0,Ht.useContext)(cw),ee=(0,Ht.useMemo)(()=>c6(o),[o]),[ae,te]=(0,Ht.useState)(ee.loading),[X,de]=(0,Ht.useState)(!1),fe=(0,Ht.useRef)(null),se=yi(t,fe),Ee=Ht.Children.count(y)===1&&!g&&!Pv(A),we=(0,Ht.useRef)(!0);Ht.default.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),ht(()=>{let he=null;ee.delay>0?he=setTimeout(()=>{he=null,te(!0)},ee.delay):te(ee.loading);function Be(){he&&(clearTimeout(he),he=null)}return Be},[ee.delay,ee.loading]),(0,Ht.useEffect)(()=>{if(!fe.current||!B)return;let he=fe.current.textContent||"";Ee&&_v(he)?X||de(!0):X&&de(!1)}),(0,Ht.useEffect)(()=>{O&&fe.current&&fe.current.focus()},[]);let Re=Ht.default.useCallback(he=>{var Be;if(ae||Z){he.preventDefault();return}(Be=e.onClick)===null||Be===void 0||Be.call(e,("href"in e,he))},[e.onClick,ae,Z]),{compactSize:ve,compactItemClassnames:Y}=Yo(V,G),Ne={large:"lg",small:"sm",middle:void 0},Ue=ao(he=>{var Be,Le;return(Le=(Be=d??ve)!==null&&Be!==void 0?Be:K)!==null&&Le!==void 0?Le:he}),Ze=Ue&&(n=Ne[Ue])!==null&&n!==void 0?n:"",Ae=ae?"loading":g,De=Gr(_,["navigate"]),je=(0,Vv.default)(V,J,Q,{[`${V}-${D}`]:D!=="default"&&D,[`${V}-${T}`]:T,[`${V}-dangerous`]:c,[`${V}-color-${W}`]:W,[`${V}-variant-${A}`]:A,[`${V}-${Ze}`]:Ze,[`${V}-icon-only`]:!y&&y!==0&&!!Ae,[`${V}-background-ghost`]:b&&!Pv(A),[`${V}-loading`]:ae,[`${V}-two-chinese-chars`]:X&&B&&!ae,[`${V}-block`]:S,[`${V}-rtl`]:G==="rtl",[`${V}-icon-end`]:p==="end"},Y,h,v,H),Ie=Object.assign(Object.assign({},U),x),We=(0,Vv.default)(w?.icon,z.icon),Te=Object.assign(Object.assign({},f?.icon||{}),k.icon||{}),_e=g&&!ae?Ht.default.createElement(Ff,{prefixCls:V,className:We,style:Te},g):o&&typeof o=="object"&&o.icon?Ht.default.createElement(Ff,{prefixCls:V,className:We,style:Te},o.icon):Ht.default.createElement(b$,{existIcon:!!g,prefixCls:V,loading:ae,mount:we.current}),Ge=y||y===0?h$(y,Ee&&B):null;if(De.href!==void 0)return oe(Ht.default.createElement("a",Object.assign({},De,{className:(0,Vv.default)(je,{[`${V}-disabled`]:Z}),href:Z?void 0:De.href,style:Ie,onClick:Re,ref:se,tabIndex:Z?-1:0,"aria-disabled":Z}),_e,Ge));let Ce=Ht.default.createElement("button",Object.assign({},_,{type:C,className:je,style:Ie,onClick:Re,disabled:Z,ref:se}),_e,Ge,Y&&Ht.default.createElement(nD,{prefixCls:V}));return Pv(A)||(Ce=Ht.default.createElement(Rv,{component:"Button",disabled:ae},Ce)),oe(Ce)}),ww=d6;ww.Group=p$;ww.__ANT_BUTTON=!0;var oD=ww;var zf=oD;var Qo=E(I()),pD=E(Hi());var iD=E(I()),f6=iD.createContext(null),Hv=f6;var jl=E(I());var aD=[];function Ew(e,t){var r=jl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=L(r,1),o=n[0],i=jl.useRef(!1),a=jl.useContext(Hv),s=jl.useState(aD),l=L(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(re(v));return y})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return ht(function(){return e?a?a(f):f():m(),m},[e]),ht(function(){c.length&&(c.forEach(function(h){return h()}),u(aD))},[c]),[o,d]}var uD=E(I());function p6(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";bn(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(d,` }`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var f=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,m=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Gi(t),{width:f,height:m}}function sD(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:p6(e)}function lD(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var m6="rc-util-locker-".concat(Date.now()),cD=0;function Rw(e){var t=!!e,r=uD.useState(function(){return cD+=1,"".concat(m6,"_").concat(cD)}),n=L(r,1),o=n[0];ht(function(){if(t){var i=sD(document.body).width,a=lD();bn(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Gi(o);return function(){Gi(o)}},[t,o])}var dD=!1;function _w(e){return typeof e=="boolean"&&(dD=e),dD}var fD=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},g6=Qo.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Qo.useState(r),u=L(c,2),d=u[0],f=u[1],m=d||r;Qo.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=Qo.useState(function(){return fD(o)}),v=L(h,2),y=v[0],g=v[1];Qo.useEffect(function(){var $=fD(o);g($??null)});var p=Ew(m&&!y,i),b=L(p,2),S=b[0],C=b[1],w=y??S;Rw(n&&r&&Yt()&&(w===S||w===document.body));var x=null;if(l&&bi(l)&&t){var R=l;x=R.ref}var O=yi(x,t);if(!m||!Yt()||y===void 0)return null;var _=w===!1||_w(),T=l;return t&&(T=Qo.cloneElement(l,{ref:O})),Qo.createElement(Hv.Provider,{value:C},_?T:(0,pD.createPortal)(T,w))}),mD=g6;var Pw=mD;var jf=E(I());function h6(){var e=N({},jf);return e.useId}var gD=0;var hD=h6(),Uv=hD?function(t){var r=hD();return t||r}:function(t){var r=jf.useState("ssr-id"),n=L(r,2),o=n[0],i=n[1];return jf.useEffect(function(){var a=gD;gD+=1,i("rc_unique_".concat(a))},[]),t||o};var Bw=E(I());var Ma=E(I());var aA=E(I());var qn=E(I());var vD=E(I()),Ri="RC_FORM_INTERNAL_HOOKS",Kt=function(){Bt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},v6=vD.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),_i=v6;var yD=E(I()),y6=yD.createContext(null),Ws=y6;function Bf(e){return e==null?[]:Array.isArray(e)?e:[e]}function bD(e){return e&&!!e._init}function Gv(){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 qv=Gv();function SD(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function CD(e,t,r){if(hf())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ws(o,r.prototype),o}function Kv(e){var t=typeof Map=="function"?new Map:void 0;return Kv=function(n){if(n===null||!SD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return CD(n,arguments,Ol(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ws(o,n)},Kv(e)}var b6=/%[sdj%]/g,ED=function(){};typeof process<"u"&&process.env;function Xv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function qr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function S6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||S6(t)&&typeof e=="string"&&!e)}function C6(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,re(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function xD(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,st.max?o.push(qr(i.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(qr(i.messages[d].range,t.fullField,t.min,t.max))},OD=P6;var O6=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||Mt(r,a||t.type))&&o.push(qr(i.messages.required,t.fullField))},Yv=O6;var Qv,ND=(function(){if(Qv)return Qv;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(m,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(p).concat(b);return Qv=new RegExp("(?:^".concat(S,"$)"),"i"),Qv});var ID={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},Vf={integer:function(t){return Vf.number(t)&&parseInt(t,10)===t},float:function(t){return Vf.number(t)&&!Vf.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 ce(t)==="object"&&!Vf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ID.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ND())},hex:function(t){return typeof t=="string"&&!!t.match(ID.hex)}},N6=function(t,r,n,o,i){if(t.required&&r===void 0){Yv(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Vf[s](r)||o.push(qr(i.messages.types[s],t.fullField,t.type)):s&&ce(r)!==t.type&&o.push(qr(i.messages.types[s],t.fullField,t.type))},TD=N6;var I6=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(qr(i.messages.whitespace,t.fullField))},$D=I6;var ot={required:Yv,whitespace:$D,type:TD,range:OD,enum:_D,pattern:PD};var T6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i)}n(a)},DD=T6;var $6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ot.required(t,r,o,a,i,"array"),r!=null&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},AD=$6;var D6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},kD=D6;var A6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r,"date")&&!t.required)return n();if(ot.required(t,r,o,a,i),!Mt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ot.type(t,l,o,a,i),l&&ot.range(t,l.getTime(),o,a,i)}}n(a)},MD=A6;var k6="enum",M6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot[k6](t,r,o,a,i)}n(a)},LD=M6;var L6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},FD=L6;var F6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},WD=F6;var W6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},zD=W6;var z6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},jD=z6;var j6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},BD=j6;var B6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i),Mt(r,"string")||ot.pattern(t,r,o,a,i)}n(a)},VD=B6;var V6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return n();ot.required(t,r,o,a,i),Mt(r)||ot.type(t,r,o,a,i)}n(a)},HD=V6;var H6=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ce(r);ot.required(t,r,o,a,i,s),n(a)},UD=H6;var U6=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i,"string"),Mt(r,"string")||(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i),ot.pattern(t,r,o,a,i),t.whitespace===!0&&ot.whitespace(t,r,o,a,i))}n(a)},GD=U6;var G6=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Mt(r,a)&&!t.required)return n();ot.required(t,r,o,s,i,a),Mt(r,a)||ot.type(t,r,o,s,i)}n(s)},Jv=G6;var bu={string:GD,method:zD,number:jD,boolean:kD,regexp:HD,integer:WD,float:FD,array:AD,object:BD,enum:LD,pattern:VD,date:MD,url:Jv,hex:Jv,email:Jv,required:UD,any:DD};var Hf=(function(){function e(t){it(this,e),P(this,"rules",null),P(this,"_messages",qv),this.define(t)}return at(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ce(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=Nw(Gv(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var v=[],y={};function g(b){if(Array.isArray(b)){var S;v=(S=v).concat.apply(S,re(b))}else v.push(b)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(x)?x:[x];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var O=R.map(Ow(y,a));if(s.first&&O.length)return m[y.field]=1,v(O);if(!g)v(O);else{if(y.required&&!h.value)return y.message!==void 0?O=[].concat(y.message).map(Ow(y,a)):s.error&&(O=[s.error(y,qr(s.messages.required,y.field))]),v(O);var _={};y.defaultField&&Object.keys(h.value).map(function(D){_[D]=y.defaultField}),_=N(N({},_),h.rule.fields);var T={};Object.keys(_).forEach(function(D){var M=_[D],A=Array.isArray(M)?M:[M];T[D]=A.map(p.bind(null,D))});var $=new e(T);$.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),$.validate(h.value,h.rule.options||s,function(D){var M=[];O&&O.length&&M.push.apply(M,re(O)),D&&D.length&&M.push.apply(M,re(D)),v(M.length?M:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,h.value,b,h.source,s);else if(y.validator){try{S=y.validator(y,h.value,b,h.source,s)}catch(x){var C,w;(C=(w=console).error)===null||C===void 0||C.call(w,x),s.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}S===!0?b():S===!1?b(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(x){return b(x)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!bu.hasOwnProperty(r.type))throw new Error(qr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?bu.required:bu[this.getType(r)]||void 0}}]),e})();P(Hf,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");bu[t]=r});P(Hf,"warning",ED);P(Hf,"messages",qv);P(Hf,"validators",bu);var qD=Hf;var ey=E(I());var _o="'${name}' is not a valid ${type}",Zv={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:_o,method:_o,array:_o,object:_o,number:_o,date:_o,boolean:_o,integer:_o,float:_o,regexp:_o,email:_o,url:_o,hex:_o},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}"}};var KD=qD;function q6(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var XD="CODE_LOGIC_ERROR";function Iw(e,t,r,n,o){return Tw.apply(this,arguments)}function Tw(){return Tw=Ur(Pt().mark(function e(t,r,n,o,i){var a,s,l,c,u,d,f,m,h;return Pt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=N({},n),delete a.ruleIndex,KD.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(XD)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new KD(P({},t,[a])),u=wa(Zv,o.validateMessages),c.messages(u),d=[],y.prev=10,y.next=13,Promise.resolve(c.validate(P({},t,r),N({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(d=y.t0.errors.map(function(g,p){var b=g.message,S=b===XD?u.default:b;return ey.isValidElement(S)?ey.cloneElement(S,{key:"error_".concat(p)}):S}));case 18:if(!(!d.length&&l&&Array.isArray(r)&&r.length>0)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,p){return Iw("".concat(t,".").concat(p),g,l,o,i)}));case 21:return f=y.sent,y.abrupt("return",f.reduce(function(g,p){return[].concat(re(g),re(p))},[]));case 23:return m=N(N({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=d.map(function(g){return typeof g=="string"?q6(g,m):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Tw.apply(this,arguments)}function YD(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,m=N(N({},u),{},{ruleIndex:d});return f&&(m.validator=function(h,v,y){var g=!1,p=function(){for(var C=arguments.length,w=new Array(C),x=0;x2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return kw(t,n,r)})}function kw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function QD(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ce(e)!=="object"||ce(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return re(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function JD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ce(t.target)==="object"&&e in t.target?t.target[e]:t}function Mw(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(re(e.slice(0,r)),[o],re(e.slice(r,t)),re(e.slice(t+1,n))):i<0?[].concat(re(e.slice(0,t)),re(e.slice(t+1,r+1)),[o],re(e.slice(r+1,n))):e}var Y6=["name"],Jo=[];function Lw(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var Fw=(function(e){$r(r,e);var t=Dr(r);function r(n){var o;if(it(this,r),o=t.call(this,n),P(Xe(o),"state",{resetCount:0}),P(Xe(o),"cancelRegisterFunc",null),P(Xe(o),"mounted",!1),P(Xe(o),"touched",!1),P(Xe(o),"dirty",!1),P(Xe(o),"validatePromise",void 0),P(Xe(o),"prevValidating",void 0),P(Xe(o),"errors",Jo),P(Xe(o),"warnings",Jo),P(Xe(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,lr(d)),o.cancelRegisterFunc=null}),P(Xe(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(re(f),re(c)):[]}),P(Xe(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),P(Xe(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),P(Xe(o),"metaCache",null),P(Xe(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=N(N({},o.getMeta()),{},{destroy:l});Rs(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),P(Xe(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,m=d.dependencies,h=m===void 0?[]:m,v=d.onReset,y=u.store,g=o.getNamePath(),p=o.getValue(l),b=o.getValue(y),S=c&&zs(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!Rs(p,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),v?.(),o.refresh();return}break;case"remove":{if(f&&Lw(f,l,y,p,b,u)){o.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Jo),"warnings"in C&&(o.warnings=C.warnings||Jo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&zs(c,g,!0)){o.reRender();return}if(f&&!g.length&&Lw(f,l,y,p,b,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(lr);if(w.some(function(x){return zs(u.relatedFields,x)})){o.reRender();return}break}default:if(S||(!h.length||g.length||f)&&Lw(f,l,y,p,b,u)){o.reRender();return}break}f===!0&&o.reRender()}),P(Xe(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,m=d.validateOnly,h=m===void 0?!1:m,v=Promise.resolve().then(Ur(Pt().mark(function y(){var g,p,b,S,C,w,x;return Pt().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(g=o.props,p=g.validateFirst,b=p===void 0?!1:p,S=g.messageVariables,C=g.validateDebounce,w=o.getRules(),f&&(w=w.filter(function(_){return _}).filter(function(_){var T=_.validateTrigger;if(!T)return!0;var $=Bf(T);return $.includes(f)})),!(C&&f)){O.next=10;break}return O.next=8,new Promise(function(_){setTimeout(_,C)});case 8:if(o.validatePromise===v){O.next=10;break}return O.abrupt("return",[]);case 10:return x=YD(c,u,w,l,b,S),x.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jo;if(o.validatePromise===v){var T;o.validatePromise=null;var $=[],D=[];(T=_.forEach)===null||T===void 0||T.call(_,function(M){var A=M.rule.warningOnly,F=M.errors,W=F===void 0?Jo:F;A?D.push.apply(D,re(W)):$.push.apply($,re(W))}),o.errors=$,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",x);case 13:case"end":return O.stop()}},y)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),o.reRender()),v}),P(Xe(o),"isFieldValidating",function(){return!!o.validatePromise}),P(Xe(o),"isFieldTouched",function(){return o.touched}),P(Xe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Ri),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),P(Xe(o),"getErrors",function(){return o.errors}),P(Xe(o),"getWarnings",function(){return o.warnings}),P(Xe(o),"isListField",function(){return o.props.isListField}),P(Xe(o),"isList",function(){return o.props.isList}),P(Xe(o),"isPreserve",function(){return o.props.preserve}),P(Xe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),P(Xe(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return N(N({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=vi(l);return u.length!==1||!qn.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),P(Xe(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Sn(l||c(!0),u)}),P(Xe(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,p=f!==void 0?f:g.validateTrigger,b=o.getNamePath(),S=g.getInternalHooks,C=g.getFieldsValue,w=S(Ri),x=w.dispatch,R=o.getValue(),O=y||function(M){return P({},v,M)},_=l[d],T=u!==void 0?O(R):{},$=N(N({},l),T);$[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,A=arguments.length,F=new Array(A),W=0;W=0&&_<=T.length?(u.keys=[].concat(re(u.keys.slice(0,_)),[u.id],re(u.keys.slice(_))),b([].concat(re(T.slice(0,_)),[O],re(T.slice(_))))):(u.keys=[].concat(re(u.keys),[u.id]),b([].concat(re(T),[O]))),u.id+=1},remove:function(O){var _=C(),T=new Set(Array.isArray(O)?O:[O]);T.size<=0||(u.keys=u.keys.filter(function($,D){return!T.has(D)}),b(_.filter(function($,D){return!T.has(D)})))},move:function(O,_){if(O!==_){var T=C();O<0||O>=T.length||_<0||_>=T.length||(u.keys=Mw(u.keys,O,_),b(Mw(T,O,_)))}}},x=p||[];return Array.isArray(x)||(x=[]),n(x.map(function(R,O){var _=u.keys[O];return _===void 0&&(u.keys[O]=u.id,_=u.keys[O],u.id+=1),{name:O,key:_,isListField:!0}}),w,y)})))}var ZD=J6;var ry=E(I());function eA(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var tA="__@field_split__";function Ww(e){return e.map(function(t){return"".concat(ce(t),":").concat(t)}).join(tA)}var Z6=(function(){function e(){it(this,e),P(this,"kvs",new Map)}return at(e,[{key:"set",value:function(r,n){this.kvs.set(Ww(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ww(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ww(r))}},{key:"map",value:function(r){return re(this.kvs.entries()).map(function(n){var o=L(n,2),i=o[0],a=o[1],s=i.split(tA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=L(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e})(),Bl=Z6;var e8=["name"],t8=at(function e(t){var r=this;it(this,e),P(this,"formHooked",!1),P(this,"forceRootUpdate",void 0),P(this,"subscribable",!0),P(this,"store",{}),P(this,"fieldEntities",[]),P(this,"initialValues",{}),P(this,"callbacks",{}),P(this,"validateMessages",null),P(this,"preserve",null),P(this,"lastValidatePromise",null),P(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),P(this,"getInternalHooks",function(n){return n===Ri?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Bt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),P(this,"useSubscribe",function(n){r.subscribable=n}),P(this,"prevWithoutPreserves",null),P(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=wa(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Gn(a,l,Sn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),P(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Bl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),P(this,"getInitialValue",function(n){var o=Sn(r.initialValues,n);return n.length?wa(o):o}),P(this,"setCallbacks",function(n){r.callbacks=n}),P(this,"setValidateMessages",function(n){r.validateMessages=n}),P(this,"setPreserve",function(n){r.preserve=n}),P(this,"watchList",[]),P(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),P(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),P(this,"timeoutId",null),P(this,"warningUnhooked",function(){}),P(this,"updateStore",function(n){r.store=n}),P(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),P(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Bl;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),P(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=lr(i);return o.get(a)||{INVALIDATE_NAME_PATH:lr(i)}})}),P(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ce(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(m);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(m)}}),Aw(r.store,c.map(lr))}),P(this,"getFieldValue",function(n){r.warningUnhooked();var o=lr(n);return Sn(r.store,o)}),P(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:lr(n[a]),errors:[],warnings:[]}})}),P(this,"getFieldError",function(n){r.warningUnhooked();var o=lr(n),i=r.getFieldsError([o])[0];return i.errors}),P(this,"getFieldWarning",function(n){r.warningUnhooked();var o=lr(n),i=r.getFieldsError([o])[0];return i.warnings}),P(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Bl,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),m=r.getInitialValue(f);if(m!==void 0)Bt(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)Bt(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(f),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(Gn(r.store,f,re(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,re(re(c).map(function(d){return d.entity})))}})):s=i,a(s)}),P(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(wa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(lr);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Gn(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),P(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=ze(a,e8),c=lr(s);i.push(c),"value"in l&&r.updateStore(Gn(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),P(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=N(N({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),P(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=Sn(r.store,i);a===void 0&&r.updateStore(Gn(r.store,i,o))}}),P(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),P(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!kw(d.getNamePath(),o)})){var u=r.store;r.updateStore(Gn(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),P(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),P(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=N(N({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),P(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(re(i))}),i}),P(this,"updateValue",function(n,o){var i=lr(n),a=r.store;r.updateStore(Gn(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Aw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(re(s)))}),P(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=wa(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),P(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),P(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Bl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=lr(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(n),i}),P(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Bl;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return zs(n,u)});l.length&&i(l,a)}}),P(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(lr):[],c=[],u=String(Date.now()),d=new Set,f=a||{},m=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(h&&!p.isFieldDirty())){var b=p.getNamePath();if(d.add(b.join(u)),!s||zs(l,b,m)){var S=p.validateRules(N({validateMessages:N(N({},Zv),r.validateMessages)},a));c.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(C){var w,x=[],R=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(O){var _=O.rule.warningOnly,T=O.errors;_?R.push.apply(R,re(T)):x.push.apply(x,re(T))}),x.length?Promise.reject({name:b,errors:x,warnings:R}):{name:b,errors:x,warnings:R}}))}}});var v=eA(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var b=p.map(function(S){var C=S.name;return C});r.notifyObservers(r.store,b,{type:"validateFinish"}),r.triggerOnFieldsChange(b,p)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var b=p.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:b,outOfDate:r.lastValidatePromise!==v})});y.catch(function(p){return p});var g=l.filter(function(p){return d.has(p.join(u))});return r.triggerOnFieldsChange(g),y}),P(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function r8(e){var t=ry.useRef(),r=ry.useState({}),n=L(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new t8(i);t.current=a.getForm()}return[t.current]}var ny=r8;var fn=E(I());var js=E(I()),zw=js.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),jw=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=js.useContext(zw),s=js.useRef({});return js.createElement(zw.Provider,{value:N(N({},a),{},{validateMessages:N(N({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=N(N({},s.current),{},P({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=N({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var rA=zw;var n8=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],o8=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,m=f===void 0?"onChange":f,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,p=t.clearOnDestroy,b=ze(t,n8),S=fn.useRef(null),C=fn.useContext(rA),w=ny(a),x=L(w,1),R=x[0],O=R.getInternalHooks(Ri),_=O.useSubscribe,T=O.setInitialValues,$=O.setCallbacks,D=O.setValidateMessages,M=O.setPreserve,A=O.destroyForm;fn.useImperativeHandle(r,function(){return N(N({},R),{},{nativeElement:S.current})}),fn.useEffect(function(){return C.registerForm(n,R),function(){C.unregisterForm(n)}},[C,R,n]),D(N(N({},C.validateMessages),d)),$({onValuesChange:h,onFieldsChange:function(k){if(C.triggerFormChange(n,k),v){for(var B=arguments.length,V=new Array(B>1?B-1:0),oe=1;oe{let n=Ma.useContext(pn),o=Ma.useMemo(()=>{let i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return Ma.createElement(pn.Provider,{value:o},e)},lA=Ma.createContext(void 0);var l8=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=Bw.default.createElement(sA,{override:!0,status:!0},o)),t&&(o=Bw.default.createElement(d$,null,o)),o},Yi=l8;var so=E(I());function c8(e){return t=>so.createElement(Da,{theme:{token:{motion:!1,zIndexPopupBase:0}}},so.createElement(e,Object.assign({},t)))}var u8=(e,t,r,n,o)=>c8(a=>{let{prefixCls:s,style:l}=a,c=so.useRef(null),[u,d]=so.useState(0),[f,m]=so.useState(0),[h,v]=ir(!1,{value:a.open}),{getPrefixCls:y}=so.useContext(nt),g=y(n||"select",s);so.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let S=new ResizeObserver(w=>{let x=w[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),C=setInterval(()=>{var w;let x=o?`.${o(g)}`:`.${g}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(x);R&&(clearInterval(C),S.observe(R))},10);return()=>{clearInterval(C),S.disconnect()}}},[g]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),so.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:f}},so.createElement(e,Object.assign({},p)))}),cA=u8;var ri=E(I()),k1=E($e());var ur=E(I());var l1=E($e());var Su=(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?.substr(0,4))});var xt=E(I());var Vw=E(I()),uA=E($e()),d8=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return Vw.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:Vw.createElement("span",{className:(0,uA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Bs=d8;var oy=E(I()),dA=function(t,r,n,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=oy.default.useMemo(function(){if(ce(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=oy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:oy.default.createElement(Bs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var iy=E(I()),Hw=iy.createContext(null);function ay(){return iy.useContext(Hw)}var Cu=E(I());function Uw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Cu.useState(!1),r=L(t,2),n=r[0],o=r[1],i=Cu.useRef(null),a=function(){window.clearTimeout(i.current)};Cu.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[n,s,a]}var Gf=E(I());function qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Gf.useRef(null),r=Gf.useRef(null);Gf.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}var sy=E(I());function Gw(e,t,r,n){var o=sy.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},sy.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var La=E(I()),fy=E(I());function fA(e){return e&&![Ye.ESC,Ye.SHIFT,Ye.BACKSPACE,Ye.TAB,Ye.WIN_KEY,Ye.ALT,Ye.META,Ye.WIN_KEY_RIGHT,Ye.CTRL,Ye.SEMICOLON,Ye.EQUALS,Ye.CAPS_LOCK,Ye.CONTEXT_MENU,Ye.F1,Ye.F2,Ye.F3,Ye.F4,Ye.F5,Ye.F6,Ye.F7,Ye.F8,Ye.F9,Ye.F10,Ye.F11,Ye.F12].includes(e)}var No=E(I()),Xw=E(I()),DA=E($e());var Oo=E(I()),Qi=E(I()),CA=E($e());var Vl=E(I()),pA=E($e());var f8=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xu=void 0;function p8(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,m=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,g=ze(e,f8),p=a&&!m;function b(R){l(c,R)}Vl.useEffect(function(){return function(){b(null)}},[]);var S=i&&o!==xu?i(o,{index:h}):f,C;n||(C={opacity:p?0:1,height:p?0:xu,overflowY:p?"hidden":xu,order:a?h:xu,pointerEvents:p?"none":xu,position:p?"absolute":xu});var w={};p&&(w["aria-hidden"]=!0);var x=Vl.createElement(y,le({className:(0,pA.default)(!n&&r,u),style:N(N({},C),d)},w,g,{ref:t}),S);return a&&(x=Vl.createElement(no,{onResize:function(O){var _=O.offsetWidth;b(_)},disabled:s},x)),x}var mA=Vl.forwardRef(p8);mA.displayName="Item";var Hl=mA;var ly=E(I()),gA=E(Hi());function qw(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function hA(){var e=ly.useRef(null),t=function(n){e.current||(e.current=[],qw(function(){(0,gA.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function Vs(e,t){var r=ly.useState(t),n=L(r,2),o=n[0],i=n[1],a=_t(function(s){e(function(){i(s)})});return[o,a]}var Hs=E(I()),yA=E($e());var vA=E(I()),Ul=vA.default.createContext(null);var m8=["component"],g8=["className"],h8=["className"],v8=function(t,r){var n=Hs.useContext(Ul);if(!n){var o=t.component,i=o===void 0?"div":o,a=ze(t,m8);return Hs.createElement(i,le({},a,{ref:r}))}var s=n.className,l=ze(n,g8),c=t.className,u=ze(t,h8);return Hs.createElement(Ul.Provider,{value:null},Hs.createElement(Hl,le({ref:r,className:(0,yA.default)(s,c)},l,u)))},bA=Hs.forwardRef(v8);bA.displayName="RawItem";var SA=bA;var y8=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],xA="responsive",wA="invalidate";function b8(e){return"+ ".concat(e.length," ...")}function S8(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,m=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.prefix,p=e.suffix,b=e.component,S=b===void 0?"div":b,C=e.itemComponent,w=e.onVisibleChange,x=ze(e,y8),R=d==="full",O=hA(),_=Vs(O,null),T=L(_,2),$=T[0],D=T[1],M=$||0,A=Vs(O,new Map),F=L(A,2),W=F[0],j=F[1],G=Vs(O,0),q=L(G,2),H=q[0],U=q[1],z=Vs(O,0),k=L(z,2),B=k[0],V=k[1],oe=Vs(O,0),J=L(oe,2),Q=J[0],pe=J[1],Z=Vs(O,0),K=L(Z,2),ee=K[0],ae=K[1],te=(0,Qi.useState)(null),X=L(te,2),de=X[0],fe=X[1],se=(0,Qi.useState)(null),Ee=L(se,2),we=Ee[0],Re=Ee[1],ve=Oo.useMemo(function(){return we===null&&R?Number.MAX_SAFE_INTEGER:we||0},[we,$]),Y=(0,Qi.useState)(!1),Ne=L(Y,2),Ue=Ne[0],Ze=Ne[1],Ae="".concat(n,"-item"),De=Math.max(H,B),je=h===xA,Ie=i.length&&je,We=h===wA,Te=Ie||typeof h=="number"&&i.length>h,_e=(0,Qi.useMemo)(function(){var ue=i;return Ie?$===null&&R?ue=i:ue=i.slice(0,Math.min(i.length,M/u)):typeof h=="number"&&(ue=i.slice(0,h)),ue},[i,u,$,h,Ie]),Ge=(0,Qi.useMemo)(function(){return Ie?i.slice(ve+1):i.slice(_e.length)},[i,_e,Ie,ve]),Ce=(0,Qi.useCallback)(function(ue,ie){var ye;return typeof l=="function"?l(ue):(ye=l&&ue?.[l])!==null&&ye!==void 0?ye:ie},[l]),he=(0,Qi.useCallback)(a||function(ue){return ue},[a]);function Be(ue,ie,ye){we===ue&&(ie===void 0||ie===de)||(Re(ue),ye||(Ze(ueM){Be(et-1,ue-Ve-ee+B);break}}p&&be(0)+ee>M&&fe(null)}},[M,W,B,Q,ee,Ce,_e]);var qe=Ue&&!!Ge.length,Pe={};de!==null&&Ie&&(Pe={position:"absolute",left:de,top:0});var vt={prefixCls:Ae,responsive:Ie,component:C,invalidate:We},yt=s?function(ue,ie){var ye=Ce(ue,ie);return Oo.createElement(Ul.Provider,{key:ye,value:N(N({},vt),{},{order:ie,item:ue,itemKey:ye,registerSize:rt,display:ie<=ve})},s(ue,ie))}:function(ue,ie){var ye=Ce(ue,ie);return Oo.createElement(Hl,le({},vt,{order:ie,key:ye,item:ue,renderItem:he,itemKey:ye,registerSize:rt,display:ie<=ve}))},Qe={order:qe?ve:Number.MAX_SAFE_INTEGER,className:"".concat(Ae,"-rest"),registerSize:St,display:qe},ut=v||b8,It=y?Oo.createElement(Ul.Provider,{value:N(N({},vt),Qe)},y(Ge)):Oo.createElement(Hl,le({},vt,Qe),typeof ut=="function"?ut(Ge):ut),Oe=Oo.createElement(S,le({className:(0,CA.default)(!We&&n,m),style:f,ref:t},x),g&&Oo.createElement(Hl,le({},vt,{responsive:je,responsiveDisabled:!Ie,order:-1,className:"".concat(Ae,"-prefix"),registerSize:pt,display:!0}),g),_e.map(yt),Te?It:null,p&&Oo.createElement(Hl,le({},vt,{responsive:je,responsiveDisabled:!Ie,order:ve,className:"".concat(Ae,"-suffix"),registerSize:ke,display:!0,style:Pe}),p));return je?Oo.createElement(no,{onResize:Le,disabled:!Ie},Oe):Oe}var Kf=Oo.forwardRef(S8);Kf.displayName="Overflow";Kf.Item=SA;Kf.RESPONSIVE=xA;Kf.INVALIDATE=wA;var EA=Kf;var RA=EA;var wu=E(I()),PA=E($e());function C8(e,t,r){var n=N(N({},e),r?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(n[o]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;cb&&(Ee="".concat(we.slice(0,b),"..."))}var Re=function(Y){Y&&Y.stopPropagation(),R(te)};return typeof w=="function"?Q(fe,Ee,X,se,Re):J(te,Ee,X,se,Re)},Z=function(te){if(!o.length)return null;var X=typeof C=="function"?C(te):C;return typeof w=="function"?Q(void 0,X,!1,!1,void 0,!0):J({title:X},X,!1)},K=No.createElement("div",{className:"".concat(B,"-search"),style:{width:G},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},No.createElement(cy,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:oe,activeDescendantId:v,value:V,onKeyDown:T,onMouseDown:$,onChange:O,onPaste:_,onCompositionStart:D,onCompositionEnd:M,onBlur:A,tabIndex:y,attrs:qo(t,!0)}),No.createElement("span",{ref:F,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},V,"\xA0")),ee=No.createElement(RA,{prefixCls:"".concat(B,"-overflow"),data:o,renderItem:pe,renderRest:Z,suffix:K,itemKey:_8,maxCount:p});return No.createElement("span",{className:"".concat(B,"-wrap")},ee,!o.length&&!V&&No.createElement("span",{className:"".concat(B,"-placeholder")},c))},AA=P8;var Zo=E(I());var O8=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,m=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,p=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,x=t.onInputCompositionStart,R=t.onInputCompositionEnd,O=t.onInputBlur,_=t.title,T=Zo.useState(!1),$=L(T,2),D=$[0],M=$[1],A=u==="combobox",F=A||v,W=f[0],j=y||"";A&&g&&!D&&(j=g),Zo.useEffect(function(){A&&M(!1)},[A,g]);var G=u!=="combobox"&&!d&&!v?!1:!!j,q=_===void 0?uy(W):_,H=Zo.useMemo(function(){return W?null:Zo.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},m)},[W,G,m,n]);return Zo.createElement("span",{className:"".concat(n,"-selection-wrap")},Zo.createElement("span",{className:"".concat(n,"-selection-search")},Zo.createElement(cy,{ref:i,prefixCls:n,id:o,open:d,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:F,activeDescendantId:c,value:j,onKeyDown:b,onMouseDown:S,onChange:function(z){M(!0),C(z)},onPaste:w,onCompositionStart:x,onCompositionEnd:R,onBlur:O,tabIndex:h,attrs:qo(t,!0),maxLength:A?p:void 0})),!A&&W?Zo.createElement("span",{className:"".concat(n,"-selection-item"),title:q,style:G?{visibility:"hidden"}:void 0},W.label):null,H)},kA=O8;var N8=function(t,r){var n=(0,fy.useRef)(null),o=(0,fy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,p=t.domRef;La.useImperativeHandle(r,function(){return{focus:function(q){n.current.focus(q)},blur:function(){n.current.blur()}}});var b=qf(0),S=L(b,2),C=S[0],w=S[1],x=function(q){var H=q.which,U=n.current instanceof HTMLTextAreaElement;!U&&a&&(H===Ye.UP||H===Ye.DOWN)&&q.preventDefault(),y&&y(q),H===Ye.ENTER&&s==="tags"&&!o.current&&!a&&h?.(q.target.value),!(U&&!a&&~[Ye.UP,Ye.DOWN,Ye.LEFT,Ye.RIGHT].indexOf(H))&&fA(H)&&v(!0)},R=function(){w(!0)},O=(0,fy.useRef)(null),_=function(q){m(q,!0,o.current)!==!1&&v(!0)},T=function(){o.current=!0},$=function(q){o.current=!1,s!=="combobox"&&_(q.target.value)},D=function(q){var H=q.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var U=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(U,O.current)}O.current=null,_(H)},M=function(q){var H=q.clipboardData,U=H?.getData("text");O.current=U||""},A=function(q){var H=q.target;if(H!==n.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){n.current.focus()}):n.current.focus()}},F=function(q){var H=C();q.target!==n.current&&!H&&!(s==="combobox"&&u)&&q.preventDefault(),(s!=="combobox"&&(!l||!H)||!a)&&(a&&f!==!1&&m("",!0,!1),v())},W={inputRef:n,onInputKeyDown:x,onInputMouseDown:R,onInputChange:D,onInputPaste:M,onInputCompositionStart:T,onInputCompositionEnd:$,onInputBlur:g},j=s==="multiple"||s==="tags"?La.createElement(AA,le({},t,W)):La.createElement(kA,le({},t,W));return La.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:A,onMouseDown:F},d&&La.createElement("div",{className:"".concat(i,"-prefix")},d),j)},I8=La.forwardRef(N8),MA=I8;var my=E($e());var bt=E(I());var jA=E($e());var ei=E(I());var LA=E($e()),py=E(I());function Yw(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=py.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],p=v[0],b=v[1];y===p||!["t","b"].includes(y)?m.top=d:y==="t"?m.top=0:m.bottom=0,g===b||!["l","r"].includes(g)?m.left=c:g==="l"?m.left=0:m.right=0}return py.createElement("div",{ref:f,className:(0,LA.default)("".concat(t,"-arrow"),a),style:m},s)}var FA=E($e());var Qw=E(I());function Jw(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?Qw.createElement(Go,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return Qw.createElement("div",{style:{zIndex:n},className:(0,FA.default)("".concat(t,"-mask"),s)})}):null}var WA=E(I()),T8=WA.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),zA=T8;var $8=ei.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,p=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,C=e.portal,w=e.zIndex,x=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,_=e.onPointerDownCapture,T=e.ready,$=e.offsetX,D=e.offsetY,M=e.offsetR,A=e.offsetB,F=e.onAlign,W=e.onPrepare,j=e.stretch,G=e.targetWidth,q=e.targetHeight,H=typeof r=="function"?r():r,U=l||c,z=b?.length>0,k=ei.useState(!b||!z),B=L(k,2),V=B[0],oe=B[1];if(ht(function(){!V&&z&&a&&oe(!0)},[V,z,a]),!V)return null;var J="auto",Q={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(T||!l){var pe,Z=v.points,K=v.dynamicInset||((pe=v._experimental)===null||pe===void 0?void 0:pe.dynamicInset),ee=K&&Z[0][1]==="r",ae=K&&Z[0][0]==="b";ee?(Q.right=M,Q.left=J):(Q.left=$,Q.right=J),ae?(Q.bottom=A,Q.top=J):(Q.top=D,Q.bottom=J)}var te={};return j&&(j.includes("height")&&q?te.height=q:j.includes("minHeight")&&q&&(te.minHeight=q),j.includes("width")&&G?te.width=G:j.includes("minWidth")&&G&&(te.minWidth=G)),l||(te.pointerEvents="none"),ei.createElement(C,{open:p||U,getContainer:b&&function(){return b(a)},autoDestroy:S},ei.createElement(Jw,{prefixCls:o,open:l,zIndex:w,mask:f,motion:g}),ei.createElement(no,{onResize:F,disabled:!l},function(X){return ei.createElement(Go,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:W,onEnterPrepare:W,visible:l,onVisibleChanged:function(fe){var se;y==null||(se=y.onVisibleChanged)===null||se===void 0||se.call(y,fe),s(fe)}}),function(de,fe){var se=de.className,Ee=de.style,we=(0,jA.default)(o,se,n);return ei.createElement("div",{ref:Wr(X,t,fe),className:we,style:N(N(N(N({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Q),te),Ee),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:x,onMouseLeave:R,onPointerEnter:O,onClick:d,onPointerDownCapture:_},m&&ei.createElement(Yw,{prefixCls:o,arrow:m,arrowPos:h,align:v}),ei.createElement(zA,{cache:!l&&!u},H))})}))}),BA=$8;var Eu=E(I()),D8=Eu.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=bi(r),i=Eu.useCallback(function(s){gf(t,n?n(s):s)},[n]),a=yi(i,Cs(r));return o?Eu.cloneElement(r,{ref:a}):r}),VA=D8;var HA=E(I()),A8=HA.createContext(null),Zw=A8;var GA=E(I());function UA(e){return e?Array.isArray(e)?e:[e]:[]}function e1(e,t,r,n){return GA.useMemo(function(){var o=UA(r??t),i=UA(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var Gl=E(I());function k8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function qA(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Yf(e){return Ru(parseFloat(e),0)}function r1(e,t){var r=N({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Us(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,m=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Yf(s),g=Yf(l),p=Yf(c),b=Yf(u),S=Ru(Math.round(d.width/h*1e3)/1e3),C=Ru(Math.round(d.height/f*1e3)/1e3),w=(h-v-p-b)*S,x=(f-m-y-g)*C,R=y*C,O=g*C,_=p*S,T=b*S,$=0,D=0;if(i==="clip"){var M=Yf(a);$=M*S,D=M*C}var A=d.x+_-$,F=d.y+R-D,W=A+d.width+2*$-_-T-w,j=F+d.height+2*D-R-O-x;r.left=Math.max(r.left,A),r.top=Math.max(r.top,F),r.right=Math.min(r.right,W),r.bottom=Math.min(r.bottom,j)}}),r}function KA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function XA(e,t){var r=t||[],n=L(r,2),o=n[0],i=n[1];return[KA(e.width,o),KA(e.height,i)]}function YA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function _u(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Gs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function n1(e,t,r,n,o,i,a){var s=Gl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=L(s,2),c=l[0],u=l[1],d=Gl.useRef(0),f=Gl.useMemo(function(){return t?Qf(t):[]},[t]),m=Gl.useRef({}),h=function(){m.current={}};e||h();var v=_t(function(){if(t&&r&&e){let Qn=function(oc,Ka){var ic=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Np=U.x+oc,Ip=U.y+Ka,$0=Np+ae,Je=Ip+ee,lt=Math.max(Np,ic.left),gr=Math.max(Ip,ic.top),Lr=Math.min($0,ic.right),hr=Math.min(Je,ic.bottom);return Math.max(0,(Lr-lt)*(hr-gr))},nl=function(){pr=U.y+ut,mr=pr+ee,mn=U.x+Qe,Qt=mn+ae};var BE=Qn,Op=nl,p,b,S,C,w=t,x=w.ownerDocument,R=Us(w),O=R.getComputedStyle(w),_=O.position,T=w.style.left,$=w.style.top,D=w.style.right,M=w.style.bottom,A=w.style.overflow,F=N(N({},o[n]),i),W=x.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(W),W.style.left="".concat(w.offsetLeft,"px"),W.style.top="".concat(w.offsetTop,"px"),W.style.position=_,W.style.height="".concat(w.offsetHeight,"px"),W.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var G,q,H=r.getBoundingClientRect();H.x=(G=H.x)!==null&&G!==void 0?G:H.left,H.y=(q=H.y)!==null&&q!==void 0?q:H.top,j={x:H.x,y:H.y,width:H.width,height:H.height}}var U=w.getBoundingClientRect(),z=R.getComputedStyle(w),k=z.height,B=z.width;U.x=(b=U.x)!==null&&b!==void 0?b:U.left,U.y=(S=U.y)!==null&&S!==void 0?S:U.top;var V=x.documentElement,oe=V.clientWidth,J=V.clientHeight,Q=V.scrollWidth,pe=V.scrollHeight,Z=V.scrollTop,K=V.scrollLeft,ee=U.height,ae=U.width,te=j.height,X=j.width,de={left:0,top:0,right:oe,bottom:J},fe={left:-K,top:-Z,right:Q-K,bottom:pe-Z},se=F.htmlRegion,Ee="visible",we="visibleFirst";se!=="scroll"&&se!==we&&(se=Ee);var Re=se===we,ve=r1(fe,f),Y=r1(de,f),Ne=se===Ee?Y:ve,Ue=Re?Y:Ne;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ze=w.getBoundingClientRect();w.style.left=T,w.style.top=$,w.style.right=D,w.style.bottom=M,w.style.overflow=A,(C=w.parentElement)===null||C===void 0||C.removeChild(W);var Ae=Ru(Math.round(ae/parseFloat(B)*1e3)/1e3),De=Ru(Math.round(ee/parseFloat(k)*1e3)/1e3);if(Ae===0||De===0||_l(r)&&!wv(r))return;var je=F.offset,Ie=F.targetOffset,We=XA(U,je),Te=L(We,2),_e=Te[0],Ge=Te[1],Ce=XA(j,Ie),he=L(Ce,2),Be=he[0],Le=he[1];j.x-=Be,j.y-=Le;var rt=F.points||[],St=L(rt,2),pt=St[0],ke=St[1],be=YA(ke),qe=YA(pt),Pe=_u(j,be),vt=_u(U,qe),yt=N({},F),Qe=Pe.x-vt.x+_e,ut=Pe.y-vt.y+Ge,It=Qn(Qe,ut),Oe=Qn(Qe,ut,Y),ue=_u(j,["t","l"]),ie=_u(U,["t","l"]),ye=_u(j,["b","r"]),et=_u(U,["b","r"]),Ve=F.overflow||{},wt=Ve.adjustX,Dt=Ve.adjustY,Ft=Ve.shiftX,At=Ve.shiftY,kr=function(Ka){return typeof Ka=="boolean"?Ka:Ka>=0},pr,mr,mn,Qt;nl();var Or=kr(Dt),xe=qe[0]===be[0];if(Or&&qe[0]==="t"&&(mr>Ue.bottom||m.current.bt)){var Fe=ut;xe?Fe-=ee-te:Fe=ue.y-et.y-Ge;var Me=Qn(Qe,Fe),Se=Qn(Qe,Fe,Y);Me>It||Me===It&&(!Re||Se>=Oe)?(m.current.bt=!0,ut=Fe,Ge=-Ge,yt.points=[Gs(qe,0),Gs(be,0)]):m.current.bt=!1}if(Or&&qe[0]==="b"&&(prIt||Tt===It&&(!Re||Lt>=Oe)?(m.current.tb=!0,ut=tt,Ge=-Ge,yt.points=[Gs(qe,0),Gs(be,0)]):m.current.tb=!1}var Kr=kr(wt),rn=qe[1]===be[1];if(Kr&&qe[1]==="l"&&(Qt>Ue.right||m.current.rl)){var Sr=Qe;rn?Sr-=ae-X:Sr=ue.x-et.x-_e;var Cr=Qn(Sr,ut),En=Qn(Sr,ut,Y);Cr>It||Cr===It&&(!Re||En>=Oe)?(m.current.rl=!0,Qe=Sr,_e=-_e,yt.points=[Gs(qe,1),Gs(be,1)]):m.current.rl=!1}if(Kr&&qe[1]==="r"&&(mnIt||Rn===It&&(!Re||Xn>=Oe)?(m.current.lr=!0,Qe=gn,_e=-_e,yt.points=[Gs(qe,1),Gs(be,1)]):m.current.lr=!1}nl();var _n=Ft===!0?0:Ft;typeof _n=="number"&&(mnY.right&&(Qe-=Qt-Y.right-_e,j.x>Y.right-_n&&(Qe+=j.x-Y.right+_n)));var Ti=At===!0?0:At;typeof Ti=="number"&&(prY.bottom&&(ut-=mr-Y.bottom-Ge,j.y>Y.bottom-Ti&&(ut+=j.y-Y.bottom+Ti)));var $i=U.x+Qe,Di=$i+ae,Ga=U.y+ut,rl=Ga+ee,Et=j.x,ft=Et+X,Xr=j.y,nn=Xr+te,xr=Math.max($i,Et),Mr=Math.min(Di,ft),po=(xr+Mr)/2,Yn=po-$i,$o=Math.max(Ga,Xr),Ai=Math.min(rl,nn),si=($o+Ai)/2,qa=si-Ga;a?.(t,yt);var Fn=Ze.right-U.x-(Qe+U.width),td=Ze.bottom-U.y-(ut+U.height);Ae===1&&(Qe=Math.round(Qe),Fn=Math.round(Fn)),De===1&&(ut=Math.round(ut),td=Math.round(td));var T0={ready:!0,offsetX:Qe/Ae,offsetY:ut/De,offsetR:Fn/Ae,offsetB:td/De,arrowX:Yn/Ae,arrowY:qa/De,scaleX:Ae,scaleY:De,align:yt};u(T0)}}),y=function(){d.current+=1;var b=d.current;Promise.resolve().then(function(){d.current===b&&v()})},g=function(){u(function(b){return N(N({},b),{},{ready:!1})})};return ht(g,[n]),ht(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function o1(e,t,r,n,o){ht(function(){if(e&&t&&r){let f=function(){n(),o()};var d=f,i=t,a=r,s=Qf(i),l=Qf(a),c=Us(a),u=new Set([c].concat(re(s),re(l)));return u.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(m){m.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}var Jf=E(I());function i1(e,t,r,n,o,i,a,s){var l=Jf.useRef(e);l.current=e;var c=Jf.useRef(!1);Jf.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){c.current=!1},f=function(S){var C;l.current&&!a(((C=S.composedPath)===null||C===void 0||(C=C.call(S))===null||C===void 0?void 0:C[0])||S.target)&&!c.current&&s(!1)},m=Us(n);m.addEventListener("pointerdown",d,!0),m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0);var h=Ml(r);if(h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),0)var v,y,g,p;return function(){m.removeEventListener("pointerdown",d,!0),m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var M8=["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 L8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pw,t=bt.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,m=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,p=r.focusDelay,b=r.blurDelay,S=r.mask,C=r.maskClosable,w=C===void 0?!0:C,x=r.getPopupContainer,R=r.forceRender,O=r.autoDestroy,_=r.destroyPopupOnHide,T=r.popup,$=r.popupClassName,D=r.popupStyle,M=r.popupPlacement,A=r.builtinPlacements,F=A===void 0?{}:A,W=r.popupAlign,j=r.zIndex,G=r.stretch,q=r.getPopupClassNameFromAlign,H=r.fresh,U=r.alignPoint,z=r.onPopupClick,k=r.onPopupAlign,B=r.arrow,V=r.popupMotion,oe=r.maskMotion,J=r.popupTransitionName,Q=r.popupAnimation,pe=r.maskTransitionName,Z=r.maskAnimation,K=r.className,ee=r.getTriggerDOMNode,ae=ze(r,M8),te=O||_||!1,X=bt.useState(!1),de=L(X,2),fe=de[0],se=de[1];ht(function(){se(Su())},[]);var Ee=bt.useRef({}),we=bt.useContext(Zw),Re=bt.useMemo(function(){return{registerSubPopup:function(lt,gr){Ee.current[lt]=gr,we?.registerSubPopup(lt,gr)}}},[we]),ve=Uv(),Y=bt.useState(null),Ne=L(Y,2),Ue=Ne[0],Ze=Ne[1],Ae=bt.useRef(null),De=_t(function(Je){Ae.current=Je,_l(Je)&&Ue!==Je&&Ze(Je),we?.registerSubPopup(ve,Je)}),je=bt.useState(null),Ie=L(je,2),We=Ie[0],Te=Ie[1],_e=bt.useRef(null),Ge=_t(function(Je){_l(Je)&&We!==Je&&(Te(Je),_e.current=Je)}),Ce=bt.Children.only(a),he=Ce?.props||{},Be={},Le=_t(function(Je){var lt,gr,Lr=We;return Lr?.contains(Je)||((lt=Ml(Lr))===null||lt===void 0?void 0:lt.host)===Je||Je===Lr||Ue?.contains(Je)||((gr=Ml(Ue))===null||gr===void 0?void 0:gr.host)===Je||Je===Ue||Object.values(Ee.current).some(function(hr){return hr?.contains(Je)||Je===hr})}),rt=t1(i,V,Q,J),St=t1(i,oe,Z,pe),pt=bt.useState(f||!1),ke=L(pt,2),be=ke[0],qe=ke[1],Pe=d??be,vt=_t(function(Je){d===void 0&&qe(Je)});ht(function(){qe(d||!1)},[d]);var yt=bt.useRef(Pe);yt.current=Pe;var Qe=bt.useRef([]);Qe.current=[];var ut=_t(function(Je){var lt;vt(Je),((lt=Qe.current[Qe.current.length-1])!==null&<!==void 0?lt:Pe)!==Je&&(Qe.current.push(Je),m?.(Je))}),It=bt.useRef(),Oe=function(){clearTimeout(It.current)},ue=function(lt){var gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Oe(),gr===0?ut(lt):It.current=setTimeout(function(){ut(lt)},gr*1e3)};bt.useEffect(function(){return Oe},[]);var ie=bt.useState(!1),ye=L(ie,2),et=ye[0],Ve=ye[1];ht(function(Je){(!Je||Pe)&&Ve(!0)},[Pe]);var wt=bt.useState(null),Dt=L(wt,2),Ft=Dt[0],At=Dt[1],kr=bt.useState(null),pr=L(kr,2),mr=pr[0],mn=pr[1],Qt=function(lt){mn([lt.clientX,lt.clientY])},Or=n1(Pe,Ue,U&&mr!==null?mr:We,M,F,W,k),xe=L(Or,11),Fe=xe[0],Me=xe[1],Se=xe[2],tt=xe[3],Tt=xe[4],Lt=xe[5],Kr=xe[6],rn=xe[7],Sr=xe[8],Cr=xe[9],En=xe[10],gn=e1(fe,l,c,u),Rn=L(gn,2),Xn=Rn[0],_n=Rn[1],Ti=Xn.has("click"),$i=_n.has("click")||_n.has("contextMenu"),Di=_t(function(){et||En()}),Ga=function(){yt.current&&U&&$i&&ue(!1)};o1(Pe,We,Ue,Di,Ga),ht(function(){Di()},[mr,M]),ht(function(){Pe&&!(F!=null&&F[M])&&Di()},[JSON.stringify(W)]);var rl=bt.useMemo(function(){var Je=qA(F,i,Cr,U);return(0,my.default)(Je,q?.(Cr))},[Cr,q,F,i,U]);bt.useImperativeHandle(n,function(){return{nativeElement:_e.current,popupElement:Ae.current,forceAlign:Di}});var Et=bt.useState(0),ft=L(Et,2),Xr=ft[0],nn=ft[1],xr=bt.useState(0),Mr=L(xr,2),po=Mr[0],Yn=Mr[1],$o=function(){if(G&&We){var lt=We.getBoundingClientRect();nn(lt.width),Yn(lt.height)}},Ai=function(){$o(),Di()},si=function(lt){Ve(!1),En(),h?.(lt)},qa=function(){return new Promise(function(lt){$o(),At(function(){return lt})})};ht(function(){Ft&&(En(),Ft(),At(null))},[Ft]);function Fn(Je,lt,gr,Lr){Be[Je]=function(hr){var Tp;Lr?.(hr),ue(lt,gr);for(var D0=arguments.length,VE=new Array(D0>1?D0-1:0),$p=1;$p1?gr-1:0),hr=1;hr1?gr-1:0),hr=1;hr1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=a1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(m){if(f||!(l in m)){var h=m[s];o.push({key:ZA(m,o.length),groupOption:f,data:m,label:m[a],value:h})}else{var v=m[c];v===void 0&&n&&(v=m.label),o.push({key:ZA(m,o.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),o}function ep(e){var t=N({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Bt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var tk=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=Eh(c),d=u[0],f=u.slice(1);if(!d)return[l];var m=l.split(d);return o=o||m.length>1,m.reduce(function(h,v){return[].concat(re(h),re(s(v,f)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var rk=E(I()),B8=rk.createContext(null),Pu=B8;var nk=E(I());function s1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return nk.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(ce(i))?i:a}).join(", ")),r.length>n?", ...":null)}var V8=["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"],H8=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],tp=function(t){return t==="tags"||t==="multiple"},U8=xt.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,v=e.onClear,y=e.mode,g=e.disabled,p=e.loading,b=e.getInputElement,S=e.getRawInputElement,C=e.open,w=e.defaultOpen,x=e.onDropdownVisibleChange,R=e.activeValue,O=e.onActiveValueChange,_=e.activeDescendantId,T=e.searchValue,$=e.autoClearSearchValue,D=e.onSearch,M=e.onSearchSplit,A=e.tokenSeparators,F=e.allowClear,W=e.prefix,j=e.suffixIcon,G=e.clearIcon,q=e.OptionList,H=e.animation,U=e.transitionName,z=e.dropdownStyle,k=e.dropdownClassName,B=e.dropdownMatchSelectWidth,V=e.dropdownRender,oe=e.dropdownAlign,J=e.placement,Q=e.builtinPlacements,pe=e.getPopupContainer,Z=e.showAction,K=Z===void 0?[]:Z,ee=e.onFocus,ae=e.onBlur,te=e.onKeyUp,X=e.onKeyDown,de=e.onMouseDown,fe=ze(e,V8),se=tp(y),Ee=(a!==void 0?a:se)||y==="combobox",we=N({},fe);H8.forEach(function(Et){delete we[Et]}),c?.forEach(function(Et){delete we[Et]});var Re=xt.useState(!1),ve=L(Re,2),Y=ve[0],Ne=ve[1];xt.useEffect(function(){Ne(Su())},[]);var Ue=xt.useRef(null),Ze=xt.useRef(null),Ae=xt.useRef(null),De=xt.useRef(null),je=xt.useRef(null),Ie=xt.useRef(!1),We=Uw(),Te=L(We,3),_e=Te[0],Ge=Te[1],Ce=Te[2];xt.useImperativeHandle(t,function(){var Et,ft;return{focus:(Et=De.current)===null||Et===void 0?void 0:Et.focus,blur:(ft=De.current)===null||ft===void 0?void 0:ft.blur,scrollTo:function(nn){var xr;return(xr=je.current)===null||xr===void 0?void 0:xr.scrollTo(nn)},nativeElement:Ue.current||Ze.current}});var he=xt.useMemo(function(){var Et;if(y!=="combobox")return T;var ft=(Et=u[0])===null||Et===void 0?void 0:Et.value;return typeof ft=="string"||typeof ft=="number"?String(ft):""},[T,y,u]),Be=y==="combobox"&&typeof b=="function"&&b()||null,Le=typeof S=="function"&&S(),rt=yi(Ze,Le==null||(r=Le.props)===null||r===void 0?void 0:r.ref),St=xt.useState(!1),pt=L(St,2),ke=pt[0],be=pt[1];ht(function(){be(!0)},[]);var qe=ir(!1,{defaultValue:w,value:C}),Pe=L(qe,2),vt=Pe[0],yt=Pe[1],Qe=ke?vt:!1,ut=!h&&f;(g||ut&&Qe&&y==="combobox")&&(Qe=!1);var It=ut?!1:Qe,Oe=xt.useCallback(function(Et){var ft=Et!==void 0?Et:!Qe;g||(yt(ft),Qe!==ft&&x?.(ft))},[g,Qe,yt,x]),ue=xt.useMemo(function(){return(A||[]).some(function(Et){return[` `,`\r `].includes(Et)})},[A]),ie=xt.useContext(Pu)||{},ye=ie.maxCount,et=ie.rawValues,Ve=function(ft,Xr,nn){if(!(se&&Zf(ye)&&et?.size>=ye)){var xr=!0,Mr=ft;O?.(null);var po=tk(ft,A,Zf(ye)?ye-et.size:void 0),Yn=nn?null:po;return y!=="combobox"&&Yn&&(Mr="",M?.(Yn),Oe(!1),xr=!1),D&&he!==Mr&&D(Mr,{source:Xr?"typing":"effect"}),xr}},wt=function(ft){!ft||!ft.trim()||D(ft,{source:"submit"})};xt.useEffect(function(){!Qe&&!se&&y!=="combobox"&&Ve("",!1,!1)},[Qe]),xt.useEffect(function(){vt&&g&&yt(!1),g&&!Ie.current&&Ge(!1)},[g]);var Dt=qf(),Ft=L(Dt,2),At=Ft[0],kr=Ft[1],pr=xt.useRef(!1),mr=function(ft){var Xr=At(),nn=ft.key,xr=nn==="Enter";if(xr&&(y!=="combobox"&&ft.preventDefault(),Qe||Oe(!0)),kr(!!he),nn==="Backspace"&&!Xr&&se&&!he&&u.length){for(var Mr=re(u),po=null,Yn=Mr.length-1;Yn>=0;Yn-=1){var $o=Mr[Yn];if(!$o.disabled){Mr.splice(Yn,1),po=$o;break}}po&&d(Mr,{type:"remove",values:[po]})}for(var Ai=arguments.length,si=new Array(Ai>1?Ai-1:0),qa=1;qa1?Xr-1:0),xr=1;xr1?po-1:0),$o=1;$o"u"?"undefined":ce(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),f1=G8;var vy=E(I()),yy=(function(e,t,r,n){var o=(0,vy.useRef)(!1),i=(0,vy.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,vy.useRef)({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(i.current),o.current=!1):(!d||o.current)&&a(),!o.current&&d}});function p1(e,t,r,n,o,i,a){var s=(0,ql.useRef)(0),l=(0,ql.useRef)(null),c=(0,ql.useRef)(null),u=(0,ql.useRef)(!1),d=yy(t,r,n,o);function f(p,b){if(dt.cancel(l.current),!d(!1,b)){var S=p;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=b,c.current=b,f1||S.preventDefault(),l.current=dt(function(){var C=u.current?10:1;a(s.current*C,!1),s.current=0})}}function m(p,b){a(b,!0),f1||p.preventDefault()}var h=(0,ql.useRef)(null),v=(0,ql.useRef)(null);function y(p){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var b=p.deltaX,S=p.deltaY,C=p.shiftKey,w=b,x=S;(h.current==="sx"||!h.current&&C&&S&&!b)&&(w=S,x=0,h.current="sx");var R=Math.abs(w),O=Math.abs(x);h.current===null&&(h.current=i&&R>O?"x":"y"),h.current==="y"?f(p,x):m(p,w)}}function g(p){e&&(u.current=p.detail===c.current)}return[y,g]}var fk=E(I());function pk(e,t,r,n){var o=fk.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=L(o,2),a=i[0],s=i[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=a.get(u),m=a.get(d);if(f===void 0||m===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(p,b){if(p&&p.offsetParent){var S=p.offsetHeight,C=getComputedStyle(p),w=C.marginTop,x=C.marginBottom,R=gk(w),O=gk(x),_=S+R+O;l.current.get(b)!==_&&(l.current.set(b,_),g=!0)}}),g&&a(function(p){return p+1})};if(m)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function f(m,h){var v=e(m),y=s.current.get(v);h?(s.current.set(v,h),d()):s.current.delete(v),!y!=!h&&(h?t?.(m):r?.(m))}return(0,Nu.useEffect)(function(){return u},[]),[f,d,l.current,i]}var Iu=E(I()),vk=14/15;function g1(e,t,r){var n=(0,Iu.useRef)(!1),o=(0,Iu.useRef)(0),i=(0,Iu.useRef)(0),a=(0,Iu.useRef)(null),s=(0,Iu.useRef)(null),l,c=function(m){if(n.current){var h=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),y=o.current-h,g=i.current-v,p=Math.abs(y)>Math.abs(g);p?o.current=h:i.current=v;var b=r(p,p?y:g,!1,m);b&&m.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){p?y*=vk:g*=vk;var S=Math.floor(p?y:g);(!r(p,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},d=function(m){l(),m.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},ht(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var bk=E(I());function yk(e){return Math.floor(Math.pow(e,.5))}function by(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function h1(e,t,r){bk.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function f(){s(),i=dt(function(){r(a),f()})},c=function(){o=!1,s()},u=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},d=function(m){if(o){var h=by(m,!1),v=n.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var p=y-h;a=-yk(p),l()}else if(h>=g){var b=h-g;a=yk(b),l()}else s()}};return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",d),n.ownerDocument.addEventListener("dragend",c),function(){n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",d),n.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var Sy=E(I());var K8=10;function v1(e,t,r,n,o,i,a,s){var l=Sy.useRef(),c=Sy.useState(null),u=L(c,2),d=u[0],f=u[1];return ht(function(){if(d&&d.times=0;M-=1){var A=o(t[M]),F=r.get(A);if(F===void 0){p=!0;break}if(D-=F,D<=0)break}switch(C){case"top":S=x-y;break;case"bottom":S=R-g+y;break;default:{var W=e.current.scrollTop,j=W+g;xj&&(b="bottom")}}S!==null&&a(S),S!==d.lastTop&&(p=!0)}p&&f(N(N({},d),{},{times:d.times+1,targetAlign:b,lastTop:S}))}},[d,e.current]),function(m){if(m==null){s();return}if(dt.cancel(l.current),typeof m=="number")a(m);else if(m&&ce(m)==="object"){var h,v=m.align;"index"in m?h=m.index:h=t.findIndex(function(p){return o(p)===m.key});var y=m.offset,g=y===void 0?0:y;f({times:0,index:h,offset:g,originAlign:v})}}}var y1=E($e());var cr=E(I());var X8=cr.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,m=e.thumbStyle,h=e.showScrollBar,v=cr.useState(!1),y=L(v,2),g=y[0],p=y[1],b=cr.useState(null),S=L(b,2),C=S[0],w=S[1],x=cr.useState(null),R=L(x,2),O=R[0],_=R[1],T=!n,$=cr.useRef(),D=cr.useRef(),M=cr.useState(h),A=L(M,2),F=A[0],W=A[1],j=cr.useRef(),G=function(){h===!0||h===!1||(clearTimeout(j.current),W(!0),j.current=setTimeout(function(){W(!1)},3e3))},q=i-d||0,H=d-u||0,U=cr.useMemo(function(){if(o===0||q===0)return 0;var Z=o/q;return Z*H},[o,q,H]),z=function(K){K.stopPropagation(),K.preventDefault()},k=cr.useRef({top:U,dragging:g,pageY:C,startTop:O});k.current={top:U,dragging:g,pageY:C,startTop:O};var B=function(K){p(!0),w(by(K,c)),_(k.current.top),a(),K.stopPropagation(),K.preventDefault()};cr.useEffect(function(){var Z=function(te){te.preventDefault()},K=$.current,ee=D.current;return K.addEventListener("touchstart",Z,{passive:!1}),ee.addEventListener("touchstart",B,{passive:!1}),function(){K.removeEventListener("touchstart",Z),ee.removeEventListener("touchstart",B)}},[]);var V=cr.useRef();V.current=q;var oe=cr.useRef();oe.current=H,cr.useEffect(function(){if(g){var Z,K=function(te){var X=k.current,de=X.dragging,fe=X.pageY,se=X.startTop;dt.cancel(Z);var Ee=$.current.getBoundingClientRect(),we=d/(c?Ee.width:Ee.height);if(de){var Re=(by(te,c)-fe)*we,ve=se;!T&&c?ve-=Re:ve+=Re;var Y=V.current,Ne=oe.current,Ue=Ne?ve/Ne:0,Ze=Math.ceil(Ue*Y);Ze=Math.max(Ze,0),Ze=Math.min(Ze,Y),Z=dt(function(){l(Ze,c)})}},ee=function(){p(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),dt.cancel(Z)}}},[g]),cr.useEffect(function(){return G(),function(){clearTimeout(j.current)}},[o]),cr.useImperativeHandle(t,function(){return{delayHidden:G}});var J="".concat(r,"-scrollbar"),Q={position:"absolute",visibility:F?null:"hidden"},pe={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(Q,{height:8,left:0,right:0,bottom:0}),Object.assign(pe,P({height:"100%",width:u},T?"left":"right",U))):(Object.assign(Q,P({width:8,top:0,bottom:0},T?"right":"left",0)),Object.assign(pe,{width:"100%",height:u,top:U})),cr.createElement("div",{ref:$,className:(0,y1.default)(J,P(P(P({},"".concat(J,"-horizontal"),c),"".concat(J,"-vertical"),!c),"".concat(J,"-visible"),F)),style:N(N({},Q),f),onMouseDown:z,onMouseMove:G},cr.createElement("div",{ref:D,className:(0,y1.default)("".concat(J,"-thumb"),P({},"".concat(J,"-thumb-moving"),g)),style:N(N({},pe),m),onMouseDown:B}))}),b1=X8;var Y8=20;function S1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,Y8),Math.floor(r)}var Q8=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],J8=[],Z8={overflowY:"auto",overflowAnchor:"none"};function eH(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,m=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,p=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,C=e.innerProps,w=e.extraRender,x=e.styles,R=e.showScrollBar,O=R===void 0?"optional":R,_=ze(e,Q8),T=Ar.useCallback(function(xe){return typeof f=="function"?f(xe):xe?.[f]},[f]),$=m1(T,null,null),D=L($,4),M=D[0],A=D[1],F=D[2],W=D[3],j=!!(m!==!1&&i&&a),G=Ar.useMemo(function(){return Object.values(F.maps).reduce(function(xe,Fe){return xe+Fe},0)},[F.id,F.maps]),q=j&&u&&(Math.max(a*u.length,G)>i||!!v),H=h==="rtl",U=(0,Sk.default)(n,P({},"".concat(n,"-rtl"),H),o),z=u||J8,k=(0,lo.useRef)(),B=(0,lo.useRef)(),V=(0,lo.useRef)(),oe=(0,lo.useState)(0),J=L(oe,2),Q=J[0],pe=J[1],Z=(0,lo.useState)(0),K=L(Z,2),ee=K[0],ae=K[1],te=(0,lo.useState)(!1),X=L(te,2),de=X[0],fe=X[1],se=function(){fe(!0)},Ee=function(){fe(!1)},we={getKey:T};function Re(xe){pe(function(Fe){var Me;typeof xe=="function"?Me=xe(Fe):Me=xe;var Se=be(Me);return k.current.scrollTop=Se,Se})}var ve=(0,lo.useRef)({start:0,end:z.length}),Y=(0,lo.useRef)(),Ne=d1(z,T),Ue=L(Ne,1),Ze=Ue[0];Y.current=Ze;var Ae=Ar.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!q){var xe;return{scrollHeight:((xe=B.current)===null||xe===void 0?void 0:xe.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var Fe=0,Me,Se,tt,Tt=z.length,Lt=0;Lt=Q&&Me===void 0&&(Me=Lt,Se=Fe),Cr>Q+i&&tt===void 0&&(tt=Lt),Fe=Cr}return Me===void 0&&(Me=0,Se=0,tt=Math.ceil(i/a)),tt===void 0&&(tt=z.length-1),tt=Math.min(tt+1,z.length-1),{scrollHeight:Fe,start:Me,end:tt,offset:Se}},[q,j,Q,z,W,i]),De=Ae.scrollHeight,je=Ae.start,Ie=Ae.end,We=Ae.offset;ve.current.start=je,ve.current.end=Ie,Ar.useLayoutEffect(function(){var xe=F.getRecord();if(xe.size===1){var Fe=Array.from(xe.keys())[0],Me=xe.get(Fe),Se=z[je];if(Se&&Me===void 0){var tt=T(Se);if(tt===Fe){var Tt=F.get(Fe),Lt=Tt-a;Re(function(Kr){return Kr+Lt})}}}F.resetRecord()},[De]);var Te=Ar.useState({width:0,height:i}),_e=L(Te,2),Ge=_e[0],Ce=_e[1],he=function(Fe){Ce({width:Fe.offsetWidth,height:Fe.offsetHeight})},Be=(0,lo.useRef)(),Le=(0,lo.useRef)(),rt=Ar.useMemo(function(){return S1(Ge.width,v)},[Ge.width,v]),St=Ar.useMemo(function(){return S1(Ge.height,De)},[Ge.height,De]),pt=De-i,ke=(0,lo.useRef)(pt);ke.current=pt;function be(xe){var Fe=xe;return Number.isNaN(ke.current)||(Fe=Math.min(Fe,ke.current)),Fe=Math.max(Fe,0),Fe}var qe=Q<=0,Pe=Q>=pt,vt=ee<=0,yt=ee>=v,Qe=yy(qe,Pe,vt,yt),ut=function(){return{x:H?-ee:ee,y:Q}},It=(0,lo.useRef)(ut()),Oe=_t(function(xe){if(b){var Fe=N(N({},ut()),xe);(It.current.x!==Fe.x||It.current.y!==Fe.y)&&(b(Fe),It.current=Fe)}});function ue(xe,Fe){var Me=xe;Fe?((0,C1.flushSync)(function(){ae(Me)}),Oe()):Re(Me)}function ie(xe){var Fe=xe.currentTarget.scrollTop;Fe!==Q&&Re(Fe),p?.(xe),Oe()}var ye=function(Fe){var Me=Fe,Se=v?v-Ge.width:0;return Me=Math.max(Me,0),Me=Math.min(Me,Se),Me},et=_t(function(xe,Fe){Fe?((0,C1.flushSync)(function(){ae(function(Me){var Se=Me+(H?-xe:xe);return ye(Se)})}),Oe()):Re(function(Me){var Se=Me+xe;return Se})}),Ve=p1(j,qe,Pe,vt,yt,!!v,et),wt=L(Ve,2),Dt=wt[0],Ft=wt[1];g1(j,k,function(xe,Fe,Me,Se){var tt=Se;return Qe(xe,Fe,Me)?!1:!tt||!tt._virtualHandled?(tt&&(tt._virtualHandled=!0),Dt({preventDefault:function(){},deltaX:xe?Fe:0,deltaY:xe?0:Fe}),!0):!1}),h1(q,k,function(xe){Re(function(Fe){return Fe+xe})}),ht(function(){function xe(Me){var Se=qe&&Me.detail<0,tt=Pe&&Me.detail>0;j&&!Se&&!tt&&Me.preventDefault()}var Fe=k.current;return Fe.addEventListener("wheel",Dt,{passive:!1}),Fe.addEventListener("DOMMouseScroll",Ft,{passive:!0}),Fe.addEventListener("MozMousePixelScroll",xe,{passive:!1}),function(){Fe.removeEventListener("wheel",Dt),Fe.removeEventListener("DOMMouseScroll",Ft),Fe.removeEventListener("MozMousePixelScroll",xe)}},[j,qe,Pe]),ht(function(){if(v){var xe=ye(ee);ae(xe),Oe({x:xe})}},[Ge.width,v]);var At=function(){var Fe,Me;(Fe=Be.current)===null||Fe===void 0||Fe.delayHidden(),(Me=Le.current)===null||Me===void 0||Me.delayHidden()},kr=v1(k,z,F,a,T,function(){return A(!0)},Re,At);Ar.useImperativeHandle(t,function(){return{nativeElement:V.current,getScrollInfo:ut,scrollTo:function(Fe){function Me(Se){return Se&&ce(Se)==="object"&&("left"in Se||"top"in Se)}Me(Fe)?(Fe.left!==void 0&&ae(ye(Fe.left)),kr(Fe.top)):kr(Fe)}}}),ht(function(){if(S){var xe=z.slice(je,Ie+1);S(xe,z)}},[je,Ie,z]);var pr=pk(z,T,F,a),mr=w?.({start:je,end:Ie,virtual:q,offsetX:ee,offsetY:We,rtl:H,getSize:pr}),mn=u1(z,je,Ie,v,ee,M,d,we),Qt=null;i&&(Qt=N(P({},l?"height":"maxHeight",i),Z8),j&&(Qt.overflowY="hidden",v&&(Qt.overflowX="hidden"),de&&(Qt.pointerEvents="none")));var Or={};return H&&(Or.dir="rtl"),Ar.createElement("div",le({ref:V,style:N(N({},c),{},{position:"relative"}),className:U},Or,_),Ar.createElement(no,{onResize:he},Ar.createElement(g,{className:"".concat(n,"-holder"),style:Qt,ref:k,onScroll:ie,onMouseEnter:At},Ar.createElement(lk,{prefixCls:n,height:De,offsetX:ee,offsetY:We,scrollWidth:v,onInnerResize:A,ref:B,innerProps:C,rtl:H,extra:mr},mn))),q&&De>i&&Ar.createElement(b1,{ref:Be,prefixCls:n,scrollOffset:Q,scrollRange:De,rtl:H,onScroll:ue,onStartMove:se,onStopMove:Ee,spinSize:St,containerSize:Ge.height,style:x?.verticalScrollBar,thumbStyle:x?.verticalScrollBarThumb,showScrollBar:O}),q&&v>Ge.width&&Ar.createElement(b1,{ref:Le,prefixCls:n,scrollOffset:ee,scrollRange:v,rtl:H,onScroll:ue,onStartMove:se,onStopMove:Ee,spinSize:rt,containerSize:Ge.width,horizontal:!0,style:x?.horizontalScrollBar,thumbStyle:x?.horizontalScrollBarThumb,showScrollBar:O}))}var Ck=Ar.forwardRef(eH);Ck.displayName="List";var xk=Ck;var wk=xk;var Ut=E(I()),w1=E(I());function Ek(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tH=["disabled","title","children","style","className"];function Rk(e){return typeof e=="string"||typeof e=="number"}var rH=function(t,r){var n=ay(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,d=n.notFoundContent,f=n.onPopupScroll,m=Ut.useContext(Pu),h=m.maxCount,v=m.flattenOptions,y=m.onActiveValue,g=m.defaultActiveFirstOption,p=m.onSelect,b=m.menuItemSelectedIcon,S=m.rawValues,C=m.fieldNames,w=m.virtual,x=m.direction,R=m.listHeight,O=m.listItemHeight,_=m.optionRender,T="".concat(o,"-item"),$=Ui(function(){return v},[a,v],function(Z,K){return K[0]&&Z[1]!==K[1]}),D=Ut.useRef(null),M=Ut.useMemo(function(){return s&&Zf(h)&&S?.size>=h},[s,h,S?.size]),A=function(K){K.preventDefault()},F=function(K){var ee;(ee=D.current)===null||ee===void 0||ee.scrollTo(typeof K=="number"?{index:K}:K)},W=Ut.useCallback(function(Z){return l==="combobox"?!1:S.has(Z)},[l,re(S).toString(),S.size]),j=function(K){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=$.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;U(K);var ae={source:ee?"keyboard":"mouse"},te=$[K];if(!te){y(null,-1,ae);return}y(te.value,K,ae)};(0,w1.useEffect)(function(){z(g!==!1?j(0):-1)},[$.length,c]);var k=Ut.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():S.has(Z)},[l,c,re(S).toString(),S.size]);(0,w1.useEffect)(function(){var Z=setTimeout(function(){if(!s&&a&&S.size===1){var ee=Array.from(S)[0],ae=$.findIndex(function(te){var X=te.data;return c?String(X.value).startsWith(c):X.value===ee});ae!==-1&&(z(ae),F(ae))}});if(a){var K;(K=D.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,c]);var B=function(K){K!==void 0&&p(K,{selected:!S.has(K)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(K){var ee=K.which,ae=K.ctrlKey;switch(ee){case Ye.N:case Ye.P:case Ye.UP:case Ye.DOWN:{var te=0;if(ee===Ye.UP?te=-1:ee===Ye.DOWN?te=1:Ek()&&ae&&(ee===Ye.N?te=1:ee===Ye.P&&(te=-1)),te!==0){var X=j(H+te,te);F(X),z(X,!0)}break}case Ye.TAB:case Ye.ENTER:{var de,fe=$[H];fe&&!(fe!=null&&(de=fe.data)!==null&&de!==void 0&&de.disabled)&&!M?B(fe.value):B(void 0),a&&K.preventDefault();break}case Ye.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){F(K)}}}),$.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(T,"-empty"),onMouseDown:A},d);var V=Object.keys(C).map(function(Z){return C[Z]}),oe=function(K){return K.label};function J(Z,K){var ee=Z.group;return{role:ee?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var Q=function(K){var ee=$[K];if(!ee)return null;var ae=ee.data||{},te=ae.value,X=ee.group,de=qo(ae,!0),fe=oe(ee);return ee?Ut.createElement("div",le({"aria-label":typeof fe=="string"&&!X?fe:null},de,{key:K},J(ee,K),{"aria-selected":k(te)}),te):null},pe={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",le({},pe,{style:{height:0,width:0,overflow:"hidden"}}),Q(H-1),Q(H),Q(H+1)),Ut.createElement(wk,{itemKey:"key",ref:D,data:$,height:R,itemHeight:O,fullHeight:!1,onMouseDown:A,onScroll:f,virtual:w,direction:x,innerProps:w?null:pe},function(Z,K){var ee=Z.group,ae=Z.groupOption,te=Z.data,X=Z.label,de=Z.value,fe=te.key;if(ee){var se,Ee=(se=te.title)!==null&&se!==void 0?se:Rk(X)?X.toString():void 0;return Ut.createElement("div",{className:(0,x1.default)(T,"".concat(T,"-group"),te.className),title:Ee},X!==void 0?X:fe)}var we=te.disabled,Re=te.title,ve=te.children,Y=te.style,Ne=te.className,Ue=ze(te,tH),Ze=Gr(Ue,V),Ae=W(de),De=we||!Ae&&M,je="".concat(T,"-option"),Ie=(0,x1.default)(T,je,Ne,P(P(P(P({},"".concat(je,"-grouped"),ae),"".concat(je,"-active"),H===K&&!De),"".concat(je,"-disabled"),De),"".concat(je,"-selected"),Ae)),We=oe(Z),Te=!b||typeof b=="function"||Ae,_e=typeof We=="number"?We:We||de,Ge=Rk(_e)?_e.toString():void 0;return Re!==void 0&&(Ge=Re),Ut.createElement("div",le({},qo(Ze),w?{}:J(Z,K),{"aria-selected":k(de),className:Ie,title:Ge,onMouseMove:function(){H===K||De||z(K)},onClick:function(){De||B(de)},style:Y}),Ut.createElement("div",{className:"".concat(je,"-content")},typeof _=="function"?_(Z,{index:K}):_e),Ut.isValidElement(b)||Ae,Te&&Ut.createElement(Bs,{className:"".concat(T,"-option-state"),customizeIcon:b,customizeIconProps:{value:de,disabled:De,isSelected:Ae}},Ae?"\u2713":null))}))},nH=Ut.forwardRef(rH),_k=nH;var Tu=E(I()),Pk=(function(e,t){var r=Tu.useRef({values:new Map,options:new Map}),n=Tu.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return N(N({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),r.current.values=c,r.current.options=u,l},[e,t]),o=Tu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]});var Ok=E(I());function E1(e,t){return Xf(e).join("").toUpperCase().includes(t)}var Nk=(function(e,t,r,n,o){return Ok.useMemo(function(){if(!r||n===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),d=c?n:function(m,h){return o?E1(h[o],u):h[i]?E1(h[a!=="children"?a:"label"],u):E1(h[s],u)},f=c?function(m){return ep(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=d(r,f(m));if(h)l.push(m);else{var v=m[i].filter(function(y){return d(r,f(y))});v.length&&l.push(N(N({},m),{},P({},i,v)))}return}d(r,f(m))&&l.push(m)}),l},[e,n,o,r,t])});var Cy=E(I());var Ik=0,oH=Yt();function iH(){var e;return oH?(e=Ik,Ik+=1):e="TEST_OR_SSR",e}function R1(e){var t=Cy.useState(),r=L(t,2),n=r[0],o=r[1];return Cy.useEffect(function(){o("rc_select_".concat(iH()))},[]),e||n}var $k=E(I());var Tk=E(I());var aH=["children","value"],sH=["children"];function lH(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=ze(n,aH);return N({key:r,value:i!==void 0?i:r,children:o},a)}function xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vi(e).map(function(r,n){if(!Tk.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=ze(s,sH);return t||!i?lH(r):N(N({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:xy(l)})}).filter(function(r){return r})}var cH=function(t,r,n,o,i){return $k.useMemo(function(){var a=t,s=!t;s&&(a=xy(r));var l=new Map,c=new Map,u=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h)},d=function f(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Oe(ye.options):ye.options}):ye})},Te=ur.useMemo(function(){return p?We(Ie):Ie},[Ie,p,pe]),_e=ur.useMemo(function(){return ek(Te,{fieldNames:oe,childrenAsData:B})},[Te,oe,B]),Ge=function(ue){var ie=X(ue);if(Ee(ie),q&&(ie.length!==Y.length||ie.some(function(Ve,wt){var Dt;return((Dt=Y[wt])===null||Dt===void 0?void 0:Dt.value)!==Ve?.value}))){var ye=G?ie:ie.map(function(Ve){return Ve.value}),et=ie.map(function(Ve){return ep(Ne(Ve.value))});q(k?ye:ye[0],k?et:et[0])}},Ce=ur.useState(null),he=L(Ce,2),Be=he[0],Le=he[1],rt=ur.useState(0),St=L(rt,2),pt=St[0],ke=St[1],be=R!==void 0?R:n!=="combobox",qe=ur.useCallback(function(Oe,ue){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=ie.source,et=ye===void 0?"keyboard":ye;ke(ue),a&&n==="combobox"&&Oe!==null&&et==="keyboard"&&Le(String(Oe))},[a,n]),Pe=function(ue,ie,ye){var et=function(){var Qt,Or=Ne(ue);return[G?{label:Or?.[oe.label],value:ue,key:(Qt=Or?.key)!==null&&Qt!==void 0?Qt:ue}:ue,ep(Or)]};if(ie&&m){var Ve=et(),wt=L(Ve,2),Dt=wt[0],Ft=wt[1];m(Dt,Ft)}else if(!ie&&h&&ye!=="clear"){var At=et(),kr=L(At,2),pr=kr[0],mr=kr[1];h(pr,mr)}},vt=Ey(function(Oe,ue){var ie,ye=k?ue.selected:!0;ye?ie=k?[].concat(re(Y),[Oe]):[Oe]:ie=Y.filter(function(et){return et.value!==Oe}),Ge(ie),Pe(Oe,ye),n==="combobox"?Le(""):(!tp||f)&&(Z(""),Le(""))}),yt=function(ue,ie){Ge(ue);var ye=ie.type,et=ie.values;(ye==="remove"||ye==="clear")&&et.forEach(function(Ve){Pe(Ve.value,!1,ye)})},Qe=function(ue,ie){if(Z(ue),Le(null),ie.source==="submit"){var ye=(ue||"").trim();if(ye){var et=Array.from(new Set([].concat(re(Ze),[ye])));Ge(et),Pe(ye,!0),Z("")}return}ie.source!=="blur"&&(n==="combobox"&&Ge(ue),u?.(ue))},ut=function(ue){var ie=ue;n!=="tags"&&(ie=ue.map(function(et){var Ve=ae.get(et);return Ve?.value}).filter(function(et){return et!==void 0}));var ye=Array.from(new Set([].concat(re(Ze),re(ie))));Ge(ye),ye.forEach(function(et){Pe(et,!0)})},It=ur.useMemo(function(){var Oe=_!==!1&&y!==!1;return N(N({},K),{},{flattenOptions:_e,onActiveValue:qe,defaultActiveFirstOption:be,onSelect:vt,menuItemSelectedIcon:O,rawValues:Ze,fieldNames:oe,virtual:Oe,direction:T,listHeight:D,listItemHeight:A,childrenAsData:B,maxCount:H,optionRender:w})},[H,K,_e,qe,be,vt,O,Ze,oe,_,y,T,D,A,B,w]);return ur.createElement(Pu.Provider,{value:It},ur.createElement(c1,le({},U,{id:z,prefixCls:i,ref:t,omitDomProps:fH,mode:n,displayValues:Ue,onDisplayValuesChange:yt,direction:T,searchValue:pe,onSearch:Qe,autoClearSearchValue:f,onSearchSplit:ut,dropdownMatchSelectWidth:y,OptionList:_k,emptyOptions:!_e.length,activeValue:Be,activeDescendantId:"".concat(z,"_list_").concat(pt)})))}),_1=mH;_1.Option=np;_1.OptGroup=rp;var Ak=_1;var kk=Ak;var Mk=E($e());function Ji(e,t,r){return(0,Mk.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var Zi=(e,t)=>t||e;var Du=E(I());var Ks=E(I()),ip=E($e());var co=E(I());var gH=()=>{let[,e]=yr(),[t]=Ea("Empty"),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return co.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},co.createElement("title",null,t?.description||"Empty"),co.createElement("g",{fill:"none",fillRule:"evenodd"},co.createElement("g",{transform:"translate(24 31.67)"},co.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),co.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"}),co.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)"}),co.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"}),co.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"})),co.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"}),co.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},co.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),co.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Lk=gH;var qs=E(I()),Fk=E(I());var hH=()=>{let[,e]=yr(),[t]=Ea("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,Fk.useMemo)(()=>({borderColor:new gt(r).onBackground(i).toHexString(),shadowColor:new gt(n).onBackground(i).toHexString(),contentColor:new gt(o).onBackground(i).toHexString()}),[r,n,o,i]);return qs.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},qs.createElement("title",null,t?.description||"Empty"),qs.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},qs.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),qs.createElement("g",{fillRule:"nonzero",stroke:a},qs.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"}),qs.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},Wk=hH;var vH=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},zk=qt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return vH(o)});var yH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t;let{className:r,rootClassName:n,prefixCls:o,image:i,description:a,children:s,imageStyle:l,style:c,classNames:u,styles:d}=e,f=yH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:h,className:v,style:y,classNames:g,styles:p,image:b}=Dn("empty"),S=m("empty",o),[C,w,x]=zk(S),[R]=Ea("Empty"),O=typeof a<"u"?a:R?.description,_=typeof O=="string"?O:"empty",T=(t=i??b)!==null&&t!==void 0?t:jk,$=null;return typeof T=="string"?$=Ks.createElement("img",{draggable:!1,alt:_,src:T}):$=T,C(Ks.createElement("div",Object.assign({className:(0,ip.default)(w,x,S,v,{[`${S}-normal`]:T===Bk,[`${S}-rtl`]:h==="rtl"},r,n,g.root,u?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},p.root),y),d?.root),c)},f),Ks.createElement("div",{className:(0,ip.default)(`${S}-image`,g.image,u?.image),style:Object.assign(Object.assign(Object.assign({},l),p.image),d?.image)},$),O&&Ks.createElement("div",{className:(0,ip.default)(`${S}-description`,g.description,u?.description),style:Object.assign(Object.assign({},p.description),d?.description)},O),s&&Ks.createElement("div",{className:(0,ip.default)(`${S}-footer`,g.footer,u?.footer),style:Object.assign(Object.assign({},p.footer),d?.footer)},s)))};P1.PRESENTED_IMAGE_DEFAULT=jk;P1.PRESENTED_IMAGE_SIMPLE=Bk;var $u=P1;var bH=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,Du.useContext)(nt),n=r("empty");switch(t){case"Table":case"List":return Du.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Du.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return Du.default.createElement($u,null)}},Vk=bH;var O1=E(I());var SH=(e,t,r)=>{var n,o;let{variant:i,[e]:a}=O1.useContext(nt),s=O1.useContext(lA),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";let u=wx.includes(c);return[c,u]},Xs=SH;var CH=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function xH(e,t){return e||CH(t)}var Hk=xH;var Uk=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},wH=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},ar(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}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:Iv},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:$v},[`${a}${s}bottomLeft`]:{animationName:Tv},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:Dv},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},Uk(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"},Oa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-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({},Uk(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Av(e,"slide-up"),Av(e,"slide-down"),Nv(e,"move-up"),Nv(e,"move-down")]},Gk=wH;var EH=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:ne(t),itemLineHeight:ne(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},RH=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},_H=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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({},Na()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},PH=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=RH(e),s=t?`${r}-${t}`:"",l=EH(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},_H(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne(n)} 0`,lineHeight:ne(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:ne(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ne(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, ${r}-prefix + ${r}-selection-wrap `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-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:ne(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"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function N1(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[PH(e,t),o]}var OH=e=>{let{componentCls:t}=e,r=ct(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ct(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[N1(e),N1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},N1(n,"lg")]},qk=OH;function I1(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},ar(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:ne(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${r}-selection-item, ${r}-selection-placeholder `]:{display:"block",padding:0,lineHeight:ne(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-search, &${r}-show-arrow ${r}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ne(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:ne(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ne(n)}`,"&:after":{display:"none"}}}}}}}function T1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[I1(e),I1(ct(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ne(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).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()}}}},I1(ct(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var Kk=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:p,colorPrimary:b,controlOutline:S}=e,C=s*2,w=n*2,x=Math.min(o-C,o-w),R=Math.min(i-C,i-w),O=Math.min(a-C,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}};var Jk=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ne(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},Xk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Jk(e,t))}),NH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Jk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Xk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Xk(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:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Zk=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Yk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Zk(e,t))}),IH=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Zk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Yk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Yk(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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),TH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ne(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:`${ne(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}}}}),eM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`${ne(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${r}-focused& ${r}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${r}-prefix`]:{color:t.color}}}},Qk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},eM(e,t))}),$H=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},eM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Qk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Qk(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:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),DH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},NH(e)),IH(e)),TH(e)),$H(e))}),tM=DH;var AH=e=>{let{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"}}}},kH=e=>{let{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"}}}},MH=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},AH(e)),kH(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oa),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Oa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Na()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},LH=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},MH(e),T1(e),qk(e),Gk(e),{[`${t}-rtl`]:{direction:"rtl"}},Fs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},rM=qt("Select",(e,{rootPrefixCls:t})=>{let r=ct(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LH(r),tM(r)]},Kk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ea=E(I());var Ry=E(I());var FH={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"},nM=FH;var WH=function(t,r){return Ry.createElement(Wt,le({},t,{ref:r,icon:nM}))},zH=Ry.forwardRef(WH),_y=zH;var Py=E(I());var jH={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"},oM=jH;var BH=function(t,r){return Py.createElement(Wt,le({},t,{ref:r,icon:oM}))},VH=Py.forwardRef(BH),Oy=VH;var Ny=E(I());var HH={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"},iM=HH;var UH=function(t,r){return Ny.createElement(Wt,le({},t,{ref:r,icon:iM}))},GH=Ny.forwardRef(UH),Iy=GH;function $1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:d}){let f=t??ea.createElement(mu,null),m=g=>e===null&&!a&&!u?null:ea.createElement(ea.Fragment,null,l!==!1&&g,a&&c),h=null;if(e!==void 0)h=m(e);else if(o)h=m(ea.createElement(Wl,{spin:!0}));else{let g=`${s}-suffix`;h=({open:p,showSearch:b})=>m(p&&b?ea.createElement(Iy,{className:g}):ea.createElement(Oy,{className:g}))}let v=null;r!==void 0?v=r:i?v=ea.createElement(_y,null):v=null;let y=null;return n!==void 0?y=n:y=ea.createElement(pv,null),{clearIcon:f,suffixIcon:h,itemIcon:v,removeIcon:y}}var D1=E(I());function qH(e){return D1.default.useMemo(()=>{if(e)return(...t)=>D1.default.createElement(Yi,{space:!0},e.apply(void 0,t))},[e])}var aM=qH;function A1(e,t){return t!==void 0?t:e!==null}var KH=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,o,i,a;let{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:d,popupClassName:f,dropdownClassName:m,listHeight:h=256,placement:v,listItemHeight:y,size:g,disabled:p,notFoundContent:b,status:S,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:R,style:O,allowClear:_,variant:T,dropdownStyle:$,transitionName:D,tagRender:M,maxCount:A,prefix:F,dropdownRender:W,popupRender:j,onDropdownVisibleChange:G,onOpenChange:q,styles:H,classNames:U}=e,z=KH(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:k,getPrefixCls:B,renderEmpty:V,direction:oe,virtual:J,popupMatchSelectWidth:Q,popupOverflow:pe}=ri.useContext(nt),{showSearch:Z,style:K,styles:ee,className:ae,classNames:te}=Dn("select"),[,X]=yr(),de=y??X?.controlHeight,fe=B("select",s),se=B(),Ee=R??oe,{compactSize:we,compactItemClassnames:Re}=Yo(fe,Ee),[ve,Y]=Xs("select",T,l),Ne=Xo(fe),[Ue,Ze,Ae]=rM(fe,Ne),De=ri.useMemo(()=>{let{mode:ye}=e;if(ye!=="combobox")return ye===sM?"combobox":ye},[e.mode]),je=De==="multiple"||De==="tags",Ie=A1(e.suffixIcon,e.showArrow),We=(r=x??w)!==null&&r!==void 0?r:Q,Te=((n=H?.popup)===null||n===void 0?void 0:n.root)||((o=ee.popup)===null||o===void 0?void 0:o.root)||$,_e=aM(j||W),Ge=q||G,{status:Ce,hasFeedback:he,isFormItemInput:Be,feedbackIcon:Le}=ri.useContext(pn),rt=Zi(Ce,S),St;b!==void 0?St=b:De==="combobox"?St=null:St=V?.("Select")||ri.createElement(Vk,{componentName:"Select"});let{suffixIcon:pt,itemIcon:ke,removeIcon:be,clearIcon:qe}=$1(Object.assign(Object.assign({},z),{multiple:je,hasFeedback:he,feedbackIcon:Le,showSuffixIcon:Ie,prefixCls:fe,componentName:"Select"})),Pe=_===!0?{clearIcon:qe}:_,vt=Gr(z,["suffixIcon","itemIcon"]),yt=(0,k1.default)(((i=U?.popup)===null||i===void 0?void 0:i.root)||((a=te?.popup)===null||a===void 0?void 0:a.root)||f||m,{[`${fe}-dropdown-${Ee}`]:Ee==="rtl"},u,te.root,U?.root,Ae,Ne,Ze),Qe=ao(ye=>{var et;return(et=g??we)!==null&&et!==void 0?et:ye}),ut=ri.useContext(Hr),It=p??ut,Oe=(0,k1.default)({[`${fe}-lg`]:Qe==="large",[`${fe}-sm`]:Qe==="small",[`${fe}-rtl`]:Ee==="rtl",[`${fe}-${ve}`]:Y,[`${fe}-in-form-item`]:Be},Ji(fe,rt,he),Re,ae,c,te.root,U?.root,u,Ae,Ne,Ze),ue=ri.useMemo(()=>v!==void 0?v:Ee==="rtl"?"bottomRight":"bottomLeft",[v,Ee]),[ie]=vv("SelectLike",Te?.zIndex);return Ue(ri.createElement(kk,Object.assign({ref:t,virtual:J,showSearch:Z},vt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee.root),H?.root),K),O),dropdownMatchSelectWidth:We,transitionName:xv(se,"slide-up",D),builtinPlacements:Hk(C,pe),listHeight:h,listItemHeight:de,mode:De,prefixCls:fe,placement:ue,direction:Ee,prefix:F,suffixIcon:pt,menuItemSelectedIcon:ke,removeIcon:be,allowClear:Pe,notFoundContent:St,className:Oe,getPopupContainer:d||k,dropdownClassName:yt,disabled:It,dropdownStyle:Object.assign(Object.assign({},Te),{zIndex:ie}),maxCount:je?A:void 0,tagRender:je?M:void 0,dropdownRender:_e,onDropdownVisibleChange:Ge})))},Au=ri.forwardRef(XH),YH=cA(Au,"dropdownAlign");Au.SECRET_COMBOBOX_MODE_DO_NOT_USE=sM;Au.Option=np;Au.OptGroup=rp;Au._InternalPanelDoNotUseOrYouWillBeFired=YH;var ap=Au;var Cn=E(I()),ky=E($e());var M1=E($e()),L1=E(I());function ku(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return L1.createElement("div",{className:(0,M1.default)("".concat(r,"-content"),a),style:s},L1.createElement("div",{className:(0,M1.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var cM=E($e()),Kl=E(I()),Fu=E(I());var Mu={shiftX:64,adjustY:1},Lu={adjustX:1,shiftY:!0},ni=[0,0],lM={left:{points:["cr","cl"],overflow:Lu,offset:[-4,0],targetOffset:ni},right:{points:["cl","cr"],overflow:Lu,offset:[4,0],targetOffset:ni},top:{points:["bc","tc"],overflow:Mu,offset:[0,-4],targetOffset:ni},bottom:{points:["tc","bc"],overflow:Mu,offset:[0,4],targetOffset:ni},topLeft:{points:["bl","tl"],overflow:Mu,offset:[0,-4],targetOffset:ni},leftTop:{points:["tr","tl"],overflow:Lu,offset:[-4,0],targetOffset:ni},topRight:{points:["br","tr"],overflow:Mu,offset:[0,-4],targetOffset:ni},rightTop:{points:["tl","tr"],overflow:Lu,offset:[4,0],targetOffset:ni},bottomRight:{points:["tr","br"],overflow:Mu,offset:[0,4],targetOffset:ni},rightBottom:{points:["bl","br"],overflow:Lu,offset:[4,0],targetOffset:ni},bottomLeft:{points:["tl","bl"],overflow:Mu,offset:[0,4],targetOffset:ni},leftBottom:{points:["br","bl"],overflow:Lu,offset:[-4,0],targetOffset:ni}};var QH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],JH=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,p=t.motion,b=t.placement,S=b===void 0?"right":b,C=t.align,w=C===void 0?{}:C,x=t.destroyTooltipOnHide,R=x===void 0?!1:x,O=t.defaultVisible,_=t.getTooltipContainer,T=t.overlayInnerStyle,$=t.arrowContent,D=t.overlay,M=t.id,A=t.showArrow,F=A===void 0?!0:A,W=t.classNames,j=t.styles,G=ze(t,QH),q=Uv(M),H=(0,Fu.useRef)(null);(0,Fu.useImperativeHandle)(r,function(){return H.current});var U=N({},G);"visible"in t&&(U.popupVisible=t.visible);var z=function(){return Kl.createElement(ku,{key:"content",prefixCls:f,id:q,bodyClassName:W?.body,overlayInnerStyle:N(N({},T),j?.body)},D)},k=function(){var V=Kl.Children.only(m),oe=V?.props||{},J=N(N({},oe),{},{"aria-describedby":D?q:null});return Kl.cloneElement(m,J)};return Kl.createElement(gy,le({popupClassName:(0,cM.default)(n,W?.root),prefixCls:f,popup:z,action:i,builtinPlacements:lM,popupPlacement:S,ref:H,popupAlign:w,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:p,defaultPopupVisible:O,autoDestroy:R,mouseLeaveDelay:c,popupStyle:N(N({},u),j?.root),mouseEnterDelay:s,arrow:F},U),k())},uM=(0,Fu.forwardRef)(JH);var dM=uM;function fM(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,m=2*o-s,h=l,v=2*o-i,y=a,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),p=n*(Math.sqrt(2)-1),b=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,S=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${m} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:S,arrowPolygon:b}}var pM=(e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ne(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var F1=8;function $y(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?F1:n}}function Ty(e,t){return e?t:{}}function W1(e,t,r){let{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},pM(e,t,o)),{"&:before":{background:t}})]},Ty(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ty(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ty(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Ty(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function ZH(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var mM={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},eU={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},tU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function z1(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={},c=$y({contentRadius:i,limitVerticalRadius:!0});return Object.keys(mM).forEach(u=>{let d=n&&eU[u]||mM[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,tU.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=c.arrowOffsetHorizontal*2-s;break}f.overflow=ZH(u,c,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Wu=E(I()),vM=E($e());var rU=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:m}=e,h=t(a).add(m).add(f).equal(),v=t(a).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${ne(e.calc(u).div(2).equal())} ${ne(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,F1)}},[`${r}-content`]:{position:"relative"}}),zh(e,(y,{darkColor:g})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:g},[`${r}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},W1(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$y({contentRadius:e.borderRadius,limitVerticalRadius:!0})),fM(ct(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Dy=(e,t=!0)=>qt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ct(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[rU(s),Cw(n,"zoom-big-fast")]},nU,{resetStyle:!1,injectStyle:t})(e);var hM=E($e());var oU=Eo.map(e=>`${e}-inverse`);function gM(e,t=!0){return t?[].concat(re(oU),re(Eo)).includes(e):Eo.includes(e)}function Ay(e,t){let r=gM(t),n=(0,hM.default)({[`${e}-${t}`]:t&&r}),o={},i={},a=Q$(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}var iU=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Wu.useContext(nt),l=s("tooltip",t),[c,u,d]=Dy(l),f=Ay(l,i),m=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),v=(0,vM.default)(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(Wu.createElement("div",{className:v,style:m},Wu.createElement("div",{className:`${l}-arrow`}),Wu.createElement(ku,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},yM=iU;var aU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:m,arrow:h=!0,title:v,overlay:y,builtinPlacements:g,arrowPointAtCenter:p=!1,autoAdjustOverflow:b=!0,motion:S,getPopupContainer:C,placement:w="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,overlayStyle:O,rootClassName:_,overlayClassName:T,styles:$,classNames:D}=e,M=aU(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),A=!!h,[,F]=yr(),{getPopupContainer:W,getPrefixCls:j,direction:G,className:q,style:H,classNames:U,styles:z}=Dn("tooltip"),k=Rh("Tooltip"),B=Cn.useRef(null),V=()=>{var Ie;(Ie=B.current)===null||Ie===void 0||Ie.forceAlign()};Cn.useImperativeHandle(t,()=>{var Ie,We;return{forceAlign:V,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:(Ie=B.current)===null||Ie===void 0?void 0:Ie.nativeElement,popupElement:(We=B.current)===null||We===void 0?void 0:We.popupElement}});let[oe,J]=ir(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Q=!v&&!y&&v!==0,pe=Ie=>{var We,Te;J(Q?!1:Ie),Q||((We=e.onOpenChange)===null||We===void 0||We.call(e,Ie),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,Ie))},Z=Cn.useMemo(()=>{var Ie,We;let Te=p;return typeof h=="object"&&(Te=(We=(Ie=h.pointAtCenter)!==null&&Ie!==void 0?Ie:h.arrowPointAtCenter)!==null&&We!==void 0?We:p),g||z1({arrowPointAtCenter:Te,autoAdjustOverflow:b,arrowWidth:A?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS,visibleFirst:!0})},[p,h,g,F]),K=Cn.useMemo(()=>v===0?v:y||v||"",[y,v]),ee=Cn.createElement(Yi,{space:!0},typeof K=="function"?K():K),ae=j("tooltip",o),te=j(),X=e["data-popover-inject"],de=oe;!("open"in e)&&!("visible"in e)&&Q&&(de=!1);let fe=Cn.isValidElement(c)&&!mv(c)?c:Cn.createElement("span",null,c),se=fe.props,Ee=!se.className||typeof se.className=="string"?(0,ky.default)(se.className,i||`${ae}-open`):se.className,[we,Re,ve]=Dy(ae,!X),Y=Ay(ae,s),Ne=Y.arrowStyle,Ue=(0,ky.default)(T,{[`${ae}-rtl`]:G==="rtl"},Y.className,_,Re,ve,q,U.root,D?.root),Ze=(0,ky.default)(U.body,D?.body),[Ae,De]=vv("Tooltip",M.zIndex),je=Cn.createElement(dM,Object.assign({},M,{zIndex:Ae,showArrow:A,placement:w,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:ae,classNames:{root:Ue,body:Ze},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),z.root),H),O),$?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},z.body),l),$?.body),Y.overlayStyle)},getTooltipContainer:C||a||W,ref:B,builtinPlacements:Z,overlay:ee,visible:de,onVisibleChange:pe,afterVisibleChange:u??d,arrowContent:Cn.createElement("span",{className:`${ae}-arrow-content`}),motion:{motionName:xv(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!f}),de?Ko(fe,{className:Ee}):fe);return we(Cn.createElement(hv.Provider,{value:De},je))}),bM=sU;bM._InternalPanelDoNotUseOrYouWillBeFired=yM;var Fa=bM;var SM=E($e());var My=E(I()),Xl=E(I()),lU=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],cU=(0,Xl.forwardRef)(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,m=e.onChange,h=ze(e,lU),v=(0,Xl.useRef)(null),y=(0,Xl.useRef)(null),g=ir(c,{value:a}),p=L(g,2),b=p[0],S=p[1];(0,Xl.useImperativeHandle)(t,function(){return{focus:function(R){var O;(O=v.current)===null||O===void 0||O.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var C=(0,SM.default)(n,o,P(P({},"".concat(n,"-checked"),b),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||S(R.target.checked),m?.({target:N(N({},e),{},{type:d,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return My.createElement("span",{className:C,title:f,style:i,ref:y},My.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!b,type:d})),My.createElement("span",{className:"".concat(n,"-inner")}))}),CM=cU;var xM=E(I());function j1(e){let t=xM.default.useRef(null),r=()=>{dt.cancel(t.current),t.current=null};return[()=>{r(),t.current=dt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function Wa(e){return ct(e,{inputAffixPadding:e.paddingXXS})}var za=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:p,colorBgContainer:b,inputFontSize:S,inputFontSizeLG:C,inputFontSizeSM:w}=e,x=S||r,R=w||x,O=C||s,_=Math.round((t-x*n)/2*10)/10-o,T=Math.round((i-R*n)/2*10)/10-o,$=Math.ceil((a-O*l)/2*10)/10-o;return{paddingBlock:Math.max(_,0),paddingBlockSM:Math.max(T,0),paddingBlockLG:Math.max($,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:b,activeBg:b,inputFontSize:x,inputFontSizeLG:O,inputFontSizeSM:R}};var uU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),B1=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({},uU(ct(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),OM=(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}}),wM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},OM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Ly=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},B1(e))}),wM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),wM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),EM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},EM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),EM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},B1(e))}})}),Wy=(e,t)=>{let{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},NM=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},RM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},NM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),zy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},NM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},B1(e))}),RM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),RM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),_M=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jy=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},_M(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),_M(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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),IM=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ne(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}}),PM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},IM(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`}}),By=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},IM(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"}}),PM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),PM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var V1=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var TM=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${ne(t)} ${ne(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},$M=e=>({padding:`${ne(e.paddingBlockSM)} ${ne(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),sp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ne(e.paddingBlock)} ${ne(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},V1(e.colorTextPlaceholder)),{"&-lg":Object.assign({},TM(e)),"&-sm":Object.assign({},$M(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),H1=e=>{let{componentCls:t,antCls:r}=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({},TM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},$M(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${ne(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ne(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},fu()),{[`${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, & > ${r}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},dU=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),sp(e)),Ly(e)),zy(e)),Wy(e)),By(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},fU=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ne(e.inputAffixPadding)}`}}}},pU=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},sp(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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),fU(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},mU=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ar(e)),H1(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Fy(e)),jy(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}}})})}},gU=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-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,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-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}}}}},hU=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Vy=qt(["Input","Shared"],e=>{let t=ct(e,Wa(e));return[dU(t),pU(t)]},za,{resetFont:!1}),Hy=qt(["Input","Component"],e=>{let t=ct(e,Wa(e));return[mU(t),gU(t),hU(t),Fs(t)]},za,{resetFont:!1});var vU=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Mx(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ne(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function yU(e,t){let r=ct(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return vU(r)}var Uy=qt("Checkbox",(e,{prefixCls:t})=>[yU(t,e)]);var Jr=E(I()),U1=E($e());var DM=E(I()),bU=DM.default.createContext(null),Gy=bU;var SU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,m=SU(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Jr.useContext(nt),g=Jr.useContext(Gy),{isFormItemInput:p}=Jr.useContext(pn),b=Jr.useContext(Hr),S=(r=g?.disabled||f)!==null&&r!==void 0?r:b,C=Jr.useRef(m.value),w=Jr.useRef(null),x=Wr(t,w);Jr.useEffect(()=>{g?.registerValue(m.value)},[]),Jr.useEffect(()=>{if(!d)return m.value!==C.current&&(g?.cancelValue(C.current),g?.registerValue(m.value),C.current=m.value),()=>g?.cancelValue(m.value)},[m.value]),Jr.useEffect(()=>{var j;!((j=w.current)===null||j===void 0)&&j.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),O=Xo(R),[_,T,$]=Uy(R,O),D=Object.assign({},m);g&&!d&&(D.onChange=(...j)=>{m.onChange&&m.onChange.apply(m,j),g.toggleOption&&g.toggleOption({label:a,value:m.value})},D.name=g.name,D.checked=g.value.includes(m.value));let M=(0,U1.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:D.checked,[`${R}-wrapper-disabled`]:S,[`${R}-wrapper-in-form-item`]:p},y?.className,o,i,$,O,T),A=(0,U1.default)({[`${R}-indeterminate`]:s},hu,T),[F,W]=j1(D.onClick);return _(Jr.createElement(Rv,{component:"Checkbox",disabled:S},Jr.createElement("label",{className:M,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:F},Jr.createElement(CM,Object.assign({},D,{onClick:W,prefixCls:R,className:A,disabled:S,ref:x})),a!=null&&Jr.createElement("span",{className:`${R}-label`},a))))},xU=Jr.forwardRef(CU),qy=xU;var An=E(I()),G1=E($e());var wU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=wU(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=An.useContext(nt),[m,h]=An.useState(u.value||r||[]),[v,y]=An.useState([]);An.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=An.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),p=A=>{y(F=>F.filter(W=>W!==A))},b=A=>{y(F=>[].concat(re(F),[A]))},S=A=>{let F=m.indexOf(A.value),W=re(m);F===-1?W.push(A.value):W.splice(F,1),"value"in u||h(W),c?.(W.filter(j=>v.includes(j)).sort((j,G)=>{let q=g.findIndex(U=>U.value===j),H=g.findIndex(U=>U.value===G);return q-H}))},C=d("checkbox",i),w=`${C}-group`,x=Xo(C),[R,O,_]=Uy(C,x),T=Gr(u,["value","disabled"]),$=o.length?g.map(A=>An.createElement(qy,{prefixCls:C,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:m.includes(A.value),onChange:A.onChange,className:(0,G1.default)(`${w}-item`,A.className),style:A.style,title:A.title,id:A.id,required:A.required},A.label)):n,D=An.useMemo(()=>({toggleOption:S,value:m,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:p}),[S,m,u.disabled,u.name,b,p]),M=(0,G1.default)(w,{[`${w}-rtl`]:f==="rtl"},a,s,_,x,O);return R(An.createElement("div",Object.assign({className:M,style:l},T,{ref:t}),An.createElement(Gy.Provider,{value:D},$)))});var AM=EU;var q1=qy;q1.Group=AM;q1.__ANT_CHECKBOX=!0;var lp=q1;var _r=E(I());var Ky=E(I());var RU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},kM=RU;var _U=function(t,r){return Ky.createElement(Wt,le({},t,{ref:r,icon:kM}))},PU=Ky.forwardRef(_U),MM=PU;var Jl=E($e());function cp(){return typeof BigInt=="function"}function Xy(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Oi(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function Yy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ta(e){var t=String(e);if(Yy(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&zu(t)?t.length-t.indexOf(".")-1:0}function ja(e){var t=String(e);if(Yy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(cp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Oi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})();var FM=(function(){function e(t){if(it(this,e),P(this,"origin",""),P(this,"number",void 0),P(this,"empty",void 0),Xy(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return at(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":ja(this.number):this.origin}}]),e})();function Qy(e){return cp()?new LM(e):new FM(e)}function up(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Oi(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var d=Qy(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return up(d.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Ni=Qy;var QM=E($e());var Ba=E($e()),xn=E(I());function zM(e){return!!(e.addonBefore||e.addonAfter)}function jM(e){return!!(e.prefix||e.suffix||e.allowClear)}function WM(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function ju(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=WM(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=WM(t,e,n),r(o);return}r(o)}}function Yl(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var OU=xn.default.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,p=e.allowClear,b=e.value,S=e.handleReset,C=e.hidden,w=e.classes,x=e.classNames,R=e.dataAttrs,O=e.styles,_=e.components,T=e.onClear,$=a??i,D=_?.affixWrapper||"span",M=_?.groupWrapper||"span",A=_?.wrapper||"span",F=_?.groupAddon||"span",W=(0,xn.useRef)(null),j=function(te){var X;(X=W.current)!==null&&X!==void 0&&X.contains(te.target)&&g?.()},G=jM(e),q=(0,xn.cloneElement)($,{value:b,className:(0,Ba.default)((r=$.props)===null||r===void 0?void 0:r.className,!G&&x?.variant)||null}),H=(0,xn.useRef)(null);if(xn.default.useImperativeHandle(t,function(){return{nativeElement:H.current||W.current}}),G){var U=null;if(p){var z=!h&&!v&&b,k="".concat(s,"-clear-icon"),B=ce(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";U=xn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(te){S?.(te),T?.()},onMouseDown:function(te){return te.preventDefault()},className:(0,Ba.default)(k,P(P({},"".concat(k,"-hidden"),!z),"".concat(k,"-has-suffix"),!!c))},B)}var V="".concat(s,"-affix-wrapper"),oe=(0,Ba.default)(V,P(P(P(P(P({},"".concat(s,"-disabled"),h),"".concat(V,"-disabled"),h),"".concat(V,"-focused"),y),"".concat(V,"-readonly"),v),"".concat(V,"-input-with-clear-btn"),c&&p&&b),w?.affixWrapper,x?.affixWrapper,x?.variant),J=(c||p)&&xn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-suffix"),x?.suffix),style:O?.suffix},U,c);q=xn.default.createElement(D,le({className:oe,style:O?.affixWrapper,onClick:j},R?.affixWrapper,{ref:W}),l&&xn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-prefix"),x?.prefix),style:O?.prefix},l),q,J)}if(zM(e)){var Q="".concat(s,"-group"),pe="".concat(Q,"-addon"),Z="".concat(Q,"-wrapper"),K=(0,Ba.default)("".concat(s,"-wrapper"),Q,w?.wrapper,x?.wrapper),ee=(0,Ba.default)(Z,P({},"".concat(Z,"-disabled"),h),w?.group,x?.groupWrapper);q=xn.default.createElement(M,{className:ee,ref:H},xn.default.createElement(A,{className:K},u&&xn.default.createElement(F,{className:pe},u),q,d&&xn.default.createElement(F,{className:pe},d)))}return xn.default.cloneElement(q,{className:(0,Ba.default)((n=q.props)===null||n===void 0?void 0:n.className,f)||null,style:N(N({},(o=q.props)===null||o===void 0?void 0:o.style),m),hidden:C})}),Ql=OU;var Jy=E($e());var jr=E(I());var BM=E(I()),NU=["show"];function dp(e,t){return BM.useMemo(function(){var r={};t&&(r.show=ce(t)==="object"&&t.formatter?t.formatter:!!t),r=N(N({},r),e);var n=r,o=n.show,i=ze(n,NU);return N(N({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var IU=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],TU=(0,jr.forwardRef)(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,p=e.type,b=p===void 0?"text":p,S=e.classes,C=e.classNames,w=e.styles,x=e.onCompositionStart,R=e.onCompositionEnd,O=ze(e,IU),_=(0,jr.useState)(!1),T=L(_,2),$=T[0],D=T[1],M=(0,jr.useRef)(!1),A=(0,jr.useRef)(!1),F=(0,jr.useRef)(null),W=(0,jr.useRef)(null),j=function(Y){F.current&&Yl(F.current,Y)},G=ir(e.defaultValue,{value:e.value}),q=L(G,2),H=q[0],U=q[1],z=H==null?"":String(H),k=(0,jr.useState)(null),B=L(k,2),V=B[0],oe=B[1],J=dp(g,y),Q=J.max||h,pe=J.strategy(z),Z=!!Q&&pe>Q;(0,jr.useImperativeHandle)(t,function(){var ve;return{focus:j,blur:function(){var Ne;(Ne=F.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,Ue,Ze){var Ae;(Ae=F.current)===null||Ae===void 0||Ae.setSelectionRange(Ne,Ue,Ze)},select:function(){var Ne;(Ne=F.current)===null||Ne===void 0||Ne.select()},input:F.current,nativeElement:((ve=W.current)===null||ve===void 0?void 0:ve.nativeElement)||F.current}}),(0,jr.useEffect)(function(){A.current&&(A.current=!1),D(function(ve){return ve&&d?!1:ve})},[d]);var K=function(Y,Ne,Ue){var Ze=Ne;if(!M.current&&J.exceedFormatter&&J.max&&J.strategy(Ne)>J.max){if(Ze=J.exceedFormatter(Ne,{max:J.max}),Ne!==Ze){var Ae,De;oe([((Ae=F.current)===null||Ae===void 0?void 0:Ae.selectionStart)||0,((De=F.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(Ue.source==="compositionEnd")return;U(Ze),F.current&&ju(F.current,Y,n,Ze)};(0,jr.useEffect)(function(){if(V){var ve;(ve=F.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,re(V))}},[V]);var ee=function(Y){K(Y,Y.target.value,{source:"change"})},ae=function(Y){M.current=!1,K(Y,Y.currentTarget.value,{source:"compositionEnd"}),R?.(Y)},te=function(Y){a&&Y.key==="Enter"&&!A.current&&(A.current=!0,a(Y)),s?.(Y)},X=function(Y){Y.key==="Enter"&&(A.current=!1),l?.(Y)},de=function(Y){D(!0),o?.(Y)},fe=function(Y){A.current&&(A.current=!1),D(!1),i?.(Y)},se=function(Y){U(""),j(),F.current&&ju(F.current,Y,n)},Ee=Z&&"".concat(u,"-out-of-range"),we=function(){var Y=Gr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return jr.default.createElement("input",le({autoComplete:r},Y,{onChange:ee,onFocus:de,onBlur:fe,onKeyDown:te,onKeyUp:X,className:(0,Jy.default)(u,P({},"".concat(u,"-disabled"),d),C?.input),style:w?.input,ref:F,size:f,type:b,onCompositionStart:function(Ue){M.current=!0,x?.(Ue)},onCompositionEnd:ae}))},Re=function(){var Y=Number(Q)>0;if(v||J.show){var Ne=J.showFormatter?J.showFormatter({value:z,count:pe,maxLength:Q}):"".concat(pe).concat(Y?" / ".concat(Q):"");return jr.default.createElement(jr.default.Fragment,null,J.show&&jr.default.createElement("span",{className:(0,Jy.default)("".concat(u,"-show-count-suffix"),P({},"".concat(u,"-show-count-has-suffix"),!!v),C?.count),style:N({},w?.count)},Ne),v)}return null};return jr.default.createElement(Ql,le({},O,{prefixCls:u,className:(0,Jy.default)(m,Ee),handleReset:se,value:z,focused:$,triggerFocus:j,suffix:Re(),disabled:d,classes:S,classNames:C,styles:w,ref:W}),we())}),VM=TU;var HM=VM;function K1(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}var Nt=E(I());var UM=E(I());function X1(e,t){var r=(0,UM.useRef)(null);function n(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var d=s[c-1],f=i.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(m){Bt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[n,o]}var oi=E(I()),Y1=E($e());var GM=E(I());var $U=function(){var t=(0,GM.useState)(!1),r=L(t,2),n=r[0],o=r[1];return ht(function(){o(Su())},[]),n},qM=$U;var DU=200,AU=600;function Q1(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=oi.useRef(),l=oi.useRef([]),c=oi.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(b,S){b.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,DU)}s.current=setTimeout(C,AU)};oi.useEffect(function(){return function(){u(),l.current.forEach(function(p){return dt.cancel(p)})}},[]);var f=qM();if(f)return null;var m="".concat(t,"-handler"),h=(0,Y1.default)(m,"".concat(m,"-up"),P({},"".concat(m,"-up-disabled"),o)),v=(0,Y1.default)(m,"".concat(m,"-down"),P({},"".concat(m,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return oi.createElement("div",{className:"".concat(m,"-wrap")},oi.createElement("span",le({},g,{onMouseDown:function(b){d(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||oi.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),oi.createElement("span",le({},g,{onMouseDown:function(b){d(b,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),n||oi.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function J1(e){var t=typeof e=="number"?ja(e):Oi(e).fullStr,r=t.includes(".");return r?Oi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Zy=E(I());var KM=(function(){var e=(0,Zy.useRef)(0),t=function(){dt.cancel(e.current)};return(0,Zy.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}});var kU=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],MU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],XM=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},YM=function(t){var r=Ni(t);return r.isInvalidate()?null:r},LU=Nt.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,m=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,p=e.controls,b=p===void 0?!0:p,S=e.classNames,C=e.stringMode,w=e.parser,x=e.formatter,R=e.precision,O=e.decimalSeparator,_=e.onChange,T=e.onInput,$=e.onPressEnter,D=e.onStep,M=e.changeOnBlur,A=M===void 0?!0:M,F=e.domRef,W=ze(e,kU),j="".concat(r,"-input"),G=Nt.useRef(null),q=Nt.useState(!1),H=L(q,2),U=H[0],z=H[1],k=Nt.useRef(!1),B=Nt.useRef(!1),V=Nt.useRef(!1),oe=Nt.useState(function(){return Ni(u??c)}),J=L(oe,2),Q=J[0],pe=J[1];function Z(ke){u===void 0&&pe(ke)}var K=Nt.useCallback(function(ke,be){if(!be)return R>=0?R:Math.max(ta(ke),ta(l))},[R,l]),ee=Nt.useCallback(function(ke){var be=String(ke);if(w)return w(be);var qe=be;return O&&(qe=qe.replace(O,".")),qe.replace(/[^\w.-]+/g,"")},[w,O]),ae=Nt.useRef(""),te=Nt.useCallback(function(ke,be){if(x)return x(ke,{userTyping:be,input:String(ae.current)});var qe=typeof ke=="number"?ja(ke):ke;if(!be){var Pe=K(qe,be);if(zu(qe)&&(O||Pe>=0)){var vt=O||".";qe=up(qe,vt,Pe)}}return qe},[x,K,O]),X=Nt.useState(function(){var ke=c??u;return Q.isInvalidate()&&["string","number"].includes(ce(ke))?Number.isNaN(ke)?"":ke:te(Q.toString(),!1)}),de=L(X,2),fe=de[0],se=de[1];ae.current=fe;function Ee(ke,be){se(te(ke.isInvalidate()?ke.toString(!1):ke.toString(!be),be))}var we=Nt.useMemo(function(){return YM(a)},[a,R]),Re=Nt.useMemo(function(){return YM(i)},[i,R]),ve=Nt.useMemo(function(){return!we||!Q||Q.isInvalidate()?!1:we.lessEquals(Q)},[we,Q]),Y=Nt.useMemo(function(){return!Re||!Q||Q.isInvalidate()?!1:Q.lessEquals(Re)},[Re,Q]),Ne=X1(G.current,U),Ue=L(Ne,2),Ze=Ue[0],Ae=Ue[1],De=function(be){return we&&!be.lessEquals(we)?we:Re&&!Re.lessEquals(be)?Re:null},je=function(be){return!De(be)},Ie=function(be,qe){var Pe=be,vt=je(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!qe&&(Pe=De(Pe)||Pe,vt=!0),!f&&!d&&vt){var yt=Pe.toString(),Qe=K(yt,qe);return Qe>=0&&(Pe=Ni(up(yt,".",Qe)),je(Pe)||(Pe=Ni(up(yt,".",Qe,!0)))),Pe.equals(Q)||(Z(Pe),_?.(Pe.isEmpty()?null:XM(C,Pe)),u===void 0&&Ee(Pe,qe)),Pe}return Q},We=KM(),Te=function ke(be){if(Ze(),ae.current=be,se(be),!B.current){var qe=ee(be),Pe=Ni(qe);Pe.isNaN()||Ie(Pe,!0)}T?.(be),We(function(){var vt=be;w||(vt=be.replace(/。/g,".")),vt!==be&&ke(vt)})},_e=function(){B.current=!0},Ge=function(){B.current=!1,Te(G.current.value)},Ce=function(be){Te(be.target.value)},he=function(be){var qe;if(!(be&&ve||!be&&Y)){k.current=!1;var Pe=Ni(V.current?J1(l):l);be||(Pe=Pe.negate());var vt=(Q||Ni(0)).add(Pe.toString()),yt=Ie(vt,!1);D?.(XM(C,yt),{offset:V.current?J1(l):l,type:be?"up":"down"}),(qe=G.current)===null||qe===void 0||qe.focus()}},Be=function(be){var qe=Ni(ee(fe)),Pe;qe.isNaN()?Pe=Ie(Q,be):Pe=Ie(qe,be),u!==void 0?Ee(Q,!1):Pe.isNaN()||Ee(Pe,!1)},Le=function(){k.current=!0},rt=function(be){var qe=be.key,Pe=be.shiftKey;k.current=!0,V.current=Pe,qe==="Enter"&&(B.current||(k.current=!1),Be(!1),$?.(be)),v!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qe)&&(he(qe==="Up"||qe==="ArrowUp"),be.preventDefault())},St=function(){k.current=!1,V.current=!1};Nt.useEffect(function(){if(g&&U){var ke=function(Pe){he(Pe.deltaY<0),Pe.preventDefault()},be=G.current;if(be)return be.addEventListener("wheel",ke,{passive:!1}),function(){return be.removeEventListener("wheel",ke)}}});var pt=function(){A&&Be(!1),z(!1),k.current=!1};return Nl(function(){Q.isInvalidate()||Ee(Q,!1)},[R,x]),Nl(function(){var ke=Ni(u);pe(ke);var be=Ni(ee(fe));(!ke.equals(be)||!k.current||x)&&Ee(ke,k.current)},[u]),Nl(function(){x&&Ae()},[fe]),Nt.createElement("div",{ref:F,className:(0,QM.default)(r,n,P(P(P(P(P({},"".concat(r,"-focused"),U),"".concat(r,"-disabled"),d),"".concat(r,"-readonly"),f),"".concat(r,"-not-a-number"),Q.isNaN()),"".concat(r,"-out-of-range"),!Q.isInvalidate()&&!je(Q))),style:o,onFocus:function(){z(!0)},onBlur:pt,onKeyDown:rt,onKeyUp:St,onCompositionStart:_e,onCompositionEnd:Ge,onBeforeInput:Le},b&&Nt.createElement(Q1,{prefixCls:r,upNode:m,downNode:h,upDisabled:ve,downDisabled:Y,onStep:he}),Nt.createElement("div",{className:"".concat(j,"-wrap")},Nt.createElement("input",le({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:l},W,{ref:Wr(G,t),className:j,value:fe,onChange:Ce,disabled:d,readOnly:f}))))}),FU=Nt.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,m=ze(e,MU),h=Nt.useRef(null),v=Nt.useRef(null),y=Nt.useRef(null),g=function(b){y.current&&Yl(y.current,b)};return Nt.useImperativeHandle(t,function(){return K1(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Nt.createElement(Ql,{className:d,triggerFocus:g,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},Nt.createElement(LU,le({prefixCls:i,disabled:r,ref:y,domRef:v,className:f?.input},m)))}),JM=FU;var ZM=JM;var eL=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},za(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var tL=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let o=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},WU=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:p,paddingBlock:b,handleBg:S,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:R,controlWidth:O,handleBorderColor:_,filledHandleBg:T,lineHeightLG:$,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),sp(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),Ly(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ne(r)} ${n} ${_}`}}})),zy(e,{[`${t}-handler-wrap`]:{background:T,[`${t}-handler-down`]:{borderBlockStart:`${ne(r)} ${n} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),By(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ne(r)} ${n} ${_}`}}})),Wy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:$,borderRadius:R,[`input${t}-input`]:{height:D(s).sub(D(r).mul(2)).equal(),padding:`${ne(f)} ${ne(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:D(l).sub(D(r).mul(2)).equal(),padding:`${ne(d)} ${ne(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ar(e)),H1(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},Fy(e)),jy(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{width:"100%",padding:`${ne(b)} ${ne(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),V1(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ne(r)} ${n} ${_}`,transition:`all ${v} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Na()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},tL(e,"lg")),tL(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:w}})}]},zU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ne(r)} 0`}},sp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ne(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ne(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},rL=qt("InputNumber",e=>{let t=ct(e,Wa(e));return[WU(t),zU(t),Fs(t)]},eL,{unitless:{handleOpacity:!0},resetFont:!1});var jU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:r,direction:n}=_r.useContext(nt),o=_r.useRef(null);_r.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:m,bordered:h,readOnly:v,status:y,controls:g,variant:p}=e,b=jU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),C=Xo(S),[w,x,R]=rL(S,C),{compactSize:O,compactItemClassnames:_}=Yo(S,n),T=_r.createElement(MM,{className:`${S}-handler-up-inner`}),$=_r.createElement(Oy,{className:`${S}-handler-down-inner`}),D=typeof g=="boolean"?g:void 0;typeof g=="object"&&(T=typeof g.upIcon>"u"?T:_r.createElement("span",{className:`${S}-handler-up-inner`},g.upIcon),$=typeof g.downIcon>"u"?$:_r.createElement("span",{className:`${S}-handler-down-inner`},g.downIcon));let{hasFeedback:M,status:A,isFormItemInput:F,feedbackIcon:W}=_r.useContext(pn),j=Zi(A,y),G=ao(J=>{var Q;return(Q=s??O)!==null&&Q!==void 0?Q:J}),q=_r.useContext(Hr),H=l??q,[U,z]=Xs("inputNumber",p,h),k=M&&_r.createElement(_r.Fragment,null,W),B=(0,Jl.default)({[`${S}-lg`]:G==="large",[`${S}-sm`]:G==="small",[`${S}-rtl`]:n==="rtl",[`${S}-in-form-item`]:F},x),V=`${S}-group`,oe=_r.createElement(ZM,Object.assign({ref:o,disabled:H,className:(0,Jl.default)(R,C,i,a,_),upHandler:T,downHandler:$,prefixCls:S,readOnly:v,controls:D,prefix:f,suffix:k||m,addonBefore:u&&_r.createElement(Yi,{form:!0,space:!0},u),addonAfter:d&&_r.createElement(Yi,{form:!0,space:!0},d),classNames:{input:B,variant:(0,Jl.default)({[`${S}-${U}`]:z},Ji(S,j,M)),affixWrapper:(0,Jl.default)({[`${S}-affix-wrapper-sm`]:G==="small",[`${S}-affix-wrapper-lg`]:G==="large",[`${S}-affix-wrapper-rtl`]:n==="rtl",[`${S}-affix-wrapper-without-controls`]:g===!1||H||v},x),wrapper:(0,Jl.default)({[`${V}-rtl`]:n==="rtl"},x),groupWrapper:(0,Jl.default)({[`${S}-group-wrapper-sm`]:G==="small",[`${S}-group-wrapper-lg`]:G==="large",[`${S}-group-wrapper-rtl`]:n==="rtl",[`${S}-group-wrapper-${U}`]:z},Ji(`${S}-group-wrapper`,j,M),x)}},b));return w(oe)}),oL=nL,BU=e=>_r.createElement(Da,{theme:{components:{InputNumber:{handleVisible:!0}}}},_r.createElement(nL,Object.assign({},e)));oL._InternalPanelDoNotUseOrYouWillBeFired=BU;var e0=oL;var uo=E(I()),Zl=E($e());var iL=E(I());var VU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:iL.default.createElement(mu,null)}),t},t0=VU;var r0=E(I());function fp(e,t){let r=(0,r0.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,r0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function aL(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var HU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:m,style:h,styles:v,rootClassName:y,onChange:g,classNames:p,variant:b}=e,S=HU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:w,allowClear:x,autoComplete:R,className:O,style:_,classNames:T,styles:$}=Dn("input"),D=C("input",r),M=(0,uo.useRef)(null),A=Xo(D),[F,W,j]=Vy(D,y),[G]=Hy(D,A),{compactSize:q,compactItemClassnames:H}=Yo(D,w),U=ao(se=>{var Ee;return(Ee=i??q)!==null&&Ee!==void 0?Ee:se}),z=uo.default.useContext(Hr),k=a??z,{status:B,hasFeedback:V,feedbackIcon:oe}=(0,uo.useContext)(pn),J=Zi(B,o),Q=aL(e)||!!V,pe=(0,uo.useRef)(Q),Z=fp(M,!0),K=se=>{Z(),s?.(se)},ee=se=>{Z(),l?.(se)},ae=se=>{Z(),g?.(se)},te=(V||c)&&uo.default.createElement(uo.default.Fragment,null,c,V&&oe),X=t0(u??x),[de,fe]=Xs("input",b,n);return F(G(uo.default.createElement(HM,Object.assign({ref:Wr(t,M),prefixCls:D,autoComplete:R},S,{disabled:k,onBlur:K,onFocus:ee,style:Object.assign(Object.assign({},_),h),styles:Object.assign(Object.assign({},$),v),suffix:te,allowClear:X,className:(0,Zl.default)(m,y,j,A,H,O),onChange:ae,addonBefore:f&&uo.default.createElement(Yi,{form:!0,space:!0},f),addonAfter:d&&uo.default.createElement(Yi,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},p),T),{input:(0,Zl.default)({[`${D}-sm`]:U==="small",[`${D}-lg`]:U==="large",[`${D}-rtl`]:w==="rtl"},p?.input,T.input,W),variant:(0,Zl.default)({[`${D}-${de}`]:fe},Ji(D,J)),affixWrapper:(0,Zl.default)({[`${D}-affix-wrapper-sm`]:U==="small",[`${D}-affix-wrapper-lg`]:U==="large",[`${D}-affix-wrapper-rtl`]:w==="rtl"},W),wrapper:(0,Zl.default)({[`${D}-group-rtl`]:w==="rtl"},W),groupWrapper:(0,Zl.default)({[`${D}-group-wrapper-sm`]:U==="small",[`${D}-group-wrapper-lg`]:U==="large",[`${D}-group-wrapper-rtl`]:w==="rtl",[`${D}-group-wrapper-${de}`]:fe},Ji(`${D}-group-wrapper`,J,V),W)})}))))}),Ys=UU;var aE=E($e());var $t=E(I());var Kn=E(I()),lL=E(Hi());function n0(e,t,r){return(e-t)/(r-t)}function Bu(e,t,r,n){var o=n0(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function ra(e,t){return Array.isArray(e)?e[t]:e}var sL=E($e());var Vu=E(I());var Z1=E(I()),GU=Z1.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),fo=GU,eE=Z1.createContext({});var qU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],KU=Vu.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,f=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,v=ze(e,qU),y=Vu.useContext(fo),g=y.min,p=y.max,b=y.direction,S=y.disabled,C=y.keyboard,w=y.range,x=y.tabIndex,R=y.ariaLabelForHandle,O=y.ariaLabelledByForHandle,_=y.ariaRequired,T=y.ariaValueTextFormatterForHandle,$=y.styles,D=y.classNames,M="".concat(r,"-handle"),A=function(B){S||i(B,o)},F=function(B){m?.(B,o)},W=function(B){h(B,o)},j=function(B){if(!S&&C){var V=null;switch(B.which||B.keyCode){case Ye.LEFT:V=b==="ltr"||b==="btt"?-1:1;break;case Ye.RIGHT:V=b==="ltr"||b==="btt"?1:-1;break;case Ye.UP:V=b!=="ttb"?1:-1;break;case Ye.DOWN:V=b!=="ttb"?-1:1;break;case Ye.HOME:V="min";break;case Ye.END:V="max";break;case Ye.PAGE_UP:V=2;break;case Ye.PAGE_DOWN:V=-2;break;case Ye.BACKSPACE:case Ye.DELETE:a?.(o);break}V!==null&&(B.preventDefault(),d(V,o))}},G=function(B){switch(B.which||B.keyCode){case Ye.LEFT:case Ye.RIGHT:case Ye.UP:case Ye.DOWN:case Ye.HOME:case Ye.END:case Ye.PAGE_UP:case Ye.PAGE_DOWN:f?.();break}},q=Bu(b,n,g,p),H={};if(o!==null){var U;H={tabIndex:S?null:ra(x,o),role:"slider","aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":n,"aria-disabled":S,"aria-label":ra(R,o),"aria-labelledby":ra(O,o),"aria-required":ra(_,o),"aria-valuetext":(U=ra(T,o))===null||U===void 0?void 0:U(n),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:F,onMouseEnter:W,onKeyDown:j,onKeyUp:G}}var z=Vu.createElement("div",le({ref:t,className:(0,sL.default)(M,P(P(P({},"".concat(M,"-").concat(o+1),o!==null&&w),"".concat(M,"-dragging"),c),"".concat(M,"-dragging-delete"),u),D.handle),style:N(N(N({},q),s),$.handle)},H,v));return l&&(z=l(z,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),z}),tE=KU;var XU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],YU=Kn.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=ze(e,XU),m=Kn.useRef({}),h=Kn.useState(!1),v=L(h,2),y=v[0],g=v[1],p=Kn.useState(-1),b=L(p,2),S=b[0],C=b[1],w=function(T){C(T),g(!0)},x=function(T,$){w($),d?.(T)},R=function(T,$){w($)};Kn.useImperativeHandle(t,function(){return{focus:function(T){var $;($=m.current[T])===null||$===void 0||$.focus()},hideHelp:function(){(0,lL.flushSync)(function(){g(!1)})}}});var O=N({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:x,onMouseEnter:R},f);return Kn.createElement(Kn.Fragment,null,a.map(function(_,T){var $=c===T;return Kn.createElement(tE,le({ref:function(M){M?m.current[T]=M:delete m.current[T]},dragging:$,draggingDelete:$&&u,style:ra(n,T),key:T,value:_,valueIndex:T},O))}),l&&y&&Kn.createElement(tE,le({key:"a11y"},O,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),cL=YU;var rE=E(I());var uL=E($e()),o0=E(I());var QU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=o0.useContext(fo),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,m=s.included,h="".concat(r,"-text"),v=Bu(u,i,l,c);return o0.createElement("span",{className:(0,uL.default)(h,P({},"".concat(h,"-active"),m&&d<=i&&i<=f)),style:N(N({},v),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},o)},dL=QU;var JU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?rE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return rE.createElement(dL,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},fL=JU;var ec=E(I());var pL=E($e()),i0=E(I());var ZU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=i0.useContext(fo),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,m="".concat(r,"-dot"),h=u&&d<=n&&n<=f,v=N(N({},Bu(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=N(N({},v),typeof i=="function"?i(n):i)),i0.createElement("span",{className:(0,pL.default)(m,P({},"".concat(m,"-active"),h)),style:v})},mL=ZU;var e7=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=ec.useContext(fo),l=s.min,c=s.max,u=s.step,d=ec.useMemo(function(){var f=new Set;if(n.forEach(function(h){f.add(h.value)}),o&&u!==null)for(var m=l;m<=c;)f.add(m),m+=u;return Array.from(f)},[l,c,u,o,n]);return ec.createElement("div",{className:"".concat(r,"-step")},d.map(function(f){return ec.createElement(mL,{prefixCls:r,key:f,value:f,style:i,activeStyle:a})}))},gL=e7;var vL=E($e()),na=E(I());var hL=E($e()),a0=E(I());var t7=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=a0.useContext(fo),u=c.direction,d=c.min,f=c.max,m=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=n0(o,d,f),p=n0(i,d,f),b=function(x){!m&&s&&s(x,-1)},S={};switch(u){case"rtl":S.right="".concat(g*100,"%"),S.width="".concat(p*100-g*100,"%");break;case"btt":S.bottom="".concat(g*100,"%"),S.height="".concat(p*100-g*100,"%");break;case"ttb":S.top="".concat(g*100,"%"),S.height="".concat(p*100-g*100,"%");break;default:S.left="".concat(g*100,"%"),S.width="".concat(p*100-g*100,"%")}var C=l||(0,hL.default)(y,P(P({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return a0.createElement("div",{className:C,style:N(N({},S),n),onMouseDown:b,onTouchStart:b})},nE=t7;var r7=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=na.useContext(fo),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,m=na.useMemo(function(){if(!c){if(o.length===0)return[];var v=i??u,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var g=[],p=0;pn7&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var p,b=h[y],S=b+v,C=[];n.forEach(function(_){C.push(_.value)}),C.push(e,t),C.push(s(b));var w=v>0?1:-1;g==="unit"?C.push(s(b+w*r)):C.push(s(S)),C=C.filter(function(_){return _!==null}).filter(function(_){return v<0?_<=b:_>=b}),g==="unit"&&(C=C.filter(function(_){return _!==b}));var x=g==="unit"?b:S;p=C[0];var R=Math.abs(p-x);if(C.forEach(function(_){var T=Math.abs(_-x);T1){var O=re(h);return O[y]=p,m(O,v-w,y,g)}return p}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h[y],b=c(h,v,y,g);return{value:b,changed:b!==p}},d=function(h){return i===null&&h===0||typeof i=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",p=h.map(l),b=p[y],S=c(p,v,y,g);if(p[y]=S,o===!1){var C=i||0;y>0&&p[y-1]!==b&&(p[y]=Math.max(p[y],p[y-1]+C)),y0;O-=1)for(var _=!0;d(p[O]-p[O-1])&&_;){var T=u(p,-1,O-1);p[O-1]=T.value,_=T.changed}for(var $=p.length-1;$>0;$-=1)for(var D=!0;d(p[$]-p[$-1])&&D;){var M=u(p,-1,$-1);p[$-1]=M.value,D=M.changed}for(var A=0;A=0?W:!1},[W,Ie]),Te=$t.useMemo(function(){return Object.keys(J||{}).map(function(Me){var Se=J[Me],tt={value:Number(Me)};return Se&&ce(Se)==="object"&&!$t.isValidElement(Se)&&("label"in Se||"style"in Se)?(tt.style=Se.style,tt.label=Se.label):tt.label=Se,tt}).filter(function(Me){var Se=Me.label;return Se||typeof Se=="number"}).sort(function(Me,Se){return Me.value-Se.value})},[J]),_e=oE(De,je,Ie,Te,A,We),Ge=L(_e,2),Ce=Ge[0],he=Ge[1],Be=ir(x,{value:w}),Le=L(Be,2),rt=Le[0],St=Le[1],pt=$t.useMemo(function(){var Me=rt==null?[]:Array.isArray(rt)?rt:[rt],Se=L(Me,1),tt=Se[0],Tt=tt===void 0?De:tt,Lt=rt===null?[]:[Tt];if(Y){if(Lt=re(Me),O||rt===void 0){var Kr=O>=0?O+1:2;for(Lt=Lt.slice(0,Kr);Lt.length=0&&se.current.focus(Me)}Dt(null)},[wt]);var At=$t.useMemo(function(){return Ue&&Ie===null?!1:Ue},[Ue,Ie]),kr=_t(function(Me,Se){ue(Me,Se),T?.(ke(pt))}),pr=Qe!==-1;$t.useEffect(function(){if(!pr){var Me=pt.lastIndexOf(ut);se.current.focus(Me)}},[pr]);var mr=$t.useMemo(function(){return re(Oe).sort(function(Me,Se){return Me-Se})},[Oe]),mn=$t.useMemo(function(){return Y?[mr[0],mr[mr.length-1]]:[De,mr[0]]},[mr,Y,De]),Qt=L(mn,2),Or=Qt[0],xe=Qt[1];$t.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var Se,tt=document,Tt=tt.activeElement;(Se=Ee.current)!==null&&Se!==void 0&&Se.contains(Tt)&&Tt?.blur()}}}),$t.useEffect(function(){m&&se.current.focus(0)},[]);var Fe=$t.useMemo(function(){return{min:De,max:je,direction:we,disabled:u,keyboard:f,step:Ie,included:H,includedStart:Or,includedEnd:xe,range:Y,tabIndex:ae,ariaLabelForHandle:te,ariaLabelledByForHandle:X,ariaRequired:de,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:a||{}}},[De,je,we,u,f,Ie,H,Or,xe,Y,ae,te,X,de,fe,s,a]);return $t.createElement(fo.Provider,{value:Fe},$t.createElement("div",{ref:Ee,className:(0,aE.default)(n,o,P(P(P(P({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),G),"".concat(n,"-horizontal"),!G),"".concat(n,"-with-marks"),Te.length)),style:i,onMouseDown:ye,id:l},$t.createElement("div",{className:(0,aE.default)("".concat(n,"-rail"),a?.rail),style:N(N({},B),s?.rail)}),K!==!1&&$t.createElement(yL,{prefixCls:n,style:z,values:pt,startPoint:U,onStartMove:At?kr:void 0}),$t.createElement(gL,{prefixCls:n,marks:Te,dots:Q,style:V,activeStyle:oe}),$t.createElement(cL,{ref:se,prefixCls:n,style:k,values:Oe,draggingIndex:Qe,draggingDelete:It,onStartMove:kr,onOffsetChange:Ft,onFocus:h,onBlur:v,handleRender:pe,activeHandleRender:Z,onChangeComplete:qe,onDelete:Ne?Pe:void 0}),$t.createElement(fL,{prefixCls:n,marks:Te,onClick:ie})))}),xL=i7;var wL=xL;var oa=E(I()),Gu=E($e());var EL=E(I()),a7=(0,EL.createContext)({}),RL=a7;var Hu=E(I()),sE=E(I());var s7=Hu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,sE.useRef)(null),a=r&&!n,s=(0,sE.useRef)(null);function l(){dt.cancel(s.current),s.current=null}function c(){s.current=dt(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),s.current=null})}return Hu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),Hu.createElement(Fa,Object.assign({ref:Wr(i,t)},e,{open:a}))}),lE=s7;var l7=e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",height:n,margin:`${ne(a)} ${ne(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ne(i)} ${ne(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ne(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ne(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${y}, inset-block-start ${y}, width ${y}, height ${y}, box-shadow ${y}, outline ${y} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),width:c(d).add(c(v).mul(2)).equal(),height:c(d).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ne(v)} ${f}`,outline:`6px solid ${m}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${ne(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ne(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},_L=(e,t)=>{let{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",m=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${ne(h)} 0`,transform:`translateY(${ne(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ne(h)}`,transform:`translateX(${ne(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[d]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[f]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[f]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[d]:s(n).sub(i).div(2).equal()}}},c7=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},_L(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},u7=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},_L(e,!1)),{height:"100%"})}},d7=e=>{let r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new gt(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},PL=qt("Slider",e=>{let t=ct(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[l7(t),c7(t),u7(t)]},d7);var Uu=E(I());function pp(){let[e,t]=Uu.useState(!1),r=Uu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return Uu.useEffect(()=>n,[]),[e,o]}var f7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}var m7=oa.default.forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:m={},onChangeComplete:h,classNames:v,styles:y}=e,g=f7(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:p}=e,{getPrefixCls:b,direction:S,className:C,style:w,classNames:x,styles:R,getPopupContainer:O}=Dn("slider"),_=oa.default.useContext(Hr),T=s??_,{handleRender:$,direction:D}=oa.default.useContext(RL),A=(D||S)==="rtl",[F,W]=pp(),[j,G]=pp(),q=Object.assign({},m),{open:H,placement:U,getPopupContainer:z,prefixCls:k,formatter:B}=q,V=H??u,oe=(F||j)&&V!==!1,J=p7(B,c),[Q,pe]=pp(),Z=Y=>{h?.(Y),pe(!1)},K=(Y,Ne)=>Y||(Ne?A?"left":"right":"top"),ee=b("slider",r),[ae,te,X]=PL(ee),de=(0,Gu.default)(o,C,x.root,v?.root,i,{[`${ee}-rtl`]:A,[`${ee}-lock`]:Q},te,X);A&&!g.vertical&&(g.reverse=!g.reverse),oa.default.useEffect(()=>{let Y=()=>{dt(()=>{G(!1)},1)};return document.addEventListener("mouseup",Y),()=>{document.removeEventListener("mouseup",Y)}},[]);let fe=n&&!V,se=$||((Y,Ne)=>{let{index:Ue}=Ne,Ze=Y.props;function Ae(We,Te,_e){var Ge,Ce,he,Be;_e&&((Ce=(Ge=g)[We])===null||Ce===void 0||Ce.call(Ge,Te)),(Be=(he=Ze)[We])===null||Be===void 0||Be.call(he,Te)}let De=Object.assign(Object.assign({},Ze),{onMouseEnter:We=>{W(!0),Ae("onMouseEnter",We)},onMouseLeave:We=>{W(!1),Ae("onMouseLeave",We)},onMouseDown:We=>{G(!0),pe(!0),Ae("onMouseDown",We)},onFocus:We=>{var Te;G(!0),(Te=g.onFocus)===null||Te===void 0||Te.call(g,We),Ae("onFocus",We,!0)},onBlur:We=>{var Te;G(!1),(Te=g.onBlur)===null||Te===void 0||Te.call(g,We),Ae("onBlur",We,!0)}}),je=oa.default.cloneElement(Y,De),Ie=(!!V||oe)&&J!==null;return fe?je:oa.default.createElement(lE,Object.assign({},q,{prefixCls:b("tooltip",k??l),title:J?J(Ne.value):"",value:Ne.value,open:Ie,placement:K(U??f,p),key:Ue,classNames:{root:`${ee}-tooltip`},getPopupContainer:z||d||O}),je)}),Ee=fe?(Y,Ne)=>{let Ue=oa.default.cloneElement(Y,{style:Object.assign(Object.assign({},Y.props.style),{visibility:"hidden"})});return oa.default.createElement(lE,Object.assign({},q,{prefixCls:b("tooltip",k??l),title:J?J(Ne.value):"",open:J!==null&&oe,placement:K(U??f,p),key:"tooltip",classNames:{root:`${ee}-tooltip`},getPopupContainer:z||d||O,draggingDelete:Ne.draggingDelete}),Ue)}:void 0,we=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),Re=Object.assign(Object.assign({},R.tracks),y?.tracks),ve=(0,Gu.default)(x.tracks,v?.tracks);return ae(oa.default.createElement(wL,Object.assign({},g,{classNames:Object.assign({handle:(0,Gu.default)(x.handle,v?.handle),rail:(0,Gu.default)(x.rail,v?.rail),track:(0,Gu.default)(x.track,v?.track)},ve?{tracks:ve}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys(Re).length?{tracks:Re}:{}),step:g.step,range:n,className:de,style:we,disabled:T,ref:t,prefixCls:ee,handleRender:se,activeHandleRender:Ee,onChangeComplete:Z})))}),cE=m7;function uE(e){return["small","middle","large"].includes(e)}var l0=E(I()),TL=E($e());var OL=E($e()),dE=["wrap","nowrap","wrap-reverse"],fE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],pE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],g7=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&dE.includes(r)}},h7=(e,t)=>{let r={};return pE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},v7=(e,t)=>{let r={};return fE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function y7(e,t){return(0,OL.default)(Object.assign(Object.assign(Object.assign({},g7(e,t)),h7(e,t)),v7(e,t)))}var NL=y7;var b7=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},S7=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},C7=e=>{let{componentCls:t}=e,r={};return dE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},x7=e=>{let{componentCls:t}=e,r={};return pE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},w7=e=>{let{componentCls:t}=e,r={};return fE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},E7=()=>({}),IL=qt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ct(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[b7(o),S7(o),C7(o),x7(o),w7(o)]},E7,{resetStyle:!1});var R7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,rootClassName:n,className:o,style:i,flex:a,gap:s,vertical:l=!1,component:c="div",children:u}=e,d=R7(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:f,direction:m,getPrefixCls:h}=l0.default.useContext(nt),v=h("flex",r),[y,g,p]=IL(v),b=l??f?.vertical,S=(0,TL.default)(o,n,f?.className,v,g,p,NL(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:uE(s),[`${v}-vertical`]:b}),C=Object.assign(Object.assign({},f?.style),i);return a&&(C.flex=a),s&&!uE(s)&&(C.gap=s),y(l0.default.createElement(c,Object.assign({ref:t,className:S,style:C},Gr(d,["justify","wrap","align"])),u))}),Va=_7;var c0=E(I());var P7={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"},$L=P7;var O7=function(t,r){return c0.createElement(Wt,le({},t,{ref:r,icon:$L}))},N7=c0.forwardRef(O7),u0=N7;var mE=E(I()),mp=E(I()),DL=E($e());var I7=e=>{let{getPrefixCls:t,direction:r}=(0,mp.useContext)(nt),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Hy(a),u=(0,DL.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,o),d=(0,mp.useContext)(pn),f=(0,mp.useMemo)(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(mE.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},mE.createElement(pn.Provider,{value:f},e.children)))},AL=I7;var dr=E(I()),FL=E($e());var T7=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${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}}}},kL=qt(["Input","OTP"],e=>{let t=ct(e,Wa(e));return T7(t)},za);var ii=E(I()),ML=E($e());var $7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=$7(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ii.useContext(nt),u=c("otp"),d=typeof s=="string"?s:n,f=ii.useRef(null);ii.useImperativeHandle(t,()=>f.current);let m=y=>{o(a,y.target.value)},h=()=>{dt(()=>{var y;let g=(y=f.current)===null||y===void 0?void 0:y.input;document.activeElement===g&&g&&g.select()})},v=y=>{let{key:g,ctrlKey:p,metaKey:b}=y;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(p||b)?y.preventDefault():g==="Backspace"&&!n&&i(a-1),h()};return ii.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&ii.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),ii.createElement(Ys,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:f,value:n,onInput:m,onFocus:h,onKeyDown:v,onMouseDown:h,onMouseUp:h,className:(0,ML.default)(r,{[`${u}-mask-input`]:s})})))}),LL=D7;var A7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?dr.createElement("span",{className:`${r}-separator`},o):null},M7=dr.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:m,mask:h,type:v,onInput:y,inputMode:g}=e,p=A7(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:S}=dr.useContext(nt),C=b("otp",r),w=qo(p,{aria:!0,data:!0,attr:!0}),[x,R,O]=kL(C),_=ao(k=>o??k),T=dr.useContext(pn),$=Zi(T.status,f),D=dr.useMemo(()=>Object.assign(Object.assign({},T),{status:$,hasFeedback:!1,feedbackIcon:null}),[T,$]),M=dr.useRef(null),A=dr.useRef({});dr.useImperativeHandle(t,()=>({focus:()=>{var k;(k=A.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let B=0;Bl?l(k):k,[W,j]=dr.useState(()=>d0(F(i||"")));dr.useEffect(()=>{a!==void 0&&j(d0(a))},[a]);let G=_t(k=>{j(k),y&&y(k),s&&k.length===n&&k.every(B=>B)&&k.some((B,V)=>W[V]!==B)&&s(k.join(""))}),q=_t((k,B)=>{let V=re(W);for(let J=0;J=0&&!V[J];J-=1)V.pop();let oe=F(V.map(J=>J||" ").join(""));return V=d0(oe).map((J,Q)=>J===" "&&!V[Q]?V[Q]:J),V}),H=(k,B)=>{var V;let oe=q(k,B),J=Math.min(k+B.length,n-1);J!==k&&oe[k]!==void 0&&((V=A.current[J])===null||V===void 0||V.focus()),G(oe)},U=k=>{var B;(B=A.current[k])===null||B===void 0||B.focus()},z={variant:u,disabled:d,status:$,mask:h,type:v,inputMode:g};return x(dr.createElement("div",Object.assign({},w,{ref:M,className:(0,FL.default)(C,{[`${C}-sm`]:_==="small",[`${C}-lg`]:_==="large",[`${C}-rtl`]:S==="rtl"},O,R),role:"group"}),dr.createElement(pn.Provider,{value:D},Array.from({length:n}).map((k,B)=>{let V=`otp-${B}`,oe=W[B]||"";return dr.createElement(dr.Fragment,{key:V},dr.createElement(LL,Object.assign({ref:J=>{A.current[B]=J},index:B,size:_,htmlSize:1,className:`${C}-input`,onChange:H,value:oe,onActiveChange:U,autoFocus:B===0&&m},z)),Be?Zr.createElement(u0,null):Zr.createElement(jL,null),B7={click:"onClick",hover:"onMouseOver"},V7=Zr.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=j7,suffix:a}=e,s=Zr.useContext(Hr),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[u,d]=(0,p0.useState)(()=>c?o.visible:!1),f=(0,p0.useRef)(null);Zr.useEffect(()=>{c&&d(o.visible)},[c,o]);let m=fp(f),h=()=>{var T;if(l)return;u&&m();let $=!u;d($),typeof o=="object"&&((T=o.onVisibleChange)===null||T===void 0||T.call(o,$))},v=T=>{let $=B7[n]||"",D=i(u),M={[$]:h,className:`${T}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return Zr.cloneElement(Zr.isValidElement(D)?D:Zr.createElement("span",null,D),M)},{className:y,prefixCls:g,inputPrefixCls:p,size:b}=e,S=z7(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=Zr.useContext(nt),w=C("input",p),x=C("input-password",g),R=o&&v(x),O=(0,BL.default)(x,y,{[`${x}-${b}`]:!!b}),_=Object.assign(Object.assign({},Gr(S,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:w,suffix:Zr.createElement(Zr.Fragment,null,R,a)});return b&&(_.size=b),Zr.createElement(Ys,Object.assign({ref:Wr(t,f)},_))}),VL=V7;var Ii=E(I());var HL=E($e());var H7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:m,onCompositionEnd:h,variant:v,onPressEnter:y}=e,g=H7(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:b}=Ii.useContext(nt),S=Ii.useRef(!1),C=p("input-search",r),w=p("input",n),{compactSize:x}=Yo(C,b),R=ao(z=>{var k;return(k=i??x)!==null&&k!==void 0?k:z}),O=Ii.useRef(null),_=z=>{z?.target&&z.type==="click"&&d&&d(z.target.value,z,{source:"clear"}),f?.(z)},T=z=>{var k;document.activeElement===((k=O.current)===null||k===void 0?void 0:k.input)&&z.preventDefault()},$=z=>{var k,B;d&&d((B=(k=O.current)===null||k===void 0?void 0:k.input)===null||B===void 0?void 0:B.value,z,{source:"input"})},D=z=>{S.current||c||(y?.(z),$(z))},M=typeof s=="boolean"?Ii.createElement(Iy,null):null,A=`${C}-button`,F,W=s||{},j=W.type&&W.type.__ANT_BUTTON===!0;j||W.type==="button"?F=Ko(W,Object.assign({onMouseDown:T,onClick:z=>{var k,B;(B=(k=W?.props)===null||k===void 0?void 0:k.onClick)===null||B===void 0||B.call(k,z),$(z)},key:"enterButton"},j?{className:A,size:R}:{})):F=Ii.createElement(zf,{className:A,color:s?"primary":"default",size:R,disabled:u,key:"enterButton",onMouseDown:T,onClick:$,loading:c,icon:M,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(F=[F,Ko(l,{key:"addonAfter"})]);let G=(0,HL.default)(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${R}`]:!!R,[`${C}-with-button`]:!!s},o),q=z=>{S.current=!0,m?.(z)},H=z=>{S.current=!1,h?.(z)},U=Object.assign(Object.assign({},g),{className:G,prefixCls:w,type:"search",size:R,variant:v,onPressEnter:D,onCompositionStart:q,onCompositionEnd:H,addonAfter:F,suffix:a,onChange:_,disabled:u});return Ii.createElement(Ys,Object.assign({ref:Wr(O,t)},U))}),UL=U7;var To=E(I()),YL=E(I()),hp=E($e());var gp=E($e());var en=E(I());var GL=E($e());var wn=E(I());var G7=` 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; `,q7=["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"],gE={},Io;function K7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&gE[r])return gE[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=q7.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(gE[r]=l),l}function hE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Io||(Io=document.createElement("textarea"),Io.setAttribute("tab-index","-1"),Io.setAttribute("aria-hidden","true"),Io.setAttribute("name","hiddenTextarea"),document.body.appendChild(Io)),e.getAttribute("wrap")?Io.setAttribute("wrap",e.getAttribute("wrap")):Io.removeAttribute("wrap");var o=K7(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Io.setAttribute("style","".concat(l,";").concat(G7)),Io.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Io.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=i),r!==null||n!==null){Io.value=" ";var m=Io.scrollHeight-i;r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),f=Math.max(c,f)),n!==null&&(u=m*n,s==="border-box"&&(u=u+i+a),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var X7=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vE=0,yE=1,bE=2,Y7=wn.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,d=r.onChange,f=r.onInternalAutoSize,m=ze(r,X7),h=ir(o,{value:i,postState:function(k){return k??""}}),v=L(h,2),y=v[0],g=v[1],p=function(k){g(k.target.value),d?.(k)},b=wn.useRef();wn.useImperativeHandle(t,function(){return{textArea:b.current}});var S=wn.useMemo(function(){return a&&ce(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=L(S,2),w=C[0],x=C[1],R=!!a,O=wn.useState(bE),_=L(O,2),T=_[0],$=_[1],D=wn.useState(),M=L(D,2),A=M[0],F=M[1],W=function(){$(vE)};ht(function(){R&&W()},[i,w,x,R]),ht(function(){if(T===vE)$(yE);else if(T===yE){var z=hE(b.current,!1,w,x);$(bE),F(z)}},[T]);var j=wn.useRef(),G=function(){dt.cancel(j.current)},q=function(k){T===bE&&(s?.(k),a&&(G(),j.current=dt(function(){W()})))};wn.useEffect(function(){return G},[]);var H=R?A:null,U=N(N({},c),H);return(T===vE||T===yE)&&(U.overflowY="hidden",U.overflowX="hidden"),wn.createElement(no,{onResize:q,disabled:!(a||s)},wn.createElement("textarea",le({},m,{ref:b,style:U,className:(0,GL.default)(n,l,P({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:p})))}),SE=Y7;var Q7=["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"],J7=en.default.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,v=e.showCount,y=e.count,g=e.className,p=e.style,b=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,x=e.onResize,R=e.onClear,O=e.onPressEnter,_=e.readOnly,T=e.autoSize,$=e.onKeyDown,D=ze(e,Q7),M=ir(n,{value:o,defaultValue:n}),A=L(M,2),F=A[0],W=A[1],j=F==null?"":String(F),G=en.default.useState(!1),q=L(G,2),H=q[0],U=q[1],z=en.default.useRef(!1),k=en.default.useState(null),B=L(k,2),V=B[0],oe=B[1],J=(0,en.useRef)(null),Q=(0,en.useRef)(null),pe=function(){var _e;return(_e=Q.current)===null||_e===void 0?void 0:_e.textArea},Z=function(){pe().focus()};(0,en.useImperativeHandle)(t,function(){var Te;return{resizableTextArea:Q.current,focus:Z,blur:function(){pe().blur()},nativeElement:((Te=J.current)===null||Te===void 0?void 0:Te.nativeElement)||pe()}}),(0,en.useEffect)(function(){U(function(Te){return!b&&Te})},[b]);var K=en.default.useState(null),ee=L(K,2),ae=ee[0],te=ee[1];en.default.useEffect(function(){if(ae){var Te;(Te=pe()).setSelectionRange.apply(Te,re(ae))}},[ae]);var X=dp(y,v),de=(r=X.max)!==null&&r!==void 0?r:c,fe=Number(de)>0,se=X.strategy(j),Ee=!!de&&se>de,we=function(_e,Ge){var Ce=Ge;!z.current&&X.exceedFormatter&&X.max&&X.strategy(Ge)>X.max&&(Ce=X.exceedFormatter(Ge,{max:X.max}),Ge!==Ce&&te([pe().selectionStart||0,pe().selectionEnd||0])),W(Ce),ju(_e.currentTarget,_e,s,Ce)},Re=function(_e){z.current=!0,u?.(_e)},ve=function(_e){z.current=!1,we(_e,_e.currentTarget.value),d?.(_e)},Y=function(_e){we(_e,_e.target.value)},Ne=function(_e){_e.key==="Enter"&&O&&O(_e),$?.(_e)},Ue=function(_e){U(!0),i?.(_e)},Ze=function(_e){U(!1),a?.(_e)},Ae=function(_e){W(""),Z(),ju(pe(),_e,s)},De=f,je;X.show&&(X.showFormatter?je=X.showFormatter({value:j,count:se,maxLength:de}):je="".concat(se).concat(fe?" / ".concat(de):""),De=en.default.createElement(en.default.Fragment,null,De,en.default.createElement("span",{className:(0,gp.default)("".concat(h,"-data-count"),C?.count),style:w?.count},je)));var Ie=function(_e){var Ge;x?.(_e),(Ge=pe())!==null&&Ge!==void 0&&Ge.style.height&&oe(!0)},We=!T&&!v&&!l;return en.default.createElement(Ql,{ref:J,value:j,allowClear:l,handleReset:Ae,suffix:De,prefixCls:h,classNames:N(N({},C),{},{affixWrapper:(0,gp.default)(C?.affixWrapper,P(P({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:b,focused:H,className:(0,gp.default)(g,Ee&&"".concat(h,"-out-of-range")),style:N(N({},p),V&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:S,readOnly:_,onClear:R},en.default.createElement(SE,le({},D,{autoSize:T,maxLength:c,onKeyDown:Ne,onChange:Y,onFocus:Ue,onBlur:Ze,onCompositionStart:Re,onCompositionEnd:ve,className:(0,gp.default)(C?.textarea),style:N(N({},w?.textarea),{},{resize:p?.resize}),disabled:b,prefixCls:h,onResize:Ie,ref:Q,readOnly:_})))}),qL=J7;var KL=qL;var Z7=e=>{let{componentCls:t,paddingLG:r}=e,n=`${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"},[n]:{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${n}-has-feedback ${t} `]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},XL=qt(["Input","TextArea"],e=>{let t=ct(e,Wa(e));return Z7(t)},za,{resetFont:!1});var e9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:m,variant:h,showCount:v,onMouseDown:y,onResize:g}=e,p=e9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:b,direction:S,allowClear:C,autoComplete:w,className:x,style:R,classNames:O,styles:_}=Dn("textArea"),T=To.useContext(Hr),$=a??T,{status:D,hasFeedback:M,feedbackIcon:A}=To.useContext(pn),F=Zi(D,s),W=To.useRef(null);To.useImperativeHandle(t,()=>{var X;return{resizableTextArea:(X=W.current)===null||X===void 0?void 0:X.resizableTextArea,focus:de=>{var fe,se;Yl((se=(fe=W.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||se===void 0?void 0:se.textArea,de)},blur:()=>{var de;return(de=W.current)===null||de===void 0?void 0:de.blur()}}});let j=b("input",n),G=Xo(j),[q,H,U]=Vy(j,u),[z]=XL(j,G),{compactSize:k,compactItemClassnames:B}=Yo(j,S),V=ao(X=>{var de;return(de=i??k)!==null&&de!==void 0?de:X}),[oe,J]=Xs("textArea",h,o),Q=t0(l??C),[pe,Z]=To.useState(!1),[K,ee]=To.useState(!1),ae=X=>{Z(!0),y?.(X);let de=()=>{Z(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},te=X=>{var de,fe;if(g?.(X),pe&&typeof getComputedStyle=="function"){let se=(fe=(de=W.current)===null||de===void 0?void 0:de.nativeElement)===null||fe===void 0?void 0:fe.querySelector("textarea");se&&getComputedStyle(se).resize==="both"&&ee(!0)}};return q(z(To.createElement(KL,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),f),styles:Object.assign(Object.assign({},_),m),disabled:$,allowClear:Q,className:(0,hp.default)(U,G,d,u,B,x,K&&`${j}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:(0,hp.default)({[`${j}-sm`]:V==="small",[`${j}-lg`]:V==="large"},H,c?.textarea,O.textarea,pe&&`${j}-mouse-active`),variant:(0,hp.default)({[`${j}-${oe}`]:J},Ji(j,F)),affixWrapper:(0,hp.default)(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:S==="rtl",[`${j}-affix-wrapper-sm`]:V==="small",[`${j}-affix-wrapper-lg`]:V==="large",[`${j}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},H)}),prefixCls:j,suffix:M&&To.createElement("span",{className:`${j}-textarea-suffix`},A),showCount:v,ref:W,onResize:te,onMouseDown:ae}))))}),QL=t9;var qu=Ys;qu.Group=AL;qu.Search=UL;qu.TextArea=QL;qu.Password=VL;qu.OTP=WL;var vp=qu;var tn=E(I());var _E=E($e());var Yu=E(I()),sF=E($e());var r9=E(I()),n9=E($e());var yp=E(I()),CE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},xE=function(){var t=(0,yp.useRef)([]),r=(0,yp.useRef)(null);return(0,yp.useEffect)(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};var bp=E(I()),oF=E($e());var m0=E(I());var JL=0,o9=Yt();function i9(){var e;return o9?(e=JL,JL+=1):e="TEST_OR_SSR",e}var ZL=(function(e){var t=m0.useState(),r=L(t,2),n=r[0],o=r[1];return m0.useEffect(function(){o("rc_progress_".concat(i9()))},[]),e||n});var ai=E(I()),eF=function(t){var r=t.bg,n=t.children;return ai.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function tF(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var a9=ai.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=n&&ce(n)==="object",m=f?"#FFF":void 0,h=u/2,v=ai.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return v;var y="".concat(o,"-conic"),g=d?"".concat(180+d/2,"deg"):"0deg",p=tF(n,(360-d)/360),b=tF(n,1),S="conic-gradient(from ".concat(g,", ").concat(p.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(b.join(", "),")");return ai.createElement(ai.Fragment,null,ai.createElement("mask",{id:y},v),ai.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},ai.createElement(eF,{bg:C},ai.createElement(eF,{bg:S}))))}),rF=a9;var Ku=100,g0=function(t,r,n,o,i,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Ku/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+m,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var s9=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function nF(e){var t=e??[];return Array.isArray(t)?t:[t]}var l9=function(t){var r=N(N({},CE),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,d=r.trailColor,f=r.strokeLinecap,m=r.style,h=r.className,v=r.strokeColor,y=r.percent,g=ze(r,s9),p=Ku/2,b=ZL(n),S="".concat(b,"-gradient"),C=p-a/2,w=Math.PI*2*C,x=c>0?90+c/2:-90,R=w*((360-c)/360),O=ce(i)==="object"?i:{count:i,gap:2},_=O.count,T=O.gap,$=nF(y),D=nF(v),M=D.find(function(H){return H&&ce(H)==="object"}),A=M&&ce(M)==="object",F=A?"butt":f,W=g0(w,R,0,100,x,c,u,d,F,a),j=xE(),G=function(){var U=0;return $.map(function(z,k){var B=D[k]||D[D.length-1],V=g0(w,R,U,z,x,c,u,B,F,a);return U+=z,bp.createElement(rF,{key:k,color:B,ptg:z,radius:C,prefixCls:o,gradientId:S,style:V,strokeLinecap:F,strokeWidth:a,gapDegree:c,ref:function(J){j[k]=J},size:Ku})}).reverse()},q=function(){var U=Math.round(_*($[0]/100)),z=100/_,k=0;return new Array(_).fill(null).map(function(B,V){var oe=V<=U-1?D[0]:d,J=oe&&ce(oe)==="object"?"url(#".concat(S,")"):void 0,Q=g0(w,R,k,z,x,c,u,oe,"butt",a,T);return k+=(R-Q.strokeDashoffset+T)*100/R,bp.createElement("circle",{key:V,className:"".concat(o,"-circle-path"),r:C,cx:p,cy:p,stroke:J,strokeWidth:a,opacity:1,style:Q,ref:function(Z){j[V]=Z}})})};return bp.createElement("svg",le({className:(0,oF.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Ku," ").concat(Ku),style:m,id:n,role:"presentation"},g),!_&&bp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:C,cx:p,cy:p,stroke:d,strokeLinecap:F,strokeWidth:s||a,style:W}),_?q():G())},wE=l9;function ia(e){return!e||e<0?0:e>100?100:e}function Xu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var iF=({percent:e,success:t,successPercent:r})=>{let n=ia(Xu({success:t,successPercent:r}));return[n,ia(ia(e)-n)]},aF=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||_a.green,t||null]},Qs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var c9=3,u9=e=>c9/e*100,d9=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,m]=Qs(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(u9(f),6));let v={width:f,height:m,fontSize:f*.15+6},y=Yu.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=iF(e),p=o||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=aF({success:c,strokeColor:e.strokeColor}),C=(0,sF.default)(`${t}-inner`,{[`${t}-circle-gradient`]:b}),w=Yu.createElement(wE,{steps:d,percent:d?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:p}),x=f<=20,R=Yu.createElement("div",{className:C,style:v},w,!x&&l);return x?Yu.createElement(Fa,{title:l},R):R},lF=d9;var Qu=E(I());var dF=E($e());var Sp="--progress-line-stroke-color",EE="--progress-percent",cF=e=>{let t=e?"100%":"-100%";return new Ct(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},f9=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Sp})`]},height:"100%",width:`calc(1 / var(${EE}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ne(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:cF(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:cF(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},p9=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},m9=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},g9=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},h9=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),uF=qt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ct(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[f9(r),p9(r),m9(r),g9(r)]},h9);var v9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(r=>{let n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},b9=(e,t)=>{let{from:r=_a.blue,to:n=_a.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=v9(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=y9(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Sp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Sp]:a}},S9=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:m}=u,h=a&&typeof a!="string"?b9(a,r):{[Sp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[g,p]=Qs(y,"line",{strokeWidth:i}),b={backgroundColor:c||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${ia(n)}%`,height:p,borderRadius:v},h),{[EE]:ia(n)/100}),C=Xu(e),w={width:`${ia(C)}%`,height:p,borderRadius:v,backgroundColor:d?.strokeColor},x={width:g<0?"100%":g},R=Qu.createElement("div",{className:`${t}-inner`,style:b},Qu.createElement("div",{className:(0,dF.default)(`${t}-bg`,`${t}-bg-${m}`),style:S},m==="inner"&&l),C!==void 0&&Qu.createElement("div",{className:`${t}-success-bg`,style:w})),O=m==="outer"&&f==="start",_=m==="outer"&&f==="end";return m==="outer"&&f==="center"?Qu.createElement("div",{className:`${t}-layout-bottom`},R,l):Qu.createElement("div",{className:`${t}-outer`,style:x},O&&l,R,_&&l)},fF=S9;var RE=E(I()),pF=E($e());var C9=e=>{let{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),f=t??[t==="small"?2:14,i],[m,h]=Qs(f,"step",{steps:r,strokeWidth:i}),v=m/r,y=Array.from({length:r});for(let g=0;g{let{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:m,percentPosition:h={}}=e,v=x9(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,p=Array.isArray(a)?a[0]:a,b=typeof a=="string"||Array.isArray(a)?a:void 0,S=tn.useMemo(()=>{if(p){let G=typeof p=="string"?p:Object.values(p)[0];return new gt(G).isLight()}return!1},[a]),C=tn.useMemo(()=>{var G,q;let H=Xu(e);return Number.parseInt(H!==void 0?(G=H??0)===null||G===void 0?void 0:G.toString():(q=s??0)===null||q===void 0?void 0:q.toString(),10)},[s,e.success,e.successPercent]),w=tn.useMemo(()=>!w9.includes(d)&&C>=100?"success":d||"normal",[d,C]),{getPrefixCls:x,direction:R,progress:O}=tn.useContext(nt),_=x("progress",r),[T,$,D]=uF(_),M=u==="line",A=M&&!i,F=tn.useMemo(()=>{if(!c)return null;let G=Xu(e),q,H=f||(z=>`${z}%`),U=M&&S&&g==="inner";return g==="inner"||f||w!=="exception"&&w!=="success"?q=H(ia(s),ia(G)):w==="exception"?q=M?tn.createElement(mu,null):tn.createElement(pv,null):w==="success"&&(q=M?tn.createElement(M2,null):tn.createElement(_y,null)),tn.createElement("span",{className:(0,_E.default)(`${_}-text`,{[`${_}-text-bright`]:U,[`${_}-text-${y}`]:A,[`${_}-text-${g}`]:A}),title:typeof q=="string"?q:void 0},q)},[c,s,C,w,u,_,f]),W;u==="line"?W=i?tn.createElement(mF,Object.assign({},e,{strokeColor:b,prefixCls:_,steps:typeof i=="object"?i.count:i}),F):tn.createElement(fF,Object.assign({},e,{strokeColor:p,prefixCls:_,direction:R,percentPosition:{align:y,type:g}}),F):(u==="circle"||u==="dashboard")&&(W=tn.createElement(lF,Object.assign({},e,{strokeColor:p,prefixCls:_,progressStatus:w}),F));let j=(0,_E.default)(_,`${_}-status-${w}`,{[`${_}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${_}-inline-circle`]:u==="circle"&&Qs(l,"circle")[0]<=20,[`${_}-line`]:A,[`${_}-line-align-${y}`]:A,[`${_}-line-position-${g}`]:A,[`${_}-steps`]:i,[`${_}-show-info`]:c,[`${_}-${l}`]:typeof l=="string",[`${_}-rtl`]:R==="rtl"},O?.className,n,o,$,D);return T(tn.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O?.style),m),className:j,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Gr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),W))}),gF=E9;var hF=gF;var h0=E(I());var R9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},vF=R9;var _9=function(t,r){return h0.createElement(Wt,le({},t,{ref:r,icon:vF}))},P9=h0.forwardRef(_9),yF=P9;var P0=E(I());var br=E(I()),IE=E(Hi()),R0=E($e());var b0=E(I());var CF=E($e());var xp=E(I());var v0=(function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Bt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0});function O9(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function bF(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function y0(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(O9(e,t),bF(t)):e.onSuccess(bF(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var N9=(function(){var e=Ur(Pt().mark(function t(r,n){var o,i,a,s,l,c,u,d;return Pt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Ur(Pt().mark(function v(y){return Pt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(b){y.file(function(S){n(S)?(y.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),b(S)):b(null)})}));case 1:case"end":return p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Ur(Pt().mark(function v(y){var g,p,b,S,C;return Pt().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:g=y.createReader(),p=[];case 2:return x.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(b=x.sent,S=b.length,S){x.next=9;break}return x.abrupt("break",12);case 9:for(C=0;C0||v.some(function(S){return S.kind==="file"}))&&u?.(),!h){b.next=11;break}return b.next=7,SF(Array.prototype.slice.call(v),function(S){return v0(S,n.props.accept)});case 7:y=b.sent,n.uploadFiles(y),b.next=14;break;case 11:g=re(y).filter(function(S){return v0(S,m)}),f===!1&&(g=y.slice(0,1)),n.uploadFiles(g);case 14:case"end":return b.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}})()),P(Xe(n),"onFilePaste",(function(){var s=Ur(Pt().mark(function l(c){var u,d;return Pt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=n.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return d=c.clipboardData,m.abrupt("return",n.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),P(Xe(n),"onFileDragOver",function(s){s.preventDefault()}),P(Xe(n),"onFileDrop",(function(){var s=Ur(Pt().mark(function l(c){var u;return Pt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),P(Xe(n),"uploadFiles",function(s){var l=re(s),c=l.map(function(u){return u.uid=Cp(),n.processFile(u,l)});Promise.all(c).then(function(u){var d=n.props.onBatchStart;d?.(u.map(function(f){var m=f.origin,h=f.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){n.post(f)})})}),P(Xe(n),"processFile",(function(){var s=Ur(Pt().mark(function l(c,u){var d,f,m,h,v,y,g,p,b;return Pt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(d=n.props.beforeUpload,f=c,!d){C.next=14;break}return C.prev=3,C.next=6,d(c,u);case 6:f=C.sent,C.next=12;break;case 9:C.prev=9,C.t0=C.catch(3),f=!1;case 12:if(f!==!1){C.next=14;break}return C.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=n.props.action,typeof m!="function"){C.next=21;break}return C.next=18,m(c);case 18:h=C.sent,C.next=22;break;case 21:h=m;case 22:if(v=n.props.data,typeof v!="function"){C.next=29;break}return C.next=26,v(c);case 26:y=C.sent,C.next=30;break;case 29:y=v;case 30:return g=(ce(f)==="object"||typeof f=="string")&&f?f:c,g instanceof File?p=g:p=new File([g],c.name,{type:c.type}),b=p,b.uid=c.uid,C.abrupt("return",{origin:c,data:y,parsedFile:b,action:h});case 35:case"end":return C.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}})()),P(Xe(n),"saveFileInput",function(s){n.fileInput=s}),n}return at(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,m=u.name,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,p=f||y0,b={action:l,filename:m,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(C){var w=i.props.onProgress;w?.(C,c)},onSuccess:function(C,w){var x=i.props.onSuccess;x?.(C,c,w),delete i.reqs[g]},onError:function(C,w){var x=i.props.onError;x?.(C,w,c),delete i.reqs[g]}};d(s),this.reqs[g]=p(b,{defaultRequest:y0})}}},{key:"reset",value:function(){this.setState({uid:Cp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,d=o.id,f=o.name,m=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,g=o.accept,p=o.capture,b=o.children,S=o.directory,C=o.folder,w=o.openFileDialogOnClick,x=o.onMouseEnter,R=o.onMouseLeave,O=o.hasControlInside,_=ze(o,$9),T=(0,CF.default)(P(P(P({},a,!0),"".concat(a,"-disabled"),u),s,s)),$=S||C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:R,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:O?void 0:"0"};return xp.default.createElement(i,le({},D,{className:T,role:O?void 0:"button",style:m}),xp.default.createElement("input",le({},qo(_,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(A){return A.stopPropagation()},key:this.state.uid,style:N({display:"none"},v.input),className:c.input,accept:g},$,{multiple:y,onChange:this.onChange},p!=null?{capture:p}:{})),b)}}]),r})(xp.Component),xF=D9;function PE(){}var wF=(function(e){$r(r,e);var t=Dr(r);function r(){var n;it(this,r);for(var o=arguments.length,i=new Array(o),a=0;a{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},RF=A9;var k9=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},fu()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Oa),{padding:`0 ${ne(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_F=k9;var M9=e=>{let{componentCls:t}=e,r=new Ct("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new Ct("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:yw(e)},r,n]},PF=M9;var OF=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Oa),{width:n,height:n,lineHeight:ne(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${ne(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${$s[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${$s.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},NF=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:Object.assign(Object.assign({},fu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${r}-eye, ${r}-download, ${r}-delete `]:{zIndex:10,width:n,margin:`0 ${ne(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var L9=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},IF=L9;var F9=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},W9=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),TF=qt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:o,calc:i}=e,a=ct(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:o});return[F9(a),RF(a),OF(a),NF(a),_F(a),PF(a),IF(a),vw(a)]},W9);var Gt=E(I());var S0=E(I());var z9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},$F=z9;var j9=function(t,r){return S0.createElement(Wt,le({},t,{ref:r,icon:$F}))},B9=S0.forwardRef(j9),DF=B9;var C0=E(I());var V9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},AF=V9;var H9=function(t,r){return C0.createElement(Wt,le({},t,{ref:r,icon:AF}))},U9=C0.forwardRef(H9),kF=U9;var x0=E(I());var G9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},MF=G9;var q9=function(t,r){return x0.createElement(Wt,le({},t,{ref:r,icon:MF}))},K9=x0.forwardRef(q9),LF=K9;var NE=E($e());function wp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ep(e,t){let r=re(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function w0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function FF(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var X9=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},WF=e=>e.indexOf("image/")===0,zF=e=>{if(e.type&&!e.thumbUrl)return WF(e.type);let t=e.thumbUrl||e.url||"",r=X9(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Js=200;function jF(e){return new Promise(t=>{if(!e.type||!WF(e.type)){t("");return}let r=document.createElement("canvas");r.width=Js,r.height=Js,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Js}px; height: ${Js}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Js,l=Js,c=0,u=0;i>a?(l=a*(Js/i),u=-(l-s)/2):(s=i*(Js/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var zt=E(I());var E0=E(I());var Y9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},BF=Y9;var Q9=function(t,r){return E0.createElement(Wt,le({},t,{ref:r,icon:BF}))},J9=E0.forwardRef(Q9),VF=J9;var Zs=E($e());var Z9=zt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:b,onDownload:S,onClose:C},w)=>{var x,R;let{status:O}=i,[_,T]=zt.useState(O);zt.useEffect(()=>{O!=="removed"&&T(O)},[O]);let[$,D]=zt.useState(!1);zt.useEffect(()=>{let K=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(K)}},[]);let M=l(i),A=zt.createElement("div",{className:`${e}-icon`},M);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(_==="uploading"||!i.thumbUrl&&!i.url){let K=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:_!=="uploading"});A=zt.createElement("div",{className:K},M)}else{let K=d?.(i)?zt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,ee=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});A=zt.createElement("a",{className:ee,onClick:ae=>b(i,ae),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}let F=(0,Zs.default)(`${e}-list-item`,`${e}-list-item-${_}`),W=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,j=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||zt.createElement(yF,null),()=>C(i),e,n.removeFile,!0):null,G=(typeof h=="function"?h(i):h)&&_==="done"?c((typeof g=="function"?g(i):g)||zt.createElement(VF,null),()=>S(i),e,n.downloadFile):null,q=o!=="picture-card"&&o!=="picture-circle"&&zt.createElement("span",{key:"download-delete",className:(0,Zs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},G,j),H=typeof p=="function"?p(i):p,U=H&&zt.createElement("span",{className:`${e}-list-item-extra`},H),z=(0,Zs.default)(`${e}-list-item-name`),k=i.url?zt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:i.name},W,{href:i.url,onClick:K=>b(i,K)}),i.name,U):zt.createElement("span",{key:"view",className:z,onClick:K=>b(i,K),title:i.name},i.name,U),B=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?zt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>b(i,K),title:n.previewFile},typeof v=="function"?v(i):v||zt.createElement(u0,null)):null,V=(o==="picture-card"||o==="picture-circle")&&_!=="uploading"&&zt.createElement("span",{className:`${e}-list-item-actions`},B,_==="done"&&G,j),{getPrefixCls:oe}=zt.useContext(nt),J=oe(),Q=zt.createElement("div",{className:F},A,k,q,V,$&&zt.createElement(Go,{motionName:`${J}-fade`,visible:_==="uploading",motionDeadline:2e3},({className:K})=>{let ee="percent"in i?zt.createElement(hF,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-progress`,K)},ee)})),pe=i.response&&typeof i.response=="string"?i.response:((x=i.error)===null||x===void 0?void 0:x.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=_==="error"?zt.createElement(Fa,{title:pe,getPopupContainer:K=>K.parentNode},Q):Q;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:S.bind(null,i),preview:b.bind(null,i),remove:C.bind(null,i)}):Z)}),HF=Z9;var eG=(e,t)=>{let{listType:r="text",previewFile:n=jF,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=zF,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:x}=e,[,R]=B2(),[O,_]=Gt.useState(!1),T=["picture-card","picture-circle"].includes(r);Gt.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",n?.(z.originFileObj).then(k=>{z.thumbUrl=k||"",R()}))})},[r,d,n]),Gt.useEffect(()=>{_(!0)},[]);let $=(z,k)=>{if(o)return k?.preventDefault(),o(z)},D=z=>{typeof i=="function"?i(z):z.url&&window.open(z.url)},M=z=>{a?.(z)},A=z=>{if(l)return l(z,r);let k=z.status==="uploading";if(r.startsWith("picture")){let B=r==="picture"?Gt.createElement(Wl,null):s.uploading,V=c?.(z)?Gt.createElement(LF,null):Gt.createElement(DF,null);return k?B:V}return k?Gt.createElement(Wl,null):Gt.createElement(kF,null)},F=(z,k,B,V,oe)=>{let J={type:"text",size:"small",title:V,onClick:Q=>{var pe,Z;k(),Gt.isValidElement(z)&&((Z=(pe=z.props).onClick)===null||Z===void 0||Z.call(pe,Q))},className:`${B}-list-item-action`,disabled:oe?x:!1};return Gt.isValidElement(z)?Gt.createElement(zf,Object.assign({},J,{icon:Ko(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):Gt.createElement(zf,Object.assign({},J),Gt.createElement("span",null,z))};Gt.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:D}));let{getPrefixCls:W}=Gt.useContext(nt),j=W("upload",u),G=W(),q=(0,NE.default)(`${j}-list`,`${j}-list-${r}`),H=Gt.useMemo(()=>Gr(r$(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),U=Object.assign(Object.assign({},T?{}:H),{motionDeadline:2e3,motionName:`${j}-${T?"animate-inline":"animate"}`,keys:re(d.map(z=>({key:z.uid,file:z}))),motionAppear:O});return Gt.createElement("div",{className:q},Gt.createElement(Yx,Object.assign({},U,{component:!1}),({key:z,file:k,className:B,style:V})=>Gt.createElement(HF,{key:z,locale:s,prefixCls:j,className:B,style:V,file:k,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:A,actionIconRender:F,itemRender:w,onPreview:$,onDownload:D,onClose:M})),S&&Gt.createElement(Go,Object.assign({},U,{visible:C,forceRender:!0}),({className:z,style:k})=>Ko(S,B=>({className:(0,NE.default)(B.className,z),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:z?"none":void 0}),B.style)}))))},tG=Gt.forwardRef(eG),UF=tG;var rG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Ju=`__LIST_IGNORE_${Date.now()}__`,nG=(e,t)=>{let r=Dn("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:h,iconRender:v,isImageUrl:y,progress:g,prefixCls:p,className:b,type:S="select",children:C,style:w,itemRender:x,maxCount:R,data:O={},multiple:_=!1,hasControlInside:T=!0,action:$="",accept:D="",supportServerRender:M=!0,rootClassName:A}=e,F=br.useContext(Hr),W=m??F,j=e.customRequest||r.customRequest,[G,q]=ir(o||[],{value:n,postState:Ce=>Ce??[]}),[H,U]=br.useState("drop"),z=br.useRef(null),k=br.useRef(null);br.useMemo(()=>{let Ce=Date.now();(n||[]).forEach((he,Be)=>{!he.uid&&!Object.isFrozen(he)&&(he.uid=`__AUTO__${Ce}_${Be}__`)})},[n]);let B=(Ce,he,Be)=>{let Le=re(he),rt=!1;R===1?Le=Le.slice(-1):R&&(rt=Le.length>R,Le=Le.slice(0,R)),(0,IE.flushSync)(()=>{q(Le)});let St={file:Ce,fileList:Le};Be&&(St.event=Be),(!rt||Ce.status==="removed"||Le.some(pt=>pt.uid===Ce.uid))&&(0,IE.flushSync)(()=>{u?.(St)})},V=(Ce,he)=>rG(void 0,void 0,void 0,function*(){let{beforeUpload:Be,transformFile:Le}=e,rt=Ce;if(Be){let St=yield Be(Ce,he);if(St===!1)return!1;if(delete Ce[Ju],St===Ju)return Object.defineProperty(Ce,Ju,{value:!0,configurable:!0}),!1;typeof St=="object"&&St&&(rt=St)}return Le&&(rt=yield Le(rt)),rt}),oe=Ce=>{let he=Ce.filter(rt=>!rt.file[Ju]);if(!he.length)return;let Be=he.map(rt=>wp(rt.file)),Le=re(G);Be.forEach(rt=>{Le=Ep(rt,Le)}),Be.forEach((rt,St)=>{let pt=rt;if(he[St].parsedFile)rt.status="uploading";else{let{originFileObj:ke}=rt,be;try{be=new File([ke],ke.name,{type:ke.type})}catch{be=new Blob([ke],{type:ke.type}),be.name=ke.name,be.lastModifiedDate=new Date,be.lastModified=new Date().getTime()}be.uid=rt.uid,pt=be}B(pt,Le)})},J=(Ce,he,Be)=>{try{typeof Ce=="string"&&(Ce=JSON.parse(Ce))}catch{}if(!w0(he,G))return;let Le=wp(he);Le.status="done",Le.percent=100,Le.response=Ce,Le.xhr=Be;let rt=Ep(Le,G);B(Le,rt)},Q=(Ce,he)=>{if(!w0(he,G))return;let Be=wp(he);Be.status="uploading",Be.percent=Ce.percent;let Le=Ep(Be,G);B(Be,Le,Ce)},pe=(Ce,he,Be)=>{if(!w0(Be,G))return;let Le=wp(Be);Le.error=Ce,Le.response=he,Le.status="error";let rt=Ep(Le,G);B(Le,rt)},Z=Ce=>{let he;Promise.resolve(typeof i=="function"?i(Ce):i).then(Be=>{var Le;if(Be===!1)return;let rt=FF(Ce,G);rt&&(he=Object.assign(Object.assign({},Ce),{status:"removed"}),G?.forEach(St=>{let pt=he.uid!==void 0?"uid":"name";St[pt]===he[pt]&&!Object.isFrozen(St)&&(St.status="removed")}),(Le=z.current)===null||Le===void 0||Le.abort(he),B(he,rt))})},K=Ce=>{U(Ce.type),Ce.type==="drop"&&d?.(Ce)};br.useImperativeHandle(t,()=>({onBatchStart:oe,onSuccess:J,onProgress:Q,onError:pe,fileList:G,upload:z.current,nativeElement:k.current}));let{getPrefixCls:ee,direction:ae,upload:te}=br.useContext(nt),X=ee("upload",p),de=Object.assign(Object.assign({onBatchStart:oe,onError:pe,onProgress:Q,onSuccess:J},e),{customRequest:j,data:O,multiple:_,action:$,accept:D,supportServerRender:M,prefixCls:X,disabled:W,beforeUpload:V,onChange:void 0,hasControlInside:T});delete de.className,delete de.style,(!C||W)&&delete de.id;let fe=`${X}-wrapper`,[se,Ee,we]=TF(X,fe),[Re]=Ea("Upload",wi.Upload),{showRemoveIcon:ve,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,extra:De}=typeof a=="boolean"?{}:a,je=typeof ve>"u"?!W:ve,Ie=(Ce,he)=>a?br.createElement(UF,{prefixCls:X,listType:s,items:G,previewFile:f,onPreview:l,onDownload:c,onRemove:Z,showRemoveIcon:je,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,iconRender:v,extra:De,locale:Object.assign(Object.assign({},Re),h),isImageUrl:y,progress:g,appendAction:Ce,appendActionVisible:he,itemRender:x,disabled:W}):Ce,We=(0,R0.default)(fe,b,A,Ee,we,te?.className,{[`${X}-rtl`]:ae==="rtl",[`${X}-picture-card-wrapper`]:s==="picture-card",[`${X}-picture-circle-wrapper`]:s==="picture-circle"}),Te=Object.assign(Object.assign({},te?.style),w);if(S==="drag"){let Ce=(0,R0.default)(Ee,X,`${X}-drag`,{[`${X}-drag-uploading`]:G.some(he=>he.status==="uploading"),[`${X}-drag-hover`]:H==="dragover",[`${X}-disabled`]:W,[`${X}-rtl`]:ae==="rtl"});return se(br.createElement("span",{className:We,ref:k},br.createElement("div",{className:Ce,style:Te,onDrop:K,onDragOver:K,onDragLeave:K},br.createElement(OE,Object.assign({},de,{ref:z,className:`${X}-btn`}),br.createElement("div",{className:`${X}-drag-container`},C))),Ie()))}let _e=(0,R0.default)(X,`${X}-select`,{[`${X}-disabled`]:W,[`${X}-hidden`]:!C}),Ge=br.createElement("div",{className:_e,style:Te},br.createElement(OE,Object.assign({},de,{ref:z})));return se(s==="picture-card"||s==="picture-circle"?br.createElement("span",{className:We,ref:k},Ie(Ge,!!C)):br.createElement("span",{className:We,ref:k},Ge,Ie()))},oG=br.forwardRef(nG),_0=oG;var iG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{style:r,height:n,hasControlInside:o=!1,children:i}=e,a=iG(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},r),{height:n});return P0.createElement(_0,Object.assign({ref:t,hasControlInside:o},a,{style:s,type:"drag"}),i)}),GF=aG;var TE=_0;TE.Dragger=GF;TE.LIST_IGNORE=Ju;var $E=TE;var YF=E(I(),1);var Pr=E(fr(),1),pG=()=>{let[e,t]=(0,YF.useState)(Ke.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,Pr.jsxs)("div",{className:"settings-container",children:[(0,Pr.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,Pr.jsxs)("div",{className:"settings-section",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,Pr.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:me("Photoshop plugin")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[me("Photoshop plugin")," 2.0 Beta"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:n,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)(lp,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Ke.setUseSliderForNumberWidget(o.target.checked),an.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},QF=pG;var d3=E(I(),1);var tc=E(I(),1);var JF=E(I(),1);function N0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Mn=E(fr(),1);function AE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,tc.useState)(0),l=(0,tc.useMemo)(()=>e.nodeIndexes.map(f=>{let m=e.nodes[f],h=(p,b,S)=>p.keepRender?b.outputType==="error"?(p.result.push((0,Mn.jsx)("span",{className:"list-error-label",children:t[m.id][S]})),p):(n?.(p,m,b,S),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Mn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Mn.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...N0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,Mn.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,b)=>(0,Mn.jsx)(DE,{children:p},b)),r[m.id]?(0,Mn.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,tc.useMemo)(()=>[Object.keys(r).filter(f=>e.nodes[parseInt(f)]),Object.keys(r).filter(f=>!e.nodes[parseInt(f)])],[r,e]),d=null;return u.length>0?d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Mn.jsxs)(Mn.Fragment,{children:[d,Object.keys(e.nodes).length?"":(0,Mn.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,Mn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var DE=class extends tc.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,Mn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var rc=E(I(),1);var ZF=E(I(),1);function el(e){return(0,ZF.useMemo)(()=>N0(e),[e])}var tl=E(fr(),1),e3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=el(i||12),[c,u]=(0,rc.useState)(+o.toFixed(3));(0,rc.useEffect)(()=>{u(+o.toFixed(3))},[o]);let d=(0,rc.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),f=(0,rc.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[(0,tl.jsx)(cE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:d,onChangeComplete:f}),(0,tl.jsx)(e0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]}):(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[n&&(0,tl.jsx)("span",{style:{flex:1},children:n}),(0,tl.jsx)(e0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]})};var Rp=E(fr(),1),t3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=el(o||12);return(0,Rp.jsxs)(Va,{style:{width:"100%",...a},align:"center",children:[n&&(0,Rp.jsx)("span",{style:{flex:1},children:n}),(0,Rp.jsx)(ap,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var n3=E(fr(),1),r3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=el(n||12);return(0,n3.jsx)(lp,{checked:!!e,onChange:o,style:{...i},children:t||""})};var kE=E(fr(),1),{TextArea:mG}=vp,o3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=el(r||12);return(0,kE.jsx)("div",{className:"widget-container",style:n,children:(0,kE.jsx)(mG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var _p=E(I(),1);var I0=E(fr(),1);function i3({title:e,onTitleChange:t}){let[r,n]=(0,_p.useState)(!1),[o,i]=(0,_p.useState)(e);(0,_p.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,I0.jsx)(vp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,I0.jsx)(Fa,{title:me("click to edit"),children:(0,I0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var Ha=E(fr(),1),a3={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},s3=({size:e=18,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Ha.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),l3=({size:e=16,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Ha.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Ha.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]});var Ua=E(fr(),1),c3=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,Ua.jsxs)(Va,{gap:5,align:"stretch",vertical:!0,children:[(0,Ua.jsxs)(Va,{gap:5,vertical:!0,children:[(0,Ua.jsx)(ap,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Ua.jsx)($E,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Ua.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ua.jsx)(l3,{size:16})," ",me("upload")]})})]}),e&&(0,Ua.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var aa=E(fr(),1),u3=window.comfyAPI.api.api,Zu=class extends d3.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Ke.data.widgetTableStructure,widgetTableValue:Ke.data.widgetTableValue,widgetTableErrors:Ke.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{u3.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Ke.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Ke.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Ke.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Ke.unsubscribe(n),Ke.unsubscribe(o),Ke.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{u3.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&Zp(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,aa.jsx)(e3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,aa.jsx)(t3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,aa.jsx)(r3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,aa.jsx)(o3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,aa.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,aa.jsx)(c3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,aa.jsx)(i3,{title:n,onTitleChange:i=>{jn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,aa.jsx)(Da,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,aa.jsx)(AE,{...t})})}};var Ln=E(fr(),1),f3=document.createElement("style");f3.innerHTML=bN;document.head.appendChild(f3);function ME({onClose:e,tab:t}){let[r,n]=(0,ed.useState)("1"),[o,i]=(0,ed.useState)(0);return(0,ed.useEffect)(()=>{n(t)},[t]),(0,ed.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,Ln.jsx)(Da,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,Ln.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Ln.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,Ln.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,Ln.jsx)("span",{children:"Powered by SDPPP"}),(0,Ln.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Ln.jsx)(s3,{size:18})})]}),(0,Ln.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Ln.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Ln.jsx)(Zu,{})}),(0,Ln.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Ln.jsx)(QF,{})})]})]})})}var nc=E(fr(),1);function LE({onMaximize:e,onPhotoshop:t}){return(0,nc.jsxs)("div",{className:"sdppp-side-container",children:[(0,nc.jsxs)("div",{className:"sdppp-side-header",children:[(0,nc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,nc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,nc.jsx)(Zu,{})]})}var p3=null,gG=null,FE=null;async function jE(e){if(!p3){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{gG||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,WE.createRoot)(r).render((0,zE.createElement)(LE,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){p3?FE.props.tab=o:(FE=(0,zE.createElement)(ME,{onClose:()=>{t.style.display="none"},tab:o}),(0,WE.createRoot)(t).render(FE)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}an.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Ke.data.widgetTableStructure,o=em(mt.graph,r);y3(o,n)&&Ke.setWidgetTableStructure(o),Ke.setWidgetTableValue(gd(mt.graph))});an.addEventListener("executed",()=>{Ke.setWidgetTableValue(gd(mt.graph))});var m3=0,g3=!0,h3="";function v3(){requestAnimationFrame(v3);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===m3&&n===h3&&o===g3)return;m3=r,h3=n,g3=o;let i=em(mt.graph,t),a=gd(mt.graph);Ke.setWidgetTableStructure(i),Ke.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=em(mt.graph,t),l=gd(mt.graph);y3(s,i)&&Ke.setWidgetTableStructure(s),Ke.setWidgetTableValue(l)},800)}requestAnimationFrame(v3);function y3(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function hG(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Ke.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Ke.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Ke.setExecutingNodeTitle(""),Ke.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Ke.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Ke.setLastError(""),Ke.setWidgetTableErrors({}),Ke.setProgress(0),Ke.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Ke.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Ke.setProgress(0),Ke.setExecutingNodeTitle(""),ul.get(s.detail.prompt_id)&&ul.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Ke.setProgress(0),Ke.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(ul.get(s.detail.prompt_id)?l=ul.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:rm(Ke.data.widgetTableStructure.widgetTablePath)})}}),jE(e);var i=new jn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{WR(s,l)}catch(u){Pp.push(u.stack||u.message||u)}}})}var Pp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await YE(),await hG(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(sa)})}catch(e){Pp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Pp.length&&(console.error(Pp[0]),alert(`sd-ppp init failed: `+Pp.join(` `)))}})(); /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) classnames/index.js: (*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames *) react-is/cjs/react-is.production.min.js: (** * @license React * react-is.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. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) fast-json-patch/module/helpers.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed *) fast-json-patch/module/duplex.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license *) @babel/runtime/helpers/esm/regenerator.js: (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *) */