570 lines
800 KiB
JavaScript
570 lines
800 KiB
JavaScript
var ez=Object.create;var rp=Object.defineProperty;var VR=Object.getOwnPropertyDescriptor;var tz=Object.getOwnPropertyNames;var rz=Object.getPrototypeOf,oz=Object.prototype.hasOwnProperty;var yx=(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 kn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xx=(e,t)=>{for(var r in t)rp(e,r,{get:t[r],enumerable:!0})},nz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tz(t))!oz.call(e,n)&&n!==r&&rp(e,n,{get:()=>t[n],enumerable:!(o=VR(t,n))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?ez(rz(e)):{},nz(t||!e||!e.__esModule?rp(r,"default",{value:e,enumerable:!0}):r,e));var Br=(e,t,r,o)=>{for(var n=o>1?void 0:o?VR(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(n=(o?a(t,r,n):a(n))||n);return o&&n&&rp(t,r,n),n};var QO=kn(wt=>{"use strict";var Wf=Symbol.for("react.element"),Wz=Symbol.for("react.portal"),Vz=Symbol.for("react.fragment"),Hz=Symbol.for("react.strict_mode"),Uz=Symbol.for("react.profiler"),Gz=Symbol.for("react.provider"),qz=Symbol.for("react.context"),Kz=Symbol.for("react.forward_ref"),Xz=Symbol.for("react.suspense"),Yz=Symbol.for("react.memo"),Qz=Symbol.for("react.lazy"),BO=Symbol.iterator;function Zz(e){return e===null||typeof e!="object"?null:(e=BO&&e[BO]||e["@@iterator"],typeof e=="function"?e:null)}var VO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HO=Object.assign,UO={};function Tc(e,t,r){this.props=e,this.context=t,this.refs=UO,this.updater=r||VO}Tc.prototype.isReactComponent={};Tc.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")};Tc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GO(){}GO.prototype=Tc.prototype;function Qx(e,t,r){this.props=e,this.context=t,this.refs=UO,this.updater=r||VO}var Zx=Qx.prototype=new GO;Zx.constructor=Qx;HO(Zx,Tc.prototype);Zx.isPureReactComponent=!0;var jO=Array.isArray,qO=Object.prototype.hasOwnProperty,Jx={current:null},KO={key:!0,ref:!0,__self:!0,__source:!0};function XO(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)qO.call(t,o)&&!KO.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)n[o]===void 0&&(n[o]=s[o]);return{$$typeof:Wf,type:e,key:i,ref:a,props:n,_owner:Jx.current}}function Jz(e,t){return{$$typeof:Wf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function eS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wf}function e6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var WO=/\/+/g;function Yx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?e6(""+e.key):t.toString(36)}function Fp(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Wf:case Wz:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Yx(a,0):o,jO(n)?(r="",e!=null&&(r=e.replace(WO,"$&/")+"/"),Fp(n,t,r,"",function(c){return c})):n!=null&&(eS(n)&&(n=Jz(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(WO,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",jO(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+Yx(i,s);a+=Fp(i,t,r,l,n)}else if(l=Zz(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+Yx(i,s++),a+=Fp(i,t,r,l,n);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function kp(e,t,r){if(e==null)return e;var o=[],n=0;return Fp(e,o,"","",function(i){return t.call(r,i,n++)}),o}function t6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Wo={current:null},zp={transition:null},r6={ReactCurrentDispatcher:Wo,ReactCurrentBatchConfig:zp,ReactCurrentOwner:Jx};function YO(){throw Error("act(...) is not supported in production builds of React.")}wt.Children={map:kp,forEach:function(e,t,r){kp(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return kp(e,function(){t++}),t},toArray:function(e){return kp(e,function(t){return t})||[]},only:function(e){if(!eS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};wt.Component=Tc;wt.Fragment=Vz;wt.Profiler=Uz;wt.PureComponent=Qx;wt.StrictMode=Hz;wt.Suspense=Xz;wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r6;wt.act=YO;wt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=HO({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Jx.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)qO.call(t,l)&&!KO.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:Wf,type:e.type,key:n,ref:i,props:o,_owner:a}};wt.createContext=function(e){return e={$$typeof:qz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gz,_context:e},e.Consumer=e};wt.createElement=XO;wt.createFactory=function(e){var t=XO.bind(null,e);return t.type=e,t};wt.createRef=function(){return{current:null}};wt.forwardRef=function(e){return{$$typeof:Kz,render:e}};wt.isValidElement=eS;wt.lazy=function(e){return{$$typeof:Qz,_payload:{_status:-1,_result:e},_init:t6}};wt.memo=function(e,t){return{$$typeof:Yz,type:e,compare:t===void 0?null:t}};wt.startTransition=function(e){var t=zp.transition;zp.transition={};try{e()}finally{zp.transition=t}};wt.unstable_act=YO;wt.useCallback=function(e,t){return Wo.current.useCallback(e,t)};wt.useContext=function(e){return Wo.current.useContext(e)};wt.useDebugValue=function(){};wt.useDeferredValue=function(e){return Wo.current.useDeferredValue(e)};wt.useEffect=function(e,t){return Wo.current.useEffect(e,t)};wt.useId=function(){return Wo.current.useId()};wt.useImperativeHandle=function(e,t,r){return Wo.current.useImperativeHandle(e,t,r)};wt.useInsertionEffect=function(e,t){return Wo.current.useInsertionEffect(e,t)};wt.useLayoutEffect=function(e,t){return Wo.current.useLayoutEffect(e,t)};wt.useMemo=function(e,t){return Wo.current.useMemo(e,t)};wt.useReducer=function(e,t,r){return Wo.current.useReducer(e,t,r)};wt.useRef=function(e){return Wo.current.useRef(e)};wt.useState=function(e){return Wo.current.useState(e)};wt.useSyncExternalStore=function(e,t,r){return Wo.current.useSyncExternalStore(e,t,r)};wt.useTransition=function(){return Wo.current.useTransition()};wt.version="18.3.1"});var I=kn((SJ,ZO)=>{"use strict";ZO.exports=QO()});var l_=kn(Zt=>{"use strict";function nS(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<Bp(n,t))e[o]=t,e[r]=n,r=o;else break e}}function pi(e){return e.length===0?null:e[0]}function Wp(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,s=e[a],l=a+1,c=e[l];if(0>Bp(s,r))l<n&&0>Bp(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>Bp(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Bp(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(JO=performance,Zt.unstable_now=function(){return JO.now()}):(tS=Date,e_=tS.now(),Zt.unstable_now=function(){return tS.now()-e_});var JO,tS,e_,Vi=[],ss=[],o6=1,Bn=null,Ro=3,Vp=!1,hl=!1,Hf=!1,o_=typeof setTimeout=="function"?setTimeout:null,n_=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 iS(e){for(var t=pi(ss);t!==null;){if(t.callback===null)Wp(ss);else if(t.startTime<=e)Wp(ss),t.sortIndex=t.expirationTime,nS(Vi,t);else break;t=pi(ss)}}function aS(e){if(Hf=!1,iS(e),!hl)if(pi(Vi)!==null)hl=!0,lS(sS);else{var t=pi(ss);t!==null&&cS(aS,t.startTime-e)}}function sS(e,t){hl=!1,Hf&&(Hf=!1,n_(Uf),Uf=-1),Vp=!0;var r=Ro;try{for(iS(t),Bn=pi(Vi);Bn!==null&&(!(Bn.expirationTime>t)||e&&!s_());){var o=Bn.callback;if(typeof o=="function"){Bn.callback=null,Ro=Bn.priorityLevel;var n=o(Bn.expirationTime<=t);t=Zt.unstable_now(),typeof n=="function"?Bn.callback=n:Bn===pi(Vi)&&Wp(Vi),iS(t)}else Wp(Vi);Bn=pi(Vi)}if(Bn!==null)var i=!0;else{var a=pi(ss);a!==null&&cS(aS,a.startTime-t),i=!1}return i}finally{Bn=null,Ro=r,Vp=!1}}var Hp=!1,jp=null,Uf=-1,i_=5,a_=-1;function s_(){return!(Zt.unstable_now()-a_<i_)}function rS(){if(jp!==null){var e=Zt.unstable_now();a_=e;var t=!0;try{t=jp(!0,e)}finally{t?Vf():(Hp=!1,jp=null)}}else Hp=!1}var Vf;typeof t_=="function"?Vf=function(){t_(rS)}:typeof MessageChannel<"u"?(oS=new MessageChannel,r_=oS.port2,oS.port1.onmessage=rS,Vf=function(){r_.postMessage(null)}):Vf=function(){o_(rS,0)};var oS,r_;function lS(e){jp=e,Hp||(Hp=!0,Vf())}function cS(e,t){Uf=o_(function(){e(Zt.unstable_now())},t)}Zt.unstable_IdlePriority=5;Zt.unstable_ImmediatePriority=1;Zt.unstable_LowPriority=4;Zt.unstable_NormalPriority=3;Zt.unstable_Profiling=null;Zt.unstable_UserBlockingPriority=2;Zt.unstable_cancelCallback=function(e){e.callback=null};Zt.unstable_continueExecution=function(){hl||Vp||(hl=!0,lS(sS))};Zt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):i_=0<e?Math.floor(1e3/e):5};Zt.unstable_getCurrentPriorityLevel=function(){return Ro};Zt.unstable_getFirstCallbackNode=function(){return pi(Vi)};Zt.unstable_next=function(e){switch(Ro){case 1:case 2:case 3:var t=3;break;default:t=Ro}var r=Ro;Ro=t;try{return e()}finally{Ro=r}};Zt.unstable_pauseExecution=function(){};Zt.unstable_requestPaint=function(){};Zt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Ro;Ro=e;try{return t()}finally{Ro=r}};Zt.unstable_scheduleCallback=function(e,t,r){var o=Zt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:o6++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,nS(ss,e),pi(Vi)===null&&e===pi(ss)&&(Hf?(n_(Uf),Uf=-1):Hf=!0,cS(aS,r-o))):(e.sortIndex=n,nS(Vi,e),hl||Vp||(hl=!0,lS(sS))),e};Zt.unstable_shouldYield=s_;Zt.unstable_wrapCallback=function(e){var t=Ro;return function(){var r=Ro;Ro=t;try{return e.apply(this,arguments)}finally{Ro=r}}}});var u_=kn((CJ,c_)=>{"use strict";c_.exports=l_()});var pN=kn(En=>{"use strict";var n6=I(),Cn=u_();function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vP=new Set,md={};function Tl(e,t){Yc(e,t),Yc(e+"Capture",t)}function Yc(e,t){for(md[e]=t,e=0;e<t.length;e++)vP.add(t[e])}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$S=Object.prototype.hasOwnProperty,i6=/^[: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]*$/,f_={},d_={};function a6(e){return $S.call(d_,e)?!0:$S.call(f_,e)?!1:i6.test(e)?d_[e]=!0:(f_[e]=!0,!1)}function s6(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function l6(e,t,r,o){if(t===null||typeof t>"u"||s6(e,t,r,o))return!0;if(o)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 Uo(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ho={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ho[e]=new Uo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ho[t]=new Uo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ho[e]=new Uo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ho[e]=new Uo(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){ho[e]=new Uo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ho[e]=new Uo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ho[e]=new Uo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ho[e]=new Uo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ho[e]=new Uo(e,5,!1,e.toLowerCase(),null,!1,!1)});var Eb=/[\-:]([a-z])/g;function Rb(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(Eb,Rb);ho[t]=new Uo(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(Eb,Rb);ho[t]=new Uo(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(Eb,Rb);ho[t]=new Uo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ho[e]=new Uo(e,1,!1,e.toLowerCase(),null,!1,!1)});ho.xlinkHref=new Uo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ho[e]=new Uo(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ob(e,t,r,o){var n=ho.hasOwnProperty(t)?ho[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(l6(t,r,n,o)&&(r=null),o||n===null?a6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Ia=n6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Up=Symbol.for("react.element"),$c=Symbol.for("react.portal"),Dc=Symbol.for("react.fragment"),_b=Symbol.for("react.strict_mode"),DS=Symbol.for("react.profiler"),yP=Symbol.for("react.provider"),xP=Symbol.for("react.context"),Pb=Symbol.for("react.forward_ref"),MS=Symbol.for("react.suspense"),AS=Symbol.for("react.suspense_list"),Tb=Symbol.for("react.memo"),cs=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var SP=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var m_=Symbol.iterator;function Gf(e){return e===null||typeof e!="object"?null:(e=m_&&e[m_]||e["@@iterator"],typeof e=="function"?e:null)}var Sr=Object.assign,uS;function ed(e){if(uS===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);uS=t&&t[1]||""}return`
|
|
`+uS+e}var fS=!1;function dS(e,t){if(!e||fS)return"";fS=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
`),i=o.stack.split(`
|
|
`),a=n.length-1,s=i.length-1;1<=a&&0<=s&&n[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(n[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||n[a]!==i[s]){var l=`
|
|
`+n[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{fS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ed(e):""}function c6(e){switch(e.tag){case 5:return ed(e.type);case 16:return ed("Lazy");case 13:return ed("Suspense");case 19:return ed("SuspenseList");case 0:case 2:case 15:return e=dS(e.type,!1),e;case 11:return e=dS(e.type.render,!1),e;case 1:return e=dS(e.type,!0),e;default:return""}}function LS(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 Dc:return"Fragment";case $c:return"Portal";case DS:return"Profiler";case _b:return"StrictMode";case MS:return"Suspense";case AS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xP:return(e.displayName||"Context")+".Consumer";case yP:return(e._context.displayName||"Context")+".Provider";case Pb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tb:return t=e.displayName||null,t!==null?t:LS(e.type)||"Memo";case cs:t=e._payload,e=e._init;try{return LS(e(t))}catch{}}return null}function u6(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 LS(t);case 8:return t===_b?"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 ws(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function f6(e){var t=bP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gp(e){e._valueTracker||(e._valueTracker=f6(e))}function CP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=bP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Sg(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 kS(e,t){var r=t.checked;return Sr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function p_(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=ws(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wP(e,t){t=t.checked,t!=null&&Ob(e,"checked",t,!1)}function FS(e,t){wP(e,t);var r=ws(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zS(e,t.type,r):t.hasOwnProperty("defaultValue")&&zS(e,t.type,ws(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 o=t.type;if(!(o!=="submit"&&o!=="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 zS(e,t,r){(t!=="number"||Sg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var td=Array.isArray;function Hc(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ws(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function BS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ge(91));return Sr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function h_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ge(92));if(td(r)){if(1<r.length)throw Error(ge(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ws(r)}}function EP(e,t){var r=ws(t.value),o=ws(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function v_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function RP(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?RP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qp,OP=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(qp=qp||document.createElement("div"),qp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d6=["Webkit","ms","Moz","O"];Object.keys(nd).forEach(function(e){d6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nd[t]=nd[e]})});function _P(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||nd.hasOwnProperty(e)&&nd[e]?(""+t).trim():t+"px"}function PP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=_P(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var m6=Sr({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 WS(e,t){if(t){if(m6[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 VS(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 HS=null;function Nb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var US=null,Uc=null,Gc=null;function y_(e){if(e=$d(e)){if(typeof US!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Kg(t),US(e.stateNode,e.type,t))}}function TP(e){Uc?Gc?Gc.push(e):Gc=[e]:Uc=e}function NP(){if(Uc){var e=Uc,t=Gc;if(Gc=Uc=null,y_(e),t)for(e=0;e<t.length;e++)y_(t[e])}}function IP(e,t){return e(t)}function $P(){}var mS=!1;function DP(e,t,r){if(mS)return e(t,r);mS=!0;try{return IP(e,t,r)}finally{mS=!1,(Uc!==null||Gc!==null)&&($P(),NP())}}function gd(e,t){var r=e.stateNode;if(r===null)return null;var o=Kg(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ge(231,t,typeof r));return r}var GS=!1;if(_a)try{Nc={},Object.defineProperty(Nc,"passive",{get:function(){GS=!0}}),window.addEventListener("test",Nc,Nc),window.removeEventListener("test",Nc,Nc)}catch{GS=!1}var Nc;function p6(e,t,r,o,n,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var id=!1,bg=null,Cg=!1,qS=null,g6={onError:function(e){id=!0,bg=e}};function h6(e,t,r,o,n,i,a,s,l){id=!1,bg=null,p6.apply(g6,arguments)}function v6(e,t,r,o,n,i,a,s,l){if(h6.apply(this,arguments),id){if(id){var c=bg;id=!1,bg=null}else throw Error(ge(198));Cg||(Cg=!0,qS=c)}}function Nl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function MP(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x_(e){if(Nl(e)!==e)throw Error(ge(188))}function y6(e){var t=e.alternate;if(!t){if(t=Nl(e),t===null)throw Error(ge(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return x_(n),e;if(i===o)return x_(n),t;i=i.sibling}throw Error(ge(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,s=n.child;s;){if(s===r){a=!0,r=n,o=i;break}if(s===o){a=!0,o=n,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,o=n;break}if(s===o){a=!0,o=i,r=n;break}s=s.sibling}if(!a)throw Error(ge(189))}}if(r.alternate!==o)throw Error(ge(190))}if(r.tag!==3)throw Error(ge(188));return r.stateNode.current===r?e:t}function AP(e){return e=y6(e),e!==null?LP(e):null}function LP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=LP(e);if(t!==null)return t;e=e.sibling}return null}var kP=Cn.unstable_scheduleCallback,S_=Cn.unstable_cancelCallback,x6=Cn.unstable_shouldYield,S6=Cn.unstable_requestPaint,Mr=Cn.unstable_now,b6=Cn.unstable_getCurrentPriorityLevel,Ib=Cn.unstable_ImmediatePriority,FP=Cn.unstable_UserBlockingPriority,wg=Cn.unstable_NormalPriority,C6=Cn.unstable_LowPriority,zP=Cn.unstable_IdlePriority,Hg=null,qi=null;function w6(e){if(qi&&typeof qi.onCommitFiberRoot=="function")try{qi.onCommitFiberRoot(Hg,e,void 0,(e.current.flags&128)===128)}catch{}}var xi=Math.clz32?Math.clz32:O6,E6=Math.log,R6=Math.LN2;function O6(e){return e>>>=0,e===0?32:31-(E6(e)/R6|0)|0}var Kp=64,Xp=4194304;function rd(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 Eg(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=rd(s):(i&=a,i!==0&&(o=rd(i)))}else a=r&~n,a!==0?o=rd(a):i!==0&&(o=rd(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&n)&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if(o&4&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-xi(t),n=1<<r,o|=e[r],t&=~n;return o}function _6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P6(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-xi(i),s=1<<a,l=n[a];l===-1?(!(s&r)||s&o)&&(n[a]=_6(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function KS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function BP(){var e=Kp;return Kp<<=1,!(Kp&4194240)&&(Kp=64),e}function pS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Nd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=r}function T6(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 o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-xi(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function $b(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-xi(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Wt=0;function jP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var WP,Db,VP,HP,UP,XS=!1,Yp=[],gs=null,hs=null,vs=null,hd=new Map,vd=new Map,fs=[],N6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function b_(e,t){switch(e){case"focusin":case"focusout":gs=null;break;case"dragenter":case"dragleave":hs=null;break;case"mouseover":case"mouseout":vs=null;break;case"pointerover":case"pointerout":hd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vd.delete(t.pointerId)}}function qf(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=$d(t),t!==null&&Db(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function I6(e,t,r,o,n){switch(t){case"focusin":return gs=qf(gs,e,t,r,o,n),!0;case"dragenter":return hs=qf(hs,e,t,r,o,n),!0;case"mouseover":return vs=qf(vs,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return hd.set(i,qf(hd.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,vd.set(i,qf(vd.get(i)||null,e,t,r,o,n)),!0}return!1}function GP(e){var t=xl(e.target);if(t!==null){var r=Nl(t);if(r!==null){if(t=r.tag,t===13){if(t=MP(r),t!==null){e.blockedOn=t,UP(e.priority,function(){VP(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ug(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=YS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);HS=o,r.target.dispatchEvent(o),HS=null}else return t=$d(r),t!==null&&Db(t),e.blockedOn=r,!1;t.shift()}return!0}function C_(e,t,r){ug(e)&&r.delete(t)}function $6(){XS=!1,gs!==null&&ug(gs)&&(gs=null),hs!==null&&ug(hs)&&(hs=null),vs!==null&&ug(vs)&&(vs=null),hd.forEach(C_),vd.forEach(C_)}function Kf(e,t){e.blockedOn===t&&(e.blockedOn=null,XS||(XS=!0,Cn.unstable_scheduleCallback(Cn.unstable_NormalPriority,$6)))}function yd(e){function t(n){return Kf(n,e)}if(0<Yp.length){Kf(Yp[0],e);for(var r=1;r<Yp.length;r++){var o=Yp[r];o.blockedOn===e&&(o.blockedOn=null)}}for(gs!==null&&Kf(gs,e),hs!==null&&Kf(hs,e),vs!==null&&Kf(vs,e),hd.forEach(t),vd.forEach(t),r=0;r<fs.length;r++)o=fs[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<fs.length&&(r=fs[0],r.blockedOn===null);)GP(r),r.blockedOn===null&&fs.shift()}var qc=Ia.ReactCurrentBatchConfig,Rg=!0;function D6(e,t,r,o){var n=Wt,i=qc.transition;qc.transition=null;try{Wt=1,Mb(e,t,r,o)}finally{Wt=n,qc.transition=i}}function M6(e,t,r,o){var n=Wt,i=qc.transition;qc.transition=null;try{Wt=4,Mb(e,t,r,o)}finally{Wt=n,qc.transition=i}}function Mb(e,t,r,o){if(Rg){var n=YS(e,t,r,o);if(n===null)bS(e,t,o,Og,r),b_(e,o);else if(I6(n,e,t,r,o))o.stopPropagation();else if(b_(e,o),t&4&&-1<N6.indexOf(e)){for(;n!==null;){var i=$d(n);if(i!==null&&WP(i),i=YS(e,t,r,o),i===null&&bS(e,t,o,Og,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else bS(e,t,o,null,r)}}var Og=null;function YS(e,t,r,o){if(Og=null,e=Nb(o),e=xl(e),e!==null)if(t=Nl(e),t===null)e=null;else if(r=t.tag,r===13){if(e=MP(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Og=e,null}function qP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(b6()){case Ib:return 1;case FP:return 4;case wg:case C6:return 16;case zP:return 536870912;default:return 16}default:return 16}}var ms=null,Ab=null,fg=null;function KP(){if(fg)return fg;var e,t=Ab,r=t.length,o,n="value"in ms?ms.value:ms.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return fg=n.slice(e,1<o?1-o:void 0)}function dg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qp(){return!0}function w_(){return!1}function wn(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qp:w_,this.isPropagationStopped=w_,this}return Sr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Qp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Qp)},persist:function(){},isPersistent:Qp}),t}var ou={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lb=wn(ou),Id=Sr({},ou,{view:0,detail:0}),A6=wn(Id),gS,hS,Xf,Ug=Sr({},Id,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xf&&(Xf&&e.type==="mousemove"?(gS=e.screenX-Xf.screenX,hS=e.screenY-Xf.screenY):hS=gS=0,Xf=e),gS)},movementY:function(e){return"movementY"in e?e.movementY:hS}}),E_=wn(Ug),L6=Sr({},Ug,{dataTransfer:0}),k6=wn(L6),F6=Sr({},Id,{relatedTarget:0}),vS=wn(F6),z6=Sr({},ou,{animationName:0,elapsedTime:0,pseudoElement:0}),B6=wn(z6),j6=Sr({},ou,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W6=wn(j6),V6=Sr({},ou,{data:0}),R_=wn(V6),H6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U6={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},G6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G6[e])?!!t[e]:!1}function kb(){return q6}var K6=Sr({},Id,{key:function(e){if(e.key){var t=H6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kb,charCode:function(e){return e.type==="keypress"?dg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X6=wn(K6),Y6=Sr({},Ug,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O_=wn(Y6),Q6=Sr({},Id,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kb}),Z6=wn(Q6),J6=Sr({},ou,{propertyName:0,elapsedTime:0,pseudoElement:0}),eB=wn(J6),tB=Sr({},Ug,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),rB=wn(tB),oB=[9,13,27,32],Fb=_a&&"CompositionEvent"in window,ad=null;_a&&"documentMode"in document&&(ad=document.documentMode);var nB=_a&&"TextEvent"in window&&!ad,XP=_a&&(!Fb||ad&&8<ad&&11>=ad),__=" ",P_=!1;function YP(e,t){switch(e){case"keyup":return oB.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 Mc=!1;function iB(e,t){switch(e){case"compositionend":return QP(t);case"keypress":return t.which!==32?null:(P_=!0,__);case"textInput":return e=t.data,e===__&&P_?null:e;default:return null}}function aB(e,t){if(Mc)return e==="compositionend"||!Fb&&YP(e,t)?(e=KP(),fg=Ab=ms=null,Mc=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return XP&&t.locale!=="ko"?null:t.data;default:return null}}var sB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function T_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sB[e.type]:t==="textarea"}function ZP(e,t,r,o){TP(o),t=_g(t,"onChange"),0<t.length&&(r=new Lb("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var sd=null,xd=null;function lB(e){cT(e,0)}function Gg(e){var t=kc(e);if(CP(t))return e}function cB(e,t){if(e==="change")return t}var JP=!1;_a&&(_a?(Jp="oninput"in document,Jp||(yS=document.createElement("div"),yS.setAttribute("oninput","return;"),Jp=typeof yS.oninput=="function"),Zp=Jp):Zp=!1,JP=Zp&&(!document.documentMode||9<document.documentMode));var Zp,Jp,yS;function N_(){sd&&(sd.detachEvent("onpropertychange",eT),xd=sd=null)}function eT(e){if(e.propertyName==="value"&&Gg(xd)){var t=[];ZP(t,xd,e,Nb(e)),DP(lB,t)}}function uB(e,t,r){e==="focusin"?(N_(),sd=t,xd=r,sd.attachEvent("onpropertychange",eT)):e==="focusout"&&N_()}function fB(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gg(xd)}function dB(e,t){if(e==="click")return Gg(t)}function mB(e,t){if(e==="input"||e==="change")return Gg(t)}function pB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bi=typeof Object.is=="function"?Object.is:pB;function Sd(e,t){if(bi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!$S.call(t,n)||!bi(e[n],t[n]))return!1}return!0}function I_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $_(e,t){var r=I_(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=I_(r)}}function tT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rT(){for(var e=window,t=Sg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sg(e.document)}return t}function zb(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 gB(e){var t=rT(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&tT(r.ownerDocument.documentElement,r)){if(o!==null&&zb(r)){if(t=o.start,e=o.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 n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=$_(r,i);var a=$_(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(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<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hB=_a&&"documentMode"in document&&11>=document.documentMode,Ac=null,QS=null,ld=null,ZS=!1;function D_(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ZS||Ac==null||Ac!==Sg(o)||(o=Ac,"selectionStart"in o&&zb(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ld&&Sd(ld,o)||(ld=o,o=_g(QS,"onSelect"),0<o.length&&(t=new Lb("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Ac)))}function eg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Lc={animationend:eg("Animation","AnimationEnd"),animationiteration:eg("Animation","AnimationIteration"),animationstart:eg("Animation","AnimationStart"),transitionend:eg("Transition","TransitionEnd")},xS={},oT={};_a&&(oT=document.createElement("div").style,"AnimationEvent"in window||(delete Lc.animationend.animation,delete Lc.animationiteration.animation,delete Lc.animationstart.animation),"TransitionEvent"in window||delete Lc.transitionend.transition);function qg(e){if(xS[e])return xS[e];if(!Lc[e])return e;var t=Lc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in oT)return xS[e]=t[r];return e}var nT=qg("animationend"),iT=qg("animationiteration"),aT=qg("animationstart"),sT=qg("transitionend"),lT=new Map,M_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rs(e,t){lT.set(e,t),Tl(t,[e])}for(tg=0;tg<M_.length;tg++)rg=M_[tg],A_=rg.toLowerCase(),L_=rg[0].toUpperCase()+rg.slice(1),Rs(A_,"on"+L_);var rg,A_,L_,tg;Rs(nT,"onAnimationEnd");Rs(iT,"onAnimationIteration");Rs(aT,"onAnimationStart");Rs("dblclick","onDoubleClick");Rs("focusin","onFocus");Rs("focusout","onBlur");Rs(sT,"onTransitionEnd");Yc("onMouseEnter",["mouseout","mouseover"]);Yc("onMouseLeave",["mouseout","mouseover"]);Yc("onPointerEnter",["pointerout","pointerover"]);Yc("onPointerLeave",["pointerout","pointerover"]);Tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var od="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vB=new Set("cancel close invalid load scroll toggle".split(" ").concat(od));function k_(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,v6(o,t,void 0,e),e.currentTarget=null}function cT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var s=o[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;k_(n,s,c),i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;k_(n,s,c),i=l}}}if(Cg)throw e=qS,Cg=!1,qS=null,e}function rr(e,t){var r=t[ob];r===void 0&&(r=t[ob]=new Set);var o=e+"__bubble";r.has(o)||(uT(t,e,2,!1),r.add(o))}function SS(e,t,r){var o=0;t&&(o|=4),uT(r,e,o,t)}var og="_reactListening"+Math.random().toString(36).slice(2);function bd(e){if(!e[og]){e[og]=!0,vP.forEach(function(r){r!=="selectionchange"&&(vB.has(r)||SS(r,!1,e),SS(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[og]||(t[og]=!0,SS("selectionchange",!1,t))}}function uT(e,t,r,o){switch(qP(t)){case 1:var n=D6;break;case 4:n=M6;break;default:n=Mb}r=n.bind(null,t,r,e),n=void 0,!GS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function bS(e,t,r,o,n){var i=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var s=o.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;s!==null;){if(a=xl(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}DP(function(){var c=i,u=Nb(r),f=[];e:{var d=lT.get(e);if(d!==void 0){var p=Lb,h=e;switch(e){case"keypress":if(dg(r)===0)break e;case"keydown":case"keyup":p=X6;break;case"focusin":h="focus",p=vS;break;case"focusout":h="blur",p=vS;break;case"beforeblur":case"afterblur":p=vS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=E_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=k6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Z6;break;case nT:case iT:case aT:p=B6;break;case sT:p=eB;break;case"scroll":p=A6;break;case"wheel":p=rB;break;case"copy":case"cut":case"paste":p=W6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=O_}var v=(t&4)!==0,y=!v&&e==="scroll",g=v?d!==null?d+"Capture":null:d;v=[];for(var m=c,x;m!==null;){x=m;var b=x.stateNode;if(x.tag===5&&b!==null&&(x=b,g!==null&&(b=gd(m,g),b!=null&&v.push(Cd(m,b,x)))),y)break;m=m.return}0<v.length&&(d=new p(d,h,null,r,u),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&r!==HS&&(h=r.relatedTarget||r.fromElement)&&(xl(h)||h[Pa]))break e;if((p||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=r.relatedTarget||r.toElement,p=c,h=h?xl(h):null,h!==null&&(y=Nl(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=c),p!==h)){if(v=E_,b="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=O_,b="onPointerLeave",g="onPointerEnter",m="pointer"),y=p==null?d:kc(p),x=h==null?d:kc(h),d=new v(b,m+"leave",p,r,u),d.target=y,d.relatedTarget=x,b=null,xl(u)===c&&(v=new v(g,m+"enter",h,r,u),v.target=x,v.relatedTarget=y,b=v),y=b,p&&h)t:{for(v=p,g=h,m=0,x=v;x;x=Ic(x))m++;for(x=0,b=g;b;b=Ic(b))x++;for(;0<m-x;)v=Ic(v),m--;for(;0<x-m;)g=Ic(g),x--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=Ic(v),g=Ic(g)}v=null}else v=null;p!==null&&F_(f,d,p,v,!1),h!==null&&y!==null&&F_(f,y,h,v,!0)}}e:{if(d=c?kc(c):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var S=cB;else if(T_(d))if(JP)S=mB;else{S=fB;var w=uB}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=dB);if(S&&(S=S(e,c))){ZP(f,S,r,u);break e}w&&w(e,d,c),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&zS(d,"number",d.value)}switch(w=c?kc(c):window,e){case"focusin":(T_(w)||w.contentEditable==="true")&&(Ac=w,QS=c,ld=null);break;case"focusout":ld=QS=Ac=null;break;case"mousedown":ZS=!0;break;case"contextmenu":case"mouseup":case"dragend":ZS=!1,D_(f,r,u);break;case"selectionchange":if(hB)break;case"keydown":case"keyup":D_(f,r,u)}var C;if(Fb)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Mc?YP(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(XP&&r.locale!=="ko"&&(Mc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Mc&&(C=KP()):(ms=u,Ab="value"in ms?ms.value:ms.textContent,Mc=!0)),w=_g(c,R),0<w.length&&(R=new R_(R,e,null,r,u),f.push({event:R,listeners:w}),C?R.data=C:(C=QP(r),C!==null&&(R.data=C)))),(C=nB?iB(e,r):aB(e,r))&&(c=_g(c,"onBeforeInput"),0<c.length&&(u=new R_("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=C))}cT(f,t)})}function Cd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function _g(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=gd(e,r),i!=null&&o.unshift(Cd(e,i,n)),i=gd(e,t),i!=null&&o.push(Cd(e,i,n))),e=e.return}return o}function Ic(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function F_(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===o)break;s.tag===5&&c!==null&&(s=c,n?(l=gd(r,i),l!=null&&a.unshift(Cd(r,l,s))):n||(l=gd(r,i),l!=null&&a.push(Cd(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var yB=/\r\n?/g,xB=/\u0000|\uFFFD/g;function z_(e){return(typeof e=="string"?e:""+e).replace(yB,`
|
|
`).replace(xB,"")}function ng(e,t,r){if(t=z_(t),z_(e)!==t&&r)throw Error(ge(425))}function Pg(){}var JS=null,eb=null;function tb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rb=typeof setTimeout=="function"?setTimeout:void 0,SB=typeof clearTimeout=="function"?clearTimeout:void 0,B_=typeof Promise=="function"?Promise:void 0,bB=typeof queueMicrotask=="function"?queueMicrotask:typeof B_<"u"?function(e){return B_.resolve(null).then(e).catch(CB)}:rb;function CB(e){setTimeout(function(){throw e})}function CS(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),yd(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);yd(t)}function ys(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function j_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var nu=Math.random().toString(36).slice(2),Gi="__reactFiber$"+nu,wd="__reactProps$"+nu,Pa="__reactContainer$"+nu,ob="__reactEvents$"+nu,wB="__reactListeners$"+nu,EB="__reactHandles$"+nu;function xl(e){var t=e[Gi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Pa]||r[Gi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=j_(e);e!==null;){if(r=e[Gi])return r;e=j_(e)}return t}e=r,r=e.parentNode}return null}function $d(e){return e=e[Gi]||e[Pa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ge(33))}function Kg(e){return e[wd]||null}var nb=[],Fc=-1;function Os(e){return{current:e}}function or(e){0>Fc||(e.current=nb[Fc],nb[Fc]=null,Fc--)}function Jt(e,t){Fc++,nb[Fc]=e.current,e.current=t}var Es={},To=Os(Es),rn=Os(!1),El=Es;function Qc(e,t){var r=e.type.contextTypes;if(!r)return Es;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function on(e){return e=e.childContextTypes,e!=null}function Tg(){or(rn),or(To)}function W_(e,t,r){if(To.current!==Es)throw Error(ge(168));Jt(To,t),Jt(rn,r)}function fT(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(ge(108,u6(e)||"Unknown",n));return Sr({},r,o)}function Ng(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Es,El=To.current,Jt(To,e),Jt(rn,rn.current),!0}function V_(e,t,r){var o=e.stateNode;if(!o)throw Error(ge(169));r?(e=fT(e,t,El),o.__reactInternalMemoizedMergedChildContext=e,or(rn),or(To),Jt(To,e)):or(rn),Jt(rn,r)}var wa=null,Xg=!1,wS=!1;function dT(e){wa===null?wa=[e]:wa.push(e)}function RB(e){Xg=!0,dT(e)}function _s(){if(!wS&&wa!==null){wS=!0;var e=0,t=Wt;try{var r=wa;for(Wt=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}wa=null,Xg=!1}catch(n){throw wa!==null&&(wa=wa.slice(e+1)),kP(Ib,_s),n}finally{Wt=t,wS=!1}}return null}var zc=[],Bc=0,Ig=null,$g=0,jn=[],Wn=0,Rl=null,Ea=1,Ra="";function vl(e,t){zc[Bc++]=$g,zc[Bc++]=Ig,Ig=e,$g=t}function mT(e,t,r){jn[Wn++]=Ea,jn[Wn++]=Ra,jn[Wn++]=Rl,Rl=e;var o=Ea;e=Ra;var n=32-xi(o)-1;o&=~(1<<n),r+=1;var i=32-xi(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Ea=1<<32-xi(t)+n|r<<n|o,Ra=i+e}else Ea=1<<i|r<<n|o,Ra=e}function Bb(e){e.return!==null&&(vl(e,1),mT(e,1,0))}function jb(e){for(;e===Ig;)Ig=zc[--Bc],zc[Bc]=null,$g=zc[--Bc],zc[Bc]=null;for(;e===Rl;)Rl=jn[--Wn],jn[Wn]=null,Ra=jn[--Wn],jn[Wn]=null,Ea=jn[--Wn],jn[Wn]=null}var bn=null,Sn=null,pr=!1,yi=null;function pT(e,t){var r=Vn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function H_(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bn=e,Sn=ys(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Rl!==null?{id:Ea,overflow:Ra}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Vn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,bn=e,Sn=null,!0):!1;default:return!1}}function ib(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ab(e){if(pr){var t=Sn;if(t){var r=t;if(!H_(e,t)){if(ib(e))throw Error(ge(418));t=ys(r.nextSibling);var o=bn;t&&H_(e,t)?pT(o,r):(e.flags=e.flags&-4097|2,pr=!1,bn=e)}}else{if(ib(e))throw Error(ge(418));e.flags=e.flags&-4097|2,pr=!1,bn=e}}}function U_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bn=e}function ig(e){if(e!==bn)return!1;if(!pr)return U_(e),pr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tb(e.type,e.memoizedProps)),t&&(t=Sn)){if(ib(e))throw gT(),Error(ge(418));for(;t;)pT(e,t),t=ys(t.nextSibling)}if(U_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ge(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=ys(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=bn?ys(e.stateNode.nextSibling):null;return!0}function gT(){for(var e=Sn;e;)e=ys(e.nextSibling)}function Zc(){Sn=bn=null,pr=!1}function Wb(e){yi===null?yi=[e]:yi.push(e)}var OB=Ia.ReactCurrentBatchConfig;function Yf(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ge(309));var o=r.stateNode}if(!o)throw Error(ge(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=n.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(ge(284));if(!r._owner)throw Error(ge(290,e))}return e}function ag(e,t){throw e=Object.prototype.toString.call(t),Error(ge(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function G_(e){var t=e._init;return t(e._payload)}function hT(e){function t(g,m){if(e){var x=g.deletions;x===null?(g.deletions=[m],g.flags|=16):x.push(m)}}function r(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function o(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function n(g,m){return g=Cs(g,m),g.index=0,g.sibling=null,g}function i(g,m,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<m?(g.flags|=2,m):x):(g.flags|=2,m)):(g.flags|=1048576,m)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,m,x,b){return m===null||m.tag!==6?(m=NS(x,g.mode,b),m.return=g,m):(m=n(m,x),m.return=g,m)}function l(g,m,x,b){var S=x.type;return S===Dc?u(g,m,x.props.children,b,x.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===cs&&G_(S)===m.type)?(b=n(m,x.props),b.ref=Yf(g,m,x),b.return=g,b):(b=xg(x.type,x.key,x.props,null,g.mode,b),b.ref=Yf(g,m,x),b.return=g,b)}function c(g,m,x,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=IS(x,g.mode,b),m.return=g,m):(m=n(m,x.children||[]),m.return=g,m)}function u(g,m,x,b,S){return m===null||m.tag!==7?(m=wl(x,g.mode,b,S),m.return=g,m):(m=n(m,x),m.return=g,m)}function f(g,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=NS(""+m,g.mode,x),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Up:return x=xg(m.type,m.key,m.props,null,g.mode,x),x.ref=Yf(g,null,m),x.return=g,x;case $c:return m=IS(m,g.mode,x),m.return=g,m;case cs:var b=m._init;return f(g,b(m._payload),x)}if(td(m)||Gf(m))return m=wl(m,g.mode,x,null),m.return=g,m;ag(g,m)}return null}function d(g,m,x,b){var S=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:s(g,m,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Up:return x.key===S?l(g,m,x,b):null;case $c:return x.key===S?c(g,m,x,b):null;case cs:return S=x._init,d(g,m,S(x._payload),b)}if(td(x)||Gf(x))return S!==null?null:u(g,m,x,b,null);ag(g,x)}return null}function p(g,m,x,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(x)||null,s(m,g,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Up:return g=g.get(b.key===null?x:b.key)||null,l(m,g,b,S);case $c:return g=g.get(b.key===null?x:b.key)||null,c(m,g,b,S);case cs:var w=b._init;return p(g,m,x,w(b._payload),S)}if(td(b)||Gf(b))return g=g.get(x)||null,u(m,g,b,S,null);ag(m,b)}return null}function h(g,m,x,b){for(var S=null,w=null,C=m,R=m=0,_=null;C!==null&&R<x.length;R++){C.index>R?(_=C,C=null):_=C.sibling;var O=d(g,C,x[R],b);if(O===null){C===null&&(C=_);break}e&&C&&O.alternate===null&&t(g,C),m=i(O,m,R),w===null?S=O:w.sibling=O,w=O,C=_}if(R===x.length)return r(g,C),pr&&vl(g,R),S;if(C===null){for(;R<x.length;R++)C=f(g,x[R],b),C!==null&&(m=i(C,m,R),w===null?S=C:w.sibling=C,w=C);return pr&&vl(g,R),S}for(C=o(g,C);R<x.length;R++)_=p(C,g,R,x[R],b),_!==null&&(e&&_.alternate!==null&&C.delete(_.key===null?R:_.key),m=i(_,m,R),w===null?S=_:w.sibling=_,w=_);return e&&C.forEach(function(N){return t(g,N)}),pr&&vl(g,R),S}function v(g,m,x,b){var S=Gf(x);if(typeof S!="function")throw Error(ge(150));if(x=S.call(x),x==null)throw Error(ge(151));for(var w=S=null,C=m,R=m=0,_=null,O=x.next();C!==null&&!O.done;R++,O=x.next()){C.index>R?(_=C,C=null):_=C.sibling;var N=d(g,C,O.value,b);if(N===null){C===null&&(C=_);break}e&&C&&N.alternate===null&&t(g,C),m=i(N,m,R),w===null?S=N:w.sibling=N,w=N,C=_}if(O.done)return r(g,C),pr&&vl(g,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,b),O!==null&&(m=i(O,m,R),w===null?S=O:w.sibling=O,w=O);return pr&&vl(g,R),S}for(C=o(g,C);!O.done;R++,O=x.next())O=p(C,g,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),m=i(O,m,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(k){return t(g,k)}),pr&&vl(g,R),S}function y(g,m,x,b){if(typeof x=="object"&&x!==null&&x.type===Dc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Up:e:{for(var S=x.key,w=m;w!==null;){if(w.key===S){if(S=x.type,S===Dc){if(w.tag===7){r(g,w.sibling),m=n(w,x.props.children),m.return=g,g=m;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===cs&&G_(S)===w.type){r(g,w.sibling),m=n(w,x.props),m.ref=Yf(g,w,x),m.return=g,g=m;break e}r(g,w);break}else t(g,w);w=w.sibling}x.type===Dc?(m=wl(x.props.children,g.mode,b,x.key),m.return=g,g=m):(b=xg(x.type,x.key,x.props,null,g.mode,b),b.ref=Yf(g,m,x),b.return=g,g=b)}return a(g);case $c:e:{for(w=x.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){r(g,m.sibling),m=n(m,x.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else t(g,m);m=m.sibling}m=IS(x,g.mode,b),m.return=g,g=m}return a(g);case cs:return w=x._init,y(g,m,w(x._payload),b)}if(td(x))return h(g,m,x,b);if(Gf(x))return v(g,m,x,b);ag(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(r(g,m.sibling),m=n(m,x),m.return=g,g=m):(r(g,m),m=NS(x,g.mode,b),m.return=g,g=m),a(g)):r(g,m)}return y}var Jc=hT(!0),vT=hT(!1),Dg=Os(null),Mg=null,jc=null,Vb=null;function Hb(){Vb=jc=Mg=null}function Ub(e){var t=Dg.current;or(Dg),e._currentValue=t}function sb(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Kc(e,t){Mg=e,Vb=jc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tn=!0),e.firstContext=null)}function Un(e){var t=e._currentValue;if(Vb!==e)if(e={context:e,memoizedValue:t,next:null},jc===null){if(Mg===null)throw Error(ge(308));jc=e,Mg.dependencies={lanes:0,firstContext:e}}else jc=jc.next=e;return t}var Sl=null;function Gb(e){Sl===null?Sl=[e]:Sl.push(e)}function yT(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Gb(t)):(r.next=n.next,n.next=r),t.interleaved=r,Ta(e,o)}function Ta(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 us=!1;function qb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xT(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xs(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Dt&2){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Ta(e,r)}return n=o.interleaved,n===null?(t.next=t,Gb(o)):(t.next=n.next,n.next=t),o.interleaved=t,Ta(e,r)}function mg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,$b(e,r)}}function q_(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=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?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ag(e,t,r,o){var n=e.updateQueue;us=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.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 f=n.baseState;a=0,u=c=l=null,s=i;do{var d=s.lane,p=s.eventTime;if((o&d)===d){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,p=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(p,f,d):h,d==null)break e;f=Sr({},f,d);break e;case 2:us=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=n.effects,d===null?n.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=f):u=u.next=p,a|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;d=s,s=d.next,d.next=null,n.lastBaseUpdate=d,n.shared.pending=null}}while(!0);if(u===null&&(l=f),n.baseState=l,n.firstBaseUpdate=c,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);_l|=a,e.lanes=a,e.memoizedState=f}}function K_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(ge(191,n));n.call(o)}}}var Dd={},Ki=Os(Dd),Ed=Os(Dd),Rd=Os(Dd);function bl(e){if(e===Dd)throw Error(ge(174));return e}function Kb(e,t){switch(Jt(Rd,t),Jt(Ed,e),Jt(Ki,Dd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jS(t,e)}or(Ki),Jt(Ki,t)}function eu(){or(Ki),or(Ed),or(Rd)}function ST(e){bl(Rd.current);var t=bl(Ki.current),r=jS(t,e.type);t!==r&&(Jt(Ed,e),Jt(Ki,r))}function Xb(e){Ed.current===e&&(or(Ki),or(Ed))}var yr=Os(0);function Lg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ES=[];function Yb(){for(var e=0;e<ES.length;e++)ES[e]._workInProgressVersionPrimary=null;ES.length=0}var pg=Ia.ReactCurrentDispatcher,RS=Ia.ReactCurrentBatchConfig,Ol=0,xr=null,Xr=null,oo=null,kg=!1,cd=!1,Od=0,_B=0;function Oo(){throw Error(ge(321))}function Qb(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!bi(e[r],t[r]))return!1;return!0}function Zb(e,t,r,o,n,i){if(Ol=i,xr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pg.current=e===null||e.memoizedState===null?IB:$B,e=r(o,n),cd){i=0;do{if(cd=!1,Od=0,25<=i)throw Error(ge(301));i+=1,oo=Xr=null,t.updateQueue=null,pg.current=DB,e=r(o,n)}while(cd)}if(pg.current=Fg,t=Xr!==null&&Xr.next!==null,Ol=0,oo=Xr=xr=null,kg=!1,t)throw Error(ge(300));return e}function Jb(){var e=Od!==0;return Od=0,e}function Ui(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?xr.memoizedState=oo=e:oo=oo.next=e,oo}function Gn(){if(Xr===null){var e=xr.alternate;e=e!==null?e.memoizedState:null}else e=Xr.next;var t=oo===null?xr.memoizedState:oo.next;if(t!==null)oo=t,Xr=e;else{if(e===null)throw Error(ge(310));Xr=e,e={memoizedState:Xr.memoizedState,baseState:Xr.baseState,baseQueue:Xr.baseQueue,queue:Xr.queue,next:null},oo===null?xr.memoizedState=oo=e:oo=oo.next=e}return oo}function _d(e,t){return typeof t=="function"?t(e):t}function OS(e){var t=Gn(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var o=Xr,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((Ol&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=f,a=o):l=l.next=f,xr.lanes|=u,_l|=u}c=c.next}while(c!==null&&c!==i);l===null?a=o:l.next=s,bi(o,t.memoizedState)||(tn=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,xr.lanes|=i,_l|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function _S(e){var t=Gn(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);bi(i,t.memoizedState)||(tn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function bT(){}function CT(e,t){var r=xr,o=Gn(),n=t(),i=!bi(o.memoizedState,n);if(i&&(o.memoizedState=n,tn=!0),o=o.queue,eC(RT.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,Pd(9,ET.bind(null,r,o,n,t),void 0,null),no===null)throw Error(ge(349));Ol&30||wT(r,t,n)}return n}function wT(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=xr.updateQueue,t===null?(t={lastEffect:null,stores:null},xr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ET(e,t,r,o){t.value=r,t.getSnapshot=o,OT(t)&&_T(e)}function RT(e,t,r){return r(function(){OT(t)&&_T(e)})}function OT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bi(e,r)}catch{return!0}}function _T(e){var t=Ta(e,1);t!==null&&Si(t,e,1,-1)}function X_(e){var t=Ui();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:e},t.queue=e,e=e.dispatch=NB.bind(null,xr,e),[t.memoizedState,e]}function Pd(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=xr.updateQueue,t===null?(t={lastEffect:null,stores:null},xr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function PT(){return Gn().memoizedState}function gg(e,t,r,o){var n=Ui();xr.flags|=e,n.memoizedState=Pd(1|t,r,void 0,o===void 0?null:o)}function Yg(e,t,r,o){var n=Gn();o=o===void 0?null:o;var i=void 0;if(Xr!==null){var a=Xr.memoizedState;if(i=a.destroy,o!==null&&Qb(o,a.deps)){n.memoizedState=Pd(t,r,i,o);return}}xr.flags|=e,n.memoizedState=Pd(1|t,r,i,o)}function Y_(e,t){return gg(8390656,8,e,t)}function eC(e,t){return Yg(2048,8,e,t)}function TT(e,t){return Yg(4,2,e,t)}function NT(e,t){return Yg(4,4,e,t)}function IT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $T(e,t,r){return r=r!=null?r.concat([e]):null,Yg(4,4,IT.bind(null,t,e),r)}function tC(){}function DT(e,t){var r=Gn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Qb(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function MT(e,t){var r=Gn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Qb(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function AT(e,t,r){return Ol&21?(bi(r,t)||(r=BP(),xr.lanes|=r,_l|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=r)}function PB(e,t){var r=Wt;Wt=r!==0&&4>r?r:4,e(!0);var o=RS.transition;RS.transition={};try{e(!1),t()}finally{Wt=r,RS.transition=o}}function LT(){return Gn().memoizedState}function TB(e,t,r){var o=bs(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},kT(e))FT(t,r);else if(r=yT(e,t,r,o),r!==null){var n=Ho();Si(r,e,o,n),zT(r,t,o)}}function NB(e,t,r){var o=bs(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(kT(e))FT(t,n);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(n.hasEagerState=!0,n.eagerState=s,bi(s,a)){var l=t.interleaved;l===null?(n.next=n,Gb(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=yT(e,t,n,o),r!==null&&(n=Ho(),Si(r,e,o,n),zT(r,t,o))}}function kT(e){var t=e.alternate;return e===xr||t!==null&&t===xr}function FT(e,t){cd=kg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function zT(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,$b(e,r)}}var Fg={readContext:Un,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},IB={readContext:Un,useCallback:function(e,t){return Ui().memoizedState=[e,t===void 0?null:t],e},useContext:Un,useEffect:Y_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,gg(4194308,4,IT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return gg(4194308,4,e,t)},useInsertionEffect:function(e,t){return gg(4,2,e,t)},useMemo:function(e,t){var r=Ui();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Ui();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=TB.bind(null,xr,e),[o.memoizedState,e]},useRef:function(e){var t=Ui();return e={current:e},t.memoizedState=e},useState:X_,useDebugValue:tC,useDeferredValue:function(e){return Ui().memoizedState=e},useTransition:function(){var e=X_(!1),t=e[0];return e=PB.bind(null,e[1]),Ui().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=xr,n=Ui();if(pr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),no===null)throw Error(ge(349));Ol&30||wT(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,Y_(RT.bind(null,o,i,e),[e]),o.flags|=2048,Pd(9,ET.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Ui(),t=no.identifierPrefix;if(pr){var r=Ra,o=Ea;r=(o&~(1<<32-xi(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Od++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=_B++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$B={readContext:Un,useCallback:DT,useContext:Un,useEffect:eC,useImperativeHandle:$T,useInsertionEffect:TT,useLayoutEffect:NT,useMemo:MT,useReducer:OS,useRef:PT,useState:function(){return OS(_d)},useDebugValue:tC,useDeferredValue:function(e){var t=Gn();return AT(t,Xr.memoizedState,e)},useTransition:function(){var e=OS(_d)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:bT,useSyncExternalStore:CT,useId:LT,unstable_isNewReconciler:!1},DB={readContext:Un,useCallback:DT,useContext:Un,useEffect:eC,useImperativeHandle:$T,useInsertionEffect:TT,useLayoutEffect:NT,useMemo:MT,useReducer:_S,useRef:PT,useState:function(){return _S(_d)},useDebugValue:tC,useDeferredValue:function(e){var t=Gn();return Xr===null?t.memoizedState=e:AT(t,Xr.memoizedState,e)},useTransition:function(){var e=_S(_d)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:bT,useSyncExternalStore:CT,useId:LT,unstable_isNewReconciler:!1};function hi(e,t){if(e&&e.defaultProps){t=Sr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function lb(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Sr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Qg={isMounted:function(e){return(e=e._reactInternals)?Nl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Ho(),n=bs(e),i=Oa(o,n);i.payload=t,r!=null&&(i.callback=r),t=xs(e,i,n),t!==null&&(Si(t,e,n,o),mg(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Ho(),n=bs(e),i=Oa(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=xs(e,i,n),t!==null&&(Si(t,e,n,o),mg(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ho(),o=bs(e),n=Oa(r,o);n.tag=2,t!=null&&(n.callback=t),t=xs(e,n,o),t!==null&&(Si(t,e,o,r),mg(t,e,o))}};function Q_(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!Sd(r,o)||!Sd(n,i):!0}function BT(e,t,r){var o=!1,n=Es,i=t.contextType;return typeof i=="object"&&i!==null?i=Un(i):(n=on(t)?El:To.current,o=t.contextTypes,i=(o=o!=null)?Qc(e,n):Es),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qg,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Z_(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Qg.enqueueReplaceState(t,t.state,null)}function cb(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},qb(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Un(i):(i=on(t)?El:To.current,n.context=Qc(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(lb(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Qg.enqueueReplaceState(n,n.state,null),Ag(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function tu(e,t){try{var r="",o=t;do r+=c6(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function PS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ub(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var MB=typeof WeakMap=="function"?WeakMap:Map;function jT(e,t,r){r=Oa(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Bg||(Bg=!0,Sb=o),ub(e,t)},r}function WT(e,t,r){r=Oa(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){ub(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ub(e,t),typeof o!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function J_(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new MB;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=KB.bind(null,e,t,r),t.then(e,e))}function eP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function tP(e,t,r,o,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Oa(-1,1),t.tag=2,xs(r,t,1))),r.lanes|=1),e)}var AB=Ia.ReactCurrentOwner,tn=!1;function Vo(e,t,r,o){t.child=e===null?vT(t,null,r,o):Jc(t,e.child,r,o)}function rP(e,t,r,o,n){r=r.render;var i=t.ref;return Kc(t,n),o=Zb(e,t,r,o,i,n),r=Jb(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Na(e,t,n)):(pr&&r&&Bb(t),t.flags|=1,Vo(e,t,o,n),t.child)}function oP(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!cC(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,VT(e,t,i,o,n)):(e=xg(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&n)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Sd,r(a,o)&&e.ref===t.ref)return Na(e,t,n)}return t.flags|=1,e=Cs(i,o),e.ref=t.ref,e.return=t,t.child=e}function VT(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(Sd(i,o)&&e.ref===t.ref)if(tn=!1,t.pendingProps=o=i,(e.lanes&n)!==0)e.flags&131072&&(tn=!0);else return t.lanes=e.lanes,Na(e,t,n)}return fb(e,t,r,o,n)}function HT(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Jt(Vc,xn),xn|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Jt(Vc,xn),xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Jt(Vc,xn),xn|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Jt(Vc,xn),xn|=o;return Vo(e,t,n,r),t.child}function UT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function fb(e,t,r,o,n){var i=on(r)?El:To.current;return i=Qc(t,i),Kc(t,n),r=Zb(e,t,r,o,i,n),o=Jb(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Na(e,t,n)):(pr&&o&&Bb(t),t.flags|=1,Vo(e,t,r,n),t.child)}function nP(e,t,r,o,n){if(on(r)){var i=!0;Ng(t)}else i=!1;if(Kc(t,n),t.stateNode===null)hg(e,t),BT(t,r,o),cb(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Un(c):(c=on(r)?El:To.current,c=Qc(t,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||l!==c)&&Z_(t,a,o,c),us=!1;var d=t.memoizedState;a.state=d,Ag(t,o,a,n),l=t.memoizedState,s!==o||d!==l||rn.current||us?(typeof u=="function"&&(lb(t,r,u,o),l=t.memoizedState),(s=us||Q_(t,r,s,o,d,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=c,o=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,xT(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:hi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Un(l):(l=on(r)?El:To.current,l=Qc(t,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Z_(t,a,o,l),us=!1,d=t.memoizedState,a.state=d,Ag(t,o,a,n);var h=t.memoizedState;s!==f||d!==h||rn.current||us?(typeof p=="function"&&(lb(t,r,p,o),h=t.memoizedState),(c=us||Q_(t,r,c,o,d,h,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=h),a.props=o,a.state=h,a.context=l,o=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return db(e,t,r,o,i,n)}function db(e,t,r,o,n,i){UT(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&V_(t,r,!1),Na(e,t,i);o=t.stateNode,AB.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Jc(t,e.child,null,i),t.child=Jc(t,null,s,i)):Vo(e,t,s,i),t.memoizedState=o.state,n&&V_(t,r,!0),t.child}function GT(e){var t=e.stateNode;t.pendingContext?W_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&W_(e,t.context,!1),Kb(e,t.containerInfo)}function iP(e,t,r,o,n){return Zc(),Wb(n),t.flags|=256,Vo(e,t,r,o),t.child}var mb={dehydrated:null,treeContext:null,retryLane:0};function pb(e){return{baseLanes:e,cachePool:null,transitions:null}}function qT(e,t,r){var o=t.pendingProps,n=yr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Jt(yr,n&1),e===null)return ab(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=eh(a,o,0,null),e=wl(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=pb(r),t.memoizedState=mb,e):rC(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return LB(e,t,a,o,s,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:o.children};return!(a&1)&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=Cs(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=Cs(s,i):(i=wl(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?pb(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=mb,o}return i=e.child,e=i.sibling,o=Cs(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function rC(e,t){return t=eh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sg(e,t,r,o){return o!==null&&Wb(o),Jc(t,e.child,null,r),e=rC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LB(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=PS(Error(ge(422))),sg(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=eh({mode:"visible",children:o.children},n,0,null),i=wl(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Jc(t,e.child,null,a),t.child.memoizedState=pb(a),t.memoizedState=mb,i);if(!(t.mode&1))return sg(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(ge(419)),o=PS(i,o,void 0),sg(e,t,a,o)}if(s=(a&e.childLanes)!==0,tn||s){if(o=no,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(o.suspendedLanes|a)?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Ta(e,n),Si(o,e,n,-1))}return lC(),o=PS(Error(ge(421))),sg(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=XB.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Sn=ys(n.nextSibling),bn=t,pr=!0,yi=null,e!==null&&(jn[Wn++]=Ea,jn[Wn++]=Ra,jn[Wn++]=Rl,Ea=e.id,Ra=e.overflow,Rl=t),t=rC(t,o.children),t.flags|=4096,t)}function aP(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),sb(e.return,t,r)}function TS(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function KT(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Vo(e,t,o.children,r),o=yr.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aP(e,r,t);else if(e.tag===19)aP(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Jt(yr,o),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Lg(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),TS(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Lg(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}TS(t,!0,r,null,i);break;case"together":TS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Na(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ge(153));if(t.child!==null){for(e=t.child,r=Cs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Cs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function kB(e,t,r){switch(t.tag){case 3:GT(t),Zc();break;case 5:ST(t);break;case 1:on(t.type)&&Ng(t);break;case 4:Kb(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Jt(Dg,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Jt(yr,yr.current&1),t.flags|=128,null):r&t.child.childLanes?qT(e,t,r):(Jt(yr,yr.current&1),e=Na(e,t,r),e!==null?e.sibling:null);Jt(yr,yr.current&1);break;case 19:if(o=(r&t.childLanes)!==0,e.flags&128){if(o)return KT(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Jt(yr,yr.current),o)break;return null;case 22:case 23:return t.lanes=0,HT(e,t,r)}return Na(e,t,r)}var XT,gb,YT,QT;XT=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};gb=function(){};YT=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,bl(Ki.current);var i=null;switch(r){case"input":n=kS(e,n),o=kS(e,o),i=[];break;case"select":n=Sr({},n,{value:void 0}),o=Sr({},o,{value:void 0}),i=[];break;case"textarea":n=BS(e,n),o=BS(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Pg)}WS(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(md.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(s=n?.[c],o.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(md.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&rr("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};QT=function(e,t,r,o){r!==o&&(t.flags|=4)};function Qf(e,t){if(!pr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function _o(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function FB(e,t,r){var o=t.pendingProps;switch(jb(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _o(t),null;case 1:return on(t.type)&&Tg(),_o(t),null;case 3:return o=t.stateNode,eu(),or(rn),or(To),Yb(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(ig(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yi!==null&&(wb(yi),yi=null))),gb(e,t),_o(t),null;case 5:Xb(t);var n=bl(Rd.current);if(r=t.type,e!==null&&t.stateNode!=null)YT(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(ge(166));return _o(t),null}if(e=bl(Ki.current),ig(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Gi]=t,o[wd]=i,e=(t.mode&1)!==0,r){case"dialog":rr("cancel",o),rr("close",o);break;case"iframe":case"object":case"embed":rr("load",o);break;case"video":case"audio":for(n=0;n<od.length;n++)rr(od[n],o);break;case"source":rr("error",o);break;case"img":case"image":case"link":rr("error",o),rr("load",o);break;case"details":rr("toggle",o);break;case"input":p_(o,i),rr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},rr("invalid",o);break;case"textarea":h_(o,i),rr("invalid",o)}WS(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?o.textContent!==s&&(i.suppressHydrationWarning!==!0&&ng(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ng(o.textContent,s,e),n=["children",""+s]):md.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&rr("scroll",o)}switch(r){case"input":Gp(o),g_(o,i,!0);break;case"textarea":Gp(o),v_(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Pg)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=RP(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[Gi]=t,e[wd]=o,XT(e,t,!1,!1),t.stateNode=e;e:{switch(a=VS(r,o),r){case"dialog":rr("cancel",e),rr("close",e),n=o;break;case"iframe":case"object":case"embed":rr("load",e),n=o;break;case"video":case"audio":for(n=0;n<od.length;n++)rr(od[n],e);n=o;break;case"source":rr("error",e),n=o;break;case"img":case"image":case"link":rr("error",e),rr("load",e),n=o;break;case"details":rr("toggle",e),n=o;break;case"input":p_(e,o),n=kS(e,o),rr("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=Sr({},o,{value:void 0}),rr("invalid",e);break;case"textarea":h_(e,o),n=BS(e,o),rr("invalid",e);break;default:n=o}WS(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?PP(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&OP(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&pd(e,l):typeof l=="number"&&pd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(md.hasOwnProperty(i)?l!=null&&i==="onScroll"&&rr("scroll",e):l!=null&&Ob(e,i,l,a))}switch(r){case"input":Gp(e),g_(e,o,!1);break;case"textarea":Gp(e),v_(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ws(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Hc(e,!!o.multiple,i,!1):o.defaultValue!=null&&Hc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Pg)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _o(t),null;case 6:if(e&&t.stateNode!=null)QT(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(ge(166));if(r=bl(Rd.current),bl(Ki.current),ig(t)){if(o=t.stateNode,r=t.memoizedProps,o[Gi]=t,(i=o.nodeValue!==r)&&(e=bn,e!==null))switch(e.tag){case 3:ng(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ng(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Gi]=t,t.stateNode=o}return _o(t),null;case 13:if(or(yr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pr&&Sn!==null&&t.mode&1&&!(t.flags&128))gT(),Zc(),t.flags|=98560,i=!1;else if(i=ig(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(ge(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ge(317));i[Gi]=t}else Zc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_o(t),i=!1}else yi!==null&&(wb(yi),yi=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||yr.current&1?Yr===0&&(Yr=3):lC())),t.updateQueue!==null&&(t.flags|=4),_o(t),null);case 4:return eu(),gb(e,t),e===null&&bd(t.stateNode.containerInfo),_o(t),null;case 10:return Ub(t.type._context),_o(t),null;case 17:return on(t.type)&&Tg(),_o(t),null;case 19:if(or(yr),i=t.memoizedState,i===null)return _o(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Qf(i,!1);else{if(Yr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Lg(e),a!==null){for(t.flags|=128,Qf(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Jt(yr,yr.current&1|2),t.child}e=e.sibling}i.tail!==null&&Mr()>ru&&(t.flags|=128,o=!0,Qf(i,!1),t.lanes=4194304)}else{if(!o)if(e=Lg(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!pr)return _o(t),null}else 2*Mr()-i.renderingStartTime>ru&&r!==1073741824&&(t.flags|=128,o=!0,Qf(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=Mr(),t.sibling=null,r=yr.current,Jt(yr,o?r&1|2:r&1),t):(_o(t),null);case 22:case 23:return sC(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?xn&1073741824&&(_o(t),t.subtreeFlags&6&&(t.flags|=8192)):_o(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function zB(e,t){switch(jb(t),t.tag){case 1:return on(t.type)&&Tg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return eu(),or(rn),or(To),Yb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xb(t),null;case 13:if(or(yr),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(yr),null;case 4:return eu(),null;case 10:return Ub(t.type._context),null;case 22:case 23:return sC(),null;case 24:return null;default:return null}}var lg=!1,Po=!1,BB=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Wc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Or(e,t,o)}else r.current=null}function hb(e,t,r){try{r()}catch(o){Or(e,t,o)}}var sP=!1;function jB(e,t){if(JS=Rg,e=rT(),zb(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var p;f!==r||n!==0&&f.nodeType!==3||(s=a+n),f!==i||o!==0&&f.nodeType!==3||(l=a+o),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===r&&++c===n&&(s=a),d===i&&++u===o&&(l=a),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(eb={focusedElem:e,selectionRange:r},Rg=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var h=t.alternate;if(t.flags&1024)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,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:hi(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(b){Or(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=sP,sP=!1,h}function ud(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&hb(t,r,i)}n=n.next}while(n!==o)}}function Zg(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 o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function vb(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 ZT(e){var t=e.alternate;t!==null&&(e.alternate=null,ZT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gi],delete t[wd],delete t[ob],delete t[wB],delete t[EB])),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 JT(e){return e.tag===5||e.tag===3||e.tag===4}function lP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||JT(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 yb(e,t,r){var o=e.tag;if(o===5||o===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=Pg));else if(o!==4&&(e=e.child,e!==null))for(yb(e,t,r),e=e.sibling;e!==null;)yb(e,t,r),e=e.sibling}function xb(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(xb(e,t,r),e=e.sibling;e!==null;)xb(e,t,r),e=e.sibling}var po=null,vi=!1;function ls(e,t,r){for(r=r.child;r!==null;)eN(e,t,r),r=r.sibling}function eN(e,t,r){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(Hg,r)}catch{}switch(r.tag){case 5:Po||Wc(r,t);case 6:var o=po,n=vi;po=null,ls(e,t,r),po=o,vi=n,po!==null&&(vi?(e=po,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):po.removeChild(r.stateNode));break;case 18:po!==null&&(vi?(e=po,r=r.stateNode,e.nodeType===8?CS(e.parentNode,r):e.nodeType===1&&CS(e,r),yd(e)):CS(po,r.stateNode));break;case 4:o=po,n=vi,po=r.stateNode.containerInfo,vi=!0,ls(e,t,r),po=o,vi=n;break;case 0:case 11:case 14:case 15:if(!Po&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&hb(r,t,a),n=n.next}while(n!==o)}ls(e,t,r);break;case 1:if(!Po&&(Wc(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){Or(r,t,s)}ls(e,t,r);break;case 21:ls(e,t,r);break;case 22:r.mode&1?(Po=(o=Po)||r.memoizedState!==null,ls(e,t,r),Po=o):ls(e,t,r);break;default:ls(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 BB),t.forEach(function(o){var n=YB.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function gi(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:po=s.stateNode,vi=!1;break e;case 3:po=s.stateNode.containerInfo,vi=!0;break e;case 4:po=s.stateNode.containerInfo,vi=!0;break e}s=s.return}if(po===null)throw Error(ge(160));eN(i,a,n),po=null,vi=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){Or(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tN(t,e),t=t.sibling}function tN(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gi(t,e),Hi(e),o&4){try{ud(3,e,e.return),Zg(3,e)}catch(v){Or(e,e.return,v)}try{ud(5,e,e.return)}catch(v){Or(e,e.return,v)}}break;case 1:gi(t,e),Hi(e),o&512&&r!==null&&Wc(r,r.return);break;case 5:if(gi(t,e),Hi(e),o&512&&r!==null&&Wc(r,r.return),e.flags&32){var n=e.stateNode;try{pd(n,"")}catch(v){Or(e,e.return,v)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&wP(n,i),VS(s,a);var c=VS(s,i);for(a=0;a<l.length;a+=2){var u=l[a],f=l[a+1];u==="style"?PP(n,f):u==="dangerouslySetInnerHTML"?OP(n,f):u==="children"?pd(n,f):Ob(n,u,f,c)}switch(s){case"input":FS(n,i);break;case"textarea":EP(n,i);break;case"select":var d=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Hc(n,!!i.multiple,p,!1):d!==!!i.multiple&&(i.defaultValue!=null?Hc(n,!!i.multiple,i.defaultValue,!0):Hc(n,!!i.multiple,i.multiple?[]:"",!1))}n[wd]=i}catch(v){Or(e,e.return,v)}}break;case 6:if(gi(t,e),Hi(e),o&4){if(e.stateNode===null)throw Error(ge(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(v){Or(e,e.return,v)}}break;case 3:if(gi(t,e),Hi(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{yd(t.containerInfo)}catch(v){Or(e,e.return,v)}break;case 4:gi(t,e),Hi(e);break;case 13:gi(t,e),Hi(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(iC=Mr())),o&4&&cP(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Po=(c=Po)||u,gi(t,e),Po=c):gi(t,e),Hi(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(qe=e,u=e.child;u!==null;){for(f=qe=u;qe!==null;){switch(d=qe,p=d.child,d.tag){case 0:case 11:case 14:case 15:ud(4,d,d.return);break;case 1:Wc(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){o=d,r=d.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){Or(o,r,v)}}break;case 5:Wc(d,d.return);break;case 22:if(d.memoizedState!==null){fP(f);continue}}p!==null?(p.return=d,qe=p):fP(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{n=f.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=_P("display",a))}catch(v){Or(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Or(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gi(t,e),Hi(e),o&4&&cP(e);break;case 21:break;default:gi(t,e),Hi(e)}}function Hi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(JT(r)){var o=r;break e}r=r.return}throw Error(ge(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(pd(n,""),o.flags&=-33);var i=lP(e);xb(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=lP(e);yb(e,s,a);break;default:throw Error(ge(161))}}catch(l){Or(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WB(e,t,r){qe=e,rN(e,t,r)}function rN(e,t,r){for(var o=(e.mode&1)!==0;qe!==null;){var n=qe,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||lg;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||Po;s=lg;var c=Po;if(lg=a,(Po=l)&&!c)for(qe=n;qe!==null;)a=qe,l=a.child,a.tag===22&&a.memoizedState!==null?dP(n):l!==null?(l.return=a,qe=l):dP(n);for(;i!==null;)qe=i,rN(i,t,r),i=i.sibling;qe=n,lg=s,Po=c}uP(e,t,r)}else n.subtreeFlags&8772&&i!==null?(i.return=n,qe=i):uP(e,t,r)}}function uP(e){for(;qe!==null;){var t=qe;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Po||Zg(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Po)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:hi(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&K_(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}K_(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&yd(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ge(163))}Po||t.flags&512&&vb(t)}catch(d){Or(t,t.return,d)}}if(t===e){qe=null;break}if(r=t.sibling,r!==null){r.return=t.return,qe=r;break}qe=t.return}}function fP(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var r=t.sibling;if(r!==null){r.return=t.return,qe=r;break}qe=t.return}}function dP(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Zg(4,t)}catch(l){Or(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){Or(t,n,l)}}var i=t.return;try{vb(t)}catch(l){Or(t,i,l)}break;case 5:var a=t.return;try{vb(t)}catch(l){Or(t,a,l)}}}catch(l){Or(t,t.return,l)}if(t===e){qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,qe=s;break}qe=t.return}}var VB=Math.ceil,zg=Ia.ReactCurrentDispatcher,oC=Ia.ReactCurrentOwner,Hn=Ia.ReactCurrentBatchConfig,Dt=0,no=null,Wr=null,go=0,xn=0,Vc=Os(0),Yr=0,Td=null,_l=0,Jg=0,nC=0,fd=null,en=null,iC=0,ru=1/0,Ca=null,Bg=!1,Sb=null,Ss=null,cg=!1,ps=null,jg=0,dd=0,bb=null,vg=-1,yg=0;function Ho(){return Dt&6?Mr():vg!==-1?vg:vg=Mr()}function bs(e){return e.mode&1?Dt&2&&go!==0?go&-go:OB.transition!==null?(yg===0&&(yg=BP()),yg):(e=Wt,e!==0||(e=window.event,e=e===void 0?16:qP(e.type)),e):1}function Si(e,t,r,o){if(50<dd)throw dd=0,bb=null,Error(ge(185));Nd(e,r,o),(!(Dt&2)||e!==no)&&(e===no&&(!(Dt&2)&&(Jg|=r),Yr===4&&ds(e,go)),nn(e,o),r===1&&Dt===0&&!(t.mode&1)&&(ru=Mr()+500,Xg&&_s()))}function nn(e,t){var r=e.callbackNode;P6(e,t);var o=Eg(e,e===no?go:0);if(o===0)r!==null&&S_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&S_(r),t===1)e.tag===0?RB(mP.bind(null,e)):dT(mP.bind(null,e)),bB(function(){!(Dt&6)&&_s()}),r=null;else{switch(jP(o)){case 1:r=Ib;break;case 4:r=FP;break;case 16:r=wg;break;case 536870912:r=zP;break;default:r=wg}r=uN(r,oN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function oN(e,t){if(vg=-1,yg=0,Dt&6)throw Error(ge(327));var r=e.callbackNode;if(Xc()&&e.callbackNode!==r)return null;var o=Eg(e,e===no?go:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=Wg(e,o);else{t=o;var n=Dt;Dt|=2;var i=iN();(no!==e||go!==t)&&(Ca=null,ru=Mr()+500,Cl(e,t));do try{GB();break}catch(s){nN(e,s)}while(!0);Hb(),zg.current=i,Dt=n,Wr!==null?t=0:(no=null,go=0,t=Yr)}if(t!==0){if(t===2&&(n=KS(e),n!==0&&(o=n,t=Cb(e,n))),t===1)throw r=Td,Cl(e,0),ds(e,o),nn(e,Mr()),r;if(t===6)ds(e,o);else{if(n=e.current.alternate,!(o&30)&&!HB(n)&&(t=Wg(e,o),t===2&&(i=KS(e),i!==0&&(o=i,t=Cb(e,i))),t===1))throw r=Td,Cl(e,0),ds(e,o),nn(e,Mr()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(ge(345));case 2:yl(e,en,Ca);break;case 3:if(ds(e,o),(o&130023424)===o&&(t=iC+500-Mr(),10<t)){if(Eg(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){Ho(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=rb(yl.bind(null,e,en,Ca),t);break}yl(e,en,Ca);break;case 4:if(ds(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-xi(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Mr()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*VB(o/1960))-o,10<o){e.timeoutHandle=rb(yl.bind(null,e,en,Ca),o);break}yl(e,en,Ca);break;case 5:yl(e,en,Ca);break;default:throw Error(ge(329))}}}return nn(e,Mr()),e.callbackNode===r?oN.bind(null,e):null}function Cb(e,t){var r=fd;return e.current.memoizedState.isDehydrated&&(Cl(e,t).flags|=256),e=Wg(e,t),e!==2&&(t=en,en=r,t!==null&&wb(t)),e}function wb(e){en===null?en=e:en.push.apply(en,e)}function HB(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!bi(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ds(e,t){for(t&=~nC,t&=~Jg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-xi(t),o=1<<r;e[r]=-1,t&=~o}}function mP(e){if(Dt&6)throw Error(ge(327));Xc();var t=Eg(e,0);if(!(t&1))return nn(e,Mr()),null;var r=Wg(e,t);if(e.tag!==0&&r===2){var o=KS(e);o!==0&&(t=o,r=Cb(e,o))}if(r===1)throw r=Td,Cl(e,0),ds(e,t),nn(e,Mr()),r;if(r===6)throw Error(ge(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yl(e,en,Ca),nn(e,Mr()),null}function aC(e,t){var r=Dt;Dt|=1;try{return e(t)}finally{Dt=r,Dt===0&&(ru=Mr()+500,Xg&&_s())}}function Pl(e){ps!==null&&ps.tag===0&&!(Dt&6)&&Xc();var t=Dt;Dt|=1;var r=Hn.transition,o=Wt;try{if(Hn.transition=null,Wt=1,e)return e()}finally{Wt=o,Hn.transition=r,Dt=t,!(Dt&6)&&_s()}}function sC(){xn=Vc.current,or(Vc)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,SB(r)),Wr!==null)for(r=Wr.return;r!==null;){var o=r;switch(jb(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Tg();break;case 3:eu(),or(rn),or(To),Yb();break;case 5:Xb(o);break;case 4:eu();break;case 13:or(yr);break;case 19:or(yr);break;case 10:Ub(o.type._context);break;case 22:case 23:sC()}r=r.return}if(no=e,Wr=e=Cs(e.current,null),go=xn=t,Yr=0,Td=null,nC=Jg=_l=0,en=fd=null,Sl!==null){for(t=0;t<Sl.length;t++)if(r=Sl[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Sl=null}return e}function nN(e,t){do{var r=Wr;try{if(Hb(),pg.current=Fg,kg){for(var o=xr.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}kg=!1}if(Ol=0,oo=Xr=xr=null,cd=!1,Od=0,oC.current=null,r===null||r.return===null){Yr=1,Td=t,Wr=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=go,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=eP(a);if(p!==null){p.flags&=-257,tP(p,a,s,i,t),p.mode&1&&J_(i,c,t),t=p,l=c;var h=t.updateQueue;if(h===null){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}else{if(!(t&1)){J_(i,c,t),lC();break e}l=Error(ge(426))}}else if(pr&&s.mode&1){var y=eP(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),tP(y,a,s,i,t),Wb(tu(l,s));break e}}i=l=tu(l,s),Yr!==4&&(Yr=2),fd===null?fd=[i]:fd.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=jT(i,l,t);q_(i,g);break e;case 1:s=l;var m=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ss===null||!Ss.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=WT(i,s,t);q_(i,b);break e}}i=i.return}while(i!==null)}sN(r)}catch(S){t=S,Wr===r&&r!==null&&(Wr=r=r.return);continue}break}while(!0)}function iN(){var e=zg.current;return zg.current=Fg,e===null?Fg:e}function lC(){(Yr===0||Yr===3||Yr===2)&&(Yr=4),no===null||!(_l&268435455)&&!(Jg&268435455)||ds(no,go)}function Wg(e,t){var r=Dt;Dt|=2;var o=iN();(no!==e||go!==t)&&(Ca=null,Cl(e,t));do try{UB();break}catch(n){nN(e,n)}while(!0);if(Hb(),Dt=r,zg.current=o,Wr!==null)throw Error(ge(261));return no=null,go=0,Yr}function UB(){for(;Wr!==null;)aN(Wr)}function GB(){for(;Wr!==null&&!x6();)aN(Wr)}function aN(e){var t=cN(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?sN(e):Wr=t,oC.current=null}function sN(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=zB(r,t),r!==null){r.flags&=32767,Wr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yr=6,Wr=null;return}}else if(r=FB(r,t,xn),r!==null){Wr=r;return}if(t=t.sibling,t!==null){Wr=t;return}Wr=t=e}while(t!==null);Yr===0&&(Yr=5)}function yl(e,t,r){var o=Wt,n=Hn.transition;try{Hn.transition=null,Wt=1,qB(e,t,r,o)}finally{Hn.transition=n,Wt=o}return null}function qB(e,t,r,o){do Xc();while(ps!==null);if(Dt&6)throw Error(ge(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ge(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(T6(e,i),e===no&&(Wr=no=null,go=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||cg||(cg=!0,uN(wg,function(){return Xc(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Hn.transition,Hn.transition=null;var a=Wt;Wt=1;var s=Dt;Dt|=4,oC.current=null,jB(e,r),tN(r,e),gB(eb),Rg=!!JS,eb=JS=null,e.current=r,WB(r,e,n),S6(),Dt=s,Wt=a,Hn.transition=i}else e.current=r;if(cg&&(cg=!1,ps=e,jg=n),i=e.pendingLanes,i===0&&(Ss=null),w6(r.stateNode,o),nn(e,Mr()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(Bg)throw Bg=!1,e=Sb,Sb=null,e;return jg&1&&e.tag!==0&&Xc(),i=e.pendingLanes,i&1?e===bb?dd++:(dd=0,bb=e):dd=0,_s(),null}function Xc(){if(ps!==null){var e=jP(jg),t=Hn.transition,r=Wt;try{if(Hn.transition=null,Wt=16>e?16:e,ps===null)var o=!1;else{if(e=ps,ps=null,jg=0,Dt&6)throw Error(ge(331));var n=Dt;for(Dt|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if(qe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(qe=c;qe!==null;){var u=qe;switch(u.tag){case 0:case 11:case 15:ud(8,u,i)}var f=u.child;if(f!==null)f.return=u,qe=f;else for(;qe!==null;){u=qe;var d=u.sibling,p=u.return;if(ZT(u),u===c){qe=null;break}if(d!==null){d.return=p,qe=d;break}qe=p}}}var h=i.alternate;if(h!==null){var v=h.child;if(v!==null){h.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}qe=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,qe=a;else e:for(;qe!==null;){if(i=qe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ud(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,qe=g;break e}qe=i.return}}var m=e.current;for(qe=m;qe!==null;){a=qe;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,qe=x;else e:for(a=m;qe!==null;){if(s=qe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Zg(9,s)}}catch(S){Or(s,s.return,S)}if(s===a){qe=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,qe=b;break e}qe=s.return}}if(Dt=n,_s(),qi&&typeof qi.onPostCommitFiberRoot=="function")try{qi.onPostCommitFiberRoot(Hg,e)}catch{}o=!0}return o}finally{Wt=r,Hn.transition=t}}return!1}function pP(e,t,r){t=tu(r,t),t=jT(e,t,1),e=xs(e,t,1),t=Ho(),e!==null&&(Nd(e,1,t),nn(e,t))}function Or(e,t,r){if(e.tag===3)pP(e,e,r);else for(;t!==null;){if(t.tag===3){pP(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ss===null||!Ss.has(o))){e=tu(r,e),e=WT(t,e,1),t=xs(t,e,1),e=Ho(),t!==null&&(Nd(t,1,e),nn(t,e));break}}t=t.return}}function KB(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Ho(),e.pingedLanes|=e.suspendedLanes&r,no===e&&(go&r)===r&&(Yr===4||Yr===3&&(go&130023424)===go&&500>Mr()-iC?Cl(e,0):nC|=r),nn(e,t)}function lN(e,t){t===0&&(e.mode&1?(t=Xp,Xp<<=1,!(Xp&130023424)&&(Xp=4194304)):t=1);var r=Ho();e=Ta(e,t),e!==null&&(Nd(e,t,r),nn(e,r))}function XB(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lN(e,r)}function YB(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(ge(314))}o!==null&&o.delete(t),lN(e,r)}var cN;cN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)tn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return tn=!1,kB(e,t,r);tn=!!(e.flags&131072)}else tn=!1,pr&&t.flags&1048576&&mT(t,$g,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;hg(e,t),e=t.pendingProps;var n=Qc(t,To.current);Kc(t,r),n=Zb(null,t,o,e,n,r);var i=Jb();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,on(o)?(i=!0,Ng(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,qb(t),n.updater=Qg,t.stateNode=n,n._reactInternals=t,cb(t,o,e,r),t=db(null,t,o,!0,i,r)):(t.tag=0,pr&&i&&Bb(t),Vo(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(hg(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=ZB(o),e=hi(o,e),n){case 0:t=fb(null,t,o,e,r);break e;case 1:t=nP(null,t,o,e,r);break e;case 11:t=rP(null,t,o,e,r);break e;case 14:t=oP(null,t,o,hi(o.type,e),r);break e}throw Error(ge(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:hi(o,n),fb(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:hi(o,n),nP(e,t,o,n,r);case 3:e:{if(GT(t),e===null)throw Error(ge(387));o=t.pendingProps,i=t.memoizedState,n=i.element,xT(e,t),Ag(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=tu(Error(ge(423)),t),t=iP(e,t,o,r,n);break e}else if(o!==n){n=tu(Error(ge(424)),t),t=iP(e,t,o,r,n);break e}else for(Sn=ys(t.stateNode.containerInfo.firstChild),bn=t,pr=!0,yi=null,r=vT(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Zc(),o===n){t=Na(e,t,r);break e}Vo(e,t,o,r)}t=t.child}return t;case 5:return ST(t),e===null&&ab(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,tb(o,n)?a=null:i!==null&&tb(o,i)&&(t.flags|=32),UT(e,t),Vo(e,t,a,r),t.child;case 6:return e===null&&ab(t),null;case 13:return qT(e,t,r);case 4:return Kb(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Jc(t,null,o,r):Vo(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:hi(o,n),rP(e,t,o,n,r);case 7:return Vo(e,t,t.pendingProps,r),t.child;case 8:return Vo(e,t,t.pendingProps.children,r),t.child;case 12:return Vo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,Jt(Dg,o._currentValue),o._currentValue=a,i!==null)if(bi(i.value,a)){if(i.children===n.children&&!rn.current){t=Na(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===o){if(i.tag===1){l=Oa(-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),sb(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),sb(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}Vo(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,Kc(t,r),n=Un(n),o=o(n),t.flags|=1,Vo(e,t,o,r),t.child;case 14:return o=t.type,n=hi(o,t.pendingProps),n=hi(o.type,n),oP(e,t,o,n,r);case 15:return VT(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:hi(o,n),hg(e,t),t.tag=1,on(o)?(e=!0,Ng(t)):e=!1,Kc(t,r),BT(t,o,n),cb(t,o,n,r),db(null,t,o,!0,e,r);case 19:return KT(e,t,r);case 22:return HT(e,t,r)}throw Error(ge(156,t.tag))};function uN(e,t){return kP(e,t)}function QB(e,t,r,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,t,r,o){return new QB(e,t,r,o)}function cC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZB(e){if(typeof e=="function")return cC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pb)return 11;if(e===Tb)return 14}return 2}function Cs(e,t){var r=e.alternate;return r===null?(r=Vn(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 xg(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")cC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Dc:return wl(r.children,n,i,t);case _b:a=8,n|=8;break;case DS:return e=Vn(12,r,t,n|2),e.elementType=DS,e.lanes=i,e;case MS:return e=Vn(13,r,t,n),e.elementType=MS,e.lanes=i,e;case AS:return e=Vn(19,r,t,n),e.elementType=AS,e.lanes=i,e;case SP:return eh(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yP:a=10;break e;case xP:a=9;break e;case Pb:a=11;break e;case Tb:a=14;break e;case cs:a=16,o=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Vn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function wl(e,t,r,o){return e=Vn(7,e,o,t),e.lanes=r,e}function eh(e,t,r,o){return e=Vn(22,e,o,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function NS(e,t,r){return e=Vn(6,e,null,t),e.lanes=r,e}function IS(e,t,r){return t=Vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JB(e,t,r,o,n){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=pS(0),this.expirationTimes=pS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pS(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function uC(e,t,r,o,n,i,a,s,l){return e=new JB(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qb(i),e}function ej(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$c,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function fN(e){if(!e)return Es;e=e._reactInternals;e:{if(Nl(e)!==e||e.tag!==1)throw Error(ge(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(on(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ge(171))}if(e.tag===1){var r=e.type;if(on(r))return fT(e,r,t)}return t}function dN(e,t,r,o,n,i,a,s,l){return e=uC(r,o,!0,e,n,i,a,s,l),e.context=fN(null),r=e.current,o=Ho(),n=bs(r),i=Oa(o,n),i.callback=t??null,xs(r,i,n),e.current.lanes=n,Nd(e,n,o),nn(e,o),e}function th(e,t,r,o){var n=t.current,i=Ho(),a=bs(n);return r=fN(r),t.context===null?t.context=r:t.pendingContext=r,t=Oa(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=xs(n,t,a),e!==null&&(Si(e,n,a,i),mg(e,n,a)),a}function Vg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function fC(e,t){gP(e,t),(e=e.alternate)&&gP(e,t)}function tj(){return null}var mN=typeof reportError=="function"?reportError:function(e){console.error(e)};function dC(e){this._internalRoot=e}rh.prototype.render=dC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ge(409));th(e,t,null,null)};rh.prototype.unmount=dC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pl(function(){th(null,e,null,null)}),t[Pa]=null}};function rh(e){this._internalRoot=e}rh.prototype.unstable_scheduleHydration=function(e){if(e){var t=HP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<fs.length&&t!==0&&t<fs[r].priority;r++);fs.splice(r,0,e),r===0&&GP(e)}};function mC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hP(){}function rj(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=Vg(a);i.call(c)}}var a=dN(t,o,e,0,null,!1,!1,"",hP);return e._reactRootContainer=a,e[Pa]=a.current,bd(e.nodeType===8?e.parentNode:e),Pl(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=Vg(l);s.call(c)}}var l=uC(e,0,!1,null,null,!1,!1,"",hP);return e._reactRootContainer=l,e[Pa]=l.current,bd(e.nodeType===8?e.parentNode:e),Pl(function(){th(t,l,r,o)}),l}function nh(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var s=n;n=function(){var l=Vg(a);s.call(l)}}th(t,a,e,n)}else a=rj(r,t,e,n,o);return Vg(a)}WP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=rd(t.pendingLanes);r!==0&&($b(t,r|1),nn(t,Mr()),!(Dt&6)&&(ru=Mr()+500,_s()))}break;case 13:Pl(function(){var o=Ta(e,1);if(o!==null){var n=Ho();Si(o,e,1,n)}}),fC(e,1)}};Db=function(e){if(e.tag===13){var t=Ta(e,134217728);if(t!==null){var r=Ho();Si(t,e,134217728,r)}fC(e,134217728)}};VP=function(e){if(e.tag===13){var t=bs(e),r=Ta(e,t);if(r!==null){var o=Ho();Si(r,e,t,o)}fC(e,t)}};HP=function(){return Wt};UP=function(e,t){var r=Wt;try{return Wt=e,t()}finally{Wt=r}};US=function(e,t,r){switch(t){case"input":if(FS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=Kg(o);if(!n)throw Error(ge(90));CP(o),FS(o,n)}}}break;case"textarea":EP(e,r);break;case"select":t=r.value,t!=null&&Hc(e,!!r.multiple,t,!1)}};IP=aC;$P=Pl;var oj={usingClientEntryPoint:!1,Events:[$d,kc,Kg,TP,NP,aC]},Zf={findFiberByHostInstance:xl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nj={bundleType:Zf.bundleType,version:Zf.version,rendererPackageName:Zf.rendererPackageName,rendererConfig:Zf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ia.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=AP(e),e===null?null:e.stateNode},findFiberByHostInstance:Zf.findFiberByHostInstance||tj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Jf.isDisabled&&Jf.supportsFiber))try{Hg=Jf.inject(nj),qi=Jf}catch{}var Jf;En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oj;En.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mC(t))throw Error(ge(200));return ej(e,t,null,r)};En.createRoot=function(e,t){if(!mC(e))throw Error(ge(299));var r=!1,o="",n=mN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=uC(e,1,!1,null,null,r,!1,o,n),e[Pa]=t.current,bd(e.nodeType===8?e.parentNode:e),new dC(t)};En.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ge(188)):(e=Object.keys(e).join(","),Error(ge(268,e)));return e=AP(t),e=e===null?null:e.stateNode,e};En.flushSync=function(e){return Pl(e)};En.hydrate=function(e,t,r){if(!oh(t))throw Error(ge(200));return nh(null,e,t,!0,r)};En.hydrateRoot=function(e,t,r){if(!mC(e))throw Error(ge(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=mN;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=dN(t,null,e,1,r??null,n,!1,i,a),e[Pa]=t.current,bd(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new rh(t)};En.render=function(e,t,r){if(!oh(t))throw Error(ge(200));return nh(null,e,t,!1,r)};En.unmountComponentAtNode=function(e){if(!oh(e))throw Error(ge(40));return e._reactRootContainer?(Pl(function(){nh(null,null,e,!1,function(){e._reactRootContainer=null,e[Pa]=null})}),!0):!1};En.unstable_batchedUpdates=aC;En.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!oh(r))throw Error(ge(200));if(e==null||e._reactInternals===void 0)throw Error(ge(38));return nh(e,t,r,!1,o)};En.version="18.3.1-next-f1338f8080-20240426"});var Ci=kn((EJ,hN)=>{"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=pN()});var yN=kn(pC=>{"use strict";var vN=Ci();pC.createRoot=vN.createRoot,pC.hydrateRoot=vN.hydrateRoot;var RJ});var bN=kn(ih=>{"use strict";var aj=I(),sj=Symbol.for("react.element"),lj=Symbol.for("react.fragment"),cj=Object.prototype.hasOwnProperty,uj=aj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fj={key:!0,ref:!0,__self:!0,__source:!0};function SN(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)cj.call(t,o)&&!fj.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:sj,type:e,key:i,ref:a,props:n,_owner:uj.current}}ih.Fragment=lj;ih.jsx=SN;ih.jsxs=SN});var kt=kn((TJ,CN)=>{"use strict";CN.exports=bN()});var Ee=kn((tee,mh)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(n=o(n,r(a)))}return n}function r(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var a in n)e.call(n,a)&&n[a]&&(i=o(i,a));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof mh<"u"&&mh.exports?(t.default=t,mh.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var FN=kn(Ht=>{"use strict";var xC=Symbol.for("react.element"),SC=Symbol.for("react.portal"),hh=Symbol.for("react.fragment"),vh=Symbol.for("react.strict_mode"),yh=Symbol.for("react.profiler"),xh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),Sj=Symbol.for("react.server_context"),bh=Symbol.for("react.forward_ref"),Ch=Symbol.for("react.suspense"),wh=Symbol.for("react.suspense_list"),Eh=Symbol.for("react.memo"),Rh=Symbol.for("react.lazy"),bj=Symbol.for("react.offscreen"),kN;kN=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case xC:switch(e=e.type,e){case hh:case yh:case vh:case Ch:case wh:return e;default:switch(e=e&&e.$$typeof,e){case Sj:case Sh:case bh:case Rh:case Eh:case xh:return e;default:return t}}case SC:return t}}}Ht.ContextConsumer=Sh;Ht.ContextProvider=xh;Ht.Element=xC;Ht.ForwardRef=bh;Ht.Fragment=hh;Ht.Lazy=Rh;Ht.Memo=Eh;Ht.Portal=SC;Ht.Profiler=yh;Ht.StrictMode=vh;Ht.Suspense=Ch;Ht.SuspenseList=wh;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return qn(e)===Sh};Ht.isContextProvider=function(e){return qn(e)===xh};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===xC};Ht.isForwardRef=function(e){return qn(e)===bh};Ht.isFragment=function(e){return qn(e)===hh};Ht.isLazy=function(e){return qn(e)===Rh};Ht.isMemo=function(e){return qn(e)===Eh};Ht.isPortal=function(e){return qn(e)===SC};Ht.isProfiler=function(e){return qn(e)===yh};Ht.isStrictMode=function(e){return qn(e)===vh};Ht.isSuspense=function(e){return qn(e)===Ch};Ht.isSuspenseList=function(e){return qn(e)===wh};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hh||e===yh||e===vh||e===Ch||e===wh||e===bj||typeof e=="object"&&e!==null&&(e.$$typeof===Rh||e.$$typeof===Eh||e.$$typeof===xh||e.$$typeof===Sh||e.$$typeof===bh||e.$$typeof===kN||e.getModuleId!==void 0)};Ht.typeOf=qn});var BN=kn((bee,zN)=>{"use strict";zN.exports=FN()});var Sx={"SDPPP Get Document":"SDPPP Get Document","SDPPP Get Layer By ID":"SDPPP Get Layer","SDPPP Get Linked Layers":"SDPPP Get Linked Layers","SDPPP Get Layers In Group":"SDPPP Get Layers In Group","SDPPP Get Text From Layer":"SDPPP Get Text From Layer","SDPPP Parse Layer Info":"SDPPP Parse Layer Info","SDPPP Get Selection":"SDPPP Get Selection","SDPPP Get Image From Photoshop":"SDPPP Get Image From Photoshop","SDPPP Send Images To Photoshop":"SDPPP Send Images To Photoshop","SDPPP Settings":"SDPPP Settings/Misc"};var bx={"### 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":"SDPPP\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"SDPPP\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"SDPPP\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"SDPPP\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"SDPPP\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"SDPPP\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"SDPPP\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"SDPPP\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"SDPPP\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Settings":"SDPPP\u8BBE\u7F6E/\u6742\u9879(Settings/Misc)","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_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_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_bound:"\u753B\u5E03\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",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",timeout:"\u8D85\u65F6","--multi-user activated, 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","Workflow List of ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"(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","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}","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","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","{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","https://www.youtube.com/@Github-Zombeeyang/videos":"https://space.bilibili.com/44908313",Youtube:"BiliBili","https://discord.gg/9HeGjDvEmn":"https://pd.qq.com/s/5m42umo28",Discord:"QQ\u9891\u9053",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A",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: {0}":"Comfy\u5730\u5740: {0}","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91"};var HR=typeof yx<"u"?yx:void 0,Cx="en";typeof navigator<"u"&&navigator.language?Cx=navigator.language=="zh-CN"?"zhcn":"en":HR&&(Cx=HR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function ve(e,...t){let r=Cx=="zhcn"?bx[e]:e in Sx?Sx[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(o,n){return typeof t[n]<"u"?t[n]:o})}function ul(e,t){return e==t||bx[e]==t}var jr=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return ul(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return ve(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return ul(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return ve(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return ul(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return ve(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return ul(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return ve(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return ul(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return ve(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return ul(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return ve(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return ve(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[ve(e.SPECIAL_LAYER_USE_CANVAS),ve(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[ve(e.SPECIAL_LAYER_NEW_LAYER),ve(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return ve(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 wx={};xx(wx,{JsonPatchError:()=>Rr,_areEquals:()=>Pf,applyOperation:()=>fl,applyPatch:()=>Sc,applyReducer:()=>cz,deepClone:()=>sz,getValueByPointer:()=>dl,validate:()=>GR,validator:()=>sp});var iz=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i])},e(t,r)};return function(t,r){e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),az=Object.prototype.hasOwnProperty;function np(e,t){return az.call(e,t)}function ip(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var o=[];for(var n in e)np(e,n)&&o.push(n);return o}function Er(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function ap(e){for(var t=0,r=e.length,o;t<r;){if(o=e.charCodeAt(t),o>=48&&o<=57){t++;continue}return!1}return!0}function Bi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Of(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function op(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(op(e[t]))return!0}else if(typeof e=="object"){for(var o=ip(e),n=o.length,i=0;i<n;i++)if(op(e[o[i]]))return!0}}return!1}function UR(e,t){var r=[e];for(var o in t){var n=typeof t[o]=="object"?JSON.stringify(t[o],null,2):t[o];typeof n<"u"&&r.push(o+": "+n)}return r.join(`
|
|
`)}var _f=function(e){iz(t,e);function t(r,o,n,i,a){var s=this.constructor,l=e.call(this,UR(r,{name:o,index:n,operation:i,tree:a}))||this;return l.name=o,l.index=n,l.operation=i,l.tree=a,Object.setPrototypeOf(l,s.prototype),l.message=UR(r,{name:o,index:n,operation:i,tree:a}),l}return t}(Error);var Rr=_f,sz=Er,xc={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var o=e[t];return delete e[t],{newDocument:r,removed:o}},replace:function(e,t,r){var o=e[t];return e[t]=this.value,{newDocument:r,removed:o}},move:function(e,t,r){var o=dl(r,this.path);o&&(o=Er(o));var n=fl(r,{op:"remove",path:this.from}).removed;return fl(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:o}},copy:function(e,t,r){var o=dl(r,this.from);return fl(r,{op:"add",path:this.path,value:Er(o)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Pf(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},lz={add:function(e,t,r){return ap(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var o=e.splice(t,1);return{newDocument:r,removed:o[0]}},replace:function(e,t,r){var o=e[t];return e[t]=this.value,{newDocument:r,removed:o}},move:xc.move,copy:xc.copy,test:xc.test,_get:xc._get};function dl(e,t){if(t=="")return e;var r={op:"_get",path:t};return fl(e,r),r.value}function fl(e,t,r,o,n,i){if(r===void 0&&(r=!1),o===void 0&&(o=!0),n===void 0&&(n=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(t,0,e,t.path):sp(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=dl(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=Pf(e,t.value),a.test===!1)throw new Rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new Rr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{o||(e=Er(e));var s=t.path||"",l=s.split("/"),c=e,u=1,f=l.length,d=void 0,p=void 0,h=void 0;for(typeof r=="function"?h=r:h=sp;;){if(p=l[u],p&&p.indexOf("~")!=-1&&(p=Of(p)),n&&(p=="__proto__"||p=="prototype"&&u>0&&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&&d===void 0&&(c[p]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&h(t,0,e,d)),u++,Array.isArray(c)){if(p==="-")p=c.length;else{if(r&&!ap(p))throw new Rr("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);ap(p)&&(p=~~p)}if(u>=f){if(r&&t.op==="add"&&p>c.length)throw new Rr("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=lz[t.op].call(t,c,p,e);if(a.test===!1)throw new Rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=xc[t.op].call(t,c,p,e);if(a.test===!1)throw new Rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[p],r&&u<f&&(!c||typeof c!="object"))throw new Rr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function Sc(e,t,r,o,n){if(o===void 0&&(o=!0),n===void 0&&(n=!0),r&&!Array.isArray(t))throw new Rr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(e=Er(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=fl(e,t[a],r,!0,n,a),e=i[a].newDocument;return i.newDocument=e,i}function cz(e,t,r){var o=fl(e,t);if(o.test===!1)throw new Rr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return o.newDocument}function sp(e,t,r,o){if(typeof e!="object"||e===null||Array.isArray(e))throw new Rr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(xc[e.op]){if(typeof e.path!="string")throw new Rr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Rr('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 Rr("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 Rr("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")&&op(e.value))throw new Rr("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 n=e.path.split("/").length,i=o.split("/").length;if(n!==i+1&&n!==i)throw new Rr("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!==o)throw new Rr("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=GR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Rr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Rr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function GR(e,t,r){try{if(!Array.isArray(e))throw new Rr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Sc(Er(t),Er(e),r||!0);else{r=r||sp;for(var o=0;o<e.length;o++)r(e[o],o,t,void 0)}}catch(n){if(n instanceof Rr)return n;throw n}}function Pf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),o=Array.isArray(t),n,i,a;if(r&&o){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!Pf(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=Object.keys(e);if(i=s.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!t.hasOwnProperty(s[n]))return!1;for(n=i;n--!==0;)if(a=s[n],!Pf(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var _x={};xx(_x,{compare:()=>lp,generate:()=>Ex,observe:()=>hz,unobserve:()=>gz});var Rx=new WeakMap,uz=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),fz=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function dz(e){return Rx.get(e)}function mz(e,t){return e.observers.get(t)}function pz(e,t){e.observers.delete(t.callback)}function gz(e,t){t.unobserve()}function hz(e,t){var r=[],o,n=dz(e);if(!n)n=new uz(e),Rx.set(e,n);else{var i=mz(n,t);o=i&&i.observer}if(o)return o;if(o={},n.value=Er(e),t){o.callback=t,o.next=null;var a=function(){Ex(o)},s=function(){clearTimeout(o.next),o.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 o.patches=r,o.object=e,o.unobserve=function(){Ex(o),clearTimeout(o.next),pz(n,o),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},n.observers.set(t,new fz(t,o)),o}function Ex(e,t){t===void 0&&(t=!1);var r=Rx.get(e.object);Ox(r.value,e.object,e.patches,"",t),e.patches.length&&Sc(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function Ox(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=ip(t),a=ip(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(np(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var d=t[u];typeof f=="object"&&f!=null&&typeof d=="object"&&d!=null&&Array.isArray(f)===Array.isArray(d)?Ox(f,d,r,o+"/"+Bi(u),n):f!==d&&(s=!0,n&&r.push({op:"test",path:o+"/"+Bi(u),value:Er(f)}),r.push({op:"replace",path:o+"/"+Bi(u),value:Er(d)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+Bi(u),value:Er(f)}),r.push({op:"remove",path:o+"/"+Bi(u)}),l=!0):(n&&r.push({op:"test",path:o,value:e}),r.push({op:"replace",path:o,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;c<i.length;c++){var u=i[c];!np(e,u)&&t[u]!==void 0&&r.push({op:"add",path:o+"/"+Bi(u),value:Er(t[u])})}}}function lp(e,t,r){r===void 0&&(r=!1);var o=[];return Ox(e,t,o,"",r),o}var pX=Object.assign({},wx,_x,{JsonPatchError:_f,deepClone:Er,escapePathComponent:Bi,unescapePathComponent:Of});var cp=Symbol("STORE_MUTATIONS"),Px=class{_data;_mutationRecords=[];storedMinVersion=0;_version=0;get version(){return this._version}flush(){return{operations:this._mutationRecords.slice(0),fromVersion:this.storedMinVersion,toVersion:this.version}}flushDone(t){this._mutationRecords=this._mutationRecords.slice(t-this.storedMinVersion),this.storedMinVersion=t}patchVersionAcceptable(t){return this._version!=-1&&t<=this._version}patchData(t){let r=Er(this._data);Sc(this._data,t),this._version+=t.length,this.storedMinVersion=this._version,this.dispatch(t,r)}get data(){return Er(this._data)}static[cp]=[];constructor(t){this._data=Er(t)}sync(t,r){let o=this._data,n=lp(o,t);Object.assign(this._data,t),this.storedMinVersion=this._version=r,this.dispatch(n,o)}subscribers=[];subscribe(t,r){this.subscribers.push([t,r])}unsubscribe(t){this.subscribers=this.subscribers.filter(([r,o])=>o!=t)}dispatch(t,r){let o=new Map;t.forEach(n=>{this.subscribers.forEach(([i,a])=>{n.path.startsWith(i)&&!o.has(i)&&o.set(i,JSON.stringify(i==="/"?r:dl(r,i)))})}),o.forEach((n,i)=>{let a=i==="/"?this._data:dl(this._data,i);n!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(n||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function Kr(e,t,r){return e.constructor[cp]||(e.constructor[cp]=[]),e.constructor[cp].push(t),{value:function(...o){let n=Er(this._data);r.value.apply(this,o);let i=lp(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var ml=class extends Px{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Br([Kr],ml.prototype,"setSID",1);var Jo=class extends ml{constructor(t,r){super(t||{title:"",progress:0,lastError:"",lastErrorNodeID:0,queueSize:0,executingNodeTitle:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",currentForm:[],hasPSDNodes:!1,maxImageWH:60606,comfyUserToken:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t,r){this._data.lastError=t,this._data.lastErrorNodeID=r}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setCurrentForm(t){t=JSON.parse(JSON.stringify(t)),this._data.currentForm=t}setHasPSDNodes(t){this._data.hasPSDNodes=t}setMaxImageWH(t){this._data.maxImageWH=t}setComfyUserToken(t){this._data.comfyUserToken=t}};Br([Kr],Jo.prototype,"setWebviewFromSid",1),Br([Kr],Jo.prototype,"setTitle",1),Br([Kr],Jo.prototype,"setProgress",1),Br([Kr],Jo.prototype,"setLastError",1),Br([Kr],Jo.prototype,"setQueueSize",1),Br([Kr],Jo.prototype,"setExecutingNodeTitle",1),Br([Kr],Jo.prototype,"setCurrentForm",1),Br([Kr],Jo.prototype,"setHasPSDNodes",1),Br([Kr],Jo.prototype,"setMaxImageWH",1),Br([Kr],Jo.prototype,"setComfyUserToken",1);var ji=class extends ml{constructor(t,r){super(t||{uname:"",comfyUserToken:"",activeDocumentID:0,documents:{},canvasStateID:0,selectionStateID:0,historyStateID:0}),this._version=r||0}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}};Br([Kr],ji.prototype,"setUName",1),Br([Kr],ji.prototype,"setDocument",1),Br([Kr],ji.prototype,"setCanvasStateID",1),Br([Kr],ji.prototype,"setSelectionStateID",1),Br([Kr],ji.prototype,"setHistoryStateID",1),Br([Kr],ji.prototype,"setComfyUserToken",1);var up=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 o={};this.subscribersWithoutKey.set(r,o),this.storeMap.forEach((n,i)=>{o[i]=r.bind(this,i),n.subscribe(t,o[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([o,n])=>n!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((o,n)=>{o.unsubscribe(r[n])})}addStore(t,r,o){let n=this.createStore(r,o);this.storeMap.set(t,n),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),n.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([o,n])=>{let i=this.subscribersWithoutKey.get(n);i&&(r.unsubscribe(i[t]),o=="/"&&n(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),o=t.filter(i=>!r.includes(i)),n=r.filter(i=>!t.includes(i));o.forEach(i=>this.addStore(i,{},0)),n.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(o=>!Object.keys(t).includes(o)).forEach(o=>this.removeStore(o));for(let o in t){let{data:n,version:i}=t[o];this.storeMap.has(o)?this.storeMap.get(o)?.sync(n,i):this.addStore(o,n,i)}}}};var Dr=window.comfyAPI.app.app,NX=window.comfyAPI.ui.$el,hn=window.comfyAPI.api.api;var Tx=class extends up{createStore(t,r){return new ji(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}},vn=new Tx,bt=new Jo;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,bt.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function KR(){document.title!==bt.data.title&&bt.setTitle(document.title),requestAnimationFrame(KR)}requestAnimationFrame(KR);var qR=!1;async function XR(){if(qR)return Promise.resolve();hn.user&&bt.setComfyUserToken(hn.user);let e=await hn.getSetting("sdppp.maxImageWH");e&&bt.setMaxImageWH(e),qR=!0}function vz(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function fp(e){return vz(e)}globalThis.sdpppX=globalThis.sdpppX||{};var va=globalThis.sdpppX;var Tf=class{static makeDocumentDataOptions(t){let r=t.data,o=[`${jr.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(n=>{let i=r.documents[n];o.push(i.identify)}),o}static findDocumentData(t,r){let o=jr.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:fp(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}};function Nx(){let e=vn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(hn.user&&hn.user!=r.data.comfyUserToken)return;let o=Tf.makeDocumentDataOptions(r).map(n=>Ix(n,r.data.uname));t.push(...o)}),t}function YR(e,t){let r=[""],o=dp(e);if(!o)return[];let n=Tf.makeLayerOptions(o.documentData,t);return r.push(...n),r}function QR(){return hn.user?Object.values(vn.getAllStore()).filter(e=>hn.user==e.data.comfyUserToken).length>0:vn.storeCount()}function Ix(e,t){return`${t}/${e}`}function dp(e){if(!e||!e.split)return null;let t=vn.getAllPhotoshopDocumentData(),[r,o]=e.split("/");if(o||(o=r,r=Object.keys(t)[0]),!t[r])return null;let n=jr.is_SPECIAL_DOCUMENT_CURRENT(o)?t[r].activeDocumentID:fp(o).id;if(t[r]?.documents[n]){let i=t[r].documents[n];return{instance_id:t[r].sid,identify:o,documentData:i}}return null}var yz=function(e){let t=Dr.graph.links;return Array.isArray(t)?t.find(o=>o&&o.origin_id==e):t.get(e)};function $x(e){let t=Dr.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let o=[];if(n(r,o),o.length>2){let i=o[0].widgets[0].value;if(!o.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(ve("Cannot connect multiple different document widgets with same value"))}return o?.[0]||null;function n(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=yz(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=n(c,a);if(u)return u}return null}}va.findDocumentNodeRecursive=$x;var mp=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 ZR(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let n=new mp(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("/",()=>{n.runFlush()}),this.socket.on("disconnect",()=>{n.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=>{n.resume()})}}}}function JR(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_flush",n=>{if(n.type!==t)return;let i=e.getStore(n.sid);if(i)i.patchVersionAcceptable(n.fromVersion)?i.patchData(n.operations):(console.warn("patch version not acceptable from",n.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:n.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",n=>{e.removeStore(n.sid)}),this.socket.on("sdppp_inited",n=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var ui=Object.create(null);ui.open="0";ui.close="1";ui.ping="2";ui.pong="3";ui.message="4";ui.upgrade="5";ui.noop="6";var Nf=Object.create(null);Object.keys(ui).forEach(e=>{Nf[ui[e]]=e});var If={type:"error",data:"parser error"};var rO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oO=typeof ArrayBuffer=="function",nO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$f=({type:e,data:t},r,o)=>rO&&t instanceof Blob?r?o(t):eO(t,o):oO&&(t instanceof ArrayBuffer||nO(t))?r?o(t):eO(new Blob([t]),o):o(ui[e]+(t||"")),eO=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function tO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Dx;function iO(e,t){if(rO&&e.data instanceof Blob)return e.data.arrayBuffer().then(tO).then(t);if(oO&&(e.data instanceof ArrayBuffer||nO(e.data)))return t(tO(e.data));$f(e,!1,r=>{Dx||(Dx=new TextEncoder),t(Dx.encode(r))})}var aO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Df=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<aO.length;e++)Df[aO.charCodeAt(e)]=e;var sO=e=>{let t=e.length*.75,r=e.length,o,n=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(o=0;o<r;o+=4)i=Df[e.charCodeAt(o)],a=Df[e.charCodeAt(o+1)],s=Df[e.charCodeAt(o+2)],l=Df[e.charCodeAt(o+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return c};var xz=typeof ArrayBuffer=="function",Mf=(e,t)=>{if(typeof e!="string")return{type:"message",data:lO(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:Sz(e.substring(1),t)}:Nf[r]?e.length>1?{type:Nf[r],data:e.substring(1)}:{type:Nf[r]}:If},Sz=(e,t)=>{if(xz){let r=sO(e);return lO(r,t)}else return{base64:!0,data:e}},lO=(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 cO="",uO=(e,t)=>{let r=e.length,o=new Array(r),n=0;e.forEach((i,a)=>{$f(i,!1,s=>{o[a]=s,++n===r&&t(o.join(cO))})})},fO=(e,t)=>{let r=e.split(cO),o=[];for(let n=0;n<r.length;n++){let i=Mf(r[n],t);if(o.push(i),i.type==="error")break}return o};function dO(){return new TransformStream({transform(e,t){iO(e,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let i=new DataView(n.buffer);i.setUint8(0,126),i.setUint16(1,o)}else{n=new Uint8Array(9);let i=new DataView(n.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(o))}e.data&&typeof e.data!="string"&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}var Mx;function pp(e){return e.reduce((t,r)=>t+r.length,0)}function gp(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),o=0;for(let n=0;n<t;n++)r[n]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),r}function mO(e,t){Mx||(Mx=new TextDecoder);let r=[],o=0,n=-1,i=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(o===0){if(pp(r)<1)break;let l=gp(r,1);i=(l[0]&128)===128,n=l[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(pp(r)<2)break;let l=gp(r,2);n=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),o=3}else if(o===2){if(pp(r)<8)break;let l=gp(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){s.enqueue(If);break}n=u*Math.pow(2,32)+c.getUint32(4),o=3}else{if(pp(r)<n)break;let l=gp(r,n);s.enqueue(Mf(i?l:Mx.decode(l),t)),o=0}if(n===0||n>e){s.enqueue(If);break}}}})}var Ax=4;function Qt(e){if(e)return bz(e)}function bz(e){for(var t in Qt.prototype)e[t]=Qt.prototype[t];return e}Qt.prototype.on=Qt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Qt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Qt.prototype.off=Qt.prototype.removeListener=Qt.prototype.removeAllListeners=Qt.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 o,n=0;n<r.length;n++)if(o=r[n],o===t||o.fn===t){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Qt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,t)}return this};Qt.prototype.emitReserved=Qt.prototype.emit;Qt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Qt.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ya=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),jo=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),pO="arraybuffer";function hp(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var Cz=jo.setTimeout,wz=jo.clearTimeout;function xa(e,t){t.useNativeTimers?(e.setTimeoutFn=Cz.bind(jo),e.clearTimeoutFn=wz.bind(jo)):(e.setTimeoutFn=jo.setTimeout.bind(jo),e.clearTimeoutFn=jo.clearTimeout.bind(jo))}var Ez=1.33;function gO(e){return typeof e=="string"?Rz(e):Math.ceil((e.byteLength||e.size)*Ez)}function Rz(e){let t=0,r=0;for(let o=0,n=e.length;o<n;o++)t=e.charCodeAt(o),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(o++,r+=4);return r}function vp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hO(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function vO(e){let t={},r=e.split("&");for(let o=0,n=r.length;o<n;o++){let i=r[o].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var yp=class extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}},Sa=class extends Qt{constructor(t){super(),this.writable=!1,xa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,o){return super.emitReserved("error",new yp(t,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Mf(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=hO(t);return r.length?"?"+r:""}};var Af=class extends Sa{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};fO(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,uO(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]=vp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var yO=!1;try{yO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var xO=yO;function Oz(){}var Lx=class extends Af{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}}doWrite(t,r){let o=this.request({method:"POST",data:t});o.on("success",r),o.on("error",(n,i)=>{this.onError("xhr post error",n,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=t}},ns=class e extends Qt{constructor(t,r,o){super(),this.createRequest=t,xa(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var t;let r=hp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},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=Oz,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()}};ns.requestsCount=0;ns.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",SO);else if(typeof addEventListener=="function"){let e="onpagehide"in jo?"pagehide":"unload";addEventListener(e,SO,!1)}}function SO(){for(let e in ns.requests)ns.requests.hasOwnProperty(e)&&ns.requests[e].abort()}var _z=function(){let e=bO({xdomain:!1});return e&&e.responseType!==null}(),is=class extends Lx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=_z&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ns(bO,this.uri(),t)}};function bO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||xO))return new XMLHttpRequest}catch{}if(!t)try{return new jo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var CO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Fx=class extends Sa{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=CO?{}:hp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,o)}catch(n){return this.emitReserved("error",n)}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<t.length;r++){let o=t[r],n=r===t.length-1;$f(o,this.supportsBinary,i=>{try{this.doWrite(o,i)}catch{}n&&ya(()=>{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]=vp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},kx=jo.WebSocket||jo.MozWebSocket,as=class extends Fx{createSocket(t,r,o){return CO?new kx(t,r,o):r?new kx(t,r):new kx(t)}doWrite(t,r){this.ws.send(r)}};var bc=class extends Sa{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=mO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=dO();n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let i=()=>{o.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<t.length;r++){let o=t[r],n=r===t.length-1;this._writer.write(o).then(()=>{n&&ya(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var zx={websocket:as,webtransport:bc,polling:is};var Pz=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Tz=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),o=e.indexOf("]");r!=-1&&o!=-1&&(e=e.substring(0,r)+e.substring(r,o).replace(/:/g,";")+e.substring(o,e.length));let n=Pz.exec(e||""),i={},a=14;for(;a--;)i[Tz[a]]=n[a]||"";return r!=-1&&o!=-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=Nz(i,i.path),i.queryKey=Iz(i,i.query),i}function Nz(e,t){let r=/\/{2,9}/g,o=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&o.splice(0,1),t.slice(-1)=="/"&&o.splice(o.length-1,1),o}function Iz(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,i){n&&(r[n]=i)}),r}var Bx=typeof addEventListener=="function"&&typeof removeEventListener=="function",xp=[];Bx&&addEventListener("offline",()=>{xp.forEach(e=>e())},!1);var pl=class e extends Qt{constructor(t,r){if(super(),this.binaryType=pO,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 o=Cc(t);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Cc(r.host).host);xa(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(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),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=vO(this.opts.query)),Bx&&(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=Ax,r.transport=t,this.id&&(r.sid=this.id);let o=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](o)}_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 o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=gO(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ya(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,o){return this._sendPacket("message",t,r,o),this}send(t,r,o){return this._sendPacket("message",t,r,o),this}_sendPacket(t,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let i={type:t,data:r,options:o};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},o=()=>{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?o():t()}):this.upgrading?o():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(),Bx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=xp.indexOf(this._offlineEventListener);o!==-1&&xp.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};pl.protocol=Ax;var Sp=class extends pl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),o=!1;pl.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!o)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;pl.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function i(){o||(o=!0,u(),r.close(),r=null)}let a=f=>{let d=new Error("probe error: "+f);d.transport=r.name,i(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",n),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",n),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(()=>{o||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let o=0;o<t.length;o++)~this.transports.indexOf(t[o])&&r.push(t[o]);return r}},wc=class extends Sp{constructor(t,r={}){let o=typeof t=="object"?t:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>zx[n]).filter(n=>!!n)),super(t,o)}};var sQ=wc.protocol;function wO(e,t="",r){let o=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),o=Cc(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let i=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(r&&r.port===o.port?"":":"+o.port),o}var Gx={};xx(Gx,{Decoder:()=>Hx,Encoder:()=>Vx,PacketType:()=>Rt,protocol:()=>PO});var Dz=typeof ArrayBuffer=="function",Mz=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,EO=Object.prototype.toString,Az=typeof Blob=="function"||typeof Blob<"u"&&EO.call(Blob)==="[object BlobConstructor]",Lz=typeof File=="function"||typeof File<"u"&&EO.call(File)==="[object FileConstructor]";function kf(e){return Dz&&(e instanceof ArrayBuffer||Mz(e))||Az&&e instanceof Blob||Lz&&e instanceof File}function Lf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r<o;r++)if(Lf(e[r]))return!0;return!1}if(kf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Lf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Lf(e[r]))return!0;return!1}function RO(e){let t=[],r=e.data,o=e;return o.data=jx(r,t),o.attachments=t.length,{packet:o,buffers:t}}function jx(e,t){if(!e)return e;if(kf(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=jx(e[o],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=jx(e[o],t));return r}return e}function OO(e,t){return e.data=Wx(e.data,t),delete e.attachments,e}function Wx(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Wx(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Wx(e[r],t));return e}var kz=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],PO=5,Rt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Rt||(Rt={}));var Vx=class{constructor(t){this.replacer=t}encode(t){return(t.type===Rt.EVENT||t.type===Rt.ACK)&&Lf(t)?this.encodeAsBinary({type:t.type===Rt.EVENT?Rt.BINARY_EVENT:Rt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Rt.BINARY_EVENT||t.type===Rt.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){let r=RO(t),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}};function _O(e){return Object.prototype.toString.call(e)==="[object Object]"}var Hx=class e extends Qt{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let o=r.type===Rt.BINARY_EVENT;o||r.type===Rt.BINARY_ACK?(r.type=o?Rt.EVENT:Rt.ACK,this.reconstructor=new Ux(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(kf(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,o={type:Number(t.charAt(0))};if(Rt[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===Rt.BINARY_EVENT||o.type===Rt.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let a=t.substring(i,r);if(a!=Number(a)||t.charAt(r)!=="-")throw new Error("Illegal attachments");o.attachments=Number(a)}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););o.nsp=t.substring(i,r)}else o.nsp="/";let n=t.charAt(r+1);if(n!==""&&Number(n)==n){let i=r+1;for(;++r;){let a=t.charAt(r);if(a==null||Number(a)!=a){--r;break}if(r===t.length)break}o.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(e.isPayloadValid(o.type,i))o.data=i;else throw new Error("invalid payload")}return o}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Rt.CONNECT:return _O(r);case Rt.DISCONNECT:return r===void 0;case Rt.CONNECT_ERROR:return typeof r=="string"||_O(r);case Rt.EVENT:case Rt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&kz.indexOf(r[0])===-1);case Rt.ACK:case Rt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Ux=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=OO(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function yn(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Fz=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ec=class extends Qt{constructor(t,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[yn(t,"open",this.onopen.bind(this)),yn(t,"packet",this.onpacket.bind(this)),yn(t,"error",this.onerror.bind(this)),yn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var o,n,i;if(Fz.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let a={type:Rt.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,f=r.pop();this._registerAckCallback(u,f),a.id=u}let s=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[t]=r;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},n),a=(...s)=>{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((o,n)=>{let i=(a,s)=>a?n(a):o(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 o={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...i)=>o!==this._queue[0]?void 0:(n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...i)),o.pending=!1,this._drainQueue())),this._queue.push(o),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:Rt.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(o=>String(o.id)===t)){let o=this.acks[t];delete this.acks[t],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rt.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 Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.CONNECT_ERROR:this.destroy();let o=new Error(t.data.message);o.data=t.data.data,this.emitReserved("connect_error",o);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 o of r)o.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,o=!1;return function(...n){o||(o=!0,r.packet({type:Rt.ACK,id:t,data:n}))}}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:Rt.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 o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,t.data)}}};function gl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}gl.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?e+r:e-r}return Math.min(e,this.max)|0};gl.prototype.reset=function(){this.attempts=0};gl.prototype.setMin=function(e){this.ms=e};gl.prototype.setMax=function(e){this.max=e};gl.prototype.setJitter=function(e){this.jitter=e};var Rc=class extends Qt{constructor(t,r){var o;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,xa(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((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new gl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let n=r.parser||Gx;this.encoder=new n.Encoder,this.decoder=new n.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 wc(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=yn(r,"open",function(){o.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=yn(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{n(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(n),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(yn(t,"ping",this.onping.bind(this)),yn(t,"data",this.ondata.bind(this)),yn(t,"error",this.onerror.bind(this)),yn(t,"close",this.onclose.bind(this)),yn(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){ya(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let o=this.nsps[t];return o?this._autoConnect&&!o.active&&o.connect():(o=new Ec(this,t,r),this.nsps[t]=o),o}_destroy(t){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let o=0;o<r.length;o++)this.engine.write(r[o],t.options)}cleanup(){this.subs.forEach(t=>t()),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 o;this.cleanup(),(o=this.engine)===null||o===void 0||o.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 o=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Ff={};function zf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=wO(e,t.path||"/socket.io"),o=r.source,n=r.id,i=r.path,a=Ff[n]&&i in Ff[n].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new Rc(o,t):(Ff[n]||(Ff[n]=new Rc(o,t)),l=Ff[n]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(zf,{Manager:Rc,Socket:Ec,io:zf,connect:zf});var TO=`502
|
|
`;var bp=TO.trim();var qx=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(o=>o).join("/"),"sd-ppp/"].filter(o=>o).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=zf(t,{transports:["websocket"],path:r,query:{api_level:bp},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 NO(...e){return e.reduce((t,r)=>r(t),qx)}var fi=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,o){o.prehandleNodeType&&o.prehandleNodeType(t.nodeData||r);let n=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){n&&await n.call(this,...s);let l=new o(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 f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.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",bp)}};function IO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,o)=>{r.action=="extractPSD"&&Dr.graph.nodes.forEach(n=>{n.type=="SDPPP Get Document"&&fi.nodeMap.get(n)?.extractPSD(r.params.from_sid,"")}),o({})})}async importPSDDataURLFromPhotoshop(t,r){let o=await new Promise((i,a)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:bt.data.sid,document_identify:r}},s=>{i(s.data)})});var n=new FileReader;return n.readAsDataURL(o),new Promise(i=>{n.onloadend=function(){var a=n.result;i(a)}})}async exportPSDDataURLToPhotoshop(t,r,o){let n=await fetch(o).then(i=>i.arrayBuffer());await new Promise((i,a)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:bt.data.ssid,document_identify:r,data:n}},s=>{i(s)})})}async getImage(t,r){return new Promise((o,n)=>{this.socket.emit("B_photoshop",{action:"getImage",sid:t,params:r},i=>{i&&i.error?n(new Error(i.error)):o(i)})})}async sendImage(t,r){return new Promise((o,n)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?n(new Error(i.error)):o(i)})})}}}var $O={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var wp=[];va.widgetable=va.widgetable||{};va.widgetable.add=function(e,t){typeof t=="function"?wp.push([e,{formatter:t,setter:null}]):wp.push([e,t])};function Ep(e,t,r){let o=wp.find(([a])=>DO(a,e.type)),n=!1;if(o){let a=o[1].setter;a&&(n=!!a(e,t,r))}n||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(Dr.workflowManager||Dr.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function Fn(e){return e?.nodes.map(t=>{if(t.mode!=0)return;let r=Cp(t);if(!r||r.startsWith(".")||!t.widgets||t.widgets.length==0)return;let o=wp.find(([i])=>DO(i,t.type));if(o)try{let i=o[1].formatter(t);if(i)return i.id=t.id,i.uiWeightSum=i.widgets.reduce((a,s)=>a+(s.uiWeight||12),0),i}catch(i){return{id:t.id,title:r,uiWeightSum:12,widgets:[{outputType:"error",value:ve("convert widget {0} failed:",o[0])+(i.message||i||"")+(i?.stack||"")}]}}if(!r.startsWith("#"))return null;let n=t.widgets;return{id:t.id,title:r,uiWeightSum:n.reduce((i,a)=>i+(a.uiWeight||12),0),widgets:n.map(i=>({value:i.value,name:i.label||i.name,outputType:i.type||"string",options:i.options}))}}).filter(Boolean).sort((t,r)=>{let o=Cp(t),n=Cp(r);return o=o.startsWith("#")?o.slice(1).trim():o.trim(),n=n.startsWith("#")?n.slice(1).trim():n.trim(),o.localeCompare(n)})}function DO(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Cp(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}va.getNodeTitle=Cp;var Bz=new Map,Oc=Bz;function AO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=Dr.workflowManager||Dr.extensionManager.workflow,this.socket.on("F_workflow",async(r,o)=>{if(r.action=="open"||r.action=="save"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout")try{let n=await this[r.action](r.params);o(n||{})}catch(n){o({error:n.stack||n.message||n})}else o({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){let r=t.size,o=t.from_sid;for(let i=0;i<r;i++){let c=function(f){if(Object.keys(f).length>0){let d=Object.keys(f)[0];return{nodeID:parseInt(d),error:f[d].errors.map(JSON.stringify).join(`
|
|
`)}}return null};var n=c;let a=await Dr.graphToPrompt(),s=null,l="";try{let f=await hn.queuePrompt(0,a);f.node_errors&&(console.log("node_errors",f.node_errors),s=c(f.node_errors)),l=f.prompt_id}catch(f){f.response?s=c(f.response.node_errors):s={nodeID:0,error:f.stack}}if(s){bt.setLastError(s.error,s.nodeID);break}Oc.set(l,o);for(let f of a.workflow.nodes){let d=Dr.graph.getNodeById(f.id);if(d.widgets)for(let p of d.widgets)p.afterQueued&&p.afterQueued()}this.workflowManager.activeWorkflow.changeTracker.checkState()}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:o,value:n})=>{let i=Dr.graph.nodes.find(a=>a.id==r);!i||n==i.widgets[o].value||Ep(i,o,n)})}async open(t){let{workflow_path:r}=t;r.startsWith("sdppp://")?this.openSDPPPWorkflow(t):this.openComfyWorkflow(t)}async openSDPPPWorkflow(t){let r=t.from_sid,o=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+o).then(a=>a.json());await Dr.loadGraphData(n);let i=Fn(Dr.graph);bt.setCurrentForm(i),await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:r,params:{nodeIndexes:i.reduce((a,s)=>(s.widgets.forEach((l,c)=>{a.push({nodeTitle:s.title,widgetIndex:c})}),a),[])}},a=>{this.setWidgetValue(a)})}async openComfyWorkflow(t){let{workflow_path:r,from_sid:o,reset:n}=t,i=this.workflowManager.workflows.find(s=>s.fullFilename===r||s.path===r||s.path==="workflows/"+r);if((i.isOpen||this.workflowManager.isOpen?.(i))&&!n)return;this.workflowManager.openWorkflows.length===1?await Dr.loadGraphData($O):await MO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(s=>requestAnimationFrame(s)),await MO(this.workflowManager,i),await new Promise(s=>setTimeout(s,300));let a=Fn(Dr.graph);bt.setCurrentForm(a),await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:o,params:{nodeIndexes:a.reduce((s,l)=>(l.widgets.forEach((c,u)=>{s.push({nodeTitle:l.title,widgetIndex:u})}),s),[])}},s=>{this.setWidgetValue(s)})}async save(t){let{workflow_path:r,from_sid:o}=t,n=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!n)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=n.id&&this.open({workflow_path:r,from_sid:o,reset:!1}),n.changeTracker.checkState(),await this.workflowManager.saveWorkflow(n)}setNodeTitle(t){let{node_id:r,title:o}=t,n=Dr.graph.nodes.find(i=>i.id==r);if(!n)throw new Error("Node not found");n.title=o,n.setProperty("sdppp_widgetable_title",o)}}}async function MO(e,t){Dr.workflowManager==e?await t.load():(await e.openWorkflow(t),await Dr.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var zn=class e extends NO(ZR(bt,"comfy"),JR(vn,"photoshop"),IO,AO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};var Rp=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let o=this;r.callback=function(...n){o.widget!=this&&(o.widget=o.node.widgets[o.indexInNode]=this),o._callbacks.forEach(i=>i(...n))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},Op=class extends Rp{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}}},Wi=class e extends Op{static create(t,r){let o=Nx(),n=t.size.slice(0),i=t.addWidget("combo",r,o[0]||"",()=>{},{forceInput:!0,values:Nx});return i.serializeValue=async()=>{let a=dp(i.value);return a?JSON.stringify({instance_id:a.instance_id,identify:a.identify}):""},t.size=[n[0],Math.max(n[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let o=e.create(t,r.name),n=t.widgets.indexOf(r);return t.widgets[n]=t.widgets.pop(),o}constructor(t,r){super(t,r),this.onChange(o=>{if(!isNaN(+o))r.value=Object.keys(r.options.values)[+o];else if(typeof o=="string"){let n=o.split("/");jr.is_SPECIAL_DOCUMENT_CURRENT(n[1])&&(r.value=n[0]+"/"+jr.getSpecialDocumentCurrent())}})}update(){kO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(jr.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=vn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=Ix(r.data.documents[r.data.activeDocumentID].identify,t)}}},di=class extends Op{documentWidgetByLinked=null;extraOptions;constructor(t,r,o){super(t,r),this.extraOptions=o.extraOptions,this.update=this.update.bind(this),this.onChange(n=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof n=="string"&&(n=jr.fixI18n(n))})}static create(t,r,o){let n=t.size.slice(0),i=t.addWidget("combo",r,o.extraOptions[0]||"",()=>{},{forceInput:!0,values:o.extraOptions});return t.size=[n[0],Math.max(n[1],t.size[1])],new Kx(t,i,{documentWidgetInNode:o.documentWidgetInNode,extraOptions:o.extraOptions})}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=dp(t.widget.value);if(!r)return;r.documentData.layers.map(o=>{this.currentOptions.push(o.identify),this.currentOptionsDetail.push(o)})}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 o=this.currentOptionsDetail.findIndex(n=>n.fullPath==r.fullPath);if(o!=-1){this.widget.value=this.currentOptions[o];return}}}}},jz={extraOptions:[],documentWidgetInNode:null},Kx=class extends di{documentWidgetInNode;constructor(t,r,o=jz){super(t,r,o),this.documentWidgetInNode=o.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=YR(t.widget.value,this.extraOptions),kO(this.widget,this.widget.options.values))}},LO=0,_c=class extends Rp{constructor(t,r){if(!r){let o=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[o[0],Math.max(o[1],t.size[1])],r.serializeValue=async()=>{let n={ps_maxGetImageWH:bt.data.maxImageWH},i=$x(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{n.document=JSON.parse(a)}catch{return""}}return JSON.stringify(n)}}super(t,r),this.onChange(()=>{vn.storeCount()==0&&Date.now()-LO>3e3&&(LO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`<h2
|
|
style="color: var(--fg-color);">${ve("How to use .ccx file")}</h2><h4
|
|
style="color: var(--fg-color);">${ve("1. If you have installed Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ve("Just double click the .ccx file, it will install the plugin automatically")}</p><h4
|
|
style="color: var(--fg-color);">${ve("2. If you don't have Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ve("Rename .ccx to .zip and extract it into ")}<i>[${ve("Photoshop directory")}]/Plug-ins</i> ${ve("or")} <i>[${ve("Photoshop directory")}]/Plug-ins/Generator</i></p><img
|
|
width=400 src="/sd-ppp-static/ccx-help.png"/>
|
|
`)},300))})}update(){this.widget.label=vn.storeCount()>0&&zn.instance.id?ve("current ComfyUI pageid: {0}",zn.instance.id.slice(0,4)):ve("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function kO(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 ba=class extends fi{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new _c(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||QR()||(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(ve("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var _p=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},Bf=class extends _p{get documentWidget(){return FO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},jf=class extends _p{get documentWidget(){return FO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function FO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,o=e.graph.getNodeById(r);for(;o.type=="Reroute";)r=e.graph.links[o.inputs[0].link].origin_id,o=e.graph.getNodeById(r);return fi.nodeMap.get(o)}var mi=class extends ba{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof Bf||r instanceof jf));return t?t.documentWidget:this.widgets.find(r=>r instanceof Wi)}inputs=[];widgets=[];constructor(t){super(t);let r=null;for(let o=0;o<this.node.widgets?.length;o++){let n=this.node.widgets[o].name;if(!n||n=="sdppp")continue;let i=this.node.constructor.nodeData.input.required[n]||this.node.constructor.nodeData.input.optional[n];if(i){if(i[1].sdppp_type=="DOCUMENT_nameid"){let a=Wi.link(t,this.node.widgets[o]);r=r||a,this.widgets.push(a)}i[1].sdppp_type=="LAYER_select"&&(this.node.widgets[o].type="combo",this.widgets.push(new di(t,this.node.widgets[o],{extraOptions:jr.getSpecialLayerForGet()})))}}for(let o=0;o<this.node.inputs?.length;o++){let n=this.node.inputs[o].name,i=this.node.constructor.nodeData.input.required[n]||this.node.constructor.nodeData.input.optional[n];i[1].sdppp_type=="DOCUMENT"&&this.inputs.push(new Bf(t,o)),i[1].sdppp_type=="LAYER"&&this.inputs.push(new jf(t,o))}}async update(){this.node.widgets?.forEach(t=>{if(!t.label)try{t.label=ve(t.name)}catch{t.label=t.name}}),this.widgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(o=>{if(o.index==t){o.connected=r;let n=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(n),this.widgets.forEach(i=>{(i instanceof di||i instanceof _c)&&i.linkDocumentWidget(n)})}})}};var Pp=class extends mi{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Pc=class extends mi{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Tp=class extends mi{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Np=class extends mi{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Ip=class extends mi{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},$p=class extends ba{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;async update(){this.documentWidget?.lockMode(this.layerConnected,ve("document linked")),this.layerWidget?.lockMode(this.layerConnected,ve("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ve(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ve(this.node.widgets[1].name)),this.node.inputs[0].label=ve(this.node.inputs[0].name),this.node.outputs[0].label=ve(this.node.outputs[0].name)}constructor(t){let r=Wi.create(t,"document"),o=di.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:[]});super(t),this.documentWidget=r,this.layerWidget=o}layerConnected=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerConnected=r)}},Dp=class extends mi{get documentWidget(){return this.widgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&zn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd).then(async()=>{await new Promise(o=>setTimeout(o,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=vn.getAllPhotoshopDocumentData(),[o,n]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[o].sid,n):zn.instance.importPSDDataURLFromPhotoshop(r[o].sid,n).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=ve(t.name)),this.node.properties.psd?(bt.setHasPSDNodes(!0),this.psdWidget.label=ve("extract saved .psd to Photoshop")):(bt.setHasPSDNodes(!1),this.psdWidget.label=ve("save .psd to this workflow"))}};var Mp=class extends ba{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Wi.create(t,"document"),o=di.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:jr.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=o,this.node.widgets[0]=r.widget,this.node.widgets[1]=o.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(Lp["SDPPP Get Selection"],{pos:this.node.pos});new Pc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Lp.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]}}super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,ve("document linked")),this.layerWidget.lockMode(this.layerLinked,ve("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ve(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ve(this.node.widgets[1].name)),this.node.inputs[0].label=ve(this.node.inputs[0].name),this.node.inputs[1].label=ve(this.node.inputs[1].name),this.node.outputs[0].label=ve(this.node.outputs[0].name),this.node.outputs[1].label=ve(this.node.outputs[1].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},Ap=class extends ba{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Wi.create(t,"document"),o=di.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:jr.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=o}async update(){this.documentWidget?.lockMode(this.layerLinked,ve("document linked")),this.layerWidget?.lockMode(this.layerLinked,ve("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ve(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ve(this.node.widgets[1].name)),this.node.inputs[0].label=ve(this.node.inputs[0].name),this.node.inputs[1].label=ve(this.node.inputs[1].name),this.node.inputs[2].label=ve(this.node.inputs[2].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}};var Xx={"Get Image From Photoshop Layer":Mp,"Send Images To Photoshop":Ap,"SDPPP Get Text From Layer":$p,"SDPPP Parse Layer Info":Tp,"SDPPP Get Linked Layers":Ip,"SDPPP Get Layers In Group":Np,"SDPPP Get Layer By ID":Pp,"SDPPP Get Document":Dp,"SDPPP Get Selection":Pc},Lp={};function zO(e,t){let r=e.comfyClass||t.name;if(Lp[r]=t,r in Xx)e.title=ve(t.display_name),t.display_name=ve(t.display_name),fi.registerNodeType(e,t,Xx[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let o=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),n=!1;o.nodeData.nodes.forEach((i,a)=>{i.type in Xx&&(n=!0)}),n&&fi.registerNodeType(e,t,mi)}else return}var kR=E(yN(),1),FR=E(I(),1);var xN=`.sdppp-menu-container {
|
|
width: 70vw;
|
|
height: 65vh;
|
|
box-sizing: content-box;
|
|
overflow-y: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
min-width: 0;
|
|
}
|
|
.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;
|
|
}
|
|
.sdppp-menu-header span {
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
.sdppp-menu-header button {
|
|
text-align: center;
|
|
background: var(--comfy-input-bg);
|
|
}
|
|
.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 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
|
|
.workflow-edit-field {
|
|
color: var(--fg-color);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.sdppp-side-icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
mask-image: url("./sd-ppp-static/sdppp-icon.svg");
|
|
mask-size: 36px;
|
|
mask-position: center;
|
|
mask-repeat: no-repeat;
|
|
background-color: currentColor;
|
|
}
|
|
.sdppp-side-container {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
.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;
|
|
}
|
|
|
|
`;var Z4=E(I(),1);var wN=E(I(),1);var No=E(kt(),1),dj=()=>{let[e,t]=(0,wN.useState)(bt.data.maxImageWH),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()};return(0,No.jsxs)("div",{className:"settings-container",children:[(0,No.jsx)("h2",{children:ve("SDPPP Settings/Misc")}),(0,No.jsx)("div",{className:"settings-section",children:(0,No.jsx)("p",{children:ve("Comfy URL: {0}",location.origin)})}),(0,No.jsxs)("div",{className:"settings-section settings-row",children:[(0,No.jsx)("div",{className:"settings-label",children:(0,No.jsx)("label",{htmlFor:"maxImageSize",children:ve("Maximum Image Size (px):")})}),(0,No.jsx)("div",{className:"settings-control",children:(0,No.jsx)("input",{type:"number",id:"maxImageSize",value:e,onChange:o=>{let n=o.currentTarget.value?parseInt(o.currentTarget.value):0;isNaN(n)||(bt.setMaxImageWH(n),t(n),hn.storeSetting("sdppp.maxImageWH",n))},min:"256"})})]}),(0,No.jsxs)("div",{className:"settings-section settings-row",children:[(0,No.jsx)("div",{className:"settings-label",children:(0,No.jsx)("label",{children:ve("Photoshop plugin")})}),(0,No.jsx)("div",{className:"settings-control",children:(0,No.jsx)("button",{onClick:r,className:"download-button",children:ve("Download")})})]})]})},EN=dj;var Q4=E(I(),1);var dh=E(I(),1);var ON=E(I(),1);var RN=E(I(),1);function iu(e){return{flex:`${e} 0 calc(${e/12*100}% - 10px)`}}var Xi=class extends ON.default.Component{computeUIWeightCSS(t){return iu(t)}};var sh=E(kt(),1),lh=class extends Xi{state={filter:""};handleSelectUpdate=(t,r)=>{this.props.onSelectUpdate(t,r),this.setState({filter:""})};render(){let{options:t,value:r}=this.props;return(0,sh.jsx)("sp-picker",{class:"sdppp-dropdown-widget",size:"s",style:{...this.computeUIWeightCSS(this.props.uiWeight)},children:(0,sh.jsx)("sp-menu",{slot:"options",children:t.map((o,n)=>this.state.filter&&!o.includes(this.state.filter)?"":(0,sh.jsx)("sp-menu-item",{...ah(o)===ah(r)?{selected:!0}:{},onClick:()=>this.handleSelectUpdate(o,n),children:ah(o)},ah(o)))})})}};function ah(e){return typeof e=="string"?e:e.content}var _N=E(kt(),1),ch=class extends Xi{onInput=t=>{let r=+t.target.value;this.setState({value:+r.toFixed(3)}),this.props.onValueChange(r)};render(){let t=+(this.props.value||0).toFixed(3);return(0,_N.jsx)("sp-textfield",{style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:this.onInput,value:t})}};var PN=E(I(),1);var Md=E(kt(),1);var uh=class extends Xi{hiddenDivRef=PN.default.createRef();heightChecker=setInterval(()=>{if(this.hiddenDivRef.current){let t=this.hiddenDivRef.current.offsetHeight;t!==this.state.hiddenDivHeight&&this.setState({hiddenDivHeight:t,textfieldRerender:this.state.editing?2:1})}},16);debounceTimeout=null;state={hiddenDivHeight:0,editing:!1,textfieldRerender:0};componentWillUnmount(){clearInterval(this.heightChecker),this.debounceTimeout&&clearTimeout(this.debounceTimeout)}onInput=t=>{let r=t.target.value;this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.props.onValueChange(r)},300)};onFocus=()=>{this.setState({editing:!0})};onBlur=()=>{let t={textfieldRerender:this.state.textfieldRerender,editing:!1};this.state.textfieldRerender==2&&(t.textfieldRerender=1),this.setState(t)};shouldComponentUpdate(t,r){return r.textfieldRerender==1&&r.textfieldRerender!=this.state.textfieldRerender&&Promise.resolve().then(async()=>{await new Promise(requestAnimationFrame),this.setState({textfieldRerender:0})}),!0}render(){return(0,Md.jsxs)("div",{className:"widget-container",style:{...this.computeUIWeightCSS(this.props.uiWeight),position:"relative",height:Math.max(55,this.state.hiddenDivHeight)},children:[this.state.textfieldRerender==1?"":(0,Md.jsx)("sp-textarea",{style:{position:"absolute",height:"100%",width:"100%",top:0,left:0},value:this.props.value,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),(0,Md.jsx)("p",{ref:this.hiddenDivRef,style:{fontSize:14,visibility:"hidden",whiteSpace:"pre-line"},children:this.props.value})]})}};var TN=E(kt(),1),fh=class extends Xi{onInput=t=>{let r=!!t.target.value;this.setState({value:r}),this.props.onValueChange(r)};render(){let t=this.props.value?{checked:!0}:{};return(0,TN.jsx)("sp-checkbox",{label:this.props.name||"",style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:r=>{this.props.onValueChange(r.target.checked)},...t,children:this.props.name||""})}};var vo=E(kt(),1);function hC({formDatas:e,onWidgetRender:t,onWidgetChange:r,onTitleRender:o}){let n=(0,dh.useMemo)(()=>e.map(i=>{let a=(s,l,c)=>{if(!s.keepRender)return s;if(l.outputType==="error")return s.result.push((0,vo.jsx)("span",{className:"list-error-label",children:l.value})),s;if(!t?.(s,i,l,c))if(l.outputType==="number"){let u=l.options?.min??0,f=l.options?.max??100,d=l.options?.step??1;s.result.push((0,vo.jsx)(ch,{uiWeight:l.uiWeight||12,inputMin:u,inputMax:f,inputStep:d,value:parseFloat(l.value),onValueChange:p=>{r(i.id,c,p,i)}},c))}else l.outputType==="combo"?s.result.push((0,vo.jsx)(lh,{uiWeight:l.uiWeight||12,options:l.options?.values||[],onSelectUpdate:u=>{r(i.id,c,u,i)},value:l.value},c)):l.outputType==="toggle"?s.result.push((0,vo.jsx)(fh,{uiWeight:l.uiWeight||12,name:l.name,value:l.value,onValueChange:u=>{r(i.id,c,u,i)}},c)):s.result.push((0,vo.jsx)(uh,{uiWeight:l.uiWeight||12,value:typeof l.value=="string"?l.value:JSON.stringify(l.value),onValueChange:u=>{r(i.id,c,u,i)}},c));return s};return(0,vo.jsxs)("div",{className:"workflow-edit-field",children:[(0,vo.jsx)("div",{className:"workflow-edit-field-title",title:i.title,style:{...iu(i.uiWeightSum<=8&&i.widgets.length==1?4:12)},children:o?o(i.title,i):(0,vo.jsx)("span",{children:i.title})}),i.widgets.reduce(a,{keepRender:!0,result:[]}).result.map((s,l)=>(0,vo.jsx)(gC,{children:s},l))]},i.id)}),[e,t,r,o]);return(0,vo.jsxs)(vo.Fragment,{children:[e?.length?"":(0,vo.jsx)("span",{className:"list-error-label",children:ve("no suitable node to control in this workflow")}),(0,vo.jsx)("div",{className:"workflow-edit-content",children:n})]})}var gC=class extends dh.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,vo.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},J.apply(null,arguments)}var Ih=E(I());function ue(e){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(e)}var mj=Symbol.for("react.element"),pj=Symbol.for("react.transitional.element"),gj=Symbol.for("react.fragment");function Ad(e){return e&&ue(e)==="object"&&(e.$$typeof===mj||e.$$typeof===pj)&&e.type===gj}var NN=E(I());function wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return NN.default.Children.forEach(e,function(o){o==null&&!t.keepEmpty||(Array.isArray(o)?r=r.concat(wi(o)):Ad(o)&&o.props?r=r.concat(wi(o.props.children,t)):r.push(o))}),r}var vC={},hj=[],vj=function(t){hj.push(t)};function Il(e,t){if(0)var r}function yj(e,t){if(0)var r}function IN(){vC={}}function $N(e,t,r){!t&&!vC[r]&&(e(!1,r),vC[r]=!0)}function ph(e,t){$N(Il,e,t)}function DN(e,t){$N(yj,e,t)}ph.preMessage=vj;ph.resetWarned=IN;ph.noteOnce=DN;var Vt=ph;function MN(e,t){if(ue(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(ue(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gh(e){var t=MN(e,"string");return ue(t)=="symbol"?t:t+""}function T(e,t,r){return(t=gh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AN(Object(r),!0).forEach(function(o){T(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AN(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var LN=E(I()),yC=E(Ci());function $l(e){return e instanceof HTMLElement||e instanceof SVGElement}function xj(e){return e&&ue(e)==="object"&&$l(e.nativeElement)?e.nativeElement:$l(e)?e:null}function Dl(e){var t=xj(e);if(t)return t;if(e instanceof LN.default.Component){var r;return(r=yC.default.findDOMNode)===null||r===void 0?void 0:r.call(yC.default,e)}return null}var Oh=E(I()),Ld=E(BN());var jN=E(I());function Yi(e,t,r){var o=jN.useRef({});return(!("value"in o.current)||r(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var Cj=Number(Oh.version.split(".")[0]),kd=function(t,r){typeof t=="function"?t(r):ue(t)==="object"&&t&&"current"in t&&(t.current=r)},Ar=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var n=r.filter(Boolean);return n.length<=1?n[0]:function(i){r.forEach(function(a){kd(a,i)})}},Rn=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Yi(function(){return Ar.apply(void 0,r)},r,function(n,i){return n.length!==i.length||n.every(function(a,s){return a!==i[s]})})},Ei=function(t){var r,o;if(!t)return!1;if(WN(t)&&Cj>=19)return!0;var n=(0,Ld.isMemo)(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==Ld.ForwardRef||typeof t=="function"&&!((o=t.prototype)!==null&&o!==void 0&&o.render)&&t.$$typeof!==Ld.ForwardRef)};function WN(e){return(0,Oh.isValidElement)(e)&&!Ad(e)}var Ps=function(t){if(t&&WN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Lr=E(I());var Ri=E(I()),_h=Ri.createContext(null);function VN(e){var t=e.children,r=e.onBatchResize,o=Ri.useRef(0),n=Ri.useRef([]),i=Ri.useContext(_h),a=Ri.useCallback(function(s,l,c){o.current+=1;var u=o.current;n.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===o.current&&(r?.(n.current),n.current=[])}),i?.(s,l,c)},[r,i]);return Ri.createElement(_h.Provider,{value:a},t)}var UN=function(){if(typeof Map<"u")return Map;function e(t,r){var o=-1;return t.some(function(n,i){return n[0]===r?(o=i,!0):!1}),o}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 o=e(this.__entries__,r),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(r,o){var n=e(this.__entries__,r);~n?this.__entries__[n][1]=o:this.__entries__.push([r,o])},t.prototype.delete=function(r){var o=this.__entries__,n=e(o,r);~n&&o.splice(n,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,o){o===void 0&&(o=null);for(var n=0,i=this.__entries__;n<i.length;n++){var a=i[n];r.call(o,a[1],a[0])}},t}()}(),bC=typeof window<"u"&&typeof document<"u"&&window.document===document,Ph=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),wj=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ph):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ej=2;function Rj(e,t){var r=!1,o=!1,n=0;function i(){r&&(r=!1,e()),o&&s()}function a(){wj(i)}function s(){var l=Date.now();if(r){if(l-n<Ej)return;o=!0}else r=!0,o=!1,setTimeout(a,t);n=l}return s}var Oj=20,_j=["top","right","bottom","left","width","height","size","weight"],Pj=typeof MutationObserver<"u",Tj=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Rj(this.refresh.bind(this),Oj)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,o=r.indexOf(t);~o&&r.splice(o,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!bC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pj?(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(){!bC||!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,o=r===void 0?"":r,n=_j.some(function(i){return!!~o.indexOf(i)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),GN=function(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var n=o[r];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},au=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ph},qN=Nh(0,0,0,0);function Th(e){return parseFloat(e)||0}function HN(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(o,n){var i=e["border-"+n+"-width"];return o+Th(i)},0)}function Nj(e){for(var t=["top","right","bottom","left"],r={},o=0,n=t;o<n.length;o++){var i=n[o],a=e["padding-"+i];r[i]=Th(a)}return r}function Ij(e){var t=e.getBBox();return Nh(0,0,t.width,t.height)}function $j(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return qN;var o=au(e).getComputedStyle(e),n=Nj(o),i=n.left+n.right,a=n.top+n.bottom,s=Th(o.width),l=Th(o.height);if(o.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=HN(o,"left","right")+i),Math.round(l+a)!==r&&(l-=HN(o,"top","bottom")+a)),!Mj(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Nh(n.left,n.top,s,l)}var Dj=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof au(e).SVGGraphicsElement}:function(e){return e instanceof au(e).SVGElement&&typeof e.getBBox=="function"}}();function Mj(e){return e===au(e).document.documentElement}function Aj(e){return bC?Dj(e)?Ij(e):$j(e):qN}function Lj(e){var t=e.x,r=e.y,o=e.width,n=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return GN(a,{x:t,y:r,width:o,height:n,top:r,right:t+o,bottom:n+r,left:t}),a}function Nh(e,t,r,o){return{x:e,y:t,width:r,height:o}}var kj=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Nh(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Aj(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Fj=function(){function e(t,r){var o=Lj(r);GN(this,{target:t,contentRect:o})}return e}(),zj=function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new UN,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=o}return e.prototype.observe=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 au(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new kj(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 au(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(o){return new Fj(o.target,o.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}(),KN=typeof WeakMap<"u"?new WeakMap:new UN,XN=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=Tj.getInstance(),o=new zj(t,r,this);KN.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){XN.prototype[e]=function(){var t;return(t=KN.get(this))[e].apply(t,arguments)}});var Bj=function(){return typeof Ph.ResizeObserver<"u"?Ph.ResizeObserver:XN}(),YN=Bj;var Ts=new Map;function jj(e){e.forEach(function(t){var r,o=t.target;(r=Ts.get(o))===null||r===void 0||r.forEach(function(n){return n(o)})})}var QN=new YN(jj);function ZN(e,t){Ts.has(e)||(Ts.set(e,new Set),QN.observe(e)),Ts.get(e).add(t)}function JN(e,t){Ts.has(e)&&(Ts.get(e).delete(t),Ts.get(e).size||(QN.unobserve(e),Ts.delete(e)))}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eI(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,gh(o.key),o)}}function lt(e,t,r){return t&&eI(e.prototype,t),r&&eI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ns(e,t){return Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ns(e,t)}function _r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ns(e,t)}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ml(e)}function Fd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fd=function(){return!!e})()}function Je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tI(e,t){if(t&&(ue(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Je(e)}function Pr(e){var t=Fd();return function(){var r,o=Ml(e);if(t){var n=Ml(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return tI(this,r)}}var rI=E(I()),oI=function(e){_r(r,e);var t=Pr(r);function r(){return st(this,r),t.apply(this,arguments)}return lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(rI.Component);function Wj(e,t){var r=e.children,o=e.disabled,n=Lr.useRef(null),i=Lr.useRef(null),a=Lr.useContext(_h),s=typeof r=="function",l=s?r(n):r,c=Lr.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&Lr.isValidElement(l)&&Ei(l),f=u?Ps(l):null,d=Rn(f,n),p=function(){var g;return Dl(n.current)||(n.current&&ue(n.current)==="object"?Dl((g=n.current)===null||g===void 0?void 0:g.nativeElement):null)||Dl(i.current)};Lr.useImperativeHandle(t,function(){return p()});var h=Lr.useRef(e);h.current=e;var v=Lr.useCallback(function(y){var g=h.current,m=g.onResize,x=g.data,b=y.getBoundingClientRect(),S=b.width,w=b.height,C=y.offsetWidth,R=y.offsetHeight,_=Math.floor(S),O=Math.floor(w);if(c.current.width!==_||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==R){var N={width:_,height:O,offsetWidth:C,offsetHeight:R};c.current=N;var k=C===Math.round(S)?S:C,A=R===Math.round(w)?w:R,W=P(P({},N),{},{offsetWidth:k,offsetHeight:A});a?.(W,y,x),m&&Promise.resolve().then(function(){m(W,y)})}},[]);return Lr.useEffect(function(){var y=p();return y&&!o&&ZN(y,v),function(){return JN(y,v)}},[n.current,o]),Lr.createElement(oI,{ref:i},u?Lr.cloneElement(l,{ref:d}):l)}var Vj=Lr.forwardRef(Wj),nI=Vj;var Hj="rc-observer-key";function Uj(e,t){var r=e.children,o=typeof r=="function"?[r]:wi(r);return o.map(function(n,i){var a=n?.key||"".concat(Hj,"-").concat(i);return Ih.createElement(nI,J({},e,{key:a,ref:i===0?t:void 0}),n)})}var iI=Ih.forwardRef(Uj);iI.Collection=VN;var an=iI;function zd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function aI(e){if(Array.isArray(e))return zd(e)}function $h(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function su(e,t){if(e){if(typeof e=="string")return zd(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zd(e,t):void 0}}function sI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(e){return aI(e)||$h(e)||su(e)||sI()}var cI=function(t){return+setTimeout(t,16)},uI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(cI=function(t){return window.requestAnimationFrame(t)},uI=function(t){return window.cancelAnimationFrame(t)});var lI=0,CC=new Map;function fI(e){CC.delete(e)}var dI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;lI+=1;var o=lI;function n(i){if(i===0)fI(o),t();else{var a=cI(function(){n(i-1)});CC.set(o,a)}}return n(r),o};dI.cancel=function(e){var t=CC.get(e);return fI(e),uI(t)};var ct=dI;var nr=E(I());function Dh(e){if(Array.isArray(e))return e}function mI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,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=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}function Mh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(e,t){return Dh(e)||mI(e,t)||su(e,t)||Mh()}function Gj(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 Is=Gj;function Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function lu(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 pI="data-rc-order",gI="data-rc-priority",qj="rc-util-key",wC=new Map;function hI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qj}function Ah(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Kj(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function EC(e){return Array.from((wC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function vI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xt())return null;var r=t.csp,o=t.prepend,n=t.priority,i=n===void 0?0:n,a=Kj(o),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(pI,a),s&&i&&l.setAttribute(gI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Ah(t),u=c.firstChild;if(o){if(s){var f=(t.styles||EC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(pI)))return!1;var p=Number(d.getAttribute(gI)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function yI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ah(t);return(t.styles||EC(r)).find(function(o){return o.getAttribute(hI(t))===e})}function Qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=yI(e,t);if(r){var o=Ah(t);o.removeChild(r)}}function Xj(e,t){var r=wC.get(e);if(!r||!lu(document,r)){var o=vI("",t),n=o.parentNode;wC.set(e,n),e.removeChild(o)}}function yo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Ah(r),n=EC(o),i=P(P({},r),{},{styles:n});Xj(o,i);var a=yI(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=vI(e,i);return u.setAttribute(hI(i),t),u}var II=E(I());function xI(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Me(e,t){if(e==null)return{};var r,o,n=xI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yj(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=new Set;function n(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=o.has(i);if(Vt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;o.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!n(i[u],a[u],c))return!1;return!0}if(i&&a&&ue(i)==="object"&&ue(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(d){return n(i[d],a[d],c)})}return!1}return n(e,t)}var Zi=Yj;var kh=E(I());var Qj="%";function Lh(e){return e.join(Qj)}var Zj=function(){function e(t){st(this,e),T(this,"instanceId",void 0),T(this,"cache",new Map),this.instanceId=t}return lt(e,[{key:"get",value:function(r){return this.opGet(Lh(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,o){return this.opUpdate(Lh(r),o)}},{key:"opUpdate",value:function(r,o){var n=this.cache.get(r),i=o(n);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),SI=Zj;var Ji="data-token-hash",Io="data-css-hash";var Oi="__cssinjs_instance__";function bI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Io,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(n){n[Oi]=n[Oi]||e,n[Oi]===e&&document.head.insertBefore(n,r)});var o={};Array.from(document.querySelectorAll("style[".concat(Io,"]"))).forEach(function(n){var i=n.getAttribute(Io);if(o[i]){if(n[Oi]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else o[i]=!0})}return new SI(e)}var Jj=kh.createContext({hashPriority:"low",cache:bI(),defaultCache:!0});var _i=Jj;var t5="CALC_UNIT",hre=new RegExp(t5,"g");function r5(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Bd=function(){function e(){st(this,e),T(this,"cache",void 0),T(this,"keys",void 0),T(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return lt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var o,n,i=arguments.length>1&&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)}}),(o=a)!==null&&o!==void 0&&o.value&&i&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(r){var o;return(o=this.internalGet(r,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,o){var n=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 f=j(c,2),d=f[1];return n.internalGet(u)[1]<d?[u,n.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=j(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[o,n.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,o){var n=r.get(o[0]);if(o.length===1){var i;return n.map?r.set(o[0],{map:n.map}):r.delete(o[0]),(i=n.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(n.map,o.slice(1));return(!n.map||n.map.size===0)&&!n.value&&r.delete(o[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(o){return!r5(o,r)}),this.deleteByPath(this.cache,r)}}]),e}();T(Bd,"MAX_CACHE_SIZE",20);T(Bd,"MAX_CACHE_OFFSET",5);var CI=0,cu=function(){function e(t){st(this,e),T(this,"derivatives",void 0),T(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=CI,t.length===0&&Il(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),CI+=1}return lt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(o,n){return n(r,o)},void 0)}}]),e}();var RC=new Bd;function $s(e){var t=Array.isArray(e)?e:[e];return RC.has(t)||RC.set(t,new cu(t)),RC.get(t)}var n5=new WeakMap,OC={};function EI(e,t){for(var r=n5,o=0;o<t.length;o+=1){var n=t[o];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(OC)||r.set(OC,e()),r.get(OC)}var wI=new WeakMap;function uu(e){var t=wI.get(e)||"";return t||(Object.keys(e).forEach(function(r){var o=e[r];t+=r,o instanceof cu?t+=o.id:o&&ue(o)==="object"?t+=uu(o):t+=o}),t=Is(t),wI.set(e,t)),t}function _C(e,t){return Is("".concat(t,"_").concat(uu(e)))}var ooe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var jd=Xt();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function Ds(e,t,r){var o,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=P(P({},n),{},(o={},T(o,Ji,t),T(o,Io,r),o)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var fu=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()},i5=function(t,r,o){return Object.keys(t).length?".".concat(r).concat(o!=null&&o.scope?".".concat(o.scope):"","{").concat(Object.entries(t).map(function(n){var i=j(n,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Fh=function(t,r,o){var n={},i={};return Object.entries(t).forEach(function(a){var s,l,c=j(a,2),u=c[0],f=c[1];if(o!=null&&(s=o.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(o!=null&&(l=o.ignore)!==null&&l!==void 0&&l[u])){var d,p=fu(u,o?.prefix);n[p]=typeof f=="number"&&!(o!=null&&(d=o.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(p,")")}}),[i,i5(n,r,{scope:o?.scope})]};var zh=E(I());var du=E(I());var RI=Xt()?du.useLayoutEffect:du.useEffect,OI=function(t,r){var o=du.useRef(!0);RI(function(){return t(o.current)},r),RI(function(){return o.current=!1,function(){o.current=!0}},[])},Al=function(t,r){OI(function(o){if(!o)return t()},r)},vt=OI;var PC=E(I()),a5=P({},PC),_I=a5.useInsertionEffect,s5=function(t,r,o){PC.useMemo(t,o),vt(function(){return r(!0)},o)},l5=_I?function(e,t,r){return _I(function(){return e(),t()},r)}:s5,PI=l5;var TC=E(I()),c5=P({},TC),u5=c5.useInsertionEffect,f5=function(t){var r=[],o=!1;function n(i){o||r.push(i)}return TC.useEffect(function(){return o=!1,function(){o=!0,r.length&&r.forEach(function(i){return i()})}},t),n},d5=function(){return function(t){t()}},m5=typeof u5<"u"?f5:d5,TI=m5;function p5(){return!1}var NI=p5;function Ll(e,t,r,o,n){var i=zh.useContext(_i),a=i.cache,s=[e].concat(se(t)),l=Lh(s),c=TI([l]),u=NI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],m=j(g,2),x=m[0],b=x===void 0?0:x,S=m[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};zh.useMemo(function(){f()},[l]);var d=a.opGet(l),p=d[1];return PI(function(){n?.(p)},function(h){return f(function(v){var y=j(v,2),g=y[0],m=y[1];return h&&g===0&&n?.(p),[g+1,m]}),function(){a.opUpdate(l,function(v){var y=v||[],g=j(y,2),m=g[0],x=m===void 0?0:m,b=g[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&o?.(b,!1)}),null):[x-1,b]})}},[l]),p}var g5={},h5="css",kl=new Map;function v5(e){kl.set(e,(kl.get(e)||0)+1)}function y5(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Ji,'="').concat(e,'"]'));r.forEach(function(o){if(o[Oi]===t){var n;(n=o.parentNode)===null||n===void 0||n.removeChild(o)}})}}var x5=0;function S5(e,t){kl.set(e,(kl.get(e)||0)-1);var r=Array.from(kl.keys()),o=r.filter(function(n){var i=kl.get(n)||0;return i<=0});r.length-o.length>x5&&o.forEach(function(n){y5(n,t),kl.delete(n)})}var $I=function(t,r,o,n){var i=o.getDerivativeToken(t),a=P(P({},i),r);return n&&(a=n(a)),a},NC="token";function Bh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=(0,II.useContext)(_i),n=o.cache.instanceId,i=o.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?g5:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,p=EI(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),h=uu(p),v=uu(c),y=d?uu(d):"",g=Ll(NC,[s,e.id,h,v,y],function(){var m,x=f?f(p,c,e):$I(p,c,e,u),b=P({},x),S="";if(d){var w=Fh(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=j(w,2);x=C[0],S=C[1]}var R=_C(x,s);x._tokenKey=R,b._tokenKey=_C(b,s);var _=(m=d?.key)!==null&&m!==void 0?m:R;x._themeKey=_,v5(_);var O="".concat(h5,"-").concat(Is(R));return x._hashId=O,[x,O,b,S,d?.key||""]},function(m){S5(m[0]._themeKey,n)},function(m){var x=j(m,4),b=x[0],S=x[3];if(d&&S){var w=yo(S,Is("css-variables-".concat(b._themeKey)),{mark:Io,prepend:"queue",attachTo:i,priority:-999});w[Oi]=n,w.setAttribute(Ji,b._themeKey)}});return g}var DI=function(t,r,o){var n=j(t,5),i=n[2],a=n[3],s=n[4],l=o||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Ds(a,s,u,d,c);return[f,u,p]};var i2=E(I());var Ls=E(I());var b5={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},IC=b5;var jh="comm",Wh="rule",Vh="decl";var MI="@import";var AI="@namespace",LI="@keyframes";var kI="@layer";var $C=Math.abs,Wd=String.fromCharCode;function Hh(e){return e.trim()}function Vd(e,t,r){return e.replace(t,r)}function FI(e,t,r){return e.indexOf(t,r)}function Ms(e,t){return e.charCodeAt(t)|0}function As(e,t,r){return e.slice(t,r)}function On(e){return e.length}function zI(e){return e.length}function mu(e,t){return t.push(e),e}var Uh=1,pu=1,BI=0,Kn=0,Vr=0,hu="";function Gh(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Uh,column:pu,length:a,return:"",siblings:s}}function jI(){return Vr}function WI(){return Vr=Kn>0?Ms(hu,--Kn):0,pu--,Vr===10&&(pu=1,Uh--),Vr}function Xn(){return Vr=Kn<BI?Ms(hu,Kn++):0,pu++,Vr===10&&(pu=1,Uh++),Vr}function $a(){return Ms(hu,Kn)}function Hd(){return Kn}function qh(e,t){return As(hu,e,t)}function gu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VI(e){return Uh=pu=1,BI=On(hu=e),Kn=0,[]}function HI(e){return hu="",e}function Kh(e){return Hh(qh(Kn-1,DC(e===91?e+2:e===40?e+1:e)))}function UI(e){for(;(Vr=$a())&&Vr<33;)Xn();return gu(e)>2||gu(Vr)>3?"":" "}function GI(e,t){for(;--t&&Xn()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return qh(e,Hd()+(t<6&&$a()==32&&Xn()==32))}function DC(e){for(;Xn();)switch(Vr){case e:return Kn;case 34:case 39:e!==34&&e!==39&&DC(Vr);break;case 40:e===41&&DC(e);break;case 92:Xn();break}return Kn}function qI(e,t){for(;Xn()&&e+Vr!==57;)if(e+Vr===84&&$a()===47)break;return"/*"+qh(t,Kn-1)+"*"+Wd(e===47?e:Xn())}function KI(e){for(;!gu($a());)Xn();return qh(e,Kn)}function QI(e){return HI(Xh("",null,null,null,[""],e=VI(e),0,[0],e))}function Xh(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,f=a,d=0,p=0,h=0,v=1,y=1,g=1,m=0,x="",b=n,S=i,w=o,C=x;y;)switch(h=m,m=Xn()){case 40:if(h!=108&&Ms(C,f-1)==58){FI(C+=Vd(Kh(m),"&","&\f"),"&\f",$C(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:C+=Kh(m);break;case 9:case 10:case 13:case 32:C+=UI(h);break;case 92:C+=GI(Hd()-1,7);continue;case 47:switch($a()){case 42:case 47:mu(C5(qI(Xn(),Hd()),t,r,l),l),(gu(h||1)==5||gu($a()||1)==5)&&On(C)&&As(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=On(C)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+u:g==-1&&(C=Vd(C,/\f/g,"")),p>0&&(On(C)-f||v===0&&h===47)&&mu(p>32?YI(C+";",o,r,f-1,l):YI(Vd(C," ","")+";",o,r,f-2,l),l);break;case 59:C+=";";default:if(mu(w=XI(C,t,r,c,u,n,s,x,b=[],S=[],f,i),i),m===123)if(u===0)Xh(C,t,w,w,b,i,f,s,S);else{switch(d){case 99:if(Ms(C,3)===110)break;case 108:if(Ms(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Xh(e,w,w,o&&mu(XI(e,w,w,0,0,n,s,x,n,b=[],f,S),S),n,S,f,s,o?b:S):Xh(C,w,w,w,[""],S,0,s,S)}}c=u=p=0,v=g=1,x=C="",f=a;break;case 58:f=1+On(C),p=h;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&WI()==125)continue}switch(C+=Wd(m),m*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(On(C)-1)*g,g=1;break;case 64:$a()===45&&(C+=Kh(Xn())),d=$a(),u=f=On(x=C+=KI(Hd())),m++;break;case 45:h===45&&On(C)==2&&(v=0)}}return i}function XI(e,t,r,o,n,i,a,s,l,c,u,f){for(var d=n-1,p=n===0?i:[""],h=zI(p),v=0,y=0,g=0;v<o;++v)for(var m=0,x=As(e,d+1,d=$C(y=a[v])),b=e;m<h;++m)(b=Hh(y>0?p[m]+" "+x:Vd(x,/&\f/g,p[m])))&&(l[g++]=b);return Gh(e,t,r,n===0?Wh:s,l,c,u,f)}function C5(e,t,r,o){return Gh(e,t,r,jh,Wd(jI()),As(e,2,-2),0,o)}function YI(e,t,r,o,n){return Gh(e,t,r,Vh,As(e,0,o),As(e,o+1,-1),o,n)}function Yh(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function ZI(e,t,r,o){switch(e.type){case kI:if(e.children.length)break;case MI:case AI:case Vh:return e.return=e.return||e.value;case jh:return"";case LI:return e.return=e.value+"{"+Yh(e.children,o)+"}";case Wh:if(!On(e.value=e.props.join(",")))return""}return On(r=Yh(e.children,o))?e.return=e.value+"{"+r+"}":""}var MC="data-ant-cssinjs-cache-path",AC="_FILE_STYLE__";var Fl,JI=!0;function _5(){if(!Fl&&(Fl={},Xt())){var e=document.createElement("div");e.className=MC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(n){var i=n.split(":"),a=j(i,2),s=a[0],l=a[1];Fl[s]=l});var r=document.querySelector("style[".concat(MC,"]"));if(r){var o;JI=!1,(o=r.parentNode)===null||o===void 0||o.removeChild(r)}document.body.removeChild(e)}}function e2(e){return _5(),!!Fl[e]}function t2(e){var t=Fl[e],r=null;if(t&&Xt())if(JI)r=AC;else{var o=document.querySelector("style[".concat(Io,'="').concat(Fl[e],'"]'));o?r=o.innerHTML:delete Fl[e]}return[r,t]}var P5="_skip_check_",o2="_multi_value_";function Qh(e){var t=Yh(QI(e),ZI);return t.replace(/\{%%%\:[^;];}/g,";")}function T5(e){return ue(e)==="object"&&e&&(P5 in e||o2 in e)}function r2(e,t,r){if(!t)return e;var o=".".concat(t),n=r==="low"?":where(".concat(o,")"):o,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(n).concat(c.slice(u.length)),[c].concat(se(l.slice(1))).join(" ")});return i.join(",")}var N5=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=o.root,i=o.injectHash,a=o.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,d=f===void 0?[]:f,p=r.linters,h=p===void 0?[]:p,v="",y={};function g(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=j(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function m(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?m(w,S):w&&S.push(w)}),S}var x=m(Array.isArray(t)?t:[t]);return x.forEach(function(b){var S=typeof b=="string"&&!n?{}:b;if(typeof S=="string")v+="".concat(S,`
|
|
`);else if(S._keyframe)g(S);else{var w=d.reduce(function(C,R){var _;return(R==null||(_=R.visit)===null||_===void 0?void 0:_.call(R,C))||C},S);Object.keys(w).forEach(function(C){var R=w[C];if(ue(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!T5(R)){var _=!1,O=C.trim(),N=!1;(n||i)&&s?O.startsWith("@")?_=!0:O==="&"?O=r2("",s,u):O=r2(C,s,u):n&&!s&&(O==="&"||O==="")&&(O="",N=!0);var k=e(R,r,{root:N,injectHash:_,parentSelectors:[].concat(se(a),[O])}),A=j(k,2),W=A[0],L=A[1];y=P(P({},y),L),v+="".concat(O).concat(W)}else{let H=function(z,B){var U=z.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),V=B;!IC[z]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),z==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(g(B),V=B.getName(s)),v+="".concat(U,":").concat(V,";")};var F=H,$,D=($=R?.value)!==null&&$!==void 0?$:R;ue(R)==="object"&&R!==null&&R!==void 0&&R[o2]&&Array.isArray(D)?D.forEach(function(z){H(C,z)}):H(C,D)}})}}),n?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
|
|
`))):v="{".concat(v,"}"),[v,y]};function LC(e,t){return Is("".concat(e.join("%")).concat(t))}function I5(){return null}var kC="style";function ks(e,t){var r=e.token,o=e.path,n=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=Ls.useContext(_i),f=u.autoClear,d=u.mock,p=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,m=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,se(o));var C=jd,R=Ll(kC,w,function(){var A=w.join("|");if(e2(A)){var W=t2(A),L=j(W,2),$=L[0],D=L[1];if($)return[$,S,D,{},s,c]}var F=t(),H=N5(F,{hashId:n,hashPriority:h,layer:b?i:void 0,path:o.join("-"),transformers:g,linters:m}),z=j(H,2),B=z[0],U=z[1],V=Qh(B),M=LC(w,V);return[V,S,M,U,s,c]},function(A,W){var L=j(A,3),$=L[2];(W||f)&&jd&&Qi($,{mark:Io})},function(A){var W=j(A,4),L=W[0],$=W[1],D=W[2],F=W[3];if(C&&L!==AC){var H={mark:Io,prepend:b?!1:"queue",attachTo:v,priority:c},z=typeof a=="function"?a():a;z&&(H.csp={nonce:z});var B=[],U=[];Object.keys(F).forEach(function(M){M.startsWith("@layer")?B.push(M):U.push(M)}),B.forEach(function(M){yo(Qh(F[M]),"_layer-".concat(M),P(P({},H),{},{prepend:!0}))});var V=yo(L,D,H);V[Oi]=x.instanceId,V.setAttribute(Ji,S),U.forEach(function(M){yo(Qh(F[M]),"_effect-".concat(M),H)})}}),_=j(R,3),O=_[0],N=_[1],k=_[2];return function(A){var W;if(!y||C||!p)W=Ls.createElement(I5,null);else{var L;W=Ls.createElement("style",J({},(L={},T(L,Ji,N),T(L,Io,k),L),{dangerouslySetInnerHTML:{__html:O}}))}return Ls.createElement(Ls.Fragment,null,W,A)}}var n2=function(t,r,o){var n=j(t,6),i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=o||{},d=f.plain;if(c)return null;var p=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=Ds(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Qh(l[v]),g=Ds(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?p=g+p:p+=g}}),[u,s,p]};var FC="cssVar",$5=function(t,r){var o=t.key,n=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,i2.useContext)(_i),f=u.cache.instanceId,d=u.container,p=s._tokenKey,h=[].concat(se(t.path),[o,c,p]),v=Ll(FC,h,function(){var y=r(),g=Fh(y,o,{prefix:n,unitless:i,ignore:a,scope:c}),m=j(g,2),x=m[0],b=m[1],S=LC(h,b);return[x,b,S,o]},function(y){var g=j(y,3),m=g[2];jd&&Qi(m,{mark:Io})},function(y){var g=j(y,3),m=g[1],x=g[2];if(m){var b=yo(m,x,{mark:Io,prepend:"queue",attachTo:d,priority:-999});b[Oi]=f,b.setAttribute(Ji,o)}});return v},a2=function(t,r,o){var n=j(t,4),i=n[1],a=n[2],s=n[3],l=o||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Ds(i,s,a,f,c);return[u,a,d]},zC=$5;var Gd,oie=(Gd={},T(Gd,kC,n2),T(Gd,NC,DI),T(Gd,FC,a2),Gd);var D5=function(){function e(t,r){st(this,e),T(this,"name",void 0),T(this,"style",void 0),T(this,"_keyframe",!0),this.name=t,this.style=r}return lt(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}(),yt=D5;function vu(e){return e.notSplit=!0,e}var uie={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:vu(["borderTop","borderBottom"]),borderBlockStart:vu(["borderTop"]),borderBlockEnd:vu(["borderBottom"]),borderInline:vu(["borderLeft","borderRight"]),borderInlineStart:vu(["borderLeft"]),borderInlineEnd:vu(["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 s2=E(I()),M5=(0,s2.createContext)({}),yu=M5;function Zh(e){return Dh(e)||$h(e)||su(e)||Mh()}function xo(e,t){for(var r=e,o=0;o<t.length;o+=1){if(r==null)return;r=r[t[o]]}return r}function c2(e,t,r,o){if(!t.length)return r;var n=Zh(t),i=n[0],a=n.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=se(e):s=P({},e),o&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=c2(s[i],a,r,o),s}function Go(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&r===void 0&&!xo(e,t.slice(0,-1))?e:c2(e,t,r,o)}function A5(e){return ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function l2(e){return Array.isArray(e)?[]:{}}var L5=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Da(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=l2(t[0]);return t.forEach(function(n){function i(a,s){var l=new Set(s),c=xo(n,a),u=Array.isArray(c);if(u||A5(c)){if(!l.has(c)){l.add(c);var f=xo(o,a);u?o=Go(o,a,[]):(!f||ue(f)!=="object")&&(o=Go(o,a,l2(c))),L5(c).forEach(function(d){i([].concat(se(a),[d]),l)})}}else o=Go(o,a,c)}i([])}),o}var BC=E(I());function k5(){}var u2=BC.createContext({}),Jh=()=>{let e=()=>{};return e.deprecated=k5,e};var f2=E(I()),d2=(0,f2.createContext)(void 0);var Su=E(I());var F5={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"},m2=F5;var p2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var z5=P(P({},p2),{},{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"}),g2=z5;var B5={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ev=B5;var j5={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"]},g2),timePickerLocale:Object.assign({},ev)},tv=j5;var h2=tv;var _n="${label} is not a valid ${type}",W5={locale:"en",Pagination:m2,DatePicker:tv,TimePicker:ev,Calendar:h2,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_n,method:_n,array:_n,object:_n,number:_n,date:_n,boolean:_n,integer:_n,float:_n,regexp:_n,email:_n,url:_n,hex:_n},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"}},Pi=W5;var jC=Object.assign({},Pi.Modal),rv=[],v2=()=>rv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pi.Modal);function y2(e){if(e){let t=Object.assign({},e);return rv.push(t),jC=v2(),()=>{rv=rv.filter(r=>r!==t),jC=v2()}}jC=Object.assign({},Pi.Modal)}var x2=E(I()),V5=(0,x2.createContext)(void 0),xu=V5;var qd=E(I());var H5=(e,t)=>{let r=qd.useContext(xu),o=qd.useMemo(()=>{var i;let a=t||Pi[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),n=qd.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Pi.locale:i},[r]);return[o,n]},Ti=H5;var S2="internalMark",U5=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;Su.useEffect(()=>y2(t?.Modal),[t]);let n=Su.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return Su.createElement(xu.Provider,{value:n},r)},b2=U5;var q2=E(I());var WC={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"},G5=Object.assign(Object.assign({},WC),{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}),Ma=G5;var io=Math.round;function VC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)o[n]=t(o[n]||0,r[n]||"",n);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}var C2=(e,t,r)=>r===0?e:e/100;function Kd(e,t){let r=t||255;return e>r?r:e<0?0:e}var nt=class e{constructor(t){T(this,"isValid",!0),T(this,"r",0),T(this,"g",0),T(this,"b",0),T(this,"a",1),T(this,"_h",void 0),T(this,"_s",void 0),T(this,"_l",void 0),T(this,"_v",void 0),T(this,"_max",void 0),T(this,"_min",void 0),T(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};var o=i;let n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}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=Kd(t.r),this.g=Kd(t.g),this.b=Kd(t.b),this.a=typeof t.a=="number"?Kd(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),o=t(this.g),n=t(this.b);return .2126*r+.7152*o+.0722*n}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=io(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"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(),o=this.getSaturation(),n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:o,l:n,a:this.a})}lighten(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:o,l:n,a:this.a})}mix(t,r=50){let o=this._c(t),n=r/100,i=s=>(o[s]-this[s])*n+this[s],a={r:io(i("r")),g:io(i("g")),b:io(i("b")),a:io(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),o=this.a+r.a*(1-this.a),n=i=>io((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:n("r"),g:n("g"),b:n("b"),a:o})}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 o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;let n=(this.b||0).toString(16);if(t+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=io(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=io(this.getSaturation()*100),o=io(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}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,o){let n=this.clone();return n[t]=Kd(r,o),n}_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 o(n,i){return parseInt(r[n]+r[i||n],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:n}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof n=="number"?n:1,r<=0){let d=io(o*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*o-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 f=o-c/2;this.r=io((i+f)*255),this.g=io((a+f)*255),this.b=io((s+f)*255)}fromHsv({h:t,s:r,v:o,a:n}){this._h=t%360,this._s=r,this._v=o,this.a=typeof n=="number"?n:1;let i=io(o*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=io(o*(1-r)*255),u=io(o*(1-r*l)*255),f=io(o*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=VC(t,C2);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=VC(t,C2);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=VC(t,(o,n)=>n.includes("%")?io(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var ov=2,w2=.16,q5=.05,K5=.05,X5=.15,_2=5,P2=4,Y5=[{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 E2(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-ov*t:Math.round(e.h)+ov*t:o=r?Math.round(e.h)+ov*t:Math.round(e.h)-ov*t,o<0?o+=360:o>=360&&(o-=360),o}function R2(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-w2*t:t===P2?o=e.s+w2:o=e.s+q5*t,o>1&&(o=1),r&&t===_2&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function O2(e,t,r){var o;return r?o=e.v+K5*t:o=e.v-X5*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Ni(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new nt(e),n=o.toHsv(),i=_2;i>0;i-=1){var a=new nt({h:E2(n,i,!0),s:R2(n,i,!0),v:O2(n,i,!0)});r.push(a)}r.push(o);for(var s=1;s<=P2;s+=1){var l=new nt({h:E2(n,s),s:R2(n,s),v:O2(n,s)});r.push(l)}return t.theme==="dark"?Y5.map(function(c){var u=c.index,f=c.amount;return new nt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Aa={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"},HC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];HC.primary=HC[5];var UC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];UC.primary=UC[5];var GC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];GC.primary=GC[5];var qC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];qC.primary=qC[5];var KC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];KC.primary=KC[5];var XC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];XC.primary=XC[5];var YC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];YC.primary=YC[5];var QC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];QC.primary=QC[5];var Fs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fs.primary=Fs[5];var ZC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ZC.primary=ZC[5];var JC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];JC.primary=JC[5];var ew=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ew.primary=ew[5];var tw=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];tw.primary=tw[5];var nv={red:HC,volcano:UC,orange:GC,gold:qC,yellow:KC,lime:XC,green:YC,cyan:QC,blue:Fs,geekblue:ZC,purple:JC,magenta:ew,grey:tw},T2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];T2.primary=T2[5];var N2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N2.primary=N2[5];var I2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];I2.primary=I2[5];var $2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];$2.primary=$2[5];var D2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];D2.primary=D2[5];var M2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];M2.primary=M2[5];var A2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];A2.primary=A2[5];var L2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];L2.primary=L2[5];var k2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];k2.primary=k2[5];var F2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];F2.primary=F2[5];var z2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];z2.primary=z2[5];var B2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];B2.primary=B2[5];var j2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];j2.primary=j2[5];function rw(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:o}=t,{colorSuccess:n,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=r(l),d=r(n),p=r(i),h=r(a),v=r(s),y=o(c,u),g=e.colorLink||e.colorInfo,m=r(g),x=new nt(h[1]).mix(new nt(h[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg: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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new nt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Q5=e=>{let t=e,r=e,o=e,n=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?o=1:e>=6&&(o=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:n}},W2=Q5;function ow(e){let{motionUnit:t,motionBase:r,borderRadius:o,lineWidth:n}=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:n+1},W2(o))}var Z5=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},V2=Z5;function bu(e){return(e+8)/e}function nw(e){let t=Array.from({length:10}).map((r,o)=>{let n=o-1,i=e*Math.pow(Math.E,n/5),a=o>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:bu(r)}))}var J5=e=>{let t=nw(e),r=t.map(u=>u.size),o=t.map(u=>u.lineHeight),n=r[1],i=r[0],a=r[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:n,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*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},H2=J5;function iw(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 Pn=(e,t)=>new nt(e).setA(t).toRgbString(),Cu=(e,t)=>new nt(e).darken(t).toHexString();var U2=e=>{let t=Ni(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]}},G2=(e,t)=>{let r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Pn(o,.88),colorTextSecondary:Pn(o,.65),colorTextTertiary:Pn(o,.45),colorTextQuaternary:Pn(o,.25),colorFill:Pn(o,.15),colorFillSecondary:Pn(o,.06),colorFillTertiary:Pn(o,.04),colorFillQuaternary:Pn(o,.02),colorBgSolid:Pn(o,1),colorBgSolidHover:Pn(o,.75),colorBgSolidActive:Pn(o,.95),colorBgLayout:Cu(r,4),colorBgContainer:Cu(r,0),colorBgElevated:Cu(r,0),colorBgSpotlight:Pn(o,.85),colorBgBlur:"transparent",colorBorder:Cu(r,15),colorBorderSecondary:Cu(r,6)}};function aw(e){Aa.pink=Aa.magenta,nv.pink=nv.magenta;let t=Object.keys(WC).map(r=>{let o=e[r]===Aa[r]?nv[r]:Ni(e[r]);return Array.from({length:10},()=>1).reduce((n,i,a)=>(n[`${r}-${a+1}`]=o[a],n[`${r}${a+1}`]=o[a],n),{})}).reduce((r,o)=>(r=Object.assign(Object.assign({},r),o),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rw(e,{generateColorPalettes:U2,generateNeutralColorPalettes:G2})),H2(e.fontSize)),iw(e)),V2(e)),ow(e))}var eW=$s(aw),Xd=eW;var Yd={token:Ma,override:{override:Ma},hashed:!0},Qd=q2.default.createContext(Yd);var iv=E(I()),zs="ant",Zd="anticon",sw=["outlined","borderless","filled","underlined"],tW=(e,t)=>t||(e?`${zs}-${e}`:zs),it=iv.createContext({getPrefixCls:tW,iconPrefixCls:Zd}),{Consumer:rW}=it,K2={};function $o(e){let t=iv.useContext(it),{getPrefixCls:r,direction:o,getPopupContainer:n}=t,i=t[e];return Object.assign(Object.assign({classNames:K2,styles:K2},i),{getPrefixCls:r,direction:o,getPopupContainer:n})}var oW=`-ant-${Date.now()}-${Math.random()}`;function nW(e,t){let r={},o=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new nt(a),c=Ni(l.toRgbString());r[`${s}-color`]=o(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){n(t.primaryColor,"primary");let a=new nt(t.primaryColor),s=Ni(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=o(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=o(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=o(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=o(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=o(a,c=>c.setA(c.a*.12));let l=new nt(s[0]);r["primary-color-active-deprecated-f-30"]=o(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=o(l,c=>c.darken(2))}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
|
|
:root {
|
|
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
`)}
|
|
}
|
|
`.trim()}function X2(e,t){let r=nW(e,t);Xt()&&yo(r,`${oW}-dynamic-theme`)}var wu=E(I()),lw=wu.createContext(!1),Y2=e=>{let{children:t,disabled:r}=e,o=wu.useContext(lw);return wu.createElement(lw.Provider,{value:r??o},t)},Hr=lw;var uw=E(I());var Eu=E(I()),cw=Eu.createContext(void 0),Q2=e=>{let{children:t,size:r}=e,o=Eu.useContext(cw);return Eu.createElement(cw.Provider,{value:r||o},t)},zl=cw;function iW(){let e=(0,uw.useContext)(Hr),t=(0,uw.useContext)(zl);return{componentDisabled:e,componentSize:t}}var Z2=iW;var fv=E(I());var aW=lt(function e(){st(this,e)}),av=aW;var J2="CALC_UNIT",sW=new RegExp(J2,"g");function fw(e){return typeof e=="number"?"".concat(e).concat(J2):e}var e$=function(e){_r(r,e);var t=Pr(r);function r(o,n){var i;st(this,r),i=t.call(this),T(Je(i),"result",""),T(Je(i),"unitlessCssVar",void 0),T(Je(i),"lowPriority",void 0);var a=ue(o);return i.unitlessCssVar=n,o instanceof r?i.result="(".concat(o.result,")"):a==="number"?i.result=fw(o):a==="string"&&(i.result=o),i}return lt(r,[{key:"add",value:function(n){return n instanceof r?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(fw(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof r?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(fw(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var i=this,a=n||{},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(sW,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(av);var lW=function(e){_r(r,e);var t=Pr(r);function r(o){var n;return st(this,r),n=t.call(this),T(Je(n),"result",0),o instanceof r?n.result=o.result:typeof o=="number"&&(n.result=o),n}return lt(r,[{key:"add",value:function(n){return n instanceof r?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof r?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof r?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof r?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),r}(av),t$=lW;var cW=function(t,r){var o=t==="css"?e$:t$;return function(n){return new o(n,r)}},sv=cW;var uW=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("-"))},dw=uW;var lv=E(I());function Et(e){var t=lv.useRef();t.current=e;var r=lv.useCallback(function(){for(var o,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(o=t.current)===null||o===void 0?void 0:o.call.apply(o,[t].concat(i))},[]);return r}var Ru=E(I());function La(e){var t=Ru.useRef(!1),r=Ru.useState(e),o=j(r,2),n=o[0],i=o[1];Ru.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[n,a]}function mw(e){return e!==void 0}function zt(e,t){var r=t||{},o=r.defaultValue,n=r.value,i=r.onChange,a=r.postState,s=La(function(){return mw(n)?n:mw(o)?typeof o=="function"?o():o:typeof e=="function"?e():e}),l=j(s,2),c=l[0],u=l[1],f=n!==void 0?n:c,d=a?a(f):f,p=Et(i),h=La([f]),v=j(h,2),y=v[0],g=v[1];Al(function(){var x=y[0];c!==x&&p(c,x)},[y]),Al(function(){mw(n)||u(n)},[n]);var m=Et(function(x,b){u(x,b),g([f],b)});return[d,m]}function fW(e,t,r,o){var n=P({},t[e]);if(o!=null&&o.deprecatedTokens){var i=o.deprecatedTokens;i.forEach(function(s){var l=j(s,2),c=l[0],u=l[1];if(n!=null&&n[c]||n!=null&&n[u]){var f;(f=n[u])!==null&&f!==void 0||(n[u]=n?.[c])}})}var a=P(P({},r),n);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var pw=fW;var r$=typeof CSSINJS_STATISTIC<"u",gw=!0;function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!r$)return Object.assign.apply(Object,[{}].concat(t));gw=!1;var o={};return t.forEach(function(n){if(ue(n)==="object"){var i=Object.keys(n);i.forEach(function(a){Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),gw=!0,o}var cv={};function dW(){}var mW=function(t){var r,o=t,n=dW;return r$&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(t,{get:function(a,s){if(gw){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),n=function(a,s){var l;cv[a]={global:Array.from(r),component:P(P({},(l=cv[a])===null||l===void 0?void 0:l.component),s)}}),{token:o,keys:r,flush:n}},uv=mW;function pW(e,t,r){if(typeof r=="function"){var o;return r(tt(t,(o=t[e])!==null&&o!==void 0?o:{}))}return r??{}}var hw=pW;function gW(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return"max(".concat(o.map(function(i){return te(i)}).join(","),")")},min:function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return"min(".concat(o.map(function(i){return te(i)}).join(","),")")}}}var o$=gW;var i$=E(I()),hW=1e3*60*10,vW=function(){function e(){st(this,e),T(this,"map",new Map),T(this,"objectIDMap",new WeakMap),T(this,"nextID",0),T(this,"lastAccessBeat",new Map),T(this,"accessBeat",0)}return lt(e,[{key:"set",value:function(r,o){this.clear();var n=this.getCompositeKey(r);this.map.set(n,o),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(r){var o=this.getCompositeKey(r),n=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(r){var o=this,n=r.map(function(i){return i&&ue(i)==="object"?"obj_".concat(o.getObjectID(i)):"".concat(ue(i),"_").concat(i)});return n.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var o=this.nextID;return this.objectIDMap.set(r,o),this.nextID+=1,o}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(n,i){o-n>hW&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),n$=new vW;function yW(e,t){return i$.default.useMemo(function(){var r=n$.get(t);if(r)return r;var o=e();return n$.set(t,o),o},t)}var a$=yW;var xW=function(){return{}},s$=xW;function SW(e){var t=e.useCSP,r=t===void 0?s$:t,o=e.useToken,n=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,p,h,v){var y=Array.isArray(d)?d[0]:d;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var m=v?.unitless||{},x=typeof s=="function"?s(d):{},b=P(P({},x),{},T({},g("zIndexPopup"),!0));Object.keys(m).forEach(function(R){b[g(R)]=m[R]});var S=P(P({},v),{},{unitless:b,prefixToken:g}),w=u(d,p,h,S),C=c(y,h,S);return function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,_),N=j(O,2),k=N[1],A=C(_),W=j(A,2),L=W[0],$=W[1];return[L,k,$]}}function c(d,p,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,m=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,_=C.cssVar,O=_===void 0?{}:_,N=o(),k=N.realToken;return zC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:k,scope:R},function(){var A=hw(d,k,p),W=pw(d,k,A,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(A).forEach(function(L){W[m(L)]=W[L],delete W[L]}),W}),null},S=function(C){var R=o(),_=R.cssVar;return[function(O){return g&&_?fv.default.createElement(fv.default.Fragment,null,fv.default.createElement(b,{rootCls:C,cssVar:_,component:d}),O):O},_?.key]};return S}function u(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(d)?d:[d,d],g=j(y,1),m=g[0],x=y.join("-"),b=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=o(),R=C.theme,_=C.realToken,O=C.hashId,N=C.token,k=C.cssVar,A=n(),W=A.rootPrefixCls,L=A.iconPrefixCls,$=r(),D=k?"css":"js",F=a$(function(){var M=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(G){M.add(fu(G,k.prefix)),M.add(fu(G,dw(m,k.prefix)))}),sv(D,M)},[D,m,k?.prefix]),H=o$(D),z=H.max,B=H.min,U={theme:R,token:N,hashId:O,nonce:function(){return $.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&ks(P(P({},U),{},{clientOnly:!1,path:["Shared",W]}),function(){return i(N,{prefix:{rootPrefixCls:W,iconPrefixCls:L},csp:$})});var V=ks(P(P({},U),{},{path:[x,S,L]}),function(){if(v.injectStyle===!1)return[];var M=uv(N),G=M.token,q=M.flush,ee=hw(m,_,h),X=".".concat(S),Y=pw(m,_,ee,{deprecatedTokens:v.deprecatedTokens});k&&ee&&ue(ee)==="object"&&Object.keys(ee).forEach(function(Q){ee[Q]="var(".concat(fu(Q,dw(m,k.prefix)),")")});var ne=tt(G,{componentCls:X,prefixCls:S,iconCls:".".concat(L),antCls:".".concat(W),calc:F,max:z,min:B},k?ee:Y),re=p(ne,{hashId:O,prefixCls:S,rootPrefixCls:W,iconPrefixCls:L});q(m,Y);var K=typeof a=="function"?a(ne,S,w,v.resetFont):null;return[v.resetStyle===!1?null:K,re]});return[V,O]}}function f(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(d,p,h,P({resetStyle:!1,order:-998},v)),g=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var vw=SW;var Tn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var f$=E(I());var l$="5.24.3";var c$=l$;function yw(e){return e>=0&&e<=255}function bW(e,t){let{r,g:o,b:n,a:i}=new nt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new nt(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((o-s*(1-c))/c),d=Math.round((n-l*(1-c))/c);if(yw(u)&&yw(f)&&yw(d))return new nt({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new nt({r,g:o,b:n,a:1}).toRgbString()}var Bl=bW;var CW=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function dv(e){let{override:t}=e,r=CW(e,["override"]),o=Object.assign({},t);Object.keys(Ma).forEach(d=>{delete o[d]});let n=Object.assign(Object.assign({},r),o),i=480,a=576,s=768,l=992,c=1200,u=1600;if(n.motion===!1){let d="0s";n.motionDurationFast=d,n.motionDurationMid=d,n.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Bl(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Bl(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Bl(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Bl(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.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 nt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
0 3px 6px 0 ${new nt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
0 5px 12px 4px ${new nt("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)"}),o)}var u$=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},xw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},wW={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},EW={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},d$=(e,t,r)=>{let o=r.getDerivativeToken(e),{override:n}=t,i=u$(t,["override"]),a=Object.assign(Object.assign({},o),{override:n});return a=dv(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s,{theme:u}=c,f=u$(c,["theme"]),d=f;u&&(d=d$(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function gr(){let{token:e,hashed:t,theme:r,override:o,cssVar:n}=f$.default.useContext(Qd),i=`${c$}-${t||""}`,a=r||Xd,[s,l,c]=Bh(a,[Ma,e],{salt:i,override:o,getComputedToken:d$,formatToken:dv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:xw,ignore:wW,preserve:EW}});return[a,c,t?l:"",s,n]}var bw=E(I());var Ii={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Yt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ka=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ou=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),m$=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"}}}),p$=(e,t,r,o)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return o!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},Sw=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),mv=(e,t)=>({"&:focus-visible":Object.assign({},Sw(e,t))}),pv=e=>({[`.${e}`]:Object.assign(Object.assign({},ka()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:_t,genComponentStyleHook:Cw,genSubStyleComponent:ww}=vw({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,bw.useContext)(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,o,n]=gr();return{theme:e,realToken:t,hashId:r,token:o,cssVar:n}},useCSP:()=>{let{csp:e}=(0,bw.useContext)(it);return e??{}},getResetStyles:(e,t)=>{var r;let o=m$(e);return[o,{"&":o},pv((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Zd)]},getCommonStyle:p$,getCompUnitless:()=>xw});function gv(e,t){return Tn.reduce((r,o)=>{let n=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},r),t(o,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var RW=(e,t)=>{let[r,o]=gr();return ks({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[pv(e)])},hv=RW;var OW=E(I()),_W=Object.assign({},OW),{useId:g$}=_W,PW=()=>"",TW=typeof g$>"u"?PW:g$,h$=TW;function Ew(e,t,r){var o,n;let i=Jh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Yd),{hashed:(o=t?.hashed)!==null&&o!==void 0?o:Yd.hashed,cssVar:t?.cssVar}):t,l=h$();return Yi(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});let d=`css-var-${l.replace(/:/g,"")}`,p=((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)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:p})},[a,s],(c,u)=>c.some((f,d)=>{let p=u[d];return!Zi(f,p,!0)}))}var Av=E(I());var $$=E(Ee());var ln=E(I()),Dw=E(I());var vv=E(I()),NW=["children"],Rw=vv.createContext({});function yv(e){var t=e.children,r=Me(e,NW);return vv.createElement(Rw.Provider,{value:r},t)}var v$=E(I()),IW=function(e){_r(r,e);var t=Pr(r);function r(){return st(this,r),t.apply(this,arguments)}return lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(v$.Component),y$=IW;var xv=E(I());function Ow(e){var t=xv.useReducer(function(s){return s+1},0),r=j(t,2),o=r[1],n=xv.useRef(e),i=Et(function(){return n.current}),a=Et(function(s){n.current=typeof s=="function"?s(n.current):s,o()});return[i,a]}var Pv=E(I()),za=E(I());var ea="none",Jd="appear",em="enter",tm="leave",_w="none",sn="prepare",Fa="start",Bs="active",Sv="end",bv="prepared";var R$=E(I()),O$=E(I());function x$(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 $W(e,t){var r={animationend:x$("Animation","AnimationEnd"),transitionend:x$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var DW=$W(Xt(),typeof window<"u"?window:{}),b$={};Xt()&&(S$=document.createElement("div"),b$=S$.style);var S$,Cv={};function C$(e){if(Cv[e])return Cv[e];var t=DW[e];if(t)for(var r=Object.keys(t),o=r.length,n=0;n<o;n+=1){var i=r[n];if(Object.prototype.hasOwnProperty.call(t,i)&&i in b$)return Cv[e]=t[i],Cv[e]}return""}var w$=C$("animationend"),E$=C$("transitionend"),wv=!!(w$&&E$),Pw=w$||"animationend",Tw=E$||"transitionend";function Nw(e,t){if(!e)return null;if(ue(e)==="object"){var r=t.replace(/-\w/g,function(o){return o[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var _$=function(e){var t=(0,O$.useRef)();function r(n){n&&(n.removeEventListener(Tw,e),n.removeEventListener(Pw,e))}function o(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(Tw,e),n.addEventListener(Pw,e),t.current=n)}return R$.useEffect(function(){return function(){r(t.current)}},[]),[o,r]};var Ev=E(I()),MW=Xt()?Ev.useLayoutEffect:Ev.useEffect,Rv=MW;var T$=E(I());var Ov=E(I()),P$=function(){var e=Ov.useRef(null);function t(){ct.cancel(e.current)}function r(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ct(function(){n<=1?o({isCanceled:function(){return i!==e.current}}):r(o,n-1)});e.current=i}return Ov.useEffect(function(){return function(){t()}},[]),[r,t]};var AW=[sn,Fa,Bs,Sv],LW=[sn,bv],Iw=!1,N$=!0;function _v(e){return e===Bs||e===Sv}var I$=function(e,t,r){var o=La(_w),n=j(o,2),i=n[0],a=n[1],s=P$(),l=j(s,2),c=l[0],u=l[1];function f(){a(sn,!0)}var d=t?LW:AW;return Rv(function(){if(i!==_w&&i!==Sv){var p=d.indexOf(i),h=d[p+1],v=r(i);v===Iw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),T$.useEffect(function(){return function(){u()}},[]),[f,i]};function $w(e,t,r,o){var n=o.motionEnter,i=n===void 0?!0:n,a=o.motionAppear,s=a===void 0?!0:a,l=o.motionLeave,c=l===void 0?!0:l,u=o.motionDeadline,f=o.motionLeaveImmediately,d=o.onAppearPrepare,p=o.onEnterPrepare,h=o.onLeavePrepare,v=o.onAppearStart,y=o.onEnterStart,g=o.onLeaveStart,m=o.onAppearActive,x=o.onEnterActive,b=o.onLeaveActive,S=o.onAppearEnd,w=o.onEnterEnd,C=o.onLeaveEnd,R=o.onVisibleChanged,_=La(),O=j(_,2),N=O[0],k=O[1],A=Ow(ea),W=j(A,2),L=W[0],$=W[1],D=La(null),F=j(D,2),H=F[0],z=F[1],B=L(),U=(0,za.useRef)(!1),V=(0,za.useRef)(null);function M(){return r()}var G=(0,za.useRef)(!1);function q(){$(ea),z(null,!0)}var ee=Et(function(ye){var we=L();if(we!==ea){var le=M();if(!(ye&&!ye.deadline&&ye.target!==le)){var ae=G.current,Re;we===Jd&&ae?Re=S?.(le,ye):we===em&&ae?Re=w?.(le,ye):we===tm&&ae&&(Re=C?.(le,ye)),ae&&Re!==!1&&q()}}}),X=_$(ee),Y=j(X,1),ne=Y[0],re=function(we){switch(we){case Jd:return T(T(T({},sn,d),Fa,v),Bs,m);case em:return T(T(T({},sn,p),Fa,y),Bs,x);case tm:return T(T(T({},sn,h),Fa,g),Bs,b);default:return{}}},K=Pv.useMemo(function(){return re(B)},[B]),Q=I$(B,!e,function(ye){if(ye===sn){var we=K[sn];return we?we(M()):Iw}if(oe in K){var le;z(((le=K[oe])===null||le===void 0?void 0:le.call(K,M(),null))||null)}return oe===Bs&&B!==ea&&(ne(M()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ee({deadline:!0})},u))),oe===bv&&q(),N$}),ie=j(Q,2),Z=ie[0],oe=ie[1],me=_v(oe);G.current=me;var fe=(0,za.useRef)(null);Rv(function(){if(!(U.current&&fe.current===t)){k(t);var ye=U.current;U.current=!0;var we;!ye&&t&&s&&(we=Jd),ye&&t&&i&&(we=em),(ye&&!t&&c||!ye&&f&&!t&&c)&&(we=tm);var le=re(we);we&&(e||le[sn])?($(we),Z()):$(ea),fe.current=t}},[t]),(0,za.useEffect)(function(){(B===Jd&&!s||B===em&&!i||B===tm&&!c)&&$(ea)},[s,i,c]),(0,za.useEffect)(function(){return function(){U.current=!1,clearTimeout(V.current)}},[]);var de=Pv.useRef(!1);(0,za.useEffect)(function(){N&&(de.current=!0),N!==void 0&&B===ea&&((de.current||N)&&R?.(N),de.current=!0)},[N,B]);var he=H;return K[sn]&&oe===Fa&&(he=P({transition:"none"},he)),[B,oe,he,N??t]}function kW(e){var t=e;ue(e)==="object"&&(t=e.transitionSupport);function r(n,i){return!!(n.motionName&&t&&i!==!1)}var o=ln.forwardRef(function(n,i){var a=n.visible,s=a===void 0?!0:a,l=n.removeOnLeave,c=l===void 0?!0:l,u=n.forceRender,f=n.children,d=n.motionName,p=n.leavedClassName,h=n.eventProps,v=ln.useContext(Rw),y=v.motion,g=r(n,y),m=(0,Dw.useRef)(),x=(0,Dw.useRef)();function b(){try{return m.current instanceof HTMLElement?m.current:Dl(x.current)}catch{return null}}var S=$w(g,s,b,n),w=j(S,4),C=w[0],R=w[1],_=w[2],O=w[3],N=ln.useRef(O);O&&(N.current=!0);var k=ln.useCallback(function(F){m.current=F,kd(i,F)},[i]),A,W=P(P({},h),{},{visible:s});if(!f)A=null;else if(C===ea)O?A=f(P({},W),k):!c&&N.current&&p?A=f(P(P({},W),{},{className:p}),k):u||!c&&!p?A=f(P(P({},W),{},{style:{display:"none"}}),k):A=null;else{var L;R===sn?L="prepare":_v(R)?L="active":R===Fa&&(L="start");var $=Nw(d,"".concat(C,"-").concat(L));A=f(P(P({},W),{},{className:(0,$$.default)(Nw(d,C),T(T({},$,$&&L),d,typeof d=="string")),style:_}),k)}if(ln.isValidElement(A)&&Ei(A)){var D=Ps(A);D||(A=ln.cloneElement(A,{ref:k}))}return ln.createElement(y$,{ref:x},A)});return o.displayName="CSSMotion",o}var Tv=kW(wv);var jl=E(I());var Nv="add",Iv="keep",$v="remove",Mv="removed";function FW(e){var t;return e&&ue(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function Dv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(FW)}function D$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],o=0,n=t.length,i=Dv(e),a=Dv(t);i.forEach(function(c){for(var u=!1,f=o;f<n;f+=1){var d=a[f];if(d.key===c.key){o<f&&(r=r.concat(a.slice(o,f).map(function(p){return P(P({},p),{},{status:Nv})})),o=f),r.push(P(P({},d),{},{status:Iv})),o+=1,u=!0;break}}u||r.push(P(P({},c),{},{status:$v}))}),o<n&&(r=r.concat(a.slice(o).map(function(c){return P(P({},c),{},{status:Nv})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==$v}),r.forEach(function(u){u.key===c&&(u.status=Iv)})}),r}var zW=["component","children","onVisibleChanged","onAllRemoved"],BW=["status"],jW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function WW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tv,r=function(o){_r(i,o);var n=Pr(i);function i(){var a;st(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=n.call.apply(n,[this].concat(l)),T(Je(a),"state",{keyEntities:[]}),T(Je(a),"removeKey",function(u){a.setState(function(f){var d=f.keyEntities.map(function(p){return p.key!==u?p:P(P({},p),{},{status:Mv})});return{keyEntities:d}},function(){var f=a.state.keyEntities,d=f.filter(function(p){var h=p.status;return h!==Mv}).length;d===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return lt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,p=c.onAllRemoved,h=Me(c,zW),v=u||jl.Fragment,y={};return jW.forEach(function(g){y[g]=h[g],delete h[g]}),delete h.keys,jl.createElement(v,h,l.map(function(g,m){var x=g.status,b=Me(g,BW),S=x===Nv||x===Iv;return jl.createElement(t,J({},y,{key:b.key,visible:S,eventProps:b,onVisibleChanged:function(C){d?.(C,{key:b.key}),C||s.removeKey(b.key)}}),function(w,C){return f(P(P({},w),{},{index:m}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Dv(c),d=D$(u,f);return{keyEntities:d.filter(function(p){var h=u.find(function(v){var y=v.key;return p.key===y});return!(h&&h.status===Mv&&p.status===$v)})}}}]),i}(jl.Component);return T(r,"defaultProps",{component:"div"}),r}var Mw=WW(wv);var ao=Tv;function Aw(e){let{children:t}=e,[,r]=gr(),{motion:o}=r,n=Av.useRef(!1);return n.current=n.current||o===!1,n.current?Av.createElement(yv,{motion:o},t):t}var VW=E(I());var M$=()=>null;var HW=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var UW=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],A$,GW,qW,KW;function XW(){return A$||zs}function YW(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var QW=e=>{let{prefixCls:t,iconPrefixCls:r,theme:o,holderRender:n}=e;t!==void 0&&(A$=t),r!==void 0&&(GW=r),"holderRender"in e&&(KW=n),o&&(YW(o)?X2(XW(),o):qW=o)};var ZW=e=>{let{children:t,csp:r,autoInsertSpaceInButton:o,alert:n,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:m,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:N,typography:k,checkbox:A,descriptions:W,divider:L,drawer:$,skeleton:D,steps:F,image:H,layout:z,list:B,mentions:U,modal:V,progress:M,result:G,slider:q,breadcrumb:ee,menu:X,pagination:Y,input:ne,textArea:re,empty:K,badge:Q,radio:ie,rate:Z,switch:oe,transfer:me,avatar:fe,message:de,tag:he,table:ye,card:we,tabs:le,timeline:ae,timePicker:Re,upload:Ae,notification:je,tree:Ie,colorPicker:Oe,datePicker:Se,rangePicker:Ve,flex:He,wave:$e,dropdown:ce,warning:pe,tour:ze,tooltip:Ce,popover:Ue,popconfirm:Ye,floatButtonGroup:pt,variant:Tt,inputNumber:gt,treeSelect:Be}=e,Pe=nr.useCallback((Ke,rt)=>{let{prefixCls:Lt}=e;if(rt)return rt;let Nt=Lt||g.getPrefixCls("");return Ke?`${Nt}-${Ke}`:Nt},[g.getPrefixCls,e.prefixCls]),et=m||g.iconPrefixCls||Zd,De=r||g.csp;hv(et,De);let Le=Ew(x,g.theme,{prefixCls:Pe("")}),Te={csp:De,autoInsertSpaceInButton:o,alert:n,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??p,popupOverflow:v,getPrefixCls:Pe,iconPrefixCls:et,theme:Le,segmented:S,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:N,typography:k,checkbox:A,descriptions:W,divider:L,drawer:$,skeleton:D,steps:F,image:H,input:ne,textArea:re,layout:z,list:B,mentions:U,modal:V,progress:M,result:G,slider:q,breadcrumb:ee,menu:X,pagination:Y,empty:K,badge:Q,radio:ie,rate:Z,switch:oe,transfer:me,avatar:fe,message:de,tag:he,table:ye,card:we,tabs:le,timeline:ae,timePicker:Re,upload:Ae,notification:je,tree:Ie,colorPicker:Oe,datePicker:Se,rangePicker:Ve,flex:He,wave:$e,dropdown:ce,warning:pe,tour:ze,tooltip:Ce,popover:Ue,popconfirm:Ye,floatButtonGroup:pt,variant:Tt,inputNumber:gt,treeSelect:Be},Ne=Object.assign({},g);Object.keys(Te).forEach(Ke=>{Te[Ke]!==void 0&&(Ne[Ke]=Te[Ke])}),UW.forEach(Ke=>{let rt=e[Ke];rt&&(Ne[Ke]=rt)}),typeof o<"u"&&(Ne.button=Object.assign({autoInsertSpace:o},Ne.button));let ht=Yi(()=>Ne,Ne,(Ke,rt)=>{let Lt=Object.keys(Ke),Nt=Object.keys(rt);return Lt.length!==Nt.length||Lt.some(er=>Ke[er]!==rt[er])}),{layer:jt}=nr.useContext(_i),We=nr.useMemo(()=>({prefixCls:et,csp:De,layer:jt?"antd":void 0}),[et,De,jt]),_e=nr.createElement(nr.Fragment,null,nr.createElement(M$,{dropdownMatchSelectWidth:p}),t),Qe=nr.useMemo(()=>{var Ke,rt,Lt,Nt;return Da(((Ke=Pi.Form)===null||Ke===void 0?void 0:Ke.defaultValidateMessages)||{},((Lt=(rt=ht.locale)===null||rt===void 0?void 0:rt.Form)===null||Lt===void 0?void 0:Lt.defaultValidateMessages)||{},((Nt=ht.form)===null||Nt===void 0?void 0:Nt.validateMessages)||{},a?.validateMessages||{})},[ht,a?.validateMessages]);Object.keys(Qe).length>0&&(_e=nr.createElement(d2.Provider,{value:Qe},_e)),s&&(_e=nr.createElement(b2,{locale:s,_ANT_MARK__:S2},_e)),(et||De)&&(_e=nr.createElement(yu.Provider,{value:We},_e)),l&&(_e=nr.createElement(Q2,{size:l},_e)),_e=nr.createElement(Aw,null,_e);let Ze=nr.useMemo(()=>{let Ke=Le||{},{algorithm:rt,token:Lt,components:Nt,cssVar:er}=Ke,Ft=HW(Ke,["algorithm","token","components","cssVar"]),tr=rt&&(!Array.isArray(rt)||rt.length>0)?$s(rt):Xd,cr={};Object.entries(Nt||{}).forEach(ko=>{let[fr,Cr]=ko,be=Object.assign({},Cr);"algorithm"in be&&(be.algorithm===!0?be.theme=tr:(Array.isArray(be.algorithm)||typeof be.algorithm=="function")&&(be.theme=$s(be.algorithm)),delete be.algorithm),cr[fr]=be});let ur=Object.assign(Object.assign({},Ma),Lt);return Object.assign(Object.assign({},Ft),{theme:tr,token:ur,components:cr,override:Object.assign({override:ur},cr),cssVar:er})},[Le]);return x&&(_e=nr.createElement(Qd.Provider,{value:Ze},_e)),ht.warning&&(_e=nr.createElement(u2.Provider,{value:ht.warning},_e)),b!==void 0&&(_e=nr.createElement(Y2,{disabled:b},_e)),nr.createElement(it.Provider,{value:ht},_e)},_u=e=>{let t=nr.useContext(it),r=nr.useContext(xu);return nr.createElement(ZW,Object.assign({parentContext:t,legacyLocale:r},e))};_u.ConfigContext=it;_u.SizeContext=zl;_u.config=QW;_u.useConfig=Z2;Object.defineProperty(_u,"SizeContext",{get:()=>zl});var Ba=_u;var Bv=E(I());var JW={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"},L$=JW;var Hl=E(I()),V$=E(Ee());var j$=E(I());function k$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function e8(e){return k$(e)instanceof ShadowRoot}function Wl(e){return e8(e)?k$(e):null}var Vl=E(I());function t8(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function z$(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function Lw(e){return ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ue(e.icon)==="object"||typeof e.icon=="function")}function F$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var o=e[r];switch(r){case"class":t.className=o,delete t.class;break;default:delete t[r],t[t8(r)]=o}return t},{})}function Lv(e,t,r){return r?Vl.default.createElement(e.tag,P(P({key:t},F$(e.attrs)),r),(e.children||[]).map(function(o,n){return Lv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})):Vl.default.createElement(e.tag,P({key:t},F$(e.attrs)),(e.children||[]).map(function(o,n){return Lv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function kw(e){return Ni(e)[0]}function kv(e){return e?Array.isArray(e)?e:[e]:[]}var r8=`
|
|
.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);
|
|
}
|
|
}
|
|
`,B$=function(t){var r=(0,Vl.useContext)(yu),o=r.csp,n=r.prefixCls,i=r.layer,a=r8;n&&(a=a.replace(/anticon/g,n)),i&&(a="@layer ".concat(i,` {
|
|
`).concat(a,`
|
|
}`)),(0,Vl.useEffect)(function(){var s=t.current,l=Wl(s);yo(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:l})},[])};var o8=["icon","className","onClick","style","primaryColor","secondaryColor"],rm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n8(e){var t=e.primaryColor,r=e.secondaryColor;rm.primaryColor=t,rm.secondaryColor=r||kw(t),rm.calculated=!!r}function i8(){return P({},rm)}var Fv=function(t){var r=t.icon,o=t.className,n=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Me(t,o8),c=j$.useRef(),u=rm;if(a&&(u={primaryColor:a,secondaryColor:s||kw(a)}),B$(c),z$(Lw(r),"icon should be icon definiton, but got ".concat(r)),!Lw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Lv(f.icon,"svg-".concat(f.name),P(P({className:o,onClick:n,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Fv.displayName="IconReact";Fv.getTwoToneColors=i8;Fv.setTwoToneColors=n8;var om=Fv;function Fw(e){var t=kv(e),r=j(t,2),o=r[0],n=r[1];return om.setTwoToneColors({primaryColor:o,secondaryColor:n})}function W$(){var e=om.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var a8=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fw(Fs.primary);var zv=Hl.forwardRef(function(e,t){var r=e.className,o=e.icon,n=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Me(e,a8),u=Hl.useContext(yu),f=u.prefixCls,d=f===void 0?"anticon":f,p=u.rootClassName,h=(0,V$.default)(p,d,T(T({},"".concat(d,"-").concat(o.name),!!o.name),"".concat(d,"-spin"),!!n||o.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=kv(l),m=j(g,2),x=m[0],b=m[1];return Hl.createElement("span",J({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Hl.createElement(om,{icon:o,primaryColor:x,secondaryColor:b,style:y}))});zv.displayName="AntdIcon";zv.getTwoToneColor=W$;zv.setTwoToneColor=Fw;var mt=zv;var s8=function(t,r){return Bv.createElement(mt,J({},t,{ref:r,icon:L$}))},l8=Bv.forwardRef(s8),H$=l8;var jv=E(I());var c8={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"},U$=c8;var u8=function(t,r){return jv.createElement(mt,J({},t,{ref:r,icon:U$}))},f8=jv.forwardRef(u8),Pu=f8;var Wv=E(I());var d8={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"},G$=d8;var m8=function(t,r){return Wv.createElement(mt,J({},t,{ref:r,icon:G$}))},p8=Wv.forwardRef(m8),Tu=p8;var g8=`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`,h8=`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`,v8="".concat(g8," ").concat(h8).split(/[\s\n]+/),y8="aria-",x8="data-";function q$(e,t){return e.indexOf(t)===0}function Do(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=P({},t);var o={};return Object.keys(e).forEach(function(n){(r.aria&&(n==="role"||q$(n,y8))||r.data&&q$(n,x8)||r.attr&&v8.includes(n))&&(o[n]=e[n])}),o}var nm=E(I());function Vv(e){return e&&nm.default.isValidElement(e)&&e.type===nm.default.Fragment}var S8=(e,t,r)=>nm.default.isValidElement(e)?nm.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Yn(e,t){return S8(e,e,t)}var b8=e=>{let[,,,,t]=gr();return t?`${e}-css-var`:""},Mo=b8;var ut={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>=ut.F1&&r<=ut.F12)return!1;switch(r){case ut.ALT:case ut.CAPS_LOCK:case ut.CONTEXT_MENU:case ut.CTRL:case ut.DOWN:case ut.END:case ut.ESC:case ut.HOME:case ut.INSERT:case ut.LEFT:case ut.MAC_FF_META:case ut.META:case ut.NUMLOCK:case ut.NUM_CENTER:case ut.PAGE_DOWN:case ut.PAGE_UP:case ut.PAUSE:case ut.PRINT_SCREEN:case ut.RIGHT:case ut.SHIFT:case ut.UP:case ut.WIN_KEY:case ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ut.ZERO&&t<=ut.NINE||t>=ut.NUM_ZERO&&t<=ut.NUM_MULTIPLY||t>=ut.A&&t<=ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ut.SPACE:case ut.QUESTION_MARK:case ut.NUM_PLUS:case ut.NUM_MINUS:case ut.NUM_PERIOD:case ut.NUM_DIVISION:case ut.SEMICOLON:case ut.DASH:case ut.EQUALS:case ut.COMMA:case ut.PERIOD:case ut.SLASH:case ut.APOSTROPHE:case ut.SINGLE_QUOTE:case ut.OPEN_SQUARE_BRACKET:case ut.BACKSLASH:case ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fe=ut;var Hv=E(I());var C8={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"},K$=C8;var w8=function(t,r){return Hv.createElement(mt,J({},t,{ref:r,icon:K$}))},E8=Hv.forwardRef(w8),Ul=E8;var Y$=E(I());var X$=E(I()),R8=X$.default.createContext(void 0),Uv=R8;var ja=100,O8=10,_8=ja*O8,$de=_8+ja,Q$={Modal:ja,Drawer:ja,Popover:ja,Popconfirm:ja,Tooltip:ja,Tour:ja,FloatButton:ja},P8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function T8(e){return e in Q$}var js=(e,t)=>{let[,r]=gr(),o=Y$.default.useContext(Uv),n=T8(e),i;if(t!==void 0)i=[t,t];else{let a=o??0;n?a+=(o?0:r.zIndexPopupBase)+Q$[e]:a+=P8[e],i=[o===void 0?t:a,a]}return i};var k8=E(I()),Wde=E(Ci());function At(){"use strict";At=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function($,D,F){$[D]=F.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c($,D,F){return Object.defineProperty($,D,{value:F,enumerable:!0,configurable:!0,writable:!0}),$[D]}try{c({},"")}catch{c=function(F,H,z){return F[H]=z}}function u($,D,F,H){var z=D&&D.prototype instanceof g?D:g,B=Object.create(z.prototype),U=new W(H||[]);return n(B,"_invoke",{value:O($,F,U)}),B}function f($,D,F){try{return{type:"normal",arg:$.call(D,F)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",y={};function g(){}function m(){}function x(){}var b={};c(b,a,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(L([])));w&&w!==r&&o.call(w,a)&&(b=w);var C=x.prototype=g.prototype=Object.create(b);function R($){["next","throw","return"].forEach(function(D){c($,D,function(F){return this._invoke(D,F)})})}function _($,D){function F(z,B,U,V){var M=f($[z],$,B);if(M.type!=="throw"){var G=M.arg,q=G.value;return q&&ue(q)=="object"&&o.call(q,"__await")?D.resolve(q.__await).then(function(ee){F("next",ee,U,V)},function(ee){F("throw",ee,U,V)}):D.resolve(q).then(function(ee){G.value=ee,U(G)},function(ee){return F("throw",ee,U,V)})}V(M.arg)}var H;n(this,"_invoke",{value:function(B,U){function V(){return new D(function(M,G){F(B,U,M,G)})}return H=H?H.then(V,V):V()}})}function O($,D,F){var H=d;return function(z,B){if(H===h)throw Error("Generator is already running");if(H===v){if(z==="throw")throw B;return{value:e,done:!0}}for(F.method=z,F.arg=B;;){var U=F.delegate;if(U){var V=N(U,F);if(V){if(V===y)continue;return V}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(H===d)throw H=v,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);H=h;var M=f($,D,F);if(M.type==="normal"){if(H=F.done?v:p,M.arg===y)continue;return{value:M.arg,done:F.done}}M.type==="throw"&&(H=v,F.method="throw",F.arg=M.arg)}}}function N($,D){var F=D.method,H=$.iterator[F];if(H===e)return D.delegate=null,F==="throw"&&$.iterator.return&&(D.method="return",D.arg=e,N($,D),D.method==="throw")||F!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+F+"' method")),y;var z=f(H,$.iterator,D.arg);if(z.type==="throw")return D.method="throw",D.arg=z.arg,D.delegate=null,y;var B=z.arg;return B?B.done?(D[$.resultName]=B.value,D.next=$.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,y):B:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,y)}function k($){var D={tryLoc:$[0]};1 in $&&(D.catchLoc=$[1]),2 in $&&(D.finallyLoc=$[2],D.afterLoc=$[3]),this.tryEntries.push(D)}function A($){var D=$.completion||{};D.type="normal",delete D.arg,$.completion=D}function W($){this.tryEntries=[{tryLoc:"root"}],$.forEach(k,this),this.reset(!0)}function L($){if($||$===""){var D=$[a];if(D)return D.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var F=-1,H=function z(){for(;++F<$.length;)if(o.call($,F))return z.value=$[F],z.done=!1,z;return z.value=e,z.done=!0,z};return H.next=H}}throw new TypeError(ue($)+" is not iterable")}return m.prototype=x,n(C,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:m,configurable:!0}),m.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function($){var D=typeof $=="function"&&$.constructor;return!!D&&(D===m||(D.displayName||D.name)==="GeneratorFunction")},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,x):($.__proto__=x,c($,l,"GeneratorFunction")),$.prototype=Object.create(C),$},t.awrap=function($){return{__await:$}},R(_.prototype),c(_.prototype,s,function(){return this}),t.AsyncIterator=_,t.async=function($,D,F,H,z){z===void 0&&(z=Promise);var B=new _(u($,D,F,H),z);return t.isGeneratorFunction(D)?B:B.next().then(function(U){return U.done?U.value:B.next()})},R(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function($){var D=Object($),F=[];for(var H in D)F.push(H);return F.reverse(),function z(){for(;F.length;){var B=F.pop();if(B in D)return z.value=B,z.done=!1,z}return z.done=!0,z}},t.values=L,W.prototype={constructor:W,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!D)for(var F in this)F.charAt(0)==="t"&&o.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=e)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var F=this;function H(G,q){return U.type="throw",U.arg=D,F.next=G,q&&(F.method="next",F.arg=e),!!q}for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z],U=B.completion;if(B.tryLoc==="root")return H("end");if(B.tryLoc<=this.prev){var V=o.call(B,"catchLoc"),M=o.call(B,"finallyLoc");if(V&&M){if(this.prev<B.catchLoc)return H(B.catchLoc,!0);if(this.prev<B.finallyLoc)return H(B.finallyLoc)}else if(V){if(this.prev<B.catchLoc)return H(B.catchLoc,!0)}else{if(!M)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return H(B.finallyLoc)}}}},abrupt:function(D,F){for(var H=this.tryEntries.length-1;H>=0;--H){var z=this.tryEntries[H];if(z.tryLoc<=this.prev&&o.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var B=z;break}}B&&(D==="break"||D==="continue")&&B.tryLoc<=F&&F<=B.finallyLoc&&(B=null);var U=B?B.completion:{};return U.type=D,U.arg=F,B?(this.method="next",this.next=B.finallyLoc,y):this.complete(U)},complete:function(D,F){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&F&&(this.next=F),y},finish:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var H=this.tryEntries[F];if(H.finallyLoc===D)return this.complete(H.completion,H.afterLoc),A(H),y}},catch:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var H=this.tryEntries[F];if(H.tryLoc===D){var z=H.completion;if(z.type==="throw"){var B=z.arg;A(H)}return B}}throw Error("illegal catch attempt")},delegateYield:function(D,F,H){return this.delegate={iterator:L(D),resultName:F,nextLoc:H},this.method==="next"&&(this.arg=e),y}},t}function Z$(e,t,r,o,n,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(o,n)}function so(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var i=e.apply(t,r);function a(l){Z$(i,o,n,a,s,"next",l)}function s(l){Z$(i,o,n,a,s,"throw",l)}a(void 0)})}}var N8=E(Ci()),im=P({},N8),I8=im.version,zw=im.render,$8=im.unmountComponentAtNode,qv;try{J$=Number((I8||"").split(".")[0]),J$>=18&&(qv=im.createRoot)}catch{}var J$;function eD(e){var t=im.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ue(t)==="object"&&(t.usingClientEntryPoint=e)}var Gv="__rc_react_root__";function D8(e,t){eD(!0);var r=t[Gv]||qv(t);eD(!1),r.render(e),t[Gv]=r}function M8(e,t){zw?.(e,t)}function tD(e,t){if(qv){D8(e,t);return}M8(e,t)}function A8(e){return Bw.apply(this,arguments)}function Bw(){return Bw=so(At().mark(function e(t){return At().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.resolve().then(function(){var n;(n=t[Gv])===null||n===void 0||n.unmount(),delete t[Gv]}));case 1:case"end":return o.stop()}},e)})),Bw.apply(this,arguments)}function L8(e){$8(e)}function rD(e){return jw.apply(this,arguments)}function jw(){return jw=so(At().mark(function e(t){return At().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(qv===void 0){o.next=2;break}return o.abrupt("return",A8(t));case 2:L8(t);case 3:case"end":return o.stop()}},e)})),jw.apply(this,arguments)}var F8=(e,t)=>(tD(e,t),()=>rD(t)),z8=F8;function oD(){return z8}var Ww=()=>({height:0,opacity:0}),nD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},B8=e=>({height:e?e.offsetHeight:0}),Vw=(e,t)=>t?.deadline===!0||t.propertyName==="height",j8=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:zs}-motion-collapse`,onAppearStart:Ww,onEnterStart:Ww,onAppearActive:nD,onEnterActive:nD,onLeaveStart:B8,onLeaveActive:Ww,onAppearEnd:Vw,onEnterEnd:Vw,onLeaveEnd:Vw,motionDeadline:500}};var ta=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var iD=j8;var Ut=E(I()),gy=E(Ee());function Ur(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(o){delete r[o]}),r}var Gl=E(I()),fD=E(Ee());var Kv=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,o=t.height;if(r||o)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=n.width,a=n.height;if(i||a)return!0}}return!1};var W8=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(",")}}}}},aD=Cw("Wave",e=>[W8(e)]);var Xv=E(I());var Nu=`${zs}-wave-target`;var lo=E(I()),lD=E(Ee());function Hw(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"}function sD(e){let{borderTopColor:t,borderColor:r,backgroundColor:o}=getComputedStyle(e);return Hw(t)?t:Hw(r)?r:Hw(o)?o:null}function Uw(e){return Number.isNaN(e)?0:e}var V8=e=>{let{className:t,target:r,component:o,registerUnmount:n}=e,i=lo.useRef(null),a=lo.useRef(null);lo.useEffect(()=>{a.current=n()},[]);let[s,l]=lo.useState(null),[c,u]=lo.useState([]),[f,d]=lo.useState(0),[p,h]=lo.useState(0),[v,y]=lo.useState(0),[g,m]=lo.useState(0),[x,b]=lo.useState(!1),S={left:f,top:p,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(sD(r));let _=R.position==="static",{borderLeftWidth:O,borderTopWidth:N}=R;d(_?r.offsetLeft:Uw(-parseFloat(O))),h(_?r.offsetTop:Uw(-parseFloat(N))),y(r.offsetWidth),m(r.offsetHeight);let{borderTopLeftRadius:k,borderTopRightRadius:A,borderBottomLeftRadius:W,borderBottomRightRadius:L}=R;u([k,A,L,W].map($=>Uw(parseFloat($))))}if(lo.useEffect(()=>{if(r){let R=ct(()=>{w(),b(!0)}),_;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(r)),()=>{ct.cancel(R),_?.disconnect()}}},[]),!x)return null;let C=(o==="Checkbox"||o==="Radio")&&r?.classList.contains(Nu);return lo.createElement(ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,_)=>{var O,N;if(_.deadline||_.propertyName==="opacity"){let k=(O=i.current)===null||O===void 0?void 0:O.parentElement;(N=a.current)===null||N===void 0||N.call(a).then(()=>{k?.remove()})}return!1}},(R,_)=>{let{className:O}=R;return lo.createElement("div",{ref:Ar(i,_),className:(0,lD.default)(t,O,{"wave-quick":C}),style:S})})},H8=(e,t)=>{var r;let{component:o}=t;if(o==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);let i=oD(),a=null;function s(){return a}a=i(lo.createElement(V8,Object.assign({},t,{target:e,registerUnmount:s})),n)},cD=H8;var U8=(e,t,r)=>{let{wave:o}=Xv.useContext(it),[,n,i]=gr(),a=Et(c=>{let u=e.current;if(o?.disabled||!u)return;let f=u.querySelector(`.${Nu}`)||u,{showEffect:d}=o||{};(d||cD)(f,{className:t,token:n,component:r,event:c,hashId:i})}),s=Xv.useRef(null);return c=>{ct.cancel(s.current),s.current=ct(()=>{a(c)})}},uD=U8;var G8=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:n}=(0,Gl.useContext)(it),i=(0,Gl.useRef)(null),a=n("wave"),[,s]=aD(a),l=uD(i,(0,fD.default)(a,s),o);if(Gl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Kv(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!Gl.default.isValidElement(t))return t??null;let c=Ei(t)?Ar(Ps(t),i):i;return Yn(t,{ref:c})},Yv=G8;var Gw=E(I());var q8=e=>{let t=Gw.default.useContext(zl);return Gw.default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},cn=q8;var Ws=E(I()),dD=E(Ee());var mD=Ws.createContext(null),Qn=(e,t)=>{let r=Ws.useContext(mD),o=Ws.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s=n==="vertical"?"-vertical-":"-";return(0,dD.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:o}},pD=e=>{let{children:t}=e;return Ws.createElement(mD.Provider,{value:null},t)};var Wa=E(I()),gD=E(Ee());var K8=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},qw=Wa.createContext(void 0),X8=e=>{let{getPrefixCls:t,direction:r}=Wa.useContext(it),{prefixCls:o,size:n,className:i}=e,a=K8(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=gr(),c=Wa.useMemo(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),u=(0,gD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Wa.createElement(qw.Provider,{value:n},Wa.createElement("div",Object.assign({},a,{className:u})))},hD=X8;var Iu=E(I());var vD=/^[\u4E00-\u9FA5]{2}$/,Qv=vD.test.bind(vD);function yD(e){return typeof e=="string"}function Zv(e){return e==="text"||e==="link"}function Y8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&yD(e.type)&&Qv(e.props.children)?Yn(e,{children:e.props.children.split("").join(r)}):yD(e)?Qv(e)?Iu.default.createElement("span",null,e.split("").join(r)):Iu.default.createElement("span",null,e):Vv(e)?Iu.default.createElement("span",null,e):e}function xD(e,t){let r=!1,o=[];return Iu.default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(r&&a){let s=o.length-1,l=o[s];o[s]=`${l}${n}`}else o.push(n);r=a}),Iu.default.Children.map(o,n=>Y8(n,t))}var Ime=["default","primary","danger"].concat(se(Tn));var Vs=E(I());var Yw=E(Ee());var Jv=E(I()),SD=E(Ee()),Q8=(0,Jv.forwardRef)((e,t)=>{let{className:r,style:o,children:n,prefixCls:i}=e,a=(0,SD.default)(`${i}-icon`,r);return Jv.default.createElement("span",{ref:t,className:a,style:o},n)}),am=Q8;var bD=(0,Vs.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:n,iconClassName:i}=e,a=(0,Yw.default)(`${r}-loading-icon`,o);return Vs.default.createElement(am,{prefixCls:r,className:a,style:n,ref:t},Vs.default.createElement(Ul,{className:i}))}),Kw=()=>({width:0,opacity:0,transform:"scale(0)"}),Xw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Z8=e=>{let{prefixCls:t,loading:r,existIcon:o,className:n,style:i,mount:a}=e,s=!!r;return o?Vs.default.createElement(bD,{prefixCls:t,className:n,style:i}):Vs.default.createElement(ao,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Kw,onAppearActive:Xw,onEnterStart:Kw,onEnterActive:Xw,onLeaveStart:Xw,onLeaveActive:Kw},(l,c)=>{let{className:u,style:f}=l,d=Object.assign(Object.assign({},i),f);return Vs.default.createElement(bD,{prefixCls:t,className:(0,Yw.default)(n,u),style:d,ref:c})})},CD=Z8;var wD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),J8=e=>{let{componentCls:t,fontSize:r,lineWidth:o,groupBorderColor:n,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(o).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}},wD(`${t}-primary`,n),wD(`${t}-danger`,i)]}},ED=J8;var e1=E(I());var eV=["b"],tV=["v"],Qw=function(t){return Math.round(Number(t||0))},rV=function(t){if(t instanceof nt)return t;if(t&&ue(t)==="object"&&"h"in t&&"b"in t){var r=t,o=r.b,n=Me(r,eV);return P(P({},n),{},{v:o})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Zn=function(e){_r(r,e);var t=Pr(r);function r(o){return st(this,r),t.call(this,rV(o))}return lt(r,[{key:"toHsbString",value:function(){var n=this.toHsb(),i=Qw(n.s*100),a=Qw(n.b*100),s=Qw(n.h),l=n.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 n=this.toHsv(),i=n.v,a=Me(n,tV);return P(P({},a),{},{b:i,a:this.a})}}]),r}(nt);var Zw=function(t){return t instanceof Zn?t:new Zn(t)},oV=Zw("#1677ff");var yV=E(Ee());var nV=E(Ee()),iV=E(I());var OD=E(I());var Jw=E(I());var aV=E(Ee()),sV=E(I());var lV=E(I());var RD=E(I());var gV=E(I());var vV=E(I());var PD=E(I());var hV=E(Ee());var _D=E(I());var xV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",SV=(e,t)=>e?xV(e,t):"",ND=function(){function e(t){st(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(n=>({color:new e(n.color),percent:n.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(n=>{let{color:i,percent:a}=n;return{color:new e(i),percent:a}}),this.metaColor=new Zn(this.colors[0].color.metaColor)):this.metaColor=new Zn(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return lt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return SV(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(n=>`${n.color.toRgbString()} ${n.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((o,n)=>{let i=r.colors[n];return o.percent===i.percent&&o.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var oM=E(I());var NV=E(Ee());var ey=E(I());var bV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ID=bV;var CV=function(t,r){return ey.createElement(mt,J({},t,{ref:r,icon:ID}))},wV=ey.forwardRef(CV),$D=wV;var EV=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`}}}),t1=EV;var RV=e=>({animationDuration:e,animationFillMode:"both"}),OV=e=>({animationDuration:e,animationFillMode:"both"}),Hs=function(e,t,r,o){let i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
${i}${e}-enter,
|
|
${i}${e}-appear
|
|
`]:Object.assign(Object.assign({},RV(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},OV(o)),{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 DD=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),MD=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ql=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{antCls:r}=e,o=`${r}-fade`,n=t?"&":"";return[Hs(o,DD,MD,e.motionDurationMid,t),{[`
|
|
${n}${o}-enter,
|
|
${n}${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${o}-leave`]:{animationTimingFunction:"linear"}}]};var AD=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LD=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),kD=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FD=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zD=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BD=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jD=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),WD=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_V={"move-up":{inKeyframes:jD,outKeyframes:WD},"move-down":{inKeyframes:AD,outKeyframes:LD},"move-left":{inKeyframes:kD,outKeyframes:FD},"move-right":{inKeyframes:zD,outKeyframes:BD}},ty=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=_V[t];return[Hs(o,n,i,e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ry=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),oy=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ny=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),iy=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),VD=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),HD=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),UD=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),GD=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),PV={"slide-up":{inKeyframes:ry,outKeyframes:oy},"slide-down":{inKeyframes:ny,outKeyframes:iy},"slide-left":{inKeyframes:VD,outKeyframes:HD},"slide-right":{inKeyframes:UD,outKeyframes:GD}},ay=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=PV[t];return[Hs(o,n,i,e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var qD=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),KD=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),r1=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),o1=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),XD=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),YD=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QD=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ZD=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),JD=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),eM=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),tM=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),rM=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TV={zoom:{inKeyframes:qD,outKeyframes:KD},"zoom-big":{inKeyframes:r1,outKeyframes:o1},"zoom-big-fast":{inKeyframes:r1,outKeyframes:o1},"zoom-left":{inKeyframes:QD,outKeyframes:ZD},"zoom-right":{inKeyframes:JD,outKeyframes:eM},"zoom-up":{inKeyframes:XD,outKeyframes:YD},"zoom-down":{inKeyframes:tM,outKeyframes:rM}},Kl=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=TV[t];return[Hs(o,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var nM=(e,t)=>{let{r,g:o,b:n,a:i}=e.toRgb(),a=new Zn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+o*.587+n*.114>192};var sy=e=>{let{paddingInline:t,onlyIconSize:r}=e;return tt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ly=e=>{var t,r,o,n,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=(o=e.contentFontSizeLG)!==null&&o!==void 0?o:e.fontSizeLG,u=(n=e.contentLineHeight)!==null&&n!==void 0?n:bu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:bu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:bu(c),p=nM(new ND(e.colorBgSolid),"#fff")?"#000":"#fff",h=Tn.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Bl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"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:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)})};var IV=e=>{let{componentCls:t,iconCls:r,fontWeight:o,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${te(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`]:ka(),"> a":{color:"currentColor"},"&:not(:disabled)":mv(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,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()}}}}}},iM=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),$V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),DV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),MV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),cy=(e,t,r,o,n,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},iM(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),AV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},MV(e))}),LV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uy=(e,t,r,o)=>{let i=o&&["link","text"].includes(o)?LV:AV;return Object.assign(Object.assign({},i(e)),iM(e.componentCls,t,r))},fy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},uy(e,o,n))}),dy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},uy(e,o,n))}),my=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),py=(e,t,r,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},uy(e,r,o))}),ra=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},uy(e,o,n,r))}),kV=e=>{let{componentCls:t}=e;return Tn.reduce((r,o)=>{let n=e[`${o}6`],i=e[`${o}1`],a=e[`${o}5`],s=e[`${o}2`],l=e[`${o}3`],c=e[`${o}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${o}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n,boxShadow:e[`${o}ShadowColor`]},fy(e,e.colorTextLightSolid,n,{background:a},{background:c})),dy(e,n,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),my(e)),py(e,i,{background:s},{background:l})),ra(e,n,"link",{color:a},{color:c})),ra(e,n,"text",{color:a,background:i},{color:c,background:l}))})},{})},FV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},fy(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),my(e)),py(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),cy(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ra(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),zV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},dy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),my(e)),py(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ra(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ra(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),cy(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),BV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},fy(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),dy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),my(e)),py(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ra(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ra(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),cy(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jV=e=>Object.assign(Object.assign({},ra(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),cy(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),WV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:FV(e),[`${t}-color-primary`]:zV(e),[`${t}-color-dangerous`]:BV(e),[`${t}-color-link`]:jV(e)},kV(e))},VV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},dy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ra(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),fy(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ra(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),n1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",{componentCls:r,controlHeight:o,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:n,height:o,padding:`${te(l)} ${te(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:o,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:$V(e)},{[`${r}${r}-round${t}`]:DV(e)}]},HV=e=>{let t=tt(e,{fontSize:e.contentFontSize});return n1(t,e.componentCls)},UV=e=>{let t=tt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return n1(t,`${e.componentCls}-sm`)},GV=e=>{let t=tt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return n1(t,`${e.componentCls}-lg`)},qV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aM=_t("Button",e=>{let t=sy(e);return[IV(t),HV(t),UV(t),GV(t),qV(t),WV(t),VV(t),ED(t)]},ly,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function KV(e,t,r){let{focusElCls:o,focus:n,borderElCls:i}=r,a=i?"> *":"",s=["hover",n?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function XV(e,t,r){let{borderElCls:o}=r,n=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Us(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0},{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},KV(e,o,t)),XV(r,o,t))}}function YV(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function QV(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 sM(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},YV(e,t)),QV(e.componentCls,t))}}var ZV=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:o,calc:n}=e,i=n(o).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%":o,height:s?o:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},lM=ww(["Button","compact"],e=>{let t=sy(e);return[Us(t),sM(t),ZV(t)]},ly);var JV=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function eH(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var tH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},rH=Ut.default.forwardRef((e,t)=>{var r,o;let{loading:n=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:d,disabled:p,className:h,rootClassName:v,children:y,icon:g,iconPosition:m="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:_}=e,O=JV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=l||"default",[k,A]=(0,Ut.useMemo)(()=>{if(a&&s)return[a,s];let pe=tH[N]||[];return c?["danger",pe[1]]:pe},[l,a,s,c]),L=k==="danger"?"dangerous":k,{getPrefixCls:$,direction:D,autoInsertSpace:F,className:H,style:z,classNames:B,styles:U}=$o("button"),V=(r=R??F)!==null&&r!==void 0?r:!0,M=$("btn",i),[G,q,ee]=aM(M),X=(0,Ut.useContext)(Hr),Y=p??X,ne=(0,Ut.useContext)(qw),re=(0,Ut.useMemo)(()=>eH(n),[n]),[K,Q]=(0,Ut.useState)(re.loading),[ie,Z]=(0,Ut.useState)(!1),oe=(0,Ut.useRef)(null),me=Rn(t,oe),fe=Ut.Children.count(y)===1&&!g&&!Zv(A),de=(0,Ut.useRef)(!0);Ut.default.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),(0,Ut.useEffect)(()=>{let pe=null;re.delay>0?pe=setTimeout(()=>{pe=null,Q(!0)},re.delay):Q(re.loading);function ze(){pe&&(clearTimeout(pe),pe=null)}return ze},[re]),(0,Ut.useEffect)(()=>{if(!oe.current||!V)return;let pe=oe.current.textContent||"";fe&&Qv(pe)?ie||Z(!0):ie&&Z(!1)}),(0,Ut.useEffect)(()=>{_&&oe.current&&oe.current.focus()},[]);let he=Ut.default.useCallback(pe=>{var ze;if(K||Y){pe.preventDefault();return}(ze=e.onClick)===null||ze===void 0||ze.call(e,("href"in e,pe))},[e.onClick,K,Y]),{compactSize:ye,compactItemClassnames:we}=Qn(M,D),le={large:"lg",small:"sm",middle:void 0},ae=cn(pe=>{var ze,Ce;return(Ce=(ze=f??ye)!==null&&ze!==void 0?ze:ne)!==null&&Ce!==void 0?Ce:pe}),Re=ae&&(o=le[ae])!==null&&o!==void 0?o:"",Ae=K?"loading":g,je=Ur(O,["navigate"]),Ie=(0,gy.default)(M,q,ee,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${N}`]:N,[`${M}-dangerous`]:c,[`${M}-color-${L}`]:L,[`${M}-variant-${A}`]:A,[`${M}-${Re}`]:Re,[`${M}-icon-only`]:!y&&y!==0&&!!Ae,[`${M}-background-ghost`]:x&&!Zv(A),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:ie&&V&&!K,[`${M}-block`]:b,[`${M}-rtl`]:D==="rtl",[`${M}-icon-end`]:m==="end"},we,h,v,H),Oe=Object.assign(Object.assign({},z),C),Se=(0,gy.default)(w?.icon,B.icon),Ve=Object.assign(Object.assign({},d?.icon||{}),U.icon||{}),He=g&&!K?Ut.default.createElement(am,{prefixCls:M,className:Se,style:Ve},g):n&&typeof n=="object"&&n.icon?Ut.default.createElement(am,{prefixCls:M,className:Se,style:Ve},n.icon):Ut.default.createElement(CD,{existIcon:!!g,prefixCls:M,loading:K,mount:de.current}),$e=y||y===0?xD(y,fe&&V):null;if(je.href!==void 0)return G(Ut.default.createElement("a",Object.assign({},je,{className:(0,gy.default)(Ie,{[`${M}-disabled`]:Y}),href:Y?void 0:je.href,style:Oe,onClick:he,ref:me,tabIndex:Y?-1:0}),He,$e));let ce=Ut.default.createElement("button",Object.assign({},O,{type:S,className:Ie,style:Oe,onClick:he,disabled:Y,ref:me}),He,$e,we&&Ut.default.createElement(lM,{prefixCls:M}));return Zv(A)||(ce=Ut.default.createElement(Yv,{component:"Button",disabled:K},ce)),G(ce)}),i1=rH;i1.Group=hD;i1.__ANT_BUTTON=!0;var cM=i1;var sm=cM;var Jn=E(I()),yM=E(Ci());var uM=E(I()),oH=uM.createContext(null),hy=oH;var Xl=E(I());var fM=[];function a1(e,t){var r=Xl.useState(function(){if(!Xt())return null;var h=document.createElement("div");return h}),o=j(r,1),n=o[0],i=Xl.useRef(!1),a=Xl.useContext(hy),s=Xl.useState(fM),l=j(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(se(v));return y})});function d(){n.parentElement||document.body.appendChild(n),i.current=!0}function p(){var h;(h=n.parentElement)===null||h===void 0||h.removeChild(n),i.current=!1}return vt(function(){return e?a?a(d):d():p(),p},[e]),vt(function(){c.length&&(c.forEach(function(h){return h()}),u(fM))},[c]),[n,f]}var gM=E(I());function nH(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var o=r.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";var n,i;if(e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.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,";"):"",f=c?"height: ".concat(s.height,";"):"";yo(`
|
|
#`.concat(t,`::-webkit-scrollbar {
|
|
`).concat(u,`
|
|
`).concat(f,`
|
|
}`),t)}catch(h){console.error(h),n=l,i=c}}document.body.appendChild(r);var d=e&&n&&!isNaN(n)?n:r.offsetWidth-r.clientWidth,p=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Qi(t),{width:d,height:p}}function dM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:nH(e)}function mM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var iH="rc-util-locker-".concat(Date.now()),pM=0;function s1(e){var t=!!e,r=gM.useState(function(){return pM+=1,"".concat(iH,"_").concat(pM)}),o=j(r,1),n=o[0];vt(function(){if(t){var i=dM(document.body).width,a=mM();yo(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
}`),n)}else Qi(n);return function(){Qi(n)}},[t,n])}var hM=!1;function l1(e){return typeof e=="boolean"&&(hM=e),hM}var vM=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},aH=Jn.forwardRef(function(e,t){var r=e.open,o=e.autoLock,n=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Jn.useState(r),u=j(c,2),f=u[0],d=u[1],p=f||r;Jn.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=Jn.useState(function(){return vM(n)}),v=j(h,2),y=v[0],g=v[1];Jn.useEffect(function(){var k=vM(n);g(k??null)});var m=a1(p&&!y,i),x=j(m,2),b=x[0],S=x[1],w=y??b;s1(o&&r&&Xt()&&(w===b||w===document.body));var C=null;if(l&&Ei(l)&&t){var R=l;C=R.ref}var _=Rn(C,t);if(!p||!Xt()||y===void 0)return null;var O=w===!1||l1(),N=l;return t&&(N=Jn.cloneElement(l,{ref:_})),Jn.createElement(hy.Provider,{value:S},O?N:(0,yM.createPortal)(N,w))}),xM=aH;var Yl=xM;var oa=E(I());var SM=E(I()),vy=SM.createContext({});var d1=E(Ee());var lm=E(I());function sH(){var e=P({},lm);return e.useId}var bM=0;var CM=sH(),$u=CM?function(t){var r=CM();return t||r}:function(t){var r=lm.useState("ssr-id"),o=j(r,2),n=o[0],i=o[1];return lm.useEffect(function(){var a=bM;bM+=1,i("rc_unique_".concat(a))},[]),t||n};var Zl=E(I()),Va=E(I());function c1(e,t,r){var o=t;return!o&&r&&(o="".concat(e,"-").concat(r)),o}function wM(e,t){var r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var n=e.document;r=n.documentElement[o],typeof r!="number"&&(r=n.body[o])}return r}function EM(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},o=e.ownerDocument,n=o.defaultView||o.parentWindow;return r.left+=wM(n),r.top+=wM(n,!0),r}var Ql=E(I()),_M=E(I()),PM=E(Ee());var Du=E(Ee());var Gr=E(I());var RM=E(I()),OM=RM.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var lH={width:0,height:0,overflow:"hidden",outline:"none"},cH={outline:"none"},uH=Gr.default.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,n=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,p=e.bodyProps,h=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,g=e.holderRef,m=e.visible,x=e.forceRender,b=e.width,S=e.height,w=e.classNames,C=e.styles,R=Gr.default.useContext(vy),_=R.panel,O=Rn(g,_),N=(0,Gr.useRef)(),k=(0,Gr.useRef)();Gr.default.useImperativeHandle(t,function(){return{focus:function(){var U;(U=N.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var V=document,M=V.activeElement;U&&M===k.current?N.current.focus({preventScroll:!0}):!U&&M===N.current&&k.current.focus({preventScroll:!0})}}});var A={};b!==void 0&&(A.width=b),S!==void 0&&(A.height=S);var W=s?Gr.default.createElement("div",{className:(0,Du.default)("".concat(r,"-footer"),w?.footer),style:P({},C?.footer)},s):null,L=i?Gr.default.createElement("div",{className:(0,Du.default)("".concat(r,"-header"),w?.header),style:P({},C?.header)},Gr.default.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,$=(0,Gr.useMemo)(function(){return ue(l)==="object"&&l!==null?l:l?{closeIcon:c??Gr.default.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),D=Do($,!0),F=ue(l)==="object"&&l.disabled,H=l?Gr.default.createElement("button",J({type:"button",onClick:u,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:F}),$.closeIcon):null,z=Gr.default.createElement("div",{className:(0,Du.default)("".concat(r,"-content"),w?.content),style:C?.content},H,L,Gr.default.createElement("div",J({className:(0,Du.default)("".concat(r,"-body"),w?.body),style:P(P({},d),C?.body)},p),f),W);return Gr.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:P(P({},n),A),className:(0,Du.default)(r,o),onMouseDown:v,onMouseUp:y},Gr.default.createElement("div",{ref:N,tabIndex:0,style:cH},Gr.default.createElement(OM,{shouldUpdate:m||x},h?h(z):z)),Gr.default.createElement("div",{tabIndex:0,ref:k,style:lH}))}),u1=uH;var TM=Ql.forwardRef(function(e,t){var r=e.prefixCls,o=e.title,n=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,p=(0,_M.useRef)(),h=Ql.useState(),v=j(h,2),y=v[0],g=v[1],m={};y&&(m.transformOrigin=y);function x(){var b=EM(p.current);g(d&&(d.x||d.y)?"".concat(d.x-b.left,"px ").concat(d.y-b.top,"px"):"")}return Ql.createElement(ao,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(b,S){var w=b.className,C=b.style;return Ql.createElement(u1,J({},e,{ref:t,title:o,ariaId:u,prefixCls:r,holderRef:S,style:P(P(P({},C),n),m),className:(0,PM.default)(i,w)}))})});TM.displayName="Content";var NM=TM;var f1=E(I()),IM=E(Ee());var fH=function(t){var r=t.prefixCls,o=t.style,n=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return f1.createElement(ao,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return f1.createElement("div",J({ref:c,style:P(P({},f),o),className:(0,IM.default)("".concat(r,"-mask"),u,s)},i))})},$M=fH;var dH=function(t){var r=t.prefixCls,o=r===void 0?"rc-dialog":r,n=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,p=t.wrapProps,h=t.onClose,v=t.afterOpenChange,y=t.afterClose,g=t.transitionName,m=t.animation,x=t.closable,b=x===void 0?!0:x,S=t.mask,w=S===void 0?!0:S,C=t.maskTransitionName,R=t.maskAnimation,_=t.maskClosable,O=_===void 0?!0:_,N=t.maskStyle,k=t.maskProps,A=t.rootClassName,W=t.classNames,L=t.styles,$=(0,Va.useRef)(),D=(0,Va.useRef)(),F=(0,Va.useRef)(),H=Zl.useState(a),z=j(H,2),B=z[0],U=z[1],V=$u();function M(){lu(D.current,document.activeElement)||($.current=document.activeElement)}function G(){if(!lu(D.current,document.activeElement)){var Z;(Z=F.current)===null||Z===void 0||Z.focus()}}function q(Z){if(Z)G();else{if(U(!1),w&&$.current&&u){try{$.current.focus({preventScroll:!0})}catch{}$.current=null}B&&y?.()}v?.(Z)}function ee(Z){h?.(Z)}var X=(0,Va.useRef)(!1),Y=(0,Va.useRef)(),ne=function(){clearTimeout(Y.current),X.current=!0},re=function(){Y.current=setTimeout(function(){X.current=!1})},K=null;O&&(K=function(oe){X.current?X.current=!1:D.current===oe.target&&ee(oe)});function Q(Z){if(l&&Z.keyCode===Fe.ESC){Z.stopPropagation(),ee(Z);return}a&&Z.keyCode===Fe.TAB&&F.current.changeActive(!Z.shiftKey)}(0,Va.useEffect)(function(){a&&(U(!0),M())},[a]),(0,Va.useEffect)(function(){return function(){clearTimeout(Y.current)}},[]);var ie=P(P(P({zIndex:n},f),L?.wrapper),{},{display:B?null:"none"});return Zl.createElement("div",J({className:(0,d1.default)("".concat(o,"-root"),A)},Do(t,{data:!0})),Zl.createElement($M,{prefixCls:o,visible:w&&a,motionName:c1(o,C,R),style:P(P({zIndex:n},N),L?.mask),maskProps:k,className:W?.mask}),Zl.createElement("div",J({tabIndex:-1,onKeyDown:Q,className:(0,d1.default)("".concat(o,"-wrap"),d,W?.wrapper),ref:D,onClick:K,style:ie},p),Zl.createElement(NM,J({},t,{onMouseDown:ne,onMouseUp:re,ref:F,closable:b,ariaId:V,prefixCls:o,visible:a&&B,onClose:ee,onVisibleChanged:q,motionName:c1(o,g,m)}))))},DM=dH;var MM=function(t){var r=t.visible,o=t.getContainer,n=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=oa.useState(r),u=j(c,2),f=u[0],d=u[1],p=oa.useMemo(function(){return{panel:l}},[l]);return oa.useEffect(function(){r&&d(!0)},[r]),!n&&a&&!f?null:oa.createElement(vy.Provider,{value:p},oa.createElement(Yl,{open:r||n||f,autoDestroy:!1,getContainer:o,autoLock:r||f},oa.createElement(DM,J({},t,{destroyOnClose:a,afterClose:function(){s?.(),d(!1)}}))))};MM.displayName="Dialog";var AM=MM;var LM=AM;var _1=E(I());var Ha=E(I());var OA=E(I());var qo=E(I());var kM=E(I()),$i="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},mH=kM.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}}}),Di=mH;var FM=E(I()),pH=FM.createContext(null),Gs=pH;function cm(e){return e==null?[]:Array.isArray(e)?e:[e]}function zM(e){return e&&!!e._init}function yy(){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 xy=yy();function BM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jM(e,t,r){if(Fd())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var n=new(e.bind.apply(e,o));return r&&Ns(n,r.prototype),n}function Sy(e){var t=typeof Map=="function"?new Map:void 0;return Sy=function(o){if(o===null||!BM(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return jM(o,arguments,Ml(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ns(n,o)},Sy(e)}var gH=/%[sdj%]/g,HM=function(){};typeof process<"u"&&process.env;function by(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var o=r.field;t[o]=t[o]||[],t[o].push(r)}),t}function qr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var n=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(gH,function(s){if(s==="%%")return"%";if(n>=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function hH(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||hH(t)&&typeof e=="string"&&!e)}function vH(e,t,r){var o=[],n=0,i=e.length;function a(s){o.push.apply(o,se(s||[])),n++,n===i&&r(o)}e.forEach(function(s){t(s,a)})}function WM(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var s=o;o=o+1,s<n?t(e[s],i):r([])}i([])}function yH(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,se(e[r]||[]))}),t}var VM=function(e){_r(r,e);var t=Pr(r);function r(o,n){var i;return st(this,r),i=t.call(this,"Async Validation Error"),T(Je(i),"errors",void 0),T(Je(i),"fields",void 0),i.errors=o,i.fields=n,i}return lt(r)}(Sy(Error));function UM(e,t,r,o,n){if(t.first){var i=new Promise(function(d,p){var h=function(g){return o(g),g.length?p(new VM(g,by(g))):d(n)},v=yH(e);WM(v,r,h)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(d,p){var h=function(y){if(u.push.apply(u,y),c++,c===l)return o(u),u.length?p(new VM(u,by(u))):d(n)};s.length||(o(u),d(n)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?WM(y,r,h):vH(y,r,h)})});return f.catch(function(d){return d}),f}function xH(e){return!!(e&&e.message!==void 0)}function SH(e,t){for(var r=e,o=0;o<t.length;o++){if(r==null)return r;r=r[t[o]]}return r}function m1(e,t){return function(r){var o;return e.fullFields?o=SH(t,e.fullFields):o=t[r.field||e.fullField],xH(r)?(r.field=r.field||e.fullField,r.fieldValue=o,r):{message:typeof r=="function"?r():r,fieldValue:o,field:r.field||e.fullField}}}function p1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];ue(o)==="object"&&ue(e[r])==="object"?e[r]=P(P({},e[r]),o):e[r]=o}}return e}var Mu="enum",bH=function(t,r,o,n,i){t[Mu]=Array.isArray(t[Mu])?t[Mu]:[],t[Mu].indexOf(r)===-1&&n.push(qr(i.messages[Mu],t.fullField,t[Mu].join(", ")))},GM=bH;var CH=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(qr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(qr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},qM=CH;var wH=function(t,r,o,n,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,d=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(d?f="number":p?f="string":h&&(f="array"),!f)return!1;h&&(u=r.length),p&&(u=r.replace(c,"_").length),a?u!==t.len&&n.push(qr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?n.push(qr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?n.push(qr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&n.push(qr(i.messages[f].range,t.fullField,t.min,t.max))},KM=wH;var EH=function(t,r,o,n,i,a){t.required&&(!o.hasOwnProperty(t.field)||Mt(r,a||t.type))&&n.push(qr(i.messages.required,t.fullField))},Cy=EH;var wy,XM=function(){if(wy)return wy;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}",o="[a-fA-F\\d]{1,4}",n=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(r,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(r,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(r,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(r,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(r,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.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(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",p=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,}))",m="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(p,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(m).concat(x);return wy=new RegExp("(?:^".concat(b,"$)"),"i"),wy};var YM={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},um={integer:function(t){return um.number(t)&&parseInt(t,10)===t},float:function(t){return um.number(t)&&!um.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 ue(t)==="object"&&!um.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(YM.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(XM())},hex:function(t){return typeof t=="string"&&!!t.match(YM.hex)}},RH=function(t,r,o,n,i){if(t.required&&r===void 0){Cy(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?um[s](r)||n.push(qr(i.messages.types[s],t.fullField,t.type)):s&&ue(r)!==t.type&&n.push(qr(i.messages.types[s],t.fullField,t.type))},QM=RH;var OH=function(t,r,o,n,i){(/^\s+$/.test(r)||r==="")&&n.push(qr(i.messages.whitespace,t.fullField))},ZM=OH;var at={required:Cy,whitespace:ZM,type:QM,range:KM,enum:GM,pattern:qM};var _H=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i)}o(a)},JM=_H;var PH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return o();at.required(t,r,n,a,i,"array"),r!=null&&(at.type(t,r,n,a,i),at.range(t,r,n,a,i))}o(a)},eA=PH;var TH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&at.type(t,r,n,a,i)}o(a)},tA=TH;var NH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"date")&&!t.required)return o();if(at.required(t,r,n,a,i),!Mt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),at.type(t,l,n,a,i),l&&at.range(t,l.getTime(),n,a,i)}}o(a)},rA=NH;var IH="enum",$H=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&at[IH](t,r,n,a,i)}o(a)},oA=$H;var DH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&(at.type(t,r,n,a,i),at.range(t,r,n,a,i))}o(a)},nA=DH;var MH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&(at.type(t,r,n,a,i),at.range(t,r,n,a,i))}o(a)},iA=MH;var AH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&at.type(t,r,n,a,i)}o(a)},aA=AH;var LH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&(at.type(t,r,n,a,i),at.range(t,r,n,a,i))}o(a)},sA=LH;var kH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&at.type(t,r,n,a,i)}o(a)},lA=kH;var FH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return o();at.required(t,r,n,a,i),Mt(r,"string")||at.pattern(t,r,n,a,i)}o(a)},cA=FH;var zH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();at.required(t,r,n,a,i),Mt(r)||at.type(t,r,n,a,i)}o(a)},uA=zH;var BH=function(t,r,o,n,i){var a=[],s=Array.isArray(r)?"array":ue(r);at.required(t,r,n,a,i,s),o(a)},fA=BH;var jH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return o();at.required(t,r,n,a,i,"string"),Mt(r,"string")||(at.type(t,r,n,a,i),at.range(t,r,n,a,i),at.pattern(t,r,n,a,i),t.whitespace===!0&&at.whitespace(t,r,n,a,i))}o(a)},dA=jH;var WH=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(Mt(r,a)&&!t.required)return o();at.required(t,r,n,s,i,a),Mt(r,a)||at.type(t,r,n,s,i)}o(s)},Ey=WH;var Au={string:dA,method:aA,number:sA,boolean:tA,regexp:uA,integer:iA,float:nA,array:eA,object:lA,enum:oA,pattern:cA,date:rA,url:Ey,hex:Ey,email:Ey,required:fA,any:JM};var fm=function(){function e(t){st(this,e),T(this,"rules",null),T(this,"_messages",xy),this.define(t)}return lt(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ue(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var i=r[n];o.rules[n]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=p1(yy(),r)),this._messages}},{key:"validate",value:function(r){var o=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=n,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(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,se(x))}else v.push(x)}for(var m=0;m<h.length;m++)g(h[m]);v.length?(y=by(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===xy&&(u=yy()),p1(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},d=s.keys||Object.keys(this.rules);d.forEach(function(h){var v=o.rules[h],y=a[h];v.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===r&&(a=P({},a)),y=a[h]=m.transform(y),y!=null&&(m.type=m.type||(Array.isArray(y)?"array":ue(y)))),typeof m=="function"?m={validator:m}:m=P({},m),m.validator=o.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=o.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:y,source:a,field:h}))})});var p={};return UM(f,s,function(h,v){var y=h.rule,g=(y.type==="object"||y.type==="array")&&(ue(y.fields)==="object"||ue(y.defaultField)==="object");g=g&&(y.required||!y.required&&h.value),y.field=h.field;function m(C,R){return P(P({},R),{},{fullField:"".concat(y.fullField,".").concat(C),fullFields:y.fullFields?[].concat(se(y.fullFields),[C]):[C]})}function x(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var _=R.map(m1(y,a));if(s.first&&_.length)return p[y.field]=1,v(_);if(!g)v(_);else{if(y.required&&!h.value)return y.message!==void 0?_=[].concat(y.message).map(m1(y,a)):s.error&&(_=[s.error(y,qr(s.messages.required,y.field))]),v(_);var O={};y.defaultField&&Object.keys(h.value).map(function(A){O[A]=y.defaultField}),O=P(P({},O),h.rule.fields);var N={};Object.keys(O).forEach(function(A){var W=O[A],L=Array.isArray(W)?W:[W];N[A]=L.map(m.bind(null,A))});var k=new e(N);k.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),k.validate(h.value,h.rule.options||s,function(A){var W=[];_&&_.length&&W.push.apply(W,se(_)),A&&A.length&&W.push.apply(W,se(A)),v(W.length?W:null)})}}var b;if(y.asyncValidator)b=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{b=y.validator(y,h.value,x,h.source,s)}catch(C){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),x(C.message)}b===!0?x():b===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(C){return x(C)})},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&&!Au.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 o=Object.keys(r),n=o.indexOf("message");return n!==-1&&o.splice(n,1),o.length===1&&o[0]==="required"?Au.required:Au[this.getType(r)]||void 0}}]),e}();T(fm,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Au[t]=r});T(fm,"warning",HM);T(fm,"messages",xy);T(fm,"validators",Au);var mA=fm;var Oy=E(I());var Nn="'${name}' is not a valid ${type}",Ry={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:Nn,method:Nn,array:Nn,object:Nn,number:Nn,date:Nn,boolean:Nn,integer:Nn,float:Nn,regexp:Nn,email:Nn,url:Nn,hex:Nn},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 pA=mA;function VH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var o=r.slice(2,-1);return t[o]})}var gA="CODE_LOGIC_ERROR";function g1(e,t,r,o,n){return h1.apply(this,arguments)}function h1(){return h1=so(At().mark(function e(t,r,o,n,i){var a,s,l,c,u,f,d,p,h;return At().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=P({},o),delete a.ruleIndex,pA.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(gA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new pA(T({},t,[a])),u=Da(Ry,n.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(T({},t,r),P({},n)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(g,m){var x=g.message,b=x===gA?u.default:x;return Oy.isValidElement(b)?Oy.cloneElement(b,{key:"error_".concat(m)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,m){return g1("".concat(t,".").concat(m),g,l,n,i)}));case 21:return d=y.sent,y.abrupt("return",d.reduce(function(g,m){return[].concat(se(g),se(m))},[]));case 23:return p=P(P({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?VH(g,p):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),h1.apply(this,arguments)}function hA(e,t,r,o,n,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,p=P(P({},u),{},{ruleIndex:f});return d&&(p.validator=function(h,v,y){var g=!1,m=function(){for(var S=arguments.length,w=new Array(S),C=0;C<S;C++)w[C]=arguments[C];Promise.resolve().then(function(){Vt(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||y.apply(void 0,w)})},x=d(h,v,m);g=x&&typeof x.then=="function"&&typeof x.catch=="function",Vt(g,"`callback` is deprecated. Please return a promise instead."),g&&x.then(function(){y()}).catch(function(b){y(b||" ")})}),p}).sort(function(u,f){var d=u.warningOnly,p=u.ruleIndex,h=f.warningOnly,v=f.ruleIndex;return!!d==!!h?p-v:d?1:-1}),l;if(n===!0)l=new Promise(function(){var u=so(At().mark(function f(d,p){var h,v,y;return At().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return v=s[h],m.next=5,g1(a,t,v,o,i);case 5:if(y=m.sent,!y.length){m.next=9;break}return p([{errors:y,rule:v}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:d([]);case 13:case"end":return m.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return g1(a,t,u,o,i).then(function(f){return{errors:f,rule:u}})});l=(n?UH(c):HH(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function HH(e){return v1.apply(this,arguments)}function v1(){return v1=so(At().mark(function e(t){return At().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(t).then(function(n){var i,a=(i=[]).concat.apply(i,se(n));return a}));case 1:case"end":return o.stop()}},e)})),v1.apply(this,arguments)}function UH(e){return y1.apply(this,arguments)}function y1(){return y1=so(At().mark(function e(t){var r;return At().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=0,n.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return n.stop()}},e)})),y1.apply(this,arguments)}function ir(e){return cm(e)}function x1(e,t){var r={};return t.forEach(function(o){var n=xo(e,o);r=Go(r,o,n)}),r}function qs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(o){return S1(t,o,r)})}function S1(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(o,n){return e[n]===o})}function vA(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ue(e)!=="object"||ue(t)!=="object")return!1;var r=Object.keys(e),o=Object.keys(t),n=new Set([].concat(r,o));return se(n).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function yA(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ue(t.target)==="object"&&e in t.target?t.target[e]:t}function b1(e,t,r){var o=e.length;if(t<0||t>=o||r<0||r>=o)return e;var n=e[t],i=t-r;return i>0?[].concat(se(e.slice(0,r)),[n],se(e.slice(r,t)),se(e.slice(t+1,o))):i<0?[].concat(se(e.slice(0,t)),se(e.slice(t+1,r+1)),[n],se(e.slice(r+1,o))):e}var GH=["name"],ei=[];function C1(e,t,r,o,n,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):o!==n}var w1=function(e){_r(r,e);var t=Pr(r);function r(o){var n;if(st(this,r),n=t.call(this,o),T(Je(n),"state",{resetCount:0}),T(Je(n),"cancelRegisterFunc",null),T(Je(n),"mounted",!1),T(Je(n),"touched",!1),T(Je(n),"dirty",!1),T(Je(n),"validatePromise",void 0),T(Je(n),"prevValidating",void 0),T(Je(n),"errors",ei),T(Je(n),"warnings",ei),T(Je(n),"cancelRegister",function(){var l=n.props,c=l.preserve,u=l.isListField,f=l.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(u,c,ir(f)),n.cancelRegisterFunc=null}),T(Je(n),"getNamePath",function(){var l=n.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(se(d),se(c)):[]}),T(Je(n),"getRules",function(){var l=n.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),T(Je(n),"refresh",function(){n.mounted&&n.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(Je(n),"metaCache",null),T(Je(n),"triggerMetaEvent",function(l){var c=n.props.onMetaChange;if(c){var u=P(P({},n.getMeta()),{},{destroy:l});Zi(n.metaCache,u)||c(u),n.metaCache=u}else n.metaCache=null}),T(Je(n),"onStoreChange",function(l,c,u){var f=n.props,d=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,v=f.onReset,y=u.store,g=n.getNamePath(),m=n.getValue(l),x=n.getValue(y),b=c&&qs(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!Zi(m,x)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ei,n.warnings=ei,n.triggerMetaEvent()),u.type){case"reset":if(!c||b){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ei,n.warnings=ei,n.triggerMetaEvent(),v?.(),n.refresh();return}break;case"remove":{if(d&&C1(d,l,y,m,x,u)){n.reRender();return}break}case"setField":{var S=u.data;if(b){"touched"in S&&(n.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(n.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(n.errors=S.errors||ei),"warnings"in S&&(n.warnings=S.warnings||ei),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in S&&qs(c,g,!0)){n.reRender();return}if(d&&!g.length&&C1(d,l,y,m,x,u)){n.reRender();return}break}case"dependenciesUpdate":{var w=h.map(ir);if(w.some(function(C){return qs(u.relatedFields,C)})){n.reRender();return}break}default:if(b||(!h.length||g.length||d)&&C1(d,l,y,m,x,u)){n.reRender();return}break}d===!0&&n.reRender()}),T(Je(n),"validateRules",function(l){var c=n.getNamePath(),u=n.getValue(),f=l||{},d=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,v=Promise.resolve().then(so(At().mark(function y(){var g,m,x,b,S,w,C;return At().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(n.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(g=n.props,m=g.validateFirst,x=m===void 0?!1:m,b=g.messageVariables,S=g.validateDebounce,w=n.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var N=O.validateTrigger;if(!N)return!0;var k=cm(N);return k.includes(d)})),!(S&&d)){_.next=10;break}return _.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(n.validatePromise===v){_.next=10;break}return _.abrupt("return",[]);case 10:return C=hA(c,u,w,l,x,b),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ei;if(n.validatePromise===v){var N;n.validatePromise=null;var k=[],A=[];(N=O.forEach)===null||N===void 0||N.call(O,function(W){var L=W.rule.warningOnly,$=W.errors,D=$===void 0?ei:$;L?A.push.apply(A,se(D)):k.push.apply(k,se(D))}),n.errors=k,n.warnings=A,n.triggerMetaEvent(),n.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},y)})));return h||(n.validatePromise=v,n.dirty=!0,n.errors=ei,n.warnings=ei,n.triggerMetaEvent(),n.reRender()),v}),T(Je(n),"isFieldValidating",function(){return!!n.validatePromise}),T(Je(n),"isFieldTouched",function(){return n.touched}),T(Je(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var l=n.props.fieldContext,c=l.getInternalHooks($i),u=c.getInitialValue;return u(n.getNamePath())!==void 0}),T(Je(n),"getErrors",function(){return n.errors}),T(Je(n),"getWarnings",function(){return n.warnings}),T(Je(n),"isListField",function(){return n.props.isListField}),T(Je(n),"isList",function(){return n.props.isList}),T(Je(n),"isPreserve",function(){return n.props.preserve}),T(Je(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var l={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return l}),T(Je(n),"getOnlyChild",function(l){if(typeof l=="function"){var c=n.getMeta();return P(P({},n.getOnlyChild(l(n.getControlled(),c,n.props.fieldContext))),{},{isFunction:!0})}var u=wi(l);return u.length!==1||!qo.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),T(Je(n),"getValue",function(l){var c=n.props.fieldContext.getFieldsValue,u=n.getNamePath();return xo(l||c(!0),u)}),T(Je(n),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.props,u=c.name,f=c.trigger,d=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,m=d!==void 0?d:g.validateTrigger,x=n.getNamePath(),b=g.getInternalHooks,S=g.getFieldsValue,w=b($i),C=w.dispatch,R=n.getValue(),_=y||function(W){return T({},v,W)},O=l[f],N=u!==void 0?_(R):{},k=P(P({},l),N);k[f]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var W,L=arguments.length,$=new Array(L),D=0;D<L;D++)$[D]=arguments[D];p?W=p.apply(void 0,$):W=yA.apply(void 0,[v].concat($)),h&&(W=h(W,R,S(!0))),W!==R&&C({type:"updateValue",namePath:x,value:W}),O&&O.apply(void 0,$)};var A=cm(m||[]);return A.forEach(function(W){var L=k[W];k[W]=function(){L&&L.apply(void 0,arguments);var $=n.props.rules;$&&$.length&&C({type:"validateField",namePath:x,triggerName:W})}}),k}),o.fieldContext){var i=o.fieldContext.getInternalHooks,a=i($i),s=a.initEntityValue;s(Je(n))}return n}return lt(r,[{key:"componentDidMount",value:function(){var n=this.props,i=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s($i),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:qo.isValidElement(s)?c=qo.cloneElement(s,this.getControlled(s.props)):(Vt(!s,"`children` of Field is not validate ReactElement."),c=s),qo.createElement(qo.Fragment,{key:n},c)}}]),r}(qo.Component);T(w1,"contextType",Di);T(w1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function qH(e){var t,r=e.name,o=Me(e,GH),n=qo.useContext(Di),i=qo.useContext(Gs),a=r!==void 0?ir(r):void 0,s=(t=o.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),qo.createElement(w1,J({key:l,name:a,isListField:s},o,{fieldContext:n}))}var _y=qH;var In=E(I());function KH(e){var t=e.name,r=e.initialValue,o=e.children,n=e.rules,i=e.validateTrigger,a=e.isListField,s=In.useContext(Di),l=In.useContext(Gs),c=In.useRef({keys:[],id:0}),u=c.current,f=In.useMemo(function(){var v=ir(s.prefixName)||[];return[].concat(se(v),se(ir(t)))},[s.prefixName,t]),d=In.useMemo(function(){return P(P({},s),{},{prefixName:f})},[s,f]),p=In.useMemo(function(){return{getKey:function(y){var g=f.length,m=y[g];return[u.keys[m],y.slice(g+1)]}}},[f]);if(typeof o!="function")return Vt(!1,"Form.List only accepts function as children."),null;var h=function(y,g,m){var x=m.source;return x==="internal"?!1:y!==g};return In.createElement(Gs.Provider,{value:p},In.createElement(Di.Provider,{value:d},In.createElement(_y,{name:[],shouldUpdate:h,rules:n,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(v,y){var g=v.value,m=g===void 0?[]:g,x=v.onChange,b=s.getFieldValue,S=function(){var _=b(f||[]);return _||[]},w={add:function(_,O){var N=S();O>=0&&O<=N.length?(u.keys=[].concat(se(u.keys.slice(0,O)),[u.id],se(u.keys.slice(O))),x([].concat(se(N.slice(0,O)),[_],se(N.slice(O))))):(u.keys=[].concat(se(u.keys),[u.id]),x([].concat(se(N),[_]))),u.id+=1},remove:function(_){var O=S(),N=new Set(Array.isArray(_)?_:[_]);N.size<=0||(u.keys=u.keys.filter(function(k,A){return!N.has(A)}),x(O.filter(function(k,A){return!N.has(A)})))},move:function(_,O){if(_!==O){var N=S();_<0||_>=N.length||O<0||O>=N.length||(u.keys=b1(u.keys,_,O),x(b1(N,_,O)))}}},C=m||[];return Array.isArray(C)||(C=[]),o(C.map(function(R,_){var O=u.keys[_];return O===void 0&&(u.keys[_]=u.id,O=u.keys[_],u.id+=1),{name:_,key:O,isListField:!0}}),w,y)})))}var xA=KH;var Py=E(I());function SA(e){var t=!1,r=e.length,o=[];return e.length?new Promise(function(n,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,o[s]=l,!(r>0)&&(t&&i(o),n(o))})})}):Promise.resolve([])}var bA="__@field_split__";function E1(e){return e.map(function(t){return"".concat(ue(t),":").concat(t)}).join(bA)}var XH=function(){function e(){st(this,e),T(this,"kvs",new Map)}return lt(e,[{key:"set",value:function(r,o){this.kvs.set(E1(r),o)}},{key:"get",value:function(r){return this.kvs.get(E1(r))}},{key:"update",value:function(r,o){var n=this.get(r),i=o(n);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(E1(r))}},{key:"map",value:function(r){return se(this.kvs.entries()).map(function(o){var n=j(o,2),i=n[0],a=n[1],s=i.split(bA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=j(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(o){var n=o.key,i=o.value;return r[n.join(".")]=i,null}),r}}]),e}(),Jl=XH;var YH=["name"],QH=lt(function e(t){var r=this;st(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(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}}),T(this,"getInternalHooks",function(o){return o===$i?(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}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(o){r.subscribable=o}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(o,n){if(r.initialValues=o||{},n){var i,a=Da(o,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Go(a,l,xo(o,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),T(this,"destroyForm",function(o){if(o)r.updateStore({});else{var n=new Jl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),T(this,"getInitialValue",function(o){var n=xo(r.initialValues,o);return o.length?Da(n):n}),T(this,"setCallbacks",function(o){r.callbacks=o}),T(this,"setValidateMessages",function(o){r.validateMessages=o}),T(this,"setPreserve",function(o){r.preserve=o}),T(this,"watchList",[]),T(this,"registerWatch",function(o){return r.watchList.push(o),function(){r.watchList=r.watchList.filter(function(n){return n!==o})}}),T(this,"notifyWatch",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var n=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(n,i,o)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(o){r.store=o}),T(this,"getFieldEntities",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?r.fieldEntities.filter(function(n){return n.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new Jl;return r.getFieldEntities(o).forEach(function(i){var a=i.getNamePath();n.set(a,i)}),n}),T(this,"getFieldEntitiesForNamePathList",function(o){if(!o)return r.getFieldEntities(!0);var n=r.getFieldsMap(!0);return o.map(function(i){var a=ir(i);return n.get(a)||{INVALIDATE_NAME_PATH:ir(i)}})}),T(this,"getFieldsValue",function(o,n){r.warningUnhooked();var i,a,s;if(o===!0||Array.isArray(o)?(i=o,a=n):o&&ue(o)==="object"&&(s=o.strict,a=o.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,d,p="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&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(p);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(p)}}),x1(r.store,c.map(ir))}),T(this,"getFieldValue",function(o){r.warningUnhooked();var n=ir(o);return xo(r.store,n)}),T(this,"getFieldsError",function(o){r.warningUnhooked();var n=r.getFieldEntitiesForNamePathList(o);return n.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ir(o[a]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(o){r.warningUnhooked();var n=ir(o),i=r.getFieldsError([n])[0];return i.errors}),T(this,"getFieldWarning",function(o){r.warningUnhooked();var n=ir(o),i=r.getFieldsError([n])[0];return i.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];var a=n[0],s=n[1],l,c=!1;n.length===0?l=null:n.length===1?Array.isArray(a)?(l=a.map(ir),c=!1):(l=null,c=a):(l=a.map(ir),c=s);var u=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var d=new Jl;l.forEach(function(v){d.set(v,[])}),u.forEach(function(v){var y=v.getNamePath();l.forEach(function(g){g.every(function(m,x){return y[x]===m})&&d.update(g,function(m){return[].concat(se(m),[v])})})});var p=function(y){return y.some(f)},h=d.map(function(v){var y=v.value;return y});return c?h.every(p):h.some(p)}),T(this,"isFieldTouched",function(o){return r.warningUnhooked(),r.isFieldsTouched([o])}),T(this,"isFieldsValidating",function(o){r.warningUnhooked();var n=r.getFieldEntities();if(!o)return n.some(function(a){return a.isFieldValidating()});var i=o.map(ir);return n.some(function(a){var s=a.getNamePath();return qs(i,s)&&a.isFieldValidating()})}),T(this,"isFieldValidating",function(o){return r.warningUnhooked(),r.isFieldsValidating([o])}),T(this,"resetWithFieldInitialValue",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new Jl,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=n.get(u)||new Set;f.add({entity:l,value:c}),n.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),p=r.getInitialValue(d);if(p!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=n.get(d);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),y=u.isListField();!y&&(!o.skipExist||v===void 0)&&r.updateStore(Go(r.store,d,se(h)[0].value))}}}})},s;o.entities?s=o.entities:o.namePathList?(s=[],o.namePathList.forEach(function(l){var c=n.get(l);if(c){var u;(u=s).push.apply(u,se(se(c).map(function(f){return f.entity})))}})):s=i,a(s)}),T(this,"resetFields",function(o){r.warningUnhooked();var n=r.store;if(!o){r.updateStore(Da(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(n,null,{type:"reset"}),r.notifyWatch();return}var i=o.map(ir);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Go(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(n,i,{type:"reset"}),r.notifyWatch(i)}),T(this,"setFields",function(o){r.warningUnhooked();var n=r.store,i=[];o.forEach(function(a){var s=a.name,l=Me(a,YH),c=ir(s);i.push(c),"value"in l&&r.updateStore(Go(r.store,c,l.value)),r.notifyObservers(n,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),T(this,"getFields",function(){var o=r.getFieldEntities(!0),n=o.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=P(P({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return n}),T(this,"initEntityValue",function(o){var n=o.props.initialValue;if(n!==void 0){var i=o.getNamePath(),a=xo(r.store,i);a===void 0&&r.updateStore(Go(r.store,i,n))}}),T(this,"isMergedPreserve",function(o){var n=o!==void 0?o:r.preserve;return n??!0}),T(this,"registerField",function(o){r.fieldEntities.push(o);var n=o.getNamePath();if(r.notifyWatch([n]),o.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[o],skipExist:!0}),r.notifyObservers(i,[o.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(f){return f!==o}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(n);if(n.length&&r.getFieldValue(n)!==c&&r.fieldEntities.every(function(f){return!S1(f.getNamePath(),n)})){var u=r.store;r.updateStore(Go(u,n,c,!0)),r.notifyObservers(u,[n],{type:"remove"}),r.triggerDependenciesUpdate(u,n)}}r.notifyWatch([n])}}),T(this,"dispatch",function(o){switch(o.type){case"updateValue":{var n=o.namePath,i=o.value;r.updateValue(n,i);break}case"validateField":{var a=o.namePath,s=o.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),T(this,"notifyObservers",function(o,n,i){if(r.subscribable){var a=P(P({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(o,n,a)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(o,n){var i=r.getDependencyChildrenFields(n);return i.length&&r.validateFields(i),r.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[n].concat(se(i))}),i}),T(this,"updateValue",function(o,n){var i=ir(o),a=r.store;r.updateStore(Go(r.store,i,n)),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=x1(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(se(s)))}),T(this,"setFieldsValue",function(o){r.warningUnhooked();var n=r.store;if(o){var i=Da(r.store,o);r.updateStore(i)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(o,n){r.setFields([{name:o,value:n,errors:[],warnings:[]}])}),T(this,"getDependencyChildrenFields",function(o){var n=new Set,i=[],a=new Jl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ir(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!n.has(f)){n.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(o),i}),T(this,"triggerOnFieldsChange",function(o,n){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(n){var s=new Jl;n.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return qs(o,u)});l.length&&i(l,a)}}),T(this,"validateFields",function(o,n){r.warningUnhooked();var i,a;Array.isArray(o)||typeof o=="string"||typeof n=="string"?(i=o,a=n):a=o;var s=!!i,l=s?i.map(ir):[],c=[],u=String(Date.now()),f=new Set,d=a||{},p=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var x=m.getNamePath();if(f.add(x.join(u)),!s||qs(l,x,p)){var b=m.validateRules(P({validateMessages:P(P({},Ry),r.validateMessages)},a));c.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,C=[],R=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(_){var O=_.rule.warningOnly,N=_.errors;O?R.push.apply(R,se(N)):C.push.apply(C,se(N))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=SA(c);r.lastValidatePromise=v,v.catch(function(m){return m}).then(function(m){var x=m.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,m)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var x=m.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(m){return m});var g=l.filter(function(m){return f.has(m.join(u))});return r.triggerOnFieldsChange(g),y}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(o){var n=r.callbacks.onFinish;if(n)try{n(o)}catch(i){console.error(i)}}).catch(function(o){var n=r.callbacks.onFinishFailed;n&&n(o)})}),this.forceRootUpdate=t});function ZH(e){var t=Py.useRef(),r=Py.useState({}),o=j(r,2),n=o[1];if(!t.current)if(e)t.current=e;else{var i=function(){n({})},a=new QH(i);t.current=a.getForm()}return[t.current]}var Ty=ZH;var co=E(I());var Ks=E(I()),R1=Ks.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),O1=function(t){var r=t.validateMessages,o=t.onFormChange,n=t.onFormFinish,i=t.children,a=Ks.useContext(R1),s=Ks.useRef({});return Ks.createElement(R1.Provider,{value:P(P({},a),{},{validateMessages:P(P({},a.validateMessages),r),triggerFormChange:function(c,u){o&&o(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){n&&n(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=P(P({},s.current),{},T({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=P({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var CA=R1;var JH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],e7=function(t,r){var o=t.name,n=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,p=d===void 0?"onChange":d,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,m=t.clearOnDestroy,x=Me(t,JH),b=co.useRef(null),S=co.useContext(CA),w=Ty(a),C=j(w,1),R=C[0],_=R.getInternalHooks($i),O=_.useSubscribe,N=_.setInitialValues,k=_.setCallbacks,A=_.setValidateMessages,W=_.setPreserve,L=_.destroyForm;co.useImperativeHandle(r,function(){return P(P({},R),{},{nativeElement:b.current})}),co.useEffect(function(){return S.registerForm(o,R),function(){S.unregisterForm(o)}},[S,R,o]),A(P(P({},S.validateMessages),f)),k({onValuesChange:h,onFieldsChange:function(M){if(S.triggerFormChange(o,M),v){for(var G=arguments.length,q=new Array(G>1?G-1:0),ee=1;ee<G;ee++)q[ee-1]=arguments[ee];v.apply(void 0,[M].concat(q))}},onFinish:function(M){S.triggerFormFinish(o,M),y&&y(M)},onFinishFailed:g}),W(s);var $=co.useRef(null);N(n,!$.current),$.current||($.current=!0),co.useEffect(function(){return function(){return L(m)}},[]);var D,F=typeof l=="function";if(F){var H=R.getFieldsValue(!0);D=l(H,R)}else D=l;O(!F);var z=co.useRef();co.useEffect(function(){vA(z.current||[],i||[])||R.setFields(i||[]),z.current=i},[i,R]);var B=co.useMemo(function(){return P(P({},R),{},{validateTrigger:p})},[R,p]),U=co.createElement(Gs.Provider,{value:null},co.createElement(Di.Provider,{value:B},D));return u===!1?U:co.createElement(u,J({},x,{ref:b,onSubmit:function(M){M.preventDefault(),M.stopPropagation(),R.submit()},onReset:function(M){var G;M.preventDefault(),R.resetFields(),(G=x.onReset)===null||G===void 0||G.call(x,M)}}),U)},wA=e7;var Mi=E(I());function EA(e){try{return JSON.stringify(e)}catch{return Math.random()}}var t7=function(){};function r7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],n=t[1],i=n===void 0?{}:n,a=zM(i)?{form:i}:i,s=a.form,l=(0,Mi.useState)(),c=j(l,2),u=c[0],f=c[1],d=(0,Mi.useMemo)(function(){return EA(u)},[u]),p=(0,Mi.useRef)(d);p.current=d;var h=(0,Mi.useContext)(Di),v=s||h,y=v&&v._init,g=ir(o),m=(0,Mi.useRef)(g);return m.current=g,t7(g),(0,Mi.useEffect)(function(){if(y){var x=v.getFieldsValue,b=v.getInternalHooks,S=b($i),w=S.registerWatch,C=function(N,k){var A=a.preserve?k:N;return typeof o=="function"?o(A):xo(A,m.current)},R=w(function(O,N){var k=C(O,N),A=EA(k);p.current!==A&&(p.current=A,f(k))}),_=C(x(),x(!0));return u!==_&&f(_),R}},[y]),u}var RA=r7;var o7=OA.forwardRef(wA),dm=o7;dm.FormProvider=O1;dm.Field=_y;dm.List=xA;dm.useForm=Ty;dm.useWatch=RA;var uo=Ha.createContext({}),_A=e=>{let{children:t,status:r,override:o}=e,n=Ha.useContext(uo),i=Ha.useMemo(()=>{let a=Object.assign({},n);return o&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,o,n]);return Ha.createElement(uo.Provider,{value:i},t)},PA=Ha.createContext(void 0);var n7=e=>{let{space:t,form:r,children:o}=e;if(o==null)return null;let n=o;return r&&(n=_1.default.createElement(_A,{override:!0,status:!0},n)),t&&(n=_1.default.createElement(pD,null,n)),n},Xs=n7;var i7=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a7=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s7=(e,t)=>{let{prefixCls:r,componentCls:o,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${o}${t}-${a}`]={display:"none"},i[`${o}-push-${a}`]={insetInlineStart:"auto"},i[`${o}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${a}`]={marginInlineStart:0},i[`${o}${t}-order-${a}`]={order:0}):(i[`${o}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${o}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${o}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${o}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${o}${t}-order-${a}`]={order:a});return i[`${o}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i},P1=(e,t)=>s7(e,t),l7=(e,t,r)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},P1(e,r))}),c7=()=>({}),u7=()=>({}),XSe=_t("Grid",i7,c7),T1=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),YSe=_t("Grid",e=>{let t=tt(e,{gridColumns:24}),r=T1(t);return delete r.xs,[a7(t),P1(t,""),P1(t,"-xs"),Object.keys(r).map(o=>l7(t,r[o],`-${o}`)).reduce((o,n)=>Object.assign(Object.assign({},o),n),{})]},u7);function TA(e){return{position:e,inset:0}}var N1=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},TA("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},TA("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:ql(e)}]},f7=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Yt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},mv(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
${t}-body,
|
|
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},d7=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},m7=e=>{let{componentCls:t}=e,r=T1(e);delete r.xs;let o=Object.keys(r).map(n=>({[`@media (min-width: ${te(r[n])})`]:{width:`var(--${t.replace(".","")}-${n}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(se(o))}}},p7=e=>{let t=e.padding,r=e.fontSizeHeading5,o=e.lineHeightHeading5;return tt(e,{modalHeaderHeight:e.calc(e.calc(o).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},g7=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),nbe=_t("Modal",e=>{let t=p7(e);return[f7(t),d7(t),N1(t),Kl(t,"zoom"),m7(t)]},g7,{unitless:{titleLineHeight:!0}});var un=E(I());function h7(e){return t=>un.createElement(Ba,{theme:{token:{motion:!1,zIndexPopupBase:0}}},un.createElement(e,Object.assign({},t)))}var v7=(e,t,r,o,n)=>h7(a=>{let{prefixCls:s,style:l}=a,c=un.useRef(null),[u,f]=un.useState(0),[d,p]=un.useState(0),[h,v]=zt(!1,{value:a.open}),{getPrefixCls:y}=un.useContext(it),g=y(o||"select",s);un.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),p(C.offsetWidth)}),S=setInterval(()=>{var w;let C=n?`.${n(g)}`:`.${g}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(S),b.observe(R))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let m=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(m=r(m)),t&&Object.assign(m,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),un.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},un.createElement(e,Object.assign({},m)))}),NA=v7;var ii=E(I()),CE=E(Ee());var sr=E(I());var Y1=E(Ee());var Lu=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 St=E(I());var I1=E(I()),IA=E(Ee()),y7=function(t){var r=t.className,o=t.customizeIcon,n=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof o=="function"?o(n):o;return I1.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:I1.createElement("span",{className:(0,IA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Ys=y7;var Ny=E(I()),$A=function(t,r,o,n,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=Ny.default.useMemo(function(){if(ue(n)==="object")return n.clearIcon;if(i)return i},[n,i]),u=Ny.default.useMemo(function(){return!!(!a&&n&&(o.length||s)&&!(l==="combobox"&&s===""))},[n,a,o.length,s,l]);return{allowClear:u,clearIcon:Ny.default.createElement(Ys,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var Iy=E(I()),$1=Iy.createContext(null);function $y(){return Iy.useContext($1)}var ku=E(I());function D1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=ku.useState(!1),r=j(t,2),o=r[0],n=r[1],i=ku.useRef(null),a=function(){window.clearTimeout(i.current)};ku.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){n(c),u&&u()},e)};return[o,s,a]}var mm=E(I());function pm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=mm.useRef(null),r=mm.useRef(null);mm.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function o(n){(n||t.current===null)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},o]}var Dy=E(I());function M1(e,t,r,o){var n=Dy.useRef(null);n.current={open:t,triggerOpen:r,customizedTrigger:o},Dy.useEffect(function(){function i(a){var s;if(!((s=n.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),n.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&n.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Ua=E(I()),Fy=E(I());function DA(e){return e&&![Fe.ESC,Fe.SHIFT,Fe.BACKSPACE,Fe.TAB,Fe.WIN_KEY,Fe.ALT,Fe.META,Fe.WIN_KEY_RIGHT,Fe.CTRL,Fe.SEMICOLON,Fe.EQUALS,Fe.CAPS_LOCK,Fe.CONTEXT_MENU,Fe.F1,Fe.F2,Fe.F3,Fe.F4,Fe.F5,Fe.F6,Fe.F7,Fe.F8,Fe.F9,Fe.F10,Fe.F11,Fe.F12].includes(e)}var $n=E(I()),k1=E(I()),JA=E(Ee());var ti=E(I()),na=E(I()),WA=E(Ee());var ec=E(I()),MA=E(Ee());var x7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fu=void 0;function S7(e,t){var r=e.prefixCls,o=e.invalidate,n=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,p=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,g=Me(e,x7),m=a&&!p;function x(R){l(c,R)}ec.useEffect(function(){return function(){x(null)}},[]);var b=i&&n!==Fu?i(n,{index:h}):d,S;o||(S={opacity:m?0:1,height:m?0:Fu,overflowY:m?"hidden":Fu,order:a?h:Fu,pointerEvents:m?"none":Fu,position:m?"absolute":Fu});var w={};m&&(w["aria-hidden"]=!0);var C=ec.createElement(y,J({className:(0,MA.default)(!o&&r,u),style:P(P({},S),f)},w,g,{ref:t}),b);return a&&(C=ec.createElement(an,{onResize:function(_){var O=_.offsetWidth;x(O)},disabled:s},C)),C}var AA=ec.forwardRef(S7);AA.displayName="Item";var zu=AA;var My=E(I()),LA=E(Ci());function A1(e){if(typeof MessageChannel>"u")ct(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function kA(){var e=My.useRef(null),t=function(o){e.current||(e.current=[],A1(function(){(0,LA.unstable_batchedUpdates)(function(){e.current.forEach(function(n){n()}),e.current=null})})),e.current.push(o)};return t}function tc(e,t){var r=My.useState(t),o=j(r,2),n=o[0],i=o[1],a=Et(function(s){e(function(){i(s)})});return[n,a]}var Qs=E(I()),zA=E(Ee());var FA=E(I()),rc=FA.default.createContext(null);var b7=["component"],C7=["className"],w7=["className"],E7=function(t,r){var o=Qs.useContext(rc);if(!o){var n=t.component,i=n===void 0?"div":n,a=Me(t,b7);return Qs.createElement(i,J({},a,{ref:r}))}var s=o.className,l=Me(o,C7),c=t.className,u=Me(t,w7);return Qs.createElement(rc.Provider,{value:null},Qs.createElement(zu,J({ref:r,className:(0,zA.default)(s,c)},l,u)))},BA=Qs.forwardRef(E7);BA.displayName="RawItem";var jA=BA;var R7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],VA="responsive",HA="invalidate";function O7(e){return"+ ".concat(e.length," ...")}function _7(e,t){var r=e.prefixCls,o=r===void 0?"rc-overflow":r,n=e.data,i=n===void 0?[]:n,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,p=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.suffix,m=e.component,x=m===void 0?"div":m,b=e.itemComponent,S=e.onVisibleChange,w=Me(e,R7),C=f==="full",R=kA(),_=tc(R,null),O=j(_,2),N=O[0],k=O[1],A=N||0,W=tc(R,new Map),L=j(W,2),$=L[0],D=L[1],F=tc(R,0),H=j(F,2),z=H[0],B=H[1],U=tc(R,0),V=j(U,2),M=V[0],G=V[1],q=tc(R,0),ee=j(q,2),X=ee[0],Y=ee[1],ne=(0,na.useState)(null),re=j(ne,2),K=re[0],Q=re[1],ie=(0,na.useState)(null),Z=j(ie,2),oe=Z[0],me=Z[1],fe=ti.useMemo(function(){return oe===null&&C?Number.MAX_SAFE_INTEGER:oe||0},[oe,N]),de=(0,na.useState)(!1),he=j(de,2),ye=he[0],we=he[1],le="".concat(o,"-item"),ae=Math.max(z,M),Re=h===VA,Ae=i.length&&Re,je=h===HA,Ie=Ae||typeof h=="number"&&i.length>h,Oe=(0,na.useMemo)(function(){var Le=i;return Ae?N===null&&C?Le=i:Le=i.slice(0,Math.min(i.length,A/u)):typeof h=="number"&&(Le=i.slice(0,h)),Le},[i,u,N,h,Ae]),Se=(0,na.useMemo)(function(){return Ae?i.slice(fe+1):i.slice(Oe.length)},[i,Oe,Ae,fe]),Ve=(0,na.useCallback)(function(Le,Te){var Ne;return typeof l=="function"?l(Le):(Ne=l&&Le?.[l])!==null&&Ne!==void 0?Ne:Te},[l]),He=(0,na.useCallback)(a||function(Le){return Le},[a]);function $e(Le,Te,Ne){oe===Le&&(Te===void 0||Te===K)||(me(Le),Ne||(we(Le<i.length-1),S?.(Le)),Te!==void 0&&Q(Te))}function ce(Le,Te){k(Te.clientWidth)}function pe(Le,Te){D(function(Ne){var ht=new Map(Ne);return Te===null?ht.delete(Le):ht.set(Le,Te),ht})}function ze(Le,Te){G(Te),B(M)}function Ce(Le,Te){Y(Te)}function Ue(Le){return $.get(Ve(Oe[Le],Le))}vt(function(){if(A&&typeof ae=="number"&&Oe){var Le=X,Te=Oe.length,Ne=Te-1;if(!Te){$e(0,null);return}for(var ht=0;ht<Te;ht+=1){var jt=Ue(ht);if(C&&(jt=jt||0),jt===void 0){$e(ht-1,void 0,!0);break}if(Le+=jt,Ne===0&&Le<=A||ht===Ne-1&&Le+Ue(Ne)<=A){$e(Ne,null);break}else if(Le+ae>A){$e(ht-1,Le-jt-X+M);break}}g&&Ue(0)+X>A&&Q(null)}},[A,$,M,X,Ve,Oe]);var Ye=ye&&!!Se.length,pt={};K!==null&&Ae&&(pt={position:"absolute",left:K,top:0});var Tt={prefixCls:le,responsive:Ae,component:b,invalidate:je},gt=s?function(Le,Te){var Ne=Ve(Le,Te);return ti.createElement(rc.Provider,{key:Ne,value:P(P({},Tt),{},{order:Te,item:Le,itemKey:Ne,registerSize:pe,display:Te<=fe})},s(Le,Te))}:function(Le,Te){var Ne=Ve(Le,Te);return ti.createElement(zu,J({},Tt,{order:Te,key:Ne,item:Le,renderItem:He,itemKey:Ne,registerSize:pe,display:Te<=fe}))},Be={order:Ye?fe:Number.MAX_SAFE_INTEGER,className:"".concat(le,"-rest"),registerSize:ze,display:Ye},Pe=v||O7,et=y?ti.createElement(rc.Provider,{value:P(P({},Tt),Be)},y(Se)):ti.createElement(zu,J({},Tt,Be),typeof Pe=="function"?Pe(Se):Pe),De=ti.createElement(x,J({className:(0,WA.default)(!je&&o,p),style:d,ref:t},w),Oe.map(gt),Ie?et:null,g&&ti.createElement(zu,J({},Tt,{responsive:Re,responsiveDisabled:!Ae,order:fe,className:"".concat(le,"-suffix"),registerSize:Ce,display:!0,style:pt}),g));return Re?ti.createElement(an,{onResize:ce,disabled:!Ae},De):De}var gm=ti.forwardRef(_7);gm.displayName="Overflow";gm.Item=jA;gm.RESPONSIVE=VA;gm.INVALIDATE=HA;var UA=gm;var GA=UA;var Bu=E(I()),qA=E(Ee());var P7=function(t,r){var o,n=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,d=t.activeDescendantId,p=t.value,h=t.maxLength,v=t.onKeyDown,y=t.onMouseDown,g=t.onChange,m=t.onPaste,x=t.onCompositionStart,b=t.onCompositionEnd,S=t.onBlur,w=t.open,C=t.attrs,R=a||Bu.createElement("input",null),_=R,O=_.ref,N=_.props,k=N.onKeyDown,A=N.onChange,W=N.onMouseDown,L=N.onCompositionStart,$=N.onCompositionEnd,D=N.onBlur,F=N.style;return Il(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=Bu.cloneElement(R,P(P(P({type:"search"},N),{},{id:i,ref:Ar(r,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:(0,qA.default)("".concat(n,"-selection-search-input"),(o=R)===null||o===void 0||(o=o.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:f?p:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:P(P({},F),{},{opacity:f?null:0}),onKeyDown:function(z){v(z),k&&k(z)},onMouseDown:function(z){y(z),W&&W(z)},onChange:function(z){g(z),A&&A(z)},onCompositionStart:function(z){x(z),L&&L(z)},onCompositionEnd:function(z){b(z),$&&$(z)},onPaste:m,onBlur:function(z){S(z),D&&D(z)}})),R},T7=Bu.forwardRef(P7),Ay=T7;var ky=E(I());function hm(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var N7=typeof window<"u"&&window.document&&window.document.documentElement,XA=N7;function YA(e){return e!=null}function QA(e){return!e&&e!==0}function KA(e){return["string","number"].includes(ue(e))}function Ly(e){var t=void 0;return e&&(KA(e.title)?t=e.title.toString():KA(e.label)&&(t=e.label.toString())),t}function L1(e,t){XA?ky.useLayoutEffect(e,t):ky.useEffect(e,t)}function I7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ZA=function(t){t.preventDefault(),t.stopPropagation()},$7=function(t){var r=t.id,o=t.prefixCls,n=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,d=t.showSearch,p=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,y=t.tabIndex,g=t.removeIcon,m=t.maxTagCount,x=t.maxTagTextLength,b=t.maxTagPlaceholder,S=b===void 0?function(ie){return"+ ".concat(ie.length," ...")}:b,w=t.tagRender,C=t.onToggleOpen,R=t.onRemove,_=t.onInputChange,O=t.onInputPaste,N=t.onInputKeyDown,k=t.onInputMouseDown,A=t.onInputCompositionStart,W=t.onInputCompositionEnd,L=t.onInputBlur,$=$n.useRef(null),D=(0,k1.useState)(0),F=j(D,2),H=F[0],z=F[1],B=(0,k1.useState)(!1),U=j(B,2),V=U[0],M=U[1],G="".concat(o,"-selection"),q=i||f==="multiple"&&s===!1||f==="tags"?a:"",ee=f==="tags"||f==="multiple"&&s===!1||d&&(i||V);L1(function(){z($.current.scrollWidth)},[q]);var X=function(Z,oe,me,fe,de){return $n.createElement("span",{title:Ly(Z),className:(0,JA.default)("".concat(G,"-item"),T({},"".concat(G,"-item-disabled"),me))},$n.createElement("span",{className:"".concat(G,"-item-content")},oe),fe&&$n.createElement(Ys,{className:"".concat(G,"-item-remove"),onMouseDown:ZA,onClick:de,customizeIcon:g},"\xD7"))},Y=function(Z,oe,me,fe,de,he){var ye=function(le){ZA(le),C(!i)};return $n.createElement("span",{onMouseDown:ye},w({label:oe,value:Z,disabled:me,closable:fe,onClose:de,isMaxTag:!!he}))},ne=function(Z){var oe=Z.disabled,me=Z.label,fe=Z.value,de=!u&&!oe,he=me;if(typeof x=="number"&&(typeof me=="string"||typeof me=="number")){var ye=String(he);ye.length>x&&(he="".concat(ye.slice(0,x),"..."))}var we=function(ae){ae&&ae.stopPropagation(),R(Z)};return typeof w=="function"?Y(fe,he,oe,de,we):X(Z,he,oe,de,we)},re=function(Z){if(!n.length)return null;var oe=typeof S=="function"?S(Z):S;return typeof w=="function"?Y(void 0,oe,!1,!1,void 0,!0):X({title:oe},oe,!1)},K=$n.createElement("div",{className:"".concat(G,"-search"),style:{width:H},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},$n.createElement(Ay,{ref:l,open:i,prefixCls:o,id:r,inputElement:null,disabled:u,autoFocus:p,autoComplete:h,editable:ee,activeDescendantId:v,value:q,onKeyDown:N,onMouseDown:k,onChange:_,onPaste:O,onCompositionStart:A,onCompositionEnd:W,onBlur:L,tabIndex:y,attrs:Do(t,!0)}),$n.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),Q=$n.createElement(GA,{prefixCls:"".concat(G,"-overflow"),data:n,renderItem:ne,renderRest:re,suffix:K,itemKey:I7,maxCount:m});return $n.createElement("span",{className:"".concat(G,"-wrap")},Q,!n.length&&!q&&$n.createElement("span",{className:"".concat(G,"-placeholder")},c))},eL=$7;var ri=E(I());var D7=function(t){var r=t.inputElement,o=t.prefixCls,n=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,p=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,m=t.maxLength,x=t.onInputKeyDown,b=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,_=t.onInputBlur,O=t.title,N=ri.useState(!1),k=j(N,2),A=k[0],W=k[1],L=u==="combobox",$=L||v,D=d[0],F=y||"";L&&g&&!A&&(F=g),ri.useEffect(function(){L&&W(!1)},[L,g]);var H=u!=="combobox"&&!f&&!v?!1:!!F,z=O===void 0?Ly(D):O,B=ri.useMemo(function(){return D?null:ri.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:H?{visibility:"hidden"}:void 0},p)},[D,H,p,o]);return ri.createElement("span",{className:"".concat(o,"-selection-wrap")},ri.createElement("span",{className:"".concat(o,"-selection-search")},ri.createElement(Ay,{ref:i,prefixCls:o,id:n,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:$,activeDescendantId:c,value:F,onKeyDown:x,onMouseDown:b,onChange:function(V){W(!0),S(V)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:_,tabIndex:h,attrs:Do(t,!0),maxLength:L?m:void 0})),!L&&D?ri.createElement("span",{className:"".concat(o,"-selection-item"),title:z,style:H?{visibility:"hidden"}:void 0},D.label):null,B)},tL=D7;var M7=function(t,r){var o=(0,Fy.useRef)(null),n=(0,Fy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,p=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,m=t.domRef;Ua.useImperativeHandle(r,function(){return{focus:function(z){o.current.focus(z)},blur:function(){o.current.blur()}}});var x=pm(0),b=j(x,2),S=b[0],w=b[1],C=function(z){var B=z.which,U=o.current instanceof HTMLTextAreaElement;!U&&a&&(B===Fe.UP||B===Fe.DOWN)&&z.preventDefault(),y&&y(z),B===Fe.ENTER&&s==="tags"&&!n.current&&!a&&h?.(z.target.value),!(U&&!a&&~[Fe.UP,Fe.DOWN,Fe.LEFT,Fe.RIGHT].indexOf(B))&&DA(B)&&v(!0)},R=function(){w(!0)},_=(0,Fy.useRef)(null),O=function(z){p(z,!0,n.current)!==!1&&v(!0)},N=function(){n.current=!0},k=function(z){n.current=!1,s!=="combobox"&&O(z.target.value)},A=function(z){var B=z.target.value;if(c&&_.current&&/[\r\n]/.test(_.current)){var U=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(U,_.current)}_.current=null,O(B)},W=function(z){var B=z.clipboardData,U=B?.getData("text");_.current=U||""},L=function(z){var B=z.target;if(B!==o.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){o.current.focus()}):o.current.focus()}},$=function(z){var B=S();z.target!==o.current&&!B&&!(s==="combobox"&&u)&&z.preventDefault(),(s!=="combobox"&&(!l||!B)||!a)&&(a&&d!==!1&&p("",!0,!1),v())},D={inputRef:o,onInputKeyDown:C,onInputMouseDown:R,onInputChange:A,onInputPaste:W,onInputCompositionStart:N,onInputCompositionEnd:k,onInputBlur:g},F=s==="multiple"||s==="tags"?Ua.createElement(eL,J({},t,D)):Ua.createElement(tL,J({},t,D));return Ua.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:L,onMouseDown:$},f&&Ua.createElement("div",{className:"".concat(i,"-prefix")},f),F)},A7=Ua.forwardRef(M7),rL=A7;var By=E(Ee());var xt=E(I());var sL=E(Ee());var oi=E(I());var oL=E(Ee()),zy=E(I());function F1(e){var t=e.prefixCls,r=e.align,o=e.arrow,n=e.arrowPos,i=o||{},a=i.className,s=i.content,l=n.x,c=l===void 0?0:l,u=n.y,f=u===void 0?0:u,d=zy.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],m=v[0],x=v[1];y===m||!["t","b"].includes(y)?p.top=f:y==="t"?p.top=0:p.bottom=0,g===x||!["l","r"].includes(g)?p.left=c:g==="l"?p.left=0:p.right=0}return zy.createElement("div",{ref:d,className:(0,oL.default)("".concat(t,"-arrow"),a),style:p},s)}var nL=E(Ee());var z1=E(I());function B1(e){var t=e.prefixCls,r=e.open,o=e.zIndex,n=e.mask,i=e.motion;return n?z1.createElement(ao,J({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return z1.createElement("div",{style:{zIndex:o},className:(0,nL.default)("".concat(t,"-mask"),s)})}):null}var iL=E(I()),L7=iL.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),aL=L7;var k7=oi.forwardRef(function(e,t){var r=e.popup,o=e.className,n=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,m=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,S=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,_=e.onPointerEnter,O=e.onPointerDownCapture,N=e.ready,k=e.offsetX,A=e.offsetY,W=e.offsetR,L=e.offsetB,$=e.onAlign,D=e.onPrepare,F=e.stretch,H=e.targetWidth,z=e.targetHeight,B=typeof r=="function"?r():r,U=l||c,V=x?.length>0,M=oi.useState(!x||!V),G=j(M,2),q=G[0],ee=G[1];if(vt(function(){!q&&V&&a&&ee(!0)},[q,V,a]),!q)return null;var X="auto",Y={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(N||!l){var ne,re=v.points,K=v.dynamicInset||((ne=v._experimental)===null||ne===void 0?void 0:ne.dynamicInset),Q=K&&re[0][1]==="r",ie=K&&re[0][0]==="b";Q?(Y.right=W,Y.left=X):(Y.left=k,Y.right=X),ie?(Y.bottom=L,Y.top=X):(Y.top=A,Y.bottom=X)}var Z={};return F&&(F.includes("height")&&z?Z.height=z:F.includes("minHeight")&&z&&(Z.minHeight=z),F.includes("width")&&H?Z.width=H:F.includes("minWidth")&&H&&(Z.minWidth=H)),l||(Z.pointerEvents="none"),oi.createElement(S,{open:m||U,getContainer:x&&function(){return x(a)},autoDestroy:b},oi.createElement(B1,{prefixCls:n,open:l,zIndex:w,mask:d,motion:g}),oi.createElement(an,{onResize:$,disabled:!l},function(oe){return oi.createElement(ao,J({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(n,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(fe){var de;y==null||(de=y.onVisibleChanged)===null||de===void 0||de.call(y,fe),s(fe)}}),function(me,fe){var de=me.className,he=me.style,ye=(0,sL.default)(n,de,o);return oi.createElement("div",{ref:Ar(oe,t,fe),className:ye,style:P(P(P(P({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Y),Z),he),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:_,onClick:f,onPointerDownCapture:O},p&&oi.createElement(F1,{prefixCls:n,arrow:p,arrowPos:h,align:v}),oi.createElement(aL,{cache:!l&&!u},B))})}))}),lL=k7;var ju=E(I()),F7=ju.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,n=Ei(r),i=ju.useCallback(function(s){kd(t,o?o(s):s)},[o]),a=Rn(i,Ps(r));return n?ju.cloneElement(r,{ref:a}):r}),cL=F7;var uL=E(I()),z7=uL.createContext(null),j1=z7;var dL=E(I());function fL(e){return e?Array.isArray(e)?e:[e]:[]}function W1(e,t,r,o){return dL.useMemo(function(){var n=fL(r??t),i=fL(o??t),a=new Set(n),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,o])}var oc=E(I());function B7(){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 mL(e,t,r,o){for(var n=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(B7((s=e[l])===null||s===void 0?void 0:s.points,n,o))return"".concat(t,"-placement-").concat(l)}return""}function V1(e,t,r,o){return t||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function Zs(e){return e.ownerDocument.defaultView}function ym(e){for(var t=[],r=e?.parentElement,o=["hidden","scroll","clip","auto"];r;){var n=Zs(r).getComputedStyle(r),i=n.overflowX,a=n.overflowY,s=n.overflow;[i,a,s].some(function(l){return o.includes(l)})&&t.push(r),r=r.parentElement}return t}function Wu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function vm(e){return Wu(parseFloat(e),0)}function H1(e,t){var r=P({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var n=Zs(o).getComputedStyle(o),i=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,l=n.borderBottomWidth,c=n.borderLeftWidth,u=n.borderRightWidth,f=o.getBoundingClientRect(),d=o.offsetHeight,p=o.clientHeight,h=o.offsetWidth,v=o.clientWidth,y=vm(s),g=vm(l),m=vm(c),x=vm(u),b=Wu(Math.round(f.width/h*1e3)/1e3),S=Wu(Math.round(f.height/d*1e3)/1e3),w=(h-v-m-x)*b,C=(d-p-y-g)*S,R=y*S,_=g*S,O=m*b,N=x*b,k=0,A=0;if(i==="clip"){var W=vm(a);k=W*b,A=W*S}var L=f.x+O-k,$=f.y+R-A,D=L+f.width+2*k-O-N-w,F=$+f.height+2*A-R-_-C;r.left=Math.max(r.left,L),r.top=Math.max(r.top,$),r.right=Math.min(r.right,D),r.bottom=Math.min(r.bottom,F)}}),r}function pL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),o=r.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(r)}function gL(e,t){var r=t||[],o=j(r,2),n=o[0],i=o[1];return[pL(e.width,n),pL(e.height,i)]}function hL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Vu(e,t){var r=t[0],o=t[1],n,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,o==="l"?n=e.x:o==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:i}}function Js(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,n){return n===t?r[o]||"c":o}).join("")}function U1(e,t,r,o,n,i,a){var s=oc.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[o]||{}}),l=j(s,2),c=l[0],u=l[1],f=oc.useRef(0),d=oc.useMemo(function(){return t?ym(t):[]},[t]),p=oc.useRef({}),h=function(){p.current={}};e||h();var v=Et(function(){if(t&&r&&e){let Bo=function(vc,os){var yc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae,Zm=M.x+vc,Jm=M.y+os,hx=Zm+Q,Xe=Jm+K,ft=Math.max(Zm,yc.left),dr=Math.max(Jm,yc.top),$r=Math.min(hx,yc.right),mr=Math.min(Xe,yc.bottom);return Math.max(0,($r-ft)*(mr-dr))},hc=function(){tr=M.y+Ne,cr=tr+K,ur=M.x+Te,ko=ur+Q};var BR=Bo,jR=hc,m,x,b,S,w=t,C=w.ownerDocument,R=Zs(w),_=R.getComputedStyle(w),O=_.width,N=_.height,k=_.position,A=w.style.left,W=w.style.top,L=w.style.right,$=w.style.bottom,D=w.style.overflow,F=P(P({},n[o]),i),H=C.createElement("div");(m=w.parentElement)===null||m===void 0||m.appendChild(H),H.style.left="".concat(w.offsetLeft,"px"),H.style.top="".concat(w.offsetTop,"px"),H.style.position=k,H.style.height="".concat(w.offsetHeight,"px"),H.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 z;if(Array.isArray(r))z={x:r[0],y:r[1],width:0,height:0};else{var B,U,V=r.getBoundingClientRect();V.x=(B=V.x)!==null&&B!==void 0?B:V.left,V.y=(U=V.y)!==null&&U!==void 0?U:V.top,z={x:V.x,y:V.y,width:V.width,height:V.height}}var M=w.getBoundingClientRect();M.x=(x=M.x)!==null&&x!==void 0?x:M.left,M.y=(b=M.y)!==null&&b!==void 0?b:M.top;var G=C.documentElement,q=G.clientWidth,ee=G.clientHeight,X=G.scrollWidth,Y=G.scrollHeight,ne=G.scrollTop,re=G.scrollLeft,K=M.height,Q=M.width,ie=z.height,Z=z.width,oe={left:0,top:0,right:q,bottom:ee},me={left:-re,top:-ne,right:X-re,bottom:Y-ne},fe=F.htmlRegion,de="visible",he="visibleFirst";fe!=="scroll"&&fe!==he&&(fe=de);var ye=fe===he,we=H1(me,d),le=H1(oe,d),ae=fe===de?le:we,Re=ye?le:ae;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ae=w.getBoundingClientRect();w.style.left=A,w.style.top=W,w.style.right=L,w.style.bottom=$,w.style.overflow=D,(S=w.parentElement)===null||S===void 0||S.removeChild(H);var je=Wu(Math.round(Q/parseFloat(O)*1e3)/1e3),Ie=Wu(Math.round(K/parseFloat(N)*1e3)/1e3);if(je===0||Ie===0||$l(r)&&!Kv(r))return;var Oe=F.offset,Se=F.targetOffset,Ve=gL(M,Oe),He=j(Ve,2),$e=He[0],ce=He[1],pe=gL(z,Se),ze=j(pe,2),Ce=ze[0],Ue=ze[1];z.x-=Ce,z.y-=Ue;var Ye=F.points||[],pt=j(Ye,2),Tt=pt[0],gt=pt[1],Be=hL(gt),Pe=hL(Tt),et=Vu(z,Be),De=Vu(M,Pe),Le=P({},F),Te=et.x-De.x+$e,Ne=et.y-De.y+ce,ht=Bo(Te,Ne),jt=Bo(Te,Ne,le),We=Vu(z,["t","l"]),_e=Vu(M,["t","l"]),Qe=Vu(z,["b","r"]),Ze=Vu(M,["b","r"]),Ke=F.overflow||{},rt=Ke.adjustX,Lt=Ke.adjustY,Nt=Ke.shiftX,er=Ke.shiftY,Ft=function(os){return typeof os=="boolean"?os:os>=0},tr,cr,ur,ko;hc();var fr=Ft(Lt),Cr=Pe[0]===Be[0];if(fr&&Pe[0]==="t"&&(cr>Re.bottom||p.current.bt)){var be=Ne;Cr?be-=K-ie:be=We.y-Ze.y-ce;var Ge=Bo(Te,be),ke=Bo(Te,be,le);Ge>ht||Ge===ht&&(!ye||ke>=jt)?(p.current.bt=!0,Ne=be,ce=-ce,Le.points=[Js(Pe,0),Js(Be,0)]):p.current.bt=!1}if(fr&&Pe[0]==="b"&&(tr<Re.top||p.current.tb)){var xe=Ne;Cr?xe+=K-ie:xe=Qe.y-_e.y-ce;var ot=Bo(Te,xe),It=Bo(Te,xe,le);ot>ht||ot===ht&&(!ye||It>=jt)?(p.current.tb=!0,Ne=xe,ce=-ce,Le.points=[Js(Pe,0),Js(Be,0)]):p.current.tb=!1}var $t=Ft(rt),mo=Pe[1]===Be[1];if($t&&Pe[1]==="l"&&(ko>Re.right||p.current.rl)){var Nr=Te;mo?Nr-=Q-Z:Nr=We.x-Ze.x-$e;var Fr=Bo(Nr,Ne),wr=Bo(Nr,Ne,le);Fr>ht||Fr===ht&&(!ye||wr>=jt)?(p.current.rl=!0,Te=Nr,$e=-$e,Le.points=[Js(Pe,1),Js(Be,1)]):p.current.rl=!1}if($t&&Pe[1]==="r"&&(ur<Re.left||p.current.lr)){var zr=Te;mo?zr+=Q-Z:zr=Qe.x-_e.x-$e;var Qo=Bo(zr,Ne),Fo=Bo(zr,Ne,le);Qo>ht||Qo===ht&&(!ye||Fo>=jt)?(p.current.lr=!0,Te=zr,$e=-$e,Le.points=[Js(Pe,1),Js(Be,1)]):p.current.lr=!1}hc();var eo=Nt===!0?0:Nt;typeof eo=="number"&&(ur<le.left&&(Te-=ur-le.left-$e,z.x+Z<le.left+eo&&(Te+=z.x-le.left+Z-eo)),ko>le.right&&(Te-=ko-le.right-$e,z.x>le.right-eo&&(Te+=z.x-le.right+eo)));var Eo=er===!0?0:er;typeof Eo=="number"&&(tr<le.top&&(Ne-=tr-le.top-ce,z.y+ie<le.top+Eo&&(Ne+=z.y-le.top+ie-Eo)),cr>le.bottom&&(Ne-=cr-le.bottom-ce,z.y>le.bottom-Eo&&(Ne+=z.y-le.bottom+Eo)));var es=M.x+Te,ts=es+Q,An=M.y+Ne,gc=An+K,rs=z.x,Ct=rs+Z,dt=z.y,to=dt+ie,ro=Math.max(es,rs),vr=Math.min(ts,Ct),Ir=(ro+vr)/2,gn=Ir-es,Zo=Math.max(An,dt),Ln=Math.min(gc,to),Fi=(Zo+Ln)/2,ci=Fi-An;a?.(t,Le);var zi=Ae.right-M.x-(Te+M.width),zo=Ae.bottom-M.y-(Ne+M.height);je===1&&(Te=Math.round(Te),zi=Math.round(zi)),Ie===1&&(Ne=Math.round(Ne),zo=Math.round(zo));var gx={ready:!0,offsetX:Te/je,offsetY:Ne/Ie,offsetR:zi/je,offsetB:zo/Ie,arrowX:gn/je,arrowY:ci/Ie,scaleX:je,scaleY:Ie,align:Le};u(gx)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},g=function(){u(function(x){return P(P({},x),{},{ready:!1})})};return vt(g,[o]),vt(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 G1(e,t,r,o,n){vt(function(){if(e&&t&&r){let d=function(){o(),n()};var f=d,i=t,a=r,s=ym(i),l=ym(a),c=Zs(a),u=new Set([c].concat(se(s),se(l)));return u.forEach(function(p){p.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),o(),function(){u.forEach(function(p){p.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}var xm=E(I());function q1(e,t,r,o,n,i,a,s){var l=xm.useRef(e);l.current=e;var c=xm.useRef(!1);xm.useEffect(function(){if(t&&o&&(!n||i)){var f=function(){c.current=!1},d=function(b){var S;l.current&&!a(((S=b.composedPath)===null||S===void 0||(S=S.call(b))===null||S===void 0?void 0:S[0])||b.target)&&!c.current&&s(!1)},p=Zs(o);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0);var h=Wl(r);if(h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),0)var v,y,g,m;return function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,o,n,i]);function u(){c.current=!0}return u}var j7=["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 W7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yl,t=xt.forwardRef(function(r,o){var n=r.prefixCls,i=n===void 0?"rc-trigger-popup":n,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,p=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,m=r.focusDelay,x=r.blurDelay,b=r.mask,S=r.maskClosable,w=S===void 0?!0:S,C=r.getPopupContainer,R=r.forceRender,_=r.autoDestroy,O=r.destroyPopupOnHide,N=r.popup,k=r.popupClassName,A=r.popupStyle,W=r.popupPlacement,L=r.builtinPlacements,$=L===void 0?{}:L,D=r.popupAlign,F=r.zIndex,H=r.stretch,z=r.getPopupClassNameFromAlign,B=r.fresh,U=r.alignPoint,V=r.onPopupClick,M=r.onPopupAlign,G=r.arrow,q=r.popupMotion,ee=r.maskMotion,X=r.popupTransitionName,Y=r.popupAnimation,ne=r.maskTransitionName,re=r.maskAnimation,K=r.className,Q=r.getTriggerDOMNode,ie=Me(r,j7),Z=_||O||!1,oe=xt.useState(!1),me=j(oe,2),fe=me[0],de=me[1];vt(function(){de(Lu())},[]);var he=xt.useRef({}),ye=xt.useContext(j1),we=xt.useMemo(function(){return{registerSubPopup:function(ft,dr){he.current[ft]=dr,ye?.registerSubPopup(ft,dr)}}},[ye]),le=$u(),ae=xt.useState(null),Re=j(ae,2),Ae=Re[0],je=Re[1],Ie=xt.useRef(null),Oe=Et(function(Xe){Ie.current=Xe,$l(Xe)&&Ae!==Xe&&je(Xe),ye?.registerSubPopup(le,Xe)}),Se=xt.useState(null),Ve=j(Se,2),He=Ve[0],$e=Ve[1],ce=xt.useRef(null),pe=Et(function(Xe){$l(Xe)&&He!==Xe&&($e(Xe),ce.current=Xe)}),ze=xt.Children.only(a),Ce=ze?.props||{},Ue={},Ye=Et(function(Xe){var ft,dr,$r=He;return $r?.contains(Xe)||((ft=Wl($r))===null||ft===void 0?void 0:ft.host)===Xe||Xe===$r||Ae?.contains(Xe)||((dr=Wl(Ae))===null||dr===void 0?void 0:dr.host)===Xe||Xe===Ae||Object.values(he.current).some(function(mr){return mr?.contains(Xe)||Xe===mr})}),pt=V1(i,q,Y,X),Tt=V1(i,ee,re,ne),gt=xt.useState(d||!1),Be=j(gt,2),Pe=Be[0],et=Be[1],De=f??Pe,Le=Et(function(Xe){f===void 0&&et(Xe)});vt(function(){et(f||!1)},[f]);var Te=xt.useRef(De);Te.current=De;var Ne=xt.useRef([]);Ne.current=[];var ht=Et(function(Xe){var ft;Le(Xe),((ft=Ne.current[Ne.current.length-1])!==null&&ft!==void 0?ft:De)!==Xe&&(Ne.current.push(Xe),p?.(Xe))}),jt=xt.useRef(),We=function(){clearTimeout(jt.current)},_e=function(ft){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),dr===0?ht(ft):jt.current=setTimeout(function(){ht(ft)},dr*1e3)};xt.useEffect(function(){return We},[]);var Qe=xt.useState(!1),Ze=j(Qe,2),Ke=Ze[0],rt=Ze[1];vt(function(Xe){(!Xe||De)&&rt(!0)},[De]);var Lt=xt.useState(null),Nt=j(Lt,2),er=Nt[0],Ft=Nt[1],tr=xt.useState(null),cr=j(tr,2),ur=cr[0],ko=cr[1],fr=function(ft){ko([ft.clientX,ft.clientY])},Cr=U1(De,Ae,U&&ur!==null?ur:He,W,$,D,M),be=j(Cr,11),Ge=be[0],ke=be[1],xe=be[2],ot=be[3],It=be[4],$t=be[5],mo=be[6],Nr=be[7],Fr=be[8],wr=be[9],zr=be[10],Qo=W1(fe,l,c,u),Fo=j(Qo,2),eo=Fo[0],Eo=Fo[1],es=eo.has("click"),ts=Eo.has("click")||Eo.has("contextMenu"),An=Et(function(){Ke||zr()}),gc=function(){Te.current&&U&&ts&&_e(!1)};G1(De,He,Ae,An,gc),vt(function(){An()},[ur,W]),vt(function(){De&&!($!=null&&$[W])&&An()},[JSON.stringify(D)]);var rs=xt.useMemo(function(){var Xe=mL($,i,wr,U);return(0,By.default)(Xe,z?.(wr))},[wr,z,$,i,U]);xt.useImperativeHandle(o,function(){return{nativeElement:ce.current,popupElement:Ie.current,forceAlign:An}});var Ct=xt.useState(0),dt=j(Ct,2),to=dt[0],ro=dt[1],vr=xt.useState(0),Ir=j(vr,2),gn=Ir[0],Zo=Ir[1],Ln=function(){if(H&&He){var ft=He.getBoundingClientRect();ro(ft.width),Zo(ft.height)}},Fi=function(){Ln(),An()},ci=function(ft){rt(!1),zr(),h?.(ft)},zi=function(){return new Promise(function(ft){Ln(),Ft(function(){return ft})})};vt(function(){er&&(zr(),er(),Ft(null))},[er]);function zo(Xe,ft,dr,$r){Ue[Xe]=function(mr){var ep;$r?.(mr),_e(ft,dr);for(var vx=arguments.length,WR=new Array(vx>1?vx-1:0),tp=1;tp<vx;tp++)WR[tp-1]=arguments[tp];(ep=Ce[Xe])===null||ep===void 0||ep.call.apply(ep,[Ce,mr].concat(WR))}}(es||ts)&&(Ue.onClick=function(Xe){var ft;Te.current&&ts?_e(!1):!Te.current&&es&&(fr(Xe),_e(!0));for(var dr=arguments.length,$r=new Array(dr>1?dr-1:0),mr=1;mr<dr;mr++)$r[mr-1]=arguments[mr];(ft=Ce.onClick)===null||ft===void 0||ft.call.apply(ft,[Ce,Xe].concat($r))});var gx=q1(De,ts,He,Ae,b,w,Ye,_e),BR=eo.has("hover"),jR=Eo.has("hover"),Bo,hc;BR&&(zo("onMouseEnter",!0,v,function(Xe){fr(Xe)}),zo("onPointerEnter",!0,v,function(Xe){fr(Xe)}),Bo=function(ft){(De||Ke)&&Ae!==null&&Ae!==void 0&&Ae.contains(ft.target)&&_e(!0,v)},U&&(Ue.onMouseMove=function(Xe){var ft;(ft=Ce.onMouseMove)===null||ft===void 0||ft.call(Ce,Xe)})),jR&&(zo("onMouseLeave",!1,g),zo("onPointerLeave",!1,g),hc=function(){_e(!1,g)}),eo.has("focus")&&zo("onFocus",!0,m),Eo.has("focus")&&zo("onBlur",!1,x),eo.has("contextMenu")&&(Ue.onContextMenu=function(Xe){var ft;Te.current&&Eo.has("contextMenu")?_e(!1):(fr(Xe),_e(!0)),Xe.preventDefault();for(var dr=arguments.length,$r=new Array(dr>1?dr-1:0),mr=1;mr<dr;mr++)$r[mr-1]=arguments[mr];(ft=Ce.onContextMenu)===null||ft===void 0||ft.call.apply(ft,[Ce,Xe].concat($r))}),K&&(Ue.className=(0,By.default)(Ce.className,K));var vc=P(P({},Ce),Ue),os={},yc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];yc.forEach(function(Xe){ie[Xe]&&(os[Xe]=function(){for(var ft,dr=arguments.length,$r=new Array(dr),mr=0;mr<dr;mr++)$r[mr]=arguments[mr];(ft=vc[Xe])===null||ft===void 0||ft.call.apply(ft,[vc].concat($r)),ie[Xe].apply(ie,$r)})});var Zm=xt.cloneElement(ze,P(P({},vc),os)),Jm={x:$t,y:mo},hx=G?P({},G!==!0?G:{}):null;return xt.createElement(xt.Fragment,null,xt.createElement(an,{disabled:!De,ref:pe,onResize:Fi},xt.createElement(cL,{getTriggerDOMNode:Q},Zm)),xt.createElement(j1.Provider,{value:we},xt.createElement(lL,{portal:e,ref:Oe,prefixCls:i,popup:N,className:(0,By.default)(k,rs),style:A,target:He,onMouseEnter:Bo,onMouseLeave:hc,onPointerEnter:Bo,zIndex:F,open:De,keepDom:Ke,fresh:B,onClick:V,onPointerDownCapture:gx,mask:b,motion:pt,maskMotion:Tt,onVisibleChanged:ci,onPrepare:zi,forceRender:R,autoDestroy:Z,getPopupContainer:C,align:wr,arrow:hx,arrowPos:Jm,ready:Ge,offsetX:ke,offsetY:xe,offsetR:ot,offsetB:It,onAlign:An,stretch:H,targetWidth:to/Nr,targetHeight:gn/Fr})))});return t}var jy=W7(Yl);var vL=E(Ee()),ni=E(I()),V7=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H7=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},U7=function(t,r){var o=t.prefixCls,n=t.disabled,i=t.visible,a=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,f=t.dropdownClassName,d=t.direction,p=d===void 0?"ltr":d,h=t.placement,v=t.builtinPlacements,y=t.dropdownMatchSelectWidth,g=t.dropdownRender,m=t.dropdownAlign,x=t.getPopupContainer,b=t.empty,S=t.getTriggerDOMNode,w=t.onPopupVisibleChange,C=t.onPopupMouseEnter,R=Me(t,V7),_="".concat(o,"-dropdown"),O=s;g&&(O=g(s));var N=ni.useMemo(function(){return v||H7(y)},[v,y]),k=l?"".concat(_,"-").concat(l):c,A=typeof y=="number",W=ni.useMemo(function(){return A?null:y===!1?"minWidth":"width"},[y,A]),L=u;A&&(L=P(P({},L),{},{width:y}));var $=ni.useRef(null);return ni.useImperativeHandle(r,function(){return{getPopupElement:function(){var F;return(F=$.current)===null||F===void 0?void 0:F.popupElement}}}),ni.createElement(jy,J({},R,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:_,popupTransitionName:k,popup:ni.createElement("div",{onMouseEnter:C},O),ref:$,stretch:W,popupAlign:m,popupVisible:i,getPopupContainer:x,popupClassName:(0,vL.default)(f,T({},"".concat(_,"-empty"),b)),popupStyle:L,getTriggerDOMNode:S,onPopupVisibleChange:w}),a)},G7=ni.forwardRef(U7),yL=G7;function xL(e,t){var r=e.key,o;return"value"in e&&(o=e.value),r??(o!==void 0?o:"rc-index-key-".concat(t))}function Sm(e){return typeof e<"u"&&!Number.isNaN(e)}function K1(e,t){var r=e||{},o=r.label,n=r.value,i=r.options,a=r.groupLabel,s=o||(t?"children":"label");return{label:s,value:n||"value",options:i||"options",groupLabel:a||s}}function SL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,o=t.childrenAsData,n=[],i=K1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(p){if(d||!(l in p)){var h=p[s];n.push({key:xL(p,n.length),groupOption:d,data:p,label:p[a],value:h})}else{var v=p[c];v===void 0&&o&&(v=p.label),n.push({key:xL(p,n.length),group:!0,data:p,label:v}),u(p[l],!0)}})}return u(e,!1),n}function bm(e){var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var bL=function(t,r,o){if(!r||!r.length)return null;var n=!1,i=function s(l,c){var u=Zh(c),f=u[0],d=u.slice(1);if(!f)return[l];var p=l.split(f);return n=n||p.length>1,p.reduce(function(h,v){return[].concat(se(h),se(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return n?typeof o<"u"?a.slice(0,o):a:null};var CL=E(I()),q7=CL.createContext(null),Hu=q7;var wL=E(I());function X1(e){var t=e.visible,r=e.values;if(!t)return null;var o=50;return wL.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,o).map(function(n){var i=n.label,a=n.value;return["number","string"].includes(ue(i))?i:a}).join(", ")),r.length>o?", ...":null)}var K7=["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"],X7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Cm=function(t){return t==="tags"||t==="multiple"},Y7=St.forwardRef(function(e,t){var r,o=e.id,n=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,v=e.onClear,y=e.mode,g=e.disabled,m=e.loading,x=e.getInputElement,b=e.getRawInputElement,S=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,_=e.onActiveValueChange,O=e.activeDescendantId,N=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,W=e.onSearchSplit,L=e.tokenSeparators,$=e.allowClear,D=e.prefix,F=e.suffixIcon,H=e.clearIcon,z=e.OptionList,B=e.animation,U=e.transitionName,V=e.dropdownStyle,M=e.dropdownClassName,G=e.dropdownMatchSelectWidth,q=e.dropdownRender,ee=e.dropdownAlign,X=e.placement,Y=e.builtinPlacements,ne=e.getPopupContainer,re=e.showAction,K=re===void 0?[]:re,Q=e.onFocus,ie=e.onBlur,Z=e.onKeyUp,oe=e.onKeyDown,me=e.onMouseDown,fe=Me(e,K7),de=Cm(y),he=(a!==void 0?a:de)||y==="combobox",ye=P({},fe);X7.forEach(function(Ct){delete ye[Ct]}),c?.forEach(function(Ct){delete ye[Ct]});var we=St.useState(!1),le=j(we,2),ae=le[0],Re=le[1];St.useEffect(function(){Re(Lu())},[]);var Ae=St.useRef(null),je=St.useRef(null),Ie=St.useRef(null),Oe=St.useRef(null),Se=St.useRef(null),Ve=St.useRef(!1),He=D1(),$e=j(He,3),ce=$e[0],pe=$e[1],ze=$e[2];St.useImperativeHandle(t,function(){var Ct,dt;return{focus:(Ct=Oe.current)===null||Ct===void 0?void 0:Ct.focus,blur:(dt=Oe.current)===null||dt===void 0?void 0:dt.blur,scrollTo:function(ro){var vr;return(vr=Se.current)===null||vr===void 0?void 0:vr.scrollTo(ro)},nativeElement:Ae.current||je.current}});var Ce=St.useMemo(function(){var Ct;if(y!=="combobox")return N;var dt=(Ct=u[0])===null||Ct===void 0?void 0:Ct.value;return typeof dt=="string"||typeof dt=="number"?String(dt):""},[N,y,u]),Ue=y==="combobox"&&typeof x=="function"&&x()||null,Ye=typeof b=="function"&&b(),pt=Rn(je,Ye==null||(r=Ye.props)===null||r===void 0?void 0:r.ref),Tt=St.useState(!1),gt=j(Tt,2),Be=gt[0],Pe=gt[1];vt(function(){Pe(!0)},[]);var et=zt(!1,{defaultValue:w,value:S}),De=j(et,2),Le=De[0],Te=De[1],Ne=Be?Le:!1,ht=!h&&d;(g||ht&&Ne&&y==="combobox")&&(Ne=!1);var jt=ht?!1:Ne,We=St.useCallback(function(Ct){var dt=Ct!==void 0?Ct:!Ne;g||(Te(dt),Ne!==dt&&C?.(dt))},[g,Ne,Te,C]),_e=St.useMemo(function(){return(L||[]).some(function(Ct){return[`
|
|
`,`\r
|
|
`].includes(Ct)})},[L]),Qe=St.useContext(Hu)||{},Ze=Qe.maxCount,Ke=Qe.rawValues,rt=function(dt,to,ro){if(!(de&&Sm(Ze)&&Ke?.size>=Ze)){var vr=!0,Ir=dt;_?.(null);var gn=bL(dt,L,Sm(Ze)?Ze-Ke.size:void 0),Zo=ro?null:gn;return y!=="combobox"&&Zo&&(Ir="",W?.(Zo),We(!1),vr=!1),A&&Ce!==Ir&&A(Ir,{source:to?"typing":"effect"}),vr}},Lt=function(dt){!dt||!dt.trim()||A(dt,{source:"submit"})};St.useEffect(function(){!Ne&&!de&&y!=="combobox"&&rt("",!1,!1)},[Ne]),St.useEffect(function(){Le&&g&&Te(!1),g&&!Ve.current&&pe(!1)},[g]);var Nt=pm(),er=j(Nt,2),Ft=er[0],tr=er[1],cr=St.useRef(!1),ur=function(dt){var to=Ft(),ro=dt.key,vr=ro==="Enter";if(vr&&(y!=="combobox"&&dt.preventDefault(),Ne||We(!0)),tr(!!Ce),ro==="Backspace"&&!to&&de&&!Ce&&u.length){for(var Ir=se(u),gn=null,Zo=Ir.length-1;Zo>=0;Zo-=1){var Ln=Ir[Zo];if(!Ln.disabled){Ir.splice(Zo,1),gn=Ln;break}}gn&&f(Ir,{type:"remove",values:[gn]})}for(var Fi=arguments.length,ci=new Array(Fi>1?Fi-1:0),zi=1;zi<Fi;zi++)ci[zi-1]=arguments[zi];if(Ne&&(!vr||!cr.current)){var zo;vr&&(cr.current=!0),(zo=Se.current)===null||zo===void 0||zo.onKeyDown.apply(zo,[dt].concat(ci))}oe?.apply(void 0,[dt].concat(ci))},ko=function(dt){for(var to=arguments.length,ro=new Array(to>1?to-1:0),vr=1;vr<to;vr++)ro[vr-1]=arguments[vr];if(Ne){var Ir;(Ir=Se.current)===null||Ir===void 0||Ir.onKeyUp.apply(Ir,[dt].concat(ro))}dt.key==="Enter"&&(cr.current=!1),Z?.apply(void 0,[dt].concat(ro))},fr=function(dt){var to=u.filter(function(ro){return ro!==dt});f(to,{type:"remove",values:[dt]})},Cr=function(){cr.current=!1},be=St.useRef(!1),Ge=function(){pe(!0),g||(Q&&!be.current&&Q.apply(void 0,arguments),K.includes("focus")&&We(!0)),be.current=!0},ke=function(){Ve.current=!0,pe(!1,function(){be.current=!1,Ve.current=!1,We(!1)}),!g&&(Ce&&(y==="tags"?A(Ce,{source:"submit"}):y==="multiple"&&A("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},xe=[];St.useEffect(function(){return function(){xe.forEach(function(Ct){return clearTimeout(Ct)}),xe.splice(0,xe.length)}},[]);var ot=function(dt){var to,ro=dt.target,vr=(to=Ie.current)===null||to===void 0?void 0:to.getPopupElement();if(vr&&vr.contains(ro)){var Ir=setTimeout(function(){var Fi=xe.indexOf(Ir);if(Fi!==-1&&xe.splice(Fi,1),ze(),!ae&&!vr.contains(document.activeElement)){var ci;(ci=Oe.current)===null||ci===void 0||ci.focus()}});xe.push(Ir)}for(var gn=arguments.length,Zo=new Array(gn>1?gn-1:0),Ln=1;Ln<gn;Ln++)Zo[Ln-1]=arguments[Ln];me?.apply(void 0,[dt].concat(Zo))},It=St.useState({}),$t=j(It,2),mo=$t[1];function Nr(){mo({})}var Fr;Ye&&(Fr=function(dt){We(dt)}),M1(function(){var Ct;return[Ae.current,(Ct=Ie.current)===null||Ct===void 0?void 0:Ct.getPopupElement()]},jt,We,!!Ye);var wr=St.useMemo(function(){return P(P({},e),{},{notFoundContent:h,open:Ne,triggerOpen:jt,id:o,showSearch:he,multiple:de,toggleOpen:We})},[e,h,jt,Ne,o,he,de,We]),zr=!!F||m,Qo;zr&&(Qo=St.createElement(Ys,{className:(0,Y1.default)("".concat(n,"-arrow"),T({},"".concat(n,"-arrow-loading"),m)),customizeIcon:F,customizeIconProps:{loading:m,searchValue:Ce,open:Ne,focused:ce,showSearch:he}}));var Fo=function(){var dt;v?.(),(dt=Oe.current)===null||dt===void 0||dt.focus(),f([],{type:"clear",values:u}),rt("",!1,!1)},eo=$A(n,Fo,u,$,H,g,Ce,y),Eo=eo.allowClear,es=eo.clearIcon,ts=St.createElement(z,{ref:Se}),An=(0,Y1.default)(n,i,T(T(T(T(T(T(T(T(T(T({},"".concat(n,"-focused"),ce),"".concat(n,"-multiple"),de),"".concat(n,"-single"),!de),"".concat(n,"-allow-clear"),$),"".concat(n,"-show-arrow"),zr),"".concat(n,"-disabled"),g),"".concat(n,"-loading"),m),"".concat(n,"-open"),Ne),"".concat(n,"-customize-input"),Ue),"".concat(n,"-show-search"),he)),gc=St.createElement(yL,{ref:Ie,disabled:g,prefixCls:n,visible:jt,popupElement:ts,animation:B,transitionName:U,dropdownStyle:V,dropdownClassName:M,direction:l,dropdownMatchSelectWidth:G,dropdownRender:q,dropdownAlign:ee,placement:X,builtinPlacements:Y,getPopupContainer:ne,empty:d,getTriggerDOMNode:function(dt){return je.current||dt},onPopupVisibleChange:Fr,onPopupMouseEnter:Nr},Ye?St.cloneElement(Ye,{ref:pt}):St.createElement(rL,J({},e,{domRef:je,prefixCls:n,inputElement:Ue,ref:Oe,id:o,prefix:D,showSearch:he,autoClearSearchValue:k,mode:y,activeDescendantId:O,tagRender:s,values:u,open:Ne,onToggleOpen:We,activeValue:R,searchValue:Ce,onSearch:rt,onSearchSubmit:Lt,onRemove:fr,tokenWithEnter:_e,onInputBlur:Cr}))),rs;return Ye?rs=gc:rs=St.createElement("div",J({className:An},ye,{ref:Ae,onMouseDown:ot,onKeyDown:ur,onKeyUp:ko,onFocus:Ge,onBlur:ke}),St.createElement(X1,{visible:ce&&!Ne,values:u}),gc,Qo,Eo&&es),St.createElement($1.Provider,{value:wr},rs)}),Q1=Y7;var EL=function(){return null};EL.isSelectOptGroup=!0;var wm=EL;var RL=function(){return null};RL.isSelectOption=!0;var Em=RL;var uE=E(Ee());var BL=E(Ee());var Tr=E(I()),fn=E(I()),cE=E(Ci());var Uu=E(I());var OL=E(Ee()),_L=Uu.forwardRef(function(e,t){var r=e.height,o=e.offsetY,n=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},d={display:"flex",flexDirection:"column"};return o!==void 0&&(f={height:r,position:"relative",overflow:"hidden"},d=P(P({},d),{},T(T(T(T(T({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-n),"position","absolute"),"left",0),"right",0),"top",0))),Uu.createElement("div",{style:f},Uu.createElement(an,{onResize:function(h){var v=h.offsetHeight;v&&s&&s()}},Uu.createElement("div",J({style:d,className:(0,OL.default)(T({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});_L.displayName="Filler";var PL=_L;var NL=E(I());var Wy=E(I());function TL(e){var t=e.children,r=e.setRef,o=Wy.useCallback(function(n){r(n)},[]);return Wy.cloneElement(t,{ref:o})}function Z1(e,t,r,o,n,i,a,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,u){var f=t+u,d=a(c,f,{style:{width:o},offsetX:n}),p=l(c);return NL.createElement(TL,{key:p,setRef:function(v){return i(c,v)}},d)})}var Rm=E(I());function IL(e,t,r){var o=e.length,n=t.length,i,a;if(o===0&&n===0)return null;o<n?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?r(h):s}for(var c=null,u=Math.abs(o-n)!==1,f=0;f<a.length;f+=1){var d=l(i[f]),p=l(a[f]);if(d!==p){c=f,u=u||d!==l(a[f+1]);break}}return c===null?null:{index:c,multiple:u}}function J1(e,t,r){var o=Rm.useState(e),n=j(o,2),i=n[0],a=n[1],s=Rm.useState(null),l=j(s,2),c=l[0],u=l[1];return Rm.useEffect(function(){var f=IL(i||[],e||[],t);f?.index!==void 0&&(r?.(f.index),u(e[f.index])),a(e)},[e]),[c]}var nc=E(I());var Q7=(typeof navigator>"u"?"undefined":ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),eE=Q7;var Vy=E(I()),Hy=function(e,t,r,o){var n=(0,Vy.useRef)(!1),i=(0,Vy.useRef)(null);function a(){clearTimeout(i.current),n.current=!0,i.current=setTimeout(function(){n.current=!1},50)}var s=(0,Vy.useRef)({top:e,bottom:t,left:r,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=o,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),n.current=!1):(!f||n.current)&&a(),!n.current&&f}};function tE(e,t,r,o,n,i,a){var s=(0,nc.useRef)(0),l=(0,nc.useRef)(null),c=(0,nc.useRef)(null),u=(0,nc.useRef)(!1),f=Hy(t,r,o,n);function d(m,x){if(ct.cancel(l.current),!f(!1,x)){var b=m;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,eE||b.preventDefault(),l.current=ct(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function p(m,x){a(x,!0),eE||m.preventDefault()}var h=(0,nc.useRef)(null),v=(0,nc.useRef)(null);function y(m){if(e){ct.cancel(v.current),v.current=ct(function(){h.current=null},2);var x=m.deltaX,b=m.deltaY,S=m.shiftKey,w=x,C=b;(h.current==="sx"||!h.current&&S&&b&&!x)&&(w=b,C=0,h.current="sx");var R=Math.abs(w),_=Math.abs(C);h.current===null&&(h.current=i&&R>_?"x":"y"),h.current==="y"?d(m,C):p(m,w)}}function g(m){e&&(u.current=m.detail===c.current)}return[y,g]}var $L=E(I());function DL(e,t,r,o){var n=$L.useMemo(function(){return[new Map,[]]},[e,r.id,o]),i=j(n,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=a.get(u),p=a.get(f);if(d===void 0||p===void 0)for(var h=e.length,v=s.length;v<h;v+=1){var y,g=e[v],m=t(g);a.set(m,v);var x=(y=r.get(m))!==null&&y!==void 0?y:o;if(s[v]=(s[v-1]||0)+x,m===u&&(d=v),m===f&&(p=v),d!==void 0&&p!==void 0)break}return{top:s[d-1]||0,bottom:s[p]}};return l}var LL=E(I()),Gu=E(I());var Z7=function(){function e(){st(this,e),T(this,"maps",void 0),T(this,"id",0),T(this,"diffKeys",new Set),this.maps=Object.create(null)}return lt(e,[{key:"set",value:function(r,o){this.maps[r]=o,this.id+=1,this.diffKeys.add(r)}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}(),ML=Z7;function AL(e){var t=parseFloat(e);return isNaN(t)?0:t}function rE(e,t,r){var o=LL.useState(0),n=j(o,2),i=n[0],a=n[1],s=(0,Gu.useRef)(new Map),l=(0,Gu.useRef)(new ML),c=(0,Gu.useRef)(0);function u(){c.current+=1}function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(m,x){if(m&&m.offsetParent){var b=m.offsetHeight,S=getComputedStyle(m),w=S.marginTop,C=S.marginBottom,R=AL(w),_=AL(C),O=b+R+_;l.current.get(x)!==O&&(l.current.set(x,O),g=!0)}}),g&&a(function(m){return m+1})};if(p)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function d(p,h){var v=e(p),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(p):r?.(p))}return(0,Gu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var qu=E(I()),kL=14/15;function oE(e,t,r){var o=(0,qu.useRef)(!1),n=(0,qu.useRef)(0),i=(0,qu.useRef)(0),a=(0,qu.useRef)(null),s=(0,qu.useRef)(null),l,c=function(p){if(o.current){var h=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),y=n.current-h,g=i.current-v,m=Math.abs(y)>Math.abs(g);m?n.current=h:i.current=v;var x=r(m,m?y:g,!1,p);x&&p.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){m?y*=kL:g*=kL;var b=Math.floor(m?y:g);(!r(m,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){o.current=!1,l()},f=function(p){l(),p.touches.length===1&&!o.current&&(o.current=!0,n.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.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))},vt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var zL=E(I());function FL(e){return Math.floor(Math.pow(e,.5))}function Uy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function nE(e,t,r){zL.useEffect(function(){var o=t.current;if(e&&o){var n=!1,i,a,s=function(){ct.cancel(i)},l=function d(){s(),i=ct(function(){r(a),d()})},c=function(p){if(!p.target.draggable){var h=p;h._virtualHandled||(h._virtualHandled=!0,n=!0)}},u=function(){n=!1,s()},f=function(p){if(n){var h=Uy(p,!1),v=o.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var m=y-h;a=-FL(m),l()}else if(h>=g){var x=h-g;a=FL(x),l()}else s()}};return o.addEventListener("mousedown",c),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",f),function(){o.removeEventListener("mousedown",c),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var Gy=E(I());var J7=10;function iE(e,t,r,o,n,i,a,s){var l=Gy.useRef(),c=Gy.useState(null),u=j(c,2),f=u[0],d=u[1];return vt(function(){if(f&&f.times<J7){if(!e.current){d(function(H){return P({},H)});return}i();var p=f.targetAlign,h=f.originAlign,v=f.index,y=f.offset,g=e.current.clientHeight,m=!1,x=p,b=null;if(g){for(var S=p||h,w=0,C=0,R=0,_=Math.min(t.length-1,v),O=0;O<=_;O+=1){var N=n(t[O]);C=w;var k=r.get(N);R=C+(k===void 0?o:k),w=R}for(var A=S==="top"?y:g-y,W=_;W>=0;W-=1){var L=n(t[W]),$=r.get(L);if($===void 0){m=!0;break}if(A-=$,A<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-g+y;break;default:{var D=e.current.scrollTop,F=D+g;C<D?x="top":R>F&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(m=!0)}m&&d(P(P({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(p){if(p==null){s();return}if(ct.cancel(l.current),typeof p=="number")a(p);else if(p&&ue(p)==="object"){var h,v=p.align;"index"in p?h=p.index:h=t.findIndex(function(m){return n(m)===p.key});var y=p.offset,g=y===void 0?0:y;d({times:0,index:h,offset:g,originAlign:v})}}}var aE=E(Ee());var ar=E(I());var e9=ar.forwardRef(function(e,t){var r=e.prefixCls,o=e.rtl,n=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,p=e.thumbStyle,h=e.showScrollBar,v=ar.useState(!1),y=j(v,2),g=y[0],m=y[1],x=ar.useState(null),b=j(x,2),S=b[0],w=b[1],C=ar.useState(null),R=j(C,2),_=R[0],O=R[1],N=!o,k=ar.useRef(),A=ar.useRef(),W=ar.useState(h),L=j(W,2),$=L[0],D=L[1],F=ar.useRef(),H=function(){h===!0||h===!1||(clearTimeout(F.current),D(!0),F.current=setTimeout(function(){D(!1)},3e3))},z=i-f||0,B=f-u||0,U=ar.useMemo(function(){if(n===0||z===0)return 0;var re=n/z;return re*B},[n,z,B]),V=function(K){K.stopPropagation(),K.preventDefault()},M=ar.useRef({top:U,dragging:g,pageY:S,startTop:_});M.current={top:U,dragging:g,pageY:S,startTop:_};var G=function(K){m(!0),w(Uy(K,c)),O(M.current.top),a(),K.stopPropagation(),K.preventDefault()};ar.useEffect(function(){var re=function(Z){Z.preventDefault()},K=k.current,Q=A.current;return K.addEventListener("touchstart",re,{passive:!1}),Q.addEventListener("touchstart",G,{passive:!1}),function(){K.removeEventListener("touchstart",re),Q.removeEventListener("touchstart",G)}},[]);var q=ar.useRef();q.current=z;var ee=ar.useRef();ee.current=B,ar.useEffect(function(){if(g){var re,K=function(Z){var oe=M.current,me=oe.dragging,fe=oe.pageY,de=oe.startTop;ct.cancel(re);var he=k.current.getBoundingClientRect(),ye=f/(c?he.width:he.height);if(me){var we=(Uy(Z,c)-fe)*ye,le=de;!N&&c?le-=we:le+=we;var ae=q.current,Re=ee.current,Ae=Re?le/Re:0,je=Math.ceil(Ae*ae);je=Math.max(je,0),je=Math.min(je,ae),re=ct(function(){l(je,c)})}},Q=function(){m(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),ct.cancel(re)}}},[g]),ar.useEffect(function(){return H(),function(){clearTimeout(F.current)}},[n]),ar.useImperativeHandle(t,function(){return{delayHidden:H}});var X="".concat(r,"-scrollbar"),Y={position:"absolute",visibility:$?null:"hidden"},ne={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,ne.height="100%",ne.width=u,N?ne.left=U:ne.right=U):(Y.width=8,Y.top=0,Y.bottom=0,N?Y.right=0:Y.left=0,ne.width="100%",ne.height=u,ne.top=U),ar.createElement("div",{ref:k,className:(0,aE.default)(X,T(T(T({},"".concat(X,"-horizontal"),c),"".concat(X,"-vertical"),!c),"".concat(X,"-visible"),$)),style:P(P({},Y),d),onMouseDown:V,onMouseMove:H},ar.createElement("div",{ref:A,className:(0,aE.default)("".concat(X,"-thumb"),T({},"".concat(X,"-thumb-moving"),g)),style:P(P({},ne),p),onMouseDown:G}))}),sE=e9;var t9=20;function lE(){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,t9),Math.floor(r)}var r9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],o9=[],n9={overflowY:"auto",overflowAnchor:"none"};function i9(e,t){var r=e.prefixCls,o=r===void 0?"rc-virtual-list":r,n=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,p=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,m=e.onScroll,x=e.onVirtualScroll,b=e.onVisibleChange,S=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,_=R===void 0?"optional":R,O=Me(e,r9),N=Tr.useCallback(function(be){return typeof d=="function"?d(be):be?.[d]},[d]),k=rE(N,null,null),A=j(k,4),W=A[0],L=A[1],$=A[2],D=A[3],F=!!(p!==!1&&i&&a),H=Tr.useMemo(function(){return Object.values($.maps).reduce(function(be,Ge){return be+Ge},0)},[$.id,$.maps]),z=F&&u&&(Math.max(a*u.length,H)>i||!!v),B=h==="rtl",U=(0,BL.default)(o,T({},"".concat(o,"-rtl"),B),n),V=u||o9,M=(0,fn.useRef)(),G=(0,fn.useRef)(),q=(0,fn.useRef)(),ee=(0,fn.useState)(0),X=j(ee,2),Y=X[0],ne=X[1],re=(0,fn.useState)(0),K=j(re,2),Q=K[0],ie=K[1],Z=(0,fn.useState)(!1),oe=j(Z,2),me=oe[0],fe=oe[1],de=function(){fe(!0)},he=function(){fe(!1)},ye={getKey:N};function we(be){ne(function(Ge){var ke;typeof be=="function"?ke=be(Ge):ke=be;var xe=Pe(ke);return M.current.scrollTop=xe,xe})}var le=(0,fn.useRef)({start:0,end:V.length}),ae=(0,fn.useRef)(),Re=J1(V,N),Ae=j(Re,1),je=Ae[0];ae.current=je;var Ie=Tr.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!z){var be;return{scrollHeight:((be=G.current)===null||be===void 0?void 0:be.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Ge=0,ke,xe,ot,It=V.length,$t=0;$t<It;$t+=1){var mo=V[$t],Nr=N(mo),Fr=$.get(Nr),wr=Ge+(Fr===void 0?a:Fr);wr>=Y&&ke===void 0&&(ke=$t,xe=Ge),wr>Y+i&&ot===void 0&&(ot=$t),Ge=wr}return ke===void 0&&(ke=0,xe=0,ot=Math.ceil(i/a)),ot===void 0&&(ot=V.length-1),ot=Math.min(ot+1,V.length-1),{scrollHeight:Ge,start:ke,end:ot,offset:xe}},[z,F,Y,V,D,i]),Oe=Ie.scrollHeight,Se=Ie.start,Ve=Ie.end,He=Ie.offset;le.current.start=Se,le.current.end=Ve,Tr.useLayoutEffect(function(){var be=$.getRecord();if(be.size===1){var Ge=Array.from(be)[0],ke=V[Se];if(ke){var xe=N(ke);if(xe===Ge){var ot=$.get(Ge),It=ot-a;we(function($t){return $t+It})}}}$.resetRecord()},[Oe]);var $e=Tr.useState({width:0,height:i}),ce=j($e,2),pe=ce[0],ze=ce[1],Ce=function(Ge){ze({width:Ge.offsetWidth,height:Ge.offsetHeight})},Ue=(0,fn.useRef)(),Ye=(0,fn.useRef)(),pt=Tr.useMemo(function(){return lE(pe.width,v)},[pe.width,v]),Tt=Tr.useMemo(function(){return lE(pe.height,Oe)},[pe.height,Oe]),gt=Oe-i,Be=(0,fn.useRef)(gt);Be.current=gt;function Pe(be){var Ge=be;return Number.isNaN(Be.current)||(Ge=Math.min(Ge,Be.current)),Ge=Math.max(Ge,0),Ge}var et=Y<=0,De=Y>=gt,Le=Q<=0,Te=Q>=v,Ne=Hy(et,De,Le,Te),ht=function(){return{x:B?-Q:Q,y:Y}},jt=(0,fn.useRef)(ht()),We=Et(function(be){if(x){var Ge=P(P({},ht()),be);(jt.current.x!==Ge.x||jt.current.y!==Ge.y)&&(x(Ge),jt.current=Ge)}});function _e(be,Ge){var ke=be;Ge?((0,cE.flushSync)(function(){ie(ke)}),We()):we(ke)}function Qe(be){var Ge=be.currentTarget.scrollTop;Ge!==Y&&we(Ge),m?.(be),We()}var Ze=function(Ge){var ke=Ge,xe=v?v-pe.width:0;return ke=Math.max(ke,0),ke=Math.min(ke,xe),ke},Ke=Et(function(be,Ge){Ge?((0,cE.flushSync)(function(){ie(function(ke){var xe=ke+(B?-be:be);return Ze(xe)})}),We()):we(function(ke){var xe=ke+be;return xe})}),rt=tE(F,et,De,Le,Te,!!v,Ke),Lt=j(rt,2),Nt=Lt[0],er=Lt[1];oE(F,M,function(be,Ge,ke,xe){var ot=xe;return Ne(be,Ge,ke)?!1:!ot||!ot._virtualHandled?(ot&&(ot._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:be?Ge:0,deltaY:be?0:Ge}),!0):!1}),nE(z,M,function(be){we(function(Ge){return Ge+be})}),vt(function(){function be(ke){var xe=et&&ke.detail<0,ot=De&&ke.detail>0;F&&!xe&&!ot&&ke.preventDefault()}var Ge=M.current;return Ge.addEventListener("wheel",Nt,{passive:!1}),Ge.addEventListener("DOMMouseScroll",er,{passive:!0}),Ge.addEventListener("MozMousePixelScroll",be,{passive:!1}),function(){Ge.removeEventListener("wheel",Nt),Ge.removeEventListener("DOMMouseScroll",er),Ge.removeEventListener("MozMousePixelScroll",be)}},[F,et,De]),vt(function(){if(v){var be=Ze(Q);ie(be),We({x:be})}},[pe.width,v]);var Ft=function(){var Ge,ke;(Ge=Ue.current)===null||Ge===void 0||Ge.delayHidden(),(ke=Ye.current)===null||ke===void 0||ke.delayHidden()},tr=iE(M,V,$,a,N,function(){return L(!0)},we,Ft);Tr.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:ht,scrollTo:function(Ge){function ke(xe){return xe&&ue(xe)==="object"&&("left"in xe||"top"in xe)}ke(Ge)?(Ge.left!==void 0&&ie(Ze(Ge.left)),tr(Ge.top)):tr(Ge)}}}),vt(function(){if(b){var be=V.slice(Se,Ve+1);b(be,V)}},[Se,Ve,V]);var cr=DL(V,N,$,a),ur=w?.({start:Se,end:Ve,virtual:z,offsetX:Q,offsetY:He,rtl:B,getSize:cr}),ko=Z1(V,Se,Ve,v,Q,W,f,ye),fr=null;i&&(fr=P(T({},l?"height":"maxHeight",i),n9),F&&(fr.overflowY="hidden",v&&(fr.overflowX="hidden"),me&&(fr.pointerEvents="none")));var Cr={};return B&&(Cr.dir="rtl"),Tr.createElement("div",J({ref:q,style:P(P({},c),{},{position:"relative"}),className:U},Cr,O),Tr.createElement(an,{onResize:Ce},Tr.createElement(g,{className:"".concat(o,"-holder"),style:fr,ref:M,onScroll:Qe,onMouseEnter:Ft},Tr.createElement(PL,{prefixCls:o,height:Oe,offsetX:Q,offsetY:He,scrollWidth:v,onInnerResize:L,ref:G,innerProps:S,rtl:B,extra:ur},ko))),z&&Oe>i&&Tr.createElement(sE,{ref:Ue,prefixCls:o,scrollOffset:Y,scrollRange:Oe,rtl:B,onScroll:_e,onStartMove:de,onStopMove:he,spinSize:Tt,containerSize:pe.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:_}),z&&v>pe.width&&Tr.createElement(sE,{ref:Ye,prefixCls:o,scrollOffset:Q,scrollRange:v,rtl:B,onScroll:_e,onStartMove:de,onStopMove:he,spinSize:pt,containerSize:pe.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:_}))}var jL=Tr.forwardRef(i9);jL.displayName="List";var WL=jL;var VL=WL;var Gt=E(I()),fE=E(I());function HL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var a9=["disabled","title","children","style","className"];function UL(e){return typeof e=="string"||typeof e=="number"}var s9=function(t,r){var o=$y(),n=o.prefixCls,i=o.id,a=o.open,s=o.multiple,l=o.mode,c=o.searchValue,u=o.toggleOpen,f=o.notFoundContent,d=o.onPopupScroll,p=Gt.useContext(Hu),h=p.maxCount,v=p.flattenOptions,y=p.onActiveValue,g=p.defaultActiveFirstOption,m=p.onSelect,x=p.menuItemSelectedIcon,b=p.rawValues,S=p.fieldNames,w=p.virtual,C=p.direction,R=p.listHeight,_=p.listItemHeight,O=p.optionRender,N="".concat(n,"-item"),k=Yi(function(){return v},[a,v],function(re,K){return K[0]&&re[1]!==K[1]}),A=Gt.useRef(null),W=Gt.useMemo(function(){return s&&Sm(h)&&b?.size>=h},[s,h,b?.size]),L=function(K){K.preventDefault()},$=function(K){var Q;(Q=A.current)===null||Q===void 0||Q.scrollTo(typeof K=="number"?{index:K}:K)},D=Gt.useCallback(function(re){return l==="combobox"?!1:b.has(re)},[l,se(b).toString(),b.size]),F=function(K){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=k.length,Z=0;Z<ie;Z+=1){var oe=(K+Z*Q+ie)%ie,me=k[oe]||{},fe=me.group,de=me.data;if(!fe&&!(de!=null&&de.disabled)&&(D(de.value)||!W))return oe}return-1},H=Gt.useState(function(){return F(0)}),z=j(H,2),B=z[0],U=z[1],V=function(K){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(K);var ie={source:Q?"keyboard":"mouse"},Z=k[K];if(!Z){y(null,-1,ie);return}y(Z.value,K,ie)};(0,fE.useEffect)(function(){V(g!==!1?F(0):-1)},[k.length,c]);var M=Gt.useCallback(function(re){return l==="combobox"?String(re).toLowerCase()===c.toLowerCase():b.has(re)},[l,c,se(b).toString(),b.size]);(0,fE.useEffect)(function(){var re=setTimeout(function(){if(!s&&a&&b.size===1){var Q=Array.from(b)[0],ie=k.findIndex(function(Z){var oe=Z.data;return oe.value===Q});ie!==-1&&(V(ie),$(ie))}});if(a){var K;(K=A.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(re)}},[a,c]);var G=function(K){K!==void 0&&m(K,{selected:!b.has(K)}),s||u(!1)};if(Gt.useImperativeHandle(r,function(){return{onKeyDown:function(K){var Q=K.which,ie=K.ctrlKey;switch(Q){case Fe.N:case Fe.P:case Fe.UP:case Fe.DOWN:{var Z=0;if(Q===Fe.UP?Z=-1:Q===Fe.DOWN?Z=1:HL()&&ie&&(Q===Fe.N?Z=1:Q===Fe.P&&(Z=-1)),Z!==0){var oe=F(B+Z,Z);$(oe),V(oe,!0)}break}case Fe.TAB:case Fe.ENTER:{var me,fe=k[B];fe&&!(fe!=null&&(me=fe.data)!==null&&me!==void 0&&me.disabled)&&!W?G(fe.value):G(void 0),a&&K.preventDefault();break}case Fe.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){$(K)}}}),k.length===0)return Gt.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:L},f);var q=Object.keys(S).map(function(re){return S[re]}),ee=function(K){return K.label};function X(re,K){var Q=re.group;return{role:Q?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var Y=function(K){var Q=k[K];if(!Q)return null;var ie=Q.data||{},Z=ie.value,oe=Q.group,me=Do(ie,!0),fe=ee(Q);return Q?Gt.createElement("div",J({"aria-label":typeof fe=="string"&&!oe?fe:null},me,{key:K},X(Q,K),{"aria-selected":M(Z)}),Z):null},ne={role:"listbox",id:"".concat(i,"_list")};return Gt.createElement(Gt.Fragment,null,w&&Gt.createElement("div",J({},ne,{style:{height:0,width:0,overflow:"hidden"}}),Y(B-1),Y(B),Y(B+1)),Gt.createElement(VL,{itemKey:"key",ref:A,data:k,height:R,itemHeight:_,fullHeight:!1,onMouseDown:L,onScroll:d,virtual:w,direction:C,innerProps:w?null:ne},function(re,K){var Q=re.group,ie=re.groupOption,Z=re.data,oe=re.label,me=re.value,fe=Z.key;if(Q){var de,he=(de=Z.title)!==null&&de!==void 0?de:UL(oe)?oe.toString():void 0;return Gt.createElement("div",{className:(0,uE.default)(N,"".concat(N,"-group"),Z.className),title:he},oe!==void 0?oe:fe)}var ye=Z.disabled,we=Z.title,le=Z.children,ae=Z.style,Re=Z.className,Ae=Me(Z,a9),je=Ur(Ae,q),Ie=D(me),Oe=ye||!Ie&&W,Se="".concat(N,"-option"),Ve=(0,uE.default)(N,Se,Re,T(T(T(T({},"".concat(Se,"-grouped"),ie),"".concat(Se,"-active"),B===K&&!Oe),"".concat(Se,"-disabled"),Oe),"".concat(Se,"-selected"),Ie)),He=ee(re),$e=!x||typeof x=="function"||Ie,ce=typeof He=="number"?He:He||me,pe=UL(ce)?ce.toString():void 0;return we!==void 0&&(pe=we),Gt.createElement("div",J({},Do(je),w?{}:X(re,K),{"aria-selected":M(me),className:Ve,title:pe,onMouseMove:function(){B===K||Oe||V(K)},onClick:function(){Oe||G(me)},style:ae}),Gt.createElement("div",{className:"".concat(Se,"-content")},typeof O=="function"?O(re,{index:K}):ce),Gt.isValidElement(x)||Ie,$e&&Gt.createElement(Ys,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:me,disabled:Oe,isSelected:Ie}},Ie?"\u2713":null))}))},l9=Gt.forwardRef(s9),GL=l9;var Ku=E(I()),qL=function(e,t){var r=Ku.useRef({values:new Map,options:new Map}),o=Ku.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return P(P({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),n=Ku.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[o,n]};var KL=E(I());function dE(e,t){return hm(e).join("").toUpperCase().includes(t)}var XL=function(e,t,r,o,n){return KL.useMemo(function(){if(!r||o===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof o=="function",u=r.toUpperCase(),f=c?o:function(p,h){return n?dE(h[n],u):h[i]?dE(h[a!=="children"?a:"label"],u):dE(h[s],u)},d=c?function(p){return bm(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var h=f(r,d(p));if(h)l.push(p);else{var v=p[i].filter(function(y){return f(r,d(y))});v.length&&l.push(P(P({},p),{},T({},i,v)))}return}f(r,d(p))&&l.push(p)}),l},[e,o,n,r,t])};var qy=E(I());var YL=0,c9=Xt();function u9(){var e;return c9?(e=YL,YL+=1):e="TEST_OR_SSR",e}function mE(e){var t=qy.useState(),r=j(t,2),o=r[0],n=r[1];return qy.useEffect(function(){n("rc_select_".concat(u9()))},[]),e||o}var ZL=E(I());var QL=E(I());var f9=["children","value"],d9=["children"];function m9(e){var t=e,r=t.key,o=t.props,n=o.children,i=o.value,a=Me(o,f9);return P({key:r,value:i!==void 0?i:r,children:n},a)}function Ky(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wi(e).map(function(r,o){if(!QL.isValidElement(r)||!r.type)return null;var n=r,i=n.type.isSelectOptGroup,a=n.key,s=n.props,l=s.children,c=Me(s,d9);return t||!i?m9(r):P(P({key:"__RC_SELECT_GRP__".concat(a===null?o:a,"__"),label:a},c),{},{options:Ky(l)})}).filter(function(r){return r})}var p9=function(t,r,o,n,i){return ZL.useMemo(function(){var a=t,s=!t;s&&(a=Ky(r));var l=new Map,c=new Map,u=function(p,h,v){v&&typeof v=="string"&&p.set(h[v],h)},f=function d(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<p.length;v+=1){var y=p[v];!y[o.options]||h?(l.set(y[o.value],y),u(c,y,o.label),u(c,y,n),u(c,y,i)):d(y[o.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:c}},[t,r,o,n,i])},JL=p9;var Xy=E(I());function Yy(e){var t=Xy.useRef();t.current=e;var r=Xy.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var g9=E(I());var h9=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],v9=["inputValue"];function y9(e){return!e||ue(e)!=="object"}var x9=sr.forwardRef(function(e,t){var r=e.id,o=e.mode,n=e.prefixCls,i=n===void 0?"rc-select":n,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,d=f===void 0?!0:f,p=e.onSelect,h=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,g=e.filterOption,m=e.filterSort,x=e.optionFilterProp,b=e.optionLabelProp,S=e.options,w=e.optionRender,C=e.children,R=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,O=e.virtual,N=e.direction,k=e.listHeight,A=k===void 0?200:k,W=e.listItemHeight,L=W===void 0?20:W,$=e.labelRender,D=e.value,F=e.defaultValue,H=e.labelInValue,z=e.onChange,B=e.maxCount,U=Me(e,h9),V=mE(r),M=Cm(o),G=!!(!S&&C),q=sr.useMemo(function(){return g===void 0&&o==="combobox"?!1:g},[g,o]),ee=sr.useMemo(function(){return K1(s,G)},[JSON.stringify(s),G]),X=zt("",{value:c!==void 0?c:l,postState:function(_e){return _e||""}}),Y=j(X,2),ne=Y[0],re=Y[1],K=JL(S,C,ee,x,b),Q=K.valueOptions,ie=K.labelOptions,Z=K.options,oe=sr.useCallback(function(We){var _e=hm(We);return _e.map(function(Qe){var Ze,Ke,rt,Lt,Nt;if(y9(Qe))Ze=Qe;else{var er;rt=Qe.key,Ke=Qe.label,Ze=(er=Qe.value)!==null&&er!==void 0?er:rt}var Ft=Q.get(Ze);if(Ft){var tr;if(Ke===void 0&&(Ke=Ft?.[b||ee.label]),rt===void 0&&(rt=(tr=Ft?.key)!==null&&tr!==void 0?tr:Ze),Lt=Ft?.disabled,Nt=Ft?.title,0)var cr}return{label:Ke,value:Ze,key:rt,disabled:Lt,title:Nt}})},[ee,b,Q]),me=zt(F,{value:D}),fe=j(me,2),de=fe[0],he=fe[1],ye=sr.useMemo(function(){var We,_e=M&&de===null?[]:de,Qe=oe(_e);return o==="combobox"&&QA((We=Qe[0])===null||We===void 0?void 0:We.value)?[]:Qe},[de,oe,o,M]),we=qL(ye,Q),le=j(we,2),ae=le[0],Re=le[1],Ae=sr.useMemo(function(){if(!o&&ae.length===1){var We=ae[0];if(We.value===null&&(We.label===null||We.label===void 0))return[]}return ae.map(function(_e){var Qe;return P(P({},_e),{},{label:(Qe=typeof $=="function"?$(_e):_e.label)!==null&&Qe!==void 0?Qe:_e.value})})},[o,ae,$]),je=sr.useMemo(function(){return new Set(ae.map(function(We){return We.value}))},[ae]);sr.useEffect(function(){if(o==="combobox"){var We,_e=(We=ae[0])===null||We===void 0?void 0:We.value;re(YA(_e)?String(_e):"")}},[ae]);var Ie=Yy(function(We,_e){var Qe=_e??We;return T(T({},ee.value,We),ee.label,Qe)}),Oe=sr.useMemo(function(){if(o!=="tags")return Z;var We=se(Z),_e=function(Ze){return Q.has(Ze)};return se(ae).sort(function(Qe,Ze){return Qe.value<Ze.value?-1:1}).forEach(function(Qe){var Ze=Qe.value;_e(Ze)||We.push(Ie(Ze,Qe.label))}),We},[Ie,Z,Q,ae,o]),Se=XL(Oe,ee,ne,q,x),Ve=sr.useMemo(function(){return o!=="tags"||!ne||Se.some(function(We){return We[x||"value"]===ne})||Se.some(function(We){return We[ee.value]===ne})?Se:[Ie(ne)].concat(se(Se))},[Ie,x,o,Se,ne,ee]),He=function We(_e){var Qe=se(_e).sort(function(Ze,Ke){return m(Ze,Ke,{searchValue:ne})});return Qe.map(function(Ze){return Array.isArray(Ze.options)?P(P({},Ze),{},{options:Ze.options.length>0?We(Ze.options):Ze.options}):Ze})},$e=sr.useMemo(function(){return m?He(Ve):Ve},[Ve,m,ne]),ce=sr.useMemo(function(){return SL($e,{fieldNames:ee,childrenAsData:G})},[$e,ee,G]),pe=function(_e){var Qe=oe(_e);if(he(Qe),z&&(Qe.length!==ae.length||Qe.some(function(rt,Lt){var Nt;return((Nt=ae[Lt])===null||Nt===void 0?void 0:Nt.value)!==rt?.value}))){var Ze=H?Qe:Qe.map(function(rt){return rt.value}),Ke=Qe.map(function(rt){return bm(Re(rt.value))});z(M?Ze:Ze[0],M?Ke:Ke[0])}},ze=sr.useState(null),Ce=j(ze,2),Ue=Ce[0],Ye=Ce[1],pt=sr.useState(0),Tt=j(pt,2),gt=Tt[0],Be=Tt[1],Pe=R!==void 0?R:o!=="combobox",et=sr.useCallback(function(We,_e){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=Qe.source,Ke=Ze===void 0?"keyboard":Ze;Be(_e),a&&o==="combobox"&&We!==null&&Ke==="keyboard"&&Ye(String(We))},[a,o]),De=function(_e,Qe,Ze){var Ke=function(){var fr,Cr=Re(_e);return[H?{label:Cr?.[ee.label],value:_e,key:(fr=Cr?.key)!==null&&fr!==void 0?fr:_e}:_e,bm(Cr)]};if(Qe&&p){var rt=Ke(),Lt=j(rt,2),Nt=Lt[0],er=Lt[1];p(Nt,er)}else if(!Qe&&h&&Ze!=="clear"){var Ft=Ke(),tr=j(Ft,2),cr=tr[0],ur=tr[1];h(cr,ur)}},Le=Yy(function(We,_e){var Qe,Ze=M?_e.selected:!0;Ze?Qe=M?[].concat(se(ae),[We]):[We]:Qe=ae.filter(function(Ke){return Ke.value!==We}),pe(Qe),De(We,Ze),o==="combobox"?Ye(""):(!Cm||d)&&(re(""),Ye(""))}),Te=function(_e,Qe){pe(_e);var Ze=Qe.type,Ke=Qe.values;(Ze==="remove"||Ze==="clear")&&Ke.forEach(function(rt){De(rt.value,!1,Ze)})},Ne=function(_e,Qe){if(re(_e),Ye(null),Qe.source==="submit"){var Ze=(_e||"").trim();if(Ze){var Ke=Array.from(new Set([].concat(se(je),[Ze])));pe(Ke),De(Ze,!0),re("")}return}Qe.source!=="blur"&&(o==="combobox"&&pe(_e),u?.(_e))},ht=function(_e){var Qe=_e;o!=="tags"&&(Qe=_e.map(function(Ke){var rt=ie.get(Ke);return rt?.value}).filter(function(Ke){return Ke!==void 0}));var Ze=Array.from(new Set([].concat(se(je),se(Qe))));pe(Ze),Ze.forEach(function(Ke){De(Ke,!0)})},jt=sr.useMemo(function(){var We=O!==!1&&y!==!1;return P(P({},K),{},{flattenOptions:ce,onActiveValue:et,defaultActiveFirstOption:Pe,onSelect:Le,menuItemSelectedIcon:_,rawValues:je,fieldNames:ee,virtual:We,direction:N,listHeight:A,listItemHeight:L,childrenAsData:G,maxCount:B,optionRender:w})},[B,K,ce,et,Pe,Le,_,je,ee,O,y,N,A,L,G,w]);return sr.createElement(Hu.Provider,{value:jt},sr.createElement(Q1,J({},U,{id:V,prefixCls:i,ref:t,omitDomProps:v9,mode:o,displayValues:Ae,onDisplayValuesChange:Te,direction:N,searchValue:ne,onSearch:Ne,autoClearSearchValue:d,onSearchSplit:ht,dropdownMatchSelectWidth:y,OptionList:GL,emptyOptions:!ce.length,activeValue:Ue,activeDescendantId:"".concat(V,"_list_").concat(gt)})))}),pE=x9;pE.Option=Em;pE.OptGroup=wm;var ek=pE;var tk=ek;var rk=E(Ee());function ia(e,t,r){return(0,rk.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 aa=(e,t)=>t||e;var Yu=E(I());var tl=E(I()),Om=E(Ee());var dn=E(I());var S9=()=>{let[,e]=gr(),[t]=Ti("Empty"),o=new nt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return dn.createElement("svg",{style:o,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},dn.createElement("title",null,t?.description||"Empty"),dn.createElement("g",{fill:"none",fillRule:"evenodd"},dn.createElement("g",{transform:"translate(24 31.67)"},dn.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),dn.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"}),dn.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)"}),dn.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"}),dn.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"})),dn.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"}),dn.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},dn.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),dn.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ok=S9;var el=E(I()),nk=E(I());var b9=()=>{let[,e]=gr(),[t]=Ti("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,nk.useMemo)(()=>({borderColor:new nt(r).onBackground(i).toHexString(),shadowColor:new nt(o).onBackground(i).toHexString(),contentColor:new nt(n).onBackground(i).toHexString()}),[r,o,n,i]);return el.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},el.createElement("title",null,t?.description||"Empty"),el.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},el.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),el.createElement("g",{fillRule:"nonzero",stroke:a},el.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"}),el.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}))))},ik=b9;var C9=e=>{let{componentCls:t,margin:r,marginXS:o,marginXL:n,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ak=_t("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:o}=e,n=tt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:o(r).mul(.875).equal()});return[C9(n)]});var w9=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},sk=tl.createElement(ok,null),lk=tl.createElement(ik,null),gE=e=>{let{className:t,rootClassName:r,prefixCls:o,image:n=sk,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=w9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:p,className:h,style:v,classNames:y,styles:g}=$o("empty"),m=d("empty",o),[x,b,S]=ak(m),[w]=Ti("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",_=null;return typeof n=="string"?_=tl.createElement("img",{alt:R,src:n}):_=n,x(tl.createElement("div",Object.assign({className:(0,Om.default)(b,S,m,h,{[`${m}-normal`]:n===lk,[`${m}-rtl`]:p==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},g.root),v),u?.root),l)},f),tl.createElement("div",{className:(0,Om.default)(`${m}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},_),C&&tl.createElement("div",{className:(0,Om.default)(`${m}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},C),a&&tl.createElement("div",{className:(0,Om.default)(`${m}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};gE.PRESENTED_IMAGE_DEFAULT=sk;gE.PRESENTED_IMAGE_SIMPLE=lk;var Xu=gE;var E9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,Yu.useContext)(it),o=r("empty");switch(t){case"Table":case"List":return Yu.default.createElement(Xu,{image:Xu.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Yu.default.createElement(Xu,{image:Xu.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return Yu.default.createElement(Xu,null)}},ck=E9;var hE=E(I());var R9=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,n;let{variant:i,[e]:a}=hE.useContext(it),s=hE.useContext(PA),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(n=(o=s??l)!==null&&o!==void 0?o:i)!==null&&n!==void 0?n:"outlined";let u=sw.includes(c);return[c,u]},rl=R9;var O9=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 _9(e,t){return e||O9(t)}var uk=_9;var fk=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:o,optionPadding:n}=e;return{position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},P9=e=>{let{antCls:t,componentCls:r}=e,o=`${r}-item`,n=`&${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=`${o}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},Yt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
${n}${s}bottomLeft,
|
|
${i}${s}bottomLeft
|
|
`]:{animationName:ry},[`
|
|
${n}${s}topLeft,
|
|
${i}${s}topLeft,
|
|
${n}${s}topRight,
|
|
${i}${s}topRight
|
|
`]:{animationName:ny},[`${a}${s}bottomLeft`]:{animationName:oy},[`
|
|
${a}${s}topLeft,
|
|
${a}${s}topRight
|
|
`]:{animationName:iy},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},fk(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"},Ii),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-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({},fk(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ay(e,"slide-up"),ay(e,"slide-down"),ty(e,"move-up"),ty(e,"move-down")]},dk=P9;var T9=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=e.max(e.calc(r).sub(o).equal(),0),a=e.max(e.calc(i).sub(n).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},N9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:o}=e;return e.calc(r).sub(t).div(2).sub(o).equal()},I9=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:o,motionDurationSlow:n,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:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${n}, line-height ${n}, height ${n}`,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({},ka()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},$9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,n=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=N9(e),s=t?`${r}-${t}`:"",l=T9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},I9(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:`${te(o)} 0`,lineHeight:te(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:te(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:te(i),marginBlock:o}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${n}-item + ${n}-item,
|
|
${r}-prefix + ${r}-selection-wrap
|
|
`]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:o},[`${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:te(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 vE(e,t){let{componentCls:r}=e,o=t?`${r}-${t}`:"",n={[`${r}-multiple${o}`]:{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[$9(e,t),n]}var D9=e=>{let{componentCls:t}=e,r=tt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=tt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[vE(e),vE(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},vE(o,"lg")]},mk=D9;function yE(e,t){let{componentCls:r,inputPaddingHorizontalBase:o,borderRadius:n}=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({},Yt(e,!0)),{display:"flex",borderRadius:n,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:te(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:te(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 ${te(o)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:te(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 ${te(o)}`,"&:after":{display:"none"}}}}}}}function xE(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[yE(e),yE(tt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${te(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()}}}},yE(tt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var pk=e=>{let{fontSize:t,lineHeight:r,lineWidth:o,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:m,colorPrimary:x,controlOutline:b}=e,S=s*2,w=o*2,C=Math.min(n-S,n-w),R=Math.min(i-S,i-w),_=Math.min(a-S,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:p,optionPadding:`${(n-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:n,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:_,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:m,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var yk=(e,t)=>{let{componentCls:r,antCls:o,controlOutlineWidth:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${te(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${te(n)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},gk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},yk(e,t))}),M9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},yk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),gk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),gk(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:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),xk=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},hk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},xk(e,t))}),A9=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},xk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),hk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hk(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),L9=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${te(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:`${te(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}}}}),Sk=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${te(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},vk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Sk(e,t))}),k9=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Sk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),vk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),vk(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:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),F9=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},M9(e)),A9(e)),L9(e)),k9(e))}),bk=F9;var z9=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"}}}},B9=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","-webkit-appearance":"none"}}}},j9=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:o,iconCls:n}=e;return{[r]:Object.assign(Object.assign({},Yt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},z9(e)),B9(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ii),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Ii),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},ka()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,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`,[n]:{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:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},W9=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},j9(e),xE(e),mk(e),dk(e),{[`${t}-rtl`]:{direction:"rtl"}},Us(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ck=_t("Select",(e,t)=>{let{rootPrefixCls:r}=t,o=tt(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[W9(o),bk(o)]},pk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var sa=E(I());var Qy=E(I());var V9={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"},wk=V9;var H9=function(t,r){return Qy.createElement(mt,J({},t,{ref:r,icon:wk}))},U9=Qy.forwardRef(H9),Zy=U9;var Jy=E(I());var G9={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"},Ek=G9;var q9=function(t,r){return Jy.createElement(mt,J({},t,{ref:r,icon:Ek}))},K9=Jy.forwardRef(q9),e0=K9;var t0=E(I());var X9={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"},Rk=X9;var Y9=function(t,r){return t0.createElement(mt,J({},t,{ref:r,icon:Rk}))},Q9=t0.forwardRef(Y9),r0=Q9;function SE(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:o,removeIcon:n,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}=e,p=r??sa.createElement(Pu,null),h=m=>t===null&&!s&&!f?null:sa.createElement(sa.Fragment,null,c!==!1&&m,s&&u),v=null;if(t!==void 0)v=h(t);else if(i)v=h(sa.createElement(Ul,{spin:!0}));else{let m=`${l}-suffix`;v=x=>{let{open:b,showSearch:S}=x;return h(b&&S?sa.createElement(r0,{className:m}):sa.createElement(e0,{className:m}))}}let y=null;o!==void 0?y=o:a?y=sa.createElement(Zy,null):y=null;let g=null;return n!==void 0?g=n:g=sa.createElement(Tu,null),{clearIcon:p,suffixIcon:v,itemIcon:y,removeIcon:g}}function bE(e,t){return t!==void 0?t:e!==null}var Z9=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Ok="SECRET_COMBOBOX_MODE_DO_NOT_USE",J9=(e,t)=>{var r;let{prefixCls:o,bordered:n,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:d,size:p,disabled:h,notFoundContent:v,status:y,builtinPlacements:g,dropdownMatchSelectWidth:m,popupMatchSelectWidth:x,direction:b,style:S,allowClear:w,variant:C,dropdownStyle:R,transitionName:_,tagRender:O,maxCount:N,prefix:k}=e,A=Z9(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"]),{getPopupContainer:W,getPrefixCls:L,renderEmpty:$,direction:D,virtual:F,popupMatchSelectWidth:H,popupOverflow:z}=ii.useContext(it),B=$o("select"),[,U]=gr(),V=d??U?.controlHeight,M=L("select",o),G=L(),q=b??D,{compactSize:ee,compactItemClassnames:X}=Qn(M,q),[Y,ne]=rl("select",C,n),re=Mo(M),[K,Q,ie]=Ck(M,re),Z=ii.useMemo(()=>{let{mode:Ue}=e;if(Ue!=="combobox")return Ue===Ok?"combobox":Ue},[e.mode]),oe=Z==="multiple"||Z==="tags",me=bE(e.suffixIcon,e.showArrow),fe=(r=x??m)!==null&&r!==void 0?r:H,{status:de,hasFeedback:he,isFormItemInput:ye,feedbackIcon:we}=ii.useContext(uo),le=aa(de,y),ae;v!==void 0?ae=v:Z==="combobox"?ae=null:ae=$?.("Select")||ii.createElement(ck,{componentName:"Select"});let{suffixIcon:Re,itemIcon:Ae,removeIcon:je,clearIcon:Ie}=SE(Object.assign(Object.assign({},A),{multiple:oe,hasFeedback:he,feedbackIcon:we,showSuffixIcon:me,prefixCls:M,componentName:"Select"})),Oe=w===!0?{clearIcon:Ie}:w,Se=Ur(A,["suffixIcon","itemIcon"]),Ve=(0,CE.default)(l||c,{[`${M}-dropdown-${q}`]:q==="rtl"},a,ie,re,Q),He=cn(Ue=>{var Ye;return(Ye=p??ee)!==null&&Ye!==void 0?Ye:Ue}),$e=ii.useContext(Hr),ce=h??$e,pe=(0,CE.default)({[`${M}-lg`]:He==="large",[`${M}-sm`]:He==="small",[`${M}-rtl`]:q==="rtl",[`${M}-${Y}`]:ne,[`${M}-in-form-item`]:ye},ia(M,le,he),X,B.className,i,a,ie,re,Q),ze=ii.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[Ce]=js("SelectLike",R?.zIndex);return K(ii.createElement(tk,Object.assign({ref:t,virtual:F,showSearch:B.showSearch},Se,{style:Object.assign(Object.assign({},B.style),S),dropdownMatchSelectWidth:fe,transitionName:ta(G,"slide-up",_),builtinPlacements:uk(g,z),listHeight:u,listItemHeight:V,mode:Z,prefixCls:M,placement:ze,direction:q,prefix:k,suffixIcon:Re,menuItemSelectedIcon:Ae,removeIcon:je,allowClear:Oe,notFoundContent:ae,className:pe,getPopupContainer:s||W,dropdownClassName:Ve,disabled:ce,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Ce}),maxCount:oe?N:void 0,tagRender:oe?O:void 0})))},Qu=ii.forwardRef(J9),eU=NA(Qu,"dropdownAlign");Qu.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ok;Qu.Option=Em;Qu.OptGroup=wm;Qu._InternalPanelDoNotUseOrYouWillBeFired=eU;var _m=Qu;var _k=E(I());function wE(){let[,e]=_k.useReducer(t=>t+1,0);return e}var So=E(I()),s0=E(Ee());var EE=E(Ee()),RE=E(I());function Zu(e){var t=e.children,r=e.prefixCls,o=e.id,n=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return RE.createElement("div",{className:(0,EE.default)("".concat(r,"-content"),a),style:s},RE.createElement("div",{className:(0,EE.default)("".concat(r,"-inner"),i),id:o,role:"tooltip",style:n},typeof t=="function"?t():t))}var Tk=E(Ee()),ic=E(I()),tf=E(I());var Ju={shiftX:64,adjustY:1},ef={adjustX:1,shiftY:!0},ai=[0,0],Pk={left:{points:["cr","cl"],overflow:ef,offset:[-4,0],targetOffset:ai},right:{points:["cl","cr"],overflow:ef,offset:[4,0],targetOffset:ai},top:{points:["bc","tc"],overflow:Ju,offset:[0,-4],targetOffset:ai},bottom:{points:["tc","bc"],overflow:Ju,offset:[0,4],targetOffset:ai},topLeft:{points:["bl","tl"],overflow:Ju,offset:[0,-4],targetOffset:ai},leftTop:{points:["tr","tl"],overflow:ef,offset:[-4,0],targetOffset:ai},topRight:{points:["br","tr"],overflow:Ju,offset:[0,-4],targetOffset:ai},rightTop:{points:["tl","tr"],overflow:ef,offset:[4,0],targetOffset:ai},bottomRight:{points:["tr","br"],overflow:Ju,offset:[0,4],targetOffset:ai},rightBottom:{points:["bl","br"],overflow:ef,offset:[4,0],targetOffset:ai},bottomLeft:{points:["tl","bl"],overflow:Ju,offset:[0,4],targetOffset:ai},leftBottom:{points:["br","bl"],overflow:ef,offset:[-4,0],targetOffset:ai}};var tU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],rU=function(t,r){var o=t.overlayClassName,n=t.trigger,i=n===void 0?["hover"]:n,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,p=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,m=t.motion,x=t.placement,b=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,_=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle,k=t.arrowContent,A=t.overlay,W=t.id,L=t.showArrow,$=L===void 0?!0:L,D=t.classNames,F=t.styles,H=Me(t,tU),z=$u(W),B=(0,tf.useRef)(null);(0,tf.useImperativeHandle)(r,function(){return B.current});var U=P({},H);"visible"in t&&(U.popupVisible=t.visible);var V=function(){return ic.createElement(Zu,{key:"content",prefixCls:d,id:z,bodyClassName:D?.body,overlayInnerStyle:P(P({},N),F?.body)},A)},M=function(){var q=ic.Children.only(p),ee=q?.props||{},X=P(P({},ee),{},{"aria-describedby":A?z:null});return ic.cloneElement(p,X)};return ic.createElement(jy,J({popupClassName:(0,Tk.default)(o,D?.root),prefixCls:d,popup:V,action:i,builtinPlacements:Pk,popupPlacement:b,ref:B,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:m,defaultPopupVisible:_,autoDestroy:R,mouseLeaveDelay:c,popupStyle:P(P({},u),F?.root),mouseEnterDelay:s,arrow:$},U),M())},Nk=(0,tf.forwardRef)(rU);var Ik=Nk;function $k(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:o}=e,n=t/2,i=0,a=n,s=o*1/Math.sqrt(2),l=n-o*(1-1/Math.sqrt(2)),c=n-r*(1/Math.sqrt(2)),u=o*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*n-c,d=u,p=2*n-s,h=l,v=2*n-i,y=a,g=n*Math.sqrt(2)+o*(Math.sqrt(2)-2),m=o*(Math.sqrt(2)-1),x=`polygon(${m}px 100%, 50% ${m}px, ${2*n-m}px 100%, ${m}px 100%)`,b=`path('M ${i} ${a} A ${o} ${o} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${p} ${h} A ${o} ${o} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:b,arrowPolygon:x}}var Dk=(e,t,r)=>{let{sizePopupArrow:o,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var OE=8;function n0(e){let{contentRadius:t,limitVerticalRadius:r}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?OE:o}}function o0(e,t){return e?t:{}}function _E(e,t,r){let{componentCls:o,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Dk(e,t,n)),{"&:before":{background:t}})]},o0(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),o0(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),o0(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),o0(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}function oU(e,t,r,o){if(o===!1)return{adjustX:!1,adjustY:!1};let n=o&&typeof o=="object"?o:{},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),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var Mk={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"]}},nU={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"]}},iU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function PE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Mk).forEach(c=>{let u=o&&nU[c]||Mk[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,iU.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-n;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+n;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-n;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+n;break}let d=n0({contentRadius:i,limitVerticalRadius:!0});if(o)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=oU(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var rf=E(I()),kk=E(Ee());var aU=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:o,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:p}=e,h=t(a).add(p).add(d).equal(),v=t(a).mul(2).add(p).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:o,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:`${te(e.calc(u).div(2).equal())} ${te(f)}`,color:n,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,OE)}},[`${r}-content`]:{position:"relative"}}),gv(e,(y,g)=>{let{darkColor:m}=g;return{[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:m},[`${r}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},_E(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},sU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},n0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),$k(tt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),i0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return _t("Tooltip",o=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=o,s=tt(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return[aU(s),Kl(o,"zoom-big-fast")]},sU,{resetStyle:!1,injectStyle:t})(e)};var Lk=E(Ee());var lU=Tn.map(e=>`${e}-inverse`);function Ak(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(se(lU),se(Tn)).includes(e):Tn.includes(e)}function a0(e,t){let r=Ak(t),o=(0,Lk.default)({[`${e}-${t}`]:t&&r}),n={},i={};return t&&!r&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:n,arrowStyle:i}}var cU=e=>{let{prefixCls:t,className:r,placement:o="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=rf.useContext(it),l=s("tooltip",t),[c,u,f]=i0(l),d=a0(l,i),p=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,kk.default)(u,f,l,`${l}-pure`,`${l}-placement-${o}`,r,d.className);return c(rf.createElement("div",{className:v,style:p},rf.createElement("div",{className:`${l}-arrow`}),rf.createElement(Zu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),n)))},Fk=cU;var uU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},fU=So.forwardRef((e,t)=>{var r,o;let{prefixCls:n,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:d,arrow:p=!0,title:h,overlay:v,builtinPlacements:y,arrowPointAtCenter:g=!1,autoAdjustOverflow:m=!0,motion:x,getPopupContainer:b,placement:S="top",mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,overlayStyle:R,rootClassName:_,overlayClassName:O,styles:N,classNames:k}=e,A=uU(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),W=!!p,[,L]=gr(),{getPopupContainer:$,getPrefixCls:D,direction:F,className:H,style:z,classNames:B,styles:U}=$o("tooltip"),V=Jh("Tooltip"),M=So.useRef(null),G=()=>{var Se;(Se=M.current)===null||Se===void 0||Se.forceAlign()};So.useImperativeHandle(t,()=>{var Se,Ve;return{forceAlign:G,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(Se=M.current)===null||Se===void 0?void 0:Se.nativeElement,popupElement:(Ve=M.current)===null||Ve===void 0?void 0:Ve.popupElement}});let[q,ee]=zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),X=!h&&!v&&h!==0,Y=Se=>{var Ve,He;ee(X?!1:Se),X||((Ve=e.onOpenChange)===null||Ve===void 0||Ve.call(e,Se),(He=e.onVisibleChange)===null||He===void 0||He.call(e,Se))},ne=So.useMemo(()=>{var Se,Ve;let He=g;return typeof p=="object"&&(He=(Ve=(Se=p.pointAtCenter)!==null&&Se!==void 0?Se:p.arrowPointAtCenter)!==null&&Ve!==void 0?Ve:g),y||PE({arrowPointAtCenter:He,autoAdjustOverflow:m,arrowWidth:W?L.sizePopupArrow:0,borderRadius:L.borderRadius,offset:L.marginXXS,visibleFirst:!0})},[g,p,y,L]),re=So.useMemo(()=>h===0?h:v||h||"",[v,h]),K=So.createElement(Xs,{space:!0},typeof re=="function"?re():re),Q=D("tooltip",n),ie=D(),Z=e["data-popover-inject"],oe=q;!("open"in e)&&!("visible"in e)&&X&&(oe=!1);let me=So.isValidElement(c)&&!Vv(c)?c:So.createElement("span",null,c),fe=me.props,de=!fe.className||typeof fe.className=="string"?(0,s0.default)(fe.className,i||`${Q}-open`):fe.className,[he,ye,we]=i0(Q,!Z),le=a0(Q,s),ae=le.arrowStyle,Re=(0,s0.default)(O,{[`${Q}-rtl`]:F==="rtl"},le.className,_,ye,we,H,B.root,k?.root),Ae=(0,s0.default)(B.body,k?.body),[je,Ie]=js("Tooltip",A.zIndex),Oe=So.createElement(Ik,Object.assign({},A,{zIndex:je,showArrow:W,placement:S,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:Q,classNames:{root:Re,body:Ae},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ae),U.root),z),R),N?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),l),N?.body),le.overlayStyle)},getTooltipContainer:b||a||$,ref:M,builtinPlacements:ne,overlay:K,visible:oe,onVisibleChange:Y,afterVisibleChange:u??f,arrowContent:So.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:ta(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d}),oe?Yn(me,{className:de}):me);return he(So.createElement(Uv.Provider,{value:Ie},Oe))}),zk=fU;zk._InternalPanelDoNotUseOrYouWillBeFired=Fk;var Ga=zk;var l0=E(I());var dU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Bk=dU;var mU=function(t,r){return l0.createElement(mt,J({},t,{ref:r,icon:Bk}))},pU=l0.forwardRef(mU),jk=pU;var Wk=E(Ee());var c0=E(I()),ac=E(I()),gU=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],hU=(0,ac.forwardRef)(function(e,t){var r=e.prefixCls,o=r===void 0?"rc-checkbox":r,n=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,p=e.onChange,h=Me(e,gU),v=(0,ac.useRef)(null),y=(0,ac.useRef)(null),g=zt(c,{value:a}),m=j(g,2),x=m[0],b=m[1];(0,ac.useImperativeHandle)(t,function(){return{focus:function(R){var _;(_=v.current)===null||_===void 0||_.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var S=(0,Wk.default)(o,n,T(T({},"".concat(o,"-checked"),x),"".concat(o,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),p?.({target:P(P({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return c0.createElement("span",{className:S,title:d,style:i,ref:y},c0.createElement("input",J({},h,{className:"".concat(o,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),c0.createElement("span",{className:"".concat(o,"-inner")}))}),Vk=hU;var Hk=E(I());function TE(e){let t=Hk.default.useRef(null),r=()=>{ct.cancel(t.current),t.current=null};return[()=>{r(),t.current=ct(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function qa(e){return tt(e,{inputAffixPadding:e.paddingXXS})}var Ka=e=>{let{controlHeight:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:m,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:S,inputFontSizeSM:w}=e,C=b||r,R=w||C,_=S||s,O=Math.round((t-C*o)/2*10)/10-n,N=Math.round((i-R*o)/2*10)/10-n,k=Math.ceil((a-_*l)/2*10)/10-n;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(k,0),paddingInline:c-n,paddingInlineSM:u-n,paddingInlineLG:f-n,addonBg:d,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${m}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:R}};var vU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),NE=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({},vU(tt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Yk=(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}}),Uk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),u0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yk(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},NE(e))}),Uk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Uk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Gk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),f0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Gk(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Gk(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},NE(e))}})}),d0=(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)}},Qk=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),qk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),m0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},NE(e))}),qk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),qk(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Kk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),p0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Kk(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Kk(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Zk=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Xk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zk(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`}}),g0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zk(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"}}),Xk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Xk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var IE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Jk=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:n}=e;return{padding:`${te(t)} ${te(n)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},eF=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Pm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},IE(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Jk(e)),"&-sm":Object.assign({},eF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),$E=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({},Jk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eF(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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(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:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${te(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"},Ou()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
& > ${t}-affix-wrapper,
|
|
& > ${t}-number-affix-wrapper,
|
|
& > ${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}}}})}},yU=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:o,calc:n}=e,a=n(r).sub(n(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),Pm(e)),u0(e)),m0(e)),d0(e)),g0(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':{"-webkit-appearance":"none"}})}},xU=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.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},SU=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:o,motionDurationSlow:n,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({},Pm(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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),xU(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},bU=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Yt(e)),$E(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:o}}},f0(e)),p0(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}}})})}},CU=e=>{let{componentCls:t,antCls:r}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${r}-btn-primary)`]:{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,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-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}}}}},wU=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},h0=_t(["Input","Shared"],e=>{let t=tt(e,qa(e));return[yU(t),SU(t)]},Ka,{resetFont:!1}),v0=_t(["Input","Component"],e=>{let t=tt(e,qa(e));return[bU(t),CU(t),wU(t),Us(t)]},Ka,{resetFont:!1});var EU=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Yt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Yt(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({},Yt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Sw(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(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:`${te(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} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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 RU(e,t){let r=tt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[EU(r)]}var y0=_t("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[RU(r,e)]});var Qr=E(I()),DE=E(Ee());var tF=E(I()),OU=tF.default.createContext(null),x0=OU;var _U=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},PU=(e,t)=>{var r;let{prefixCls:o,className:n,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,p=_U(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Qr.useContext(it),g=Qr.useContext(x0),{isFormItemInput:m}=Qr.useContext(uo),x=Qr.useContext(Hr),b=(r=g?.disabled||d)!==null&&r!==void 0?r:x,S=Qr.useRef(p.value),w=Qr.useRef(null),C=Ar(t,w);Qr.useEffect(()=>{g?.registerValue(p.value)},[]),Qr.useEffect(()=>{if(!f)return p.value!==S.current&&(g?.cancelValue(S.current),g?.registerValue(p.value),S.current=p.value),()=>g?.cancelValue(p.value)},[p.value]),Qr.useEffect(()=>{var F;!((F=w.current)===null||F===void 0)&&F.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",o),_=Mo(R),[O,N,k]=y0(R,_),A=Object.assign({},p);g&&!f&&(A.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),g.toggleOption&&g.toggleOption({label:a,value:p.value})},A.name=g.name,A.checked=g.value.includes(p.value));let W=(0,DE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:A.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:m},y?.className,n,i,k,_,N),L=(0,DE.default)({[`${R}-indeterminate`]:s},Nu,N),[$,D]=TE(A.onClick);return O(Qr.createElement(Yv,{component:"Checkbox",disabled:b},Qr.createElement("label",{className:W,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:$},Qr.createElement(Vk,Object.assign({},A,{onClick:D,prefixCls:R,className:L,disabled:b,ref:C})),a!==void 0&&Qr.createElement("span",{className:`${R}-label`},a))))},TU=Qr.forwardRef(PU),S0=TU;var Ko=E(I()),rF=E(Ee());var NU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},IU=Ko.forwardRef((e,t)=>{let{defaultValue:r,children:o,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=NU(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=Ko.useContext(it),[p,h]=Ko.useState(u.value||r||[]),[v,y]=Ko.useState([]);Ko.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=Ko.useMemo(()=>n.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[n]),m=L=>{y($=>$.filter(D=>D!==L))},x=L=>{y($=>[].concat(se($),[L]))},b=L=>{let $=p.indexOf(L.value),D=se(p);$===-1?D.push(L.value):D.splice($,1),"value"in u||h(D),c?.(D.filter(F=>v.includes(F)).sort((F,H)=>{let z=g.findIndex(U=>U.value===F),B=g.findIndex(U=>U.value===H);return z-B}))},S=f("checkbox",i),w=`${S}-group`,C=Mo(S),[R,_,O]=y0(S,C),N=Ur(u,["value","disabled"]),k=n.length?g.map(L=>Ko.createElement(S0,{prefixCls:S,key:L.value.toString(),disabled:"disabled"in L?L.disabled:u.disabled,value:L.value,checked:p.includes(L.value),onChange:L.onChange,className:`${w}-item`,style:L.style,title:L.title,id:L.id,required:L.required},L.label)):o,A={toggleOption:b,value:p,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:m},W=(0,rF.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,_);return R(Ko.createElement("div",Object.assign({className:W,style:l},N,{ref:t}),Ko.createElement(x0.Provider,{value:A},k)))});var oF=IU;var ME=S0;ME.Group=oF;ME.__ANT_CHECKBOX=!0;var AE=ME;var br=E(I());var b0=E(I());var $U={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"},nF=$U;var DU=function(t,r){return b0.createElement(mt,J({},t,{ref:r,icon:nF}))},MU=b0.forwardRef(DU),iF=MU;var cc=E(Ee());function Tm(){return typeof BigInt=="function"}function C0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ai(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 o=t||"0",n=o.split("."),i=n[0]||"0",a=n[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:o,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(o)}}function w0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function la(e){var t=String(e);if(w0(e)){var r=Number(t.slice(t.indexOf("e-")+2)),o=t.match(/\.(\d+)/);return o!=null&&o[1]&&(r+=o[1].length),r}return t.includes(".")&&of(t)?t.length-t.indexOf(".")-1:0}function Xa(e){var t=String(e);if(w0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Tm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Tm()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(la(t))}return Ai(t).fullStr}function of(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var aF=function(){function e(t){if(st(this,e),T(this,"origin",""),T(this,"negative",void 0),T(this,"integer",void 0),T(this,"decimal",void 0),T(this,"decimalLen",void 0),T(this,"empty",void 0),T(this,"nan",void 0),C0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(w0(r)&&(r=Number(r)),r=typeof r=="string"?r:Xa(r),of(r)){var o=Ai(r);this.negative=o.negative;var n=o.trimStr.split(".");this.integer=BigInt(n[0]);var i=n[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return lt(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(r){var o="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(o)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,o,n){var i=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(i),s=r.alignDecimal(i),l=o(a,s).toString(),c=n(i),u=Ai(l),f=u.negativeStr,d=u.trimStr,p="".concat(f).concat(d.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var o=new e(r);return o.isInvalidate()?this:this.cal(o,function(n,i){return n+i},function(n){return n})}},{key:"multi",value:function(r){var o=new e(r);return this.isInvalidate()||o.isInvalidate()?new e(NaN):this.cal(o,function(n,i){return n*i},function(n){return n*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toString()===r?.toString()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ai("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var sF=function(){function e(t){if(st(this,e),T(this,"origin",""),T(this,"number",void 0),T(this,"empty",void 0),C0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return lt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var o=Number(r);if(Number.isNaN(o))return this;var n=this.number+o;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(la(this.number),la(o));return new e(n.toFixed(i))}},{key:"multi",value:function(r){var o=Number(r);if(this.isInvalidate()||Number.isNaN(o))return new e(NaN);var n=this.number*o;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(la(this.number),la(o));return new e(n.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toNumber()===r?.toNumber()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Xa(this.number):this.origin}}]),e}();function E0(e){return Tm()?new aF(e):new sF(e)}function Nm(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var n=Ai(e),i=n.negativeStr,a=n.integerStr,s=n.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!o){var f=E0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return Nm(f.toString(),t,r,o)}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 Li=E0;var SF=E(Ee());var Ya=E(Ee()),bo=E(I());function cF(e){return!!(e.addonBefore||e.addonAfter)}function uF(e){return!!(e.prefix||e.suffix||e.allowClear)}function lF(e,t,r){var o=t.cloneNode(!0),n=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},n}function nf(e,t,r,o){if(r){var n=t;if(t.type==="click"){n=lF(t,e,""),r(n);return}if(e.type!=="file"&&o!==void 0){n=lF(t,e,o),r(n);return}r(n)}}function sc(e,t){if(e){e.focus(t);var r=t||{},o=r.cursor;if(o){var n=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var AU=bo.default.forwardRef(function(e,t){var r,o,n,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,p=e.style,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,m=e.allowClear,x=e.value,b=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,_=e.styles,O=e.components,N=e.onClear,k=a??i,A=O?.affixWrapper||"span",W=O?.groupWrapper||"span",L=O?.wrapper||"span",$=O?.groupAddon||"span",D=(0,bo.useRef)(null),F=function(Z){var oe;(oe=D.current)!==null&&oe!==void 0&&oe.contains(Z.target)&&g?.()},H=uF(e),z=(0,bo.cloneElement)(k,{value:x,className:(0,Ya.default)((r=k.props)===null||r===void 0?void 0:r.className,!H&&C?.variant)||null}),B=(0,bo.useRef)(null);if(bo.default.useImperativeHandle(t,function(){return{nativeElement:B.current||D.current}}),H){var U=null;if(m){var V=!h&&!v&&x,M="".concat(s,"-clear-icon"),G=ue(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"\u2716";U=bo.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Z){b?.(Z),N?.()},onMouseDown:function(Z){return Z.preventDefault()},className:(0,Ya.default)(M,T(T({},"".concat(M,"-hidden"),!V),"".concat(M,"-has-suffix"),!!c))},G)}var q="".concat(s,"-affix-wrapper"),ee=(0,Ya.default)(q,T(T(T(T(T({},"".concat(s,"-disabled"),h),"".concat(q,"-disabled"),h),"".concat(q,"-focused"),y),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&m&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),X=(c||m)&&bo.default.createElement("span",{className:(0,Ya.default)("".concat(s,"-suffix"),C?.suffix),style:_?.suffix},U,c);z=bo.default.createElement(A,J({className:ee,style:_?.affixWrapper,onClick:F},R?.affixWrapper,{ref:D}),l&&bo.default.createElement("span",{className:(0,Ya.default)("".concat(s,"-prefix"),C?.prefix),style:_?.prefix},l),z,X)}if(cF(e)){var Y="".concat(s,"-group"),ne="".concat(Y,"-addon"),re="".concat(Y,"-wrapper"),K=(0,Ya.default)("".concat(s,"-wrapper"),Y,w?.wrapper,C?.wrapper),Q=(0,Ya.default)(re,T({},"".concat(re,"-disabled"),h),w?.group,C?.groupWrapper);z=bo.default.createElement(W,{className:Q,ref:B},bo.default.createElement(L,{className:K},u&&bo.default.createElement($,{className:ne},u),z,f&&bo.default.createElement($,{className:ne},f)))}return bo.default.cloneElement(z,{className:(0,Ya.default)((o=z.props)===null||o===void 0?void 0:o.className,d)||null,style:P(P({},(n=z.props)===null||n===void 0?void 0:n.style),p),hidden:S})}),lc=AU;var R0=E(Ee());var kr=E(I());var fF=E(I()),LU=["show"];function Im(e,t){return fF.useMemo(function(){var r={};t&&(r.show=ue(t)==="object"&&t.formatter?t.formatter:!!t),r=P(P({},r),e);var o=r,n=o.show,i=Me(o,LU);return P(P({},i),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var kU=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],FU=(0,kr.forwardRef)(function(e,t){var r=e.autoComplete,o=e.onChange,n=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,p=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,m=e.type,x=m===void 0?"text":m,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,_=Me(e,kU),O=(0,kr.useState)(!1),N=j(O,2),k=N[0],A=N[1],W=(0,kr.useRef)(!1),L=(0,kr.useRef)(!1),$=(0,kr.useRef)(null),D=(0,kr.useRef)(null),F=function(ae){$.current&&sc($.current,ae)},H=zt(e.defaultValue,{value:e.value}),z=j(H,2),B=z[0],U=z[1],V=B==null?"":String(B),M=(0,kr.useState)(null),G=j(M,2),q=G[0],ee=G[1],X=Im(g,y),Y=X.max||h,ne=X.strategy(V),re=!!Y&&ne>Y;(0,kr.useImperativeHandle)(t,function(){var le;return{focus:F,blur:function(){var Re;(Re=$.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,Ae,je){var Ie;(Ie=$.current)===null||Ie===void 0||Ie.setSelectionRange(Re,Ae,je)},select:function(){var Re;(Re=$.current)===null||Re===void 0||Re.select()},input:$.current,nativeElement:((le=D.current)===null||le===void 0?void 0:le.nativeElement)||$.current}}),(0,kr.useEffect)(function(){L.current&&(L.current=!1),A(function(le){return le&&f?!1:le})},[f]);var K=function(ae,Re,Ae){var je=Re;if(!W.current&&X.exceedFormatter&&X.max&&X.strategy(Re)>X.max){if(je=X.exceedFormatter(Re,{max:X.max}),Re!==je){var Ie,Oe;ee([((Ie=$.current)===null||Ie===void 0?void 0:Ie.selectionStart)||0,((Oe=$.current)===null||Oe===void 0?void 0:Oe.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;U(je),$.current&&nf($.current,ae,o,je)};(0,kr.useEffect)(function(){if(q){var le;(le=$.current)===null||le===void 0||le.setSelectionRange.apply(le,se(q))}},[q]);var Q=function(ae){K(ae,ae.target.value,{source:"change"})},ie=function(ae){W.current=!1,K(ae,ae.currentTarget.value,{source:"compositionEnd"}),R?.(ae)},Z=function(ae){a&&ae.key==="Enter"&&!L.current&&(L.current=!0,a(ae)),s?.(ae)},oe=function(ae){ae.key==="Enter"&&(L.current=!1),l?.(ae)},me=function(ae){A(!0),n?.(ae)},fe=function(ae){L.current&&(L.current=!1),A(!1),i?.(ae)},de=function(ae){U(""),F(),$.current&&nf($.current,ae,o)},he=re&&"".concat(u,"-out-of-range"),ye=function(){var ae=Ur(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return kr.default.createElement("input",J({autoComplete:r},ae,{onChange:Q,onFocus:me,onBlur:fe,onKeyDown:Z,onKeyUp:oe,className:(0,R0.default)(u,T({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:$,size:d,type:x,onCompositionStart:function(Ae){W.current=!0,C?.(Ae)},onCompositionEnd:ie}))},we=function(){var ae=Number(Y)>0;if(v||X.show){var Re=X.showFormatter?X.showFormatter({value:V,count:ne,maxLength:Y}):"".concat(ne).concat(ae?" / ".concat(Y):"");return kr.default.createElement(kr.default.Fragment,null,X.show&&kr.default.createElement("span",{className:(0,R0.default)("".concat(u,"-show-count-suffix"),T({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:P({},w?.count)},Re),v)}return null};return kr.default.createElement(lc,J({},_,{prefixCls:u,className:(0,R0.default)(p,he),handleReset:de,value:V,focused:k,triggerFocus:F,suffix:we(),disabled:f,classes:b,classNames:S,styles:w}),ye())}),dF=FU;var mF=dF;function LE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(o,n){if(t[n])return t[n];var i=o[n];return typeof i=="function"?i.bind(o):i}}):e}var Ot=E(I());var pF=E(I());function kE(e,t){var r=(0,pF.useRef)(null);function o(){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 n(){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 f=s[c-1],d=i.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(p){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[o,n]}var si=E(I()),FE=E(Ee());var gF=E(I());var zU=function(){var t=(0,gF.useState)(!1),r=j(t,2),o=r[0],n=r[1];return vt(function(){n(Lu())},[]),o},hF=zU;var BU=200,jU=600;function zE(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,n=e.upDisabled,i=e.downDisabled,a=e.onStep,s=si.useRef(),l=si.useRef([]),c=si.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,b){x.preventDefault(),u(),c.current(b);function S(){c.current(b),s.current=setTimeout(S,BU)}s.current=setTimeout(S,jU)};si.useEffect(function(){return function(){u(),l.current.forEach(function(m){return ct.cancel(m)})}},[]);var d=hF();if(d)return null;var p="".concat(t,"-handler"),h=(0,FE.default)(p,"".concat(p,"-up"),T({},"".concat(p,"-up-disabled"),n)),v=(0,FE.default)(p,"".concat(p,"-down"),T({},"".concat(p,"-down-disabled"),i)),y=function(){return l.current.push(ct(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return si.createElement("div",{className:"".concat(p,"-wrap")},si.createElement("span",J({},g,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":n,className:h}),r||si.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),si.createElement("span",J({},g,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),o||si.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function BE(e){var t=typeof e=="number"?Xa(e):Ai(e).fullStr,r=t.includes(".");return r?Ai(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var O0=E(I());var vF=function(){var e=(0,O0.useRef)(0),t=function(){ct.cancel(e.current)};return(0,O0.useEffect)(function(){return t},[]),function(r){t(),e.current=ct(function(){r()})}};var WU=["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"],VU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],yF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},xF=function(t){var r=Li(t);return r.isInvalidate()?null:r},HU=Ot.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,n=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,p=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,m=e.controls,x=m===void 0?!0:m,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,_=e.decimalSeparator,O=e.onChange,N=e.onInput,k=e.onPressEnter,A=e.onStep,W=e.changeOnBlur,L=W===void 0?!0:W,$=e.domRef,D=Me(e,WU),F="".concat(r,"-input"),H=Ot.useRef(null),z=Ot.useState(!1),B=j(z,2),U=B[0],V=B[1],M=Ot.useRef(!1),G=Ot.useRef(!1),q=Ot.useRef(!1),ee=Ot.useState(function(){return Li(u??c)}),X=j(ee,2),Y=X[0],ne=X[1];function re(Be){u===void 0&&ne(Be)}var K=Ot.useCallback(function(Be,Pe){if(!Pe)return R>=0?R:Math.max(la(Be),la(l))},[R,l]),Q=Ot.useCallback(function(Be){var Pe=String(Be);if(w)return w(Pe);var et=Pe;return _&&(et=et.replace(_,".")),et.replace(/[^\w.-]+/g,"")},[w,_]),ie=Ot.useRef(""),Z=Ot.useCallback(function(Be,Pe){if(C)return C(Be,{userTyping:Pe,input:String(ie.current)});var et=typeof Be=="number"?Xa(Be):Be;if(!Pe){var De=K(et,Pe);if(of(et)&&(_||De>=0)){var Le=_||".";et=Nm(et,Le,De)}}return et},[C,K,_]),oe=Ot.useState(function(){var Be=c??u;return Y.isInvalidate()&&["string","number"].includes(ue(Be))?Number.isNaN(Be)?"":Be:Z(Y.toString(),!1)}),me=j(oe,2),fe=me[0],de=me[1];ie.current=fe;function he(Be,Pe){de(Z(Be.isInvalidate()?Be.toString(!1):Be.toString(!Pe),Pe))}var ye=Ot.useMemo(function(){return xF(a)},[a,R]),we=Ot.useMemo(function(){return xF(i)},[i,R]),le=Ot.useMemo(function(){return!ye||!Y||Y.isInvalidate()?!1:ye.lessEquals(Y)},[ye,Y]),ae=Ot.useMemo(function(){return!we||!Y||Y.isInvalidate()?!1:Y.lessEquals(we)},[we,Y]),Re=kE(H.current,U),Ae=j(Re,2),je=Ae[0],Ie=Ae[1],Oe=function(Pe){return ye&&!Pe.lessEquals(ye)?ye:we&&!we.lessEquals(Pe)?we:null},Se=function(Pe){return!Oe(Pe)},Ve=function(Pe,et){var De=Pe,Le=Se(De)||De.isEmpty();if(!De.isEmpty()&&!et&&(De=Oe(De)||De,Le=!0),!d&&!f&&Le){var Te=De.toString(),Ne=K(Te,et);return Ne>=0&&(De=Li(Nm(Te,".",Ne)),Se(De)||(De=Li(Nm(Te,".",Ne,!0)))),De.equals(Y)||(re(De),O?.(De.isEmpty()?null:yF(S,De)),u===void 0&&he(De,et)),De}return Y},He=vF(),$e=function Be(Pe){if(je(),ie.current=Pe,de(Pe),!G.current){var et=Q(Pe),De=Li(et);De.isNaN()||Ve(De,!0)}N?.(Pe),He(function(){var Le=Pe;w||(Le=Pe.replace(/。/g,".")),Le!==Pe&&Be(Le)})},ce=function(){G.current=!0},pe=function(){G.current=!1,$e(H.current.value)},ze=function(Pe){$e(Pe.target.value)},Ce=function(Pe){var et;if(!(Pe&&le||!Pe&&ae)){M.current=!1;var De=Li(q.current?BE(l):l);Pe||(De=De.negate());var Le=(Y||Li(0)).add(De.toString()),Te=Ve(Le,!1);A?.(yF(S,Te),{offset:q.current?BE(l):l,type:Pe?"up":"down"}),(et=H.current)===null||et===void 0||et.focus()}},Ue=function(Pe){var et=Li(Q(fe)),De;et.isNaN()?De=Ve(Y,Pe):De=Ve(et,Pe),u!==void 0?he(Y,!1):De.isNaN()||he(De,!1)},Ye=function(){M.current=!0},pt=function(Pe){var et=Pe.key,De=Pe.shiftKey;M.current=!0,q.current=De,et==="Enter"&&(G.current||(M.current=!1),Ue(!1),k?.(Pe)),v!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(et)&&(Ce(et==="Up"||et==="ArrowUp"),Pe.preventDefault())},Tt=function(){M.current=!1,q.current=!1};Ot.useEffect(function(){if(g&&U){var Be=function(De){Ce(De.deltaY<0),De.preventDefault()},Pe=H.current;if(Pe)return Pe.addEventListener("wheel",Be,{passive:!1}),function(){return Pe.removeEventListener("wheel",Be)}}});var gt=function(){L&&Ue(!1),V(!1),M.current=!1};return Al(function(){Y.isInvalidate()||he(Y,!1)},[R,C]),Al(function(){var Be=Li(u);ne(Be);var Pe=Li(Q(fe));(!Be.equals(Pe)||!M.current||C)&&he(Be,M.current)},[u]),Al(function(){C&&Ie()},[fe]),Ot.createElement("div",{ref:$,className:(0,SF.default)(r,o,T(T(T(T(T({},"".concat(r,"-focused"),U),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),Y.isNaN()),"".concat(r,"-out-of-range"),!Y.isInvalidate()&&!Se(Y))),style:n,onFocus:function(){V(!0)},onBlur:gt,onKeyDown:pt,onKeyUp:Tt,onCompositionStart:ce,onCompositionEnd:pe,onBeforeInput:Ye},x&&Ot.createElement(zE,{prefixCls:r,upNode:p,downNode:h,upDisabled:le,downDisabled:ae,onStep:Ce}),Ot.createElement("div",{className:"".concat(F,"-wrap")},Ot.createElement("input",J({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},D,{ref:Ar(H,t),className:F,value:fe,onChange:ze,disabled:f,readOnly:d}))))}),UU=Ot.forwardRef(function(e,t){var r=e.disabled,o=e.style,n=e.prefixCls,i=n===void 0?"rc-input-number":n,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,p=Me(e,VU),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),g=function(x){y.current&&sc(y.current,x)};return Ot.useImperativeHandle(t,function(){return LE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(lc,{className:f,triggerFocus:g,prefixCls:i,value:a,disabled:r,style:o,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},Ot.createElement(HU,J({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},p)))}),bF=UU;var CF=bF;var wF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",o=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ka(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new nt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?o:0})};var EF=(e,t)=>{let{componentCls:r,borderRadiusSM:o,borderRadiusLG:n}=e,i=t==="lg"?n:o;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${r}-handler-up`]:{borderStartEndRadius:i},[`${r}-handler-down`]:{borderEndEndRadius:i}}}},GU=e=>{let{componentCls:t,lineWidth:r,lineType:o,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:m,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:_,handleBorderColor:O,filledHandleBg:N,lineHeightLG:k,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),Pm(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:n}),u0(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),m0(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),g0(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),d0(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:k,borderRadius:R,[`input${t}-input`]:{height:A(s).sub(A(r).mul(2)).equal(),padding:`${te(d)} ${te(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:A(l).sub(A(r).mul(2)).equal(),padding:`${te(f)} ${te(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Yt(e)),$E(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:C}}},f0(e)),p0(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({},Yt(e)),{width:"100%",padding:`${te(x)} ${te(m)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),IE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",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:n,borderEndEndRadius:n,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:`${te(r)} ${o} ${O}`,transition:`all ${v} linear`,"&:active":{background:S},"&:hover":{height:"60%",[`
|
|
${t}-handler-up-inner,
|
|
${t}-handler-down-inner
|
|
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ka()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n}},EF(e,"lg")),EF(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}})}]},qU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:o,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${te(r)} 0`}},Pm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${te(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${te(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:o,marginInlineStart:n,transition:`margin ${d}`}},[`&: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(o).equal()}})}},RF=_t("InputNumber",e=>{let t=tt(e,qa(e));return[GU(t),qU(t),Us(t)]},wF,{unitless:{handleOpacity:!0}});var KU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},OF=br.forwardRef((e,t)=>{let{getPrefixCls:r,direction:o}=br.useContext(it),n=br.useRef(null);br.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:p,bordered:h,readOnly:v,status:y,controls:g,variant:m}=e,x=KU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),S=Mo(b),[w,C,R]=RF(b,S),{compactSize:_,compactItemClassnames:O}=Qn(b,o),N=br.createElement(iF,{className:`${b}-handler-up-inner`}),k=br.createElement(e0,{className:`${b}-handler-down-inner`}),A=typeof g=="boolean"?g:void 0;typeof g=="object"&&(N=typeof g.upIcon>"u"?N:br.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),k=typeof g.downIcon>"u"?k:br.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));let{hasFeedback:W,status:L,isFormItemInput:$,feedbackIcon:D}=br.useContext(uo),F=aa(L,y),H=cn(X=>{var Y;return(Y=s??_)!==null&&Y!==void 0?Y:X}),z=br.useContext(Hr),B=l??z,[U,V]=rl("inputNumber",m,h),M=W&&br.createElement(br.Fragment,null,D),G=(0,cc.default)({[`${b}-lg`]:H==="large",[`${b}-sm`]:H==="small",[`${b}-rtl`]:o==="rtl",[`${b}-in-form-item`]:$},C),q=`${b}-group`,ee=br.createElement(CF,Object.assign({ref:n,disabled:B,className:(0,cc.default)(R,S,i,a,O),upHandler:N,downHandler:k,prefixCls:b,readOnly:v,controls:A,prefix:d,suffix:M||p,addonBefore:u&&br.createElement(Xs,{form:!0,space:!0},u),addonAfter:f&&br.createElement(Xs,{form:!0,space:!0},f),classNames:{input:G,variant:(0,cc.default)({[`${b}-${U}`]:V},ia(b,F,W)),affixWrapper:(0,cc.default)({[`${b}-affix-wrapper-sm`]:H==="small",[`${b}-affix-wrapper-lg`]:H==="large",[`${b}-affix-wrapper-rtl`]:o==="rtl",[`${b}-affix-wrapper-without-controls`]:g===!1},C),wrapper:(0,cc.default)({[`${q}-rtl`]:o==="rtl"},C),groupWrapper:(0,cc.default)({[`${b}-group-wrapper-sm`]:H==="small",[`${b}-group-wrapper-lg`]:H==="large",[`${b}-group-wrapper-rtl`]:o==="rtl",[`${b}-group-wrapper-${U}`]:V},ia(`${b}-group-wrapper`,F,W),C)}},x));return w(ee)}),_F=OF,XU=e=>br.createElement(Ba,{theme:{components:{InputNumber:{handleVisible:!0}}}},br.createElement(OF,Object.assign({},e)));_F._InternalPanelDoNotUseOrYouWillBeFired=XU;var _0=_F;var mn=E(I()),uc=E(Ee());var PF=E(I());var YU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:PF.default.createElement(Pu,null)}),t},P0=YU;var T0=E(I());function $m(e,t){let r=(0,T0.useRef)([]),o=()=>{r.current.push(setTimeout(()=>{var n,i,a,s;!((n=e.current)===null||n===void 0)&&n.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,T0.useEffect)(()=>(t&&o(),()=>r.current.forEach(n=>{n&&clearTimeout(n)})),[]),o}function TF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var QU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var ZU=(0,mn.forwardRef)((e,t)=>{let{prefixCls:r,bordered:o=!0,status:n,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:p,style:h,styles:v,rootClassName:y,onChange:g,classNames:m,variant:x}=e,b=QU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:C,autoComplete:R,className:_,style:O,classNames:N,styles:k}=$o("input"),A=S("input",r),W=(0,mn.useRef)(null),L=Mo(A),[$,D,F]=h0(A,y),[H]=v0(A,L),{compactSize:z,compactItemClassnames:B}=Qn(A,w),U=cn(de=>{var he;return(he=i??z)!==null&&he!==void 0?he:de}),V=mn.default.useContext(Hr),M=a??V,{status:G,hasFeedback:q,feedbackIcon:ee}=(0,mn.useContext)(uo),X=aa(G,n),Y=TF(e)||!!q,ne=(0,mn.useRef)(Y),re=$m(W,!0),K=de=>{re(),s?.(de)},Q=de=>{re(),l?.(de)},ie=de=>{re(),g?.(de)},Z=(q||c)&&mn.default.createElement(mn.default.Fragment,null,c,q&&ee),oe=P0(u??C),[me,fe]=rl("input",x,o);return $(H(mn.default.createElement(mF,Object.assign({ref:Ar(t,W),prefixCls:A,autoComplete:R},b,{disabled:M,onBlur:K,onFocus:Q,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},k),v),suffix:Z,allowClear:oe,className:(0,uc.default)(p,y,F,L,B,_),onChange:ie,addonBefore:d&&mn.default.createElement(Xs,{form:!0,space:!0},d),addonAfter:f&&mn.default.createElement(Xs,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},m),N),{input:(0,uc.default)({[`${A}-sm`]:U==="small",[`${A}-lg`]:U==="large",[`${A}-rtl`]:w==="rtl"},m?.input,N.input,D),variant:(0,uc.default)({[`${A}-${me}`]:fe},ia(A,X)),affixWrapper:(0,uc.default)({[`${A}-affix-wrapper-sm`]:U==="small",[`${A}-affix-wrapper-lg`]:U==="large",[`${A}-affix-wrapper-rtl`]:w==="rtl"},D),wrapper:(0,uc.default)({[`${A}-group-rtl`]:w==="rtl"},D),groupWrapper:(0,uc.default)({[`${A}-group-wrapper-sm`]:U==="small",[`${A}-group-wrapper-lg`]:U==="large",[`${A}-group-wrapper-rtl`]:w==="rtl",[`${A}-group-wrapper-${me}`]:fe},ia(`${A}-group-wrapper`,X,q),D)})}))))}),ol=ZU;var KE=E(Ee());var Pt=E(I());var Xo=E(I()),IF=E(Ci());function N0(e,t,r){return(e-t)/(r-t)}function af(e,t,r,o){var n=N0(t,r,o),i={};switch(e){case"rtl":i.right="".concat(n*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(n*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(n*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(n*100,"%"),i.transform="translateX(-50%)";break}return i}function ca(e,t){return Array.isArray(e)?e[t]:e}var NF=E(Ee());var sf=E(I());var jE=E(I()),JU=jE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),pn=JU,WE=jE.createContext({});var eG=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],tG=sf.forwardRef(function(e,t){var r=e.prefixCls,o=e.value,n=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,p=e.onFocus,h=e.onMouseEnter,v=Me(e,eG),y=sf.useContext(pn),g=y.min,m=y.max,x=y.direction,b=y.disabled,S=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,_=y.ariaLabelledByForHandle,O=y.ariaRequired,N=y.ariaValueTextFormatterForHandle,k=y.styles,A=y.classNames,W="".concat(r,"-handle"),L=function(G){b||i(G,n)},$=function(G){p?.(G,n)},D=function(G){h(G,n)},F=function(G){if(!b&&S){var q=null;switch(G.which||G.keyCode){case Fe.LEFT:q=x==="ltr"||x==="btt"?-1:1;break;case Fe.RIGHT:q=x==="ltr"||x==="btt"?1:-1;break;case Fe.UP:q=x!=="ttb"?1:-1;break;case Fe.DOWN:q=x!=="ttb"?-1:1;break;case Fe.HOME:q="min";break;case Fe.END:q="max";break;case Fe.PAGE_UP:q=2;break;case Fe.PAGE_DOWN:q=-2;break;case Fe.BACKSPACE:case Fe.DELETE:a(n);break}q!==null&&(G.preventDefault(),f(q,n))}},H=function(G){switch(G.which||G.keyCode){case Fe.LEFT:case Fe.RIGHT:case Fe.UP:case Fe.DOWN:case Fe.HOME:case Fe.END:case Fe.PAGE_UP:case Fe.PAGE_DOWN:d?.();break}},z=af(x,o,g,m),B={};if(n!==null){var U;B={tabIndex:b?null:ca(C,n),role:"slider","aria-valuemin":g,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":ca(R,n),"aria-labelledby":ca(_,n),"aria-required":ca(O,n),"aria-valuetext":(U=ca(N,n))===null||U===void 0?void 0:U(o),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:L,onTouchStart:L,onFocus:$,onMouseEnter:D,onKeyDown:F,onKeyUp:H}}var V=sf.createElement("div",J({ref:t,className:(0,NF.default)(W,T(T(T({},"".concat(W,"-").concat(n+1),n!==null&&w),"".concat(W,"-dragging"),c),"".concat(W,"-dragging-delete"),u),A.handle),style:P(P(P({},z),s),k.handle)},B,v));return l&&(V=l(V,{index:n,prefixCls:r,value:o,dragging:c,draggingDelete:u})),V}),VE=tG;var rG=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],oG=Xo.forwardRef(function(e,t){var r=e.prefixCls,o=e.style,n=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=Me(e,rG),p=Xo.useRef({}),h=Xo.useState(!1),v=j(h,2),y=v[0],g=v[1],m=Xo.useState(-1),x=j(m,2),b=x[0],S=x[1],w=function(N){S(N),g(!0)},C=function(N,k){w(k),f?.(N)},R=function(N,k){w(k)};Xo.useImperativeHandle(t,function(){return{focus:function(N){var k;(k=p.current[N])===null||k===void 0||k.focus()},hideHelp:function(){(0,IF.flushSync)(function(){g(!1)})}}});var _=P({prefixCls:r,onStartMove:n,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},d);return Xo.createElement(Xo.Fragment,null,a.map(function(O,N){var k=c===N;return Xo.createElement(VE,J({ref:function(W){W?p.current[N]=W:delete p.current[N]},dragging:k,draggingDelete:k&&u,style:ca(o,N),key:N,value:O,valueIndex:N},_))}),l&&y&&Xo.createElement(VE,J({key:"a11y"},_,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),$F=oG;var HE=E(I());var DF=E(Ee()),I0=E(I());var nG=function(t){var r=t.prefixCls,o=t.style,n=t.children,i=t.value,a=t.onClick,s=I0.useContext(pn),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,p=s.included,h="".concat(r,"-text"),v=af(u,i,l,c);return I0.createElement("span",{className:(0,DF.default)(h,T({},"".concat(h,"-active"),p&&f<=i&&i<=d)),style:P(P({},v),o),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},n)},MF=nG;var iG=function(t){var r=t.prefixCls,o=t.marks,n=t.onClick,i="".concat(r,"-mark");return o.length?HE.createElement("div",{className:i},o.map(function(a){var s=a.value,l=a.style,c=a.label;return HE.createElement(MF,{key:s,prefixCls:i,style:l,value:s,onClick:n},c)})):null},AF=iG;var fc=E(I());var LF=E(Ee()),$0=E(I());var aG=function(t){var r=t.prefixCls,o=t.value,n=t.style,i=t.activeStyle,a=$0.useContext(pn),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,p="".concat(r,"-dot"),h=u&&f<=o&&o<=d,v=P(P({},af(c,o,s,l)),typeof n=="function"?n(o):n);return h&&(v=P(P({},v),typeof i=="function"?i(o):i)),$0.createElement("span",{className:(0,LF.default)(p,T({},"".concat(p,"-active"),h)),style:v})},kF=aG;var sG=function(t){var r=t.prefixCls,o=t.marks,n=t.dots,i=t.style,a=t.activeStyle,s=fc.useContext(pn),l=s.min,c=s.max,u=s.step,f=fc.useMemo(function(){var d=new Set;if(o.forEach(function(h){d.add(h.value)}),n&&u!==null)for(var p=l;p<=c;)d.add(p),p+=u;return Array.from(d)},[l,c,u,n,o]);return fc.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return fc.createElement(kF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},FF=sG;var BF=E(Ee()),ua=E(I());var zF=E(Ee()),D0=E(I());var lG=function(t){var r=t.prefixCls,o=t.style,n=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=D0.useContext(pn),u=c.direction,f=c.min,d=c.max,p=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=N0(n,f,d),m=N0(i,f,d),x=function(C){!p&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(m*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(m*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(m*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(m*100-g*100,"%")}var S=l||(0,zF.default)(y,T(T({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return D0.createElement("div",{className:S,style:P(P({},b),o),onMouseDown:x,onTouchStart:x})},UE=lG;var cG=function(t){var r=t.prefixCls,o=t.style,n=t.values,i=t.startPoint,a=t.onStartMove,s=ua.useContext(pn),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,p=ua.useMemo(function(){if(!c){if(n.length===0)return[];var v=i??u,y=n[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var g=[],m=0;m<n.length-1;m+=1)g.push({start:n[m],end:n[m+1]});return g},[n,c,i,u]);if(!l)return null;var h=p!=null&&p.length&&(d.tracks||f.tracks)?ua.createElement(UE,{index:null,prefixCls:r,start:p[0].start,end:p[p.length-1].end,replaceCls:(0,BF.default)(d.tracks,"".concat(r,"-tracks")),style:f.tracks}):null;return ua.createElement(ua.Fragment,null,h,p.map(function(v,y){var g=v.start,m=v.end;return ua.createElement(UE,{index:y,prefixCls:r,style:P(P({},ca(o,y)),f.track),start:g,end:m,key:y,onStartMove:a})}))},jF=cG;var Ao=E(I());var uG=130;function WF(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function fG(e,t,r,o,n,i,a,s,l,c,u){var f=Ao.useState(null),d=j(f,2),p=d[0],h=d[1],v=Ao.useState(-1),y=j(v,2),g=y[0],m=y[1],x=Ao.useState(!1),b=j(x,2),S=b[0],w=b[1],C=Ao.useState(r),R=j(C,2),_=R[0],O=R[1],N=Ao.useState(r),k=j(N,2),A=k[0],W=k[1],L=Ao.useRef(null),$=Ao.useRef(null),D=Ao.useRef(null),F=Ao.useContext(WE),H=F.onDragStart,z=F.onDragChange;vt(function(){g===-1&&O(r)},[r,g]),Ao.useEffect(function(){return function(){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",$.current),D.current&&(D.current.removeEventListener("touchmove",L.current),D.current.removeEventListener("touchend",$.current))}},[]);var B=function(q,ee,X){ee!==void 0&&h(ee),O(q);var Y=q;X&&(Y=q.filter(function(ne,re){return re!==g})),a(Y),z&&z({rawValues:q,deleteIndex:X?g:-1,draggingIndex:g,draggingValue:ee})},U=Et(function(G,q,ee){if(G===-1){var X=A[0],Y=A[A.length-1],ne=o-X,re=n-Y,K=q*(n-o);K=Math.max(K,ne),K=Math.min(K,re);var Q=i(X+K);K=Q-X;var ie=A.map(function(fe){return fe+K});B(ie)}else{var Z=(n-o)*q,oe=se(_);oe[G]=A[G];var me=l(oe,Z,G,"dist");B(me.values,me.value,ee)}}),V=function(q,ee,X){q.stopPropagation();var Y=X||r,ne=Y[ee];m(ee),h(ne),W(Y),O(Y),w(!1);var re=WF(q),K=re.pageX,Q=re.pageY,ie=!1;H&&H({rawValues:Y,draggingIndex:ee,draggingValue:ne});var Z=function(fe){fe.preventDefault();var de=WF(fe),he=de.pageX,ye=de.pageY,we=he-K,le=ye-Q,ae=e.current.getBoundingClientRect(),Re=ae.width,Ae=ae.height,je,Ie;switch(t){case"btt":je=-le/Ae,Ie=we;break;case"ttb":je=le/Ae,Ie=we;break;case"rtl":je=-we/Re,Ie=le;break;default:je=we/Re,Ie=le}ie=c?Math.abs(Ie)>uG&&u<_.length:!1,w(ie),U(ee,je,ie)},oe=function me(fe){fe.preventDefault(),document.removeEventListener("mouseup",me),document.removeEventListener("mousemove",Z),D.current&&(D.current.removeEventListener("touchmove",L.current),D.current.removeEventListener("touchend",$.current)),L.current=null,$.current=null,D.current=null,s(ie),m(-1),w(!1)};document.addEventListener("mouseup",oe),document.addEventListener("mousemove",Z),q.currentTarget.addEventListener("touchend",oe),q.currentTarget.addEventListener("touchmove",Z),L.current=Z,$.current=oe,D.current=q.currentTarget},M=Ao.useMemo(function(){var G=se(r).sort(function(ne,re){return ne-re}),q=se(_).sort(function(ne,re){return ne-re}),ee={};q.forEach(function(ne){ee[ne]=(ee[ne]||0)+1}),G.forEach(function(ne){ee[ne]=(ee[ne]||0)-1});var X=c?1:0,Y=Object.values(ee).reduce(function(ne,re){return ne+Math.abs(re)},0);return Y<=X?_:r},[r,_,c]);return[g,p,S,M,V]}var VF=fG;var M0=E(I());function GE(e,t,r,o,n,i){var a=M0.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=M0.useCallback(function(p){if(r!==null){var h=e+Math.round((a(p)-e)/r)*r,v=function(x){return(String(x).split(".")[1]||"").length},y=Math.max(v(r),v(t),v(e)),g=Number(h.toFixed(y));return e<=g&&g<=t?g:null}return null},[r,e,t,a]),l=M0.useCallback(function(p){var h=a(p),v=o.map(function(m){return m.value});r!==null&&v.push(s(p)),v.push(e,t);var y=v[0],g=t-e;return v.forEach(function(m){var x=Math.abs(h-m);x<=g&&(y=m,g=x)}),y},[e,t,o,r,a,s]),c=function p(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var m,x=h[y],b=x+v,S=[];o.forEach(function(O){S.push(O.value)}),S.push(e,t),S.push(s(x));var w=v>0?1:-1;g==="unit"?S.push(s(x+w*r)):S.push(s(b)),S=S.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),g==="unit"&&(S=S.filter(function(O){return O!==x}));var C=g==="unit"?x:b;m=S[0];var R=Math.abs(m-C);if(S.forEach(function(O){var N=Math.abs(O-C);N<R&&(m=O,R=N)}),m===void 0)return v<0?e:t;if(g==="dist")return m;if(Math.abs(v)>1){var _=se(h);return _[y]=m,p(_,v-w,y,g)}return m}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",m=h[y],x=c(h,v,y,g);return{value:x,changed:x!==m}},f=function(h){return i===null&&h===0||typeof i=="number"&&h<i},d=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",m=h.map(l),x=m[y],b=c(m,v,y,g);if(m[y]=b,n===!1){var S=i||0;y>0&&m[y-1]!==x&&(m[y]=Math.max(m[y],m[y-1]+S)),y<m.length-1&&m[y+1]!==x&&(m[y]=Math.min(m[y],m[y+1]-S))}else if(typeof i=="number"||i===null){for(var w=y+1;w<m.length;w+=1)for(var C=!0;f(m[w]-m[w-1])&&C;){var R=u(m,1,w);m[w]=R.value,C=R.changed}for(var _=y;_>0;_-=1)for(var O=!0;f(m[_]-m[_-1])&&O;){var N=u(m,-1,_-1);m[_-1]=N.value,O=N.changed}for(var k=m.length-1;k>0;k-=1)for(var A=!0;f(m[k]-m[k-1])&&A;){var W=u(m,-1,k-1);m[k-1]=W.value,A=W.changed}for(var L=0;L<m.length-1;L+=1)for(var $=!0;f(m[L+1]-m[L])&&$;){var D=u(m,1,L+1);m[L+1]=D.value,$=D.changed}}return{value:m[y],values:m}};return[l,d]}var HF=E(I());function qE(e){return(0,HF.useMemo)(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,r=e.draggableTrack,o=e.minCount,n=e.maxCount;return[!0,t,!t&&r,o||0,n]},[e])}var dG=Pt.forwardRef(function(e,t){var r=e.prefixCls,o=r===void 0?"rc-slider":r,n=e.className,i=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,d=f===void 0?!0:f,p=e.autoFocus,h=e.onFocus,v=e.onBlur,y=e.min,g=y===void 0?0:y,m=e.max,x=m===void 0?100:m,b=e.step,S=b===void 0?1:b,w=e.value,C=e.defaultValue,R=e.range,_=e.count,O=e.onChange,N=e.onBeforeChange,k=e.onAfterChange,A=e.onChangeComplete,W=e.allowCross,L=W===void 0?!0:W,$=e.pushable,D=$===void 0?!1:$,F=e.reverse,H=e.vertical,z=e.included,B=z===void 0?!0:z,U=e.startPoint,V=e.trackStyle,M=e.handleStyle,G=e.railStyle,q=e.dotStyle,ee=e.activeDotStyle,X=e.marks,Y=e.dots,ne=e.handleRender,re=e.activeHandleRender,K=e.track,Q=e.tabIndex,ie=Q===void 0?0:Q,Z=e.ariaLabelForHandle,oe=e.ariaLabelledByForHandle,me=e.ariaRequired,fe=e.ariaValueTextFormatterForHandle,de=Pt.useRef(null),he=Pt.useRef(null),ye=Pt.useMemo(function(){return H?F?"ttb":"btt":F?"rtl":"ltr"},[F,H]),we=qE(R),le=j(we,5),ae=le[0],Re=le[1],Ae=le[2],je=le[3],Ie=le[4],Oe=Pt.useMemo(function(){return isFinite(g)?g:0},[g]),Se=Pt.useMemo(function(){return isFinite(x)?x:100},[x]),Ve=Pt.useMemo(function(){return S!==null&&S<=0?1:S},[S]),He=Pt.useMemo(function(){return typeof D=="boolean"?D?Ve:!1:D>=0?D:!1},[D,Ve]),$e=Pt.useMemo(function(){return Object.keys(X||{}).map(function(ke){var xe=X[ke],ot={value:Number(ke)};return xe&&ue(xe)==="object"&&!Pt.isValidElement(xe)&&("label"in xe||"style"in xe)?(ot.style=xe.style,ot.label=xe.label):ot.label=xe,ot}).filter(function(ke){var xe=ke.label;return xe||typeof xe=="number"}).sort(function(ke,xe){return ke.value-xe.value})},[X]),ce=GE(Oe,Se,Ve,$e,L,He),pe=j(ce,2),ze=pe[0],Ce=pe[1],Ue=zt(C,{value:w}),Ye=j(Ue,2),pt=Ye[0],Tt=Ye[1],gt=Pt.useMemo(function(){var ke=pt==null?[]:Array.isArray(pt)?pt:[pt],xe=j(ke,1),ot=xe[0],It=ot===void 0?Oe:ot,$t=pt===null?[]:[It];if(ae){if($t=se(ke),_||pt===void 0){var mo=_>=0?_+1:2;for($t=$t.slice(0,mo);$t.length<mo;){var Nr;$t.push((Nr=$t[$t.length-1])!==null&&Nr!==void 0?Nr:Oe)}}$t.sort(function(Fr,wr){return Fr-wr})}return $t.forEach(function(Fr,wr){$t[wr]=ze(Fr)}),$t},[pt,ae,Oe,_,ze]),Be=function(xe){return ae?xe:xe[0]},Pe=Et(function(ke){var xe=se(ke).sort(function(ot,It){return ot-It});O&&!Zi(xe,gt,!0)&&O(Be(xe)),Tt(xe)}),et=Et(function(ke){ke&&de.current.hideHelp();var xe=Be(gt);k?.(xe),Vt(!k,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A?.(xe)}),De=function(xe){if(!(u||!Re||gt.length<=je)){var ot=se(gt);ot.splice(xe,1),N?.(Be(ot)),Pe(ot);var It=Math.max(0,xe-1);de.current.hideHelp(),de.current.focus(It)}},Le=VF(he,ye,gt,Oe,Se,ze,Pe,et,Ce,Re,je),Te=j(Le,5),Ne=Te[0],ht=Te[1],jt=Te[2],We=Te[3],_e=Te[4],Qe=function(xe,ot){if(!u){var It=se(gt),$t=0,mo=0,Nr=Se-Oe;gt.forEach(function(Fo,eo){var Eo=Math.abs(xe-Fo);Eo<=Nr&&(Nr=Eo,$t=eo),Fo<xe&&(mo=eo)});var Fr=$t;Re&&Nr!==0&&(!Ie||gt.length<Ie)?(It.splice(mo+1,0,xe),Fr=mo+1):It[$t]=xe,ae&&!gt.length&&_===void 0&&It.push(xe);var wr=Be(It);if(N?.(wr),Pe(It),ot){var zr,Qo;(zr=document.activeElement)===null||zr===void 0||(Qo=zr.blur)===null||Qo===void 0||Qo.call(zr),de.current.focus(Fr),_e(ot,Fr,It)}else k?.(wr),Vt(!k,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A?.(wr)}},Ze=function(xe){xe.preventDefault();var ot=he.current.getBoundingClientRect(),It=ot.width,$t=ot.height,mo=ot.left,Nr=ot.top,Fr=ot.bottom,wr=ot.right,zr=xe.clientX,Qo=xe.clientY,Fo;switch(ye){case"btt":Fo=(Fr-Qo)/$t;break;case"ttb":Fo=(Qo-Nr)/$t;break;case"rtl":Fo=(wr-zr)/It;break;default:Fo=(zr-mo)/It}var eo=Oe+Fo*(Se-Oe);Qe(ze(eo),xe)},Ke=Pt.useState(null),rt=j(Ke,2),Lt=rt[0],Nt=rt[1],er=function(xe,ot){if(!u){var It=Ce(gt,xe,ot);N?.(Be(gt)),Pe(It.values),Nt(It.value)}};Pt.useEffect(function(){if(Lt!==null){var ke=gt.indexOf(Lt);ke>=0&&de.current.focus(ke)}Nt(null)},[Lt]);var Ft=Pt.useMemo(function(){return Ae&&Ve===null?!1:Ae},[Ae,Ve]),tr=Et(function(ke,xe){_e(ke,xe),N?.(Be(gt))}),cr=Ne!==-1;Pt.useEffect(function(){if(!cr){var ke=gt.lastIndexOf(ht);de.current.focus(ke)}},[cr]);var ur=Pt.useMemo(function(){return se(We).sort(function(ke,xe){return ke-xe})},[We]),ko=Pt.useMemo(function(){return ae?[ur[0],ur[ur.length-1]]:[Oe,ur[0]]},[ur,ae,Oe]),fr=j(ko,2),Cr=fr[0],be=fr[1];Pt.useImperativeHandle(t,function(){return{focus:function(){de.current.focus(0)},blur:function(){var xe,ot=document,It=ot.activeElement;(xe=he.current)!==null&&xe!==void 0&&xe.contains(It)&&It?.blur()}}}),Pt.useEffect(function(){p&&de.current.focus(0)},[]);var Ge=Pt.useMemo(function(){return{min:Oe,max:Se,direction:ye,disabled:u,keyboard:d,step:Ve,included:B,includedStart:Cr,includedEnd:be,range:ae,tabIndex:ie,ariaLabelForHandle:Z,ariaLabelledByForHandle:oe,ariaRequired:me,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:a||{}}},[Oe,Se,ye,u,d,Ve,B,Cr,be,ae,ie,Z,oe,me,fe,s,a]);return Pt.createElement(pn.Provider,{value:Ge},Pt.createElement("div",{ref:he,className:(0,KE.default)(o,n,T(T(T(T({},"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),H),"".concat(o,"-horizontal"),!H),"".concat(o,"-with-marks"),$e.length)),style:i,onMouseDown:Ze,id:l},Pt.createElement("div",{className:(0,KE.default)("".concat(o,"-rail"),a?.rail),style:P(P({},G),s?.rail)}),K!==!1&&Pt.createElement(jF,{prefixCls:o,style:V,values:gt,startPoint:U,onStartMove:Ft?tr:void 0}),Pt.createElement(FF,{prefixCls:o,marks:$e,dots:Y,style:q,activeStyle:ee}),Pt.createElement($F,{ref:de,prefixCls:o,style:M,values:We,draggingIndex:Ne,draggingDelete:jt,onStartMove:tr,onOffsetChange:er,onFocus:h,onBlur:v,handleRender:ne,activeHandleRender:re,onChangeComplete:et,onDelete:Re?De:void 0}),Pt.createElement(AF,{prefixCls:o,marks:$e,onClick:Qe})))}),UF=dG;var GF=UF;var fa=E(I()),uf=E(Ee());var qF=E(I()),mG=(0,qF.createContext)({}),KF=mG;var lf=E(I()),XE=E(I());var pG=lf.forwardRef((e,t)=>{let{open:r,draggingDelete:o}=e,n=(0,XE.useRef)(null),i=r&&!o,a=(0,XE.useRef)(null);function s(){ct.cancel(a.current),a.current=null}function l(){a.current=ct(()=>{var c;(c=n.current)===null||c===void 0||c.forceAlign(),a.current=null})}return lf.useEffect(()=>(i?l():s(),s),[i,e.title]),lf.createElement(Ga,Object.assign({ref:Ar(n,t)},e,{open:i}))}),YE=pG;var gG=e=>{let{componentCls:t,antCls:r,controlSize:o,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},Yt(e)),{position:"relative",height:o,margin:`${te(a)} ${te(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${te(i)} ${te(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 ${te(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 ${te(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(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${te(v)} ${d}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).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:n,height:n,backgroundColor:e.colorBgElevated,border:`${te(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 ${te(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${t}-mark-text,
|
|
${t}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},XF=(e,t)=>{let{componentCls:r,railSize:o,handleSize:n,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",p=s(o).mul(3).sub(n).div(2).equal(),h=s(n).sub(o).div(2).equal(),v=t?{borderWidth:`${te(h)} 0`,transform:`translateY(${te(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${te(h)}`,transform:`translateX(${te(e.calc(h).mul(-1).equal())})`};return{[l]:o,[u]:s(o).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:o},[`${r}-track,${r}-tracks`]:{[u]:o},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:p},[`${r}-mark`]:{insetInlineStart:0,top:0,[d]:s(o).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[d]:o,[c]:"100%",[u]:o},[`${r}-dot`]:{position:"absolute",[f]:s(o).sub(i).div(2).equal()}}},hG=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},XF(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},vG=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},XF(e,!1)),{height:"100%"})}},yG=e=>{let r=e.controlHeightLG/4,o=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new nt(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:o,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new nt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},YF=_t("Slider",e=>{let t=tt(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[gG(t),hG(t),vG(t)]},yG);var cf=E(I());function Dm(){let[e,t]=cf.useState(!1),r=cf.useRef(null),o=()=>{ct.cancel(r.current)},n=i=>{o(),i?t(i):r.current=ct(()=>{t(i)})};return cf.useEffect(()=>o,[]),[e,n]}var xG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function SG(e,t){return e||e===null?e:t||t===null?t:r=>typeof r=="number"?r.toString():""}var bG=fa.default.forwardRef((e,t)=>{let{prefixCls:r,range:o,className:n,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:p={},onChangeComplete:h,classNames:v,styles:y}=e,g=xG(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:m}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:_}=$o("slider"),O=fa.default.useContext(Hr),N=s??O,{handleRender:k,direction:A}=fa.default.useContext(KF),L=(A||b)==="rtl",[$,D]=Dm(),[F,H]=Dm(),z=Object.assign({},p),{open:B,placement:U,getPopupContainer:V,prefixCls:M,formatter:G}=z,q=B??u,ee=($||F)&&q!==!1,X=SG(G,c),[Y,ne]=Dm(),re=ae=>{h?.(ae),ne(!1)},K=(ae,Re)=>ae||(Re?L?"left":"right":"top"),Q=x("slider",r),[ie,Z,oe]=YF(Q),me=(0,uf.default)(n,S,C.root,v?.root,i,{[`${Q}-rtl`]:L,[`${Q}-lock`]:Y},Z,oe);L&&!g.vertical&&(g.reverse=!g.reverse),fa.default.useEffect(()=>{let ae=()=>{ct(()=>{H(!1)},1)};return document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mouseup",ae)}},[]);let fe=o&&!q,de=k||((ae,Re)=>{let{index:Ae}=Re,je=ae.props;function Ie(He,$e,ce){var pe,ze,Ce,Ue;ce&&((ze=(pe=g)[He])===null||ze===void 0||ze.call(pe,$e)),(Ue=(Ce=je)[He])===null||Ue===void 0||Ue.call(Ce,$e)}let Oe=Object.assign(Object.assign({},je),{onMouseEnter:He=>{D(!0),Ie("onMouseEnter",He)},onMouseLeave:He=>{D(!1),Ie("onMouseLeave",He)},onMouseDown:He=>{H(!0),ne(!0),Ie("onMouseDown",He)},onFocus:He=>{var $e;H(!0),($e=g.onFocus)===null||$e===void 0||$e.call(g,He),Ie("onFocus",He,!0)},onBlur:He=>{var $e;H(!1),($e=g.onBlur)===null||$e===void 0||$e.call(g,He),Ie("onBlur",He,!0)}}),Se=fa.default.cloneElement(ae,Oe),Ve=(!!q||ee)&&X!==null;return fe?Se:fa.default.createElement(YE,Object.assign({},z,{prefixCls:x("tooltip",M??l),title:X?X(Re.value):"",open:Ve,placement:K(U??d,m),key:Ae,classNames:{root:`${Q}-tooltip`},getPopupContainer:V||f||_}),Se)}),he=fe?(ae,Re)=>{let Ae=fa.default.cloneElement(ae,{style:Object.assign(Object.assign({},ae.props.style),{visibility:"hidden"})});return fa.default.createElement(YE,Object.assign({},z,{prefixCls:x("tooltip",M??l),title:X?X(Re.value):"",open:X!==null&&ee,placement:K(U??d,m),key:"tooltip",classNames:{root:`${Q}-tooltip`},getPopupContainer:V||f||_,draggingDelete:Re.draggingDelete}),Ae)}:void 0,ye=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),we=Object.assign(Object.assign({},R.tracks),y?.tracks),le=(0,uf.default)(C.tracks,v?.tracks);return ie(fa.default.createElement(GF,Object.assign({},g,{classNames:Object.assign({handle:(0,uf.default)(C.handle,v?.handle),rail:(0,uf.default)(C.rail,v?.rail),track:(0,uf.default)(C.track,v?.track)},le?{tracks:le}:{}),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(we).length?{tracks:we}:{}),step:g.step,range:o,className:me,style:ye,disabled:N,ref:t,prefixCls:Q,handleRender:de,activeHandleRender:he,onChangeComplete:re})))}),QE=bG;function ZE(e){return["small","middle","large"].includes(e)}var A0=E(I()),e3=E(Ee());var QF=E(Ee()),JE=["wrap","nowrap","wrap-reverse"],eR=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],tR=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],CG=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&JE.includes(r)}},wG=(e,t)=>{let r={};return tR.forEach(o=>{r[`${e}-align-${o}`]=t.align===o}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},EG=(e,t)=>{let r={};return eR.forEach(o=>{r[`${e}-justify-${o}`]=t.justify===o}),r};function RG(e,t){return(0,QF.default)(Object.assign(Object.assign(Object.assign({},CG(e,t)),wG(e,t)),EG(e,t)))}var ZF=RG;var OG=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},_G=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},PG=e=>{let{componentCls:t}=e,r={};return JE.forEach(o=>{r[`${t}-wrap-${o}`]={flexWrap:o}}),r},TG=e=>{let{componentCls:t}=e,r={};return tR.forEach(o=>{r[`${t}-align-${o}`]={alignItems:o}}),r},NG=e=>{let{componentCls:t}=e,r={};return eR.forEach(o=>{r[`${t}-justify-${o}`]={justifyContent:o}}),r},IG=()=>({}),JF=_t("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:o}=e,n=tt(e,{flexGapSM:t,flexGap:r,flexGapLG:o});return[OG(n),_G(n),PG(n),TG(n),NG(n)]},IG,{resetStyle:!1});var $G=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},DG=A0.default.forwardRef((e,t)=>{let{prefixCls:r,rootClassName:o,className:n,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=$G(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:p,getPrefixCls:h}=A0.default.useContext(it),v=h("flex",r),[y,g,m]=JF(v),x=c??d?.vertical,b=(0,e3.default)(n,o,d?.className,v,g,m,ZF(v,e),{[`${v}-rtl`]:p==="rtl",[`${v}-gap-${s}`]:ZE(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},d?.style),i);return a&&(S.flex=a),s&&!ZE(s)&&(S.gap=s),y(A0.default.createElement(u,Object.assign({ref:t,className:b,style:S},Ur(f,["justify","wrap","align"])),l))}),ff=DG;var hf=E(I());var L0=E(I());var MG={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"},t3=MG;var AG=function(t,r){return L0.createElement(mt,J({},t,{ref:r,icon:t3}))},LG=L0.forwardRef(AG),df=LG;var X0=E(Ee());var j0=E(Ee());function k0(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function r3(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Za=E(I()),pc=E(I());var c3=E(Ee());var rR=E(Ci());function da(e,t,r,o){var n=rR.default.unstable_batchedUpdates?function(a){rR.default.unstable_batchedUpdates(r,a)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,n,o),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,n,o)}}}var Co=E(I());var Mm=E(Ee());var fo=E(I()),n3=E(I());var o3=E(I()),ma=o3.createContext(null);var kG=function(t){var r=t.visible,o=t.maskTransitionName,n=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,d=t.transform,p=t.count,h=t.scale,v=t.minScale,y=t.maxScale,g=t.closeIcon,m=t.onActive,x=t.onClose,b=t.onZoomIn,S=t.onZoomOut,w=t.onRotateRight,C=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,O=t.onReset,N=t.toolbarRender,k=t.zIndex,A=t.image,W=(0,n3.useContext)(ma),L=s.rotateLeft,$=s.rotateRight,D=s.zoomIn,F=s.zoomOut,H=s.close,z=s.left,B=s.right,U=s.flipX,V=s.flipY,M="".concat(i,"-operations-operation");fo.useEffect(function(){var oe=function(fe){fe.keyCode===Fe.ESC&&x()};return r&&window.addEventListener("keydown",oe),function(){window.removeEventListener("keydown",oe)}},[r]);var G=function(me,fe){me.preventDefault(),me.stopPropagation(),m(fe)},q=fo.useCallback(function(oe){var me=oe.type,fe=oe.disabled,de=oe.onClick,he=oe.icon;return fo.createElement("div",{key:me,className:(0,Mm.default)(M,"".concat(i,"-operations-operation-").concat(me),T({},"".concat(i,"-operations-operation-disabled"),!!fe)),onClick:de},he)},[M,i]),ee=c?q({icon:z,onClick:function(me){return G(me,-1)},type:"prev",disabled:f===0}):void 0,X=c?q({icon:B,onClick:function(me){return G(me,1)},type:"next",disabled:f===p-1}):void 0,Y=q({icon:V,onClick:_,type:"flipY"}),ne=q({icon:U,onClick:R,type:"flipX"}),re=q({icon:L,onClick:C,type:"rotateLeft"}),K=q({icon:$,onClick:w,type:"rotateRight"}),Q=q({icon:F,onClick:S,type:"zoomOut",disabled:h<=v}),ie=q({icon:D,onClick:b,type:"zoomIn",disabled:h===y}),Z=fo.createElement("div",{className:"".concat(i,"-operations")},Y,ne,re,K,Q,ie);return fo.createElement(ao,{visible:r,motionName:o},function(oe){var me=oe.className,fe=oe.style;return fo.createElement(Yl,{open:!0,getContainer:n??document.body},fo.createElement("div",{className:(0,Mm.default)("".concat(i,"-operations-wrapper"),me,a),style:P(P({},fe),{},{zIndex:k})},g===null?null:fo.createElement("button",{className:"".concat(i,"-close"),onClick:x},g||H),c&&fo.createElement(fo.Fragment,null,fo.createElement("div",{className:(0,Mm.default)("".concat(i,"-switch-left"),T({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(he){return G(he,-1)}},z),fo.createElement("div",{className:(0,Mm.default)("".concat(i,"-switch-right"),T({},"".concat(i,"-switch-right-disabled"),f===p-1)),onClick:function(he){return G(he,1)}},B)),fo.createElement("div",{className:"".concat(i,"-footer")},u&&fo.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),N?N(Z,P(P({icons:{prevIcon:ee,nextIcon:X,flipYIcon:Y,flipXIcon:ne,rotateLeftIcon:re,rotateRightIcon:K,zoomOutIcon:Q,zoomInIcon:ie},actions:{onActive:m,onFlipY:_,onFlipX:R,onRotateLeft:C,onRotateRight:w,onZoomOut:S,onZoomIn:b,onReset:O,onClose:x},transform:d},W?{current:f,total:p}:{}),{},{image:A})):Z)))})},i3=kG;var Am=E(I()),F0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function oR(e,t,r,o){var n=(0,Am.useRef)(null),i=(0,Am.useRef)([]),a=(0,Am.useState)(F0),s=j(a,2),l=s[0],c=s[1],u=function(h){c(F0),Zi(F0,l)||o?.({transform:F0,action:h})},f=function(h,v){n.current===null&&(i.current=[],n.current=ct(function(){c(function(y){var g=y;return i.current.forEach(function(m){g=P(P({},g),m)}),n.current=null,o?.({transform:g,action:v}),g})})),i.current.push(P(P({},l),h))},d=function(h,v,y,g,m){var x=e.current,b=x.width,S=x.height,w=x.offsetWidth,C=x.offsetHeight,R=x.offsetLeft,_=x.offsetTop,O=h,N=l.scale*h;N>r?(N=r,O=r/l.scale):N<t&&(N=m?N:t,O=N/l.scale);var k=y??innerWidth/2,A=g??innerHeight/2,W=O-1,L=W*b*.5,$=W*S*.5,D=W*(k-l.x-R),F=W*(A-l.y-_),H=l.x-(D-L),z=l.y-(F-$);if(h<1&&N===1){var B=w*N,U=C*N,V=k0(),M=V.width,G=V.height;B<=M&&U<=G&&(H=0,z=0)}f({x:H,y:z,scale:N},v)};return{transform:l,resetTransform:u,updateTransform:f,dispatchZoomChange:d}}var mf=E(I());function a3(e,t,r,o){var n=t+r,i=(r-o)/2;if(r>o){if(t>0)return T({},e,i);if(t<0&&n<o)return T({},e,-i)}else if(t<0||n>o)return T({},e,t<0?i:-i);return{}}function Lm(e,t,r,o){var n=k0(),i=n.width,a=n.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=P(P({},a3("x",r,e,i)),a3("y",o,t,a))),s}var nl=1,s3=1;function nR(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,mf.useState)(!1),d=j(f,2),p=d[0],h=d[1],v=(0,mf.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(S){!t||S.button!==0||(S.preventDefault(),S.stopPropagation(),v.current={diffX:S.pageX-c,diffY:S.pageY-u,transformX:c,transformY:u},h(!0))},g=function(S){r&&p&&i({x:S.pageX-v.current.diffX,y:S.pageY-v.current.diffY},"move")},m=function(){if(r&&p){h(!1);var S=v.current,w=S.transformX,C=S.transformY,R=c!==w&&u!==C;if(!R)return;var _=e.current.offsetWidth*l,O=e.current.offsetHeight*l,N=e.current.getBoundingClientRect(),k=N.left,A=N.top,W=s%180!==0,L=Lm(W?O:_,W?_:O,k,A);L&&i(P({},L),"dragRebound")}},x=function(S){if(!(!r||S.deltaY==0)){var w=Math.abs(S.deltaY/100),C=Math.min(w,s3),R=nl+C*o;S.deltaY>0&&(R=nl/R),a(R,"wheel",S.clientX,S.clientY)}};return(0,mf.useEffect)(function(){var b,S,w,C;if(t){w=da(window,"mouseup",m,!1),C=da(window,"mousemove",g,!1);try{window.top!==window.self&&(b=da(window.top,"mouseup",m,!1),S=da(window.top,"mousemove",g,!1))}catch(R){Il(!1,"[rc-image] ".concat(R))}}return function(){var R,_,O,N;(R=w)===null||R===void 0||R.remove(),(_=C)===null||_===void 0||_.remove(),(O=b)===null||O===void 0||O.remove(),(N=S)===null||N===void 0||N.remove()}},[r,p,c,u,s,t]),{isMoving:p,onMouseDown:y,onMouseMove:g,onMouseUp:m,onWheel:x}}var dc=E(I());function l3(e){return new Promise(function(t){var r=document.createElement("img");r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src=e})}function km(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,n=(0,dc.useState)(r?"loading":"normal"),i=j(n,2),a=i[0],s=i[1],l=(0,dc.useRef)(!1),c=a==="error";(0,dc.useEffect)(function(){var p=!0;return l3(t).then(function(h){!h&&p&&s("error")}),function(){p=!1}},[t]),(0,dc.useEffect)(function(){r&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(h){l.current=!1,a==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},d=c&&o?{src:o}:{onLoad:u,src:t};return[f,d,a]}var pf=E(I());function z0(e,t){var r=e.x-t.x,o=e.y-t.y;return Math.hypot(r,o)}function FG(e,t,r,o){var n=z0(e,r),i=z0(t,o);if(n===0&&i===0)return[e.x,e.y];var a=n/(n+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function iR(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,pf.useState)(!1),d=j(f,2),p=d[0],h=d[1],v=(0,pf.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(S){v.current=P(P({},v.current),S)},g=function(S){if(t){S.stopPropagation(),h(!0);var w=S.touches,C=w===void 0?[]:w;C.length>1?y({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):y({point1:{x:C[0].clientX-c,y:C[0].clientY-u},eventType:"move"})}},m=function(S){var w=S.touches,C=w===void 0?[]:w,R=v.current,_=R.point1,O=R.point2,N=R.eventType;if(C.length>1&&N==="touchZoom"){var k={x:C[0].clientX,y:C[0].clientY},A={x:C[1].clientX,y:C[1].clientY},W=FG(_,O,k,A),L=j(W,2),$=L[0],D=L[1],F=z0(k,A)/z0(_,O);a(F,"touchZoom",$,D,!0),y({point1:k,point2:A,eventType:"touchZoom"})}else N==="move"&&(i({x:C[0].clientX-_.x,y:C[0].clientY-_.y},"move"),y({eventType:"move"}))},x=function(){if(r){if(p&&h(!1),y({eventType:"none"}),o>l)return i({x:0,y:0,scale:o},"touchZoom");var S=e.current.offsetWidth*l,w=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),R=C.left,_=C.top,O=s%180!==0,N=Lm(O?w:S,O?S:w,R,_);N&&i(P({},N),"dragRebound")}};return(0,pf.useEffect)(function(){var b;return r&&t&&(b=da(window,"touchmove",function(S){return S.preventDefault()},{passive:!1})),function(){var S;(S=b)===null||S===void 0||S.remove()}},[r,t]),{isTouching:p,onTouchStart:g,onTouchMove:m,onTouchEnd:x}}var zG=["fallback","src","imgRef"],BG=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],jG=function(t){var r=t.fallback,o=t.src,n=t.imgRef,i=Me(t,zG),a=km({src:o,fallback:r}),s=j(a,2),l=s[0],c=s[1];return Co.default.createElement("img",J({ref:function(f){n.current=f,l(f)}},i,c))},WG=function(t){var r=t.prefixCls,o=t.src,n=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,d=f===void 0?{}:f,p=t.rootClassName,h=t.closeIcon,v=t.getContainer,y=t.current,g=y===void 0?0:y,m=t.count,x=m===void 0?1:m,b=t.countRender,S=t.scaleStep,w=S===void 0?.5:S,C=t.minScale,R=C===void 0?1:C,_=t.maxScale,O=_===void 0?50:_,N=t.transitionName,k=N===void 0?"zoom":N,A=t.maskTransitionName,W=A===void 0?"fade":A,L=t.imageRender,$=t.imgCommonProps,D=t.toolbarRender,F=t.onTransform,H=t.onChange,z=Me(t,BG),B=(0,Co.useRef)(),U=(0,Co.useContext)(ma),V=U&&x>1,M=U&&x>=1,G=(0,Co.useState)(!0),q=j(G,2),ee=q[0],X=q[1],Y=oR(B,R,O,F),ne=Y.transform,re=Y.resetTransform,K=Y.updateTransform,Q=Y.dispatchZoomChange,ie=nR(B,l,u,w,ne,K,Q),Z=ie.isMoving,oe=ie.onMouseDown,me=ie.onWheel,fe=iR(B,l,u,R,ne,K,Q),de=fe.isTouching,he=fe.onTouchStart,ye=fe.onTouchMove,we=fe.onTouchEnd,le=ne.rotate,ae=ne.scale,Re=(0,c3.default)(T({},"".concat(r,"-moving"),Z));(0,Co.useEffect)(function(){ee||X(!0)},[ee]);var Ae=function(){re("close")},je=function(){Q(nl+w,"zoomIn")},Ie=function(){Q(nl/(nl+w),"zoomOut")},Oe=function(){K({rotate:le+90},"rotateRight")},Se=function(){K({rotate:le-90},"rotateLeft")},Ve=function(){K({flipX:!ne.flipX},"flipX")},He=function(){K({flipY:!ne.flipY},"flipY")},$e=function(){re("reset")},ce=function(pt){var Tt=g+pt;!Number.isInteger(Tt)||Tt<0||Tt>x-1||(X(!1),re(pt<0?"prev":"next"),H?.(Tt,g))},pe=function(pt){!u||!V||(pt.keyCode===Fe.LEFT?ce(-1):pt.keyCode===Fe.RIGHT&&ce(1))},ze=function(pt){u&&(ae!==1?K({x:0,y:0,scale:1},"doubleClick"):Q(nl+w,"doubleClick",pt.clientX,pt.clientY))};(0,Co.useEffect)(function(){var Ye=da(window,"keydown",pe,!1);return function(){Ye.remove()}},[u,V,g]);var Ce=Co.default.createElement(jG,J({},$,{width:t.width,height:t.height,imgRef:B,className:"".concat(r,"-img"),alt:n,style:{transform:"translate3d(".concat(ne.x,"px, ").concat(ne.y,"px, 0) scale3d(").concat(ne.flipX?"-":"").concat(ae,", ").concat(ne.flipY?"-":"").concat(ae,", 1) rotate(").concat(le,"deg)"),transitionDuration:(!ee||de)&&"0s"},fallback:a,src:o,onWheel:me,onMouseDown:oe,onDoubleClick:ze,onTouchStart:he,onTouchMove:ye,onTouchEnd:we,onTouchCancel:we})),Ue=P({url:o,alt:n},i);return Co.default.createElement(Co.default.Fragment,null,Co.default.createElement(LM,J({transitionName:k,maskTransitionName:W,closable:!1,keyboard:!0,prefixCls:r,onClose:c,visible:u,classNames:{wrapper:Re},rootClassName:p,getContainer:v},z,{afterClose:Ae}),Co.default.createElement("div",{className:"".concat(r,"-img-wrapper")},L?L(Ce,P({transform:ne,image:Ue},U?{current:g}:{})):Ce)),Co.default.createElement(i3,{visible:u,transform:ne,maskTransitionName:W,closeIcon:h,getContainer:v,prefixCls:r,rootClassName:p,icons:d,countRender:b,showSwitch:V,showProgress:M,current:g,count:x,scale:ae,minScale:R,maxScale:O,toolbarRender:D,onActive:ce,onZoomIn:je,onZoomOut:Ie,onRotateRight:Oe,onRotateLeft:Se,onFlipX:Ve,onFlipY:He,onClose:c,onReset:$e,zIndex:z.zIndex!==void 0?z.zIndex+1:void 0,image:Ue}))},B0=WG;var Qa=E(I()),sR=E(I());var gf=E(I());var Fm=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function aR(e){var t=gf.useState({}),r=j(t,2),o=r[0],n=r[1],i=gf.useCallback(function(s,l){return n(function(c){return P(P({},c),{},T({},s,l))}),function(){n(function(c){var u=P({},c);return delete u[s],u})}},[]),a=gf.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(se(Fm)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(o).reduce(function(s,l){var c=o[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,o]);return[a,i,!!e]}var VG=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],HG=["src"],UG=function(t){var r,o=t.previewPrefixCls,n=o===void 0?"rc-image-preview":o,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,f=ue(c)==="object"?c:{},d=f.visible,p=f.onVisibleChange,h=f.getContainer,v=f.current,y=f.movable,g=f.minScale,m=f.maxScale,x=f.countRender,b=f.closeIcon,S=f.onChange,w=f.onTransform,C=f.toolbarRender,R=f.imageRender,_=Me(f,VG),O=aR(l),N=j(O,3),k=N[0],A=N[1],W=N[2],L=zt(0,{value:v}),$=j(L,2),D=$[0],F=$[1],H=(0,sR.useState)(!1),z=j(H,2),B=z[0],U=z[1],V=((r=k[D])===null||r===void 0?void 0:r.data)||{},M=V.src,G=Me(V,HG),q=zt(!!d,{value:d,onChange:function(de,he){p?.(de,he,D)}}),ee=j(q,2),X=ee[0],Y=ee[1],ne=(0,sR.useState)(null),re=j(ne,2),K=re[0],Q=re[1],ie=Qa.useCallback(function(fe,de,he,ye){var we=W?k.findIndex(function(le){return le.data.src===de}):k.findIndex(function(le){return le.id===fe});F(we<0?0:we),Y(!0),Q({x:he,y:ye}),U(!0)},[k,W]);Qa.useEffect(function(){X?B||F(0):U(!1)},[X]);var Z=function(de,he){F(de),S?.(de,he)},oe=function(){Y(!1),Q(null)},me=Qa.useMemo(function(){return{register:A,onPreview:ie}},[A,ie]);return Qa.createElement(ma.Provider,{value:me},i,Qa.createElement(B0,J({"aria-hidden":!X,movable:y,visible:X,prefixCls:n,closeIcon:b,onClose:oe,mousePosition:K,imgCommonProps:G,src:M,fallback:u,icons:s,minScale:g,maxScale:m,getContainer:h,current:D,count:k.length,countRender:x,onTransform:w,toolbarRender:C,imageRender:R,onChange:Z},_)))},u3=UG;var mc=E(I());var f3=0;function lR(e,t){var r=mc.useState(function(){return f3+=1,String(f3)}),o=j(r,1),n=o[0],i=mc.useContext(ma),a={data:t,canPreview:e};return mc.useEffect(function(){if(i)return i.register(n,a)},[]),mc.useEffect(function(){i&&i.register(n,a)},[e,t]),n}var GG=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],qG=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],d3=function(t){var r=t.src,o=t.alt,n=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,d=t.height,p=t.style,h=t.preview,v=h===void 0?!0:h,y=t.className,g=t.onClick,m=t.onError,x=t.wrapperClassName,b=t.wrapperStyle,S=t.rootClassName,w=Me(t,GG),C=c&&c!==!0,R=ue(v)==="object"?v:{},_=R.src,O=R.visible,N=O===void 0?void 0:O,k=R.onVisibleChange,A=k===void 0?n:k,W=R.getContainer,L=W===void 0?void 0:W,$=R.mask,D=R.maskClassName,F=R.movable,H=R.icons,z=R.scaleStep,B=R.minScale,U=R.maxScale,V=R.imageRender,M=R.toolbarRender,G=Me(R,qG),q=_??r,ee=zt(!!N,{value:N,onChange:A}),X=j(ee,2),Y=X[0],ne=X[1],re=km({src:r,isCustomPlaceholder:C,fallback:u}),K=j(re,3),Q=K[0],ie=K[1],Z=K[2],oe=(0,pc.useState)(null),me=j(oe,2),fe=me[0],de=me[1],he=(0,pc.useContext)(ma),ye=!!v,we=function(){ne(!1),de(null)},le=(0,j0.default)(a,x,S,T({},"".concat(a,"-error"),Z==="error")),ae=(0,pc.useMemo)(function(){var Ie={};return Fm.forEach(function(Oe){t[Oe]!==void 0&&(Ie[Oe]=t[Oe])}),Ie},Fm.map(function(Ie){return t[Ie]})),Re=(0,pc.useMemo)(function(){return P(P({},ae),{},{src:q})},[q,ae]),Ae=lR(ye,Re),je=function(Oe){var Se=r3(Oe.target),Ve=Se.left,He=Se.top;he?he.onPreview(Ae,q,Ve,He):(de({x:Ve,y:He}),ne(!0)),g?.(Oe)};return Za.createElement(Za.Fragment,null,Za.createElement("div",J({},w,{className:le,onClick:ye?je:g,style:P({width:f,height:d},b)}),Za.createElement("img",J({},ae,{className:(0,j0.default)("".concat(a,"-img"),T({},"".concat(a,"-img-placeholder"),c===!0),y),style:P({height:d},p),ref:Q},ie,{width:f,height:d,onError:m})),Z==="loading"&&Za.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),$&&ye&&Za.createElement("div",{className:(0,j0.default)("".concat(a,"-mask"),D),style:{display:p?.display==="none"?"none":void 0}},$)),!he&&ye&&Za.createElement(B0,J({"aria-hidden":!Y,visible:Y,prefixCls:l,onClose:we,mousePosition:fe,src:q,alt:o,imageInfo:{width:f,height:d},fallback:u,getContainer:L,icons:H,movable:F,scaleStep:z,minScale:B,maxScale:U,rootClassName:S,imageRender:V,imgCommonProps:ae,toolbarRender:M},G)))};d3.PreviewGroup=u3;var m3=d3;var W0=m3;var Yo=E(I());var V0=E(I());var KG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},p3=KG;var XG=function(t,r){return V0.createElement(mt,J({},t,{ref:r,icon:p3}))},YG=V0.forwardRef(XG),g3=YG;var H0=E(I());var QG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},h3=QG;var ZG=function(t,r){return H0.createElement(mt,J({},t,{ref:r,icon:h3}))},JG=H0.forwardRef(ZG),v3=JG;var U0=E(I());var eq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},y3=eq;var tq=function(t,r){return U0.createElement(mt,J({},t,{ref:r,icon:y3}))},rq=U0.forwardRef(tq),cR=rq;var G0=E(I());var oq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},x3=oq;var nq=function(t,r){return G0.createElement(mt,J({},t,{ref:r,icon:x3}))},iq=G0.forwardRef(nq),S3=iq;var q0=E(I());var aq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},b3=aq;var sq=function(t,r){return q0.createElement(mt,J({},t,{ref:r,icon:b3}))},lq=q0.forwardRef(sq),C3=lq;var w3=E(Ee());var uR=e=>({position:e||"absolute",inset:0}),cq=e=>{let{iconCls:t,motionDurationSlow:r,paddingXXS:o,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new nt("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ii),{padding:`0 ${te(o)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}})}},uq=e=>{let{previewCls:t,modalMaskBg:r,paddingSM:o,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,d=new nt(r).setA(.1),p=d.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:!0,value:n},display:"flex",color:f,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${te(a)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},fq=e=>{let{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:o,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new nt(t).setA(.1),l=s.clone().setA(.2);return{[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},dq=e=>{let{motionEaseOut:t,previewCls:r,motionDurationSlow:o,componentCls:n}=e;return[{[`${n}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},uR()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},uR()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[uq(e),fq(e)]}]},mq=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},cq(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},uR())}}},pq=e=>{let{previewCls:t}=e;return{[`${t}-root`]:Kl(e,"zoom"),"&":ql(e,!0)}},gq=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new nt(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new nt(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new nt(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),K0=_t("Image",e=>{let t=`${e.componentCls}-preview`,r=tt(e,{previewCls:t,modalMaskBg:new nt("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[mq(r),dq(r),N1(tt(r,{componentCls:t})),pq(r)]},gq);var hq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},fR={rotateLeft:Yo.createElement(g3,null),rotateRight:Yo.createElement(v3,null),zoomIn:Yo.createElement(S3,null),zoomOut:Yo.createElement(C3,null),close:Yo.createElement(Tu,null),left:Yo.createElement(jk,null),right:Yo.createElement($D,null),flipX:Yo.createElement(cR,null),flipY:Yo.createElement(cR,{rotate:90})},vq=e=>{var{previewPrefixCls:t,preview:r}=e,o=hq(e,["previewPrefixCls","preview"]);let{getPrefixCls:n}=Yo.useContext(it),i=n("image",t),a=`${i}-preview`,s=n(),l=Mo(i),[c,u,f]=K0(i,l),[d]=js("ImagePreview",typeof r=="object"?r.zIndex:void 0),p=Yo.useMemo(()=>{var h;if(r===!1)return r;let v=typeof r=="object"?r:{},y=(0,w3.default)(u,f,l,(h=v.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},v),{transitionName:ta(s,"zoom",v.transitionName),maskTransitionName:ta(s,"fade",v.maskTransitionName),rootClassName:y,zIndex:d})},[r]);return c(Yo.createElement(W0.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:fR},o)))},E3=vq;var R3=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},O3=e=>{let{prefixCls:t,preview:r,className:o,rootClassName:n,style:i}=e,a=R3(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:u,preview:f}=$o("image"),[d]=Ti("Image"),p=s("image",t),h=s(),v=Mo(p),[y,g,m]=K0(p,v),x=(0,X0.default)(n,g,m,v),b=(0,X0.default)(o,g,c),[S]=js("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=hf.useMemo(()=>{if(r===!1)return r;let R=typeof r=="object"?r:{},{getContainer:_,closeIcon:O,rootClassName:N}=R,k=R3(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:hf.createElement("div",{className:`${p}-mask-info`},hf.createElement(df,null),d?.preview),icons:fR},k),{rootClassName:(0,X0.default)(x,N),getContainer:_??l,transitionName:ta(h,"zoom",R.transitionName),maskTransitionName:ta(h,"fade",R.maskTransitionName),zIndex:S,closeIcon:O??f?.closeIcon})},[r,d,f?.closeIcon]),C=Object.assign(Object.assign({},u),i);return y(hf.createElement(W0,Object.assign({prefixCls:p,preview:w,rootClassName:x,className:b,style:C},a)))};O3.PreviewGroup=E3;var dR=O3;var mR=E(I()),zm=E(I()),_3=E(Ee());var yq=e=>{let{getPrefixCls:t,direction:r}=(0,zm.useContext)(it),{prefixCls:o,className:n}=e,i=t("input-group",o),a=t("input"),[s,l,c]=v0(a),u=(0,_3.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,n),f=(0,zm.useContext)(uo),d=(0,zm.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(mR.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},mR.createElement(uo.Provider,{value:d},e.children)))},P3=yq;var lr=E(I()),I3=E(Ee());var xq=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-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}}}},T3=_t(["Input","OTP"],e=>{let t=tt(e,qa(e));return[xq(t)]},Ka);var il=E(I());var Sq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},bq=il.forwardRef((e,t)=>{let{value:r,onChange:o,onActiveChange:n,index:i,mask:a}=e,s=Sq(e,["value","onChange","onActiveChange","index","mask"]),l=r&&typeof a=="string"?a:r,c=h=>{o(i,h.target.value)},u=il.useRef(null);il.useImperativeHandle(t,()=>u.current);let f=()=>{ct(()=>{var h;let v=(h=u.current)===null||h===void 0?void 0:h.input;document.activeElement===v&&v&&v.select()})};return il.createElement(ol,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h=>{let{key:v,ctrlKey:y,metaKey:g}=h;v==="ArrowLeft"?n(i-1):v==="ArrowRight"?n(i+1):v==="z"&&(y||g)&&h.preventDefault(),f()},onKeyUp:h=>{h.key==="Backspace"&&!r&&n(i-1),f()},onMouseDown:f,onMouseUp:f}))}),N3=bq;var Cq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function Y0(e){return(e||"").split("")}var wq=e=>{let{index:t,prefixCls:r,separator:o}=e,n=typeof o=="function"?o(t):o;return n?lr.createElement("span",{className:`${r}-separator`},n):null},Eq=lr.forwardRef((e,t)=>{let{prefixCls:r,length:o=6,size:n,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:p,mask:h,type:v,onInput:y,inputMode:g}=e,m=Cq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=lr.useContext(it),S=x("otp",r),w=Do(m,{aria:!0,data:!0,attr:!0}),[C,R,_]=T3(S),O=cn(M=>n??M),N=lr.useContext(uo),k=aa(N.status,d),A=lr.useMemo(()=>Object.assign(Object.assign({},N),{status:k,hasFeedback:!1,feedbackIcon:null}),[N,k]),W=lr.useRef(null),L=lr.useRef({});lr.useImperativeHandle(t,()=>({focus:()=>{var M;(M=L.current[0])===null||M===void 0||M.focus()},blur:()=>{var M;for(let G=0;G<o;G+=1)(M=L.current[G])===null||M===void 0||M.blur()},nativeElement:W.current}));let $=M=>l?l(M):M,[D,F]=lr.useState(()=>Y0($(i||"")));lr.useEffect(()=>{a!==void 0&&F(Y0(a))},[a]);let H=Et(M=>{F(M),y&&y(M),s&&M.length===o&&M.every(G=>G)&&M.some((G,q)=>D[q]!==G)&&s(M.join(""))}),z=Et((M,G)=>{let q=se(D);for(let X=0;X<M;X+=1)q[X]||(q[X]="");G.length<=1?q[M]=G:q=q.slice(0,M).concat(Y0(G)),q=q.slice(0,o);for(let X=q.length-1;X>=0&&!q[X];X-=1)q.pop();let ee=$(q.map(X=>X||" ").join(""));return q=Y0(ee).map((X,Y)=>X===" "&&!q[Y]?q[Y]:X),q}),B=(M,G)=>{var q;let ee=z(M,G),X=Math.min(M+G.length,o-1);X!==M&&ee[M]!==void 0&&((q=L.current[X])===null||q===void 0||q.focus()),H(ee)},U=M=>{var G;(G=L.current[M])===null||G===void 0||G.focus()},V={variant:u,disabled:f,status:k,mask:h,type:v,inputMode:g};return C(lr.createElement("div",Object.assign({},w,{ref:W,className:(0,I3.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},_,R)}),lr.createElement(uo.Provider,{value:A},Array.from({length:o}).map((M,G)=>{let q=`otp-${G}`,ee=D[G]||"";return lr.createElement(lr.Fragment,{key:q},lr.createElement(N3,Object.assign({ref:X=>{L.current[G]=X},index:G,size:O,htmlSize:1,className:`${S}-input`,onChange:B,value:ee,onActiveChange:U,autoFocus:G===0&&p},V)),G<o-1&&lr.createElement(wq,{separator:c,index:G,prefixCls:S}))}))))}),$3=Eq;var Lo=E(I()),Z0=E(I());var Q0=E(I());var Rq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},D3=Rq;var Oq=function(t,r){return Q0.createElement(mt,J({},t,{ref:r,icon:D3}))},_q=Q0.forwardRef(Oq),M3=_q;var A3=E(Ee());var Pq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Tq=e=>e?Lo.createElement(df,null):Lo.createElement(M3,null),Nq={click:"onClick",hover:"onMouseOver"},Iq=Lo.forwardRef((e,t)=>{let{disabled:r,action:o="click",visibilityToggle:n=!0,iconRender:i=Tq}=e,a=Lo.useContext(Hr),s=r??a,l=typeof n=="object"&&n.visible!==void 0,[c,u]=(0,Z0.useState)(()=>l?n.visible:!1),f=(0,Z0.useRef)(null);Lo.useEffect(()=>{l&&u(n.visible)},[l,n]);let d=$m(f),p=()=>{var O;if(s)return;c&&d();let N=!c;u(N),typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,N))},h=O=>{let N=Nq[o]||"",k=i(c),A={[N]:p,className:`${O}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return Lo.cloneElement(Lo.isValidElement(k)?k:Lo.createElement("span",null,k),A)},{className:v,prefixCls:y,inputPrefixCls:g,size:m}=e,x=Pq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=Lo.useContext(it),S=b("input",g),w=b("input-password",y),C=n&&h(w),R=(0,A3.default)(w,v,{[`${w}-${m}`]:!!m}),_=Object.assign(Object.assign({},Ur(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return m&&(_.size=m),Lo.createElement(ol,Object.assign({ref:Ar(t,f)},_))}),L3=Iq;var ki=E(I());var k3=E(Ee());var $q=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Dq=ki.forwardRef((e,t)=>{let{prefixCls:r,inputPrefixCls:o,className:n,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:p,onCompositionEnd:h}=e,v=$q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:g}=ki.useContext(it),m=ki.useRef(!1),x=y("input-search",r),b=y("input",o),{compactSize:S}=Qn(x,g),w=cn(B=>{var U;return(U=i??S)!==null&&U!==void 0?U:B}),C=ki.useRef(null),R=B=>{B?.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),d?.(B)},_=B=>{var U;document.activeElement===((U=C.current)===null||U===void 0?void 0:U.input)&&B.preventDefault()},O=B=>{var U,V;f&&f((V=(U=C.current)===null||U===void 0?void 0:U.input)===null||V===void 0?void 0:V.value,B,{source:"input"})},N=B=>{m.current||c||O(B)},k=typeof s=="boolean"?ki.createElement(r0,null):null,A=`${x}-button`,W,L=s||{},$=L.type&&L.type.__ANT_BUTTON===!0;$||L.type==="button"?W=Yn(L,Object.assign({onMouseDown:_,onClick:B=>{var U,V;(V=(U=L?.props)===null||U===void 0?void 0:U.onClick)===null||V===void 0||V.call(U,B),O(B)},key:"enterButton"},$?{className:A,size:w}:{})):W=ki.createElement(sm,{className:A,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:_,onClick:O,loading:c,icon:k},s),l&&(W=[W,Yn(l,{key:"addonAfter"})]);let D=(0,k3.default)(x,{[`${x}-rtl`]:g==="rtl",[`${x}-${w}`]:!!w,[`${x}-with-button`]:!!s},n),F=Object.assign(Object.assign({},v),{className:D,prefixCls:b,type:"search"}),H=B=>{m.current=!0,p?.(B)},z=B=>{m.current=!1,h?.(B)};return ki.createElement(ol,Object.assign({ref:Ar(C,t),onPressEnter:N},F,{size:w,onCompositionStart:H,onCompositionEnd:z,addonAfter:W,suffix:a,onChange:R,disabled:u}))}),F3=Dq;var pa=E(I()),V3=E(I()),jm=E(Ee());var Bm=E(Ee());var Zr=E(I());var z3=E(Ee());var wo=E(I());var Mq=`
|
|
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;
|
|
`,Aq=["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"],pR={},Dn;function Lq(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&&pR[r])return pR[r];var o=window.getComputedStyle(e),n=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s=Aq.map(function(c){return"".concat(c,":").concat(o.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:n};return t&&r&&(pR[r]=l),l}function gR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Dn||(Dn=document.createElement("textarea"),Dn.setAttribute("tab-index","-1"),Dn.setAttribute("aria-hidden","true"),Dn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Dn)),e.getAttribute("wrap")?Dn.setAttribute("wrap",e.getAttribute("wrap")):Dn.removeAttribute("wrap");var n=Lq(e,t),i=n.paddingSize,a=n.borderSize,s=n.boxSizing,l=n.sizingStyle;Dn.setAttribute("style","".concat(l,";").concat(Mq)),Dn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Dn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||o!==null){Dn.value=" ";var p=Dn.scrollHeight-i;r!==null&&(c=p*r,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),o!==null&&(u=p*o,s==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var kq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hR=0,vR=1,yR=2,Fq=wo.forwardRef(function(e,t){var r=e,o=r.prefixCls,n=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,d=r.onInternalAutoSize,p=Me(r,kq),h=zt(n,{value:i,postState:function(G){return G??""}}),v=j(h,2),y=v[0],g=v[1],m=function(G){g(G.target.value),f?.(G)},x=wo.useRef();wo.useImperativeHandle(t,function(){return{textArea:x.current}});var b=wo.useMemo(function(){return a&&ue(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=j(b,2),w=S[0],C=S[1],R=!!a,_=function(){try{if(document.activeElement===x.current){var G=x.current,q=G.selectionStart,ee=G.selectionEnd,X=G.scrollTop;x.current.setSelectionRange(q,ee),x.current.scrollTop=X}}catch{}},O=wo.useState(yR),N=j(O,2),k=N[0],A=N[1],W=wo.useState(),L=j(W,2),$=L[0],D=L[1],F=function(){A(hR)};vt(function(){R&&F()},[i,w,C,R]),vt(function(){if(k===hR)A(vR);else if(k===vR){var M=gR(x.current,!1,w,C);A(yR),D(M)}else _()},[k]);var H=wo.useRef(),z=function(){ct.cancel(H.current)},B=function(G){k===yR&&(s?.(G),a&&(z(),H.current=ct(function(){F()})))};wo.useEffect(function(){return z},[]);var U=R?$:null,V=P(P({},c),U);return(k===hR||k===vR)&&(V.overflowY="hidden",V.overflowX="hidden"),wo.createElement(an,{onResize:B,disabled:!(a||s)},wo.createElement("textarea",J({},p,{ref:x,style:V,className:(0,z3.default)(o,l,T({},"".concat(o,"-disabled"),u)),disabled:u,value:y,onChange:m})))}),xR=Fq;var zq=["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"],Bq=Zr.default.forwardRef(function(e,t){var r,o=e.defaultValue,n=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,v=e.showCount,y=e.count,g=e.className,m=e.style,x=e.disabled,b=e.hidden,S=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,_=e.onPressEnter,O=e.readOnly,N=e.autoSize,k=e.onKeyDown,A=Me(e,zq),W=zt(o,{value:n,defaultValue:o}),L=j(W,2),$=L[0],D=L[1],F=$==null?"":String($),H=Zr.default.useState(!1),z=j(H,2),B=z[0],U=z[1],V=Zr.default.useRef(!1),M=Zr.default.useState(null),G=j(M,2),q=G[0],ee=G[1],X=(0,Zr.useRef)(null),Y=(0,Zr.useRef)(null),ne=function(){var ce;return(ce=Y.current)===null||ce===void 0?void 0:ce.textArea},re=function(){ne().focus()};(0,Zr.useImperativeHandle)(t,function(){var $e;return{resizableTextArea:Y.current,focus:re,blur:function(){ne().blur()},nativeElement:(($e=X.current)===null||$e===void 0?void 0:$e.nativeElement)||ne()}}),(0,Zr.useEffect)(function(){U(function($e){return!x&&$e})},[x]);var K=Zr.default.useState(null),Q=j(K,2),ie=Q[0],Z=Q[1];Zr.default.useEffect(function(){if(ie){var $e;($e=ne()).setSelectionRange.apply($e,se(ie))}},[ie]);var oe=Im(y,v),me=(r=oe.max)!==null&&r!==void 0?r:c,fe=Number(me)>0,de=oe.strategy(F),he=!!me&&de>me,ye=function(ce,pe){var ze=pe;!V.current&&oe.exceedFormatter&&oe.max&&oe.strategy(pe)>oe.max&&(ze=oe.exceedFormatter(pe,{max:oe.max}),pe!==ze&&Z([ne().selectionStart||0,ne().selectionEnd||0])),D(ze),nf(ce.currentTarget,ce,s,ze)},we=function(ce){V.current=!0,u?.(ce)},le=function(ce){V.current=!1,ye(ce,ce.currentTarget.value),f?.(ce)},ae=function(ce){ye(ce,ce.target.value)},Re=function(ce){ce.key==="Enter"&&_&&_(ce),k?.(ce)},Ae=function(ce){U(!0),i?.(ce)},je=function(ce){U(!1),a?.(ce)},Ie=function(ce){D(""),re(),nf(ne(),ce,s)},Oe=d,Se;oe.show&&(oe.showFormatter?Se=oe.showFormatter({value:F,count:de,maxLength:me}):Se="".concat(de).concat(fe?" / ".concat(me):""),Oe=Zr.default.createElement(Zr.default.Fragment,null,Oe,Zr.default.createElement("span",{className:(0,Bm.default)("".concat(h,"-data-count"),S?.count),style:w?.count},Se)));var Ve=function(ce){var pe;C?.(ce),(pe=ne())!==null&&pe!==void 0&&pe.style.height&&ee(!0)},He=!N&&!v&&!l;return Zr.default.createElement(lc,{ref:X,value:F,allowClear:l,handleReset:Ie,suffix:Oe,prefixCls:h,classNames:P(P({},S),{},{affixWrapper:(0,Bm.default)(S?.affixWrapper,T(T({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:B,className:(0,Bm.default)(g,he&&"".concat(h,"-out-of-range")),style:P(P({},m),q&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:b,readOnly:O,onClear:R},Zr.default.createElement(xR,J({},A,{autoSize:N,maxLength:c,onKeyDown:Re,onChange:ae,onFocus:Ae,onBlur:je,onCompositionStart:we,onCompositionEnd:le,className:(0,Bm.default)(S?.textarea),style:P(P({},w?.textarea),{},{resize:m?.resize}),disabled:x,prefixCls:h,onResize:Ve,ref:Y,readOnly:O})))}),B3=Bq;var j3=B3;var jq=e=>{let{componentCls:t,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
&-allow-clear > ${t},
|
|
&-affix-wrapper${o}-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},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},W3=_t(["Input","TextArea"],e=>{let t=tt(e,qa(e));return[jq(t)]},Ka,{resetFont:!1});var Wq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Vq=(0,V3.forwardRef)((e,t)=>{var r;let{prefixCls:o,bordered:n=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:d,styles:p,variant:h}=e,v=Wq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:g,allowClear:m,autoComplete:x,className:b,style:S,classNames:w,styles:C}=$o("textArea"),R=pa.useContext(Hr),_=a??R,{status:O,hasFeedback:N,feedbackIcon:k}=pa.useContext(uo),A=aa(O,s),W=pa.useRef(null);pa.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=W.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:X=>{var Y,ne;sc((ne=(Y=W.current)===null||Y===void 0?void 0:Y.resizableTextArea)===null||ne===void 0?void 0:ne.textArea,X)},blur:()=>{var X;return(X=W.current)===null||X===void 0?void 0:X.blur()}}});let L=y("input",o),$=Mo(L),[D,F,H]=h0(L,u),[z]=W3(L,$),{compactSize:B,compactItemClassnames:U}=Qn(L,g),V=cn(ee=>{var X;return(X=i??B)!==null&&X!==void 0?X:ee}),[M,G]=rl("textArea",h,n),q=P0(l??m);return D(z(pa.createElement(j3,Object.assign({autoComplete:x},v,{style:Object.assign(Object.assign({},S),d),styles:Object.assign(Object.assign({},C),p),disabled:_,allowClear:q,className:(0,jm.default)(H,$,f,u,U,b),classNames:Object.assign(Object.assign(Object.assign({},c),w),{textarea:(0,jm.default)({[`${L}-sm`]:V==="small",[`${L}-lg`]:V==="large"},F,c?.textarea,w.textarea),variant:(0,jm.default)({[`${L}-${M}`]:G},ia(L,A)),affixWrapper:(0,jm.default)(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:g==="rtl",[`${L}-affix-wrapper-sm`]:V==="small",[`${L}-affix-wrapper-lg`]:V==="large",[`${L}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:L,suffix:N&&pa.createElement("span",{className:`${L}-textarea-suffix`},k),ref:W}))))}),H3=Vq;var vf=ol;vf.Group=P3;vf.Search=F3;vf.TextArea=H3;vf.Password=L3;vf.OTP=$3;var Wm=vf;var Jr=E(I());var RR=E(Ee());var Sf=E(I()),e4=E(Ee());var Hq=E(I()),Uq=E(Ee());var Vm=E(I()),SR={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},bR=function(){var t=(0,Vm.useRef)([]),r=(0,Vm.useRef)(null);return(0,Vm.useEffect)(function(){var o=Date.now(),n=!1;t.current.forEach(function(i){if(i){n=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(a.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current};var Hm=E(I()),Q3=E(Ee());var J0=E(I());var U3=0,Gq=Xt();function qq(){var e;return Gq?(e=U3,U3+=1):e="TEST_OR_SSR",e}var G3=function(e){var t=J0.useState(),r=j(t,2),o=r[0],n=r[1];return J0.useEffect(function(){n("rc_progress_".concat(qq()))},[]),e||o};var li=E(I()),q3=function(t){var r=t.bg,o=t.children;return li.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function K3(e,t){return Object.keys(e).map(function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)})}var Kq=li.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=o&&ue(o)==="object",p=d?"#FFF":void 0,h=u/2,v=li.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var y="".concat(n,"-conic"),g=f?"".concat(180+f/2,"deg"):"0deg",m=K3(o,(360-f)/360),x=K3(o,1),b="conic-gradient(from ".concat(g,", ").concat(m.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return li.createElement(li.Fragment,null,li.createElement("mask",{id:y},v),li.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},li.createElement(q3,{bg:S},li.createElement(q3,{bg:b}))))}),X3=Kq;var yf=100,ex=function(t,r,o,n,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=o/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-n)/100*r;c==="round"&&n!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=yf/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+d+p,"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 Xq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Y3(e){var t=e??[];return Array.isArray(t)?t:[t]}var Yq=function(t){var r=P(P({},SR),t),o=r.id,n=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,d=r.strokeLinecap,p=r.style,h=r.className,v=r.strokeColor,y=r.percent,g=Me(r,Xq),m=yf/2,x=G3(o),b="".concat(x,"-gradient"),S=m-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),_=ue(i)==="object"?i:{count:i,gap:2},O=_.count,N=_.gap,k=Y3(y),A=Y3(v),W=A.find(function(B){return B&&ue(B)==="object"}),L=W&&ue(W)==="object",$=L?"butt":d,D=ex(w,R,0,100,C,c,u,f,$,a),F=bR(),H=function(){var U=0;return k.map(function(V,M){var G=A[M]||A[A.length-1],q=ex(w,R,U,V,C,c,u,G,$,a);return U+=V,Hm.createElement(X3,{key:M,color:G,ptg:V,radius:S,prefixCls:n,gradientId:b,style:q,strokeLinecap:$,strokeWidth:a,gapDegree:c,ref:function(X){F[M]=X},size:yf})}).reverse()},z=function(){var U=Math.round(O*(k[0]/100)),V=100/O,M=0;return new Array(O).fill(null).map(function(G,q){var ee=q<=U-1?A[0]:f,X=ee&&ue(ee)==="object"?"url(#".concat(b,")"):void 0,Y=ex(w,R,M,V,C,c,u,ee,"butt",a,N);return M+=(R-Y.strokeDashoffset+N)*100/R,Hm.createElement("circle",{key:q,className:"".concat(n,"-circle-path"),r:S,cx:m,cy:m,stroke:X,strokeWidth:a,opacity:1,style:Y,ref:function(re){F[q]=re}})})};return Hm.createElement("svg",J({className:(0,Q3.default)("".concat(n,"-circle"),h),viewBox:"0 0 ".concat(yf," ").concat(yf),style:p,id:o,role:"presentation"},g),!O&&Hm.createElement("circle",{className:"".concat(n,"-circle-trail"),r:S,cx:m,cy:m,stroke:f,strokeLinecap:$,strokeWidth:s||a,style:D}),O?z():H())},CR=Yq;function ga(e){return!e||e<0?0:e>100?100:e}function xf(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}var Z3=e=>{let{percent:t,success:r,successPercent:o}=e,n=ga(xf({success:r,successPercent:o}));return[n,ga(ga(t)-n)]},J3=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||Aa.green,r||null]},al=(e,t,r)=>{var o,n,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=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var Qq=3,Zq=e=>Qq/e*100,Jq=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[d,p]=al(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(Zq(d),6));let v={width:d,height:p,fontSize:d*.15+6},y=Sf.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=Z3(e),m=n||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=J3({success:c,strokeColor:e.strokeColor}),S=(0,e4.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Sf.createElement(CR,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:m}),C=d<=20,R=Sf.createElement("div",{className:S,style:v},w,!C&&l);return C?Sf.createElement(Ga,{title:l},R):R},t4=Jq;var bf=E(I());var n4=E(Ee());var Um="--progress-line-stroke-color",wR="--progress-percent",r4=e=>{let t=e?"100%":"-100%";return new yt(`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}})},eK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Yt(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(${Um})`]},height:"100%",width:`calc(1 / var(${wR}) * 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 ${te(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:r4(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:r4(!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}}})}},tK=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"}}}},rK=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}}}}}},oK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},nK=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),o4=_t("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=tt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eK(r),tK(r),rK(r),oK(r)]},nK);var iK=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},aK=e=>{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));Number.isNaN(o)||t.push({key:o,value:e[r]})}),t=t.sort((r,o)=>r.key-o.key),t.map(r=>{let{key:o,value:n}=r;return`${n} ${o}%`}).join(", ")},sK=(e,t)=>{let{from:r=Aa.blue,to:o=Aa.blue,direction:n=t==="rtl"?"to left":"to right"}=e,i=iK(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=aK(i),l=`linear-gradient(${n}, ${s})`;return{background:l,[Um]:l}}let a=`linear-gradient(${n}, ${r}, ${o})`;return{background:a,[Um]:a}},lK=e=>{let{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:p}=u,h=a&&typeof a!="string"?sK(a,r):{[Um]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=n??[-1,i||(n==="small"?6:8)],[g,m]=al(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${ga(o)}%`,height:m,borderRadius:v},h),{[wR]:ga(o)/100}),S=xf(e),w={width:`${ga(S)}%`,height:m,borderRadius:v,backgroundColor:f?.strokeColor},C={width:g<0?"100%":g},R=bf.createElement("div",{className:`${t}-inner`,style:x},bf.createElement("div",{className:(0,n4.default)(`${t}-bg`,`${t}-bg-${p}`),style:b},p==="inner"&&l),S!==void 0&&bf.createElement("div",{className:`${t}-success-bg`,style:w})),_=p==="outer"&&d==="start",O=p==="outer"&&d==="end";return p==="outer"&&d==="center"?bf.createElement("div",{className:`${t}-layout-bottom`},R,l):bf.createElement("div",{className:`${t}-outer`,style:C},_&&l,R,O&&l)},i4=lK;var ER=E(I()),a4=E(Ee());var cK=e=>{let{size:t,steps:r,rounding:o=Math.round,percent:n=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=o(r*(n/100)),d=t??[t==="small"?2:14,i],[p,h]=al(d,"step",{steps:r,strokeWidth:i}),v=p/r,y=Array.from({length:r});for(let g=0;g<r;g++){let m=Array.isArray(a)?a[g]:a;y[g]=ER.createElement("div",{key:g,className:(0,a4.default)(`${l}-steps-item`,{[`${l}-steps-item-active`]:g<=u-1}),style:{backgroundColor:g<=u-1?m:s,width:v,height:h}})}return ER.createElement("div",{className:`${l}-steps-outer`},y,c)},s4=cK;var uK=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var fK=["normal","exception","active","success"],dK=Jr.forwardRef((e,t)=>{let{prefixCls:r,className:o,rootClassName:n,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:p,percentPosition:h={}}=e,v=uK(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,m=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=Jr.useMemo(()=>{if(m){let H=typeof m=="string"?m:Object.values(m)[0];return new nt(H).isLight()}return!1},[a]),S=Jr.useMemo(()=>{var H,z;let B=xf(e);return parseInt(B!==void 0?(H=B??0)===null||H===void 0?void 0:H.toString():(z=s??0)===null||z===void 0?void 0:z.toString(),10)},[s,e.success,e.successPercent]),w=Jr.useMemo(()=>!fK.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:_}=Jr.useContext(it),O=C("progress",r),[N,k,A]=o4(O),W=u==="line",L=W&&!i,$=Jr.useMemo(()=>{if(!c)return null;let H=xf(e),z,B=d||(V=>`${V}%`),U=W&&b&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?z=B(ga(s),ga(H)):w==="exception"?z=W?Jr.createElement(Pu,null):Jr.createElement(Tu,null):w==="success"&&(z=W?Jr.createElement(H$,null):Jr.createElement(Zy,null)),Jr.createElement("span",{className:(0,RR.default)(`${O}-text`,{[`${O}-text-bright`]:U,[`${O}-text-${y}`]:L,[`${O}-text-${g}`]:L}),title:typeof z=="string"?z:void 0},z)},[c,s,S,w,u,O,d]),D;u==="line"?D=i?Jr.createElement(s4,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),$):Jr.createElement(i4,Object.assign({},e,{strokeColor:m,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),$):(u==="circle"||u==="dashboard")&&(D=Jr.createElement(t4,Object.assign({},e,{strokeColor:m,prefixCls:O,progressStatus:w}),$));let F=(0,RR.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&al(l,"circle")[0]<=20,[`${O}-line`]:L,[`${O}-line-align-${y}`]:L,[`${O}-line-position-${g}`]:L,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},_?.className,o,n,k,A);return N(Jr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_?.style),p),className:F,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Ur(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}),l4=dK;var c4=l4;var tx=E(I());var mK={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"},u4=mK;var pK=function(t,r){return tx.createElement(mt,J({},t,{ref:r,icon:u4}))},gK=tx.forwardRef(pK),f4=gK;var rx=E(I());var hK={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"},d4=hK;var vK=function(t,r){return rx.createElement(mt,J({},t,{ref:r,icon:d4}))},yK=rx.forwardRef(vK),m4=yK;var ox=E(I());var xK={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"},p4=xK;var SK=function(t,r){return ox.createElement(mt,J({},t,{ref:r,icon:p4}))},bK=ox.forwardRef(SK),g4=bK;var nx=E(I());var CK={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"},h4=CK;var wK=function(t,r){return nx.createElement(mt,J({},t,{ref:r,icon:h4}))},EK=nx.forwardRef(wK),v4=EK;var ix=E(I());var RK={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"},y4=RK;var OK=function(t,r){return ix.createElement(mt,J({},t,{ref:r,icon:y4}))},_K=ix.forwardRef(OK),x4=_K;var ax=E(I());var PK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},S4=PK;var TK=function(t,r){return ax.createElement(mt,J({},t,{ref:r,icon:S4}))},NK=ax.forwardRef(TK),OR=NK;var dx=E(I());var hr=E(I()),IR=E(Ci()),ux=E(Ee());var lx=E(I());var w4=E(Ee());var qm=E(I());var sx=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",i=n.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=o.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):n===s?!0:/^\w+$/.test(s)?(Vt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function IK(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(r);return o.status=t.status,o.method=e.method,o.url=e.action,o}function b4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function _R(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(n){var i=e.data[n];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(n,"[]"),a)});return}r.append(n,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(IK(e,t),b4(t)):e.onSuccess(b4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(n){o[n]!==null&&t.setRequestHeader(n,o[n])}),t.send(r),{abort:function(){t.abort()}}}var $K=function(){var e=so(At().mark(function t(r,o){var n,i,a,s,l,c,u,f;return At().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=so(At().mark(function v(y){return At().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",new Promise(function(x){y.file(function(b){o(b)?(y.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),x(b)):x(null)})}));case 1:case"end":return m.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=so(At().mark(function v(y){var g,m,x,b,S;return At().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=y.createReader(),m=[];case 2:return C.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,b=x.length,b){C.next=9;break}return C.abrupt("break",12);case 9:for(S=0;S<b;S++)m.push(x[S]);C.next=2;break;case 12:return C.abrupt("return",m);case 13:case"end":return C.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},n=[],i=[],r.forEach(function(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=so(At().mark(function v(y,g){var m,x;return At().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y){S.next=2;break}return S.abrupt("return");case 2:if(y.path=g||"",!y.isFile){S.next=10;break}return S.next=6,l(y);case 6:m=S.sent,m&&n.push(m),S.next=15;break;case 10:if(!y.isDirectory){S.next=15;break}return S.next=13,a(y);case 13:x=S.sent,i.push.apply(i,se(x));case 15:case"end":return S.stop()}},v)}));return function(y,g){return h.apply(this,arguments)}}(),f=0;case 9:if(!(f<i.length)){p.next=15;break}return p.next=12,u(i[f]);case 12:f++,p.next=9;break;case 15:return p.abrupt("return",n);case 16:case"end":return p.stop()}},t)}));return function(r,o){return e.apply(this,arguments)}}(),C4=$K;var DK=+new Date,MK=0;function Gm(){return"rc-upload-".concat(DK,"-").concat(++MK)}var AK=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],LK=function(e){_r(r,e);var t=Pr(r);function r(){var o;st(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=t.call.apply(t,[this].concat(i)),T(Je(o),"state",{uid:Gm()}),T(Je(o),"reqs",{}),T(Je(o),"fileInput",void 0),T(Je(o),"_isMounted",void 0),T(Je(o),"onChange",function(s){var l=o.props,c=l.accept,u=l.directory,f=s.target.files,d=se(f).filter(function(p){return!u||sx(p,c)});o.uploadFiles(d),o.reset()}),T(Je(o),"onClick",function(s){var l=o.fileInput;if(l){var c=s.target,u=o.props.onClick;if(c&&c.tagName==="BUTTON"){var f=l.parentNode;f.focus(),c.blur()}l.click(),u&&u(s)}}),T(Je(o),"onKeyDown",function(s){s.key==="Enter"&&o.onClick(s)}),T(Je(o),"onFileDrop",function(){var s=so(At().mark(function l(c){var u,f,d;return At().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=o.props.multiple,c.preventDefault(),c.type!=="dragover"){h.next=4;break}return h.abrupt("return");case 4:if(!o.props.directory){h.next=11;break}return h.next=7,C4(Array.prototype.slice.call(c.dataTransfer.items),function(v){return sx(v,o.props.accept)});case 7:f=h.sent,o.uploadFiles(f),h.next=14;break;case 11:d=se(c.dataTransfer.files).filter(function(v){return sx(v,o.props.accept)}),u===!1&&(d=d.slice(0,1)),o.uploadFiles(d);case 14:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),T(Je(o),"uploadFiles",function(s){var l=se(s),c=l.map(function(u){return u.uid=Gm(),o.processFile(u,l)});Promise.all(c).then(function(u){var f=o.props.onBatchStart;f?.(u.map(function(d){var p=d.origin,h=d.parsedFile;return{file:p,parsedFile:h}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){o.post(d)})})}),T(Je(o),"processFile",function(){var s=so(At().mark(function l(c,u){var f,d,p,h,v,y,g,m,x;return At().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=o.props.beforeUpload,d=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:d=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),d=!1;case 12:if(d!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=o.props.action,typeof p!="function"){S.next=21;break}return S.next=18,p(c);case 18:h=S.sent,S.next=22;break;case 21:h=p;case 22:if(v=o.props.data,typeof v!="function"){S.next=29;break}return S.next=26,v(c);case 26:y=S.sent,S.next=30;break;case 29:y=v;case 30:return g=(ue(d)==="object"||typeof d=="string")&&d?d:c,g instanceof File?m=g:m=new File([g],c.name,{type:c.type}),x=m,x.uid=c.uid,S.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),T(Je(o),"saveFileInput",function(s){o.fileInput=s}),o}return lt(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(n){var i=this,a=n.data,s=n.origin,l=n.action,c=n.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,d=u.customRequest,p=u.name,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,m=d||_R,x={action:l,filename:p,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(S){var w=i.props.onProgress;w?.(S,c)},onSuccess:function(S,w){var C=i.props.onSuccess;C?.(S,c,w),delete i.reqs[g]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=m(x)}}},{key:"reset",value:function(){this.setState({uid:Gm()})}},{key:"abort",value:function(n){var i=this.reqs;if(n){var a=n.uid?n.uid:n;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 n=this.props,i=n.component,a=n.prefixCls,s=n.className,l=n.classNames,c=l===void 0?{}:l,u=n.disabled,f=n.id,d=n.name,p=n.style,h=n.styles,v=h===void 0?{}:h,y=n.multiple,g=n.accept,m=n.capture,x=n.children,b=n.directory,S=n.openFileDialogOnClick,w=n.onMouseEnter,C=n.onMouseLeave,R=n.hasControlInside,_=Me(n,AK),O=(0,w4.default)(T(T(T({},a,!0),"".concat(a,"-disabled"),u),s,s)),N=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:R?void 0:"0"};return qm.default.createElement(i,J({},k,{className:O,role:R?void 0:"button",style:p}),qm.default.createElement("input",J({},Do(_,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(W){return W.stopPropagation()},key:this.state.uid,style:P({display:"none"},v.input),className:c.input,accept:g},N,{multiple:y,onChange:this.onChange},m!=null?{capture:m}:{})),x)}}]),r}(qm.Component),E4=LK;function PR(){}var R4=function(e){_r(r,e);var t=Pr(r);function r(){var o;st(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=t.call.apply(t,[this].concat(i)),T(Je(o),"uploader",void 0),T(Je(o),"saveUploader",function(s){o.uploader=s}),o}return lt(r,[{key:"abort",value:function(n){this.uploader.abort(n)}},{key:"render",value:function(){return lx.default.createElement(E4,J({},this.props,{ref:this.saveUploader}))}}]),r}(lx.Component);T(R4,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:PR,onError:PR,onSuccess:PR,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var O4=R4;var TR=O4;var kK=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${te(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:`${te(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 ${te(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}}}}}},_4=kK;var FK=e=>{let{componentCls:t,iconCls:r,fontSize:o,lineHeight:n,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ou()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Ii),{padding:`0 ${te(e.paddingXS)}`,lineHeight:n,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.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,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:'""'}}})}}},P4=FK;var zK=e=>{let{componentCls:t}=e,r=new yt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new yt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:r},[`${n}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:ql(e)},r,o]},T4=zK;var N4=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n,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(o).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ii),{width:o,height:o,lineHeight:te(i(o).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:n,width:`calc(100% - ${te(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(o).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Fs[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Fs.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},I4=e=>{let{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:n,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({},Ou()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${te(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% - ${te(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${te(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:o,margin:`0 ${te(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},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% - ${te(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% - ${te(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var BK=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},$4=BK;var jK=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Yt(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"}})}},WK=e=>({actionsColor:e.colorTextDescription}),D4=_t("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:o,controlHeightLG:n,calc:i}=e,a=tt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(o).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return[jK(a),_4(a),N4(a),I4(a),P4(a),T4(a),$4(a),t1(a)]},WK);var qt=E(I());var NR=E(Ee());function Km(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 Xm(e,t){let r=se(t),o=r.findIndex(n=>{let{uid:i}=n;return i===e.uid});return o===-1?r.push(e):r[o]=e,r}function cx(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(o=>o[r]===e[r])[0]}function M4(e,t){let r=e.uid!==void 0?"uid":"name",o=t.filter(n=>n[r]!==e[r]);return o.length===t.length?null:o}var VK=function(){let t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},A4=e=>e.indexOf("image/")===0,L4=e=>{if(e.type&&!e.thumbUrl)return A4(e.type);let t=e.thumbUrl||e.url||"",r=VK(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)},sl=200;function k4(e){return new Promise(t=>{if(!e.type||!A4(e.type)){t("");return}let r=document.createElement("canvas");r.width=sl,r.height=sl,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${sl}px; height: ${sl}px; z-index: 9999; display: none;`,document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,s=sl,l=sl,c=0,u=0;i>a?(l=a*(sl/i),u=-(l-s)/2):(s=i*(sl/a),c=-(s-l)/2),o.drawImage(n,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.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 n.src=window.URL.createObjectURL(e)})}var Bt=E(I());var ll=E(Ee());var HK=Bt.forwardRef((e,t)=>{let{prefixCls:r,className:o,style:n,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:d,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:v,showDownloadIcon:y,previewIcon:g,removeIcon:m,downloadIcon:x,extra:b,onPreview:S,onDownload:w,onClose:C}=e;var R,_;let{status:O}=s,[N,k]=Bt.useState(O);Bt.useEffect(()=>{O!=="removed"&&k(O)},[O]);let[A,W]=Bt.useState(!1);Bt.useEffect(()=>{let Q=setTimeout(()=>{W(!0)},300);return()=>{clearTimeout(Q)}},[]);let L=u(s),$=Bt.createElement("div",{className:`${r}-icon`},L);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(N==="uploading"||!s.thumbUrl&&!s.url){let Q=(0,ll.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:N!=="uploading"});$=Bt.createElement("div",{className:Q},L)}else{let Q=p?.(s)?Bt.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):L,ie=(0,ll.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});$=Bt.createElement("a",{className:ie,onClick:Z=>S(s,Z),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}let D=(0,ll.default)(`${r}-list-item`,`${r}-list-item-${N}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,H=(typeof v=="function"?v(s):v)?f((typeof m=="function"?m(s):m)||Bt.createElement(f4,null),()=>C(s),r,i.removeFile,!0):null,z=(typeof y=="function"?y(s):y)&&N==="done"?f((typeof x=="function"?x(s):x)||Bt.createElement(m4,null),()=>w(s),r,i.downloadFile):null,B=a!=="picture-card"&&a!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,ll.default)(`${r}-list-item-actions`,{picture:a==="picture"})},z,H),U=typeof b=="function"?b(s):b,V=U&&Bt.createElement("span",{className:`${r}-list-item-extra`},U),M=(0,ll.default)(`${r}-list-item-name`),G=s.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:M,title:s.name},F,{href:s.url,onClick:Q=>S(s,Q)}),s.name,V):Bt.createElement("span",{key:"view",className:M,onClick:Q=>S(s,Q),title:s.name},s.name,V),q=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?Bt.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>S(s,Q),title:i.previewFile},typeof g=="function"?g(s):g||Bt.createElement(df,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&Bt.createElement("span",{className:`${r}-list-item-actions`},q,N==="done"&&z,H),{getPrefixCls:X}=Bt.useContext(it),Y=X(),ne=Bt.createElement("div",{className:D},$,G,B,ee,A&&Bt.createElement(ao,{motionName:`${Y}-fade`,visible:N==="uploading",motionDeadline:2e3},Q=>{let{className:ie}=Q,Z="percent"in s?Bt.createElement(c4,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return Bt.createElement("div",{className:(0,ll.default)(`${r}-list-item-progress`,ie)},Z)})),re=s.response&&typeof s.response=="string"?s.response:((R=s.error)===null||R===void 0?void 0:R.statusText)||((_=s.error)===null||_===void 0?void 0:_.message)||i.uploadError,K=N==="error"?Bt.createElement(Ga,{title:re,getPopupContainer:Q=>Q.parentNode},ne):ne;return Bt.createElement("div",{className:(0,ll.default)(`${r}-list-item-container`,o),style:n,ref:t},d?d(K,s,l,{download:w.bind(null,s),preview:S.bind(null,s),remove:C.bind(null,s)}):K)}),F4=HK;var UK=(e,t)=>{let{listType:r="text",previewFile:o=k4,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=L4,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:p=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:m,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=wE(),[_,O]=qt.useState(!1),N=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(V=>{!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",o?.(V.originFileObj).then(M=>{V.thumbUrl=M||"",R()}))})},[r,f,o]),qt.useEffect(()=>{O(!0)},[]);let k=(V,M)=>{if(n)return M?.preventDefault(),n(V)},A=V=>{typeof i=="function"?i(V):V.url&&window.open(V.url)},W=V=>{a?.(V)},L=V=>{if(l)return l(V,r);let M=V.status==="uploading";if(r.startsWith("picture")){let G=r==="picture"?qt.createElement(Ul,null):s.uploading,q=c?.(V)?qt.createElement(x4,null):qt.createElement(g4,null);return M?G:q}return M?qt.createElement(Ul,null):qt.createElement(v4,null)},$=(V,M,G,q,ee)=>{let X={type:"text",size:"small",title:q,onClick:Y=>{var ne,re;M(),qt.isValidElement(V)&&((re=(ne=V.props).onClick)===null||re===void 0||re.call(ne,Y))},className:`${G}-list-item-action`};return ee&&(X.disabled=C),qt.isValidElement(V)?qt.createElement(sm,Object.assign({},X,{icon:Yn(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}))})):qt.createElement(sm,Object.assign({},X),qt.createElement("span",null,V))};qt.useImperativeHandle(t,()=>({handlePreview:k,handleDownload:A}));let{getPrefixCls:D}=qt.useContext(it),F=D("upload",u),H=D(),z=(0,NR.default)(`${F}-list`,`${F}-list-${r}`),B=qt.useMemo(()=>Ur(iD(H),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[H]),U=Object.assign(Object.assign({},N?{}:B),{motionDeadline:2e3,motionName:`${F}-${N?"animate-inline":"animate"}`,keys:se(f.map(V=>({key:V.uid,file:V}))),motionAppear:_});return qt.createElement("div",{className:z},qt.createElement(Mw,Object.assign({},U,{component:!1}),V=>{let{key:M,file:G,className:q,style:ee}=V;return qt.createElement(F4,{key:M,locale:s,prefixCls:F,className:q,style:ee,file:G,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:p,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:m,iconRender:L,actionIconRender:$,itemRender:w,onPreview:k,onDownload:A,onClose:W})}),b&&qt.createElement(ao,Object.assign({},U,{visible:S,forceRender:!0}),V=>{let{className:M,style:G}=V;return Yn(b,q=>({className:(0,NR.default)(q.className,M),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:M?"none":void 0}),q.style)}))}))},GK=qt.forwardRef(UK),z4=GK;var qK=function(e,t,r,o){function n(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(o.next(u))}catch(f){a(f)}}function l(u){try{c(o.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):n(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})},Cf=`__LIST_IGNORE_${Date.now()}__`,KK=(e,t)=>{let{fileList:r,defaultFileList:o,onRemove:n,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:p,iconRender:h,isImageUrl:v,progress:y,prefixCls:g,className:m,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:_=!1,hasControlInside:O=!0,action:N="",accept:k="",supportServerRender:A=!0,rootClassName:W}=e,L=hr.useContext(Hr),$=d??L,[D,F]=zt(o||[],{value:r,postState:ce=>ce??[]}),[H,z]=hr.useState("drop"),B=hr.useRef(null),U=hr.useRef(null);hr.useMemo(()=>{let ce=Date.now();(r||[]).forEach((pe,ze)=>{!pe.uid&&!Object.isFrozen(pe)&&(pe.uid=`__AUTO__${ce}_${ze}__`)})},[r]);let V=(ce,pe,ze)=>{let Ce=se(pe),Ue=!1;C===1?Ce=Ce.slice(-1):C&&(Ue=Ce.length>C,Ce=Ce.slice(0,C)),(0,IR.flushSync)(()=>{F(Ce)});let Ye={file:ce,fileList:Ce};ze&&(Ye.event=ze),(!Ue||ce.status==="removed"||Ce.some(pt=>pt.uid===ce.uid))&&(0,IR.flushSync)(()=>{c?.(Ye)})},M=(ce,pe)=>qK(void 0,void 0,void 0,function*(){let{beforeUpload:ze,transformFile:Ce}=e,Ue=ce;if(ze){let Ye=yield ze(ce,pe);if(Ye===!1)return!1;if(delete ce[Cf],Ye===Cf)return Object.defineProperty(ce,Cf,{value:!0,configurable:!0}),!1;typeof Ye=="object"&&Ye&&(Ue=Ye)}return Ce&&(Ue=yield Ce(Ue)),Ue}),G=ce=>{let pe=ce.filter(Ue=>!Ue.file[Cf]);if(!pe.length)return;let ze=pe.map(Ue=>Km(Ue.file)),Ce=se(D);ze.forEach(Ue=>{Ce=Xm(Ue,Ce)}),ze.forEach((Ue,Ye)=>{let pt=Ue;if(pe[Ye].parsedFile)Ue.status="uploading";else{let{originFileObj:Tt}=Ue,gt;try{gt=new File([Tt],Tt.name,{type:Tt.type})}catch{gt=new Blob([Tt],{type:Tt.type}),gt.name=Tt.name,gt.lastModifiedDate=new Date,gt.lastModified=new Date().getTime()}gt.uid=Ue.uid,pt=gt}V(pt,Ce)})},q=(ce,pe,ze)=>{try{typeof ce=="string"&&(ce=JSON.parse(ce))}catch{}if(!cx(pe,D))return;let Ce=Km(pe);Ce.status="done",Ce.percent=100,Ce.response=ce,Ce.xhr=ze;let Ue=Xm(Ce,D);V(Ce,Ue)},ee=(ce,pe)=>{if(!cx(pe,D))return;let ze=Km(pe);ze.status="uploading",ze.percent=ce.percent;let Ce=Xm(ze,D);V(ze,Ce,ce)},X=(ce,pe,ze)=>{if(!cx(ze,D))return;let Ce=Km(ze);Ce.error=ce,Ce.response=pe,Ce.status="error";let Ue=Xm(Ce,D);V(Ce,Ue)},Y=ce=>{let pe;Promise.resolve(typeof n=="function"?n(ce):n).then(ze=>{var Ce;if(ze===!1)return;let Ue=M4(ce,D);Ue&&(pe=Object.assign(Object.assign({},ce),{status:"removed"}),D?.forEach(Ye=>{let pt=pe.uid!==void 0?"uid":"name";Ye[pt]===pe[pt]&&!Object.isFrozen(Ye)&&(Ye.status="removed")}),(Ce=B.current)===null||Ce===void 0||Ce.abort(pe),V(pe,Ue))})},ne=ce=>{z(ce.type),ce.type==="drop"&&u?.(ce)};hr.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:q,onProgress:ee,onError:X,fileList:D,upload:B.current,nativeElement:U.current}));let{getPrefixCls:re,direction:K,upload:Q}=hr.useContext(it),ie=re("upload",g),Z=Object.assign(Object.assign({onBatchStart:G,onError:X,onProgress:ee,onSuccess:q},e),{data:R,multiple:_,action:N,accept:k,supportServerRender:A,prefixCls:ie,disabled:$,beforeUpload:M,onChange:void 0,hasControlInside:O});delete Z.className,delete Z.style,(!b||$)&&delete Z.id;let oe=`${ie}-wrapper`,[me,fe,de]=D4(ie,oe),[he]=Ti("Upload",Pi.Upload),{showRemoveIcon:ye,showPreviewIcon:we,showDownloadIcon:le,removeIcon:ae,previewIcon:Re,downloadIcon:Ae,extra:je}=typeof i=="boolean"?{}:i,Ie=typeof ye>"u"?!$:ye,Oe=(ce,pe)=>i?hr.createElement(z4,{prefixCls:ie,listType:a,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:Y,showRemoveIcon:Ie,showPreviewIcon:we,showDownloadIcon:le,removeIcon:ae,previewIcon:Re,downloadIcon:Ae,iconRender:h,extra:je,locale:Object.assign(Object.assign({},he),p),isImageUrl:v,progress:y,appendAction:ce,appendActionVisible:pe,itemRender:w,disabled:$}):ce,Se=(0,ux.default)(oe,m,W,fe,de,Q?.className,{[`${ie}-rtl`]:K==="rtl",[`${ie}-picture-card-wrapper`]:a==="picture-card",[`${ie}-picture-circle-wrapper`]:a==="picture-circle"}),Ve=Object.assign(Object.assign({},Q?.style),S);if(x==="drag"){let ce=(0,ux.default)(fe,ie,`${ie}-drag`,{[`${ie}-drag-uploading`]:D.some(pe=>pe.status==="uploading"),[`${ie}-drag-hover`]:H==="dragover",[`${ie}-disabled`]:$,[`${ie}-rtl`]:K==="rtl"});return me(hr.createElement("span",{className:Se,ref:U},hr.createElement("div",{className:ce,style:Ve,onDrop:ne,onDragOver:ne,onDragLeave:ne},hr.createElement(TR,Object.assign({},Z,{ref:B,className:`${ie}-btn`}),hr.createElement("div",{className:`${ie}-drag-container`},b))),Oe()))}let He=(0,ux.default)(ie,`${ie}-select`,{[`${ie}-disabled`]:$,[`${ie}-hidden`]:!b}),$e=hr.createElement("div",{className:He},hr.createElement(TR,Object.assign({},Z,{ref:B})));return me(a==="picture-card"||a==="picture-circle"?hr.createElement("span",{className:Se,ref:U},Oe($e,!!b)):hr.createElement("span",{className:Se,ref:U},$e,Oe()))},XK=hr.forwardRef(KK),fx=XK;var YK=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},QK=dx.forwardRef((e,t)=>{var{style:r,height:o,hasControlInside:n=!1}=e,i=YK(e,["style","height","hasControlInside"]);return dx.createElement(fx,Object.assign({ref:t,hasControlInside:n},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}),B4=QK;var $R=fx;$R.Dragger=B4;$R.LIST_IGNORE=Cf;var DR=$R;var j4=E(I(),1);function cl(e){return(0,j4.useMemo)(()=>iu(e),[e])}var wf=E(kt(),1),W4=({inputMin:e,inputMax:t,inputStep:r,value:o=0,uiWeight:n=1,onValueChange:i})=>{let a=cl(n||12),s=u=>{if(u!==null){let f=+u.toFixed(3);i(f)}},l=+o.toFixed(3);return!((t-e)/r>1e3)&&n>=1?(0,wf.jsxs)(ff,{style:{width:"100%",...a},children:[(0,wf.jsx)(QE,{style:{flex:1},min:e,max:t,step:r,value:l,onChange:s}),(0,wf.jsx)(_0,{style:{width:80},min:e,max:t,step:r,value:l,onChange:s,controls:!1})]}):(0,wf.jsx)(_0,{style:{width:"100%",...a},min:e,max:t,step:r,value:l,onChange:s,controls:!1})};var H4=E(kt(),1),V4=({onSelectUpdate:e,options:t,value:r,uiWeight:o})=>{let n=a=>{let s=t.indexOf(a);e(a,s)},i=cl(o||12);return(0,H4.jsx)(_m,{value:r,options:t.map(a=>({value:a,label:a})),style:{...i},onSelect:n,placeholder:ve("select..."),showSearch:!0,filterOption:(a,s)=>(s?.label??"").toLowerCase().includes(a.toLowerCase())})};var G4=E(kt(),1),U4=({value:e,name:t,onValueChange:r,uiWeight:o})=>{let n=a=>{r(a.target.checked)},i=cl(o||12);return(0,G4.jsx)(AE,{checked:!!e,onChange:n,style:{...i},children:t||""})};var MR=E(kt(),1),{TextArea:ZK}=Wm,q4=({value:e="",onValueChange:t,uiWeight:r})=>{let o=cl(r||12);return(0,MR.jsx)("div",{className:"widget-container",style:o,children:(0,MR.jsx)(ZK,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Ym=E(I(),1);var mx=E(kt(),1);function K4({title:e,onTitleChange:t}){let[r,o]=(0,Ym.useState)(!1),[n,i]=(0,Ym.useState)(e);(0,Ym.useEffect)(()=>{i(e)},[e]);let a=()=>{o(!0)};return r?(0,mx.jsx)(Wm,{autoFocus:!0,value:n,onChange:u=>{i(u.target.value)},onBlur:()=>{o(!1),n!==e&&t&&t(n)},onKeyDown:u=>{u.key==="Enter"?(o(!1),n!==e&&t&&t(n)):u.key==="Escape"&&(o(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,mx.jsx)(Ga,{title:ve("click to edit"),children:(0,mx.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:n})})}var Ja=E(kt(),1),X4=({value:e,onValueChange:t,options:r})=>{let o=n=>{if(n.file.status==="done"){let i=n.file.response.name;t?.(i)}};return(0,Ja.jsxs)(ff,{gap:5,align:"stretch",vertical:!0,children:[(0,Ja.jsxs)(ff,{gap:5,children:[(0,Ja.jsx)(_m,{style:{flex:1},value:e,onChange:n=>{t?.(n)},options:r.map(n=>({label:n.split("/").pop(),value:n}))}),(0,Ja.jsx)(DR,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:n=>({image:n}),children:(0,Ja.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ja.jsx)(OR,{})," ",ve("upload")]})})]}),e&&(0,Ja.jsx)(dR,{src:`./api/view?filename=${e}&type=input&subfolder=&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain"}})]})};var ha=E(kt(),1),Y4=window.comfyAPI.api.api,Ef=class extends Q4.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},formDatas:[]};eventListeners=[];constructor(t){super(t);let r=(a,s)=>{Y4.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:""}})}),r("graphChanged",()=>{this.setState({formDatas:Fn(app.graph)})});let o="",n=()=>{requestAnimationFrame(n);let s=(app.workflowManager||app.extensionManager.workflow).activeWorkflow?.path;s!=o&&(o=s,app.graph&&this.setState({formDatas:Fn(app.graph)}))};requestAnimationFrame(n);let i=Fn(app.graph);this.state.formDatas=i}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{Y4.removeEventListener(t,r)})}render(){let t={formDatas:this.state.formDatas,onWidgetChange:async(o,n,i,a)=>{let s=app.graph.nodes.find(l=>l.id==o);s&&Ep(s,n,i)},onWidgetRender:(o,n,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return o.result.push((0,ha.jsx)(W4,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,value:parseFloat(i.value),onValueChange:u=>{t.onWidgetChange(n.id,a,u,n)}},a)),!0}else{if(i.outputType==="combo")return o.result.push((0,ha.jsx)(V4,{uiWeight:i.uiWeight||12,options:i.options?.values||[],onSelectUpdate:s=>{t.onWidgetChange(n.id,a,s,n)},value:i.value},a)),!0;if(i.outputType==="toggle")return o.result.push((0,ha.jsx)(U4,{uiWeight:i.uiWeight||12,name:i.name,value:i.value,onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0;if(i.outputType==="string"||i.outputType==="customtext")return o.result.push((0,ha.jsx)(q4,{uiWeight:i.uiWeight||12,value:i.value,onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return o.result.push((0,ha.jsx)("p",{children:ve("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return o.result.push((0,ha.jsx)(X4,{uiWeight:i.uiWeight||12,value:i.value,options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0}return!0},onTitleRender:(o,n)=>(0,ha.jsx)(K4,{title:o,onTitleChange:i=>{zn.instance.setNodeTitle({node_id:n.id,title:i})}})},r=12;return(0,ha.jsx)(Ba,{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},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,ha.jsx)(hC,{...t})})}};var Mn=E(kt(),1),J4=document.createElement("style");J4.innerHTML=xN;document.head.appendChild(J4);function AR(){let[e,t]=(0,Z4.useState)("1");return(0,Mn.jsx)(Ba,{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,Mn.jsxs)("div",{className:"sdppp-menu-container",children:[(0,Mn.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Mn.jsx)("button",{onClick:()=>t("1"),className:e==="1"?"active":"",children:ve("Simplify Workflow")}),(0,Mn.jsx)("button",{onClick:()=>t("2"),className:e==="2"?"active":"",children:ve("Photoshop")}),(0,Mn.jsx)("span",{children:"Powered by SDPPP"})]}),(0,Mn.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Mn.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:e==="1"?"block":"none"},children:(0,Mn.jsx)(Ef,{})}),(0,Mn.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:e==="2"?"block":"none"},children:(0,Mn.jsx)(EN,{})})]})]})})}var Rf=E(kt(),1);function LR({onMaximize:e}){return(0,Rf.jsxs)("div",{className:"sdppp-side-container",children:[(0,Rf.jsx)("div",{className:"sdppp-side-header",children:(0,Rf.jsx)("button",{className:"pi pi-window-maximize",onClick:e})}),(0,Rf.jsx)(Ef,{})]})}var px=null;async function zR(e){px||Promise.all([import("/scripts/ui.js"),import("/scripts/ui/components/buttonGroup.js"),import("/scripts/ui/components/button.js")]).then(([{$el:t,ComfyDialog:r},{ComfyButtonGroup:o},{ComfyButton:n}])=>{class i extends r{constructor(){super();let s=t("div"),l=t("button.sdppp-close-button",{type:"button",textContent:"X",onclick:()=>this.close()}),c=t("div.comfy-modal-content",[s,l]);c.style.width="100%",c.style.height="100%",this.element=t("div.comfy-modal",{parent:document.body},[c]),(0,kR.createRoot)(s).render((0,FR.createElement)(AR))}}e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:a=>{a.style.width="100%",a.style.height="auto",a.style.padding="8px",(0,kR.createRoot)(a).render((0,FR.createElement)(LR,{onMaximize:()=>{px||(px=new i),px.show(),document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}))}})})}async function JK(e,t,r){t.addEventListener("progress",({detail:c})=>{if(!c||isNaN(c.value/c.max))return;let u=Math.round(c.value/c.max*100);bt.setProgress(u)}),t.addEventListener("status",c=>{c.detail?.exec_info&&bt.setQueueSize(c.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:c})=>{bt.setLastError(c.exception_message,c.node_id),bt.setExecutingNodeTitle("")});let o=[];t.addEventListener("execution_start",({detail:c})=>{if(bt.setLastError("",0),bt.setProgress(0),bt.setExecutingNodeTitle(""),o.length){let u=o.shift();u&&n.set(c.prompt_id,u)}}),t.addEventListener("executing",c=>{let u=c.detail,f=graph.nodes.find(d=>d.id==u);f&&bt.setExecutingNodeTitle(f.title)}),t.addEventListener("execution_success",()=>{bt.setProgress(0),bt.setExecutingNodeTitle("")}),t.addEventListener("execution_interrupted",()=>{bt.setProgress(0),bt.setExecutingNodeTitle("")}),t.addEventListener("graphChanged",()=>{bt.setCurrentForm(Fn(e.graph))});let n=new Map;t.addEventListener("executed",c=>{if(c.detail.output){let u=null;if(Oc.get(c.detail.prompt_id)?(u=Oc.get(c.detail.prompt_id),Oc.delete(c.detail.prompt_id)):u=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!u)return;e.graph.nodes.find(f=>f.type=="Send Images To Photoshop")||s?.sendImage(u,{document_identify:jr.getSpecialDocumentForPreview(),layer_identifies:c.detail.output.images.map(()=>jr.getSpecialLayerForSend()[0]),boundaries:c.detail.output.images.map(()=>""),image_urls:c.detail.output.images.map(f=>location.origin+"/api/view?type=temp&filename="+f.filename)})}});let i="";function a(){requestAnimationFrame(a);let u=(e.workflowManager||e.extensionManager.workflow).activeWorkflow?.path;if(u===i)return;i=u;let f=Fn(e.graph);bt.setCurrentForm(f);let d=JSON.stringify(f);setTimeout(()=>{let p=Fn(e.graph);JSON.stringify(p)!==d&&bt.setCurrentForm(p)},800)}requestAnimationFrame(a),zR(e);var s=new zn;s.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){bt.setCurrentForm(Fn(e.graph))},async beforeRegisterNodeDef(c,u,f){try{zO(c,u)}catch(d){Qm.push(d.stack||d.message||d)}}})}var Qm=[];(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 XR(),await JK(e,r,t),import("./sdppp-custom.js").then(o=>{o.default(va)})}catch(e){Qm.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Qm.length&&(console.error(Qm[0]),alert(`sd-ppp init failed:
|
|
`+Qm.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.
|
|
*)
|
|
|
|
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.
|
|
*)
|
|
|
|
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.
|
|
*)
|
|
|
|
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/regeneratorRuntime.js:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
*/
|