538 lines
799 KiB
JavaScript
538 lines
799 KiB
JavaScript
var rz=Object.create;var ep=Object.defineProperty;var jR=Object.getOwnPropertyDescriptor;var oz=Object.getOwnPropertyNames;var nz=Object.getPrototypeOf,iz=Object.prototype.hasOwnProperty;var gx=(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 Fn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hx=(e,t)=>{for(var r in t)ep(e,r,{get:t[r],enumerable:!0})},az=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of oz(t))!iz.call(e,n)&&n!==r&&ep(e,n,{get:()=>t[n],enumerable:!(o=jR(t,n))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?rz(nz(e)):{},az(t||!e||!e.__esModule?ep(r,"default",{value:e,enumerable:!0}):r,e));var Br=(e,t,r,o)=>{for(var n=o>1?void 0:o?jR(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&&ep(t,r,n),n};var XO=Fn(wt=>{"use strict";var Wf=Symbol.for("react.element"),Uz=Symbol.for("react.portal"),Gz=Symbol.for("react.fragment"),qz=Symbol.for("react.strict_mode"),Kz=Symbol.for("react.profiler"),Xz=Symbol.for("react.provider"),Yz=Symbol.for("react.context"),Qz=Symbol.for("react.forward_ref"),Zz=Symbol.for("react.suspense"),Jz=Symbol.for("react.memo"),e6=Symbol.for("react.lazy"),FO=Symbol.iterator;function t6(e){return e===null||typeof e!="object"?null:(e=FO&&e[FO]||e["@@iterator"],typeof e=="function"?e:null)}var jO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WO=Object.assign,VO={};function Ic(e,t,r){this.props=e,this.context=t,this.refs=VO,this.updater=r||jO}Ic.prototype.isReactComponent={};Ic.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")};Ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HO(){}HO.prototype=Ic.prototype;function Kx(e,t,r){this.props=e,this.context=t,this.refs=VO,this.updater=r||jO}var Xx=Kx.prototype=new HO;Xx.constructor=Kx;WO(Xx,Ic.prototype);Xx.isPureReactComponent=!0;var zO=Array.isArray,UO=Object.prototype.hasOwnProperty,Yx={current:null},GO={key:!0,ref:!0,__self:!0,__source:!0};function qO(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)UO.call(t,o)&&!GO.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:Yx.current}}function r6(e,t){return{$$typeof:Wf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qx(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wf}function o6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var BO=/\/+/g;function qx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?o6(""+e.key):t.toString(36)}function Dp(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 Uz:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+qx(a,0):o,zO(n)?(r="",e!=null&&(r=e.replace(BO,"$&/")+"/"),Dp(n,t,r,"",function(c){return c})):n!=null&&(Qx(n)&&(n=r6(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(BO,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",zO(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+qx(i,s);a+=Dp(i,t,r,l,n)}else if(l=t6(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+qx(i,s++),a+=Dp(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 $p(e,t,r){if(e==null)return e;var o=[],n=0;return Dp(e,o,"","",function(i){return t.call(r,i,n++)}),o}function n6(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},Mp={transition:null},i6={ReactCurrentDispatcher:Wo,ReactCurrentBatchConfig:Mp,ReactCurrentOwner:Yx};function KO(){throw Error("act(...) is not supported in production builds of React.")}wt.Children={map:$p,forEach:function(e,t,r){$p(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $p(e,function(){t++}),t},toArray:function(e){return $p(e,function(t){return t})||[]},only:function(e){if(!Qx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};wt.Component=Ic;wt.Fragment=Gz;wt.Profiler=Kz;wt.PureComponent=Kx;wt.StrictMode=qz;wt.Suspense=Zz;wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i6;wt.act=KO;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=WO({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Yx.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)UO.call(t,l)&&!GO.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:Yz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Xz,_context:e},e.Consumer=e};wt.createElement=qO;wt.createFactory=function(e){var t=qO.bind(null,e);return t.type=e,t};wt.createRef=function(){return{current:null}};wt.forwardRef=function(e){return{$$typeof:Qz,render:e}};wt.isValidElement=Qx;wt.lazy=function(e){return{$$typeof:e6,_payload:{_status:-1,_result:e},_init:n6}};wt.memo=function(e,t){return{$$typeof:Jz,type:e,compare:t===void 0?null:t}};wt.startTransition=function(e){var t=Mp.transition;Mp.transition={};try{e()}finally{Mp.transition=t}};wt.unstable_act=KO;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=Fn((OJ,YO)=>{"use strict";YO.exports=XO()});var a_=Fn(Zt=>{"use strict";function tS(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<Ap(n,t))e[o]=t,e[r]=n,r=o;else break e}}function gi(e){return e.length===0?null:e[0]}function kp(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>Ap(s,r))l<n&&0>Ap(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>Ap(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Ap(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(QO=performance,Zt.unstable_now=function(){return QO.now()}):(Zx=Date,ZO=Zx.now(),Zt.unstable_now=function(){return Zx.now()-ZO});var QO,Zx,ZO,Hi=[],us=[],a6=1,jn=null,Ro=3,Fp=!1,yl=!1,Hf=!1,t_=typeof setTimeout=="function"?setTimeout:null,r_=typeof clearTimeout=="function"?clearTimeout:null,JO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function rS(e){for(var t=gi(us);t!==null;){if(t.callback===null)kp(us);else if(t.startTime<=e)kp(us),t.sortIndex=t.expirationTime,tS(Hi,t);else break;t=gi(us)}}function oS(e){if(Hf=!1,rS(e),!yl)if(gi(Hi)!==null)yl=!0,iS(nS);else{var t=gi(us);t!==null&&aS(oS,t.startTime-e)}}function nS(e,t){yl=!1,Hf&&(Hf=!1,r_(Uf),Uf=-1),Fp=!0;var r=Ro;try{for(rS(t),jn=gi(Hi);jn!==null&&(!(jn.expirationTime>t)||e&&!i_());){var o=jn.callback;if(typeof o=="function"){jn.callback=null,Ro=jn.priorityLevel;var n=o(jn.expirationTime<=t);t=Zt.unstable_now(),typeof n=="function"?jn.callback=n:jn===gi(Hi)&&kp(Hi),rS(t)}else kp(Hi);jn=gi(Hi)}if(jn!==null)var i=!0;else{var a=gi(us);a!==null&&aS(oS,a.startTime-t),i=!1}return i}finally{jn=null,Ro=r,Fp=!1}}var zp=!1,Lp=null,Uf=-1,o_=5,n_=-1;function i_(){return!(Zt.unstable_now()-n_<o_)}function Jx(){if(Lp!==null){var e=Zt.unstable_now();n_=e;var t=!0;try{t=Lp(!0,e)}finally{t?Vf():(zp=!1,Lp=null)}}else zp=!1}var Vf;typeof JO=="function"?Vf=function(){JO(Jx)}:typeof MessageChannel<"u"?(eS=new MessageChannel,e_=eS.port2,eS.port1.onmessage=Jx,Vf=function(){e_.postMessage(null)}):Vf=function(){t_(Jx,0)};var eS,e_;function iS(e){Lp=e,zp||(zp=!0,Vf())}function aS(e,t){Uf=t_(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(){yl||Fp||(yl=!0,iS(nS))};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"):o_=0<e?Math.floor(1e3/e):5};Zt.unstable_getCurrentPriorityLevel=function(){return Ro};Zt.unstable_getFirstCallbackNode=function(){return gi(Hi)};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:a6++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,tS(us,e),gi(Hi)===null&&e===gi(us)&&(Hf?(r_(Uf),Uf=-1):Hf=!0,aS(oS,r-o))):(e.sortIndex=n,tS(Hi,e),yl||Fp||(yl=!0,iS(nS))),e};Zt.unstable_shouldYield=i_;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 l_=Fn((PJ,s_)=>{"use strict";s_.exports=a_()});var dN=Fn(En=>{"use strict";var s6=I(),bn=l_();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 gP=new Set,md={};function Il(e,t){Zc(e,t),Zc(e+"Capture",t)}function Zc(e,t){for(md[e]=t,e=0;e<t.length;e++)gP.add(t[e])}var Pa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),TS=Object.prototype.hasOwnProperty,l6=/^[: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]*$/,c_={},u_={};function c6(e){return TS.call(u_,e)?!0:TS.call(c_,e)?!1:l6.test(e)?u_[e]=!0:(c_[e]=!0,!1)}function u6(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 f6(e,t,r,o){if(t===null||typeof t>"u"||u6(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 CC=/[\-:]([a-z])/g;function bC(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(CC,bC);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(CC,bC);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(CC,bC);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 wC(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")&&(f6(t,r,n,o)&&(r=null),o||n===null?c6(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 $a=s6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bp=Symbol.for("react.element"),Mc=Symbol.for("react.portal"),Ac=Symbol.for("react.fragment"),EC=Symbol.for("react.strict_mode"),NS=Symbol.for("react.profiler"),hP=Symbol.for("react.provider"),vP=Symbol.for("react.context"),RC=Symbol.for("react.forward_ref"),IS=Symbol.for("react.suspense"),$S=Symbol.for("react.suspense_list"),OC=Symbol.for("react.memo"),ds=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var yP=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var f_=Symbol.iterator;function Gf(e){return e===null||typeof e!="object"?null:(e=f_&&e[f_]||e["@@iterator"],typeof e=="function"?e:null)}var Cr=Object.assign,sS;function ed(e){if(sS===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);sS=t&&t[1]||""}return`
|
|
`+sS+e}var lS=!1;function cS(e,t){if(!e||lS)return"";lS=!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{lS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ed(e):""}function d6(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=cS(e.type,!1),e;case 11:return e=cS(e.type.render,!1),e;case 1:return e=cS(e.type,!0),e;default:return""}}function DS(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 Ac:return"Fragment";case Mc:return"Portal";case NS:return"Profiler";case EC:return"StrictMode";case IS:return"Suspense";case $S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vP:return(e.displayName||"Context")+".Consumer";case hP:return(e._context.displayName||"Context")+".Provider";case RC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case OC:return t=e.displayName||null,t!==null?t:DS(e.type)||"Memo";case ds:t=e._payload,e=e._init;try{return DS(e(t))}catch{}}return null}function m6(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 DS(t);case 8:return t===EC?"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 Os(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p6(e){var t=xP(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 jp(e){e._valueTracker||(e._valueTracker=p6(e))}function SP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=xP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function gg(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 MS(e,t){var r=t.checked;return Cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function d_(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Os(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 CP(e,t){t=t.checked,t!=null&&wC(e,"checked",t,!1)}function AS(e,t){CP(e,t);var r=Os(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")?LS(e,t.type,r):t.hasOwnProperty("defaultValue")&&LS(e,t.type,Os(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function m_(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 LS(e,t,r){(t!=="number"||gg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var td=Array.isArray;function Gc(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=""+Os(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 kS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ge(91));return Cr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function p_(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:Os(r)}}function bP(e,t){var r=Os(t.value),o=Os(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 g_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wP(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 FS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wp,EP=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(Wp=Wp||document.createElement("div"),Wp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wp.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},g6=["Webkit","ms","Moz","O"];Object.keys(nd).forEach(function(e){g6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nd[t]=nd[e]})});function RP(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 OP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=RP(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var h6=Cr({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 zS(e,t){if(t){if(h6[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 BS(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 jS=null;function _C(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var WS=null,qc=null,Kc=null;function h_(e){if(e=$d(e)){if(typeof WS!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Vg(t),WS(e.stateNode,e.type,t))}}function _P(e){qc?Kc?Kc.push(e):Kc=[e]:qc=e}function PP(){if(qc){var e=qc,t=Kc;if(Kc=qc=null,h_(e),t)for(e=0;e<t.length;e++)h_(t[e])}}function TP(e,t){return e(t)}function NP(){}var uS=!1;function IP(e,t,r){if(uS)return e(t,r);uS=!0;try{return TP(e,t,r)}finally{uS=!1,(qc!==null||Kc!==null)&&(NP(),PP())}}function gd(e,t){var r=e.stateNode;if(r===null)return null;var o=Vg(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 VS=!1;if(Pa)try{$c={},Object.defineProperty($c,"passive",{get:function(){VS=!0}}),window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch{VS=!1}var $c;function v6(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,hg=null,vg=!1,HS=null,y6={onError:function(e){id=!0,hg=e}};function x6(e,t,r,o,n,i,a,s,l){id=!1,hg=null,v6.apply(y6,arguments)}function S6(e,t,r,o,n,i,a,s,l){if(x6.apply(this,arguments),id){if(id){var c=hg;id=!1,hg=null}else throw Error(ge(198));vg||(vg=!0,HS=c)}}function $l(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 $P(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 v_(e){if($l(e)!==e)throw Error(ge(188))}function C6(e){var t=e.alternate;if(!t){if(t=$l(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 v_(n),e;if(i===o)return v_(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 DP(e){return e=C6(e),e!==null?MP(e):null}function MP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=MP(e);if(t!==null)return t;e=e.sibling}return null}var AP=bn.unstable_scheduleCallback,y_=bn.unstable_cancelCallback,b6=bn.unstable_shouldYield,w6=bn.unstable_requestPaint,Mr=bn.unstable_now,E6=bn.unstable_getCurrentPriorityLevel,PC=bn.unstable_ImmediatePriority,LP=bn.unstable_UserBlockingPriority,yg=bn.unstable_NormalPriority,R6=bn.unstable_LowPriority,kP=bn.unstable_IdlePriority,zg=null,Ki=null;function O6(e){if(Ki&&typeof Ki.onCommitFiberRoot=="function")try{Ki.onCommitFiberRoot(zg,e,void 0,(e.current.flags&128)===128)}catch{}}var Si=Math.clz32?Math.clz32:T6,_6=Math.log,P6=Math.LN2;function T6(e){return e>>>=0,e===0?32:31-(_6(e)/P6|0)|0}var Vp=64,Hp=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 xg(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-Si(t),n=1<<r,o|=e[r],t&=~n;return o}function N6(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 I6(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Si(i),s=1<<a,l=n[a];l===-1?(!(s&r)||s&o)&&(n[a]=N6(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function US(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function FP(){var e=Vp;return Vp<<=1,!(Vp&4194240)&&(Vp=64),e}function fS(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-Si(t),e[t]=r}function $6(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-Si(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function TC(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Si(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var jt=0;function zP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var BP,NC,jP,WP,VP,GS=!1,Up=[],ys=null,xs=null,Ss=null,hd=new Map,vd=new Map,ps=[],D6="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 x_(e,t){switch(e){case"focusin":case"focusout":ys=null;break;case"dragenter":case"dragleave":xs=null;break;case"mouseover":case"mouseout":Ss=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&&NC(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function M6(e,t,r,o,n){switch(t){case"focusin":return ys=qf(ys,e,t,r,o,n),!0;case"dragenter":return xs=qf(xs,e,t,r,o,n),!0;case"mouseover":return Ss=qf(Ss,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 HP(e){var t=Cl(e.target);if(t!==null){var r=$l(t);if(r!==null){if(t=r.tag,t===13){if(t=$P(r),t!==null){e.blockedOn=t,VP(e.priority,function(){jP(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 ig(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=qS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);jS=o,r.target.dispatchEvent(o),jS=null}else return t=$d(r),t!==null&&NC(t),e.blockedOn=r,!1;t.shift()}return!0}function S_(e,t,r){ig(e)&&r.delete(t)}function A6(){GS=!1,ys!==null&&ig(ys)&&(ys=null),xs!==null&&ig(xs)&&(xs=null),Ss!==null&&ig(Ss)&&(Ss=null),hd.forEach(S_),vd.forEach(S_)}function Kf(e,t){e.blockedOn===t&&(e.blockedOn=null,GS||(GS=!0,bn.unstable_scheduleCallback(bn.unstable_NormalPriority,A6)))}function yd(e){function t(n){return Kf(n,e)}if(0<Up.length){Kf(Up[0],e);for(var r=1;r<Up.length;r++){var o=Up[r];o.blockedOn===e&&(o.blockedOn=null)}}for(ys!==null&&Kf(ys,e),xs!==null&&Kf(xs,e),Ss!==null&&Kf(Ss,e),hd.forEach(t),vd.forEach(t),r=0;r<ps.length;r++)o=ps[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<ps.length&&(r=ps[0],r.blockedOn===null);)HP(r),r.blockedOn===null&&ps.shift()}var Xc=$a.ReactCurrentBatchConfig,Sg=!0;function L6(e,t,r,o){var n=jt,i=Xc.transition;Xc.transition=null;try{jt=1,IC(e,t,r,o)}finally{jt=n,Xc.transition=i}}function k6(e,t,r,o){var n=jt,i=Xc.transition;Xc.transition=null;try{jt=4,IC(e,t,r,o)}finally{jt=n,Xc.transition=i}}function IC(e,t,r,o){if(Sg){var n=qS(e,t,r,o);if(n===null)yS(e,t,o,Cg,r),x_(e,o);else if(M6(n,e,t,r,o))o.stopPropagation();else if(x_(e,o),t&4&&-1<D6.indexOf(e)){for(;n!==null;){var i=$d(n);if(i!==null&&BP(i),i=qS(e,t,r,o),i===null&&yS(e,t,o,Cg,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else yS(e,t,o,null,r)}}var Cg=null;function qS(e,t,r,o){if(Cg=null,e=_C(o),e=Cl(e),e!==null)if(t=$l(e),t===null)e=null;else if(r=t.tag,r===13){if(e=$P(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 Cg=e,null}function UP(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(E6()){case PC:return 1;case LP:return 4;case yg:case R6:return 16;case kP:return 536870912;default:return 16}default:return 16}}var hs=null,$C=null,ag=null;function GP(){if(ag)return ag;var e,t=$C,r=t.length,o,n="value"in hs?hs.value:hs.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 ag=n.slice(e,1<o?1-o:void 0)}function sg(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 Gp(){return!0}function C_(){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)?Gp:C_,this.isPropagationStopped=C_,this}return Cr(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=Gp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Gp)},persist:function(){},isPersistent:Gp}),t}var iu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},DC=wn(iu),Id=Cr({},iu,{view:0,detail:0}),F6=wn(Id),dS,mS,Xf,Bg=Cr({},Id,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MC,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"?(dS=e.screenX-Xf.screenX,mS=e.screenY-Xf.screenY):mS=dS=0,Xf=e),dS)},movementY:function(e){return"movementY"in e?e.movementY:mS}}),b_=wn(Bg),z6=Cr({},Bg,{dataTransfer:0}),B6=wn(z6),j6=Cr({},Id,{relatedTarget:0}),pS=wn(j6),W6=Cr({},iu,{animationName:0,elapsedTime:0,pseudoElement:0}),V6=wn(W6),H6=Cr({},iu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U6=wn(H6),G6=Cr({},iu,{data:0}),w_=wn(G6),q6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K6={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"},X6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X6[e])?!!t[e]:!1}function MC(){return Y6}var Q6=Cr({},Id,{key:function(e){if(e.key){var t=q6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MC,charCode:function(e){return e.type==="keypress"?sg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z6=wn(Q6),J6=Cr({},Bg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E_=wn(J6),eB=Cr({},Id,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MC}),tB=wn(eB),rB=Cr({},iu,{propertyName:0,elapsedTime:0,pseudoElement:0}),oB=wn(rB),nB=Cr({},Bg,{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}),iB=wn(nB),aB=[9,13,27,32],AC=Pa&&"CompositionEvent"in window,ad=null;Pa&&"documentMode"in document&&(ad=document.documentMode);var sB=Pa&&"TextEvent"in window&&!ad,qP=Pa&&(!AC||ad&&8<ad&&11>=ad),R_=" ",O_=!1;function KP(e,t){switch(e){case"keyup":return aB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function XP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lc=!1;function lB(e,t){switch(e){case"compositionend":return XP(t);case"keypress":return t.which!==32?null:(O_=!0,R_);case"textInput":return e=t.data,e===R_&&O_?null:e;default:return null}}function cB(e,t){if(Lc)return e==="compositionend"||!AC&&KP(e,t)?(e=GP(),ag=$C=hs=null,Lc=!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 qP&&t.locale!=="ko"?null:t.data;default:return null}}var uB={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 __(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uB[e.type]:t==="textarea"}function YP(e,t,r,o){_P(o),t=bg(t,"onChange"),0<t.length&&(r=new DC("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var sd=null,xd=null;function fB(e){sT(e,0)}function jg(e){var t=zc(e);if(SP(t))return e}function dB(e,t){if(e==="change")return t}var QP=!1;Pa&&(Pa?(Kp="oninput"in document,Kp||(gS=document.createElement("div"),gS.setAttribute("oninput","return;"),Kp=typeof gS.oninput=="function"),qp=Kp):qp=!1,QP=qp&&(!document.documentMode||9<document.documentMode));var qp,Kp,gS;function P_(){sd&&(sd.detachEvent("onpropertychange",ZP),xd=sd=null)}function ZP(e){if(e.propertyName==="value"&&jg(xd)){var t=[];YP(t,xd,e,_C(e)),IP(fB,t)}}function mB(e,t,r){e==="focusin"?(P_(),sd=t,xd=r,sd.attachEvent("onpropertychange",ZP)):e==="focusout"&&P_()}function pB(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jg(xd)}function gB(e,t){if(e==="click")return jg(t)}function hB(e,t){if(e==="input"||e==="change")return jg(t)}function vB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bi=typeof Object.is=="function"?Object.is:vB;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(!TS.call(t,n)||!bi(e[n],t[n]))return!1}return!0}function T_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function N_(e,t){var r=T_(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=T_(r)}}function JP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eT(){for(var e=window,t=gg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gg(e.document)}return t}function LC(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 yB(e){var t=eT(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&JP(r.ownerDocument.documentElement,r)){if(o!==null&&LC(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=N_(r,i);var a=N_(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 xB=Pa&&"documentMode"in document&&11>=document.documentMode,kc=null,KS=null,ld=null,XS=!1;function I_(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;XS||kc==null||kc!==gg(o)||(o=kc,"selectionStart"in o&&LC(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=bg(KS,"onSelect"),0<o.length&&(t=new DC("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=kc)))}function Xp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Fc={animationend:Xp("Animation","AnimationEnd"),animationiteration:Xp("Animation","AnimationIteration"),animationstart:Xp("Animation","AnimationStart"),transitionend:Xp("Transition","TransitionEnd")},hS={},tT={};Pa&&(tT=document.createElement("div").style,"AnimationEvent"in window||(delete Fc.animationend.animation,delete Fc.animationiteration.animation,delete Fc.animationstart.animation),"TransitionEvent"in window||delete Fc.transitionend.transition);function Wg(e){if(hS[e])return hS[e];if(!Fc[e])return e;var t=Fc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in tT)return hS[e]=t[r];return e}var rT=Wg("animationend"),oT=Wg("animationiteration"),nT=Wg("animationstart"),iT=Wg("transitionend"),aT=new Map,$_="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 Ps(e,t){aT.set(e,t),Il(t,[e])}for(Yp=0;Yp<$_.length;Yp++)Qp=$_[Yp],D_=Qp.toLowerCase(),M_=Qp[0].toUpperCase()+Qp.slice(1),Ps(D_,"on"+M_);var Qp,D_,M_,Yp;Ps(rT,"onAnimationEnd");Ps(oT,"onAnimationIteration");Ps(nT,"onAnimationStart");Ps("dblclick","onDoubleClick");Ps("focusin","onFocus");Ps("focusout","onBlur");Ps(iT,"onTransitionEnd");Zc("onMouseEnter",["mouseout","mouseover"]);Zc("onMouseLeave",["mouseout","mouseover"]);Zc("onPointerEnter",["pointerout","pointerover"]);Zc("onPointerLeave",["pointerout","pointerover"]);Il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Il("onBeforeInput",["compositionend","keypress","textInput","paste"]);Il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Il("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(" "),SB=new Set("cancel close invalid load scroll toggle".split(" ").concat(od));function A_(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,S6(o,t,void 0,e),e.currentTarget=null}function sT(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;A_(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;A_(n,s,c),i=l}}}if(vg)throw e=HS,vg=!1,HS=null,e}function rr(e,t){var r=t[eC];r===void 0&&(r=t[eC]=new Set);var o=e+"__bubble";r.has(o)||(lT(t,e,2,!1),r.add(o))}function vS(e,t,r){var o=0;t&&(o|=4),lT(r,e,o,t)}var Zp="_reactListening"+Math.random().toString(36).slice(2);function Cd(e){if(!e[Zp]){e[Zp]=!0,gP.forEach(function(r){r!=="selectionchange"&&(SB.has(r)||vS(r,!1,e),vS(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zp]||(t[Zp]=!0,vS("selectionchange",!1,t))}}function lT(e,t,r,o){switch(UP(t)){case 1:var n=L6;break;case 4:n=k6;break;default:n=IC}r=n.bind(null,t,r,e),n=void 0,!VS||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 yS(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=Cl(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}IP(function(){var c=i,u=_C(r),f=[];e:{var d=aT.get(e);if(d!==void 0){var p=DC,h=e;switch(e){case"keypress":if(sg(r)===0)break e;case"keydown":case"keyup":p=Z6;break;case"focusin":h="focus",p=pS;break;case"focusout":h="blur",p=pS;break;case"beforeblur":case"afterblur":p=pS;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=b_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=B6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=tB;break;case rT:case oT:case nT:p=V6;break;case iT:p=oB;break;case"scroll":p=F6;break;case"wheel":p=iB;break;case"copy":case"cut":case"paste":p=U6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=E_}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 C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,g!==null&&(C=gd(m,g),C!=null&&v.push(bd(m,C,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!==jS&&(h=r.relatedTarget||r.fromElement)&&(Cl(h)||h[Ta]))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?Cl(h):null,h!==null&&(y=$l(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=c),p!==h)){if(v=b_,C="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=E_,C="onPointerLeave",g="onPointerEnter",m="pointer"),y=p==null?d:zc(p),x=h==null?d:zc(h),d=new v(C,m+"leave",p,r,u),d.target=y,d.relatedTarget=x,C=null,Cl(u)===c&&(v=new v(g,m+"enter",h,r,u),v.target=x,v.relatedTarget=y,C=v),y=C,p&&h)t:{for(v=p,g=h,m=0,x=v;x;x=Dc(x))m++;for(x=0,C=g;C;C=Dc(C))x++;for(;0<m-x;)v=Dc(v),m--;for(;0<x-m;)g=Dc(g),x--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=Dc(v),g=Dc(g)}v=null}else v=null;p!==null&&L_(f,d,p,v,!1),h!==null&&y!==null&&L_(f,y,h,v,!0)}}e:{if(d=c?zc(c):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var S=dB;else if(__(d))if(QP)S=hB;else{S=pB;var w=mB}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=gB);if(S&&(S=S(e,c))){YP(f,S,r,u);break e}w&&w(e,d,c),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&LS(d,"number",d.value)}switch(w=c?zc(c):window,e){case"focusin":(__(w)||w.contentEditable==="true")&&(kc=w,KS=c,ld=null);break;case"focusout":ld=KS=kc=null;break;case"mousedown":XS=!0;break;case"contextmenu":case"mouseup":case"dragend":XS=!1,I_(f,r,u);break;case"selectionchange":if(xB)break;case"keydown":case"keyup":I_(f,r,u)}var b;if(AC)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 Lc?KP(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(qP&&r.locale!=="ko"&&(Lc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Lc&&(b=GP()):(hs=u,$C="value"in hs?hs.value:hs.textContent,Lc=!0)),w=bg(c,R),0<w.length&&(R=new w_(R,e,null,r,u),f.push({event:R,listeners:w}),b?R.data=b:(b=XP(r),b!==null&&(R.data=b)))),(b=sB?lB(e,r):cB(e,r))&&(c=bg(c,"onBeforeInput"),0<c.length&&(u=new w_("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=b))}sT(f,t)})}function bd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function bg(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(bd(e,i,n)),i=gd(e,t),i!=null&&o.push(bd(e,i,n))),e=e.return}return o}function Dc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function L_(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(bd(r,l,s))):n||(l=gd(r,i),l!=null&&a.push(bd(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var CB=/\r\n?/g,bB=/\u0000|\uFFFD/g;function k_(e){return(typeof e=="string"?e:""+e).replace(CB,`
|
|
`).replace(bB,"")}function Jp(e,t,r){if(t=k_(t),k_(e)!==t&&r)throw Error(ge(425))}function wg(){}var YS=null,QS=null;function ZS(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 JS=typeof setTimeout=="function"?setTimeout:void 0,wB=typeof clearTimeout=="function"?clearTimeout:void 0,F_=typeof Promise=="function"?Promise:void 0,EB=typeof queueMicrotask=="function"?queueMicrotask:typeof F_<"u"?function(e){return F_.resolve(null).then(e).catch(RB)}:JS;function RB(e){setTimeout(function(){throw e})}function xS(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 Cs(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 z_(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 au=Math.random().toString(36).slice(2),qi="__reactFiber$"+au,wd="__reactProps$"+au,Ta="__reactContainer$"+au,eC="__reactEvents$"+au,OB="__reactListeners$"+au,_B="__reactHandles$"+au;function Cl(e){var t=e[qi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ta]||r[qi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=z_(e);e!==null;){if(r=e[qi])return r;e=z_(e)}return t}e=r,r=e.parentNode}return null}function $d(e){return e=e[qi]||e[Ta],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ge(33))}function Vg(e){return e[wd]||null}var tC=[],Bc=-1;function Ts(e){return{current:e}}function or(e){0>Bc||(e.current=tC[Bc],tC[Bc]=null,Bc--)}function Jt(e,t){Bc++,tC[Bc]=e.current,e.current=t}var _s={},To=Ts(_s),rn=Ts(!1),Ol=_s;function Jc(e,t){var r=e.type.contextTypes;if(!r)return _s;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 Eg(){or(rn),or(To)}function B_(e,t,r){if(To.current!==_s)throw Error(ge(168));Jt(To,t),Jt(rn,r)}function cT(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,m6(e)||"Unknown",n));return Cr({},r,o)}function Rg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_s,Ol=To.current,Jt(To,e),Jt(rn,rn.current),!0}function j_(e,t,r){var o=e.stateNode;if(!o)throw Error(ge(169));r?(e=cT(e,t,Ol),o.__reactInternalMemoizedMergedChildContext=e,or(rn),or(To),Jt(To,e)):or(rn),Jt(rn,r)}var Ea=null,Hg=!1,SS=!1;function uT(e){Ea===null?Ea=[e]:Ea.push(e)}function PB(e){Hg=!0,uT(e)}function Ns(){if(!SS&&Ea!==null){SS=!0;var e=0,t=jt;try{var r=Ea;for(jt=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Ea=null,Hg=!1}catch(n){throw Ea!==null&&(Ea=Ea.slice(e+1)),AP(PC,Ns),n}finally{jt=t,SS=!1}}return null}var jc=[],Wc=0,Og=null,_g=0,Wn=[],Vn=0,_l=null,Ra=1,Oa="";function xl(e,t){jc[Wc++]=_g,jc[Wc++]=Og,Og=e,_g=t}function fT(e,t,r){Wn[Vn++]=Ra,Wn[Vn++]=Oa,Wn[Vn++]=_l,_l=e;var o=Ra;e=Oa;var n=32-Si(o)-1;o&=~(1<<n),r+=1;var i=32-Si(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Ra=1<<32-Si(t)+n|r<<n|o,Oa=i+e}else Ra=1<<i|r<<n|o,Oa=e}function kC(e){e.return!==null&&(xl(e,1),fT(e,1,0))}function FC(e){for(;e===Og;)Og=jc[--Wc],jc[Wc]=null,_g=jc[--Wc],jc[Wc]=null;for(;e===_l;)_l=Wn[--Vn],Wn[Vn]=null,Oa=Wn[--Vn],Wn[Vn]=null,Ra=Wn[--Vn],Wn[Vn]=null}var Cn=null,Sn=null,pr=!1,xi=null;function dT(e,t){var r=Hn(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 W_(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,Cn=e,Sn=Cs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=_l!==null?{id:Ra,overflow:Oa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Hn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Cn=e,Sn=null,!0):!1;default:return!1}}function rC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function oC(e){if(pr){var t=Sn;if(t){var r=t;if(!W_(e,t)){if(rC(e))throw Error(ge(418));t=Cs(r.nextSibling);var o=Cn;t&&W_(e,t)?dT(o,r):(e.flags=e.flags&-4097|2,pr=!1,Cn=e)}}else{if(rC(e))throw Error(ge(418));e.flags=e.flags&-4097|2,pr=!1,Cn=e}}}function V_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cn=e}function eg(e){if(e!==Cn)return!1;if(!pr)return V_(e),pr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ZS(e.type,e.memoizedProps)),t&&(t=Sn)){if(rC(e))throw mT(),Error(ge(418));for(;t;)dT(e,t),t=Cs(t.nextSibling)}if(V_(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=Cs(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=Cn?Cs(e.stateNode.nextSibling):null;return!0}function mT(){for(var e=Sn;e;)e=Cs(e.nextSibling)}function eu(){Sn=Cn=null,pr=!1}function zC(e){xi===null?xi=[e]:xi.push(e)}var TB=$a.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 tg(e,t){throw e=Object.prototype.toString.call(t),Error(ge(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function H_(e){var t=e._init;return t(e._payload)}function pT(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=Rs(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,C){return m===null||m.tag!==6?(m=_S(x,g.mode,C),m.return=g,m):(m=n(m,x),m.return=g,m)}function l(g,m,x,C){var S=x.type;return S===Ac?u(g,m,x.props.children,C,x.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ds&&H_(S)===m.type)?(C=n(m,x.props),C.ref=Yf(g,m,x),C.return=g,C):(C=pg(x.type,x.key,x.props,null,g.mode,C),C.ref=Yf(g,m,x),C.return=g,C)}function c(g,m,x,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=PS(x,g.mode,C),m.return=g,m):(m=n(m,x.children||[]),m.return=g,m)}function u(g,m,x,C,S){return m===null||m.tag!==7?(m=Rl(x,g.mode,C,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=_S(""+m,g.mode,x),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Bp:return x=pg(m.type,m.key,m.props,null,g.mode,x),x.ref=Yf(g,null,m),x.return=g,x;case Mc:return m=PS(m,g.mode,x),m.return=g,m;case ds:var C=m._init;return f(g,C(m._payload),x)}if(td(m)||Gf(m))return m=Rl(m,g.mode,x,null),m.return=g,m;tg(g,m)}return null}function d(g,m,x,C){var S=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:s(g,m,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Bp:return x.key===S?l(g,m,x,C):null;case Mc:return x.key===S?c(g,m,x,C):null;case ds:return S=x._init,d(g,m,S(x._payload),C)}if(td(x)||Gf(x))return S!==null?null:u(g,m,x,C,null);tg(g,x)}return null}function p(g,m,x,C,S){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(x)||null,s(m,g,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Bp:return g=g.get(C.key===null?x:C.key)||null,l(m,g,C,S);case Mc:return g=g.get(C.key===null?x:C.key)||null,c(m,g,C,S);case ds:var w=C._init;return p(g,m,x,w(C._payload),S)}if(td(C)||Gf(C))return g=g.get(x)||null,u(m,g,C,S,null);tg(m,C)}return null}function h(g,m,x,C){for(var S=null,w=null,b=m,R=m=0,_=null;b!==null&&R<x.length;R++){b.index>R?(_=b,b=null):_=b.sibling;var O=d(g,b,x[R],C);if(O===null){b===null&&(b=_);break}e&&b&&O.alternate===null&&t(g,b),m=i(O,m,R),w===null?S=O:w.sibling=O,w=O,b=_}if(R===x.length)return r(g,b),pr&&xl(g,R),S;if(b===null){for(;R<x.length;R++)b=f(g,x[R],C),b!==null&&(m=i(b,m,R),w===null?S=b:w.sibling=b,w=b);return pr&&xl(g,R),S}for(b=o(g,b);R<x.length;R++)_=p(b,g,R,x[R],C),_!==null&&(e&&_.alternate!==null&&b.delete(_.key===null?R:_.key),m=i(_,m,R),w===null?S=_:w.sibling=_,w=_);return e&&b.forEach(function(N){return t(g,N)}),pr&&xl(g,R),S}function v(g,m,x,C){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,b=m,R=m=0,_=null,O=x.next();b!==null&&!O.done;R++,O=x.next()){b.index>R?(_=b,b=null):_=b.sibling;var N=d(g,b,O.value,C);if(N===null){b===null&&(b=_);break}e&&b&&N.alternate===null&&t(g,b),m=i(N,m,R),w===null?S=N:w.sibling=N,w=N,b=_}if(O.done)return r(g,b),pr&&xl(g,R),S;if(b===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,C),O!==null&&(m=i(O,m,R),w===null?S=O:w.sibling=O,w=O);return pr&&xl(g,R),S}for(b=o(g,b);!O.done;R++,O=x.next())O=p(b,g,R,O.value,C),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?R:O.key),m=i(O,m,R),w===null?S=O:w.sibling=O,w=O);return e&&b.forEach(function(k){return t(g,k)}),pr&&xl(g,R),S}function y(g,m,x,C){if(typeof x=="object"&&x!==null&&x.type===Ac&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Bp:e:{for(var S=x.key,w=m;w!==null;){if(w.key===S){if(S=x.type,S===Ac){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===ds&&H_(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===Ac?(m=Rl(x.props.children,g.mode,C,x.key),m.return=g,g=m):(C=pg(x.type,x.key,x.props,null,g.mode,C),C.ref=Yf(g,m,x),C.return=g,g=C)}return a(g);case Mc: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=PS(x,g.mode,C),m.return=g,g=m}return a(g);case ds:return w=x._init,y(g,m,w(x._payload),C)}if(td(x))return h(g,m,x,C);if(Gf(x))return v(g,m,x,C);tg(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=_S(x,g.mode,C),m.return=g,g=m),a(g)):r(g,m)}return y}var tu=pT(!0),gT=pT(!1),Pg=Ts(null),Tg=null,Vc=null,BC=null;function jC(){BC=Vc=Tg=null}function WC(e){var t=Pg.current;or(Pg),e._currentValue=t}function nC(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 Yc(e,t){Tg=e,BC=Vc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tn=!0),e.firstContext=null)}function Gn(e){var t=e._currentValue;if(BC!==e)if(e={context:e,memoizedValue:t,next:null},Vc===null){if(Tg===null)throw Error(ge(308));Vc=e,Tg.dependencies={lanes:0,firstContext:e}}else Vc=Vc.next=e;return t}var bl=null;function VC(e){bl===null?bl=[e]:bl.push(e)}function hT(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,VC(t)):(r.next=n.next,n.next=r),t.interleaved=r,Na(e,o)}function Na(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 ms=!1;function HC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vT(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 _a(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bs(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,Na(e,r)}return n=o.interleaved,n===null?(t.next=t,VC(o)):(t.next=n.next,n.next=t),o.interleaved=t,Na(e,r)}function lg(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,TC(e,r)}}function U_(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 Ng(e,t,r,o){var n=e.updateQueue;ms=!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=Cr({},f,d);break e;case 2:ms=!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);Tl|=a,e.lanes=a,e.memoizedState=f}}function G_(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={},Xi=Ts(Dd),Ed=Ts(Dd),Rd=Ts(Dd);function wl(e){if(e===Dd)throw Error(ge(174));return e}function UC(e,t){switch(Jt(Rd,t),Jt(Ed,e),Jt(Xi,Dd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:FS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=FS(t,e)}or(Xi),Jt(Xi,t)}function ru(){or(Xi),or(Ed),or(Rd)}function yT(e){wl(Rd.current);var t=wl(Xi.current),r=FS(t,e.type);t!==r&&(Jt(Ed,e),Jt(Xi,r))}function GC(e){Ed.current===e&&(or(Xi),or(Ed))}var xr=Ts(0);function Ig(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 CS=[];function qC(){for(var e=0;e<CS.length;e++)CS[e]._workInProgressVersionPrimary=null;CS.length=0}var cg=$a.ReactCurrentDispatcher,bS=$a.ReactCurrentBatchConfig,Pl=0,Sr=null,Kr=null,oo=null,$g=!1,cd=!1,Od=0,NB=0;function Oo(){throw Error(ge(321))}function KC(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 XC(e,t,r,o,n,i){if(Pl=i,Sr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cg.current=e===null||e.memoizedState===null?MB:AB,e=r(o,n),cd){i=0;do{if(cd=!1,Od=0,25<=i)throw Error(ge(301));i+=1,oo=Kr=null,t.updateQueue=null,cg.current=LB,e=r(o,n)}while(cd)}if(cg.current=Dg,t=Kr!==null&&Kr.next!==null,Pl=0,oo=Kr=Sr=null,$g=!1,t)throw Error(ge(300));return e}function YC(){var e=Od!==0;return Od=0,e}function Gi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?Sr.memoizedState=oo=e:oo=oo.next=e,oo}function qn(){if(Kr===null){var e=Sr.alternate;e=e!==null?e.memoizedState:null}else e=Kr.next;var t=oo===null?Sr.memoizedState:oo.next;if(t!==null)oo=t,Kr=e;else{if(e===null)throw Error(ge(310));Kr=e,e={memoizedState:Kr.memoizedState,baseState:Kr.baseState,baseQueue:Kr.baseQueue,queue:Kr.queue,next:null},oo===null?Sr.memoizedState=oo=e:oo=oo.next=e}return oo}function _d(e,t){return typeof t=="function"?t(e):t}function wS(e){var t=qn(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var o=Kr,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((Pl&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,Sr.lanes|=u,Tl|=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,Sr.lanes|=i,Tl|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ES(e){var t=qn(),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 xT(){}function ST(e,t){var r=Sr,o=qn(),n=t(),i=!bi(o.memoizedState,n);if(i&&(o.memoizedState=n,tn=!0),o=o.queue,QC(wT.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,Pd(9,bT.bind(null,r,o,n,t),void 0,null),no===null)throw Error(ge(349));Pl&30||CT(r,t,n)}return n}function CT(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Sr.updateQueue,t===null?(t={lastEffect:null,stores:null},Sr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function bT(e,t,r,o){t.value=r,t.getSnapshot=o,ET(t)&&RT(e)}function wT(e,t,r){return r(function(){ET(t)&&RT(e)})}function ET(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bi(e,r)}catch{return!0}}function RT(e){var t=Na(e,1);t!==null&&Ci(t,e,1,-1)}function q_(e){var t=Gi();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=DB.bind(null,Sr,e),[t.memoizedState,e]}function Pd(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Sr.updateQueue,t===null?(t={lastEffect:null,stores:null},Sr.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 OT(){return qn().memoizedState}function ug(e,t,r,o){var n=Gi();Sr.flags|=e,n.memoizedState=Pd(1|t,r,void 0,o===void 0?null:o)}function Ug(e,t,r,o){var n=qn();o=o===void 0?null:o;var i=void 0;if(Kr!==null){var a=Kr.memoizedState;if(i=a.destroy,o!==null&&KC(o,a.deps)){n.memoizedState=Pd(t,r,i,o);return}}Sr.flags|=e,n.memoizedState=Pd(1|t,r,i,o)}function K_(e,t){return ug(8390656,8,e,t)}function QC(e,t){return Ug(2048,8,e,t)}function _T(e,t){return Ug(4,2,e,t)}function PT(e,t){return Ug(4,4,e,t)}function TT(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 NT(e,t,r){return r=r!=null?r.concat([e]):null,Ug(4,4,TT.bind(null,t,e),r)}function ZC(){}function IT(e,t){var r=qn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&KC(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function $T(e,t){var r=qn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&KC(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function DT(e,t,r){return Pl&21?(bi(r,t)||(r=FP(),Sr.lanes|=r,Tl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=r)}function IB(e,t){var r=jt;jt=r!==0&&4>r?r:4,e(!0);var o=bS.transition;bS.transition={};try{e(!1),t()}finally{jt=r,bS.transition=o}}function MT(){return qn().memoizedState}function $B(e,t,r){var o=Es(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},AT(e))LT(t,r);else if(r=hT(e,t,r,o),r!==null){var n=Ho();Ci(r,e,o,n),kT(r,t,o)}}function DB(e,t,r){var o=Es(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(AT(e))LT(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,VC(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=hT(e,t,n,o),r!==null&&(n=Ho(),Ci(r,e,o,n),kT(r,t,o))}}function AT(e){var t=e.alternate;return e===Sr||t!==null&&t===Sr}function LT(e,t){cd=$g=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function kT(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,TC(e,r)}}var Dg={readContext:Gn,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},MB={readContext:Gn,useCallback:function(e,t){return Gi().memoizedState=[e,t===void 0?null:t],e},useContext:Gn,useEffect:K_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ug(4194308,4,TT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ug(4194308,4,e,t)},useInsertionEffect:function(e,t){return ug(4,2,e,t)},useMemo:function(e,t){var r=Gi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Gi();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=$B.bind(null,Sr,e),[o.memoizedState,e]},useRef:function(e){var t=Gi();return e={current:e},t.memoizedState=e},useState:q_,useDebugValue:ZC,useDeferredValue:function(e){return Gi().memoizedState=e},useTransition:function(){var e=q_(!1),t=e[0];return e=IB.bind(null,e[1]),Gi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Sr,n=Gi();if(pr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),no===null)throw Error(ge(349));Pl&30||CT(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,K_(wT.bind(null,o,i,e),[e]),o.flags|=2048,Pd(9,bT.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Gi(),t=no.identifierPrefix;if(pr){var r=Oa,o=Ra;r=(o&~(1<<32-Si(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Od++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=NB++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},AB={readContext:Gn,useCallback:IT,useContext:Gn,useEffect:QC,useImperativeHandle:NT,useInsertionEffect:_T,useLayoutEffect:PT,useMemo:$T,useReducer:wS,useRef:OT,useState:function(){return wS(_d)},useDebugValue:ZC,useDeferredValue:function(e){var t=qn();return DT(t,Kr.memoizedState,e)},useTransition:function(){var e=wS(_d)[0],t=qn().memoizedState;return[e,t]},useMutableSource:xT,useSyncExternalStore:ST,useId:MT,unstable_isNewReconciler:!1},LB={readContext:Gn,useCallback:IT,useContext:Gn,useEffect:QC,useImperativeHandle:NT,useInsertionEffect:_T,useLayoutEffect:PT,useMemo:$T,useReducer:ES,useRef:OT,useState:function(){return ES(_d)},useDebugValue:ZC,useDeferredValue:function(e){var t=qn();return Kr===null?t.memoizedState=e:DT(t,Kr.memoizedState,e)},useTransition:function(){var e=ES(_d)[0],t=qn().memoizedState;return[e,t]},useMutableSource:xT,useSyncExternalStore:ST,useId:MT,unstable_isNewReconciler:!1};function vi(e,t){if(e&&e.defaultProps){t=Cr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function iC(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Cr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Gg={isMounted:function(e){return(e=e._reactInternals)?$l(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Ho(),n=Es(e),i=_a(o,n);i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,n),t!==null&&(Ci(t,e,n,o),lg(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Ho(),n=Es(e),i=_a(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,n),t!==null&&(Ci(t,e,n,o),lg(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ho(),o=Es(e),n=_a(r,o);n.tag=2,t!=null&&(n.callback=t),t=bs(e,n,o),t!==null&&(Ci(t,e,o,r),lg(t,e,o))}};function X_(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 FT(e,t,r){var o=!1,n=_s,i=t.contextType;return typeof i=="object"&&i!==null?i=Gn(i):(n=on(t)?Ol:To.current,o=t.contextTypes,i=(o=o!=null)?Jc(e,n):_s),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gg,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Y_(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&&Gg.enqueueReplaceState(t,t.state,null)}function aC(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},HC(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Gn(i):(i=on(t)?Ol:To.current,n.context=Jc(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(iC(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&&Gg.enqueueReplaceState(n,n.state,null),Ng(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function ou(e,t){try{var r="",o=t;do r+=d6(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 RS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function sC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kB=typeof WeakMap=="function"?WeakMap:Map;function zT(e,t,r){r=_a(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Ag||(Ag=!0,vC=o),sC(e,t)},r}function BT(e,t,r){r=_a(-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(){sC(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){sC(e,t),typeof o!="function"&&(ws===null?ws=new Set([this]):ws.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Q_(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new kB;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=QB.bind(null,e,t,r),t.then(e,e))}function Z_(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 J_(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=_a(-1,1),t.tag=2,bs(r,t,1))),r.lanes|=1),e)}var FB=$a.ReactCurrentOwner,tn=!1;function Vo(e,t,r,o){t.child=e===null?gT(t,null,r,o):tu(t,e.child,r,o)}function eP(e,t,r,o,n){r=r.render;var i=t.ref;return Yc(t,n),o=XC(e,t,r,o,i,n),r=YC(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Ia(e,t,n)):(pr&&r&&kC(t),t.flags|=1,Vo(e,t,o,n),t.child)}function tP(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!ab(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,jT(e,t,i,o,n)):(e=pg(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 Ia(e,t,n)}return t.flags|=1,e=Rs(i,o),e.ref=t.ref,e.return=t,t.child=e}function jT(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,Ia(e,t,n)}return lC(e,t,r,o,n)}function WT(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(Uc,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(Uc,xn),xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Jt(Uc,xn),xn|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Jt(Uc,xn),xn|=o;return Vo(e,t,n,r),t.child}function VT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function lC(e,t,r,o,n){var i=on(r)?Ol:To.current;return i=Jc(t,i),Yc(t,n),r=XC(e,t,r,o,i,n),o=YC(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Ia(e,t,n)):(pr&&o&&kC(t),t.flags|=1,Vo(e,t,r,n),t.child)}function rP(e,t,r,o,n){if(on(r)){var i=!0;Rg(t)}else i=!1;if(Yc(t,n),t.stateNode===null)fg(e,t),FT(t,r,o),aC(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=Gn(c):(c=on(r)?Ol:To.current,c=Jc(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)&&Y_(t,a,o,c),ms=!1;var d=t.memoizedState;a.state=d,Ng(t,o,a,n),l=t.memoizedState,s!==o||d!==l||rn.current||ms?(typeof u=="function"&&(iC(t,r,u,o),l=t.memoizedState),(s=ms||X_(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,vT(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Gn(l):(l=on(r)?Ol:To.current,l=Jc(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)&&Y_(t,a,o,l),ms=!1,d=t.memoizedState,a.state=d,Ng(t,o,a,n);var h=t.memoizedState;s!==f||d!==h||rn.current||ms?(typeof p=="function"&&(iC(t,r,p,o),h=t.memoizedState),(c=ms||X_(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 cC(e,t,r,o,i,n)}function cC(e,t,r,o,n,i){VT(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&j_(t,r,!1),Ia(e,t,i);o=t.stateNode,FB.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=tu(t,e.child,null,i),t.child=tu(t,null,s,i)):Vo(e,t,s,i),t.memoizedState=o.state,n&&j_(t,r,!0),t.child}function HT(e){var t=e.stateNode;t.pendingContext?B_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&B_(e,t.context,!1),UC(e,t.containerInfo)}function oP(e,t,r,o,n){return eu(),zC(n),t.flags|=256,Vo(e,t,r,o),t.child}var uC={dehydrated:null,treeContext:null,retryLane:0};function fC(e){return{baseLanes:e,cachePool:null,transitions:null}}function UT(e,t,r){var o=t.pendingProps,n=xr.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(xr,n&1),e===null)return oC(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=Xg(a,o,0,null),e=Rl(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=fC(r),t.memoizedState=uC,e):JC(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return zB(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=Rs(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=Rs(s,i):(i=Rl(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?fC(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=uC,o}return i=e.child,e=i.sibling,o=Rs(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 JC(e,t){return t=Xg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rg(e,t,r,o){return o!==null&&zC(o),tu(t,e.child,null,r),e=JC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zB(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=RS(Error(ge(422))),rg(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Xg({mode:"visible",children:o.children},n,0,null),i=Rl(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&tu(t,e.child,null,a),t.child.memoizedState=fC(a),t.memoizedState=uC,i);if(!(t.mode&1))return rg(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=RS(i,o,void 0),rg(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,Na(e,n),Ci(o,e,n,-1))}return ib(),o=RS(Error(ge(421))),rg(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=ZB.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Sn=Cs(n.nextSibling),Cn=t,pr=!0,xi=null,e!==null&&(Wn[Vn++]=Ra,Wn[Vn++]=Oa,Wn[Vn++]=_l,Ra=e.id,Oa=e.overflow,_l=t),t=JC(t,o.children),t.flags|=4096,t)}function nP(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),nC(e.return,t,r)}function OS(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 GT(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Vo(e,t,o.children,r),o=xr.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&&nP(e,r,t);else if(e.tag===19)nP(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(xr,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&&Ig(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),OS(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&&Ig(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}OS(t,!0,r,null,i);break;case"together":OS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ia(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Tl|=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=Rs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Rs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function BB(e,t,r){switch(t.tag){case 3:HT(t),eu();break;case 5:yT(t);break;case 1:on(t.type)&&Rg(t);break;case 4:UC(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Jt(Pg,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Jt(xr,xr.current&1),t.flags|=128,null):r&t.child.childLanes?UT(e,t,r):(Jt(xr,xr.current&1),e=Ia(e,t,r),e!==null?e.sibling:null);Jt(xr,xr.current&1);break;case 19:if(o=(r&t.childLanes)!==0,e.flags&128){if(o)return GT(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Jt(xr,xr.current),o)break;return null;case 22:case 23:return t.lanes=0,WT(e,t,r)}return Ia(e,t,r)}var qT,dC,KT,XT;qT=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}};dC=function(){};KT=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,wl(Xi.current);var i=null;switch(r){case"input":n=MS(e,n),o=MS(e,o),i=[];break;case"select":n=Cr({},n,{value:void 0}),o=Cr({},o,{value:void 0}),i=[];break;case"textarea":n=kS(e,n),o=kS(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=wg)}zS(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)}};XT=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 jB(e,t,r){var o=t.pendingProps;switch(FC(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)&&Eg(),_o(t),null;case 3:return o=t.stateNode,ru(),or(rn),or(To),qC(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(eg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xi!==null&&(SC(xi),xi=null))),dC(e,t),_o(t),null;case 5:GC(t);var n=wl(Rd.current);if(r=t.type,e!==null&&t.stateNode!=null)KT(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=wl(Xi.current),eg(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[qi]=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":d_(o,i),rr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},rr("invalid",o);break;case"textarea":p_(o,i),rr("invalid",o)}zS(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&&Jp(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Jp(o.textContent,s,e),n=["children",""+s]):md.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&rr("scroll",o)}switch(r){case"input":jp(o),m_(o,i,!0);break;case"textarea":jp(o),g_(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=wg)}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=wP(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[qi]=t,e[wd]=o,qT(e,t,!1,!1),t.stateNode=e;e:{switch(a=BS(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":d_(e,o),n=MS(e,o),rr("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=Cr({},o,{value:void 0}),rr("invalid",e);break;case"textarea":p_(e,o),n=kS(e,o),rr("invalid",e);break;default:n=o}zS(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?OP(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&EP(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&&wC(e,i,l,a))}switch(r){case"input":jp(e),m_(e,o,!1);break;case"textarea":jp(e),g_(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Os(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Gc(e,!!o.multiple,i,!1):o.defaultValue!=null&&Gc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=wg)}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)XT(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(ge(166));if(r=wl(Rd.current),wl(Xi.current),eg(t)){if(o=t.stateNode,r=t.memoizedProps,o[qi]=t,(i=o.nodeValue!==r)&&(e=Cn,e!==null))switch(e.tag){case 3:Jp(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jp(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[qi]=t,t.stateNode=o}return _o(t),null;case 13:if(or(xr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pr&&Sn!==null&&t.mode&1&&!(t.flags&128))mT(),eu(),t.flags|=98560,i=!1;else if(i=eg(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[qi]=t}else eu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_o(t),i=!1}else xi!==null&&(SC(xi),xi=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||xr.current&1?Xr===0&&(Xr=3):ib())),t.updateQueue!==null&&(t.flags|=4),_o(t),null);case 4:return ru(),dC(e,t),e===null&&Cd(t.stateNode.containerInfo),_o(t),null;case 10:return WC(t.type._context),_o(t),null;case 17:return on(t.type)&&Eg(),_o(t),null;case 19:if(or(xr),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(Xr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ig(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(xr,xr.current&1|2),t.child}e=e.sibling}i.tail!==null&&Mr()>nu&&(t.flags|=128,o=!0,Qf(i,!1),t.lanes=4194304)}else{if(!o)if(e=Ig(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>nu&&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=xr.current,Jt(xr,o?r&1|2:r&1),t):(_o(t),null);case 22:case 23:return nb(),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 WB(e,t){switch(FC(t),t.tag){case 1:return on(t.type)&&Eg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ru(),or(rn),or(To),qC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return GC(t),null;case 13:if(or(xr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return or(xr),null;case 4:return ru(),null;case 10:return WC(t.type._context),null;case 22:case 23:return nb(),null;case 24:return null;default:return null}}var og=!1,Po=!1,VB=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Hc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){_r(e,t,o)}else r.current=null}function mC(e,t,r){try{r()}catch(o){_r(e,t,o)}}var iP=!1;function HB(e,t){if(YS=Sg,e=eT(),LC(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(QS={focusedElem:e,selectionRange:r},Sg=!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:vi(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(C){_r(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=iP,iP=!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&&mC(t,r,i)}n=n.next}while(n!==o)}}function qg(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 pC(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 YT(e){var t=e.alternate;t!==null&&(e.alternate=null,YT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qi],delete t[wd],delete t[eC],delete t[OB],delete t[_B])),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 QT(e){return e.tag===5||e.tag===3||e.tag===4}function aP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QT(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 gC(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=wg));else if(o!==4&&(e=e.child,e!==null))for(gC(e,t,r),e=e.sibling;e!==null;)gC(e,t,r),e=e.sibling}function hC(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(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}var po=null,yi=!1;function fs(e,t,r){for(r=r.child;r!==null;)ZT(e,t,r),r=r.sibling}function ZT(e,t,r){if(Ki&&typeof Ki.onCommitFiberUnmount=="function")try{Ki.onCommitFiberUnmount(zg,r)}catch{}switch(r.tag){case 5:Po||Hc(r,t);case 6:var o=po,n=yi;po=null,fs(e,t,r),po=o,yi=n,po!==null&&(yi?(e=po,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):po.removeChild(r.stateNode));break;case 18:po!==null&&(yi?(e=po,r=r.stateNode,e.nodeType===8?xS(e.parentNode,r):e.nodeType===1&&xS(e,r),yd(e)):xS(po,r.stateNode));break;case 4:o=po,n=yi,po=r.stateNode.containerInfo,yi=!0,fs(e,t,r),po=o,yi=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)&&mC(r,t,a),n=n.next}while(n!==o)}fs(e,t,r);break;case 1:if(!Po&&(Hc(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){_r(r,t,s)}fs(e,t,r);break;case 21:fs(e,t,r);break;case 22:r.mode&1?(Po=(o=Po)||r.memoizedState!==null,fs(e,t,r),Po=o):fs(e,t,r);break;default:fs(e,t,r)}}function sP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new VB),t.forEach(function(o){var n=JB.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function hi(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,yi=!1;break e;case 3:po=s.stateNode.containerInfo,yi=!0;break e;case 4:po=s.stateNode.containerInfo,yi=!0;break e}s=s.return}if(po===null)throw Error(ge(160));ZT(i,a,n),po=null,yi=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){_r(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)JT(t,e),t=t.sibling}function JT(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hi(t,e),Ui(e),o&4){try{ud(3,e,e.return),qg(3,e)}catch(v){_r(e,e.return,v)}try{ud(5,e,e.return)}catch(v){_r(e,e.return,v)}}break;case 1:hi(t,e),Ui(e),o&512&&r!==null&&Hc(r,r.return);break;case 5:if(hi(t,e),Ui(e),o&512&&r!==null&&Hc(r,r.return),e.flags&32){var n=e.stateNode;try{pd(n,"")}catch(v){_r(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&&CP(n,i),BS(s,a);var c=BS(s,i);for(a=0;a<l.length;a+=2){var u=l[a],f=l[a+1];u==="style"?OP(n,f):u==="dangerouslySetInnerHTML"?EP(n,f):u==="children"?pd(n,f):wC(n,u,f,c)}switch(s){case"input":AS(n,i);break;case"textarea":bP(n,i);break;case"select":var d=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Gc(n,!!i.multiple,p,!1):d!==!!i.multiple&&(i.defaultValue!=null?Gc(n,!!i.multiple,i.defaultValue,!0):Gc(n,!!i.multiple,i.multiple?[]:"",!1))}n[wd]=i}catch(v){_r(e,e.return,v)}}break;case 6:if(hi(t,e),Ui(e),o&4){if(e.stateNode===null)throw Error(ge(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(v){_r(e,e.return,v)}}break;case 3:if(hi(t,e),Ui(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{yd(t.containerInfo)}catch(v){_r(e,e.return,v)}break;case 4:hi(t,e),Ui(e);break;case 13:hi(t,e),Ui(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(rb=Mr())),o&4&&sP(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Po=(c=Po)||u,hi(t,e),Po=c):hi(t,e),Ui(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:Hc(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){_r(o,r,v)}}break;case 5:Hc(d,d.return);break;case 22:if(d.memoizedState!==null){cP(f);continue}}p!==null?(p.return=d,qe=p):cP(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=RP("display",a))}catch(v){_r(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){_r(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:hi(t,e),Ui(e),o&4&&sP(e);break;case 21:break;default:hi(t,e),Ui(e)}}function Ui(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(QT(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=aP(e);hC(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=aP(e);gC(e,s,a);break;default:throw Error(ge(161))}}catch(l){_r(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UB(e,t,r){qe=e,eN(e,t,r)}function eN(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||og;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||Po;s=og;var c=Po;if(og=a,(Po=l)&&!c)for(qe=n;qe!==null;)a=qe,l=a.child,a.tag===22&&a.memoizedState!==null?uP(n):l!==null?(l.return=a,qe=l):uP(n);for(;i!==null;)qe=i,eN(i,t,r),i=i.sibling;qe=n,og=s,Po=c}lP(e,t,r)}else n.subtreeFlags&8772&&i!==null?(i.return=n,qe=i):lP(e,t,r)}}function lP(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||qg(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:vi(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&G_(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}G_(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&&pC(t)}catch(d){_r(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 cP(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 uP(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{qg(4,t)}catch(l){_r(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){_r(t,n,l)}}var i=t.return;try{pC(t)}catch(l){_r(t,i,l)}break;case 5:var a=t.return;try{pC(t)}catch(l){_r(t,a,l)}}}catch(l){_r(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 GB=Math.ceil,Mg=$a.ReactCurrentDispatcher,eb=$a.ReactCurrentOwner,Un=$a.ReactCurrentBatchConfig,Dt=0,no=null,Wr=null,go=0,xn=0,Uc=Ts(0),Xr=0,Td=null,Tl=0,Kg=0,tb=0,fd=null,en=null,rb=0,nu=1/0,wa=null,Ag=!1,vC=null,ws=null,ng=!1,vs=null,Lg=0,dd=0,yC=null,dg=-1,mg=0;function Ho(){return Dt&6?Mr():dg!==-1?dg:dg=Mr()}function Es(e){return e.mode&1?Dt&2&&go!==0?go&-go:TB.transition!==null?(mg===0&&(mg=FP()),mg):(e=jt,e!==0||(e=window.event,e=e===void 0?16:UP(e.type)),e):1}function Ci(e,t,r,o){if(50<dd)throw dd=0,yC=null,Error(ge(185));Nd(e,r,o),(!(Dt&2)||e!==no)&&(e===no&&(!(Dt&2)&&(Kg|=r),Xr===4&&gs(e,go)),nn(e,o),r===1&&Dt===0&&!(t.mode&1)&&(nu=Mr()+500,Hg&&Ns()))}function nn(e,t){var r=e.callbackNode;I6(e,t);var o=xg(e,e===no?go:0);if(o===0)r!==null&&y_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&y_(r),t===1)e.tag===0?PB(fP.bind(null,e)):uT(fP.bind(null,e)),EB(function(){!(Dt&6)&&Ns()}),r=null;else{switch(zP(o)){case 1:r=PC;break;case 4:r=LP;break;case 16:r=yg;break;case 536870912:r=kP;break;default:r=yg}r=lN(r,tN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function tN(e,t){if(dg=-1,mg=0,Dt&6)throw Error(ge(327));var r=e.callbackNode;if(Qc()&&e.callbackNode!==r)return null;var o=xg(e,e===no?go:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=kg(e,o);else{t=o;var n=Dt;Dt|=2;var i=oN();(no!==e||go!==t)&&(wa=null,nu=Mr()+500,El(e,t));do try{XB();break}catch(s){rN(e,s)}while(!0);jC(),Mg.current=i,Dt=n,Wr!==null?t=0:(no=null,go=0,t=Xr)}if(t!==0){if(t===2&&(n=US(e),n!==0&&(o=n,t=xC(e,n))),t===1)throw r=Td,El(e,0),gs(e,o),nn(e,Mr()),r;if(t===6)gs(e,o);else{if(n=e.current.alternate,!(o&30)&&!qB(n)&&(t=kg(e,o),t===2&&(i=US(e),i!==0&&(o=i,t=xC(e,i))),t===1))throw r=Td,El(e,0),gs(e,o),nn(e,Mr()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(ge(345));case 2:Sl(e,en,wa);break;case 3:if(gs(e,o),(o&130023424)===o&&(t=rb+500-Mr(),10<t)){if(xg(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){Ho(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=JS(Sl.bind(null,e,en,wa),t);break}Sl(e,en,wa);break;case 4:if(gs(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-Si(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*GB(o/1960))-o,10<o){e.timeoutHandle=JS(Sl.bind(null,e,en,wa),o);break}Sl(e,en,wa);break;case 5:Sl(e,en,wa);break;default:throw Error(ge(329))}}}return nn(e,Mr()),e.callbackNode===r?tN.bind(null,e):null}function xC(e,t){var r=fd;return e.current.memoizedState.isDehydrated&&(El(e,t).flags|=256),e=kg(e,t),e!==2&&(t=en,en=r,t!==null&&SC(t)),e}function SC(e){en===null?en=e:en.push.apply(en,e)}function qB(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 gs(e,t){for(t&=~tb,t&=~Kg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Si(t),o=1<<r;e[r]=-1,t&=~o}}function fP(e){if(Dt&6)throw Error(ge(327));Qc();var t=xg(e,0);if(!(t&1))return nn(e,Mr()),null;var r=kg(e,t);if(e.tag!==0&&r===2){var o=US(e);o!==0&&(t=o,r=xC(e,o))}if(r===1)throw r=Td,El(e,0),gs(e,t),nn(e,Mr()),r;if(r===6)throw Error(ge(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,en,wa),nn(e,Mr()),null}function ob(e,t){var r=Dt;Dt|=1;try{return e(t)}finally{Dt=r,Dt===0&&(nu=Mr()+500,Hg&&Ns())}}function Nl(e){vs!==null&&vs.tag===0&&!(Dt&6)&&Qc();var t=Dt;Dt|=1;var r=Un.transition,o=jt;try{if(Un.transition=null,jt=1,e)return e()}finally{jt=o,Un.transition=r,Dt=t,!(Dt&6)&&Ns()}}function nb(){xn=Uc.current,or(Uc)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,wB(r)),Wr!==null)for(r=Wr.return;r!==null;){var o=r;switch(FC(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Eg();break;case 3:ru(),or(rn),or(To),qC();break;case 5:GC(o);break;case 4:ru();break;case 13:or(xr);break;case 19:or(xr);break;case 10:WC(o.type._context);break;case 22:case 23:nb()}r=r.return}if(no=e,Wr=e=Rs(e.current,null),go=xn=t,Xr=0,Td=null,tb=Kg=Tl=0,en=fd=null,bl!==null){for(t=0;t<bl.length;t++)if(r=bl[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}bl=null}return e}function rN(e,t){do{var r=Wr;try{if(jC(),cg.current=Dg,$g){for(var o=Sr.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}$g=!1}if(Pl=0,oo=Kr=Sr=null,cd=!1,Od=0,eb.current=null,r===null||r.return===null){Xr=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=Z_(a);if(p!==null){p.flags&=-257,J_(p,a,s,i,t),p.mode&1&&Q_(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)){Q_(i,c,t),ib();break e}l=Error(ge(426))}}else if(pr&&s.mode&1){var y=Z_(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),J_(y,a,s,i,t),zC(ou(l,s));break e}}i=l=ou(l,s),Xr!==4&&(Xr=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=zT(i,l,t);U_(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"&&(ws===null||!ws.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=BT(i,s,t);U_(i,C);break e}}i=i.return}while(i!==null)}iN(r)}catch(S){t=S,Wr===r&&r!==null&&(Wr=r=r.return);continue}break}while(!0)}function oN(){var e=Mg.current;return Mg.current=Dg,e===null?Dg:e}function ib(){(Xr===0||Xr===3||Xr===2)&&(Xr=4),no===null||!(Tl&268435455)&&!(Kg&268435455)||gs(no,go)}function kg(e,t){var r=Dt;Dt|=2;var o=oN();(no!==e||go!==t)&&(wa=null,El(e,t));do try{KB();break}catch(n){rN(e,n)}while(!0);if(jC(),Dt=r,Mg.current=o,Wr!==null)throw Error(ge(261));return no=null,go=0,Xr}function KB(){for(;Wr!==null;)nN(Wr)}function XB(){for(;Wr!==null&&!b6();)nN(Wr)}function nN(e){var t=sN(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?iN(e):Wr=t,eb.current=null}function iN(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=WB(r,t),r!==null){r.flags&=32767,Wr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xr=6,Wr=null;return}}else if(r=jB(r,t,xn),r!==null){Wr=r;return}if(t=t.sibling,t!==null){Wr=t;return}Wr=t=e}while(t!==null);Xr===0&&(Xr=5)}function Sl(e,t,r){var o=jt,n=Un.transition;try{Un.transition=null,jt=1,YB(e,t,r,o)}finally{Un.transition=n,jt=o}return null}function YB(e,t,r,o){do Qc();while(vs!==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($6(e,i),e===no&&(Wr=no=null,go=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ng||(ng=!0,lN(yg,function(){return Qc(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Un.transition,Un.transition=null;var a=jt;jt=1;var s=Dt;Dt|=4,eb.current=null,HB(e,r),JT(r,e),yB(QS),Sg=!!YS,QS=YS=null,e.current=r,UB(r,e,n),w6(),Dt=s,jt=a,Un.transition=i}else e.current=r;if(ng&&(ng=!1,vs=e,Lg=n),i=e.pendingLanes,i===0&&(ws=null),O6(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(Ag)throw Ag=!1,e=vC,vC=null,e;return Lg&1&&e.tag!==0&&Qc(),i=e.pendingLanes,i&1?e===yC?dd++:(dd=0,yC=e):dd=0,Ns(),null}function Qc(){if(vs!==null){var e=zP(Lg),t=Un.transition,r=jt;try{if(Un.transition=null,jt=16>e?16:e,vs===null)var o=!1;else{if(e=vs,vs=null,Lg=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(YT(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:qg(9,s)}}catch(S){_r(s,s.return,S)}if(s===a){qe=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,qe=C;break e}qe=s.return}}if(Dt=n,Ns(),Ki&&typeof Ki.onPostCommitFiberRoot=="function")try{Ki.onPostCommitFiberRoot(zg,e)}catch{}o=!0}return o}finally{jt=r,Un.transition=t}}return!1}function dP(e,t,r){t=ou(r,t),t=zT(e,t,1),e=bs(e,t,1),t=Ho(),e!==null&&(Nd(e,1,t),nn(e,t))}function _r(e,t,r){if(e.tag===3)dP(e,e,r);else for(;t!==null;){if(t.tag===3){dP(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ws===null||!ws.has(o))){e=ou(r,e),e=BT(t,e,1),t=bs(t,e,1),e=Ho(),t!==null&&(Nd(t,1,e),nn(t,e));break}}t=t.return}}function QB(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Ho(),e.pingedLanes|=e.suspendedLanes&r,no===e&&(go&r)===r&&(Xr===4||Xr===3&&(go&130023424)===go&&500>Mr()-rb?El(e,0):tb|=r),nn(e,t)}function aN(e,t){t===0&&(e.mode&1?(t=Hp,Hp<<=1,!(Hp&130023424)&&(Hp=4194304)):t=1);var r=Ho();e=Na(e,t),e!==null&&(Nd(e,t,r),nn(e,r))}function ZB(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),aN(e,r)}function JB(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),aN(e,r)}var sN;sN=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,BB(e,t,r);tn=!!(e.flags&131072)}else tn=!1,pr&&t.flags&1048576&&fT(t,_g,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;fg(e,t),e=t.pendingProps;var n=Jc(t,To.current);Yc(t,r),n=XC(null,t,o,e,n,r);var i=YC();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,Rg(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,HC(t),n.updater=Gg,t.stateNode=n,n._reactInternals=t,aC(t,o,e,r),t=cC(null,t,o,!0,i,r)):(t.tag=0,pr&&i&&kC(t),Vo(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(fg(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=tj(o),e=vi(o,e),n){case 0:t=lC(null,t,o,e,r);break e;case 1:t=rP(null,t,o,e,r);break e;case 11:t=eP(null,t,o,e,r);break e;case 14:t=tP(null,t,o,vi(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:vi(o,n),lC(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:vi(o,n),rP(e,t,o,n,r);case 3:e:{if(HT(t),e===null)throw Error(ge(387));o=t.pendingProps,i=t.memoizedState,n=i.element,vT(e,t),Ng(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=ou(Error(ge(423)),t),t=oP(e,t,o,r,n);break e}else if(o!==n){n=ou(Error(ge(424)),t),t=oP(e,t,o,r,n);break e}else for(Sn=Cs(t.stateNode.containerInfo.firstChild),Cn=t,pr=!0,xi=null,r=gT(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(eu(),o===n){t=Ia(e,t,r);break e}Vo(e,t,o,r)}t=t.child}return t;case 5:return yT(t),e===null&&oC(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,ZS(o,n)?a=null:i!==null&&ZS(o,i)&&(t.flags|=32),VT(e,t),Vo(e,t,a,r),t.child;case 6:return e===null&&oC(t),null;case 13:return UT(e,t,r);case 4:return UC(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=tu(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:vi(o,n),eP(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(Pg,o._currentValue),o._currentValue=a,i!==null)if(bi(i.value,a)){if(i.children===n.children&&!rn.current){t=Ia(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=_a(-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),nC(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),nC(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,Yc(t,r),n=Gn(n),o=o(n),t.flags|=1,Vo(e,t,o,r),t.child;case 14:return o=t.type,n=vi(o,t.pendingProps),n=vi(o.type,n),tP(e,t,o,n,r);case 15:return jT(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:vi(o,n),fg(e,t),t.tag=1,on(o)?(e=!0,Rg(t)):e=!1,Yc(t,r),FT(t,o,n),aC(t,o,n,r),cC(null,t,o,!0,e,r);case 19:return GT(e,t,r);case 22:return WT(e,t,r)}throw Error(ge(156,t.tag))};function lN(e,t){return AP(e,t)}function ej(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 Hn(e,t,r,o){return new ej(e,t,r,o)}function ab(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tj(e){if(typeof e=="function")return ab(e)?1:0;if(e!=null){if(e=e.$$typeof,e===RC)return 11;if(e===OC)return 14}return 2}function Rs(e,t){var r=e.alternate;return r===null?(r=Hn(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 pg(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")ab(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ac:return Rl(r.children,n,i,t);case EC:a=8,n|=8;break;case NS:return e=Hn(12,r,t,n|2),e.elementType=NS,e.lanes=i,e;case IS:return e=Hn(13,r,t,n),e.elementType=IS,e.lanes=i,e;case $S:return e=Hn(19,r,t,n),e.elementType=$S,e.lanes=i,e;case yP:return Xg(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hP:a=10;break e;case vP:a=9;break e;case RC:a=11;break e;case OC:a=14;break e;case ds:a=16,o=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Hn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Rl(e,t,r,o){return e=Hn(7,e,o,t),e.lanes=r,e}function Xg(e,t,r,o){return e=Hn(22,e,o,t),e.elementType=yP,e.lanes=r,e.stateNode={isHidden:!1},e}function _S(e,t,r){return e=Hn(6,e,null,t),e.lanes=r,e}function PS(e,t,r){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rj(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=fS(0),this.expirationTimes=fS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fS(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function sb(e,t,r,o,n,i,a,s,l){return e=new rj(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},HC(i),e}function oj(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mc,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function cN(e){if(!e)return _s;e=e._reactInternals;e:{if($l(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 cT(e,r,t)}return t}function uN(e,t,r,o,n,i,a,s,l){return e=sb(r,o,!0,e,n,i,a,s,l),e.context=cN(null),r=e.current,o=Ho(),n=Es(r),i=_a(o,n),i.callback=t??null,bs(r,i,n),e.current.lanes=n,Nd(e,n,o),nn(e,o),e}function Yg(e,t,r,o){var n=t.current,i=Ho(),a=Es(n);return r=cN(r),t.context===null?t.context=r:t.pendingContext=r,t=_a(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=bs(n,t,a),e!==null&&(Ci(e,n,a,i),lg(e,n,a)),a}function Fg(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 mP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function lb(e,t){mP(e,t),(e=e.alternate)&&mP(e,t)}function nj(){return null}var fN=typeof reportError=="function"?reportError:function(e){console.error(e)};function cb(e){this._internalRoot=e}Qg.prototype.render=cb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ge(409));Yg(e,t,null,null)};Qg.prototype.unmount=cb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){Yg(null,e,null,null)}),t[Ta]=null}};function Qg(e){this._internalRoot=e}Qg.prototype.unstable_scheduleHydration=function(e){if(e){var t=WP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ps.length&&t!==0&&t<ps[r].priority;r++);ps.splice(r,0,e),r===0&&HP(e)}};function ub(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pP(){}function ij(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=Fg(a);i.call(c)}}var a=uN(t,o,e,0,null,!1,!1,"",pP);return e._reactRootContainer=a,e[Ta]=a.current,Cd(e.nodeType===8?e.parentNode:e),Nl(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=Fg(l);s.call(c)}}var l=sb(e,0,!1,null,null,!1,!1,"",pP);return e._reactRootContainer=l,e[Ta]=l.current,Cd(e.nodeType===8?e.parentNode:e),Nl(function(){Yg(t,l,r,o)}),l}function Jg(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=Fg(a);s.call(l)}}Yg(t,a,e,n)}else a=ij(r,t,e,n,o);return Fg(a)}BP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=rd(t.pendingLanes);r!==0&&(TC(t,r|1),nn(t,Mr()),!(Dt&6)&&(nu=Mr()+500,Ns()))}break;case 13:Nl(function(){var o=Na(e,1);if(o!==null){var n=Ho();Ci(o,e,1,n)}}),lb(e,1)}};NC=function(e){if(e.tag===13){var t=Na(e,134217728);if(t!==null){var r=Ho();Ci(t,e,134217728,r)}lb(e,134217728)}};jP=function(e){if(e.tag===13){var t=Es(e),r=Na(e,t);if(r!==null){var o=Ho();Ci(r,e,t,o)}lb(e,t)}};WP=function(){return jt};VP=function(e,t){var r=jt;try{return jt=e,t()}finally{jt=r}};WS=function(e,t,r){switch(t){case"input":if(AS(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=Vg(o);if(!n)throw Error(ge(90));SP(o),AS(o,n)}}}break;case"textarea":bP(e,r);break;case"select":t=r.value,t!=null&&Gc(e,!!r.multiple,t,!1)}};TP=ob;NP=Nl;var aj={usingClientEntryPoint:!1,Events:[$d,zc,Vg,_P,PP,ob]},Zf={findFiberByHostInstance:Cl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sj={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:$a.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=DP(e),e===null?null:e.stateNode},findFiberByHostInstance:Zf.findFiberByHostInstance||nj,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{zg=Jf.inject(sj),Ki=Jf}catch{}var Jf;En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aj;En.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ub(t))throw Error(ge(200));return oj(e,t,null,r)};En.createRoot=function(e,t){if(!ub(e))throw Error(ge(299));var r=!1,o="",n=fN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=sb(e,1,!1,null,null,r,!1,o,n),e[Ta]=t.current,Cd(e.nodeType===8?e.parentNode:e),new cb(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=DP(t),e=e===null?null:e.stateNode,e};En.flushSync=function(e){return Nl(e)};En.hydrate=function(e,t,r){if(!Zg(t))throw Error(ge(200));return Jg(null,e,t,!0,r)};En.hydrateRoot=function(e,t,r){if(!ub(e))throw Error(ge(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=fN;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=uN(t,null,e,1,r??null,n,!1,i,a),e[Ta]=t.current,Cd(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 Qg(t)};En.render=function(e,t,r){if(!Zg(t))throw Error(ge(200));return Jg(null,e,t,!1,r)};En.unmountComponentAtNode=function(e){if(!Zg(e))throw Error(ge(40));return e._reactRootContainer?(Nl(function(){Jg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ta]=null})}),!0):!1};En.unstable_batchedUpdates=ob;En.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Zg(r))throw Error(ge(200));if(e==null||e._reactInternals===void 0)throw Error(ge(38));return Jg(e,t,r,!1,o)};En.version="18.3.1-next-f1338f8080-20240426"});var wi=Fn((NJ,pN)=>{"use strict";function mN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mN)}catch(e){console.error(e)}}mN(),pN.exports=dN()});var hN=Fn(fb=>{"use strict";var gN=wi();fb.createRoot=gN.createRoot,fb.hydrateRoot=gN.hydrateRoot;var IJ});var xN=Fn(eh=>{"use strict";var cj=I(),uj=Symbol.for("react.element"),fj=Symbol.for("react.fragment"),dj=Object.prototype.hasOwnProperty,mj=cj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pj={key:!0,ref:!0,__self:!0,__source:!0};function yN(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)dj.call(t,o)&&!pj.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:uj,type:e,key:i,ref:a,props:n,_owner:mj.current}}eh.Fragment=fj;eh.jsx=yN;eh.jsxs=yN});var Wt=Fn((AJ,SN)=>{"use strict";SN.exports=xN()});var we=Fn((see,lh)=>{"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 lh<"u"&&lh.exports?(t.default=t,lh.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var LN=Fn(Ht=>{"use strict";var hb=Symbol.for("react.element"),vb=Symbol.for("react.portal"),fh=Symbol.for("react.fragment"),dh=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),ph=Symbol.for("react.provider"),gh=Symbol.for("react.context"),wj=Symbol.for("react.server_context"),hh=Symbol.for("react.forward_ref"),vh=Symbol.for("react.suspense"),yh=Symbol.for("react.suspense_list"),xh=Symbol.for("react.memo"),Sh=Symbol.for("react.lazy"),Ej=Symbol.for("react.offscreen"),AN;AN=Symbol.for("react.module.reference");function Kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hb:switch(e=e.type,e){case fh:case mh:case dh:case vh:case yh:return e;default:switch(e=e&&e.$$typeof,e){case wj:case gh:case hh:case Sh:case xh:case ph:return e;default:return t}}case vb:return t}}}Ht.ContextConsumer=gh;Ht.ContextProvider=ph;Ht.Element=hb;Ht.ForwardRef=hh;Ht.Fragment=fh;Ht.Lazy=Sh;Ht.Memo=xh;Ht.Portal=vb;Ht.Profiler=mh;Ht.StrictMode=dh;Ht.Suspense=vh;Ht.SuspenseList=yh;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Kn(e)===gh};Ht.isContextProvider=function(e){return Kn(e)===ph};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hb};Ht.isForwardRef=function(e){return Kn(e)===hh};Ht.isFragment=function(e){return Kn(e)===fh};Ht.isLazy=function(e){return Kn(e)===Sh};Ht.isMemo=function(e){return Kn(e)===xh};Ht.isPortal=function(e){return Kn(e)===vb};Ht.isProfiler=function(e){return Kn(e)===mh};Ht.isStrictMode=function(e){return Kn(e)===dh};Ht.isSuspense=function(e){return Kn(e)===vh};Ht.isSuspenseList=function(e){return Kn(e)===yh};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fh||e===mh||e===dh||e===vh||e===yh||e===Ej||typeof e=="object"&&e!==null&&(e.$$typeof===Sh||e.$$typeof===xh||e.$$typeof===ph||e.$$typeof===gh||e.$$typeof===hh||e.$$typeof===AN||e.getModuleId!==void 0)};Ht.typeOf=Kn});var FN=Fn((_ee,kN)=>{"use strict";kN.exports=LN()});var vx={"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 yx={"### 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 WR=typeof gx<"u"?gx:void 0,xx="en";typeof navigator<"u"&&navigator.language?xx=navigator.language=="zh-CN"?"zhcn":"en":WR&&(xx=WR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function ve(e,...t){let r=xx=="zhcn"?yx[e]:e in vx?vx[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 dl(e,t){return e==t||yx[e]==t}var jr=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return dl(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 dl(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 dl(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 dl(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 dl(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 dl(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 Sx={};hx(Sx,{JsonPatchError:()=>Or,_areEquals:()=>Pf,applyOperation:()=>ml,applyPatch:()=>bc,applyReducer:()=>fz,deepClone:()=>cz,getValueByPointer:()=>pl,validate:()=>HR,validator:()=>ip});var sz=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)}}(),lz=Object.prototype.hasOwnProperty;function rp(e,t){return lz.call(e,t)}function op(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)rp(e,n)&&o.push(n);return o}function Rr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function np(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 ji(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 tp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(tp(e[t]))return!0}else if(typeof e=="object"){for(var o=op(e),n=o.length,i=0;i<n;i++)if(tp(e[o[i]]))return!0}}return!1}function VR(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){sz(t,e);function t(r,o,n,i,a){var s=this.constructor,l=e.call(this,VR(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=VR(r,{name:o,index:n,operation:i,tree:a}),l}return t}(Error);var Or=_f,cz=Rr,Cc={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=pl(r,this.path);o&&(o=Rr(o));var n=ml(r,{op:"remove",path:this.from}).removed;return ml(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:o}},copy:function(e,t,r){var o=pl(r,this.from);return ml(r,{op:"add",path:this.path,value:Rr(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}}},uz={add:function(e,t,r){return np(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:Cc.move,copy:Cc.copy,test:Cc.test,_get:Cc._get};function pl(e,t){if(t=="")return e;var r={op:"_get",path:t};return ml(e,r),r.value}function ml(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):ip(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=pl(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 Or("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 Or("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{o||(e=Rr(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=ip;;){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&&!np(p))throw new Or("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);np(p)&&(p=~~p)}if(u>=f){if(r&&t.op==="add"&&p>c.length)throw new Or("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=uz[t.op].call(t,c,p,e);if(a.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=Cc[t.op].call(t,c,p,e);if(a.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[p],r&&u<f&&(!c||typeof c!="object"))throw new Or("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function bc(e,t,r,o,n){if(o===void 0&&(o=!0),n===void 0&&(n=!0),r&&!Array.isArray(t))throw new Or("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(e=Rr(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=ml(e,t[a],r,!0,n,a),e=i[a].newDocument;return i.newDocument=e,i}function fz(e,t,r){var o=ml(e,t);if(o.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return o.newDocument}function ip(e,t,r,o){if(typeof e!="object"||e===null||Array.isArray(e))throw new Or("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Cc[e.op]){if(typeof e.path!="string")throw new Or("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Or('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 Or("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 Or("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")&&tp(e.value))throw new Or("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 Or("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 Or("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=HR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Or("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Or("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function HR(e,t,r){try{if(!Array.isArray(e))throw new Or("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)bc(Rr(t),Rr(e),r||!0);else{r=r||ip;for(var o=0;o<e.length;o++)r(e[o],o,t,void 0)}}catch(n){if(n instanceof Or)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 Ex={};hx(Ex,{compare:()=>ap,generate:()=>Cx,observe:()=>yz,unobserve:()=>vz});var bx=new WeakMap,dz=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),mz=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function pz(e){return bx.get(e)}function gz(e,t){return e.observers.get(t)}function hz(e,t){e.observers.delete(t.callback)}function vz(e,t){t.unobserve()}function yz(e,t){var r=[],o,n=pz(e);if(!n)n=new dz(e),bx.set(e,n);else{var i=gz(n,t);o=i&&i.observer}if(o)return o;if(o={},n.value=Rr(e),t){o.callback=t,o.next=null;var a=function(){Cx(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(){Cx(o),clearTimeout(o.next),hz(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 mz(t,o)),o}function Cx(e,t){t===void 0&&(t=!1);var r=bx.get(e.object);wx(r.value,e.object,e.patches,"",t),e.patches.length&&bc(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function wx(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=op(t),a=op(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(rp(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)?wx(f,d,r,o+"/"+ji(u),n):f!==d&&(s=!0,n&&r.push({op:"test",path:o+"/"+ji(u),value:Rr(f)}),r.push({op:"replace",path:o+"/"+ji(u),value:Rr(d)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+ji(u),value:Rr(f)}),r.push({op:"remove",path:o+"/"+ji(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];!rp(e,u)&&t[u]!==void 0&&r.push({op:"add",path:o+"/"+ji(u),value:Rr(t[u])})}}}function ap(e,t,r){r===void 0&&(r=!1);var o=[];return wx(e,t,o,"",r),o}var CX=Object.assign({},Sx,Ex,{JsonPatchError:_f,deepClone:Rr,escapePathComponent:ji,unescapePathComponent:Of});var sp=Symbol("STORE_MUTATIONS"),Rx=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=Rr(this._data);bc(this._data,t),this._version+=t.length,this.storedMinVersion=this._version,this.dispatch(t,r)}get data(){return Rr(this._data)}static[sp]=[];constructor(t){this._data=Rr(t)}sync(t,r){let o=this._data,n=ap(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:pl(r,i)))})}),o.forEach((n,i)=>{let a=i==="/"?this._data:pl(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 qr(e,t,r){return e.constructor[sp]||(e.constructor[sp]=[]),e.constructor[sp].push(t),{value:function(...o){let n=Rr(this._data);r.value.apply(this,o);let i=ap(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var gl=class extends Rx{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Br([qr],gl.prototype,"setSID",1);var Jo=class extends gl{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([qr],Jo.prototype,"setWebviewFromSid",1),Br([qr],Jo.prototype,"setTitle",1),Br([qr],Jo.prototype,"setProgress",1),Br([qr],Jo.prototype,"setLastError",1),Br([qr],Jo.prototype,"setQueueSize",1),Br([qr],Jo.prototype,"setExecutingNodeTitle",1),Br([qr],Jo.prototype,"setCurrentForm",1),Br([qr],Jo.prototype,"setHasPSDNodes",1),Br([qr],Jo.prototype,"setMaxImageWH",1),Br([qr],Jo.prototype,"setComfyUserToken",1);var Wi=class extends gl{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([qr],Wi.prototype,"setUName",1),Br([qr],Wi.prototype,"setDocument",1),Br([qr],Wi.prototype,"setCanvasStateID",1),Br([qr],Wi.prototype,"setSelectionStateID",1),Br([qr],Wi.prototype,"setHistoryStateID",1),Br([qr],Wi.prototype,"setComfyUserToken",1);var lp=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 ro=window.comfyAPI.app.app,kX=window.comfyAPI.ui.$el,hn=window.comfyAPI.api.api;var Ox=class extends lp{createStore(t,r){return new Wi(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 Ox,Ct=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,Ct.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function GR(){document.title!==Ct.data.title&&Ct.setTitle(document.title),requestAnimationFrame(GR)}requestAnimationFrame(GR);var UR=!1;async function qR(){if(UR)return Promise.resolve();hn.user&&Ct.setComfyUserToken(hn.user);let e=await hn.getSetting("sdppp.maxImageWH");e&&Ct.setMaxImageWH(e),UR=!0}function xz(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function cp(e){return xz(e)}globalThis.sdpppX=globalThis.sdpppX||{};var as=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:cp(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}};function _x(){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=>Px(n,r.data.uname));t.push(...o)}),t}function KR(e,t){let r=[""],o=up(e);if(!o)return[];let n=Tf.makeLayerOptions(o.documentData,t);return r.push(...n),r}function XR(){return hn.user?Object.values(vn.getAllStore()).filter(e=>hn.user==e.data.comfyUserToken).length>0:vn.storeCount()}function Px(e,t){return`${t}/${e}`}function up(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:cp(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 Sz=function(e){let t=ro.graph.links;return Array.isArray(t)?t.find(o=>o&&o.origin_id==e):t.get(e)};function Tx(e){let t=ro.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=Sz(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}}as.findDocumentNodeRecursive=Tx;var fp=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 YR(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 fp(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 QR(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 fi=Object.create(null);fi.open="0";fi.close="1";fi.ping="2";fi.pong="3";fi.message="4";fi.upgrade="5";fi.noop="6";var Nf=Object.create(null);Object.keys(fi).forEach(e=>{Nf[fi[e]]=e});var If={type:"error",data:"parser error"};var eO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",tO=typeof ArrayBuffer=="function",rO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$f=({type:e,data:t},r,o)=>eO&&t instanceof Blob?r?o(t):ZR(t,o):tO&&(t instanceof ArrayBuffer||rO(t))?r?o(t):ZR(new Blob([t]),o):o(fi[e]+(t||"")),ZR=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function JR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Nx;function oO(e,t){if(eO&&e.data instanceof Blob)return e.data.arrayBuffer().then(JR).then(t);if(tO&&(e.data instanceof ArrayBuffer||rO(e.data)))return t(JR(e.data));$f(e,!1,r=>{Nx||(Nx=new TextEncoder),t(Nx.encode(r))})}var nO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Df=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<nO.length;e++)Df[nO.charCodeAt(e)]=e;var iO=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 Cz=typeof ArrayBuffer=="function",Mf=(e,t)=>{if(typeof e!="string")return{type:"message",data:aO(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:bz(e.substring(1),t)}:Nf[r]?e.length>1?{type:Nf[r],data:e.substring(1)}:{type:Nf[r]}:If},bz=(e,t)=>{if(Cz){let r=iO(e);return aO(r,t)}else return{base64:!0,data:e}},aO=(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 sO="",lO=(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(sO))})})},cO=(e,t)=>{let r=e.split(sO),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 uO(){return new TransformStream({transform(e,t){oO(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 Ix;function dp(e){return e.reduce((t,r)=>t+r.length,0)}function mp(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 fO(e,t){Ix||(Ix=new TextDecoder);let r=[],o=0,n=-1,i=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(o===0){if(dp(r)<1)break;let l=mp(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(dp(r)<2)break;let l=mp(r,2);n=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),o=3}else if(o===2){if(dp(r)<8)break;let l=mp(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(dp(r)<n)break;let l=mp(r,n);s.enqueue(Mf(i?l:Ix.decode(l),t)),o=0}if(n===0||n>e){s.enqueue(If);break}}}})}var $x=4;function Qt(e){if(e)return wz(e)}function wz(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 xa=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")(),dO="arraybuffer";function pp(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var Ez=jo.setTimeout,Rz=jo.clearTimeout;function Sa(e,t){t.useNativeTimers?(e.setTimeoutFn=Ez.bind(jo),e.clearTimeoutFn=Rz.bind(jo)):(e.setTimeoutFn=jo.setTimeout.bind(jo),e.clearTimeoutFn=jo.clearTimeout.bind(jo))}var Oz=1.33;function mO(e){return typeof e=="string"?_z(e):Math.ceil((e.byteLength||e.size)*Oz)}function _z(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 gp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pO(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function gO(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 hp=class extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}},Ca=class extends Qt{constructor(t){super(),this.writable=!1,Sa(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 hp(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=pO(t);return r.length?"?"+r:""}};var Af=class extends Ca{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)};cO(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,lO(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]=gp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var hO=!1;try{hO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var vO=hO;function Pz(){}var Dx=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}},ss=class e extends Qt{constructor(t,r,o){super(),this.createRequest=t,Sa(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=pp(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=Pz,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()}};ss.requestsCount=0;ss.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",yO);else if(typeof addEventListener=="function"){let e="onpagehide"in jo?"pagehide":"unload";addEventListener(e,yO,!1)}}function yO(){for(let e in ss.requests)ss.requests.hasOwnProperty(e)&&ss.requests[e].abort()}var Tz=function(){let e=xO({xdomain:!1});return e&&e.responseType!==null}(),ls=class extends Dx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=Tz&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ss(xO,this.uri(),t)}};function xO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||vO))return new XMLHttpRequest}catch{}if(!t)try{return new jo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var SO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Ax=class extends Ca{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=SO?{}:pp(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&&xa(()=>{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]=gp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Mx=jo.WebSocket||jo.MozWebSocket,cs=class extends Ax{createSocket(t,r,o){return SO?new Mx(t,r,o):r?new Mx(t,r):new Mx(t)}doWrite(t,r){this.ws.send(r)}};var wc=class extends Ca{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=fO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=uO();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&&xa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Lx={websocket:cs,webtransport:wc,polling:ls};var Nz=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Iz=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ec(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=Nz.exec(e||""),i={},a=14;for(;a--;)i[Iz[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=$z(i,i.path),i.queryKey=Dz(i,i.query),i}function $z(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 Dz(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,i){n&&(r[n]=i)}),r}var kx=typeof addEventListener=="function"&&typeof removeEventListener=="function",vp=[];kx&&addEventListener("offline",()=>{vp.forEach(e=>e())},!1);var hl=class e extends Qt{constructor(t,r){if(super(),this.binaryType=dO,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=Ec(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=Ec(r.host).host);Sa(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=gO(this.opts.query)),kx&&(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"})},vp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=$x,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+=mO(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,xa(()=>{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(),kx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=vp.indexOf(this._offlineEventListener);o!==-1&&vp.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};hl.protocol=$x;var yp=class extends hl{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;hl.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;hl.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}},Rc=class extends yp{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=>Lx[n]).filter(n=>!!n)),super(t,o)}};var pQ=Rc.protocol;function CO(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=Ec(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 Vx={};hx(Vx,{Decoder:()=>jx,Encoder:()=>Bx,PacketType:()=>Rt,protocol:()=>OO});var Az=typeof ArrayBuffer=="function",Lz=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,bO=Object.prototype.toString,kz=typeof Blob=="function"||typeof Blob<"u"&&bO.call(Blob)==="[object BlobConstructor]",Fz=typeof File=="function"||typeof File<"u"&&bO.call(File)==="[object FileConstructor]";function kf(e){return Az&&(e instanceof ArrayBuffer||Lz(e))||kz&&e instanceof Blob||Fz&&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 wO(e){let t=[],r=e.data,o=e;return o.data=Fx(r,t),o.attachments=t.length,{packet:o,buffers:t}}function Fx(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]=Fx(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]=Fx(e[o],t));return r}return e}function EO(e,t){return e.data=zx(e.data,t),delete e.attachments,e}function zx(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]=zx(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=zx(e[r],t));return e}var zz=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],OO=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 Bx=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=wO(t),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}};function RO(e){return Object.prototype.toString.call(e)==="[object Object]"}var jx=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 Wx(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 RO(r);case Rt.DISCONNECT:return r===void 0;case Rt.CONNECT_ERROR:return typeof r=="string"||RO(r);case Rt.EVENT:case Rt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&zz.indexOf(r[0])===-1);case Rt.ACK:case Rt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Wx=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=EO(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 Bz=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Oc=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(Bz.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 vl(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}vl.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};vl.prototype.reset=function(){this.attempts=0};vl.prototype.setMin=function(e){this.ms=e};vl.prototype.setMax=function(e){this.max=e};vl.prototype.setJitter=function(e){this.jitter=e};var _c=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,Sa(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 vl({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||Vx;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 Rc(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){xa(()=>{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 Oc(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=CO(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 _c(o,t):(Ff[n]||(Ff[n]=new _c(o,t)),l=Ff[n]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(zf,{Manager:_c,Socket:Oc,io:zf,connect:zf});var _O=`502
|
|
`;var xp=_O.trim();var Hx=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:xp},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 PO(...e){return e.reduce((t,r)=>r(t),Hx)}var di=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",xp)}};function TO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,o)=>{r.action=="extractPSD"&&ro.graph.nodes.forEach(n=>{n.type=="SDPPP Get Document"&&di.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:Ct.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:Ct.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 NO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var IO=[];as.widgetable=as.widgetable||{};as.widgetable.add=function(e,t){IO.push([e,t])};function zn(e){return e.nodes.map(t=>{if(t.mode!=0||!t.title||t.title.startsWith(".")||!t.widgets||t.widgets.length==0)return;let r=IO.find(([i])=>Wz(i,t.type));if(r)try{let i=r[1](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:t.title,uiWeightSum:12,widgets:[{outputType:"error",value:ve("convert widget {0} failed:",r[0])+(i.message||i||"")+(i?.stack||"")}]}}if(!t.title.startsWith("#"))return null;let o=t.title,n=t.widgets;return{id:t.id,title:o,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)=>t.title.localeCompare(r.title))}function Wz(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}var Vz=new Map,Pc=Vz;function DO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=ro.workflowManager||ro.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 ro.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){Ct.setLastError(s.error,s.nodeID);break}Pc.set(l,o);for(let f of a.workflow.nodes){let d=ro.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=ro.graph.nodes.find(a=>a.id==r);!i||n==i.widgets[o].value||(i.widgets[o].value=n,i.widgets[o].callback(n),this.workflowManager.activeWorkflow?.changeTracker.checkState())})}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 ro.loadGraphData(n);let i=zn(ro.graph);Ct.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 ro.loadGraphData(NO):await $O(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 $O(this.workflowManager,i),await new Promise(s=>setTimeout(s,300));let a=zn(ro.graph);Ct.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=ro.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 $O(e,t){ro.workflowManager==e?await t.load():(await e.openWorkflow(t),await ro.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Bn=class e extends PO(YR(Ct,"comfy"),QR(vn,"photoshop"),TO,DO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};var Sp=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)}},Cp=class extends Sp{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}}},Vi=class e extends Cp{static create(t,r){let o=_x(),n=t.size.slice(0),i=t.addWidget("combo",r,o[0]||"",()=>{},{forceInput:!0,values:_x});return i.serializeValue=async()=>{let a=up(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(){AO(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=Px(r.data.documents[r.data.activeDocumentID].identify,t)}}},mi=class extends Cp{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 Ux(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=up(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}}}}},Hz={extraOptions:[],documentWidgetInNode:null},Ux=class extends mi{documentWidgetInNode;constructor(t,r,o=Hz){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=KR(t.widget.value,this.extraOptions),AO(this.widget,this.widget.options.values))}},MO=0,Tc=class extends Sp{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:Ct.data.maxImageWH},i=Tx(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()-MO>3e3&&(MO=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&&Bn.instance.id?ve("current ComfyUI pageid: {0}",Bn.instance.id.slice(0,4)):ve("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function AO(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 di{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new Tc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||XR()||(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 bp=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},Bf=class extends bp{get documentWidget(){return LO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},jf=class extends bp{get documentWidget(){return LO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function LO(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 di.nodeMap.get(o)}var pi=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 Vi)}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=Vi.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 mi(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 mi||i instanceof Tc)&&i.linkDocumentWidget(n)})}})}};var wp=class extends pi{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))}},Nc=class extends pi{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Ep=class extends pi{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Rp=class extends pi{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))}},Op=class extends pi{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=Vi.create(t,"document"),o=mi.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)}},Pp=class extends pi{get documentWidget(){return this.widgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&Bn.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):Bn.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?(Ct.setHasPSDNodes(!0),this.psdWidget.label=ve("extract saved .psd to Photoshop")):(Ct.setHasPSDNodes(!1),this.psdWidget.label=ve("save .psd to this workflow"))}};var Tp=class extends ba{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Vi.create(t,"document"),o=mi.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(Ip["SDPPP Get Selection"],{pos:this.node.pos});new Nc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Ip.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)}},Np=class extends ba{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Vi.create(t,"document"),o=mi.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 Gx={"Get Image From Photoshop Layer":Tp,"Send Images To Photoshop":Np,"SDPPP Get Text From Layer":_p,"SDPPP Parse Layer Info":Ep,"SDPPP Get Linked Layers":Op,"SDPPP Get Layers In Group":Rp,"SDPPP Get Layer By ID":wp,"SDPPP Get Document":Pp,"SDPPP Get Selection":Nc},Ip={};function kO(e,t){let r=e.comfyClass||t.name;if(Ip[r]=t,r in Gx)e.title=ve(t.display_name),t.display_name=ve(t.display_name),di.registerNodeType(e,t,Gx[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 Gx&&(n=!0)}),n&&di.registerNodeType(e,t,pi)}else return}var ez=E(hN(),1),tz=E(I(),1);var vN=`.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 {
|
|
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;
|
|
}
|
|
`;var Z4=E(I(),1);var CN=E(I(),1);var No=E(Wt(),1),gj=()=>{let[e,t]=(0,CN.useState)(Ct.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)||(Ct.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")})})]})]})},bN=gj;var Q4=E(I(),1);var sh=E(I(),1);var EN=E(I(),1);var wN=E(I(),1);function su(e){return{flex:`${e} 0 calc(${e/12*100}% - 10px)`}}var Yi=class extends EN.default.Component{computeUIWeightCSS(t){return su(t)}};var rh=E(Wt(),1),oh=class extends Yi{state={filter:""};handleSelectUpdate=(t,r)=>{this.props.onSelectUpdate(t,r),this.setState({filter:""})};render(){let{options:t,value:r}=this.props;return(0,rh.jsx)("sp-picker",{class:"sdppp-dropdown-widget",size:"s",style:{...this.computeUIWeightCSS(this.props.uiWeight)},children:(0,rh.jsx)("sp-menu",{slot:"options",children:t.map((o,n)=>this.state.filter&&!o.includes(this.state.filter)?"":(0,rh.jsx)("sp-menu-item",{...th(o)===th(r)?{selected:!0}:{},onClick:()=>this.handleSelectUpdate(o,n),children:th(o)},th(o)))})})}};function th(e){return typeof e=="string"?e:e.content}var RN=E(Wt(),1),nh=class extends Yi{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,RN.jsx)("sp-textfield",{style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:this.onInput,value:t})}};var ON=E(I(),1);var Md=E(Wt(),1);var ih=class extends Yi{hiddenDivRef=ON.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);state={hiddenDivHeight:0,editing:!1,textfieldRerender:0};componentWillUnmount(){clearInterval(this.heightChecker)}onInput=t=>{let r=t.target.value;this.props.onValueChange(r)};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 _N=E(Wt(),1),ah=class extends Yi{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,_N.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(Wt(),1);function mb({formDatas:e,onWidgetRender:t,onWidgetChange:r,onTitleRender:o}){let n=(0,sh.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)(nh,{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)(oh,{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)(ah,{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)(ih,{uiWeight:l.uiWeight||12,value: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:{...su(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)(db,{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 db=class extends sh.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 Oh=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 hj=Symbol.for("react.element"),vj=Symbol.for("react.transitional.element"),yj=Symbol.for("react.fragment");function Ad(e){return e&&ue(e)==="object"&&(e.$$typeof===hj||e.$$typeof===vj)&&e.type===yj}var PN=E(I());function Rn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return PN.default.Children.forEach(e,function(o){o==null&&!t.keepEmpty||(Array.isArray(o)?r=r.concat(Rn(o)):Ad(o)&&o.props?r=r.concat(Rn(o.props.children,t)):r.push(o))}),r}var pb={},xj=[],Sj=function(t){xj.push(t)};function Dl(e,t){if(0)var r}function Cj(e,t){if(0)var r}function TN(){pb={}}function NN(e,t,r){!t&&!pb[r]&&(e(!1,r),pb[r]=!0)}function ch(e,t){NN(Dl,e,t)}function IN(e,t){NN(Cj,e,t)}ch.preMessage=Sj;ch.resetWarned=TN;ch.noteOnce=IN;var Vt=ch;function $N(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 uh(e){var t=$N(e,"string");return ue(t)=="symbol"?t:t+""}function T(e,t,r){return(t=uh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DN(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?DN(Object(r),!0).forEach(function(o){T(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DN(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var MN=E(I()),gb=E(wi());function Ml(e){return e instanceof HTMLElement||e instanceof SVGElement}function bj(e){return e&&ue(e)==="object"&&Ml(e.nativeElement)?e.nativeElement:Ml(e)?e:null}function Al(e){var t=bj(e);if(t)return t;if(e instanceof MN.default.Component){var r;return(r=gb.default.findDOMNode)===null||r===void 0?void 0:r.call(gb.default,e)}return null}var Ch=E(I()),Ld=E(FN());var zN=E(I());function Qi(e,t,r){var o=zN.useRef({});return(!("value"in o.current)||r(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var Rj=Number(Ch.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)})}},On=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Qi(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(BN(t)&&Rj>=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 BN(e){return(0,Ch.isValidElement)(e)&&!Ad(e)}var Is=function(t){if(t&&BN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Lr=E(I());var Ri=E(I()),bh=Ri.createContext(null);function jN(e){var t=e.children,r=e.onBatchResize,o=Ri.useRef(0),n=Ri.useRef([]),i=Ri.useContext(bh),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(bh.Provider,{value:a},t)}var VN=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}()}(),yb=typeof window<"u"&&typeof document<"u"&&window.document===document,wh=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")()}(),Oj=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wh):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),_j=2;function Pj(e,t){var r=!1,o=!1,n=0;function i(){r&&(r=!1,e()),o&&s()}function a(){Oj(i)}function s(){var l=Date.now();if(r){if(l-n<_j)return;o=!0}else r=!0,o=!1,setTimeout(a,t);n=l}return s}var Tj=20,Nj=["top","right","bottom","left","width","height","size","weight"],Ij=typeof MutationObserver<"u",$j=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Pj(this.refresh.bind(this),Tj)}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(){!yb||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ij?(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(){!yb||!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=Nj.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}(),HN=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},lu=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wh},UN=Rh(0,0,0,0);function Eh(e){return parseFloat(e)||0}function WN(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+Eh(i)},0)}function Dj(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]=Eh(a)}return r}function Mj(e){var t=e.getBBox();return Rh(0,0,t.width,t.height)}function Aj(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return UN;var o=lu(e).getComputedStyle(e),n=Dj(o),i=n.left+n.right,a=n.top+n.bottom,s=Eh(o.width),l=Eh(o.height);if(o.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=WN(o,"left","right")+i),Math.round(l+a)!==r&&(l-=WN(o,"top","bottom")+a)),!kj(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 Rh(n.left,n.top,s,l)}var Lj=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof lu(e).SVGGraphicsElement}:function(e){return e instanceof lu(e).SVGElement&&typeof e.getBBox=="function"}}();function kj(e){return e===lu(e).document.documentElement}function Fj(e){return yb?Lj(e)?Mj(e):Aj(e):UN}function zj(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 HN(a,{x:t,y:r,width:o,height:n,top:r,right:t+o,bottom:n+r,left:t}),a}function Rh(e,t,r,o){return{x:e,y:t,width:r,height:o}}var Bj=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rh(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Fj(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}(),jj=function(){function e(t,r){var o=zj(r);HN(this,{target:t,contentRect:o})}return e}(),Wj=function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new VN,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 lu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Bj(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 lu(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 jj(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}(),GN=typeof WeakMap<"u"?new WeakMap:new VN,qN=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=$j.getInstance(),o=new Wj(t,r,this);GN.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){qN.prototype[e]=function(){var t;return(t=GN.get(this))[e].apply(t,arguments)}});var Vj=function(){return typeof wh.ResizeObserver<"u"?wh.ResizeObserver:qN}(),KN=Vj;var $s=new Map;function Hj(e){e.forEach(function(t){var r,o=t.target;(r=$s.get(o))===null||r===void 0||r.forEach(function(n){return n(o)})})}var XN=new KN(Hj);function YN(e,t){$s.has(e)||($s.set(e,new Set),XN.observe(e)),$s.get(e).add(t)}function QN(e,t){$s.has(e)&&($s.get(e).delete(t),$s.get(e).size||(XN.unobserve(e),$s.delete(e)))}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZN(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,uh(o.key),o)}}function lt(e,t,r){return t&&ZN(e.prototype,t),r&&ZN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ds(e,t){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ds(e,t)}function Pr(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&&Ds(e,t)}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ll(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 JN(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 Tr(e){var t=Fd();return function(){var r,o=Ll(e);if(t){var n=Ll(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return JN(this,r)}}var eI=E(I()),tI=function(e){Pr(r,e);var t=Tr(r);function r(){return st(this,r),t.apply(this,arguments)}return lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(eI.Component);function Uj(e,t){var r=e.children,o=e.disabled,n=Lr.useRef(null),i=Lr.useRef(null),a=Lr.useContext(bh),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?Is(l):null,d=On(f,n),p=function(){var g;return Al(n.current)||(n.current&&ue(n.current)==="object"?Al((g=n.current)===null||g===void 0?void 0:g.nativeElement):null)||Al(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,C=y.getBoundingClientRect(),S=C.width,w=C.height,b=y.offsetWidth,R=y.offsetHeight,_=Math.floor(S),O=Math.floor(w);if(c.current.width!==_||c.current.height!==O||c.current.offsetWidth!==b||c.current.offsetHeight!==R){var N={width:_,height:O,offsetWidth:b,offsetHeight:R};c.current=N;var k=b===Math.round(S)?S:b,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&&YN(y,v),function(){return QN(y,v)}},[n.current,o]),Lr.createElement(tI,{ref:i},u?Lr.cloneElement(l,{ref:d}):l)}var Gj=Lr.forwardRef(Uj),rI=Gj;var qj="rc-observer-key";function Kj(e,t){var r=e.children,o=typeof r=="function"?[r]:Rn(r);return o.map(function(n,i){var a=n?.key||"".concat(qj,"-").concat(i);return Oh.createElement(rI,J({},e,{key:a,ref:i===0?t:void 0}),n)})}var oI=Oh.forwardRef(Kj);oI.Collection=jN;var an=oI;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 nI(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 cu(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 iI(){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 nI(e)||_h(e)||cu(e)||iI()}var sI=function(t){return+setTimeout(t,16)},lI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(sI=function(t){return window.requestAnimationFrame(t)},lI=function(t){return window.cancelAnimationFrame(t)});var aI=0,xb=new Map;function cI(e){xb.delete(e)}var uI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;aI+=1;var o=aI;function n(i){if(i===0)cI(o),t();else{var a=sI(function(){n(i-1)});xb.set(o,a)}}return n(r),o};uI.cancel=function(e){var t=xb.get(e);return cI(e),lI(t)};var ct=uI;var nr=E(I());function Ph(e){if(Array.isArray(e))return e}function fI(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 Th(){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 Ph(e)||fI(e,t)||cu(e,t)||Th()}function Xj(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 Ms=Xj;function Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uu(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 dI="data-rc-order",mI="data-rc-priority",Yj="rc-util-key",Sb=new Map;function pI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Yj}function Nh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Qj(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cb(e){return Array.from((Sb.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gI(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=Qj(o),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(dI,a),s&&i&&l.setAttribute(mI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Nh(t),u=c.firstChild;if(o){if(s){var f=(t.styles||Cb(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(dI)))return!1;var p=Number(d.getAttribute(mI)||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 hI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Nh(t);return(t.styles||Cb(r)).find(function(o){return o.getAttribute(pI(t))===e})}function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=hI(e,t);if(r){var o=Nh(t);o.removeChild(r)}}function Zj(e,t){var r=Sb.get(e);if(!r||!uu(document,r)){var o=gI("",t),n=o.parentNode;Sb.set(e,n),e.removeChild(o)}}function yo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Nh(r),n=Cb(o),i=P(P({},r),{},{styles:n});Zj(o,i);var a=hI(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=gI(e,i);return u.setAttribute(pI(i),t),u}var TI=E(I());function vI(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=vI(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 Jj(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 Ji=Jj;var $h=E(I());var e5="%";function Ih(e){return e.join(e5)}var t5=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(Ih(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,o){return this.opUpdate(Ih(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}(),yI=t5;var ea="data-token-hash",Io="data-css-hash";var Oi="__cssinjs_instance__";function xI(){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 yI(e)}var r5=$h.createContext({hashPriority:"low",cache:xI(),defaultCache:!0});var _i=r5;var n5="CALC_UNIT",bre=new RegExp(n5,"g");function i5(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!i5(o,r)}),this.deleteByPath(this.cache,r)}}]),e}();T(Bd,"MAX_CACHE_SIZE",20);T(Bd,"MAX_CACHE_OFFSET",5);var SI=0,fu=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=SI,t.length===0&&Dl(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),SI+=1}return lt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(o,n){return n(r,o)},void 0)}}]),e}();var bb=new Bd;function As(e){var t=Array.isArray(e)?e:[e];return bb.has(t)||bb.set(t,new fu(t)),bb.get(t)}var s5=new WeakMap,wb={};function bI(e,t){for(var r=s5,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(wb)||r.set(wb,e()),r.get(wb)}var CI=new WeakMap;function du(e){var t=CI.get(e)||"";return t||(Object.keys(e).forEach(function(r){var o=e[r];t+=r,o instanceof fu?t+=o.id:o&&ue(o)==="object"?t+=du(o):t+=o}),t=Ms(t),CI.set(e,t)),t}function Eb(e,t){return Ms("".concat(t,"_").concat(du(e)))}var coe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var jd=Xt();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function Ls(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,ea,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 mu=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()},l5=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(""),"}"):""},Dh=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=mu(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,l5(n,r,{scope:o?.scope})]};var Mh=E(I());var pu=E(I());var wI=Xt()?pu.useLayoutEffect:pu.useEffect,EI=function(t,r){var o=pu.useRef(!0);wI(function(){return t(o.current)},r),wI(function(){return o.current=!1,function(){o.current=!0}},[])},kl=function(t,r){EI(function(o){if(!o)return t()},r)},vt=EI;var Rb=E(I()),c5=P({},Rb),RI=c5.useInsertionEffect,u5=function(t,r,o){Rb.useMemo(t,o),vt(function(){return r(!0)},o)},f5=RI?function(e,t,r){return RI(function(){return e(),t()},r)}:u5,OI=f5;var Ob=E(I()),d5=P({},Ob),m5=d5.useInsertionEffect,p5=function(t){var r=[],o=!1;function n(i){o||r.push(i)}return Ob.useEffect(function(){return o=!1,function(){o=!0,r.length&&r.forEach(function(i){return i()})}},t),n},g5=function(){return function(t){t()}},h5=typeof m5<"u"?p5:g5,_I=h5;function v5(){return!1}var PI=v5;function Fl(e,t,r,o,n){var i=Mh.useContext(_i),a=i.cache,s=[e].concat(se(t)),l=Ih(s),c=_I([l]),u=PI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],m=j(g,2),x=m[0],C=x===void 0?0:x,S=m[1],w=S,b=w||r(),R=[C,b];return v?v(R):R})};Mh.useMemo(function(){f()},[l]);var d=a.opGet(l),p=d[1];return OI(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,C=g[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&o?.(C,!1)}),null):[x-1,C]})}},[l]),p}var y5={},x5="css",zl=new Map;function S5(e){zl.set(e,(zl.get(e)||0)+1)}function C5(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(ea,'="').concat(e,'"]'));r.forEach(function(o){if(o[Oi]===t){var n;(n=o.parentNode)===null||n===void 0||n.removeChild(o)}})}}var b5=0;function w5(e,t){zl.set(e,(zl.get(e)||0)-1);var r=Array.from(zl.keys()),o=r.filter(function(n){var i=zl.get(n)||0;return i<=0});r.length-o.length>b5&&o.forEach(function(n){C5(n,t),zl.delete(n)})}var NI=function(t,r,o,n){var i=o.getDerivativeToken(t),a=P(P({},i),r);return n&&(a=n(a)),a},_b="token";function Ah(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=(0,TI.useContext)(_i),n=o.cache.instanceId,i=o.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?y5:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,p=bI(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),h=du(p),v=du(c),y=d?du(d):"",g=Fl(_b,[s,e.id,h,v,y],function(){var m,x=f?f(p,c,e):NI(p,c,e,u),C=P({},x),S="";if(d){var w=Dh(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),b=j(w,2);x=b[0],S=b[1]}var R=Eb(x,s);x._tokenKey=R,C._tokenKey=Eb(C,s);var _=(m=d?.key)!==null&&m!==void 0?m:R;x._themeKey=_,S5(_);var O="".concat(x5,"-").concat(Ms(R));return x._hashId=O,[x,O,C,S,d?.key||""]},function(m){w5(m[0]._themeKey,n)},function(m){var x=j(m,4),C=x[0],S=x[3];if(d&&S){var w=yo(S,Ms("css-variables-".concat(C._themeKey)),{mark:Io,prepend:"queue",attachTo:i,priority:-999});w[Oi]=n,w.setAttribute(ea,C._themeKey)}});return g}var II=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=Ls(a,s,u,d,c);return[f,u,p]};var o2=E(I());var zs=E(I());var E5={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},Pb=E5;var Lh="comm",kh="rule",Fh="decl";var $I="@import";var DI="@namespace",MI="@keyframes";var AI="@layer";var Tb=Math.abs,Wd=String.fromCharCode;function zh(e){return e.trim()}function Vd(e,t,r){return e.replace(t,r)}function LI(e,t,r){return e.indexOf(t,r)}function ks(e,t){return e.charCodeAt(t)|0}function Fs(e,t,r){return e.slice(t,r)}function _n(e){return e.length}function kI(e){return e.length}function gu(e,t){return t.push(e),e}var Bh=1,hu=1,FI=0,Xn=0,Vr=0,yu="";function jh(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Bh,column:hu,length:a,return:"",siblings:s}}function zI(){return Vr}function BI(){return Vr=Xn>0?ks(yu,--Xn):0,hu--,Vr===10&&(hu=1,Bh--),Vr}function Yn(){return Vr=Xn<FI?ks(yu,Xn++):0,hu++,Vr===10&&(hu=1,Bh++),Vr}function Da(){return ks(yu,Xn)}function Hd(){return Xn}function Wh(e,t){return Fs(yu,e,t)}function vu(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 jI(e){return Bh=hu=1,FI=_n(yu=e),Xn=0,[]}function WI(e){return yu="",e}function Vh(e){return zh(Wh(Xn-1,Nb(e===91?e+2:e===40?e+1:e)))}function VI(e){for(;(Vr=Da())&&Vr<33;)Yn();return vu(e)>2||vu(Vr)>3?"":" "}function HI(e,t){for(;--t&&Yn()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return Wh(e,Hd()+(t<6&&Da()==32&&Yn()==32))}function Nb(e){for(;Yn();)switch(Vr){case e:return Xn;case 34:case 39:e!==34&&e!==39&&Nb(Vr);break;case 40:e===41&&Nb(e);break;case 92:Yn();break}return Xn}function UI(e,t){for(;Yn()&&e+Vr!==57;)if(e+Vr===84&&Da()===47)break;return"/*"+Wh(t,Xn-1)+"*"+Wd(e===47?e:Yn())}function GI(e){for(;!vu(Da());)Yn();return Wh(e,Xn)}function XI(e){return WI(Hh("",null,null,null,[""],e=jI(e),0,[0],e))}function Hh(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="",C=n,S=i,w=o,b=x;y;)switch(h=m,m=Yn()){case 40:if(h!=108&&ks(b,f-1)==58){LI(b+=Vd(Vh(m),"&","&\f"),"&\f",Tb(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:b+=Vh(m);break;case 9:case 10:case 13:case 32:b+=VI(h);break;case 92:b+=HI(Hd()-1,7);continue;case 47:switch(Da()){case 42:case 47:gu(R5(UI(Yn(),Hd()),t,r,l),l),(vu(h||1)==5||vu(Da()||1)==5)&&_n(b)&&Fs(b,-1,void 0)!==" "&&(b+=" ");break;default:b+="/"}break;case 123*v:s[c++]=_n(b)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+u:g==-1&&(b=Vd(b,/\f/g,"")),p>0&&(_n(b)-f||v===0&&h===47)&&gu(p>32?KI(b+";",o,r,f-1,l):KI(Vd(b," ","")+";",o,r,f-2,l),l);break;case 59:b+=";";default:if(gu(w=qI(b,t,r,c,u,n,s,x,C=[],S=[],f,i),i),m===123)if(u===0)Hh(b,t,w,w,C,i,f,s,S);else{switch(d){case 99:if(ks(b,3)===110)break;case 108:if(ks(b,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Hh(e,w,w,o&&gu(qI(e,w,w,0,0,n,s,x,n,C=[],f,S),S),n,S,f,s,o?C:S):Hh(b,w,w,w,[""],S,0,s,S)}}c=u=p=0,v=g=1,x=b="",f=a;break;case 58:f=1+_n(b),p=h;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&BI()==125)continue}switch(b+=Wd(m),m*v){case 38:g=u>0?1:(b+="\f",-1);break;case 44:s[c++]=(_n(b)-1)*g,g=1;break;case 64:Da()===45&&(b+=Vh(Yn())),d=Da(),u=f=_n(x=b+=GI(Hd())),m++;break;case 45:h===45&&_n(b)==2&&(v=0)}}return i}function qI(e,t,r,o,n,i,a,s,l,c,u,f){for(var d=n-1,p=n===0?i:[""],h=kI(p),v=0,y=0,g=0;v<o;++v)for(var m=0,x=Fs(e,d+1,d=Tb(y=a[v])),C=e;m<h;++m)(C=zh(y>0?p[m]+" "+x:Vd(x,/&\f/g,p[m])))&&(l[g++]=C);return jh(e,t,r,n===0?kh:s,l,c,u,f)}function R5(e,t,r,o){return jh(e,t,r,Lh,Wd(zI()),Fs(e,2,-2),0,o)}function KI(e,t,r,o,n){return jh(e,t,r,Fh,Fs(e,0,o),Fs(e,o+1,-1),o,n)}function Uh(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function YI(e,t,r,o){switch(e.type){case AI:if(e.children.length)break;case $I:case DI:case Fh:return e.return=e.return||e.value;case Lh:return"";case MI:return e.return=e.value+"{"+Uh(e.children,o)+"}";case kh:if(!_n(e.value=e.props.join(",")))return""}return _n(r=Uh(e.children,o))?e.return=e.value+"{"+r+"}":""}var Ib="data-ant-cssinjs-cache-path",$b="_FILE_STYLE__";var Bl,QI=!0;function N5(){if(!Bl&&(Bl={},Xt())){var e=document.createElement("div");e.className=Ib,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];Bl[s]=l});var r=document.querySelector("style[".concat(Ib,"]"));if(r){var o;QI=!1,(o=r.parentNode)===null||o===void 0||o.removeChild(r)}document.body.removeChild(e)}}function ZI(e){return N5(),!!Bl[e]}function JI(e){var t=Bl[e],r=null;if(t&&Xt())if(QI)r=$b;else{var o=document.querySelector("style[".concat(Io,'="').concat(Bl[e],'"]'));o?r=o.innerHTML:delete Bl[e]}return[r,t]}var I5="_skip_check_",t2="_multi_value_";function Gh(e){var t=Uh(XI(e),YI);return t.replace(/\{%%%\:[^;];}/g,";")}function $5(e){return ue(e)==="object"&&e&&(I5 in e||t2 in e)}function e2(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 D5=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(C){var S=C.getName(s);if(!y[S]){var w=e(C.style,r,{root:!1,parentSelectors:a}),b=j(w,1),R=b[0];y[S]="@keyframes ".concat(C.getName(s)).concat(R)}}function m(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.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(C){var S=typeof C=="string"&&!n?{}:C;if(typeof S=="string")v+="".concat(S,`
|
|
`);else if(S._keyframe)g(S);else{var w=d.reduce(function(b,R){var _;return(R==null||(_=R.visit)===null||_===void 0?void 0:_.call(R,b))||b},S);Object.keys(w).forEach(function(b){var R=w[b];if(ue(R)==="object"&&R&&(b!=="animationName"||!R._keyframe)&&!$5(R)){var _=!1,O=b.trim(),N=!1;(n||i)&&s?O.startsWith("@")?_=!0:O==="&"?O=e2("",s,u):O=e2(b,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;!Pb[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[t2]&&Array.isArray(D)?D.forEach(function(z){H(b,z)}):H(b,D)}})}}),n?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
|
|
`))):v="{".concat(v,"}"),[v,y]};function Db(e,t){return Ms("".concat(e.join("%")).concat(t))}function M5(){return null}var Mb="style";function Bs(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=zs.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,C=u.layer,S=r._tokenKey,w=[S];C&&w.push("layer"),w.push.apply(w,se(o));var b=jd,R=Fl(Mb,w,function(){var A=w.join("|");if(ZI(A)){var W=JI(A),L=j(W,2),$=L[0],D=L[1];if($)return[$,S,D,{},s,c]}var F=t(),H=D5(F,{hashId:n,hashPriority:h,layer:C?i:void 0,path:o.join("-"),transformers:g,linters:m}),z=j(H,2),B=z[0],U=z[1],V=Gh(B),M=Db(w,V);return[V,S,M,U,s,c]},function(A,W){var L=j(A,3),$=L[2];(W||f)&&jd&&Zi($,{mark:Io})},function(A){var W=j(A,4),L=W[0],$=W[1],D=W[2],F=W[3];if(b&&L!==$b){var H={mark:Io,prepend:C?!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(Gh(F[M]),"_layer-".concat(M),P(P({},H),{},{prepend:!0}))});var V=yo(L,D,H);V[Oi]=x.instanceId,V.setAttribute(ea,S),U.forEach(function(M){yo(Gh(F[M]),"_effect-".concat(M),H)})}}),_=j(R,3),O=_[0],N=_[1],k=_[2];return function(A){var W;if(!y||b||!p)W=zs.createElement(M5,null);else{var L;W=zs.createElement("style",J({},(L={},T(L,ea,N),T(L,Io,k),L),{dangerouslySetInnerHTML:{__html:O}}))}return zs.createElement(zs.Fragment,null,W,A)}}var r2=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=Ls(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Gh(l[v]),g=Ls(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?p=g+p:p+=g}}),[u,s,p]};var Ab="cssVar",A5=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,o2.useContext)(_i),f=u.cache.instanceId,d=u.container,p=s._tokenKey,h=[].concat(se(t.path),[o,c,p]),v=Fl(Ab,h,function(){var y=r(),g=Dh(y,o,{prefix:n,unitless:i,ignore:a,scope:c}),m=j(g,2),x=m[0],C=m[1],S=Db(h,C);return[x,C,S,o]},function(y){var g=j(y,3),m=g[2];jd&&Zi(m,{mark:Io})},function(y){var g=j(y,3),m=g[1],x=g[2];if(m){var C=yo(m,x,{mark:Io,prepend:"queue",attachTo:d,priority:-999});C[Oi]=f,C.setAttribute(ea,o)}});return v},n2=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=Ls(i,s,a,f,c);return[u,a,d]},Lb=A5;var Gd,cie=(Gd={},T(Gd,Mb,r2),T(Gd,_b,II),T(Gd,Ab,n2),Gd);var L5=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=L5;function xu(e){return e.notSplit=!0,e}var hie={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:xu(["borderTop","borderBottom"]),borderBlockStart:xu(["borderTop"]),borderBlockEnd:xu(["borderBottom"]),borderInline:xu(["borderLeft","borderRight"]),borderInlineStart:xu(["borderLeft"]),borderInlineEnd:xu(["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 i2=E(I()),k5=(0,i2.createContext)({}),Su=k5;function qh(e){return Ph(e)||_h(e)||cu(e)||Th()}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 s2(e,t,r,o){if(!t.length)return r;var n=qh(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]=s2(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:s2(e,t,r,o)}function F5(e){return ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function a2(e){return Array.isArray(e)?[]:{}}var z5=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ma(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=a2(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||F5(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,a2(c))),z5(c).forEach(function(d){i([].concat(se(a),[d]),l)})}}else o=Go(o,a,c)}i([])}),o}var kb=E(I());function B5(){}var l2=kb.createContext({}),Kh=()=>{let e=()=>{};return e.deprecated=B5,e};var c2=E(I()),u2=(0,c2.createContext)(void 0);var bu=E(I());var j5={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"},f2=j5;var d2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var W5=P(P({},d2),{},{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"}),m2=W5;var V5={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Xh=V5;var H5={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"]},m2),timePickerLocale:Object.assign({},Xh)},Yh=H5;var p2=Yh;var Pn="${label} is not a valid ${type}",U5={locale:"en",Pagination:f2,DatePicker:Yh,TimePicker:Xh,Calendar:p2,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:Pn,method:Pn,array:Pn,object:Pn,number:Pn,date:Pn,boolean:Pn,integer:Pn,float:Pn,regexp:Pn,email:Pn,url:Pn,hex:Pn},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=U5;var Fb=Object.assign({},Pi.Modal),Qh=[],g2=()=>Qh.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pi.Modal);function h2(e){if(e){let t=Object.assign({},e);return Qh.push(t),Fb=g2(),()=>{Qh=Qh.filter(r=>r!==t),Fb=g2()}}Fb=Object.assign({},Pi.Modal)}var v2=E(I()),G5=(0,v2.createContext)(void 0),Cu=G5;var qd=E(I());var q5=(e,t)=>{let r=qd.useContext(Cu),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=q5;var y2="internalMark",K5=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;bu.useEffect(()=>h2(t?.Modal),[t]);let n=bu.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return bu.createElement(Cu.Provider,{value:n},r)},x2=K5;var U2=E(I());var zb={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"},X5=Object.assign(Object.assign({},zb),{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}),Aa=X5;var io=Math.round;function Bb(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 S2=(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 it=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=Bb(t,S2);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=Bb(t,S2);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=Bb(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 Zh=2,C2=.16,Y5=.05,Q5=.05,Z5=.15,R2=5,O2=4,J5=[{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 b2(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-Zh*t:Math.round(e.h)+Zh*t:o=r?Math.round(e.h)+Zh*t:Math.round(e.h)-Zh*t,o<0?o+=360:o>=360&&(o-=360),o}function w2(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-C2*t:t===O2?o=e.s+C2:o=e.s+Y5*t,o>1&&(o=1),r&&t===R2&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function E2(e,t,r){var o;return r?o=e.v+Q5*t:o=e.v-Z5*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 it(e),n=o.toHsv(),i=R2;i>0;i-=1){var a=new it({h:b2(n,i,!0),s:w2(n,i,!0),v:E2(n,i,!0)});r.push(a)}r.push(o);for(var s=1;s<=O2;s+=1){var l=new it({h:b2(n,s),s:w2(n,s),v:E2(n,s)});r.push(l)}return t.theme==="dark"?J5.map(function(c){var u=c.index,f=c.amount;return new it(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var La={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"},jb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];jb.primary=jb[5];var Wb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wb.primary=Wb[5];var Vb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Vb.primary=Vb[5];var Hb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Hb.primary=Hb[5];var Ub=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ub.primary=Ub[5];var Gb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Gb.primary=Gb[5];var qb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];qb.primary=qb[5];var Kb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Kb.primary=Kb[5];var js=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];js.primary=js[5];var Xb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xb.primary=Xb[5];var Yb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yb.primary=Yb[5];var Qb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Qb.primary=Qb[5];var Zb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zb.primary=Zb[5];var Jh={red:jb,volcano:Wb,orange:Vb,gold:Hb,yellow:Ub,lime:Gb,green:qb,cyan:Kb,blue:js,geekblue:Xb,purple:Yb,magenta:Qb,grey:Zb},_2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];_2.primary=_2[5];var P2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];P2.primary=P2[5];var T2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];T2.primary=T2[5];var N2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];N2.primary=N2[5];var I2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];I2.primary=I2[5];var $2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];$2.primary=$2[5];var D2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];D2.primary=D2[5];var M2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];M2.primary=M2[5];var A2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];A2.primary=A2[5];var L2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];L2.primary=L2[5];var k2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];k2.primary=k2[5];var F2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];F2.primary=F2[5];var z2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];z2.primary=z2[5];function Jb(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 it(h[1]).mix(new it(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 it("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var eW=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}},B2=eW;function ew(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},B2(o))}var tW=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},j2=tW;function wu(e){return(e+8)/e}function tw(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:wu(r)}))}var rW=e=>{let t=tw(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]}},W2=rW;function rw(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 Tn=(e,t)=>new it(e).setA(t).toRgbString(),Eu=(e,t)=>new it(e).darken(t).toHexString();var V2=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]}},H2=(e,t)=>{let r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Tn(o,.88),colorTextSecondary:Tn(o,.65),colorTextTertiary:Tn(o,.45),colorTextQuaternary:Tn(o,.25),colorFill:Tn(o,.15),colorFillSecondary:Tn(o,.06),colorFillTertiary:Tn(o,.04),colorFillQuaternary:Tn(o,.02),colorBgSolid:Tn(o,1),colorBgSolidHover:Tn(o,.75),colorBgSolidActive:Tn(o,.95),colorBgLayout:Eu(r,4),colorBgContainer:Eu(r,0),colorBgElevated:Eu(r,0),colorBgSpotlight:Tn(o,.85),colorBgBlur:"transparent",colorBorder:Eu(r,15),colorBorderSecondary:Eu(r,6)}};function ow(e){La.pink=La.magenta,Jh.pink=Jh.magenta;let t=Object.keys(zb).map(r=>{let o=e[r]===La[r]?Jh[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),Jb(e,{generateColorPalettes:V2,generateNeutralColorPalettes:H2})),W2(e.fontSize)),rw(e)),j2(e)),ew(e))}var oW=As(ow),Xd=oW;var Yd={token:Aa,override:{override:Aa},hashed:!0},Qd=U2.default.createContext(Yd);var ev=E(I()),Ws="ant",Zd="anticon",nw=["outlined","borderless","filled","underlined"],nW=(e,t)=>t||(e?`${Ws}-${e}`:Ws),ot=ev.createContext({getPrefixCls:nW,iconPrefixCls:Zd}),{Consumer:iW}=ot,G2={};function $o(e){let t=ev.useContext(ot),{getPrefixCls:r,direction:o,getPopupContainer:n}=t,i=t[e];return Object.assign(Object.assign({classNames:G2,styles:G2},i),{getPrefixCls:r,direction:o,getPopupContainer:n})}var aW=`-ant-${Date.now()}-${Math.random()}`;function sW(e,t){let r={},o=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new it(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 it(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 it(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 q2(e,t){let r=sW(e,t);Xt()&&yo(r,`${aW}-dynamic-theme`)}var Ru=E(I()),iw=Ru.createContext(!1),K2=e=>{let{children:t,disabled:r}=e,o=Ru.useContext(iw);return Ru.createElement(iw.Provider,{value:r??o},t)},Hr=iw;var sw=E(I());var Ou=E(I()),aw=Ou.createContext(void 0),X2=e=>{let{children:t,size:r}=e,o=Ou.useContext(aw);return Ou.createElement(aw.Provider,{value:r||o},t)},jl=aw;function lW(){let e=(0,sw.useContext)(Hr),t=(0,sw.useContext)(jl);return{componentDisabled:e,componentSize:t}}var Y2=lW;var av=E(I());var cW=lt(function e(){st(this,e)}),tv=cW;var Q2="CALC_UNIT",uW=new RegExp(Q2,"g");function lw(e){return typeof e=="number"?"".concat(e).concat(Q2):e}var Z2=function(e){Pr(r,e);var t=Tr(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=lw(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(lw(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(lw(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(uW,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(tv);var fW=function(e){Pr(r,e);var t=Tr(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}(tv),J2=fW;var dW=function(t,r){var o=t==="css"?Z2:J2;return function(n){return new o(n,r)}},rv=dW;var mW=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("-"))},cw=mW;var ov=E(I());function Et(e){var t=ov.useRef();t.current=e;var r=ov.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 _u=E(I());function ka(e){var t=_u.useRef(!1),r=_u.useState(e),o=j(r,2),n=o[0],i=o[1];_u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[n,a]}function uw(e){return e!==void 0}function Ft(e,t){var r=t||{},o=r.defaultValue,n=r.value,i=r.onChange,a=r.postState,s=ka(function(){return uw(n)?n:uw(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=ka([f]),v=j(h,2),y=v[0],g=v[1];kl(function(){var x=y[0];c!==x&&p(c,x)},[y]),kl(function(){uw(n)||u(n)},[n]);var m=Et(function(x,C){u(x,C),g([f],C)});return[d,m]}function pW(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 fw=pW;var e$=typeof CSSINJS_STATISTIC<"u",dw=!0;function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!e$)return Object.assign.apply(Object,[{}].concat(t));dw=!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]}})})}}),dw=!0,o}var nv={};function gW(){}var hW=function(t){var r,o=t,n=gW;return e$&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(t,{get:function(a,s){if(dw){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),n=function(a,s){var l;nv[a]={global:Array.from(r),component:P(P({},(l=nv[a])===null||l===void 0?void 0:l.component),s)}}),{token:o,keys:r,flush:n}},iv=hW;function vW(e,t,r){if(typeof r=="function"){var o;return r(tt(t,(o=t[e])!==null&&o!==void 0?o:{}))}return r??{}}var mw=vW;function yW(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 t$=yW;var o$=E(I()),xW=1e3*60*10,SW=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>xW&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),r$=new SW;function CW(e,t){return o$.default.useMemo(function(){var r=r$.get(t);if(r)return r;var o=e();return r$.set(t,o),o},t)}var n$=CW;var bW=function(){return{}},i$=bW;function wW(e){var t=e.useCSP,r=t===void 0?i$: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):{},C=P(P({},x),{},T({},g("zIndexPopup"),!0));Object.keys(m).forEach(function(R){C[g(R)]=m[R]});var S=P(P({},v),{},{unitless:C,prefixToken:g}),w=u(d,p,h,S),b=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=b(_),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,C=function(b){var R=b.rootCls,_=b.cssVar,O=_===void 0?{}:_,N=o(),k=N.realToken;return Lb({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:k,scope:R},function(){var A=mw(d,k,p),W=fw(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(b){var R=o(),_=R.cssVar;return[function(O){return g&&_?av.default.createElement(av.default.Fragment,null,av.default.createElement(C,{rootCls:b,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("-"),C=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,b=o(),R=b.theme,_=b.realToken,O=b.hashId,N=b.token,k=b.cssVar,A=n(),W=A.rootPrefixCls,L=A.iconPrefixCls,$=r(),D=k?"css":"js",F=n$(function(){var M=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(G){M.add(mu(G,k.prefix)),M.add(mu(G,cw(m,k.prefix)))}),rv(D,M)},[D,m,k?.prefix]),H=t$(D),z=H.max,B=H.min,U={theme:R,token:N,hashId:O,nonce:function(){return $.nonce},clientOnly:v.clientOnly,layer:C,order:v.order||-999};typeof i=="function"&&Bs(P(P({},U),{},{clientOnly:!1,path:["Shared",W]}),function(){return i(N,{prefix:{rootPrefixCls:W,iconPrefixCls:L},csp:$})});var V=Bs(P(P({},U),{},{path:[x,S,L]}),function(){if(v.injectStyle===!1)return[];var M=iv(N),G=M.token,q=M.flush,ee=mw(m,_,h),X=".".concat(S),Y=fw(m,_,ee,{deprecatedTokens:v.deprecatedTokens});k&&ee&&ue(ee)==="object"&&Object.keys(ee).forEach(function(Q){ee[Q]="var(".concat(mu(Q,cw(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 C=x.prefixCls,S=x.rootCls,w=S===void 0?C:S;return y(C,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var pw=wW;var Nn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var c$=E(I());var a$="5.24.3";var s$=a$;function gw(e){return e>=0&&e<=255}function EW(e,t){let{r,g:o,b:n,a:i}=new it(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new it(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(gw(u)&&gw(f)&&gw(d))return new it({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new it({r,g:o,b:n,a:1}).toRgbString()}var Wl=EW;var RW=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 sv(e){let{override:t}=e,r=RW(e,["override"]),o=Object.assign({},t);Object.keys(Aa).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:Wl(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:Wl(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Wl(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:Wl(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 it("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
0 3px 6px 0 ${new it("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
0 5px 12px 4px ${new it("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 l$=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},hw={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},OW={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},_W={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},u$=(e,t,r)=>{let o=r.getDerivativeToken(e),{override:n}=t,i=l$(t,["override"]),a=Object.assign(Object.assign({},o),{override:n});return a=sv(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s,{theme:u}=c,f=l$(c,["theme"]),d=f;u&&(d=u$(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}=c$.default.useContext(Qd),i=`${s$}-${t||""}`,a=r||Xd,[s,l,c]=Ah(a,[Aa,e],{salt:i,override:o,getComputedToken:u$,formatToken:sv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:hw,ignore:OW,preserve:_W}});return[a,c,t?l:"",s,n]}var yw=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}},Fa=()=>({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"}}),Pu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),f$=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"}}}),d$=(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})}},vw=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),lv=(e,t)=>({"&:focus-visible":Object.assign({},vw(e,t))}),cv=e=>({[`.${e}`]:Object.assign(Object.assign({},Fa()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:_t,genComponentStyleHook:xw,genSubStyleComponent:Sw}=pw({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,yw.useContext)(ot);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,yw.useContext)(ot);return e??{}},getResetStyles:(e,t)=>{var r;let o=f$(e);return[o,{"&":o},cv((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Zd)]},getCommonStyle:d$,getCompUnitless:()=>hw});function uv(e,t){return Nn.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 PW=(e,t)=>{let[r,o]=gr();return Bs({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[cv(e)])},fv=PW;var TW=E(I()),NW=Object.assign({},TW),{useId:m$}=NW,IW=()=>"",$W=typeof m$>"u"?IW:m$,p$=$W;function Cw(e,t,r){var o,n;let i=Kh("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=p$();return Qi(()=>{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!Ji(f,p,!0)}))}var Nv=E(I());var N$=E(we());var ln=E(I()),Nw=E(I());var dv=E(I()),DW=["children"],bw=dv.createContext({});function mv(e){var t=e.children,r=Me(e,DW);return dv.createElement(bw.Provider,{value:r},t)}var g$=E(I()),MW=function(e){Pr(r,e);var t=Tr(r);function r(){return st(this,r),t.apply(this,arguments)}return lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(g$.Component),h$=MW;var pv=E(I());function ww(e){var t=pv.useReducer(function(s){return s+1},0),r=j(t,2),o=r[1],n=pv.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 wv=E(I()),Ba=E(I());var ta="none",Jd="appear",em="enter",tm="leave",Ew="none",sn="prepare",za="start",Vs="active",gv="end",hv="prepared";var w$=E(I()),E$=E(I());function v$(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 AW(e,t){var r={animationend:v$("Animation","AnimationEnd"),transitionend:v$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var LW=AW(Xt(),typeof window<"u"?window:{}),x$={};Xt()&&(y$=document.createElement("div"),x$=y$.style);var y$,vv={};function S$(e){if(vv[e])return vv[e];var t=LW[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 x$)return vv[e]=t[i],vv[e]}return""}var C$=S$("animationend"),b$=S$("transitionend"),yv=!!(C$&&b$),Rw=C$||"animationend",Ow=b$||"transitionend";function _w(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 R$=function(e){var t=(0,E$.useRef)();function r(n){n&&(n.removeEventListener(Ow,e),n.removeEventListener(Rw,e))}function o(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(Ow,e),n.addEventListener(Rw,e),t.current=n)}return w$.useEffect(function(){return function(){r(t.current)}},[]),[o,r]};var xv=E(I()),kW=Xt()?xv.useLayoutEffect:xv.useEffect,Sv=kW;var _$=E(I());var Cv=E(I()),O$=function(){var e=Cv.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 Cv.useEffect(function(){return function(){t()}},[]),[r,t]};var FW=[sn,za,Vs,gv],zW=[sn,hv],Pw=!1,P$=!0;function bv(e){return e===Vs||e===gv}var T$=function(e,t,r){var o=ka(Ew),n=j(o,2),i=n[0],a=n[1],s=O$(),l=j(s,2),c=l[0],u=l[1];function f(){a(sn,!0)}var d=t?zW:FW;return Sv(function(){if(i!==Ew&&i!==gv){var p=d.indexOf(i),h=d[p+1],v=r(i);v===Pw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),_$.useEffect(function(){return function(){u()}},[]),[f,i]};function Tw(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,C=o.onLeaveActive,S=o.onAppearEnd,w=o.onEnterEnd,b=o.onLeaveEnd,R=o.onVisibleChanged,_=ka(),O=j(_,2),N=O[0],k=O[1],A=ww(ta),W=j(A,2),L=W[0],$=W[1],D=ka(null),F=j(D,2),H=F[0],z=F[1],B=L(),U=(0,Ba.useRef)(!1),V=(0,Ba.useRef)(null);function M(){return r()}var G=(0,Ba.useRef)(!1);function q(){$(ta),z(null,!0)}var ee=Et(function(ye){var Ee=L();if(Ee!==ta){var le=M();if(!(ye&&!ye.deadline&&ye.target!==le)){var ae=G.current,Re;Ee===Jd&&ae?Re=S?.(le,ye):Ee===em&&ae?Re=w?.(le,ye):Ee===tm&&ae&&(Re=b?.(le,ye)),ae&&Re!==!1&&q()}}}),X=R$(ee),Y=j(X,1),ne=Y[0],re=function(Ee){switch(Ee){case Jd:return T(T(T({},sn,d),za,v),Vs,m);case em:return T(T(T({},sn,p),za,y),Vs,x);case tm:return T(T(T({},sn,h),za,g),Vs,C);default:return{}}},K=wv.useMemo(function(){return re(B)},[B]),Q=T$(B,!e,function(ye){if(ye===sn){var Ee=K[sn];return Ee?Ee(M()):Pw}if(oe in K){var le;z(((le=K[oe])===null||le===void 0?void 0:le.call(K,M(),null))||null)}return oe===Vs&&B!==ta&&(ne(M()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ee({deadline:!0})},u))),oe===hv&&q(),P$}),ie=j(Q,2),Z=ie[0],oe=ie[1],me=bv(oe);G.current=me;var fe=(0,Ba.useRef)(null);Sv(function(){if(!(U.current&&fe.current===t)){k(t);var ye=U.current;U.current=!0;var Ee;!ye&&t&&s&&(Ee=Jd),ye&&t&&i&&(Ee=em),(ye&&!t&&c||!ye&&f&&!t&&c)&&(Ee=tm);var le=re(Ee);Ee&&(e||le[sn])?($(Ee),Z()):$(ta),fe.current=t}},[t]),(0,Ba.useEffect)(function(){(B===Jd&&!s||B===em&&!i||B===tm&&!c)&&$(ta)},[s,i,c]),(0,Ba.useEffect)(function(){return function(){U.current=!1,clearTimeout(V.current)}},[]);var de=wv.useRef(!1);(0,Ba.useEffect)(function(){N&&(de.current=!0),N!==void 0&&B===ta&&((de.current||N)&&R?.(N),de.current=!0)},[N,B]);var he=H;return K[sn]&&oe===za&&(he=P({transition:"none"},he)),[B,oe,he,N??t]}function BW(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(bw),y=v.motion,g=r(n,y),m=(0,Nw.useRef)(),x=(0,Nw.useRef)();function C(){try{return m.current instanceof HTMLElement?m.current:Al(x.current)}catch{return null}}var S=Tw(g,s,C,n),w=j(S,4),b=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(b===ta)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":bv(R)?L="active":R===za&&(L="start");var $=_w(d,"".concat(b,"-").concat(L));A=f(P(P({},W),{},{className:(0,N$.default)(_w(d,b),T(T({},$,$&&L),d,typeof d=="string")),style:_}),k)}if(ln.isValidElement(A)&&Ei(A)){var D=Is(A);D||(A=ln.cloneElement(A,{ref:k}))}return ln.createElement(h$,{ref:x},A)});return o.displayName="CSSMotion",o}var Ev=BW(yv);var Vl=E(I());var Rv="add",Ov="keep",_v="remove",Tv="removed";function jW(e){var t;return e&&ue(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function Pv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(jW)}function I$(){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=Pv(e),a=Pv(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:Rv})})),o=f),r.push(P(P({},d),{},{status:Ov})),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:Rv})})));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=Ov)})}),r}var WW=["component","children","onVisibleChanged","onAllRemoved"],VW=["status"],HW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ev,r=function(o){Pr(i,o);var n=Tr(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:Tv})});return{keyEntities:d}},function(){var f=a.state.keyEntities,d=f.filter(function(p){var h=p.status;return h!==Tv}).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,WW),v=u||Vl.Fragment,y={};return HW.forEach(function(g){y[g]=h[g],delete h[g]}),delete h.keys,Vl.createElement(v,h,l.map(function(g,m){var x=g.status,C=Me(g,VW),S=x===Rv||x===Ov;return Vl.createElement(t,J({},y,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(b){d?.(b,{key:C.key}),b||s.removeKey(C.key)}}),function(w,b){return f(P(P({},w),{},{index:m}),b)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Pv(c),d=I$(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===Tv&&p.status===_v)})}}}]),i}(Vl.Component);return T(r,"defaultProps",{component:"div"}),r}var Iw=UW(yv);var ao=Ev;function $w(e){let{children:t}=e,[,r]=gr(),{motion:o}=r,n=Nv.useRef(!1);return n.current=n.current||o===!1,n.current?Nv.createElement(mv,{motion:o},t):t}var GW=E(I());var $$=()=>null;var qW=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 KW=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],D$,XW,YW,QW;function ZW(){return D$||Ws}function JW(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var e8=e=>{let{prefixCls:t,iconPrefixCls:r,theme:o,holderRender:n}=e;t!==void 0&&(D$=t),r!==void 0&&(XW=r),"holderRender"in e&&(QW=n),o&&(JW(o)?q2(ZW(),o):YW=o)};var t8=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:C,segmented:S,statistic:w,spin:b,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:Ee,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:be,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;fv(et,De);let Le=Cw(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:b,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:Ee,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:be,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])}),KW.forEach(Ke=>{let rt=e[Ke];rt&&(Ne[Ke]=rt)}),typeof o<"u"&&(Ne.button=Object.assign({autoInsertSpace:o},Ne.button));let ht=Qi(()=>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:Bt}=nr.useContext(_i),We=nr.useMemo(()=>({prefixCls:et,csp:De,layer:Bt?"antd":void 0}),[et,De,Bt]),_e=nr.createElement(nr.Fragment,null,nr.createElement($$,{dropdownMatchSelectWidth:p}),t),Qe=nr.useMemo(()=>{var Ke,rt,Lt,Nt;return Ma(((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(u2.Provider,{value:Qe},_e)),s&&(_e=nr.createElement(x2,{locale:s,_ANT_MARK__:y2},_e)),(et||De)&&(_e=nr.createElement(Su.Provider,{value:We},_e)),l&&(_e=nr.createElement(X2,{size:l},_e)),_e=nr.createElement($w,null,_e);let Ze=nr.useMemo(()=>{let Ke=Le||{},{algorithm:rt,token:Lt,components:Nt,cssVar:er}=Ke,kt=qW(Ke,["algorithm","token","components","cssVar"]),tr=rt&&(!Array.isArray(rt)||rt.length>0)?As(rt):Xd,cr={};Object.entries(Nt||{}).forEach(ko=>{let[fr,wr]=ko,Ce=Object.assign({},wr);"algorithm"in Ce&&(Ce.algorithm===!0?Ce.theme=tr:(Array.isArray(Ce.algorithm)||typeof Ce.algorithm=="function")&&(Ce.theme=As(Ce.algorithm)),delete Ce.algorithm),cr[fr]=Ce});let ur=Object.assign(Object.assign({},Aa),Lt);return Object.assign(Object.assign({},kt),{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(l2.Provider,{value:ht.warning},_e)),C!==void 0&&(_e=nr.createElement(K2,{disabled:C},_e)),nr.createElement(ot.Provider,{value:ht},_e)},Tu=e=>{let t=nr.useContext(ot),r=nr.useContext(Cu);return nr.createElement(t8,Object.assign({parentContext:t,legacyLocale:r},e))};Tu.ConfigContext=ot;Tu.SizeContext=jl;Tu.config=e8;Tu.useConfig=Y2;Object.defineProperty(Tu,"SizeContext",{get:()=>jl});var ja=Tu;var Av=E(I());var r8={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"},M$=r8;var Gl=E(I()),j$=E(we());var z$=E(I());function A$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function o8(e){return A$(e)instanceof ShadowRoot}function Hl(e){return o8(e)?A$(e):null}var Ul=E(I());function n8(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function k$(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function Dw(e){return ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ue(e.icon)==="object"||typeof e.icon=="function")}function L$(){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[n8(r)]=o}return t},{})}function Iv(e,t,r){return r?Ul.default.createElement(e.tag,P(P({key:t},L$(e.attrs)),r),(e.children||[]).map(function(o,n){return Iv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})):Ul.default.createElement(e.tag,P({key:t},L$(e.attrs)),(e.children||[]).map(function(o,n){return Iv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function Mw(e){return Ni(e)[0]}function $v(e){return e?Array.isArray(e)?e:[e]:[]}var i8=`
|
|
.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);
|
|
}
|
|
}
|
|
`,F$=function(t){var r=(0,Ul.useContext)(Su),o=r.csp,n=r.prefixCls,i=r.layer,a=i8;n&&(a=a.replace(/anticon/g,n)),i&&(a="@layer ".concat(i,` {
|
|
`).concat(a,`
|
|
}`)),(0,Ul.useEffect)(function(){var s=t.current,l=Hl(s);yo(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:l})},[])};var a8=["icon","className","onClick","style","primaryColor","secondaryColor"],rm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function s8(e){var t=e.primaryColor,r=e.secondaryColor;rm.primaryColor=t,rm.secondaryColor=r||Mw(t),rm.calculated=!!r}function l8(){return P({},rm)}var Dv=function(t){var r=t.icon,o=t.className,n=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Me(t,a8),c=z$.useRef(),u=rm;if(a&&(u={primaryColor:a,secondaryColor:s||Mw(a)}),F$(c),k$(Dw(r),"icon should be icon definiton, but got ".concat(r)),!Dw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Iv(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}))};Dv.displayName="IconReact";Dv.getTwoToneColors=l8;Dv.setTwoToneColors=s8;var om=Dv;function Aw(e){var t=$v(e),r=j(t,2),o=r[0],n=r[1];return om.setTwoToneColors({primaryColor:o,secondaryColor:n})}function B$(){var e=om.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var c8=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Aw(js.primary);var Mv=Gl.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,c8),u=Gl.useContext(Su),f=u.prefixCls,d=f===void 0?"anticon":f,p=u.rootClassName,h=(0,j$.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=$v(l),m=j(g,2),x=m[0],C=m[1];return Gl.createElement("span",J({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Gl.createElement(om,{icon:o,primaryColor:x,secondaryColor:C,style:y}))});Mv.displayName="AntdIcon";Mv.getTwoToneColor=B$;Mv.setTwoToneColor=Aw;var mt=Mv;var u8=function(t,r){return Av.createElement(mt,J({},t,{ref:r,icon:M$}))},f8=Av.forwardRef(u8),W$=f8;var Lv=E(I());var d8={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"},V$=d8;var m8=function(t,r){return Lv.createElement(mt,J({},t,{ref:r,icon:V$}))},p8=Lv.forwardRef(m8),Nu=p8;var kv=E(I());var g8={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"},H$=g8;var h8=function(t,r){return kv.createElement(mt,J({},t,{ref:r,icon:H$}))},v8=kv.forwardRef(h8),Iu=v8;var y8=`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`,x8=`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`,S8="".concat(y8," ").concat(x8).split(/[\s\n]+/),C8="aria-",b8="data-";function U$(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"||U$(n,C8))||r.data&&U$(n,b8)||r.attr&&S8.includes(n))&&(o[n]=e[n])}),o}var nm=E(I());function Fv(e){return e&&nm.default.isValidElement(e)&&e.type===nm.default.Fragment}var w8=(e,t,r)=>nm.default.isValidElement(e)?nm.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Qn(e,t){return w8(e,e,t)}var E8=e=>{let[,,,,t]=gr();return t?`${e}-css-var`:""},Mo=E8;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 zv=E(I());var R8={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"},G$=R8;var O8=function(t,r){return zv.createElement(mt,J({},t,{ref:r,icon:G$}))},_8=zv.forwardRef(O8),ql=_8;var K$=E(I());var q$=E(I()),P8=q$.default.createContext(void 0),Bv=P8;var Wa=100,T8=10,N8=Wa*T8,Fde=N8+Wa,X$={Modal:Wa,Drawer:Wa,Popover:Wa,Popconfirm:Wa,Tooltip:Wa,Tour:Wa,FloatButton:Wa},I8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function $8(e){return e in X$}var ra=(e,t)=>{let[,r]=gr(),o=K$.default.useContext(Bv),n=$8(e),i;if(t!==void 0)i=[t,t];else{let a=o??0;n?a+=(o?0:r.zIndexPopupBase)+X$[e]:a+=I8[e],i=[o===void 0?t:a,a]}return i};var B8=E(I()),Kde=E(wi());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 C={};c(C,a,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(L([])));w&&w!==r&&o.call(w,a)&&(C=w);var b=x.prototype=g.prototype=Object.create(C);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(b,"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(b),$},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(b),c(b,l,"Generator"),c(b,a,function(){return this}),c(b,"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 Y$(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){Y$(i,o,n,a,s,"next",l)}function s(l){Y$(i,o,n,a,s,"throw",l)}a(void 0)})}}var D8=E(wi()),im=P({},D8),M8=im.version,Lw=im.render,A8=im.unmountComponentAtNode,Wv;try{Q$=Number((M8||"").split(".")[0]),Q$>=18&&(Wv=im.createRoot)}catch{}var Q$;function Z$(e){var t=im.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ue(t)==="object"&&(t.usingClientEntryPoint=e)}var jv="__rc_react_root__";function L8(e,t){Z$(!0);var r=t[jv]||Wv(t);Z$(!1),r.render(e),t[jv]=r}function k8(e,t){Lw?.(e,t)}function J$(e,t){if(Wv){L8(e,t);return}k8(e,t)}function F8(e){return kw.apply(this,arguments)}function kw(){return kw=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[jv])===null||n===void 0||n.unmount(),delete t[jv]}));case 1:case"end":return o.stop()}},e)})),kw.apply(this,arguments)}function z8(e){A8(e)}function eD(e){return Fw.apply(this,arguments)}function Fw(){return Fw=so(At().mark(function e(t){return At().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Wv===void 0){o.next=2;break}return o.abrupt("return",F8(t));case 2:z8(t);case 3:case"end":return o.stop()}},e)})),Fw.apply(this,arguments)}var j8=(e,t)=>(J$(e,t),()=>eD(t)),W8=j8;function tD(){return W8}var zw=()=>({height:0,opacity:0}),rD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},V8=e=>({height:e?e.offsetHeight:0}),Bw=(e,t)=>t?.deadline===!0||t.propertyName==="height",H8=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ws}-motion-collapse`,onAppearStart:zw,onEnterStart:zw,onAppearActive:rD,onEnterActive:rD,onLeaveStart:V8,onLeaveActive:zw,onAppearEnd:Bw,onEnterEnd:Bw,onLeaveEnd:Bw,motionDeadline:500}};var oa=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var oD=H8;var Ut=E(I()),uy=E(we());function hr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(o){delete r[o]}),r}var Kl=E(I()),cD=E(we());var Vv=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 U8=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(",")}}}}},nD=xw("Wave",e=>[U8(e)]);var Hv=E(I());var $u=`${Ws}-wave-target`;var lo=E(I()),aD=E(we());function jw(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 iD(e){let{borderTopColor:t,borderColor:r,backgroundColor:o}=getComputedStyle(e);return jw(t)?t:jw(r)?r:jw(o)?o:null}function Ww(e){return Number.isNaN(e)?0:e}var G8=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,C]=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(iD(r));let _=R.position==="static",{borderLeftWidth:O,borderTopWidth:N}=R;d(_?r.offsetLeft:Ww(-parseFloat(O))),h(_?r.offsetTop:Ww(-parseFloat(N))),y(r.offsetWidth),m(r.offsetHeight);let{borderTopLeftRadius:k,borderTopRightRadius:A,borderBottomLeftRadius:W,borderBottomRightRadius:L}=R;u([k,A,L,W].map($=>Ww(parseFloat($))))}if(lo.useEffect(()=>{if(r){let R=ct(()=>{w(),C(!0)}),_;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(r)),()=>{ct.cancel(R),_?.disconnect()}}},[]),!x)return null;let b=(o==="Checkbox"||o==="Radio")&&r?.classList.contains($u);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,aD.default)(t,O,{"wave-quick":b}),style:S})})},q8=(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=tD(),a=null;function s(){return a}a=i(lo.createElement(G8,Object.assign({},t,{target:e,registerUnmount:s})),n)},sD=q8;var K8=(e,t,r)=>{let{wave:o}=Hv.useContext(ot),[,n,i]=gr(),a=Et(c=>{let u=e.current;if(o?.disabled||!u)return;let f=u.querySelector(`.${$u}`)||u,{showEffect:d}=o||{};(d||sD)(f,{className:t,token:n,component:r,event:c,hashId:i})}),s=Hv.useRef(null);return c=>{ct.cancel(s.current),s.current=ct(()=>{a(c)})}},lD=K8;var X8=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:n}=(0,Kl.useContext)(ot),i=(0,Kl.useRef)(null),a=n("wave"),[,s]=nD(a),l=lD(i,(0,cD.default)(a,s),o);if(Kl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Vv(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]),!Kl.default.isValidElement(t))return t??null;let c=Ei(t)?Ar(Is(t),i):i;return Qn(t,{ref:c})},Uv=X8;var Vw=E(I());var Y8=e=>{let t=Vw.default.useContext(jl);return Vw.default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},cn=Y8;var Hs=E(I()),uD=E(we());var fD=Hs.createContext(null),Zn=(e,t)=>{let r=Hs.useContext(fD),o=Hs.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s=n==="vertical"?"-vertical-":"-";return(0,uD.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}},dD=e=>{let{children:t}=e;return Hs.createElement(fD.Provider,{value:null},t)};var Va=E(I()),mD=E(we());var Q8=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},Hw=Va.createContext(void 0),Z8=e=>{let{getPrefixCls:t,direction:r}=Va.useContext(ot),{prefixCls:o,size:n,className:i}=e,a=Q8(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=gr(),c=Va.useMemo(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),u=(0,mD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Va.createElement(Hw.Provider,{value:n},Va.createElement("div",Object.assign({},a,{className:u})))},pD=Z8;var Du=E(I());var gD=/^[\u4E00-\u9FA5]{2}$/,Gv=gD.test.bind(gD);function hD(e){return typeof e=="string"}function qv(e){return e==="text"||e==="link"}function J8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hD(e.type)&&Gv(e.props.children)?Qn(e,{children:e.props.children.split("").join(r)}):hD(e)?Gv(e)?Du.default.createElement("span",null,e.split("").join(r)):Du.default.createElement("span",null,e):Fv(e)?Du.default.createElement("span",null,e):e}function vD(e,t){let r=!1,o=[];return Du.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}),Du.default.Children.map(o,n=>J8(n,t))}var kme=["default","primary","danger"].concat(se(Nn));var Us=E(I());var qw=E(we());var Kv=E(I()),yD=E(we()),eV=(0,Kv.forwardRef)((e,t)=>{let{className:r,style:o,children:n,prefixCls:i}=e,a=(0,yD.default)(`${i}-icon`,r);return Kv.default.createElement("span",{ref:t,className:a,style:o},n)}),am=eV;var xD=(0,Us.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:n,iconClassName:i}=e,a=(0,qw.default)(`${r}-loading-icon`,o);return Us.default.createElement(am,{prefixCls:r,className:a,style:n,ref:t},Us.default.createElement(ql,{className:i}))}),Uw=()=>({width:0,opacity:0,transform:"scale(0)"}),Gw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),tV=e=>{let{prefixCls:t,loading:r,existIcon:o,className:n,style:i,mount:a}=e,s=!!r;return o?Us.default.createElement(xD,{prefixCls:t,className:n,style:i}):Us.default.createElement(ao,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Uw,onAppearActive:Gw,onEnterStart:Uw,onEnterActive:Gw,onLeaveStart:Gw,onLeaveActive:Uw},(l,c)=>{let{className:u,style:f}=l,d=Object.assign(Object.assign({},i),f);return Us.default.createElement(xD,{prefixCls:t,className:(0,qw.default)(n,u),style:d,ref:c})})},SD=tV;var CD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),rV=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}},CD(`${t}-primary`,n),CD(`${t}-danger`,i)]}},bD=rV;var Qw=E(I());var oV=["b"],nV=["v"],Kw=function(t){return Math.round(Number(t||0))},iV=function(t){if(t instanceof it)return t;if(t&&ue(t)==="object"&&"h"in t&&"b"in t){var r=t,o=r.b,n=Me(r,oV);return P(P({},n),{},{v:o})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Jn=function(e){Pr(r,e);var t=Tr(r);function r(o){return st(this,r),t.call(this,iV(o))}return lt(r,[{key:"toHsbString",value:function(){var n=this.toHsb(),i=Kw(n.s*100),a=Kw(n.b*100),s=Kw(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,nV);return P(P({},a),{},{b:i,a:this.a})}}]),r}(it);var Xw=function(t){return t instanceof Jn?t:new Jn(t)},aV=Xw("#1677ff");var CV=E(we());var sV=E(we()),lV=E(I());var ED=E(I());var Yw=E(I());var cV=E(we()),uV=E(I());var fV=E(I());var wD=E(I());var yV=E(I());var SV=E(I());var OD=E(I());var xV=E(we());var RD=E(I());var bV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",wV=(e,t)=>e?bV(e,t):"",PD=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 Jn(this.colors[0].color.metaColor)):this.metaColor=new Jn(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 wV(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 tM=E(I());var DV=E(we());var Xv=E(I());var EV={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"},TD=EV;var RV=function(t,r){return Xv.createElement(mt,J({},t,{ref:r,icon:TD}))},OV=Xv.forwardRef(RV),ND=OV;var _V=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`}}}),Zw=_V;var PV=e=>({animationDuration:e,animationFillMode:"both"}),TV=e=>({animationDuration:e,animationFillMode:"both"}),Gs=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({},PV(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},TV(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 ID=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),$D=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Xl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{antCls:r}=e,o=`${r}-fade`,n=t?"&":"";return[Gs(o,ID,$D,e.motionDurationMid,t),{[`
|
|
${n}${o}-enter,
|
|
${n}${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${o}-leave`]:{animationTimingFunction:"linear"}}]};var DD=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}}),MD=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}}),AD=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}}),LD=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}}),kD=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}}),FD=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}}),zD=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}}),BD=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}}),NV={"move-up":{inKeyframes:zD,outKeyframes:BD},"move-down":{inKeyframes:DD,outKeyframes:MD},"move-left":{inKeyframes:AD,outKeyframes:LD},"move-right":{inKeyframes:kD,outKeyframes:FD}},Yv=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=NV[t];return[Gs(o,n,i,e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Qv=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Zv=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jv=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ey=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),jD=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),WD=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VD=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),HD=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),IV={"slide-up":{inKeyframes:Qv,outKeyframes:Zv},"slide-down":{inKeyframes:Jv,outKeyframes:ey},"slide-left":{inKeyframes:jD,outKeyframes:WD},"slide-right":{inKeyframes:VD,outKeyframes:HD}},ty=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=IV[t];return[Gs(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 UD=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GD=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Jw=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e1=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),qD=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),KD=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),XD=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),YD=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QD=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ZD=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),JD=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eM=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$V={zoom:{inKeyframes:UD,outKeyframes:GD},"zoom-big":{inKeyframes:Jw,outKeyframes:e1},"zoom-big-fast":{inKeyframes:Jw,outKeyframes:e1},"zoom-left":{inKeyframes:XD,outKeyframes:YD},"zoom-right":{inKeyframes:QD,outKeyframes:ZD},"zoom-up":{inKeyframes:qD,outKeyframes:KD},"zoom-down":{inKeyframes:JD,outKeyframes:eM}},Yl=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=$V[t];return[Gs(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 rM=(e,t)=>{let{r,g:o,b:n,a:i}=e.toRgb(),a=new Jn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+o*.587+n*.114>192};var ry=e=>{let{paddingInline:t,onlyIconSize:r}=e;return tt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},oy=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:wu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:wu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:wu(c),p=rM(new PD(e.colorBgSolid),"#fff")?"#000":"#fff",h=Nn.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Wl(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 MV=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`]:Fa(),"> a":{color:"currentColor"},"&:not(:disabled)":lv(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()}}}}}},oM=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),AV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),LV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),kV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ny=(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"},oM(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),FV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},kV(e))}),zV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),iy=(e,t,r,o)=>{let i=o&&["link","text"].includes(o)?zV:FV;return Object.assign(Object.assign({},i(e)),oM(e.componentCls,t,r))},ay=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},iy(e,o,n))}),sy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},iy(e,o,n))}),ly=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),cy=(e,t,r,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},iy(e,r,o))}),na=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},iy(e,o,n,r))}),BV=e=>{let{componentCls:t}=e;return Nn.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`]},ay(e,e.colorTextLightSolid,n,{background:a},{background:c})),sy(e,n,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),ly(e)),cy(e,i,{background:s},{background:l})),na(e,n,"link",{color:a},{color:c})),na(e,n,"text",{color:a,background:i},{color:c,background:l}))})},{})},jV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ay(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ly(e)),cy(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ny(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),na(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),WV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},sy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ly(e)),cy(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),na(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),na(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ny(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),VV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ay(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),sy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ly(e)),cy(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),na(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),na(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ny(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),HV=e=>Object.assign(Object.assign({},na(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ny(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),UV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:jV(e),[`${t}-color-primary`]:WV(e),[`${t}-color-dangerous`]:VV(e),[`${t}-color-link`]:HV(e)},BV(e))},GV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},sy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),na(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ay(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),na(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),t1=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}`]:AV(e)},{[`${r}${r}-round${t}`]:LV(e)}]},qV=e=>{let t=tt(e,{fontSize:e.contentFontSize});return t1(t,e.componentCls)},KV=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 t1(t,`${e.componentCls}-sm`)},XV=e=>{let t=tt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return t1(t,`${e.componentCls}-lg`)},YV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},nM=_t("Button",e=>{let t=ry(e);return[MV(t),qV(t),KV(t),XV(t),YV(t),UV(t),GV(t),bD(t)]},oy,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function QV(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 ZV(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 qs(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({},QV(e,o,t)),ZV(r,o,t))}}function JV(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 eH(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 iM(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},JV(e,t)),eH(e.componentCls,t))}}var tH=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))},aM=Sw(["Button","compact"],e=>{let t=ry(e);return[qs(t),iM(t),tH(t)]},oy);var rH=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 oH(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 nH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},iH=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:C=!1,htmlType:S="button",classNames:w,style:b={},autoInsertSpace:R,autoFocus:_}=e,O=rH(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=nH[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]=nM(M),X=(0,Ut.useContext)(Hr),Y=p??X,ne=(0,Ut.useContext)(Hw),re=(0,Ut.useMemo)(()=>oH(n),[n]),[K,Q]=(0,Ut.useState)(re.loading),[ie,Z]=(0,Ut.useState)(!1),oe=(0,Ut.useRef)(null),me=On(t,oe),fe=Ut.Children.count(y)===1&&!g&&!qv(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&&Gv(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:Ee}=Zn(M,D),le={large:"lg",small:"sm",middle:void 0},ae=cn(pe=>{var ze,be;return(be=(ze=f??ye)!==null&&ze!==void 0?ze:ne)!==null&&be!==void 0?be:pe}),Re=ae&&(o=le[ae])!==null&&o!==void 0?o:"",Ae=K?"loading":g,je=hr(O,["navigate"]),Ie=(0,uy.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&&!qv(A),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:ie&&V&&!K,[`${M}-block`]:C,[`${M}-rtl`]:D==="rtl",[`${M}-icon-end`]:m==="end"},Ee,h,v,H),Oe=Object.assign(Object.assign({},z),b),Se=(0,uy.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(SD,{existIcon:!!g,prefixCls:M,loading:K,mount:de.current}),$e=y||y===0?vD(y,fe&&V):null;if(je.href!==void 0)return G(Ut.default.createElement("a",Object.assign({},je,{className:(0,uy.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,Ee&&Ut.default.createElement(aM,{prefixCls:M}));return qv(A)||(ce=Ut.default.createElement(Uv,{component:"Button",disabled:K},ce)),G(ce)}),r1=iH;r1.Group=pD;r1.__ANT_BUTTON=!0;var sM=r1;var sm=sM;var ei=E(I()),hM=E(wi());var lM=E(I()),aH=lM.createContext(null),fy=aH;var Ql=E(I());var cM=[];function o1(e,t){var r=Ql.useState(function(){if(!Xt())return null;var h=document.createElement("div");return h}),o=j(r,1),n=o[0],i=Ql.useRef(!1),a=Ql.useContext(fy),s=Ql.useState(cM),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(cM))},[c]),[n,f]}var mM=E(I());function sH(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),Zi(t),{width:d,height:p}}function uM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:sH(e)}function fM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var lH="rc-util-locker-".concat(Date.now()),dM=0;function n1(e){var t=!!e,r=mM.useState(function(){return dM+=1,"".concat(lH,"_").concat(dM)}),o=j(r,1),n=o[0];vt(function(){if(t){var i=uM(document.body).width,a=fM();yo(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
}`),n)}else Zi(n);return function(){Zi(n)}},[t,n])}var pM=!1;function i1(e){return typeof e=="boolean"&&(pM=e),pM}var gM=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},cH=ei.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=ei.useState(r),u=j(c,2),f=u[0],d=u[1],p=f||r;ei.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=ei.useState(function(){return gM(n)}),v=j(h,2),y=v[0],g=v[1];ei.useEffect(function(){var k=gM(n);g(k??null)});var m=o1(p&&!y,i),x=j(m,2),C=x[0],S=x[1],w=y??C;n1(o&&r&&Xt()&&(w===C||w===document.body));var b=null;if(l&&Ei(l)&&t){var R=l;b=R.ref}var _=On(b,t);if(!p||!Xt()||y===void 0)return null;var O=w===!1||i1(),N=l;return t&&(N=ei.cloneElement(l,{ref:_})),ei.createElement(fy.Provider,{value:S},O?N:(0,hM.createPortal)(N,w))}),vM=cH;var Zl=vM;var ia=E(I());var yM=E(I()),dy=yM.createContext({});var c1=E(we());var lm=E(I());function uH(){var e=P({},lm);return e.useId}var xM=0;var SM=uH(),Mu=SM?function(t){var r=SM();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=xM;xM+=1,i("rc_unique_".concat(a))},[]),t||n};var ec=E(I()),Ha=E(I());function a1(e,t,r){var o=t;return!o&&r&&(o="".concat(e,"-").concat(r)),o}function CM(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 bM(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},o=e.ownerDocument,n=o.defaultView||o.parentWindow;return r.left+=CM(n),r.top+=CM(n,!0),r}var Jl=E(I()),RM=E(I()),OM=E(we());var Au=E(we());var Ur=E(I());var wM=E(I()),EM=wM.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var fH={width:0,height:0,overflow:"hidden",outline:"none"},dH={outline:"none"},mH=Ur.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,C=e.width,S=e.height,w=e.classNames,b=e.styles,R=Ur.default.useContext(dy),_=R.panel,O=On(g,_),N=(0,Ur.useRef)(),k=(0,Ur.useRef)();Ur.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={};C!==void 0&&(A.width=C),S!==void 0&&(A.height=S);var W=s?Ur.default.createElement("div",{className:(0,Au.default)("".concat(r,"-footer"),w?.footer),style:P({},b?.footer)},s):null,L=i?Ur.default.createElement("div",{className:(0,Au.default)("".concat(r,"-header"),w?.header),style:P({},b?.header)},Ur.default.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,$=(0,Ur.useMemo)(function(){return ue(l)==="object"&&l!==null?l:l?{closeIcon:c??Ur.default.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),D=Do($,!0),F=ue(l)==="object"&&l.disabled,H=l?Ur.default.createElement("button",J({type:"button",onClick:u,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:F}),$.closeIcon):null,z=Ur.default.createElement("div",{className:(0,Au.default)("".concat(r,"-content"),w?.content),style:b?.content},H,L,Ur.default.createElement("div",J({className:(0,Au.default)("".concat(r,"-body"),w?.body),style:P(P({},d),b?.body)},p),f),W);return Ur.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,Au.default)(r,o),onMouseDown:v,onMouseUp:y},Ur.default.createElement("div",{ref:N,tabIndex:0,style:dH},Ur.default.createElement(EM,{shouldUpdate:m||x},h?h(z):z)),Ur.default.createElement("div",{tabIndex:0,ref:k,style:fH}))}),s1=mH;var _M=Jl.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,RM.useRef)(),h=Jl.useState(),v=j(h,2),y=v[0],g=v[1],m={};y&&(m.transformOrigin=y);function x(){var C=bM(p.current);g(d&&(d.x||d.y)?"".concat(d.x-C.left,"px ").concat(d.y-C.top,"px"):"")}return Jl.createElement(ao,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(C,S){var w=C.className,b=C.style;return Jl.createElement(s1,J({},e,{ref:t,title:o,ariaId:u,prefixCls:r,holderRef:S,style:P(P(P({},b),n),m),className:(0,OM.default)(i,w)}))})});_M.displayName="Content";var PM=_M;var l1=E(I()),TM=E(we());var pH=function(t){var r=t.prefixCls,o=t.style,n=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return l1.createElement(ao,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return l1.createElement("div",J({ref:c,style:P(P({},f),o),className:(0,TM.default)("".concat(r,"-mask"),u,s)},i))})},NM=pH;var gH=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,C=x===void 0?!0:x,S=t.mask,w=S===void 0?!0:S,b=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,Ha.useRef)(),D=(0,Ha.useRef)(),F=(0,Ha.useRef)(),H=ec.useState(a),z=j(H,2),B=z[0],U=z[1],V=Mu();function M(){uu(D.current,document.activeElement)||($.current=document.activeElement)}function G(){if(!uu(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,Ha.useRef)(!1),Y=(0,Ha.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,Ha.useEffect)(function(){a&&(U(!0),M())},[a]),(0,Ha.useEffect)(function(){return function(){clearTimeout(Y.current)}},[]);var ie=P(P(P({zIndex:n},f),L?.wrapper),{},{display:B?null:"none"});return ec.createElement("div",J({className:(0,c1.default)("".concat(o,"-root"),A)},Do(t,{data:!0})),ec.createElement(NM,{prefixCls:o,visible:w&&a,motionName:a1(o,b,R),style:P(P({zIndex:n},N),L?.mask),maskProps:k,className:W?.mask}),ec.createElement("div",J({tabIndex:-1,onKeyDown:Q,className:(0,c1.default)("".concat(o,"-wrap"),d,W?.wrapper),ref:D,onClick:K,style:ie},p),ec.createElement(PM,J({},t,{onMouseDown:ne,onMouseUp:re,ref:F,closable:C,ariaId:V,prefixCls:o,visible:a&&B,onClose:ee,onVisibleChanged:q,motionName:a1(o,g,m)}))))},IM=gH;var $M=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=ia.useState(r),u=j(c,2),f=u[0],d=u[1],p=ia.useMemo(function(){return{panel:l}},[l]);return ia.useEffect(function(){r&&d(!0)},[r]),!n&&a&&!f?null:ia.createElement(dy.Provider,{value:p},ia.createElement(Zl,{open:r||n||f,autoDestroy:!1,getContainer:o,autoLock:r||f},ia.createElement(IM,J({},t,{destroyOnClose:a,afterClose:function(){s?.(),d(!1)}}))))};$M.displayName="Dialog";var DM=$M;var MM=DM;var E1=E(I());var Ua=E(I());var EA=E(I());var qo=E(I());var AM=E(I()),$i="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},hH=AM.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=hH;var LM=E(I()),vH=LM.createContext(null),Ks=vH;function cm(e){return e==null?[]:Array.isArray(e)?e:[e]}function kM(e){return e&&!!e._init}function my(){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 py=my();function FM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function zM(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&&Ds(n,r.prototype),n}function gy(e){var t=typeof Map=="function"?new Map:void 0;return gy=function(o){if(o===null||!FM(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 zM(o,arguments,Ll(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ds(n,o)},gy(e)}var yH=/%[sdj%]/g,WM=function(){};typeof process<"u"&&process.env;function hy(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 Gr(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(yH,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 xH(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||xH(t)&&typeof e=="string"&&!e)}function SH(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 BM(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 CH(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,se(e[r]||[]))}),t}var jM=function(e){Pr(r,e);var t=Tr(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)}(gy(Error));function VM(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 jM(g,hy(g))):d(n)},v=CH(e);BM(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 jM(u,hy(u))):d(n)};s.length||(o(u),d(n)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?BM(y,r,h):SH(y,r,h)})});return f.catch(function(d){return d}),f}function bH(e){return!!(e&&e.message!==void 0)}function wH(e,t){for(var r=e,o=0;o<t.length;o++){if(r==null)return r;r=r[t[o]]}return r}function u1(e,t){return function(r){var o;return e.fullFields?o=wH(t,e.fullFields):o=t[r.field||e.fullField],bH(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 f1(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 Lu="enum",EH=function(t,r,o,n,i){t[Lu]=Array.isArray(t[Lu])?t[Lu]:[],t[Lu].indexOf(r)===-1&&n.push(Gr(i.messages[Lu],t.fullField,t[Lu].join(", ")))},HM=EH;var RH=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Gr(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(Gr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},UM=RH;var OH=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(Gr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?n.push(Gr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?n.push(Gr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&n.push(Gr(i.messages[f].range,t.fullField,t.min,t.max))},GM=OH;var _H=function(t,r,o,n,i,a){t.required&&(!o.hasOwnProperty(t.field)||Mt(r,a||t.type))&&n.push(Gr(i.messages.required,t.fullField))},vy=_H;var yy,qM=function(){if(yy)return yy;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"]*)?',C="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(p,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(m).concat(x);return yy=new RegExp("(?:^".concat(C,"$)"),"i"),yy};var KM={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(KM.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qM())},hex:function(t){return typeof t=="string"&&!!t.match(KM.hex)}},PH=function(t,r,o,n,i){if(t.required&&r===void 0){vy(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(Gr(i.messages.types[s],t.fullField,t.type)):s&&ue(r)!==t.type&&n.push(Gr(i.messages.types[s],t.fullField,t.type))},XM=PH;var TH=function(t,r,o,n,i){(/^\s+$/.test(r)||r==="")&&n.push(Gr(i.messages.whitespace,t.fullField))},YM=TH;var at={required:vy,whitespace:YM,type:XM,range:GM,enum:HM,pattern:UM};var NH=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)},QM=NH;var IH=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)},ZM=IH;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),r!==void 0&&at.type(t,r,n,a,i)}o(a)},JM=$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,"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)},eA=DH;var MH="enum",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[MH](t,r,n,a,i)}o(a)},tA=AH;var LH=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)},rA=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),at.range(t,r,n,a,i))}o(a)},oA=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)&&!t.required)return o();at.required(t,r,n,a,i),r!==void 0&&at.type(t,r,n,a,i)}o(a)},nA=FH;var zH=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)},iA=zH;var BH=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=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),Mt(r,"string")||at.pattern(t,r,n,a,i)}o(a)},sA=jH;var WH=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)},lA=WH;var VH=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)},cA=VH;var HH=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)},uA=HH;var UH=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)},xy=UH;var ku={string:uA,method:nA,number:iA,boolean:JM,regexp:lA,integer:oA,float:rA,array:ZM,object:aA,enum:tA,pattern:sA,date:eA,url:xy,hex:xy,email:xy,required:cA,any:QM};var fm=function(){function e(t){st(this,e),T(this,"rules",null),T(this,"_messages",py),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=f1(my(),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 C;v=(C=v).concat.apply(C,se(x))}else v.push(x)}for(var m=0;m<h.length;m++)g(h[m]);v.length?(y=hy(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===py&&(u=my()),f1(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 VM(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(b,R){return P(P({},R),{},{fullField:"".concat(y.fullField,".").concat(b),fullFields:y.fullFields?[].concat(se(y.fullFields),[b]):[b]})}function x(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(b)?b:[b];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var _=R.map(u1(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(u1(y,a)):s.error&&(_=[s.error(y,Gr(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 C;if(y.asyncValidator)C=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{C=y.validator(y,h.value,x,h.source,s)}catch(b){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,b),s.suppressValidatorError||setTimeout(function(){throw b},0),x(b.message)}C===!0?x():C===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(b){return x(b)})},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&&!ku.hasOwnProperty(r.type))throw new Error(Gr("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"?ku.required:ku[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");ku[t]=r});T(fm,"warning",WM);T(fm,"messages",py);T(fm,"validators",ku);var fA=fm;var Cy=E(I());var In="'${name}' is not a valid ${type}",Sy={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:In,method:In,array:In,object:In,number:In,date:In,boolean:In,integer:In,float:In,regexp:In,email:In,url:In,hex:In},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 dA=fA;function GH(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 mA="CODE_LOGIC_ERROR";function d1(e,t,r,o,n){return m1.apply(this,arguments)}function m1(){return m1=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,dA.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(mA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new dA(T({},t,[a])),u=Ma(Sy,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,C=x===mA?u.default:x;return Cy.isValidElement(C)?Cy.cloneElement(C,{key:"error_".concat(m)}):C}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,m){return d1("".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"?GH(g,p):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),m1.apply(this,arguments)}function pA(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),b=0;b<S;b++)w[b]=arguments[b];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(C){y(C||" ")})}),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,d1(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 d1(a,t,u,o,i).then(function(f){return{errors:f,rule:u}})});l=(n?KH(c):qH(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function qH(e){return p1.apply(this,arguments)}function p1(){return p1=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)})),p1.apply(this,arguments)}function KH(e){return g1.apply(this,arguments)}function g1(){return g1=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)})),g1.apply(this,arguments)}function ir(e){return cm(e)}function h1(e,t){var r={};return t.forEach(function(o){var n=xo(e,o);r=Go(r,o,n)}),r}function Xs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(o){return v1(t,o,r)})}function v1(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 gA(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 hA(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 y1(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 XH=["name"],ti=[];function x1(e,t,r,o,n,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):o!==n}var S1=function(e){Pr(r,e);var t=Tr(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",ti),T(Je(n),"warnings",ti),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});Ji(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),C=c&&Xs(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!Ji(m,x)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ti,n.warnings=ti,n.triggerMetaEvent()),u.type){case"reset":if(!c||C){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ti,n.warnings=ti,n.triggerMetaEvent(),v?.(),n.refresh();return}break;case"remove":{if(d&&x1(d,l,y,m,x,u)){n.reRender();return}break}case"setField":{var S=u.data;if(C){"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||ti),"warnings"in S&&(n.warnings=S.warnings||ti),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in S&&Xs(c,g,!0)){n.reRender();return}if(d&&!g.length&&x1(d,l,y,m,x,u)){n.reRender();return}break}case"dependenciesUpdate":{var w=h.map(ir);if(w.some(function(b){return Xs(u.relatedFields,b)})){n.reRender();return}break}default:if(C||(!h.length||g.length||d)&&x1(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,C,S,w,b;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,C=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 b=pA(c,u,w,l,x,C),b.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ti;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?ti:$;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",b);case 13:case"end":return _.stop()}},y)})));return h||(n.validatePromise=v,n.dirty=!0,n.errors=ti,n.warnings=ti,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=Rn(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(),C=g.getInternalHooks,S=g.getFieldsValue,w=C($i),b=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=hA.apply(void 0,[v].concat($)),h&&(W=h(W,R,S(!0))),W!==R&&b({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&&b({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(S1,"contextType",Di);T(S1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function YH(e){var t,r=e.name,o=Me(e,XH),n=qo.useContext(Di),i=qo.useContext(Ks),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(S1,J({key:l,name:a,isListField:s},o,{fieldContext:n}))}var by=YH;var $n=E(I());function QH(e){var t=e.name,r=e.initialValue,o=e.children,n=e.rules,i=e.validateTrigger,a=e.isListField,s=$n.useContext(Di),l=$n.useContext(Ks),c=$n.useRef({keys:[],id:0}),u=c.current,f=$n.useMemo(function(){var v=ir(s.prefixName)||[];return[].concat(se(v),se(ir(t)))},[s.prefixName,t]),d=$n.useMemo(function(){return P(P({},s),{},{prefixName:f})},[s,f]),p=$n.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 $n.createElement(Ks.Provider,{value:p},$n.createElement(Di.Provider,{value:d},$n.createElement(by,{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,C=s.getFieldValue,S=function(){var _=C(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=y1(u.keys,_,O),x(y1(N,_,O)))}}},b=m||[];return Array.isArray(b)||(b=[]),o(b.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 vA=QH;var wy=E(I());function yA(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 xA="__@field_split__";function C1(e){return e.map(function(t){return"".concat(ue(t),":").concat(t)}).join(xA)}var ZH=function(){function e(){st(this,e),T(this,"kvs",new Map)}return lt(e,[{key:"set",value:function(r,o){this.kvs.set(C1(r),o)}},{key:"get",value:function(r){return this.kvs.get(C1(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(C1(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(xA);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}(),tc=ZH;var JH=["name"],e7=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=Ma(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 tc;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?Ma(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 tc;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)}}),h1(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 tc;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 Xs(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 tc,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(Ma(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,JH),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!v1(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=h1(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=Ma(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 tc;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 tc;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 Xs(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||Xs(l,x,p)){var C=m.validateRules(P({validateMessages:P(P({},Sy),r.validateMessages)},a));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,b=[],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)):b.push.apply(b,se(N))}),b.length?Promise.reject({name:x,errors:b,warnings:R}):{name:x,errors:b,warnings:R}}))}}});var v=yA(c);r.lastValidatePromise=v,v.catch(function(m){return m}).then(function(m){var x=m.map(function(C){var S=C.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(C){return C&&C.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 t7(e){var t=wy.useRef(),r=wy.useState({}),o=j(r,2),n=o[1];if(!t.current)if(e)t.current=e;else{var i=function(){n({})},a=new e7(i);t.current=a.getForm()}return[t.current]}var Ey=t7;var co=E(I());var Ys=E(I()),b1=Ys.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),w1=function(t){var r=t.validateMessages,o=t.onFormChange,n=t.onFormFinish,i=t.children,a=Ys.useContext(b1),s=Ys.useRef({});return Ys.createElement(b1.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 SA=b1;var r7=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],o7=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,r7),C=co.useRef(null),S=co.useContext(SA),w=Ey(a),b=j(w,1),R=b[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:C.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(){gA(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(Ks.Provider,{value:null},co.createElement(Di.Provider,{value:B},D));return u===!1?U:co.createElement(u,J({},x,{ref:C,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)},CA=o7;var Mi=E(I());function bA(e){try{return JSON.stringify(e)}catch{return Math.random()}}var n7=function(){};function i7(){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=kM(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 bA(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,n7(g),(0,Mi.useEffect)(function(){if(y){var x=v.getFieldsValue,C=v.getInternalHooks,S=C($i),w=S.registerWatch,b=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=b(O,N),A=bA(k);p.current!==A&&(p.current=A,f(k))}),_=b(x(),x(!0));return u!==_&&f(_),R}},[y]),u}var wA=i7;var a7=EA.forwardRef(CA),dm=a7;dm.FormProvider=w1;dm.Field=by;dm.List=vA;dm.useForm=Ey;dm.useWatch=wA;var uo=Ua.createContext({}),RA=e=>{let{children:t,status:r,override:o}=e,n=Ua.useContext(uo),i=Ua.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 Ua.createElement(uo.Provider,{value:i},t)},OA=Ua.createContext(void 0);var s7=e=>{let{space:t,form:r,children:o}=e;if(o==null)return null;let n=o;return r&&(n=E1.default.createElement(RA,{override:!0,status:!0},n)),t&&(n=E1.default.createElement(dD,null,n)),n},Qs=s7;var l7=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"}}}},c7=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},u7=(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},R1=(e,t)=>u7(e,t),f7=(e,t,r)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},R1(e,r))}),d7=()=>({}),m7=()=>({}),tCe=_t("Grid",l7,d7),O1=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),rCe=_t("Grid",e=>{let t=tt(e,{gridColumns:24}),r=O1(t);return delete r.xs,[c7(t),R1(t,""),R1(t,"-xs"),Object.keys(r).map(o=>f7(t,r[o],`-${o}`)).reduce((o,n)=>Object.assign(Object.assign({},o),n),{})]},m7);function _A(e){return{position:e,inset:0}}var _1=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({},_A("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},_A("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Xl(e)}]},p7=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}},lv(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"}}}]},g7=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},h7=e=>{let{componentCls:t}=e,r=O1(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))}}},v7=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()})},y7=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}),uCe=_t("Modal",e=>{let t=v7(e);return[p7(t),g7(t),_1(t),Yl(t,"zoom"),h7(t)]},y7,{unitless:{titleLineHeight:!0}});var un=E(I());function x7(e){return t=>un.createElement(ja,{theme:{token:{motion:!1,zIndexPopupBase:0}}},un.createElement(e,Object.assign({},t)))}var S7=(e,t,r,o,n)=>x7(a=>{let{prefixCls:s,style:l}=a,c=un.useRef(null),[u,f]=un.useState(0),[d,p]=un.useState(0),[h,v]=Ft(!1,{value:a.open}),{getPrefixCls:y}=un.useContext(ot),g=y(o||"select",s);un.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let C=new ResizeObserver(w=>{let b=w[0].target;f(b.offsetHeight+8),p(b.offsetWidth)}),S=setInterval(()=>{var w;let b=n?`.${n(g)}`:`.${g}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(b);R&&(clearInterval(S),C.observe(R))},10);return()=>{clearInterval(S),C.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)))}),Ry=S7;var ai=E(I()),xE=E(we());var sr=E(I());var q1=E(we());var Fu=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 P1=E(I()),PA=E(we()),C7=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 P1.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:P1.createElement("span",{className:(0,PA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Zs=C7;var Oy=E(I()),TA=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=Oy.default.useMemo(function(){if(ue(n)==="object")return n.clearIcon;if(i)return i},[n,i]),u=Oy.default.useMemo(function(){return!!(!a&&n&&(o.length||s)&&!(l==="combobox"&&s===""))},[n,a,o.length,s,l]);return{allowClear:u,clearIcon:Oy.default.createElement(Zs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var _y=E(I()),T1=_y.createContext(null);function Py(){return _y.useContext(T1)}var zu=E(I());function N1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=zu.useState(!1),r=j(t,2),o=r[0],n=r[1],i=zu.useRef(null),a=function(){window.clearTimeout(i.current)};zu.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 Ty=E(I());function I1(e,t,r,o){var n=Ty.useRef(null);n.current={open:t,triggerOpen:r,customizedTrigger:o},Ty.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 Ga=E(I()),My=E(I());function NA(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 Dn=E(I()),M1=E(I()),YA=E(we());var ri=E(I()),aa=E(I()),zA=E(we());var rc=E(I()),IA=E(we());var b7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Bu=void 0;function w7(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,b7),m=a&&!p;function x(R){l(c,R)}rc.useEffect(function(){return function(){x(null)}},[]);var C=i&&n!==Bu?i(n,{index:h}):d,S;o||(S={opacity:m?0:1,height:m?0:Bu,overflowY:m?"hidden":Bu,order:a?h:Bu,pointerEvents:m?"none":Bu,position:m?"absolute":Bu});var w={};m&&(w["aria-hidden"]=!0);var b=rc.createElement(y,J({className:(0,IA.default)(!o&&r,u),style:P(P({},S),f)},w,g,{ref:t}),C);return a&&(b=rc.createElement(an,{onResize:function(_){var O=_.offsetWidth;x(O)},disabled:s},b)),b}var $A=rc.forwardRef(w7);$A.displayName="Item";var ju=$A;var Ny=E(I()),DA=E(wi());function $1(e){if(typeof MessageChannel>"u")ct(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function MA(){var e=Ny.useRef(null),t=function(o){e.current||(e.current=[],$1(function(){(0,DA.unstable_batchedUpdates)(function(){e.current.forEach(function(n){n()}),e.current=null})})),e.current.push(o)};return t}function oc(e,t){var r=Ny.useState(t),o=j(r,2),n=o[0],i=o[1],a=Et(function(s){e(function(){i(s)})});return[n,a]}var Js=E(I()),LA=E(we());var AA=E(I()),nc=AA.default.createContext(null);var E7=["component"],R7=["className"],O7=["className"],_7=function(t,r){var o=Js.useContext(nc);if(!o){var n=t.component,i=n===void 0?"div":n,a=Me(t,E7);return Js.createElement(i,J({},a,{ref:r}))}var s=o.className,l=Me(o,R7),c=t.className,u=Me(t,O7);return Js.createElement(nc.Provider,{value:null},Js.createElement(ju,J({ref:r,className:(0,LA.default)(s,c)},l,u)))},kA=Js.forwardRef(_7);kA.displayName="RawItem";var FA=kA;var P7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],BA="responsive",jA="invalidate";function T7(e){return"+ ".concat(e.length," ...")}function N7(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,C=e.itemComponent,S=e.onVisibleChange,w=Me(e,P7),b=f==="full",R=MA(),_=oc(R,null),O=j(_,2),N=O[0],k=O[1],A=N||0,W=oc(R,new Map),L=j(W,2),$=L[0],D=L[1],F=oc(R,0),H=j(F,2),z=H[0],B=H[1],U=oc(R,0),V=j(U,2),M=V[0],G=V[1],q=oc(R,0),ee=j(q,2),X=ee[0],Y=ee[1],ne=(0,aa.useState)(null),re=j(ne,2),K=re[0],Q=re[1],ie=(0,aa.useState)(null),Z=j(ie,2),oe=Z[0],me=Z[1],fe=ri.useMemo(function(){return oe===null&&b?Number.MAX_SAFE_INTEGER:oe||0},[oe,N]),de=(0,aa.useState)(!1),he=j(de,2),ye=he[0],Ee=he[1],le="".concat(o,"-item"),ae=Math.max(z,M),Re=h===BA,Ae=i.length&&Re,je=h===jA,Ie=Ae||typeof h=="number"&&i.length>h,Oe=(0,aa.useMemo)(function(){var Le=i;return Ae?N===null&&b?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,aa.useMemo)(function(){return Ae?i.slice(fe+1):i.slice(Oe.length)},[i,Oe,Ae,fe]),Ve=(0,aa.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,aa.useCallback)(a||function(Le){return Le},[a]);function $e(Le,Te,Ne){oe===Le&&(Te===void 0||Te===K)||(me(Le),Ne||(Ee(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 be(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 Bt=Ue(ht);if(b&&(Bt=Bt||0),Bt===void 0){$e(ht-1,void 0,!0);break}if(Le+=Bt,Ne===0&&Le<=A||ht===Ne-1&&Le+Ue(Ne)<=A){$e(Ne,null);break}else if(Le+ae>A){$e(ht-1,Le-Bt-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:C,invalidate:je},gt=s?function(Le,Te){var Ne=Ve(Le,Te);return ri.createElement(nc.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 ri.createElement(ju,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||T7,et=y?ri.createElement(nc.Provider,{value:P(P({},Tt),Be)},y(Se)):ri.createElement(ju,J({},Tt,Be),typeof Pe=="function"?Pe(Se):Pe),De=ri.createElement(x,J({className:(0,zA.default)(!je&&o,p),style:d,ref:t},w),Oe.map(gt),Ie?et:null,g&&ri.createElement(ju,J({},Tt,{responsive:Re,responsiveDisabled:!Ae,order:fe,className:"".concat(le,"-suffix"),registerSize:be,display:!0,style:pt}),g));return Re?ri.createElement(an,{onResize:ce,disabled:!Ae},De):De}var gm=ri.forwardRef(N7);gm.displayName="Overflow";gm.Item=FA;gm.RESPONSIVE=BA;gm.INVALIDATE=jA;var WA=gm;var VA=WA;var Wu=E(I()),HA=E(we());var I7=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,C=t.onCompositionEnd,S=t.onBlur,w=t.open,b=t.attrs,R=a||Wu.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 Dl(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=Wu.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,HA.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},b),{},{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){C(z),$&&$(z)},onPaste:m,onBlur:function(z){S(z),D&&D(z)}})),R},$7=Wu.forwardRef(I7),Iy=$7;var Dy=E(I());function hm(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var D7=typeof window<"u"&&window.document&&window.document.documentElement,GA=D7;function qA(e){return e!=null}function KA(e){return!e&&e!==0}function UA(e){return["string","number"].includes(ue(e))}function $y(e){var t=void 0;return e&&(UA(e.title)?t=e.title.toString():UA(e.label)&&(t=e.label.toString())),t}function D1(e,t){GA?Dy.useLayoutEffect(e,t):Dy.useEffect(e,t)}function M7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var XA=function(t){t.preventDefault(),t.stopPropagation()},A7=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,C=t.maxTagPlaceholder,S=C===void 0?function(ie){return"+ ".concat(ie.length," ...")}:C,w=t.tagRender,b=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,$=Dn.useRef(null),D=(0,M1.useState)(0),F=j(D,2),H=F[0],z=F[1],B=(0,M1.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);D1(function(){z($.current.scrollWidth)},[q]);var X=function(Z,oe,me,fe,de){return Dn.createElement("span",{title:$y(Z),className:(0,YA.default)("".concat(G,"-item"),T({},"".concat(G,"-item-disabled"),me))},Dn.createElement("span",{className:"".concat(G,"-item-content")},oe),fe&&Dn.createElement(Zs,{className:"".concat(G,"-item-remove"),onMouseDown:XA,onClick:de,customizeIcon:g},"\xD7"))},Y=function(Z,oe,me,fe,de,he){var ye=function(le){XA(le),b(!i)};return Dn.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 Ee=function(ae){ae&&ae.stopPropagation(),R(Z)};return typeof w=="function"?Y(fe,he,oe,de,Ee):X(Z,he,oe,de,Ee)},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=Dn.createElement("div",{className:"".concat(G,"-search"),style:{width:H},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},Dn.createElement(Iy,{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)}),Dn.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),Q=Dn.createElement(VA,{prefixCls:"".concat(G,"-overflow"),data:n,renderItem:ne,renderRest:re,suffix:K,itemKey:M7,maxCount:m});return Dn.createElement("span",{className:"".concat(G,"-wrap")},Q,!n.length&&!q&&Dn.createElement("span",{className:"".concat(G,"-placeholder")},c))},QA=A7;var oi=E(I());var L7=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,C=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,b=t.onInputCompositionStart,R=t.onInputCompositionEnd,_=t.onInputBlur,O=t.title,N=oi.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),oi.useEffect(function(){L&&W(!1)},[L,g]);var H=u!=="combobox"&&!f&&!v?!1:!!F,z=O===void 0?$y(D):O,B=oi.useMemo(function(){return D?null:oi.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:H?{visibility:"hidden"}:void 0},p)},[D,H,p,o]);return oi.createElement("span",{className:"".concat(o,"-selection-wrap")},oi.createElement("span",{className:"".concat(o,"-selection-search")},oi.createElement(Iy,{ref:i,prefixCls:o,id:n,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:$,activeDescendantId:c,value:F,onKeyDown:x,onMouseDown:C,onChange:function(V){W(!0),S(V)},onPaste:w,onCompositionStart:b,onCompositionEnd:R,onBlur:_,tabIndex:h,attrs:Do(t,!0),maxLength:L?m:void 0})),!L&&D?oi.createElement("span",{className:"".concat(o,"-selection-item"),title:z,style:H?{visibility:"hidden"}:void 0},D.label):null,B)},ZA=L7;var k7=function(t,r){var o=(0,My.useRef)(null),n=(0,My.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;Ga.useImperativeHandle(r,function(){return{focus:function(z){o.current.focus(z)},blur:function(){o.current.blur()}}});var x=pm(0),C=j(x,2),S=C[0],w=C[1],b=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))&&NA(B)&&v(!0)},R=function(){w(!0)},_=(0,My.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:b,onInputMouseDown:R,onInputChange:A,onInputPaste:W,onInputCompositionStart:N,onInputCompositionEnd:k,onInputBlur:g},F=s==="multiple"||s==="tags"?Ga.createElement(QA,J({},t,D)):Ga.createElement(ZA,J({},t,D));return Ga.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:L,onMouseDown:$},f&&Ga.createElement("div",{className:"".concat(i,"-prefix")},f),F)},F7=Ga.forwardRef(k7),JA=F7;var Ly=E(we());var xt=E(I());var nL=E(we());var ni=E(I());var eL=E(we()),Ay=E(I());function A1(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=Ay.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 Ay.createElement("div",{ref:d,className:(0,eL.default)("".concat(t,"-arrow"),a),style:p},s)}var tL=E(we());var L1=E(I());function k1(e){var t=e.prefixCls,r=e.open,o=e.zIndex,n=e.mask,i=e.motion;return n?L1.createElement(ao,J({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return L1.createElement("div",{style:{zIndex:o},className:(0,tL.default)("".concat(t,"-mask"),s)})}):null}var rL=E(I()),z7=rL.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),oL=z7;var B7=ni.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,C=e.autoDestroy,S=e.portal,w=e.zIndex,b=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=ni.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"),ni.createElement(S,{open:m||U,getContainer:x&&function(){return x(a)},autoDestroy:C},ni.createElement(k1,{prefixCls:n,open:l,zIndex:w,mask:d,motion:g}),ni.createElement(an,{onResize:$,disabled:!l},function(oe){return ni.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,nL.default)(n,de,o);return ni.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:b,onMouseLeave:R,onPointerEnter:_,onClick:f,onPointerDownCapture:O},p&&ni.createElement(A1,{prefixCls:n,arrow:p,arrowPos:h,align:v}),ni.createElement(oL,{cache:!l&&!u},B))})}))}),iL=B7;var Vu=E(I()),j7=Vu.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,n=Ei(r),i=Vu.useCallback(function(s){kd(t,o?o(s):s)},[o]),a=On(i,Is(r));return n?Vu.cloneElement(r,{ref:a}):r}),aL=j7;var sL=E(I()),W7=sL.createContext(null),F1=W7;var cL=E(I());function lL(e){return e?Array.isArray(e)?e:[e]:[]}function z1(e,t,r,o){return cL.useMemo(function(){var n=lL(r??t),i=lL(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 ic=E(I());function V7(){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 uL(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(V7((s=e[l])===null||s===void 0?void 0:s.points,n,o))return"".concat(t,"-placement-").concat(l)}return""}function B1(e,t,r,o){return t||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function el(e){return e.ownerDocument.defaultView}function ym(e){for(var t=[],r=e?.parentElement,o=["hidden","scroll","clip","auto"];r;){var n=el(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 Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function vm(e){return Hu(parseFloat(e),0)}function j1(e,t){var r=P({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var n=el(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),C=Hu(Math.round(f.width/h*1e3)/1e3),S=Hu(Math.round(f.height/d*1e3)/1e3),w=(h-v-m-x)*C,b=(d-p-y-g)*S,R=y*S,_=g*S,O=m*C,N=x*C,k=0,A=0;if(i==="clip"){var W=vm(a);k=W*C,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-_-b;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 fL(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 dL(e,t){var r=t||[],o=j(r,2),n=o[0],i=o[1];return[fL(e.width,n),fL(e.height,i)]}function mL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Uu(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 tl(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 W1(e,t,r,o,n,i,a){var s=ic.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=ic.useRef(0),d=ic.useMemo(function(){return t?ym(t):[]},[t]),p=ic.useRef({}),h=function(){p.current={}};e||h();var v=Et(function(){if(t&&r&&e){let Bo=function(xc,is){var Sc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae,Ym=M.x+xc,Qm=M.y+is,mx=Ym+Q,Xe=Qm+K,ft=Math.max(Ym,Sc.left),dr=Math.max(Qm,Sc.top),Dr=Math.min(mx,Sc.right),mr=Math.min(Xe,Sc.bottom);return Math.max(0,(Dr-ft)*(mr-dr))},yc=function(){tr=M.y+Ne,cr=tr+K,ur=M.x+Te,ko=ur+Q};var FR=Bo,zR=yc,m,x,C,S,w=t,b=w.ownerDocument,R=el(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=b.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=(C=M.y)!==null&&C!==void 0?C:M.top;var G=b.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,Ee=j1(me,d),le=j1(oe,d),ae=fe===de?le:Ee,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=Hu(Math.round(Q/parseFloat(O)*1e3)/1e3),Ie=Hu(Math.round(K/parseFloat(N)*1e3)/1e3);if(je===0||Ie===0||Ml(r)&&!Vv(r))return;var Oe=F.offset,Se=F.targetOffset,Ve=dL(M,Oe),He=j(Ve,2),$e=He[0],ce=He[1],pe=dL(z,Se),ze=j(pe,2),be=ze[0],Ue=ze[1];z.x-=be,z.y-=Ue;var Ye=F.points||[],pt=j(Ye,2),Tt=pt[0],gt=pt[1],Be=mL(gt),Pe=mL(Tt),et=Uu(z,Be),De=Uu(M,Pe),Le=P({},F),Te=et.x-De.x+$e,Ne=et.y-De.y+ce,ht=Bo(Te,Ne),Bt=Bo(Te,Ne,le),We=Uu(z,["t","l"]),_e=Uu(M,["t","l"]),Qe=Uu(z,["b","r"]),Ze=Uu(M,["b","r"]),Ke=F.overflow||{},rt=Ke.adjustX,Lt=Ke.adjustY,Nt=Ke.shiftX,er=Ke.shiftY,kt=function(is){return typeof is=="boolean"?is:is>=0},tr,cr,ur,ko;yc();var fr=kt(Lt),wr=Pe[0]===Be[0];if(fr&&Pe[0]==="t"&&(cr>Re.bottom||p.current.bt)){var Ce=Ne;wr?Ce-=K-ie:Ce=We.y-Ze.y-ce;var Ge=Bo(Te,Ce),ke=Bo(Te,Ce,le);Ge>ht||Ge===ht&&(!ye||ke>=Bt)?(p.current.bt=!0,Ne=Ce,ce=-ce,Le.points=[tl(Pe,0),tl(Be,0)]):p.current.bt=!1}if(fr&&Pe[0]==="b"&&(tr<Re.top||p.current.tb)){var xe=Ne;wr?xe+=K-ie:xe=Qe.y-_e.y-ce;var nt=Bo(Te,xe),It=Bo(Te,xe,le);nt>ht||nt===ht&&(!ye||It>=Bt)?(p.current.tb=!0,Ne=xe,ce=-ce,Le.points=[tl(Pe,0),tl(Be,0)]):p.current.tb=!1}var $t=kt(rt),mo=Pe[1]===Be[1];if($t&&Pe[1]==="l"&&(ko>Re.right||p.current.rl)){var Ir=Te;mo?Ir-=Q-Z:Ir=We.x-Ze.x-$e;var Fr=Bo(Ir,Ne),Er=Bo(Ir,Ne,le);Fr>ht||Fr===ht&&(!ye||Er>=Bt)?(p.current.rl=!0,Te=Ir,$e=-$e,Le.points=[tl(Pe,1),tl(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>=Bt)?(p.current.lr=!0,Te=zr,$e=-$e,Le.points=[tl(Pe,1),tl(Be,1)]):p.current.lr=!1}yc();var Jr=Nt===!0?0:Nt;typeof Jr=="number"&&(ur<le.left&&(Te-=ur-le.left-$e,z.x+Z<le.left+Jr&&(Te+=z.x-le.left+Z-Jr)),ko>le.right&&(Te-=ko-le.right-$e,z.x>le.right-Jr&&(Te+=z.x-le.right+Jr)));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 rs=M.x+Te,os=rs+Q,Ln=M.y+Ne,vc=Ln+K,ns=z.x,bt=ns+Z,dt=z.y,eo=dt+ie,to=Math.max(rs,ns),yr=Math.min(os,bt),$r=(to+yr)/2,gn=$r-rs,Zo=Math.max(Ln,dt),kn=Math.min(vc,eo),zi=(Zo+kn)/2,ui=zi-Ln;a?.(t,Le);var Bi=Ae.right-M.x-(Te+M.width),zo=Ae.bottom-M.y-(Ne+M.height);je===1&&(Te=Math.round(Te),Bi=Math.round(Bi)),Ie===1&&(Ne=Math.round(Ne),zo=Math.round(zo));var dx={ready:!0,offsetX:Te/je,offsetY:Ne/Ie,offsetR:Bi/je,offsetB:zo/Ie,arrowX:gn/je,arrowY:ui/Ie,scaleX:je,scaleY:Ie,align:Le};u(dx)}}),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 V1(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=el(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 H1(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(C){var S;l.current&&!a(((S=C.composedPath)===null||S===void 0||(S=S.call(C))===null||S===void 0?void 0:S[0])||C.target)&&!c.current&&s(!1)},p=el(o);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0);var h=Hl(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 H7=["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 U7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zl,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,C=r.mask,S=r.maskClosable,w=S===void 0?!0:S,b=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,H7),Z=_||O||!1,oe=xt.useState(!1),me=j(oe,2),fe=me[0],de=me[1];vt(function(){de(Fu())},[]);var he=xt.useRef({}),ye=xt.useContext(F1),Ee=xt.useMemo(function(){return{registerSubPopup:function(ft,dr){he.current[ft]=dr,ye?.registerSubPopup(ft,dr)}}},[ye]),le=Mu(),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,Ml(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){Ml(Xe)&&He!==Xe&&($e(Xe),ce.current=Xe)}),ze=xt.Children.only(a),be=ze?.props||{},Ue={},Ye=Et(function(Xe){var ft,dr,Dr=He;return Dr?.contains(Xe)||((ft=Hl(Dr))===null||ft===void 0?void 0:ft.host)===Xe||Xe===Dr||Ae?.contains(Xe)||((dr=Hl(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=B1(i,q,Y,X),Tt=B1(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))}),Bt=xt.useRef(),We=function(){clearTimeout(Bt.current)},_e=function(ft){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),dr===0?ht(ft):Bt.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],kt=Nt[1],tr=xt.useState(null),cr=j(tr,2),ur=cr[0],ko=cr[1],fr=function(ft){ko([ft.clientX,ft.clientY])},wr=W1(De,Ae,U&&ur!==null?ur:He,W,$,D,M),Ce=j(wr,11),Ge=Ce[0],ke=Ce[1],xe=Ce[2],nt=Ce[3],It=Ce[4],$t=Ce[5],mo=Ce[6],Ir=Ce[7],Fr=Ce[8],Er=Ce[9],zr=Ce[10],Qo=z1(fe,l,c,u),Fo=j(Qo,2),Jr=Fo[0],Eo=Fo[1],rs=Jr.has("click"),os=Eo.has("click")||Eo.has("contextMenu"),Ln=Et(function(){Ke||zr()}),vc=function(){Te.current&&U&&os&&_e(!1)};V1(De,He,Ae,Ln,vc),vt(function(){Ln()},[ur,W]),vt(function(){De&&!($!=null&&$[W])&&Ln()},[JSON.stringify(D)]);var ns=xt.useMemo(function(){var Xe=uL($,i,Er,U);return(0,Ly.default)(Xe,z?.(Er))},[Er,z,$,i,U]);xt.useImperativeHandle(o,function(){return{nativeElement:ce.current,popupElement:Ie.current,forceAlign:Ln}});var bt=xt.useState(0),dt=j(bt,2),eo=dt[0],to=dt[1],yr=xt.useState(0),$r=j(yr,2),gn=$r[0],Zo=$r[1],kn=function(){if(H&&He){var ft=He.getBoundingClientRect();to(ft.width),Zo(ft.height)}},zi=function(){kn(),Ln()},ui=function(ft){rt(!1),zr(),h?.(ft)},Bi=function(){return new Promise(function(ft){kn(),kt(function(){return ft})})};vt(function(){er&&(zr(),er(),kt(null))},[er]);function zo(Xe,ft,dr,Dr){Ue[Xe]=function(mr){var Zm;Dr?.(mr),_e(ft,dr);for(var px=arguments.length,BR=new Array(px>1?px-1:0),Jm=1;Jm<px;Jm++)BR[Jm-1]=arguments[Jm];(Zm=be[Xe])===null||Zm===void 0||Zm.call.apply(Zm,[be,mr].concat(BR))}}(rs||os)&&(Ue.onClick=function(Xe){var ft;Te.current&&os?_e(!1):!Te.current&&rs&&(fr(Xe),_e(!0));for(var dr=arguments.length,Dr=new Array(dr>1?dr-1:0),mr=1;mr<dr;mr++)Dr[mr-1]=arguments[mr];(ft=be.onClick)===null||ft===void 0||ft.call.apply(ft,[be,Xe].concat(Dr))});var dx=H1(De,os,He,Ae,C,w,Ye,_e),FR=Jr.has("hover"),zR=Eo.has("hover"),Bo,yc;FR&&(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=be.onMouseMove)===null||ft===void 0||ft.call(be,Xe)})),zR&&(zo("onMouseLeave",!1,g),zo("onPointerLeave",!1,g),yc=function(){_e(!1,g)}),Jr.has("focus")&&zo("onFocus",!0,m),Eo.has("focus")&&zo("onBlur",!1,x),Jr.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,Dr=new Array(dr>1?dr-1:0),mr=1;mr<dr;mr++)Dr[mr-1]=arguments[mr];(ft=be.onContextMenu)===null||ft===void 0||ft.call.apply(ft,[be,Xe].concat(Dr))}),K&&(Ue.className=(0,Ly.default)(be.className,K));var xc=P(P({},be),Ue),is={},Sc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Sc.forEach(function(Xe){ie[Xe]&&(is[Xe]=function(){for(var ft,dr=arguments.length,Dr=new Array(dr),mr=0;mr<dr;mr++)Dr[mr]=arguments[mr];(ft=xc[Xe])===null||ft===void 0||ft.call.apply(ft,[xc].concat(Dr)),ie[Xe].apply(ie,Dr)})});var Ym=xt.cloneElement(ze,P(P({},xc),is)),Qm={x:$t,y:mo},mx=G?P({},G!==!0?G:{}):null;return xt.createElement(xt.Fragment,null,xt.createElement(an,{disabled:!De,ref:pe,onResize:zi},xt.createElement(aL,{getTriggerDOMNode:Q},Ym)),xt.createElement(F1.Provider,{value:Ee},xt.createElement(iL,{portal:e,ref:Oe,prefixCls:i,popup:N,className:(0,Ly.default)(k,ns),style:A,target:He,onMouseEnter:Bo,onMouseLeave:yc,onPointerEnter:Bo,zIndex:F,open:De,keepDom:Ke,fresh:B,onClick:V,onPointerDownCapture:dx,mask:C,motion:pt,maskMotion:Tt,onVisibleChanged:ui,onPrepare:Bi,forceRender:R,autoDestroy:Z,getPopupContainer:b,align:Er,arrow:mx,arrowPos:Qm,ready:Ge,offsetX:ke,offsetY:xe,offsetR:nt,offsetB:It,onAlign:Ln,stretch:H,targetWidth:eo/Ir,targetHeight:gn/Fr})))});return t}var ky=U7(Zl);var pL=E(we()),ii=E(I()),G7=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],q7=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"}}},K7=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,C=t.empty,S=t.getTriggerDOMNode,w=t.onPopupVisibleChange,b=t.onPopupMouseEnter,R=Me(t,G7),_="".concat(o,"-dropdown"),O=s;g&&(O=g(s));var N=ii.useMemo(function(){return v||q7(y)},[v,y]),k=l?"".concat(_,"-").concat(l):c,A=typeof y=="number",W=ii.useMemo(function(){return A?null:y===!1?"minWidth":"width"},[y,A]),L=u;A&&(L=P(P({},L),{},{width:y}));var $=ii.useRef(null);return ii.useImperativeHandle(r,function(){return{getPopupElement:function(){var F;return(F=$.current)===null||F===void 0?void 0:F.popupElement}}}),ii.createElement(ky,J({},R,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:_,popupTransitionName:k,popup:ii.createElement("div",{onMouseEnter:b},O),ref:$,stretch:W,popupAlign:m,popupVisible:i,getPopupContainer:x,popupClassName:(0,pL.default)(f,T({},"".concat(_,"-empty"),C)),popupStyle:L,getTriggerDOMNode:S,onPopupVisibleChange:w}),a)},X7=ii.forwardRef(K7),gL=X7;function hL(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 U1(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 vL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,o=t.childrenAsData,n=[],i=U1(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:hL(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:hL(p,n.length),group:!0,data:p,label:v}),u(p[l],!0)}})}return u(e,!1),n}function Cm(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 yL=function(t,r,o){if(!r||!r.length)return null;var n=!1,i=function s(l,c){var u=qh(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 xL=E(I()),Y7=xL.createContext(null),Gu=Y7;var SL=E(I());function G1(e){var t=e.visible,r=e.values;if(!t)return null;var o=50;return SL.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 Q7=["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"],Z7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bm=function(t){return t==="tags"||t==="multiple"},J7=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,C=e.getRawInputElement,S=e.open,w=e.defaultOpen,b=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,Q7),de=bm(y),he=(a!==void 0?a:de)||y==="combobox",ye=P({},fe);Z7.forEach(function(bt){delete ye[bt]}),c?.forEach(function(bt){delete ye[bt]});var Ee=St.useState(!1),le=j(Ee,2),ae=le[0],Re=le[1];St.useEffect(function(){Re(Fu())},[]);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=N1(),$e=j(He,3),ce=$e[0],pe=$e[1],ze=$e[2];St.useImperativeHandle(t,function(){var bt,dt;return{focus:(bt=Oe.current)===null||bt===void 0?void 0:bt.focus,blur:(dt=Oe.current)===null||dt===void 0?void 0:dt.blur,scrollTo:function(to){var yr;return(yr=Se.current)===null||yr===void 0?void 0:yr.scrollTo(to)},nativeElement:Ae.current||je.current}});var be=St.useMemo(function(){var bt;if(y!=="combobox")return N;var dt=(bt=u[0])===null||bt===void 0?void 0:bt.value;return typeof dt=="string"||typeof dt=="number"?String(dt):""},[N,y,u]),Ue=y==="combobox"&&typeof x=="function"&&x()||null,Ye=typeof C=="function"&&C(),pt=On(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=Ft(!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 Bt=ht?!1:Ne,We=St.useCallback(function(bt){var dt=bt!==void 0?bt:!Ne;g||(Te(dt),Ne!==dt&&b?.(dt))},[g,Ne,Te,b]),_e=St.useMemo(function(){return(L||[]).some(function(bt){return[`
|
|
`,`\r
|
|
`].includes(bt)})},[L]),Qe=St.useContext(Gu)||{},Ze=Qe.maxCount,Ke=Qe.rawValues,rt=function(dt,eo,to){if(!(de&&Sm(Ze)&&Ke?.size>=Ze)){var yr=!0,$r=dt;_?.(null);var gn=yL(dt,L,Sm(Ze)?Ze-Ke.size:void 0),Zo=to?null:gn;return y!=="combobox"&&Zo&&($r="",W?.(Zo),We(!1),yr=!1),A&&be!==$r&&A($r,{source:eo?"typing":"effect"}),yr}},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),kt=er[0],tr=er[1],cr=St.useRef(!1),ur=function(dt){var eo=kt(),to=dt.key,yr=to==="Enter";if(yr&&(y!=="combobox"&&dt.preventDefault(),Ne||We(!0)),tr(!!be),to==="Backspace"&&!eo&&de&&!be&&u.length){for(var $r=se(u),gn=null,Zo=$r.length-1;Zo>=0;Zo-=1){var kn=$r[Zo];if(!kn.disabled){$r.splice(Zo,1),gn=kn;break}}gn&&f($r,{type:"remove",values:[gn]})}for(var zi=arguments.length,ui=new Array(zi>1?zi-1:0),Bi=1;Bi<zi;Bi++)ui[Bi-1]=arguments[Bi];if(Ne&&(!yr||!cr.current)){var zo;yr&&(cr.current=!0),(zo=Se.current)===null||zo===void 0||zo.onKeyDown.apply(zo,[dt].concat(ui))}oe?.apply(void 0,[dt].concat(ui))},ko=function(dt){for(var eo=arguments.length,to=new Array(eo>1?eo-1:0),yr=1;yr<eo;yr++)to[yr-1]=arguments[yr];if(Ne){var $r;($r=Se.current)===null||$r===void 0||$r.onKeyUp.apply($r,[dt].concat(to))}dt.key==="Enter"&&(cr.current=!1),Z?.apply(void 0,[dt].concat(to))},fr=function(dt){var eo=u.filter(function(to){return to!==dt});f(eo,{type:"remove",values:[dt]})},wr=function(){cr.current=!1},Ce=St.useRef(!1),Ge=function(){pe(!0),g||(Q&&!Ce.current&&Q.apply(void 0,arguments),K.includes("focus")&&We(!0)),Ce.current=!0},ke=function(){Ve.current=!0,pe(!1,function(){Ce.current=!1,Ve.current=!1,We(!1)}),!g&&(be&&(y==="tags"?A(be,{source:"submit"}):y==="multiple"&&A("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},xe=[];St.useEffect(function(){return function(){xe.forEach(function(bt){return clearTimeout(bt)}),xe.splice(0,xe.length)}},[]);var nt=function(dt){var eo,to=dt.target,yr=(eo=Ie.current)===null||eo===void 0?void 0:eo.getPopupElement();if(yr&&yr.contains(to)){var $r=setTimeout(function(){var zi=xe.indexOf($r);if(zi!==-1&&xe.splice(zi,1),ze(),!ae&&!yr.contains(document.activeElement)){var ui;(ui=Oe.current)===null||ui===void 0||ui.focus()}});xe.push($r)}for(var gn=arguments.length,Zo=new Array(gn>1?gn-1:0),kn=1;kn<gn;kn++)Zo[kn-1]=arguments[kn];me?.apply(void 0,[dt].concat(Zo))},It=St.useState({}),$t=j(It,2),mo=$t[1];function Ir(){mo({})}var Fr;Ye&&(Fr=function(dt){We(dt)}),I1(function(){var bt;return[Ae.current,(bt=Ie.current)===null||bt===void 0?void 0:bt.getPopupElement()]},Bt,We,!!Ye);var Er=St.useMemo(function(){return P(P({},e),{},{notFoundContent:h,open:Ne,triggerOpen:Bt,id:o,showSearch:he,multiple:de,toggleOpen:We})},[e,h,Bt,Ne,o,he,de,We]),zr=!!F||m,Qo;zr&&(Qo=St.createElement(Zs,{className:(0,q1.default)("".concat(n,"-arrow"),T({},"".concat(n,"-arrow-loading"),m)),customizeIcon:F,customizeIconProps:{loading:m,searchValue:be,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)},Jr=TA(n,Fo,u,$,H,g,be,y),Eo=Jr.allowClear,rs=Jr.clearIcon,os=St.createElement(z,{ref:Se}),Ln=(0,q1.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)),vc=St.createElement(gL,{ref:Ie,disabled:g,prefixCls:n,visible:Bt,popupElement:os,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:Ir},Ye?St.cloneElement(Ye,{ref:pt}):St.createElement(JA,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:be,onSearch:rt,onSearchSubmit:Lt,onRemove:fr,tokenWithEnter:_e,onInputBlur:wr}))),ns;return Ye?ns=vc:ns=St.createElement("div",J({className:Ln},ye,{ref:Ae,onMouseDown:nt,onKeyDown:ur,onKeyUp:ko,onFocus:Ge,onBlur:ke}),St.createElement(G1,{visible:ce&&!Ne,values:u}),vc,Qo,Eo&&rs),St.createElement(T1.Provider,{value:Er},ns)}),K1=J7;var CL=function(){return null};CL.isSelectOptGroup=!0;var wm=CL;var bL=function(){return null};bL.isSelectOption=!0;var Em=bL;var sE=E(we());var kL=E(we());var Nr=E(I()),fn=E(I()),aE=E(wi());var qu=E(I());var wL=E(we()),EL=qu.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))),qu.createElement("div",{style:f},qu.createElement(an,{onResize:function(h){var v=h.offsetHeight;v&&s&&s()}},qu.createElement("div",J({style:d,className:(0,wL.default)(T({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});EL.displayName="Filler";var RL=EL;var _L=E(I());var Fy=E(I());function OL(e){var t=e.children,r=e.setRef,o=Fy.useCallback(function(n){r(n)},[]);return Fy.cloneElement(t,{ref:o})}function X1(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 _L.createElement(OL,{key:p,setRef:function(v){return i(c,v)}},d)})}var Rm=E(I());function PL(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 Y1(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=PL(i||[],e||[],t);f?.index!==void 0&&(r?.(f.index),u(e[f.index])),a(e)},[e]),[c]}var ac=E(I());var eU=(typeof navigator>"u"?"undefined":ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Q1=eU;var zy=E(I()),By=function(e,t,r,o){var n=(0,zy.useRef)(!1),i=(0,zy.useRef)(null);function a(){clearTimeout(i.current),n.current=!0,i.current=setTimeout(function(){n.current=!1},50)}var s=(0,zy.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 Z1(e,t,r,o,n,i,a){var s=(0,ac.useRef)(0),l=(0,ac.useRef)(null),c=(0,ac.useRef)(null),u=(0,ac.useRef)(!1),f=By(t,r,o,n);function d(m,x){if(ct.cancel(l.current),!f(!1,x)){var C=m;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=x,c.current=x,Q1||C.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),Q1||m.preventDefault()}var h=(0,ac.useRef)(null),v=(0,ac.useRef)(null);function y(m){if(e){ct.cancel(v.current),v.current=ct(function(){h.current=null},2);var x=m.deltaX,C=m.deltaY,S=m.shiftKey,w=x,b=C;(h.current==="sx"||!h.current&&S&&C&&!x)&&(w=C,b=0,h.current="sx");var R=Math.abs(w),_=Math.abs(b);h.current===null&&(h.current=i&&R>_?"x":"y"),h.current==="y"?d(m,b):p(m,w)}}function g(m){e&&(u.current=m.detail===c.current)}return[y,g]}var TL=E(I());function NL(e,t,r,o){var n=TL.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 DL=E(I()),Ku=E(I());var tU=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}(),IL=tU;function $L(e){var t=parseFloat(e);return isNaN(t)?0:t}function J1(e,t,r){var o=DL.useState(0),n=j(o,2),i=n[0],a=n[1],s=(0,Ku.useRef)(new Map),l=(0,Ku.useRef)(new IL),c=(0,Ku.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 C=m.offsetHeight,S=getComputedStyle(m),w=S.marginTop,b=S.marginBottom,R=$L(w),_=$L(b),O=C+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,Ku.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Xu=E(I()),ML=14/15;function eE(e,t,r){var o=(0,Xu.useRef)(!1),n=(0,Xu.useRef)(0),i=(0,Xu.useRef)(0),a=(0,Xu.useRef)(null),s=(0,Xu.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*=ML:g*=ML;var C=Math.floor(m?y:g);(!r(m,C,!0)||Math.abs(C)<=.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 LL=E(I());function AL(e){return Math.floor(Math.pow(e,.5))}function jy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function tE(e,t,r){LL.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=jy(p,!1),v=o.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var m=y-h;a=-AL(m),l()}else if(h>=g){var x=h-g;a=AL(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 Wy=E(I());var rU=10;function rE(e,t,r,o,n,i,a,s){var l=Wy.useRef(),c=Wy.useState(null),u=j(c,2),f=u[0],d=u[1];return vt(function(){if(f&&f.times<rU){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,C=null;if(g){for(var S=p||h,w=0,b=0,R=0,_=Math.min(t.length-1,v),O=0;O<=_;O+=1){var N=n(t[O]);b=w;var k=r.get(N);R=b+(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":C=b-y;break;case"bottom":C=R-g+y;break;default:{var D=e.current.scrollTop,F=D+g;b<D?x="top":R>F&&(x="bottom")}}C!==null&&a(C),C!==f.lastTop&&(m=!0)}m&&d(P(P({},f),{},{times:f.times+1,targetAlign:x,lastTop:C}))}},[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 oE=E(we());var ar=E(I());var oU=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),C=j(x,2),S=C[0],w=C[1],b=ar.useState(null),R=j(b,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(jy(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 Ee=(jy(Z,c)-fe)*ye,le=de;!N&&c?le-=Ee:le+=Ee;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,oE.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,oE.default)("".concat(X,"-thumb"),T({},"".concat(X,"-thumb-moving"),g)),style:P(P({},ne),p),onMouseDown:G}))}),nE=oU;var nU=20;function iE(){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,nU),Math.floor(r)}var iU=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],aU=[],sU={overflowY:"auto",overflowAnchor:"none"};function lU(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,C=e.onVisibleChange,S=e.innerProps,w=e.extraRender,b=e.styles,R=e.showScrollBar,_=R===void 0?"optional":R,O=Me(e,iU),N=Nr.useCallback(function(Ce){return typeof d=="function"?d(Ce):Ce?.[d]},[d]),k=J1(N,null,null),A=j(k,4),W=A[0],L=A[1],$=A[2],D=A[3],F=!!(p!==!1&&i&&a),H=Nr.useMemo(function(){return Object.values($.maps).reduce(function(Ce,Ge){return Ce+Ge},0)},[$.id,$.maps]),z=F&&u&&(Math.max(a*u.length,H)>i||!!v),B=h==="rtl",U=(0,kL.default)(o,T({},"".concat(o,"-rtl"),B),n),V=u||aU,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 Ee(Ce){ne(function(Ge){var ke;typeof Ce=="function"?ke=Ce(Ge):ke=Ce;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=Y1(V,N),Ae=j(Re,1),je=Ae[0];ae.current=je;var Ie=Nr.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!z){var Ce;return{scrollHeight:((Ce=G.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Ge=0,ke,xe,nt,It=V.length,$t=0;$t<It;$t+=1){var mo=V[$t],Ir=N(mo),Fr=$.get(Ir),Er=Ge+(Fr===void 0?a:Fr);Er>=Y&&ke===void 0&&(ke=$t,xe=Ge),Er>Y+i&&nt===void 0&&(nt=$t),Ge=Er}return ke===void 0&&(ke=0,xe=0,nt=Math.ceil(i/a)),nt===void 0&&(nt=V.length-1),nt=Math.min(nt+1,V.length-1),{scrollHeight:Ge,start:ke,end:nt,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,Nr.useLayoutEffect(function(){var Ce=$.getRecord();if(Ce.size===1){var Ge=Array.from(Ce)[0],ke=V[Se];if(ke){var xe=N(ke);if(xe===Ge){var nt=$.get(Ge),It=nt-a;Ee(function($t){return $t+It})}}}$.resetRecord()},[Oe]);var $e=Nr.useState({width:0,height:i}),ce=j($e,2),pe=ce[0],ze=ce[1],be=function(Ge){ze({width:Ge.offsetWidth,height:Ge.offsetHeight})},Ue=(0,fn.useRef)(),Ye=(0,fn.useRef)(),pt=Nr.useMemo(function(){return iE(pe.width,v)},[pe.width,v]),Tt=Nr.useMemo(function(){return iE(pe.height,Oe)},[pe.height,Oe]),gt=Oe-i,Be=(0,fn.useRef)(gt);Be.current=gt;function Pe(Ce){var Ge=Ce;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=By(et,De,Le,Te),ht=function(){return{x:B?-Q:Q,y:Y}},Bt=(0,fn.useRef)(ht()),We=Et(function(Ce){if(x){var Ge=P(P({},ht()),Ce);(Bt.current.x!==Ge.x||Bt.current.y!==Ge.y)&&(x(Ge),Bt.current=Ge)}});function _e(Ce,Ge){var ke=Ce;Ge?((0,aE.flushSync)(function(){ie(ke)}),We()):Ee(ke)}function Qe(Ce){var Ge=Ce.currentTarget.scrollTop;Ge!==Y&&Ee(Ge),m?.(Ce),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(Ce,Ge){Ge?((0,aE.flushSync)(function(){ie(function(ke){var xe=ke+(B?-Ce:Ce);return Ze(xe)})}),We()):Ee(function(ke){var xe=ke+Ce;return xe})}),rt=Z1(F,et,De,Le,Te,!!v,Ke),Lt=j(rt,2),Nt=Lt[0],er=Lt[1];eE(F,M,function(Ce,Ge,ke,xe){var nt=xe;return Ne(Ce,Ge,ke)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Ce?Ge:0,deltaY:Ce?0:Ge}),!0):!1}),tE(z,M,function(Ce){Ee(function(Ge){return Ge+Ce})}),vt(function(){function Ce(ke){var xe=et&&ke.detail<0,nt=De&&ke.detail>0;F&&!xe&&!nt&&ke.preventDefault()}var Ge=M.current;return Ge.addEventListener("wheel",Nt,{passive:!1}),Ge.addEventListener("DOMMouseScroll",er,{passive:!0}),Ge.addEventListener("MozMousePixelScroll",Ce,{passive:!1}),function(){Ge.removeEventListener("wheel",Nt),Ge.removeEventListener("DOMMouseScroll",er),Ge.removeEventListener("MozMousePixelScroll",Ce)}},[F,et,De]),vt(function(){if(v){var Ce=Ze(Q);ie(Ce),We({x:Ce})}},[pe.width,v]);var kt=function(){var Ge,ke;(Ge=Ue.current)===null||Ge===void 0||Ge.delayHidden(),(ke=Ye.current)===null||ke===void 0||ke.delayHidden()},tr=rE(M,V,$,a,N,function(){return L(!0)},Ee,kt);Nr.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(C){var Ce=V.slice(Se,Ve+1);C(Ce,V)}},[Se,Ve,V]);var cr=NL(V,N,$,a),ur=w?.({start:Se,end:Ve,virtual:z,offsetX:Q,offsetY:He,rtl:B,getSize:cr}),ko=X1(V,Se,Ve,v,Q,W,f,ye),fr=null;i&&(fr=P(T({},l?"height":"maxHeight",i),sU),F&&(fr.overflowY="hidden",v&&(fr.overflowX="hidden"),me&&(fr.pointerEvents="none")));var wr={};return B&&(wr.dir="rtl"),Nr.createElement("div",J({ref:q,style:P(P({},c),{},{position:"relative"}),className:U},wr,O),Nr.createElement(an,{onResize:be},Nr.createElement(g,{className:"".concat(o,"-holder"),style:fr,ref:M,onScroll:Qe,onMouseEnter:kt},Nr.createElement(RL,{prefixCls:o,height:Oe,offsetX:Q,offsetY:He,scrollWidth:v,onInnerResize:L,ref:G,innerProps:S,rtl:B,extra:ur},ko))),z&&Oe>i&&Nr.createElement(nE,{ref:Ue,prefixCls:o,scrollOffset:Y,scrollRange:Oe,rtl:B,onScroll:_e,onStartMove:de,onStopMove:he,spinSize:Tt,containerSize:pe.height,style:b?.verticalScrollBar,thumbStyle:b?.verticalScrollBarThumb,showScrollBar:_}),z&&v>pe.width&&Nr.createElement(nE,{ref:Ye,prefixCls:o,scrollOffset:Q,scrollRange:v,rtl:B,onScroll:_e,onStartMove:de,onStopMove:he,spinSize:pt,containerSize:pe.width,horizontal:!0,style:b?.horizontalScrollBar,thumbStyle:b?.horizontalScrollBarThumb,showScrollBar:_}))}var FL=Nr.forwardRef(lU);FL.displayName="List";var zL=FL;var BL=zL;var Gt=E(I()),lE=E(I());function jL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cU=["disabled","title","children","style","className"];function WL(e){return typeof e=="string"||typeof e=="number"}var uU=function(t,r){var o=Py(),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(Gu),h=p.maxCount,v=p.flattenOptions,y=p.onActiveValue,g=p.defaultActiveFirstOption,m=p.onSelect,x=p.menuItemSelectedIcon,C=p.rawValues,S=p.fieldNames,w=p.virtual,b=p.direction,R=p.listHeight,_=p.listItemHeight,O=p.optionRender,N="".concat(n,"-item"),k=Qi(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)&&C?.size>=h},[s,h,C?.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:C.has(re)},[l,se(C).toString(),C.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,lE.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():C.has(re)},[l,c,se(C).toString(),C.size]);(0,lE.useEffect)(function(){var re=setTimeout(function(){if(!s&&a&&C.size===1){var Q=Array.from(C)[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:!C.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:jL()&&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(BL,{itemKey:"key",ref:A,data:k,height:R,itemHeight:_,fullHeight:!1,onMouseDown:L,onScroll:d,virtual:w,direction:b,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:WL(oe)?oe.toString():void 0;return Gt.createElement("div",{className:(0,sE.default)(N,"".concat(N,"-group"),Z.className),title:he},oe!==void 0?oe:fe)}var ye=Z.disabled,Ee=Z.title,le=Z.children,ae=Z.style,Re=Z.className,Ae=Me(Z,cU),je=hr(Ae,q),Ie=D(me),Oe=ye||!Ie&&W,Se="".concat(N,"-option"),Ve=(0,sE.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=WL(ce)?ce.toString():void 0;return Ee!==void 0&&(pe=Ee),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(Zs,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:me,disabled:Oe,isSelected:Ie}},Ie?"\u2713":null))}))},fU=Gt.forwardRef(uU),VL=fU;var Yu=E(I()),HL=function(e,t){var r=Yu.useRef({values:new Map,options:new Map}),o=Yu.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=Yu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[o,n]};var UL=E(I());function cE(e,t){return hm(e).join("").toUpperCase().includes(t)}var GL=function(e,t,r,o,n){return UL.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?cE(h[n],u):h[i]?cE(h[a!=="children"?a:"label"],u):cE(h[s],u)},d=c?function(p){return Cm(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 Vy=E(I());var qL=0,dU=Xt();function mU(){var e;return dU?(e=qL,qL+=1):e="TEST_OR_SSR",e}function uE(e){var t=Vy.useState(),r=j(t,2),o=r[0],n=r[1];return Vy.useEffect(function(){n("rc_select_".concat(mU()))},[]),e||o}var XL=E(I());var KL=E(I());var pU=["children","value"],gU=["children"];function hU(e){var t=e,r=t.key,o=t.props,n=o.children,i=o.value,a=Me(o,pU);return P({key:r,value:i!==void 0?i:r,children:n},a)}function Hy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rn(e).map(function(r,o){if(!KL.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,gU);return t||!i?hU(r):P(P({key:"__RC_SELECT_GRP__".concat(a===null?o:a,"__"),label:a},c),{},{options:Hy(l)})}).filter(function(r){return r})}var vU=function(t,r,o,n,i){return XL.useMemo(function(){var a=t,s=!t;s&&(a=Hy(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])},YL=vU;var Uy=E(I());function Gy(e){var t=Uy.useRef();t.current=e;var r=Uy.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var yU=E(I());var xU=["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"],SU=["inputValue"];function CU(e){return!e||ue(e)!=="object"}var bU=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,C=e.optionLabelProp,S=e.options,w=e.optionRender,b=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,xU),V=uE(r),M=bm(o),G=!!(!S&&b),q=sr.useMemo(function(){return g===void 0&&o==="combobox"?!1:g},[g,o]),ee=sr.useMemo(function(){return U1(s,G)},[JSON.stringify(s),G]),X=Ft("",{value:c!==void 0?c:l,postState:function(_e){return _e||""}}),Y=j(X,2),ne=Y[0],re=Y[1],K=YL(S,b,ee,x,C),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(CU(Qe))Ze=Qe;else{var er;rt=Qe.key,Ke=Qe.label,Ze=(er=Qe.value)!==null&&er!==void 0?er:rt}var kt=Q.get(Ze);if(kt){var tr;if(Ke===void 0&&(Ke=kt?.[C||ee.label]),rt===void 0&&(rt=(tr=kt?.key)!==null&&tr!==void 0?tr:Ze),Lt=kt?.disabled,Nt=kt?.title,0)var cr}return{label:Ke,value:Ze,key:rt,disabled:Lt,title:Nt}})},[ee,C,Q]),me=Ft(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"&&KA((We=Qe[0])===null||We===void 0?void 0:We.value)?[]:Qe},[de,oe,o,M]),Ee=HL(ye,Q),le=j(Ee,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(qA(_e)?String(_e):"")}},[ae]);var Ie=Gy(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=GL(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 vL($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 Cm(Re(rt.value))});z(M?Ze:Ze[0],M?Ke:Ke[0])}},ze=sr.useState(null),be=j(ze,2),Ue=be[0],Ye=be[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,wr=Re(_e);return[H?{label:wr?.[ee.label],value:_e,key:(fr=wr?.key)!==null&&fr!==void 0?fr:_e}:_e,Cm(wr)]};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 kt=Ke(),tr=j(kt,2),cr=tr[0],ur=tr[1];h(cr,ur)}},Le=Gy(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(""):(!bm||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)})},Bt=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(Gu.Provider,{value:Bt},sr.createElement(K1,J({},U,{id:V,prefixCls:i,ref:t,omitDomProps:SU,mode:o,displayValues:Ae,onDisplayValuesChange:Te,direction:N,searchValue:ne,onSearch:Ne,autoClearSearchValue:d,onSearchSplit:ht,dropdownMatchSelectWidth:y,OptionList:VL,emptyOptions:!ce.length,activeValue:Ue,activeDescendantId:"".concat(V,"_list_").concat(gt)})))}),fE=bU;fE.Option=Em;fE.OptGroup=wm;var QL=fE;var ZL=QL;var JL=E(we());function sa(e,t,r){return(0,JL.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 la=(e,t)=>t||e;var Zu=E(I());var ol=E(I()),Om=E(we());var dn=E(I());var wU=()=>{let[,e]=gr(),[t]=Ti("Empty"),o=new it(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"}))))},ek=wU;var rl=E(I()),tk=E(I());var EU=()=>{let[,e]=gr(),[t]=Ti("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,tk.useMemo)(()=>({borderColor:new it(r).onBackground(i).toHexString(),shadowColor:new it(o).onBackground(i).toHexString(),contentColor:new it(n).onBackground(i).toHexString()}),[r,o,n,i]);return rl.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},rl.createElement("title",null,t?.description||"Empty"),rl.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},rl.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),rl.createElement("g",{fillRule:"nonzero",stroke:a},rl.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"}),rl.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}))))},rk=EU;var RU=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}}}}},ok=_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[RU(n)]});var OU=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},nk=ol.createElement(ek,null),ik=ol.createElement(rk,null),dE=e=>{let{className:t,rootClassName:r,prefixCls:o,image:n=nk,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=OU(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,C,S]=ok(m),[w]=Ti("Empty"),b=typeof i<"u"?i:w?.description,R=typeof b=="string"?b:"empty",_=null;return typeof n=="string"?_=ol.createElement("img",{alt:R,src:n}):_=n,x(ol.createElement("div",Object.assign({className:(0,Om.default)(C,S,m,h,{[`${m}-normal`]:n===ik,[`${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),ol.createElement("div",{className:(0,Om.default)(`${m}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},_),b&&ol.createElement("div",{className:(0,Om.default)(`${m}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},b),a&&ol.createElement("div",{className:(0,Om.default)(`${m}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};dE.PRESENTED_IMAGE_DEFAULT=nk;dE.PRESENTED_IMAGE_SIMPLE=ik;var Qu=dE;var _U=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,Zu.useContext)(ot),o=r("empty");switch(t){case"Table":case"List":return Zu.default.createElement(Qu,{image:Qu.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Zu.default.createElement(Qu,{image:Qu.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return Zu.default.createElement(Qu,null)}},ak=_U;var mE=E(I());var PU=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,n;let{variant:i,[e]:a}=mE.useContext(ot),s=mE.useContext(OA),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=nw.includes(c);return[c,u]},nl=PU;var TU=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 NU(e,t){return e||TU(t)}var sk=NU;var lk=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"}},IU=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:Qv},[`
|
|
${n}${s}topLeft,
|
|
${i}${s}topLeft,
|
|
${n}${s}topRight,
|
|
${i}${s}topRight
|
|
`]:{animationName:Jv},[`${a}${s}bottomLeft`]:{animationName:Zv},[`
|
|
${a}${s}topLeft,
|
|
${a}${s}topRight
|
|
`]:{animationName:ey},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},lk(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({},lk(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ty(e,"slide-up"),ty(e,"slide-down"),Yv(e,"move-up"),Yv(e,"move-down")]},ck=IU;var $U=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())}},DU=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:o}=e;return e.calc(r).sub(t).div(2).sub(o).equal()},MU=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({},Fa()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},AU=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,n=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=DU(e),s=t?`${r}-${t}`:"",l=$U(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},MU(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 pE(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[AU(e,t),n]}var LU=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[pE(e),pE(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},pE(o,"lg")]},uk=LU;function gE(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 hE(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gE(e),gE(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()}}}},gE(tt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var fk=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:C}=e,S=s*2,w=o*2,b=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:b,multipleItemHeightSM:R,multipleItemHeightLG:_,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:m,activeBorderColor:x,activeOutlineColor:C,selectAffixPadding:s}};var gk=(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}}}},dk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gk(e,t))}),kU=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},gk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),dk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),dk(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}`}})}),hk=(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}}}},mk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hk(e,t))}),FU=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},hk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),mk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),mk(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}`}})}),zU=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}}}}),vk=(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}}}},pk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vk(e,t))}),BU=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},vk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),pk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),pk(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}`}})}),jU=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},kU(e)),FU(e)),zU(e)),BU(e))}),yk=jU;var WU=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"}}}},VU=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"}}}},HU=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({},WU(e)),VU(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({},Fa()),{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()}}}}}},UU=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},HU(e),hE(e),uk(e),ck(e),{[`${t}-rtl`]:{direction:"rtl"}},qs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xk=_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[UU(o),yk(o)]},fk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ca=E(I());var qy=E(I());var GU={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"},Sk=GU;var qU=function(t,r){return qy.createElement(mt,J({},t,{ref:r,icon:Sk}))},KU=qy.forwardRef(qU),Ky=KU;var Xy=E(I());var XU={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"},Ck=XU;var YU=function(t,r){return Xy.createElement(mt,J({},t,{ref:r,icon:Ck}))},QU=Xy.forwardRef(YU),Yy=QU;var Qy=E(I());var ZU={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"},bk=ZU;var JU=function(t,r){return Qy.createElement(mt,J({},t,{ref:r,icon:bk}))},e9=Qy.forwardRef(JU),Zy=e9;function vE(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??ca.createElement(Nu,null),h=m=>t===null&&!s&&!f?null:ca.createElement(ca.Fragment,null,c!==!1&&m,s&&u),v=null;if(t!==void 0)v=h(t);else if(i)v=h(ca.createElement(ql,{spin:!0}));else{let m=`${l}-suffix`;v=x=>{let{open:C,showSearch:S}=x;return h(C&&S?ca.createElement(Zy,{className:m}):ca.createElement(Yy,{className:m}))}}let y=null;o!==void 0?y=o:a?y=ca.createElement(Ky,null):y=null;let g=null;return n!==void 0?g=n:g=ca.createElement(Iu,null),{clearIcon:p,suffixIcon:v,itemIcon:y,removeIcon:g}}function yE(e,t){return t!==void 0?t:e!==null}var t9=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},wk="SECRET_COMBOBOX_MODE_DO_NOT_USE",r9=(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:C,style:S,allowClear:w,variant:b,dropdownStyle:R,transitionName:_,tagRender:O,maxCount:N,prefix:k}=e,A=t9(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}=ai.useContext(ot),B=$o("select"),[,U]=gr(),V=d??U?.controlHeight,M=L("select",o),G=L(),q=C??D,{compactSize:ee,compactItemClassnames:X}=Zn(M,q),[Y,ne]=nl("select",b,n),re=Mo(M),[K,Q,ie]=xk(M,re),Z=ai.useMemo(()=>{let{mode:Ue}=e;if(Ue!=="combobox")return Ue===wk?"combobox":Ue},[e.mode]),oe=Z==="multiple"||Z==="tags",me=yE(e.suffixIcon,e.showArrow),fe=(r=x??m)!==null&&r!==void 0?r:H,{status:de,hasFeedback:he,isFormItemInput:ye,feedbackIcon:Ee}=ai.useContext(uo),le=la(de,y),ae;v!==void 0?ae=v:Z==="combobox"?ae=null:ae=$?.("Select")||ai.createElement(ak,{componentName:"Select"});let{suffixIcon:Re,itemIcon:Ae,removeIcon:je,clearIcon:Ie}=vE(Object.assign(Object.assign({},A),{multiple:oe,hasFeedback:he,feedbackIcon:Ee,showSuffixIcon:me,prefixCls:M,componentName:"Select"})),Oe=w===!0?{clearIcon:Ie}:w,Se=hr(A,["suffixIcon","itemIcon"]),Ve=(0,xE.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=ai.useContext(Hr),ce=h??$e,pe=(0,xE.default)({[`${M}-lg`]:He==="large",[`${M}-sm`]:He==="small",[`${M}-rtl`]:q==="rtl",[`${M}-${Y}`]:ne,[`${M}-in-form-item`]:ye},sa(M,le,he),X,B.className,i,a,ie,re,Q),ze=ai.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=ra("SelectLike",R?.zIndex);return K(ai.createElement(ZL,Object.assign({ref:t,virtual:F,showSearch:B.showSearch},Se,{style:Object.assign(Object.assign({},B.style),S),dropdownMatchSelectWidth:fe,transitionName:oa(G,"slide-up",_),builtinPlacements:sk(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:be}),maxCount:oe?N:void 0,tagRender:oe?O:void 0})))},Ju=ai.forwardRef(r9),o9=Ry(Ju,"dropdownAlign");Ju.SECRET_COMBOBOX_MODE_DO_NOT_USE=wk;Ju.Option=Em;Ju.OptGroup=wm;Ju._InternalPanelDoNotUseOrYouWillBeFired=o9;var qa=Ju;var Ai=E(I()),Ok=E(we());var{Option:Ek}=qa;function Rk(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var n9=(e,t)=>{var r;let{prefixCls:o,className:n,popupClassName:i,dropdownClassName:a,children:s,dataSource:l}=e,c=Rn(s),u;c.length===1&&Ai.isValidElement(c[0])&&!Rk(c[0])&&([u]=c);let f=u?()=>u:void 0,d;c.length&&Rk(c[0])?d=s:d=l?l.map(y=>{if(Ai.isValidElement(y))return y;switch(typeof y){case"string":return Ai.createElement(Ek,{key:y,value:y},y);case"object":{let{value:g}=y;return Ai.createElement(Ek,{key:g,value:g},y.text)}default:return}}):[];let{getPrefixCls:p}=Ai.useContext(ot),h=p("select",o),[v]=ra("SelectLike",(r=e.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return Ai.createElement(qa,Object.assign({ref:t,suffixIcon:null},hr(e,["dataSource","dropdownClassName"]),{prefixCls:h,popupClassName:i||a,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:v}),className:(0,Ok.default)(`${h}-auto-complete`,n),mode:qa.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:f}),d)},i9=Ai.forwardRef(n9),SE=i9;var{Option:a9}=qa,s9=Ry(SE,"dropdownAlign",e=>hr(e,["visible"])),CE=SE;CE.Option=a9;CE._InternalPanelDoNotUseOrYouWillBeFired=s9;var bE=CE;var _k=E(I());function wE(){let[,e]=_k.useReducer(t=>t+1,0);return e}var So=E(I()),o0=E(we());var EE=E(we()),RE=E(I());function ef(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(we()),sc=E(I()),of=E(I());var tf={shiftX:64,adjustY:1},rf={adjustX:1,shiftY:!0},si=[0,0],Pk={left:{points:["cr","cl"],overflow:rf,offset:[-4,0],targetOffset:si},right:{points:["cl","cr"],overflow:rf,offset:[4,0],targetOffset:si},top:{points:["bc","tc"],overflow:tf,offset:[0,-4],targetOffset:si},bottom:{points:["tc","bc"],overflow:tf,offset:[0,4],targetOffset:si},topLeft:{points:["bl","tl"],overflow:tf,offset:[0,-4],targetOffset:si},leftTop:{points:["tr","tl"],overflow:rf,offset:[-4,0],targetOffset:si},topRight:{points:["br","tr"],overflow:tf,offset:[0,-4],targetOffset:si},rightTop:{points:["tl","tr"],overflow:rf,offset:[4,0],targetOffset:si},bottomRight:{points:["tr","br"],overflow:tf,offset:[0,4],targetOffset:si},rightBottom:{points:["bl","br"],overflow:rf,offset:[4,0],targetOffset:si},bottomLeft:{points:["tl","bl"],overflow:tf,offset:[0,4],targetOffset:si},leftBottom:{points:["br","bl"],overflow:rf,offset:[-4,0],targetOffset:si}};var l9=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],c9=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,C=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,b=t.destroyTooltipOnHide,R=b===void 0?!1:b,_=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,l9),z=Mu(W),B=(0,of.useRef)(null);(0,of.useImperativeHandle)(r,function(){return B.current});var U=P({},H);"visible"in t&&(U.popupVisible=t.visible);var V=function(){return sc.createElement(ef,{key:"content",prefixCls:d,id:z,bodyClassName:D?.body,overlayInnerStyle:P(P({},N),F?.body)},A)},M=function(){var q=sc.Children.only(p),ee=q?.props||{},X=P(P({},ee),{},{"aria-describedby":A?z:null});return sc.cloneElement(p,X)};return sc.createElement(ky,J({popupClassName:(0,Tk.default)(o,D?.root),prefixCls:d,popup:V,action:i,builtinPlacements:Pk,popupPlacement:C,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,of.forwardRef)(c9);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%)`,C=`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:C,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 e0(e){let{contentRadius:t,limitVerticalRadius:r}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?OE:o}}function Jy(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}})]},Jy(!!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}}}})),Jy(!!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}}}})),Jy(!!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}})),Jy(!!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 u9(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"]}},f9={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"]}},d9=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&&f9[c]||Mk[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,d9.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=e0({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=u9(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var nf=E(I()),kk=E(we());var m9=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"}}),uv(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}}]},p9=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},e0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),$k(tt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),t0=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[m9(s),Yl(o,"zoom-big-fast")]},p9,{resetStyle:!1,injectStyle:t})(e)};var Lk=E(we());var g9=Nn.map(e=>`${e}-inverse`);function Ak(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(se(g9),se(Nn)).includes(e):Nn.includes(e)}function r0(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 h9=e=>{let{prefixCls:t,className:r,placement:o="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=nf.useContext(ot),l=s("tooltip",t),[c,u,f]=t0(l),d=r0(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(nf.createElement("div",{className:v,style:p},nf.createElement("div",{className:`${l}-arrow`}),nf.createElement(ef,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),n)))},Fk=h9;var v9=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},y9=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:C,placement:S="top",mouseEnterDelay:w=.1,mouseLeaveDelay:b=.1,overlayStyle:R,rootClassName:_,overlayClassName:O,styles:N,classNames:k}=e,A=v9(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=Kh("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]=Ft(!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(Qs,{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)&&!Fv(c)?c:So.createElement("span",null,c),fe=me.props,de=!fe.className||typeof fe.className=="string"?(0,o0.default)(fe.className,i||`${Q}-open`):fe.className,[he,ye,Ee]=t0(Q,!Z),le=r0(Q,s),ae=le.arrowStyle,Re=(0,o0.default)(O,{[`${Q}-rtl`]:F==="rtl"},le.className,_,ye,Ee,H,B.root,k?.root),Ae=(0,o0.default)(B.body,k?.body),[je,Ie]=ra("Tooltip",A.zIndex),Oe=So.createElement(Ik,Object.assign({},A,{zIndex:je,showArrow:W,placement:S,mouseEnterDelay:w,mouseLeaveDelay:b,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:C||a||$,ref:M,builtinPlacements:ne,overlay:K,visible:oe,onVisibleChange:Y,afterVisibleChange:u??f,arrowContent:So.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:oa(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d}),oe?Qn(me,{className:de}):me);return he(So.createElement(Bv.Provider,{value:Ie},Oe))}),zk=y9;zk._InternalPanelDoNotUseOrYouWillBeFired=Fk;var Ka=zk;var n0=E(I());var x9={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=x9;var S9=function(t,r){return n0.createElement(mt,J({},t,{ref:r,icon:Bk}))},C9=n0.forwardRef(S9),jk=C9;var Wk=E(we());var i0=E(I()),lc=E(I()),b9=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],w9=(0,lc.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,b9),v=(0,lc.useRef)(null),y=(0,lc.useRef)(null),g=Ft(c,{value:a}),m=j(g,2),x=m[0],C=m[1];(0,lc.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||C(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 i0.createElement("span",{className:S,title:d,style:i,ref:y},i0.createElement("input",J({},h,{className:"".concat(o,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),i0.createElement("span",{className:"".concat(o,"-inner")}))}),Vk=w9;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 Xa(e){return tt(e,{inputAffixPadding:e.paddingXXS})}var Ya=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:C,inputFontSizeLG:S,inputFontSizeSM:w}=e,b=C||r,R=w||b,_=S||s,O=Math.round((t-b*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:b,inputFontSizeLG:_,inputFontSizeSM:R}};var E9=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({},E9(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}}),a0=(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}}}),s0=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))}})}),l0=(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}})}),c0=(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}}}),u0=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`}}),f0=(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}),_m=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"},Pu()),{[`${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}}}})}},R9=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)),_m(e)),a0(e)),c0(e)),l0(e)),f0(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"}})}},O9=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)}`}}}},_9=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({},_m(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}}}),O9(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}}}}},P9=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}}},s0(e)),u0(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}}})})}},T9=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}}}}},N9=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},d0=_t(["Input","Shared"],e=>{let t=tt(e,Xa(e));return[R9(t),_9(t)]},Ya,{resetFont:!1}),m0=_t(["Input","Component"],e=>{let t=tt(e,Xa(e));return[P9(t),T9(t),N9(t),qs(t)]},Ya,{resetFont:!1});var I9=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({},vw(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 $9(e,t){let r=tt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[I9(r)]}var p0=_t("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[$9(r,e)]});var Yr=E(I()),DE=E(we());var tF=E(I()),D9=tF.default.createContext(null),g0=D9;var M9=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},A9=(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=M9(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Yr.useContext(ot),g=Yr.useContext(g0),{isFormItemInput:m}=Yr.useContext(uo),x=Yr.useContext(Hr),C=(r=g?.disabled||d)!==null&&r!==void 0?r:x,S=Yr.useRef(p.value),w=Yr.useRef(null),b=Ar(t,w);Yr.useEffect(()=>{g?.registerValue(p.value)},[]),Yr.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]),Yr.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]=p0(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`]:C,[`${R}-wrapper-in-form-item`]:m},y?.className,n,i,k,_,N),L=(0,DE.default)({[`${R}-indeterminate`]:s},$u,N),[$,D]=TE(A.onClick);return O(Yr.createElement(Uv,{component:"Checkbox",disabled:C},Yr.createElement("label",{className:W,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:$},Yr.createElement(Vk,Object.assign({},A,{onClick:D,prefixCls:R,className:L,disabled:C,ref:b})),a!==void 0&&Yr.createElement("span",{className:`${R}-label`},a))))},L9=Yr.forwardRef(A9),h0=L9;var Ko=E(I()),rF=E(we());var k9=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},F9=Ko.forwardRef((e,t)=>{let{defaultValue:r,children:o,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=k9(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=Ko.useContext(ot),[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]))},C=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`,b=Mo(S),[R,_,O]=p0(S,b),N=hr(u,["value","disabled"]),k=n.length?g.map(L=>Ko.createElement(h0,{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:C,value:p,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:m},W=(0,rF.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,b,_);return R(Ko.createElement("div",Object.assign({className:W,style:l},N,{ref:t}),Ko.createElement(g0.Provider,{value:A},k)))});var oF=F9;var ME=h0;ME.Group=oF;ME.__ANT_CHECKBOX=!0;var AE=ME;var br=E(I());var v0=E(I());var z9={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=z9;var B9=function(t,r){return v0.createElement(mt,J({},t,{ref:r,icon:nF}))},j9=v0.forwardRef(B9),iF=j9;var fc=E(we());function Pm(){return typeof BigInt=="function"}function y0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Li(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 x0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ua(e){var t=String(e);if(x0(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(".")&&af(t)?t.length-t.indexOf(".")-1:0}function Qa(e){var t=String(e);if(x0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Pm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Pm()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ua(t))}return Li(t).fullStr}function af(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),y0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(x0(r)&&(r=Number(r)),r=typeof r=="string"?r:Qa(r),af(r)){var o=Li(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=Li(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()?"":Li("".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),y0(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(ua(this.number),ua(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(ua(this.number),ua(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()?"":Qa(this.number):this.origin}}]),e}();function S0(e){return Pm()?new aF(e):new sF(e)}function Tm(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var n=Li(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=S0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return Tm(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 ki=S0;var SF=E(we());var Za=E(we()),Co=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 sf(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 cc(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 W9=Co.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,C=e.handleReset,S=e.hidden,w=e.classes,b=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,Co.useRef)(null),F=function(Z){var oe;(oe=D.current)!==null&&oe!==void 0&&oe.contains(Z.target)&&g?.()},H=uF(e),z=(0,Co.cloneElement)(k,{value:x,className:(0,Za.default)((r=k.props)===null||r===void 0?void 0:r.className,!H&&b?.variant)||null}),B=(0,Co.useRef)(null);if(Co.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=Co.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Z){C?.(Z),N?.()},onMouseDown:function(Z){return Z.preventDefault()},className:(0,Za.default)(M,T(T({},"".concat(M,"-hidden"),!V),"".concat(M,"-has-suffix"),!!c))},G)}var q="".concat(s,"-affix-wrapper"),ee=(0,Za.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,b?.affixWrapper,b?.variant),X=(c||m)&&Co.default.createElement("span",{className:(0,Za.default)("".concat(s,"-suffix"),b?.suffix),style:_?.suffix},U,c);z=Co.default.createElement(A,J({className:ee,style:_?.affixWrapper,onClick:F},R?.affixWrapper,{ref:D}),l&&Co.default.createElement("span",{className:(0,Za.default)("".concat(s,"-prefix"),b?.prefix),style:_?.prefix},l),z,X)}if(cF(e)){var Y="".concat(s,"-group"),ne="".concat(Y,"-addon"),re="".concat(Y,"-wrapper"),K=(0,Za.default)("".concat(s,"-wrapper"),Y,w?.wrapper,b?.wrapper),Q=(0,Za.default)(re,T({},"".concat(re,"-disabled"),h),w?.group,b?.groupWrapper);z=Co.default.createElement(W,{className:Q,ref:B},Co.default.createElement(L,{className:K},u&&Co.default.createElement($,{className:ne},u),z,f&&Co.default.createElement($,{className:ne},f)))}return Co.default.cloneElement(z,{className:(0,Za.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})}),uc=W9;var C0=E(we());var kr=E(I());var fF=E(I()),V9=["show"];function Nm(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,V9);return P(P({},i),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var H9=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],U9=(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,C=e.classes,S=e.classNames,w=e.styles,b=e.onCompositionStart,R=e.onCompositionEnd,_=Me(e,H9),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&&cc($.current,ae)},H=Ft(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=Nm(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&&sf($.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&&sf($.current,ae,o)},he=re&&"".concat(u,"-out-of-range"),ye=function(){var ae=hr(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,C0.default)(u,T({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:$,size:d,type:x,onCompositionStart:function(Ae){W.current=!0,b?.(Ae)},onCompositionEnd:ie}))},Ee=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,C0.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(uc,J({},_,{prefixCls:u,className:(0,C0.default)(p,he),handleReset:de,value:V,focused:k,triggerFocus:F,suffix:Ee(),disabled:f,classes:C,classNames:S,styles:w}),ye())}),dF=U9;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 li=E(I()),FE=E(we());var gF=E(I());var G9=function(){var t=(0,gF.useState)(!1),r=j(t,2),o=r[0],n=r[1];return vt(function(){n(Fu())},[]),o},hF=G9;var q9=200,K9=600;function zE(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,n=e.upDisabled,i=e.downDisabled,a=e.onStep,s=li.useRef(),l=li.useRef([]),c=li.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,C){x.preventDefault(),u(),c.current(C);function S(){c.current(C),s.current=setTimeout(S,q9)}s.current=setTimeout(S,K9)};li.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 li.createElement("div",{className:"".concat(p,"-wrap")},li.createElement("span",J({},g,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":n,className:h}),r||li.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),li.createElement("span",J({},g,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),o||li.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function BE(e){var t=typeof e=="number"?Qa(e):Li(e).fullStr,r=t.includes(".");return r?Li(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var b0=E(I());var vF=function(){var e=(0,b0.useRef)(0),t=function(){ct.cancel(e.current)};return(0,b0.useEffect)(function(){return t},[]),function(r){t(),e.current=ct(function(){r()})}};var X9=["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"],Y9=["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=ki(t);return r.isInvalidate()?null:r},Q9=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,C=e.classNames,S=e.stringMode,w=e.parser,b=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,X9),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 ki(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(ua(Be),ua(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(b)return b(Be,{userTyping:Pe,input:String(ie.current)});var et=typeof Be=="number"?Qa(Be):Be;if(!Pe){var De=K(et,Pe);if(af(et)&&(_||De>=0)){var Le=_||".";et=Tm(et,Le,De)}}return et},[b,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]),Ee=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!Ee||!Y||Y.isInvalidate()?!1:Y.lessEquals(Ee)},[Ee,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:Ee&&!Ee.lessEquals(Pe)?Ee: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=ki(Tm(Te,".",Ne)),Se(De)||(De=ki(Tm(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=ki(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)},be=function(Pe){var et;if(!(Pe&&le||!Pe&&ae)){M.current=!1;var De=ki(q.current?BE(l):l);Pe||(De=De.negate());var Le=(Y||ki(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=ki(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)&&(be(et==="Up"||et==="ArrowUp"),Pe.preventDefault())},Tt=function(){M.current=!1,q.current=!1};Ot.useEffect(function(){if(g&&U){var Be=function(De){be(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 kl(function(){Y.isInvalidate()||he(Y,!1)},[R,b]),kl(function(){var Be=ki(u);ne(Be);var Pe=ki(Q(fe));(!Be.equals(Pe)||!M.current||b)&&he(Be,M.current)},[u]),kl(function(){b&&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:be}),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}))))}),Z9=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,Y9),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),g=function(x){y.current&&cc(y.current,x)};return Ot.useImperativeHandle(t,function(){return LE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(uc,{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(Q9,J({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},p)))}),CF=Z9;var bF=CF;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({},Ya(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new it(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}}}},J9=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:C,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:b,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)),_m(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:n}),a0(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),c0(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),f0(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),l0(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:b,[`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:b}}},s0(e)),u0(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({},Fa()),{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}})}]},eG=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`}},_m(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,Xa(e));return[J9(t),eG(t),qs(t)]},wF,{unitless:{handleOpacity:!0}});var tG=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(ot),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=tG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=r("input-number",c),S=Mo(C),[w,b,R]=RF(C,S),{compactSize:_,compactItemClassnames:O}=Zn(C,o),N=br.createElement(iF,{className:`${C}-handler-up-inner`}),k=br.createElement(Yy,{className:`${C}-handler-down-inner`}),A=typeof g=="boolean"?g:void 0;typeof g=="object"&&(N=typeof g.upIcon>"u"?N:br.createElement("span",{className:`${C}-handler-up-inner`},g.upIcon),k=typeof g.downIcon>"u"?k:br.createElement("span",{className:`${C}-handler-down-inner`},g.downIcon));let{hasFeedback:W,status:L,isFormItemInput:$,feedbackIcon:D}=br.useContext(uo),F=la(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]=nl("inputNumber",m,h),M=W&&br.createElement(br.Fragment,null,D),G=(0,fc.default)({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small",[`${C}-rtl`]:o==="rtl",[`${C}-in-form-item`]:$},b),q=`${C}-group`,ee=br.createElement(bF,Object.assign({ref:n,disabled:B,className:(0,fc.default)(R,S,i,a,O),upHandler:N,downHandler:k,prefixCls:C,readOnly:v,controls:A,prefix:d,suffix:M||p,addonBefore:u&&br.createElement(Qs,{form:!0,space:!0},u),addonAfter:f&&br.createElement(Qs,{form:!0,space:!0},f),classNames:{input:G,variant:(0,fc.default)({[`${C}-${U}`]:V},sa(C,F,W)),affixWrapper:(0,fc.default)({[`${C}-affix-wrapper-sm`]:H==="small",[`${C}-affix-wrapper-lg`]:H==="large",[`${C}-affix-wrapper-rtl`]:o==="rtl",[`${C}-affix-wrapper-without-controls`]:g===!1},b),wrapper:(0,fc.default)({[`${q}-rtl`]:o==="rtl"},b),groupWrapper:(0,fc.default)({[`${C}-group-wrapper-sm`]:H==="small",[`${C}-group-wrapper-lg`]:H==="large",[`${C}-group-wrapper-rtl`]:o==="rtl",[`${C}-group-wrapper-${U}`]:V},sa(`${C}-group-wrapper`,F,W),b)}},x));return w(ee)}),_F=OF,rG=e=>br.createElement(ja,{theme:{components:{InputNumber:{handleVisible:!0}}}},br.createElement(OF,Object.assign({},e)));_F._InternalPanelDoNotUseOrYouWillBeFired=rG;var w0=_F;var mn=E(I()),dc=E(we());var PF=E(I());var oG=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:PF.default.createElement(Nu,null)}),t},E0=oG;var R0=E(I());function Im(e,t){let r=(0,R0.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,R0.useEffect)(()=>(t&&o(),()=>r.current.forEach(n=>{n&&clearTimeout(n)})),[]),o}function TF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var nG=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 iG=(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,C=nG(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:b,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]=d0(A,y),[H]=m0(A,L),{compactSize:z,compactItemClassnames:B}=Zn(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=la(G,n),Y=TF(e)||!!q,ne=(0,mn.useRef)(Y),re=Im(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=E0(u??b),[me,fe]=nl("input",x,o);return $(H(mn.default.createElement(mF,Object.assign({ref:Ar(t,W),prefixCls:A,autoComplete:R},C,{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,dc.default)(p,y,F,L,B,_),onChange:ie,addonBefore:d&&mn.default.createElement(Qs,{form:!0,space:!0},d),addonAfter:f&&mn.default.createElement(Qs,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},m),N),{input:(0,dc.default)({[`${A}-sm`]:U==="small",[`${A}-lg`]:U==="large",[`${A}-rtl`]:w==="rtl"},m?.input,N.input,D),variant:(0,dc.default)({[`${A}-${me}`]:fe},sa(A,X)),affixWrapper:(0,dc.default)({[`${A}-affix-wrapper-sm`]:U==="small",[`${A}-affix-wrapper-lg`]:U==="large",[`${A}-affix-wrapper-rtl`]:w==="rtl"},D),wrapper:(0,dc.default)({[`${A}-group-rtl`]:w==="rtl"},D),groupWrapper:(0,dc.default)({[`${A}-group-wrapper-sm`]:U==="small",[`${A}-group-wrapper-lg`]:U==="large",[`${A}-group-wrapper-rtl`]:w==="rtl",[`${A}-group-wrapper-${me}`]:fe},sa(`${A}-group-wrapper`,X,q),D)})}))))}),il=iG;var KE=E(we());var Pt=E(I());var Xo=E(I()),IF=E(wi());function O0(e,t,r){return(e-t)/(r-t)}function lf(e,t,r,o){var n=O0(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 fa(e,t){return Array.isArray(e)?e[t]:e}var NF=E(we());var cf=E(I());var jE=E(I()),aG=jE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),pn=aG,WE=jE.createContext({});var sG=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],lG=cf.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,sG),y=cf.useContext(pn),g=y.min,m=y.max,x=y.direction,C=y.disabled,S=y.keyboard,w=y.range,b=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){C||i(G,n)},$=function(G){p?.(G,n)},D=function(G){h(G,n)},F=function(G){if(!C&&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=lf(x,o,g,m),B={};if(n!==null){var U;B={tabIndex:C?null:fa(b,n),role:"slider","aria-valuemin":g,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":C,"aria-label":fa(R,n),"aria-labelledby":fa(_,n),"aria-required":fa(O,n),"aria-valuetext":(U=fa(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=cf.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=lG;var cG=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],uG=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,cG),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),C=x[0],S=x[1],w=function(N){S(N),g(!0)},b=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:b,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:fa(o,N),key:N,value:O,valueIndex:N},_))}),l&&y&&Xo.createElement(VE,J({key:"a11y"},_,{value:a[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),$F=uG;var HE=E(I());var DF=E(we()),_0=E(I());var fG=function(t){var r=t.prefixCls,o=t.style,n=t.children,i=t.value,a=t.onClick,s=_0.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=lf(u,i,l,c);return _0.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=fG;var dG=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=dG;var mc=E(I());var LF=E(we()),P0=E(I());var mG=function(t){var r=t.prefixCls,o=t.value,n=t.style,i=t.activeStyle,a=P0.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({},lf(c,o,s,l)),typeof n=="function"?n(o):n);return h&&(v=P(P({},v),typeof i=="function"?i(o):i)),P0.createElement("span",{className:(0,LF.default)(p,T({},"".concat(p,"-active"),h)),style:v})},kF=mG;var pG=function(t){var r=t.prefixCls,o=t.marks,n=t.dots,i=t.style,a=t.activeStyle,s=mc.useContext(pn),l=s.min,c=s.max,u=s.step,f=mc.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 mc.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return mc.createElement(kF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},FF=pG;var BF=E(we()),da=E(I());var zF=E(we()),T0=E(I());var gG=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=T0.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=O0(n,f,d),m=O0(i,f,d),x=function(b){!p&&s&&s(b,-1)},C={};switch(u){case"rtl":C.right="".concat(g*100,"%"),C.width="".concat(m*100-g*100,"%");break;case"btt":C.bottom="".concat(g*100,"%"),C.height="".concat(m*100-g*100,"%");break;case"ttb":C.top="".concat(g*100,"%"),C.height="".concat(m*100-g*100,"%");break;default:C.left="".concat(g*100,"%"),C.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 T0.createElement("div",{className:S,style:P(P({},C),o),onMouseDown:x,onTouchStart:x})},UE=gG;var hG=function(t){var r=t.prefixCls,o=t.style,n=t.values,i=t.startPoint,a=t.onStartMove,s=da.useContext(pn),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,p=da.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)?da.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 da.createElement(da.Fragment,null,h,p.map(function(v,y){var g=v.start,m=v.end;return da.createElement(UE,{index:y,prefixCls:r,style:P(P({},fa(o,y)),f.track),start:g,end:m,key:y,onStartMove:a})}))},jF=hG;var Ao=E(I());var vG=130;function WF(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function yG(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),C=j(x,2),S=C[0],w=C[1],b=Ao.useState(r),R=j(b,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,Ee=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=Ee;break;case"ttb":je=le/Ae,Ie=Ee;break;case"rtl":je=-Ee/Re,Ie=le;break;default:je=Ee/Re,Ie=le}ie=c?Math.abs(Ie)>vG&&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=yG;var N0=E(I());function GE(e,t,r,o,n,i){var a=N0.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=N0.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=N0.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],C=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(C)),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 b=g==="unit"?x:C;m=S[0];var R=Math.abs(m-b);if(S.forEach(function(O){var N=Math.abs(O-b);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],C=c(m,v,y,g);if(m[y]=C,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 b=!0;f(m[w]-m[w-1])&&b;){var R=u(m,1,w);m[w]=R.value,b=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 xG=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,C=e.step,S=C===void 0?1:C,w=e.value,b=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]),Ee=qE(R),le=j(Ee,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],nt={value:Number(ke)};return xe&&ue(xe)==="object"&&!Pt.isValidElement(xe)&&("label"in xe||"style"in xe)?(nt.style=xe.style,nt.label=xe.label):nt.label=xe,nt}).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],be=pe[1],Ue=Ft(b,{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),nt=xe[0],It=nt===void 0?Oe:nt,$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 Ir;$t.push((Ir=$t[$t.length-1])!==null&&Ir!==void 0?Ir:Oe)}}$t.sort(function(Fr,Er){return Fr-Er})}return $t.forEach(function(Fr,Er){$t[Er]=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(nt,It){return nt-It});O&&!Ji(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 nt=se(gt);nt.splice(xe,1),N?.(Be(nt)),Pe(nt);var It=Math.max(0,xe-1);de.current.hideHelp(),de.current.focus(It)}},Le=VF(he,ye,gt,Oe,Se,ze,Pe,et,be,Re,je),Te=j(Le,5),Ne=Te[0],ht=Te[1],Bt=Te[2],We=Te[3],_e=Te[4],Qe=function(xe,nt){if(!u){var It=se(gt),$t=0,mo=0,Ir=Se-Oe;gt.forEach(function(Fo,Jr){var Eo=Math.abs(xe-Fo);Eo<=Ir&&(Ir=Eo,$t=Jr),Fo<xe&&(mo=Jr)});var Fr=$t;Re&&Ir!==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 Er=Be(It);if(N?.(Er),Pe(It),nt){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(nt,Fr,It)}else k?.(Er),Vt(!k,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A?.(Er)}},Ze=function(xe){xe.preventDefault();var nt=he.current.getBoundingClientRect(),It=nt.width,$t=nt.height,mo=nt.left,Ir=nt.top,Fr=nt.bottom,Er=nt.right,zr=xe.clientX,Qo=xe.clientY,Fo;switch(ye){case"btt":Fo=(Fr-Qo)/$t;break;case"ttb":Fo=(Qo-Ir)/$t;break;case"rtl":Fo=(Er-zr)/It;break;default:Fo=(zr-mo)/It}var Jr=Oe+Fo*(Se-Oe);Qe(ze(Jr),xe)},Ke=Pt.useState(null),rt=j(Ke,2),Lt=rt[0],Nt=rt[1],er=function(xe,nt){if(!u){var It=be(gt,xe,nt);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 kt=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),wr=fr[0],Ce=fr[1];Pt.useImperativeHandle(t,function(){return{focus:function(){de.current.focus(0)},blur:function(){var xe,nt=document,It=nt.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:wr,includedEnd:Ce,range:ae,tabIndex:ie,ariaLabelForHandle:Z,ariaLabelledByForHandle:oe,ariaRequired:me,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:a||{}}},[Oe,Se,ye,u,d,Ve,B,wr,Ce,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:kt?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:Bt,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=xG;var GF=UF;var ma=E(I()),df=E(we());var qF=E(I()),SG=(0,qF.createContext)({}),KF=SG;var uf=E(I()),XE=E(I());var CG=uf.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 uf.useEffect(()=>(i?l():s(),s),[i,e.title]),uf.createElement(Ka,Object.assign({ref:Ar(n,t)},e,{open:i}))}),YE=CG;var bG=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()}}},wG=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},XF(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},EG=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},XF(e,!1)),{height:"100%"})}},RG=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 it(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 it(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[bG(t),wG(t),EG(t)]},RG);var ff=E(I());function $m(){let[e,t]=ff.useState(!1),r=ff.useRef(null),o=()=>{ct.cancel(r.current)},n=i=>{o(),i?t(i):r.current=ct(()=>{t(i)})};return ff.useEffect(()=>o,[]),[e,n]}var OG=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 _G(e,t){return e||e===null?e:t||t===null?t:r=>typeof r=="number"?r.toString():""}var PG=ma.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=OG(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:m}=e,{getPrefixCls:x,direction:C,className:S,style:w,classNames:b,styles:R,getPopupContainer:_}=$o("slider"),O=ma.default.useContext(Hr),N=s??O,{handleRender:k,direction:A}=ma.default.useContext(KF),L=(A||C)==="rtl",[$,D]=$m(),[F,H]=$m(),z=Object.assign({},p),{open:B,placement:U,getPopupContainer:V,prefixCls:M,formatter:G}=z,q=B??u,ee=($||F)&&q!==!1,X=_G(G,c),[Y,ne]=$m(),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,df.default)(n,S,b.root,v?.root,i,{[`${Q}-rtl`]:L,[`${Q}-lock`]:Y},Z,oe);L&&!g.vertical&&(g.reverse=!g.reverse),ma.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,be,Ue;ce&&((ze=(pe=g)[He])===null||ze===void 0||ze.call(pe,$e)),(Ue=(be=je)[He])===null||Ue===void 0||Ue.call(be,$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=ma.default.cloneElement(ae,Oe),Ve=(!!q||ee)&&X!==null;return fe?Se:ma.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=ma.default.cloneElement(ae,{style:Object.assign(Object.assign({},ae.props.style),{visibility:"hidden"})});return ma.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),Ee=Object.assign(Object.assign({},R.tracks),y?.tracks),le=(0,df.default)(b.tracks,v?.tracks);return ie(ma.default.createElement(GF,Object.assign({},g,{classNames:Object.assign({handle:(0,df.default)(b.handle,v?.handle),rail:(0,df.default)(b.rail,v?.rail),track:(0,df.default)(b.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(Ee).length?{tracks:Ee}:{}),step:g.step,range:o,className:me,style:ye,disabled:N,ref:t,prefixCls:Q,handleRender:de,activeHandleRender:he,onChangeComplete:re})))}),QE=PG;function ZE(e){return["small","middle","large"].includes(e)}var I0=E(I()),e3=E(we());var QF=E(we()),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"],TG=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&JE.includes(r)}},NG=(e,t)=>{let r={};return tR.forEach(o=>{r[`${e}-align-${o}`]=t.align===o}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},IG=(e,t)=>{let r={};return eR.forEach(o=>{r[`${e}-justify-${o}`]=t.justify===o}),r};function $G(e,t){return(0,QF.default)(Object.assign(Object.assign(Object.assign({},TG(e,t)),NG(e,t)),IG(e,t)))}var ZF=$G;var DG=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},MG=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},AG=e=>{let{componentCls:t}=e,r={};return JE.forEach(o=>{r[`${t}-wrap-${o}`]={flexWrap:o}}),r},LG=e=>{let{componentCls:t}=e,r={};return tR.forEach(o=>{r[`${t}-align-${o}`]={alignItems:o}}),r},kG=e=>{let{componentCls:t}=e,r={};return eR.forEach(o=>{r[`${t}-justify-${o}`]={justifyContent:o}}),r},FG=()=>({}),JF=_t("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:o}=e,n=tt(e,{flexGapSM:t,flexGap:r,flexGapLG:o});return[DG(n),MG(n),AG(n),LG(n),kG(n)]},FG,{resetStyle:!1});var zG=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},BG=I0.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=zG(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:p,getPrefixCls:h}=I0.default.useContext(ot),v=h("flex",r),[y,g,m]=JF(v),x=c??d?.vertical,C=(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(I0.default.createElement(u,Object.assign({ref:t,className:C,style:S},hr(f,["justify","wrap","align"])),l))}),mf=BG;var yf=E(I());var $0=E(I());var jG={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=jG;var WG=function(t,r){return $0.createElement(mt,J({},t,{ref:r,icon:t3}))},VG=$0.forwardRef(WG),pf=VG;var U0=E(we());var k0=E(we());function D0(){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 es=E(I()),hc=E(I());var c3=E(we());var rR=E(wi());function pa(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 bo=E(I());var Dm=E(we());var fo=E(I()),n3=E(I());var o3=E(I()),ga=o3.createContext(null);var HG=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,C=t.onZoomIn,S=t.onZoomOut,w=t.onRotateRight,b=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,O=t.onReset,N=t.toolbarRender,k=t.zIndex,A=t.image,W=(0,n3.useContext)(ga),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,Dm.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:b,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:C,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(Zl,{open:!0,getContainer:n??document.body},fo.createElement("div",{className:(0,Dm.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,Dm.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,Dm.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:b,onRotateRight:w,onZoomOut:S,onZoomIn:C,onReset:O,onClose:x},transform:d},W?{current:f,total:p}:{}),{},{image:A})):Z)))})},i3=HG;var Mm=E(I()),M0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function oR(e,t,r,o){var n=(0,Mm.useRef)(null),i=(0,Mm.useRef)([]),a=(0,Mm.useState)(M0),s=j(a,2),l=s[0],c=s[1],u=function(h){c(M0),Ji(M0,l)||o?.({transform:M0,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,C=x.width,S=x.height,w=x.offsetWidth,b=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*C*.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=b*N,V=D0(),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 gf=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 Am(e,t,r,o){var n=D0(),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 al=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,gf.useState)(!1),d=j(f,2),p=d[0],h=d[1],v=(0,gf.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,b=S.transformY,R=c!==w&&u!==b;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=Am(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),b=Math.min(w,s3),R=al+b*o;S.deltaY>0&&(R=al/R),a(R,"wheel",S.clientX,S.clientY)}};return(0,gf.useEffect)(function(){var C,S,w,b;if(t){w=pa(window,"mouseup",m,!1),b=pa(window,"mousemove",g,!1);try{window.top!==window.self&&(C=pa(window.top,"mouseup",m,!1),S=pa(window.top,"mousemove",g,!1))}catch(R){Dl(!1,"[rc-image] ".concat(R))}}return function(){var R,_,O,N;(R=w)===null||R===void 0||R.remove(),(_=b)===null||_===void 0||_.remove(),(O=C)===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 pc=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 Lm(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,n=(0,pc.useState)(r?"loading":"normal"),i=j(n,2),a=i[0],s=i[1],l=(0,pc.useRef)(!1),c=a==="error";(0,pc.useEffect)(function(){var p=!0;return l3(t).then(function(h){!h&&p&&s("error")}),function(){p=!1}},[t]),(0,pc.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 hf=E(I());function A0(e,t){var r=e.x-t.x,o=e.y-t.y;return Math.hypot(r,o)}function UG(e,t,r,o){var n=A0(e,r),i=A0(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,hf.useState)(!1),d=j(f,2),p=d[0],h=d[1],v=(0,hf.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,b=w===void 0?[]:w;b.length>1?y({point1:{x:b[0].clientX,y:b[0].clientY},point2:{x:b[1].clientX,y:b[1].clientY},eventType:"touchZoom"}):y({point1:{x:b[0].clientX-c,y:b[0].clientY-u},eventType:"move"})}},m=function(S){var w=S.touches,b=w===void 0?[]:w,R=v.current,_=R.point1,O=R.point2,N=R.eventType;if(b.length>1&&N==="touchZoom"){var k={x:b[0].clientX,y:b[0].clientY},A={x:b[1].clientX,y:b[1].clientY},W=UG(_,O,k,A),L=j(W,2),$=L[0],D=L[1],F=A0(k,A)/A0(_,O);a(F,"touchZoom",$,D,!0),y({point1:k,point2:A,eventType:"touchZoom"})}else N==="move"&&(i({x:b[0].clientX-_.x,y:b[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,b=e.current.getBoundingClientRect(),R=b.left,_=b.top,O=s%180!==0,N=Am(O?w:S,O?S:w,R,_);N&&i(P({},N),"dragRebound")}};return(0,hf.useEffect)(function(){var C;return r&&t&&(C=pa(window,"touchmove",function(S){return S.preventDefault()},{passive:!1})),function(){var S;(S=C)===null||S===void 0||S.remove()}},[r,t]),{isTouching:p,onTouchStart:g,onTouchMove:m,onTouchEnd:x}}var GG=["fallback","src","imgRef"],qG=["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"],KG=function(t){var r=t.fallback,o=t.src,n=t.imgRef,i=Me(t,GG),a=Lm({src:o,fallback:r}),s=j(a,2),l=s[0],c=s[1];return bo.default.createElement("img",J({ref:function(f){n.current=f,l(f)}},i,c))},XG=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,C=t.countRender,S=t.scaleStep,w=S===void 0?.5:S,b=t.minScale,R=b===void 0?1:b,_=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,qG),B=(0,bo.useRef)(),U=(0,bo.useContext)(ga),V=U&&x>1,M=U&&x>=1,G=(0,bo.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,Ee=fe.onTouchEnd,le=ne.rotate,ae=ne.scale,Re=(0,c3.default)(T({},"".concat(r,"-moving"),Z));(0,bo.useEffect)(function(){ee||X(!0)},[ee]);var Ae=function(){re("close")},je=function(){Q(al+w,"zoomIn")},Ie=function(){Q(al/(al+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(al+w,"doubleClick",pt.clientX,pt.clientY))};(0,bo.useEffect)(function(){var Ye=pa(window,"keydown",pe,!1);return function(){Ye.remove()}},[u,V,g]);var be=bo.default.createElement(KG,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:Ee,onTouchCancel:Ee})),Ue=P({url:o,alt:n},i);return bo.default.createElement(bo.default.Fragment,null,bo.default.createElement(MM,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}),bo.default.createElement("div",{className:"".concat(r,"-img-wrapper")},L?L(be,P({transform:ne,image:Ue},U?{current:g}:{})):be)),bo.default.createElement(i3,{visible:u,transform:ne,maskTransitionName:W,closeIcon:h,getContainer:v,prefixCls:r,rootClassName:p,icons:d,countRender:C,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}))},L0=XG;var Ja=E(I()),sR=E(I());var vf=E(I());var km=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function aR(e){var t=vf.useState({}),r=j(t,2),o=r[0],n=r[1],i=vf.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=vf.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(km)).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 YG=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],QG=["src"],ZG=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,C=f.closeIcon,S=f.onChange,w=f.onTransform,b=f.toolbarRender,R=f.imageRender,_=Me(f,YG),O=aR(l),N=j(O,3),k=N[0],A=N[1],W=N[2],L=Ft(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,QG),q=Ft(!!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=Ja.useCallback(function(fe,de,he,ye){var Ee=W?k.findIndex(function(le){return le.data.src===de}):k.findIndex(function(le){return le.id===fe});F(Ee<0?0:Ee),Y(!0),Q({x:he,y:ye}),U(!0)},[k,W]);Ja.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=Ja.useMemo(function(){return{register:A,onPreview:ie}},[A,ie]);return Ja.createElement(ga.Provider,{value:me},i,Ja.createElement(L0,J({"aria-hidden":!X,movable:y,visible:X,prefixCls:n,closeIcon:C,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:b,imageRender:R,onChange:Z},_)))},u3=ZG;var gc=E(I());var f3=0;function lR(e,t){var r=gc.useState(function(){return f3+=1,String(f3)}),o=j(r,1),n=o[0],i=gc.useContext(ga),a={data:t,canPreview:e};return gc.useEffect(function(){if(i)return i.register(n,a)},[]),gc.useEffect(function(){i&&i.register(n,a)},[e,t]),n}var JG=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],eq=["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,C=t.wrapperStyle,S=t.rootClassName,w=Me(t,JG),b=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,eq),q=_??r,ee=Ft(!!N,{value:N,onChange:A}),X=j(ee,2),Y=X[0],ne=X[1],re=Lm({src:r,isCustomPlaceholder:b,fallback:u}),K=j(re,3),Q=K[0],ie=K[1],Z=K[2],oe=(0,hc.useState)(null),me=j(oe,2),fe=me[0],de=me[1],he=(0,hc.useContext)(ga),ye=!!v,Ee=function(){ne(!1),de(null)},le=(0,k0.default)(a,x,S,T({},"".concat(a,"-error"),Z==="error")),ae=(0,hc.useMemo)(function(){var Ie={};return km.forEach(function(Oe){t[Oe]!==void 0&&(Ie[Oe]=t[Oe])}),Ie},km.map(function(Ie){return t[Ie]})),Re=(0,hc.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 es.createElement(es.Fragment,null,es.createElement("div",J({},w,{className:le,onClick:ye?je:g,style:P({width:f,height:d},C)}),es.createElement("img",J({},ae,{className:(0,k0.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"&&es.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),$&&ye&&es.createElement("div",{className:(0,k0.default)("".concat(a,"-mask"),D),style:{display:p?.display==="none"?"none":void 0}},$)),!he&&ye&&es.createElement(L0,J({"aria-hidden":!Y,visible:Y,prefixCls:l,onClose:Ee,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 F0=m3;var Yo=E(I());var z0=E(I());var tq={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=tq;var rq=function(t,r){return z0.createElement(mt,J({},t,{ref:r,icon:p3}))},oq=z0.forwardRef(rq),g3=oq;var B0=E(I());var nq={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=nq;var iq=function(t,r){return B0.createElement(mt,J({},t,{ref:r,icon:h3}))},aq=B0.forwardRef(iq),v3=aq;var j0=E(I());var sq={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=sq;var lq=function(t,r){return j0.createElement(mt,J({},t,{ref:r,icon:y3}))},cq=j0.forwardRef(lq),cR=cq;var W0=E(I());var uq={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=uq;var fq=function(t,r){return W0.createElement(mt,J({},t,{ref:r,icon:x3}))},dq=W0.forwardRef(fq),S3=dq;var V0=E(I());var mq={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"},C3=mq;var pq=function(t,r){return V0.createElement(mt,J({},t,{ref:r,icon:C3}))},gq=V0.forwardRef(pq),b3=gq;var w3=E(we());var uR=e=>({position:e||"absolute",inset:0}),hq=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 it("#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"}}})}},vq=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 it(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}}}}},yq=e=>{let{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:o,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new it(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}}},xq=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()},"&":[vq(e),yq(e)]}]},Sq=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({},hq(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},uR())}}},Cq=e=>{let{previewCls:t}=e;return{[`${t}-root`]:Yl(e,"zoom"),"&":Xl(e,!0)}},bq=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new it(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new it(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new it(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),H0=_t("Image",e=>{let t=`${e.componentCls}-preview`,r=tt(e,{previewCls:t,modalMaskBg:new it("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Sq(r),xq(r),_1(tt(r,{componentCls:t})),Cq(r)]},bq);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},fR={rotateLeft:Yo.createElement(g3,null),rotateRight:Yo.createElement(v3,null),zoomIn:Yo.createElement(S3,null),zoomOut:Yo.createElement(b3,null),close:Yo.createElement(Iu,null),left:Yo.createElement(jk,null),right:Yo.createElement(ND,null),flipX:Yo.createElement(cR,null),flipY:Yo.createElement(cR,{rotate:90})},Eq=e=>{var{previewPrefixCls:t,preview:r}=e,o=wq(e,["previewPrefixCls","preview"]);let{getPrefixCls:n}=Yo.useContext(ot),i=n("image",t),a=`${i}-preview`,s=n(),l=Mo(i),[c,u,f]=H0(i,l),[d]=ra("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:oa(s,"zoom",v.transitionName),maskTransitionName:oa(s,"fade",v.maskTransitionName),rootClassName:y,zIndex:d})},[r]);return c(Yo.createElement(F0.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:fR},o)))},E3=Eq;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]=H0(p,v),x=(0,U0.default)(n,g,m,v),C=(0,U0.default)(o,g,c),[S]=ra("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=yf.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:yf.createElement("div",{className:`${p}-mask-info`},yf.createElement(pf,null),d?.preview),icons:fR},k),{rootClassName:(0,U0.default)(x,N),getContainer:_??l,transitionName:oa(h,"zoom",R.transitionName),maskTransitionName:oa(h,"fade",R.maskTransitionName),zIndex:S,closeIcon:O??f?.closeIcon})},[r,d,f?.closeIcon]),b=Object.assign(Object.assign({},u),i);return y(yf.createElement(F0,Object.assign({prefixCls:p,preview:w,rootClassName:x,className:C,style:b},a)))};O3.PreviewGroup=E3;var dR=O3;var mR=E(I()),Fm=E(I()),_3=E(we());var Rq=e=>{let{getPrefixCls:t,direction:r}=(0,Fm.useContext)(ot),{prefixCls:o,className:n}=e,i=t("input-group",o),a=t("input"),[s,l,c]=m0(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,Fm.useContext)(uo),d=(0,Fm.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=Rq;var lr=E(I()),I3=E(we());var Oq=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,Xa(e));return[Oq(t)]},Ya);var sl=E(I());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},Pq=sl.forwardRef((e,t)=>{let{value:r,onChange:o,onActiveChange:n,index:i,mask:a}=e,s=_q(e,["value","onChange","onActiveChange","index","mask"]),l=r&&typeof a=="string"?a:r,c=h=>{o(i,h.target.value)},u=sl.useRef(null);sl.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 sl.createElement(il,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=Pq;var Tq=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 G0(e){return(e||"").split("")}var Nq=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},Iq=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=Tq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:C}=lr.useContext(ot),S=x("otp",r),w=Do(m,{aria:!0,data:!0,attr:!0}),[b,R,_]=T3(S),O=cn(M=>n??M),N=lr.useContext(uo),k=la(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(()=>G0($(i||"")));lr.useEffect(()=>{a!==void 0&&F(G0(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(G0(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=G0(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 b(lr.createElement("div",Object.assign({},w,{ref:W,className:(0,I3.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:C==="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(Nq,{separator:c,index:G,prefixCls:S}))}))))}),$3=Iq;var Lo=E(I()),K0=E(I());var q0=E(I());var $q={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=$q;var Dq=function(t,r){return q0.createElement(mt,J({},t,{ref:r,icon:D3}))},Mq=q0.forwardRef(Dq),M3=Mq;var A3=E(we());var Aq=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},Lq=e=>e?Lo.createElement(pf,null):Lo.createElement(M3,null),kq={click:"onClick",hover:"onMouseOver"},Fq=Lo.forwardRef((e,t)=>{let{disabled:r,action:o="click",visibilityToggle:n=!0,iconRender:i=Lq}=e,a=Lo.useContext(Hr),s=r??a,l=typeof n=="object"&&n.visible!==void 0,[c,u]=(0,K0.useState)(()=>l?n.visible:!1),f=(0,K0.useRef)(null);Lo.useEffect(()=>{l&&u(n.visible)},[l,n]);let d=Im(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=kq[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=Aq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=Lo.useContext(ot),S=C("input",g),w=C("input-password",y),b=n&&h(w),R=(0,A3.default)(w,v,{[`${w}-${m}`]:!!m}),_=Object.assign(Object.assign({},hr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:b});return m&&(_.size=m),Lo.createElement(il,Object.assign({ref:Ar(t,f)},_))}),L3=Fq;var Fi=E(I());var k3=E(we());var zq=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=Fi.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=zq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:g}=Fi.useContext(ot),m=Fi.useRef(!1),x=y("input-search",r),C=y("input",o),{compactSize:S}=Zn(x,g),w=cn(B=>{var U;return(U=i??S)!==null&&U!==void 0?U:B}),b=Fi.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=b.current)===null||U===void 0?void 0:U.input)&&B.preventDefault()},O=B=>{var U,V;f&&f((V=(U=b.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"?Fi.createElement(Zy,null):null,A=`${x}-button`,W,L=s||{},$=L.type&&L.type.__ANT_BUTTON===!0;$||L.type==="button"?W=Qn(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=Fi.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,Qn(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:C,type:"search"}),H=B=>{m.current=!0,p?.(B)},z=B=>{m.current=!1,h?.(B)};return Fi.createElement(il,Object.assign({ref:Ar(b,t),onPressEnter:N},F,{size:w,onCompositionStart:H,onCompositionEnd:z,addonAfter:W,suffix:a,onChange:R,disabled:u}))}),F3=Bq;var ha=E(I()),V3=E(I()),Bm=E(we());var zm=E(we());var Qr=E(I());var z3=E(we());var wo=E(I());var jq=`
|
|
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;
|
|
`,Wq=["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={},Mn;function Vq(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=Wq.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;Mn||(Mn=document.createElement("textarea"),Mn.setAttribute("tab-index","-1"),Mn.setAttribute("aria-hidden","true"),Mn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Mn)),e.getAttribute("wrap")?Mn.setAttribute("wrap",e.getAttribute("wrap")):Mn.removeAttribute("wrap");var n=Vq(e,t),i=n.paddingSize,a=n.borderSize,s=n.boxSizing,l=n.sizingStyle;Mn.setAttribute("style","".concat(l,";").concat(jq)),Mn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Mn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||o!==null){Mn.value=" ";var p=Mn.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 Hq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hR=0,vR=1,yR=2,Uq=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,Hq),h=Ft(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 C=wo.useMemo(function(){return a&&ue(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=j(C,2),w=S[0],b=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,b,R]),vt(function(){if(k===hR)A(vR);else if(k===vR){var M=gR(x.current,!1,w,b);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=Uq;var Gq=["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"],qq=Qr.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,C=e.hidden,S=e.classNames,w=e.styles,b=e.onResize,R=e.onClear,_=e.onPressEnter,O=e.readOnly,N=e.autoSize,k=e.onKeyDown,A=Me(e,Gq),W=Ft(o,{value:n,defaultValue:o}),L=j(W,2),$=L[0],D=L[1],F=$==null?"":String($),H=Qr.default.useState(!1),z=j(H,2),B=z[0],U=z[1],V=Qr.default.useRef(!1),M=Qr.default.useState(null),G=j(M,2),q=G[0],ee=G[1],X=(0,Qr.useRef)(null),Y=(0,Qr.useRef)(null),ne=function(){var ce;return(ce=Y.current)===null||ce===void 0?void 0:ce.textArea},re=function(){ne().focus()};(0,Qr.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,Qr.useEffect)(function(){U(function($e){return!x&&$e})},[x]);var K=Qr.default.useState(null),Q=j(K,2),ie=Q[0],Z=Q[1];Qr.default.useEffect(function(){if(ie){var $e;($e=ne()).setSelectionRange.apply($e,se(ie))}},[ie]);var oe=Nm(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),sf(ce.currentTarget,ce,s,ze)},Ee=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(),sf(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=Qr.default.createElement(Qr.default.Fragment,null,Oe,Qr.default.createElement("span",{className:(0,zm.default)("".concat(h,"-data-count"),S?.count),style:w?.count},Se)));var Ve=function(ce){var pe;b?.(ce),(pe=ne())!==null&&pe!==void 0&&pe.style.height&&ee(!0)},He=!N&&!v&&!l;return Qr.default.createElement(uc,{ref:X,value:F,allowClear:l,handleReset:Ie,suffix:Oe,prefixCls:h,classNames:P(P({},S),{},{affixWrapper:(0,zm.default)(S?.affixWrapper,T(T({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:B,className:(0,zm.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:C,readOnly:O,onClear:R},Qr.default.createElement(xR,J({},A,{autoSize:N,maxLength:c,onKeyDown:Re,onChange:ae,onFocus:Ae,onBlur:je,onCompositionStart:Ee,onCompositionEnd:le,className:(0,zm.default)(S?.textarea),style:P(P({},w?.textarea),{},{resize:m?.resize}),disabled:x,prefixCls:h,onResize:Ve,ref:Y,readOnly:O})))}),B3=qq;var j3=B3;var Kq=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,Xa(e));return[Kq(t)]},Ya,{resetFont:!1});var Xq=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},Yq=(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=Xq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:g,allowClear:m,autoComplete:x,className:C,style:S,classNames:w,styles:b}=$o("textArea"),R=ha.useContext(Hr),_=a??R,{status:O,hasFeedback:N,feedbackIcon:k}=ha.useContext(uo),A=la(O,s),W=ha.useRef(null);ha.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=W.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:X=>{var Y,ne;cc((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]=d0(L,u),[z]=W3(L,$),{compactSize:B,compactItemClassnames:U}=Zn(L,g),V=cn(ee=>{var X;return(X=i??B)!==null&&X!==void 0?X:ee}),[M,G]=nl("textArea",h,n),q=E0(l??m);return D(z(ha.createElement(j3,Object.assign({autoComplete:x},v,{style:Object.assign(Object.assign({},S),d),styles:Object.assign(Object.assign({},b),p),disabled:_,allowClear:q,className:(0,Bm.default)(H,$,f,u,U,C),classNames:Object.assign(Object.assign(Object.assign({},c),w),{textarea:(0,Bm.default)({[`${L}-sm`]:V==="small",[`${L}-lg`]:V==="large"},F,c?.textarea,w.textarea),variant:(0,Bm.default)({[`${L}-${M}`]:G},sa(L,A)),affixWrapper:(0,Bm.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&&ha.createElement("span",{className:`${L}-textarea-suffix`},k),ref:W}))))}),H3=Yq;var xf=il;xf.Group=P3;xf.Search=F3;xf.TextArea=H3;xf.Password=L3;xf.OTP=$3;var jm=xf;var Zr=E(I());var RR=E(we());var bf=E(I()),e4=E(we());var Qq=E(I()),Zq=E(we());var Wm=E(I()),SR={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},CR=function(){var t=(0,Wm.useRef)([]),r=(0,Wm.useRef)(null);return(0,Wm.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 Vm=E(I()),Q3=E(we());var X0=E(I());var U3=0,Jq=Xt();function eK(){var e;return Jq?(e=U3,U3+=1):e="TEST_OR_SSR",e}var G3=function(e){var t=X0.useState(),r=j(t,2),o=r[0],n=r[1];return X0.useEffect(function(){n("rc_progress_".concat(eK()))},[]),e||o};var ci=E(I()),q3=function(t){var r=t.bg,o=t.children;return ci.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 tK=ci.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=ci.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),C="conic-gradient(from ".concat(g,", ").concat(m.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return ci.createElement(ci.Fragment,null,ci.createElement("mask",{id:y},v),ci.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},ci.createElement(q3,{bg:S},ci.createElement(q3,{bg:C}))))}),X3=tK;var Sf=100,Y0=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=Sf/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 rK=["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 oK=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,rK),m=Sf/2,x=G3(o),C="".concat(x,"-gradient"),S=m-a/2,w=Math.PI*2*S,b=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=Y0(w,R,0,100,b,c,u,f,$,a),F=CR(),H=function(){var U=0;return k.map(function(V,M){var G=A[M]||A[A.length-1],q=Y0(w,R,U,V,b,c,u,G,$,a);return U+=V,Vm.createElement(X3,{key:M,color:G,ptg:V,radius:S,prefixCls:n,gradientId:C,style:q,strokeLinecap:$,strokeWidth:a,gapDegree:c,ref:function(X){F[M]=X},size:Sf})}).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(C,")"):void 0,Y=Y0(w,R,M,V,b,c,u,ee,"butt",a,N);return M+=(R-Y.strokeDashoffset+N)*100/R,Vm.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 Vm.createElement("svg",J({className:(0,Q3.default)("".concat(n,"-circle"),h),viewBox:"0 0 ".concat(Sf," ").concat(Sf),style:p,id:o,role:"presentation"},g),!O&&Vm.createElement("circle",{className:"".concat(n,"-circle-trail"),r:S,cx:m,cy:m,stroke:f,strokeLinecap:$,strokeWidth:s||a,style:D}),O?z():H())},bR=oK;function va(e){return!e||e<0?0:e>100?100:e}function Cf(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=va(Cf({success:r,successPercent:o}));return[n,va(va(t)-n)]},J3=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||La.green,r||null]},ll=(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 nK=3,iK=e=>nK/e*100,aK=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]=ll(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(iK(d),6));let v={width:d,height:p,fontSize:d*.15+6},y=bf.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]",C=J3({success:c,strokeColor:e.strokeColor}),S=(0,e4.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=bf.createElement(bR,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?C[1]:C,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:m}),b=d<=20,R=bf.createElement("div",{className:S,style:v},w,!b&&l);return b?bf.createElement(Ka,{title:l},R):R},t4=aK;var wf=E(I());var n4=E(we());var Hm="--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}})},sK=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(${Hm})`]},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}}})}},lK=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"}}}},cK=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}}}}}},uK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},fK=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[sK(r),lK(r),cK(r),uK(r)]},fK);var dK=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},mK=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(", ")},pK=(e,t)=>{let{from:r=La.blue,to:o=La.blue,direction:n=t==="rtl"?"to left":"to right"}=e,i=dK(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=mK(i),l=`linear-gradient(${n}, ${s})`;return{background:l,[Hm]:l}}let a=`linear-gradient(${n}, ${r}, ${o})`;return{background:a,[Hm]:a}},gK=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"?pK(a,r):{[Hm]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=n??[-1,i||(n==="small"?6:8)],[g,m]=ll(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},C=Object.assign(Object.assign({width:`${va(o)}%`,height:m,borderRadius:v},h),{[wR]:va(o)/100}),S=Cf(e),w={width:`${va(S)}%`,height:m,borderRadius:v,backgroundColor:f?.strokeColor},b={width:g<0?"100%":g},R=wf.createElement("div",{className:`${t}-inner`,style:x},wf.createElement("div",{className:(0,n4.default)(`${t}-bg`,`${t}-bg-${p}`),style:C},p==="inner"&&l),S!==void 0&&wf.createElement("div",{className:`${t}-success-bg`,style:w})),_=p==="outer"&&d==="start",O=p==="outer"&&d==="end";return p==="outer"&&d==="center"?wf.createElement("div",{className:`${t}-layout-bottom`},R,l):wf.createElement("div",{className:`${t}-outer`,style:b},_&&l,R,O&&l)},i4=gK;var ER=E(I()),a4=E(we());var hK=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]=ll(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=hK;var vK=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 yK=["normal","exception","active","success"],xK=Zr.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=vK(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,C=Zr.useMemo(()=>{if(m){let H=typeof m=="string"?m:Object.values(m)[0];return new it(H).isLight()}return!1},[a]),S=Zr.useMemo(()=>{var H,z;let B=Cf(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=Zr.useMemo(()=>!yK.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:b,direction:R,progress:_}=Zr.useContext(ot),O=b("progress",r),[N,k,A]=o4(O),W=u==="line",L=W&&!i,$=Zr.useMemo(()=>{if(!c)return null;let H=Cf(e),z,B=d||(V=>`${V}%`),U=W&&C&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?z=B(va(s),va(H)):w==="exception"?z=W?Zr.createElement(Nu,null):Zr.createElement(Iu,null):w==="success"&&(z=W?Zr.createElement(W$,null):Zr.createElement(Ky,null)),Zr.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?Zr.createElement(s4,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),$):Zr.createElement(i4,Object.assign({},e,{strokeColor:m,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),$):(u==="circle"||u==="dashboard")&&(D=Zr.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"&&ll(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(Zr.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},hr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}),l4=xK;var c4=l4;var Q0=E(I());var SK={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=SK;var CK=function(t,r){return Q0.createElement(mt,J({},t,{ref:r,icon:u4}))},bK=Q0.forwardRef(CK),f4=bK;var Z0=E(I());var wK={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=wK;var EK=function(t,r){return Z0.createElement(mt,J({},t,{ref:r,icon:d4}))},RK=Z0.forwardRef(EK),m4=RK;var J0=E(I());var OK={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=OK;var _K=function(t,r){return J0.createElement(mt,J({},t,{ref:r,icon:p4}))},PK=J0.forwardRef(_K),g4=PK;var ex=E(I());var TK={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=TK;var NK=function(t,r){return ex.createElement(mt,J({},t,{ref:r,icon:h4}))},IK=ex.forwardRef(NK),v4=IK;var tx=E(I());var $K={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=$K;var DK=function(t,r){return tx.createElement(mt,J({},t,{ref:r,icon:y4}))},MK=tx.forwardRef(DK),x4=MK;var rx=E(I());var AK={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=AK;var LK=function(t,r){return rx.createElement(mt,J({},t,{ref:r,icon:S4}))},kK=rx.forwardRef(LK),OR=kK;var lx=E(I());var vr=E(I()),IR=E(wi()),ax=E(we());var nx=E(I());var w4=E(we());var Gm=E(I());var ox=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 FK(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 C4(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(FK(e,t),C4(t)):e.onSuccess(C4(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 zK=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(C){o(C)?(y.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),x(C)):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,C,S;return At().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:g=y.createReader(),m=[];case 2:return b.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(x=b.sent,C=x.length,C){b.next=9;break}return b.abrupt("break",12);case 9:for(S=0;S<C;S++)m.push(x[S]);b.next=2;break;case 12:return b.abrupt("return",m);case 13:case"end":return b.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)}}(),b4=zK;var BK=+new Date,jK=0;function Um(){return"rc-upload-".concat(BK,"-").concat(++jK)}var WK=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],VK=function(e){Pr(r,e);var t=Tr(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:Um()}),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||ox(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,b4(Array.prototype.slice.call(c.dataTransfer.items),function(v){return ox(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 ox(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=Um(),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 b=i.props.onSuccess;b?.(S,c,w),delete i.reqs[g]},onError:function(S,w){var b=i.props.onError;b?.(S,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=m(x)}}},{key:"reset",value:function(){this.setState({uid:Um()})}},{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,C=n.directory,S=n.openFileDialogOnClick,w=n.onMouseEnter,b=n.onMouseLeave,R=n.hasControlInside,_=Me(n,WK),O=(0,w4.default)(T(T(T({},a,!0),"".concat(a,"-disabled"),u),s,s)),N=C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:R?void 0:"0"};return Gm.default.createElement(i,J({},k,{className:O,role:R?void 0:"button",style:p}),Gm.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}(Gm.Component),E4=VK;function PR(){}var R4=function(e){Pr(r,e);var t=Tr(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 nx.default.createElement(E4,J({},this.props,{ref:this.saveUploader}))}}]),r}(nx.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 HK=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=HK;var UK=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({},Pu()),{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=UK;var GK=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`]:Xl(e)},r,o]},T4=GK;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='${js[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${js.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({},Pu()),{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 qK=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},$4=qK;var KK=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"}})}},XK=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[KK(a),_4(a),N4(a),I4(a),P4(a),T4(a),$4(a),Zw(a)]},XK);var qt=E(I());var NR=E(we());function qm(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 Km(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 ix(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 YK=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=YK(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)},cl=200;function k4(e){return new Promise(t=>{if(!e.type||!A4(e.type)){t("");return}let r=document.createElement("canvas");r.width=cl,r.height=cl,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${cl}px; height: ${cl}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=cl,l=cl,c=0,u=0;i>a?(l=a*(cl/i),u=-(l-s)/2):(s=i*(cl/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 zt=E(I());var ul=E(we());var QK=zt.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:C,onPreview:S,onDownload:w,onClose:b}=e;var R,_;let{status:O}=s,[N,k]=zt.useState(O);zt.useEffect(()=>{O!=="removed"&&k(O)},[O]);let[A,W]=zt.useState(!1);zt.useEffect(()=>{let Q=setTimeout(()=>{W(!0)},300);return()=>{clearTimeout(Q)}},[]);let L=u(s),$=zt.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,ul.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:N!=="uploading"});$=zt.createElement("div",{className:Q},L)}else{let Q=p?.(s)?zt.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):L,ie=(0,ul.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});$=zt.createElement("a",{className:ie,onClick:Z=>S(s,Z),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}let D=(0,ul.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)||zt.createElement(f4,null),()=>b(s),r,i.removeFile,!0):null,z=(typeof y=="function"?y(s):y)&&N==="done"?f((typeof x=="function"?x(s):x)||zt.createElement(m4,null),()=>w(s),r,i.downloadFile):null,B=a!=="picture-card"&&a!=="picture-circle"&&zt.createElement("span",{key:"download-delete",className:(0,ul.default)(`${r}-list-item-actions`,{picture:a==="picture"})},z,H),U=typeof C=="function"?C(s):C,V=U&&zt.createElement("span",{className:`${r}-list-item-extra`},U),M=(0,ul.default)(`${r}-list-item-name`),G=s.url?zt.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):zt.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)?zt.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||zt.createElement(pf,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&zt.createElement("span",{className:`${r}-list-item-actions`},q,N==="done"&&z,H),{getPrefixCls:X}=zt.useContext(ot),Y=X(),ne=zt.createElement("div",{className:D},$,G,B,ee,A&&zt.createElement(ao,{motionName:`${Y}-fade`,visible:N==="uploading",motionDeadline:2e3},Q=>{let{className:ie}=Q,Z="percent"in s?zt.createElement(c4,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return zt.createElement("div",{className:(0,ul.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"?zt.createElement(Ka,{title:re,getPopupContainer:Q=>Q.parentNode},ne):ne;return zt.createElement("div",{className:(0,ul.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:b.bind(null,s)}):K)}),F4=QK;var ZK=(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:C,appendActionVisible:S=!0,itemRender:w,disabled:b}=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(ql,null):s.uploading,q=c?.(V)?qt.createElement(x4,null):qt.createElement(g4,null);return M?G:q}return M?qt.createElement(ql,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=b),qt.isValidElement(V)?qt.createElement(sm,Object.assign({},X,{icon:Qn(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(ot),F=D("upload",u),H=D(),z=(0,NR.default)(`${F}-list`,`${F}-list-${r}`),B=qt.useMemo(()=>hr(oD(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(Iw,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})}),C&&qt.createElement(ao,Object.assign({},U,{visible:S,forceRender:!0}),V=>{let{className:M,style:G}=V;return Qn(C,q=>({className:(0,NR.default)(q.className,M),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:M?"none":void 0}),q.style)}))}))},JK=qt.forwardRef(ZK),z4=JK;var eX=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())})},Ef=`__LIST_IGNORE_${Date.now()}__`,tX=(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:C,style:S,itemRender:w,maxCount:b,data:R={},multiple:_=!1,hasControlInside:O=!0,action:N="",accept:k="",supportServerRender:A=!0,rootClassName:W}=e,L=vr.useContext(Hr),$=d??L,[D,F]=Ft(o||[],{value:r,postState:ce=>ce??[]}),[H,z]=vr.useState("drop"),B=vr.useRef(null),U=vr.useRef(null);vr.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 be=se(pe),Ue=!1;b===1?be=be.slice(-1):b&&(Ue=be.length>b,be=be.slice(0,b)),(0,IR.flushSync)(()=>{F(be)});let Ye={file:ce,fileList:be};ze&&(Ye.event=ze),(!Ue||ce.status==="removed"||be.some(pt=>pt.uid===ce.uid))&&(0,IR.flushSync)(()=>{c?.(Ye)})},M=(ce,pe)=>eX(void 0,void 0,void 0,function*(){let{beforeUpload:ze,transformFile:be}=e,Ue=ce;if(ze){let Ye=yield ze(ce,pe);if(Ye===!1)return!1;if(delete ce[Ef],Ye===Ef)return Object.defineProperty(ce,Ef,{value:!0,configurable:!0}),!1;typeof Ye=="object"&&Ye&&(Ue=Ye)}return be&&(Ue=yield be(Ue)),Ue}),G=ce=>{let pe=ce.filter(Ue=>!Ue.file[Ef]);if(!pe.length)return;let ze=pe.map(Ue=>qm(Ue.file)),be=se(D);ze.forEach(Ue=>{be=Km(Ue,be)}),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,be)})},q=(ce,pe,ze)=>{try{typeof ce=="string"&&(ce=JSON.parse(ce))}catch{}if(!ix(pe,D))return;let be=qm(pe);be.status="done",be.percent=100,be.response=ce,be.xhr=ze;let Ue=Km(be,D);V(be,Ue)},ee=(ce,pe)=>{if(!ix(pe,D))return;let ze=qm(pe);ze.status="uploading",ze.percent=ce.percent;let be=Km(ze,D);V(ze,be,ce)},X=(ce,pe,ze)=>{if(!ix(ze,D))return;let be=qm(ze);be.error=ce,be.response=pe,be.status="error";let Ue=Km(be,D);V(be,Ue)},Y=ce=>{let pe;Promise.resolve(typeof n=="function"?n(ce):n).then(ze=>{var be;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")}),(be=B.current)===null||be===void 0||be.abort(pe),V(pe,Ue))})},ne=ce=>{z(ce.type),ce.type==="drop"&&u?.(ce)};vr.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}=vr.useContext(ot),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,(!C||$)&&delete Z.id;let oe=`${ie}-wrapper`,[me,fe,de]=D4(ie,oe),[he]=Ti("Upload",Pi.Upload),{showRemoveIcon:ye,showPreviewIcon:Ee,showDownloadIcon:le,removeIcon:ae,previewIcon:Re,downloadIcon:Ae,extra:je}=typeof i=="boolean"?{}:i,Ie=typeof ye>"u"?!$:ye,Oe=(ce,pe)=>i?vr.createElement(z4,{prefixCls:ie,listType:a,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:Y,showRemoveIcon:Ie,showPreviewIcon:Ee,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,ax.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,ax.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(vr.createElement("span",{className:Se,ref:U},vr.createElement("div",{className:ce,style:Ve,onDrop:ne,onDragOver:ne,onDragLeave:ne},vr.createElement(TR,Object.assign({},Z,{ref:B,className:`${ie}-btn`}),vr.createElement("div",{className:`${ie}-drag-container`},C))),Oe()))}let He=(0,ax.default)(ie,`${ie}-select`,{[`${ie}-disabled`]:$,[`${ie}-hidden`]:!C}),$e=vr.createElement("div",{className:He},vr.createElement(TR,Object.assign({},Z,{ref:B})));return me(a==="picture-card"||a==="picture-circle"?vr.createElement("span",{className:Se,ref:U},Oe($e,!!C)):vr.createElement("span",{className:Se,ref:U},$e,Oe()))},rX=vr.forwardRef(tX),sx=rX;var oX=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},nX=lx.forwardRef((e,t)=>{var{style:r,height:o,hasControlInside:n=!1}=e,i=oX(e,["style","height","hasControlInside"]);return lx.createElement(sx,Object.assign({ref:t,hasControlInside:n},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}),B4=nX;var $R=sx;$R.Dragger=B4;$R.LIST_IGNORE=Ef;var DR=$R;var j4=E(I(),1);function fl(e){return(0,j4.useMemo)(()=>su(e),[e])}var Rf=E(Wt(),1),W4=({inputMin:e,inputMax:t,inputStep:r,value:o=0,uiWeight:n=1,onValueChange:i})=>{let a=fl(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,Rf.jsxs)(mf,{style:{width:"100%",...a},children:[(0,Rf.jsx)(QE,{style:{flex:1},min:e,max:t,step:r,value:l,onChange:s}),(0,Rf.jsx)(w0,{style:{width:80},min:e,max:t,step:r,value:l,onChange:s,controls:!1})]}):(0,Rf.jsx)(w0,{style:{width:"100%",...a},min:e,max:t,step:r,value:l,onChange:s,controls:!1})};var H4=E(Wt(),1),V4=({onSelectUpdate:e,options:t,value:r,uiWeight:o})=>{let n=a=>{let s=t.indexOf(a);e(a,s)},i=fl(o||12);return(0,H4.jsx)(bE,{value:r,options:t.map(a=>({value:a})),style:{...i},onSelect:n,placeholder:ve("select..."),filterOption:(a,s)=>s.value.toUpperCase().indexOf(a.toUpperCase())!==-1})};var G4=E(Wt(),1),U4=({value:e,name:t,onValueChange:r,uiWeight:o})=>{let n=a=>{r(a.target.checked)},i=fl(o||12);return(0,G4.jsx)(AE,{checked:!!e,onChange:n,style:{...i},children:t||""})};var MR=E(Wt(),1),{TextArea:iX}=jm,q4=({value:e="",onValueChange:t,uiWeight:r})=>{let o=fl(r||12);return(0,MR.jsx)("div",{className:"widget-container",style:o,children:(0,MR.jsx)(iX,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var AR=E(I(),1);var cx=E(Wt(),1);function K4({title:e,onTitleChange:t}){let[r,o]=(0,AR.useState)(!1),[n,i]=(0,AR.useState)(e),a=()=>{o(!0)};return r?(0,cx.jsx)(jm,{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,cx.jsx)(Ka,{title:ve("click to edit"),children:(0,cx.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:n})})}var ts=E(Wt(),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,ts.jsxs)(mf,{gap:5,align:"stretch",vertical:!0,children:[(0,ts.jsxs)(mf,{gap:5,children:[(0,ts.jsx)(qa,{style:{flex:1},value:e,onChange:n=>{t?.(n)},options:r.map(n=>({label:n.split("/").pop(),value:n}))}),(0,ts.jsx)(DR,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:n=>({image:n}),children:(0,ts.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,ts.jsx)(OR,{})," ",ve("upload")]})})]}),e&&(0,ts.jsx)(dR,{src:`./api/view?filename=${e}&type=input&subfolder=&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain"}})]})};var ya=E(Wt(),1),Y4=window.comfyAPI.api.api,ux=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:zn(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:zn(app.graph)}))};requestAnimationFrame(n);let i=zn(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(c=>c.id==o);if(!s)return;s.widgets[n].value=i,s.widgets[n].callback(i),(app.workflowManager||app.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()},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,ya.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,ya.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,ya.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,ya.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,ya.jsx)("p",{children:ve("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return o.result.push((0,ya.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,ya.jsx)(K4,{title:o,onTitleChange:i=>{Bn.instance.setNodeTitle({node_id:n.id,title:i})}})},r=12;return(0,ya.jsx)(ja,{theme:{components:{Input:{fontSize:r},Select:{fontSize:r},Checkbox:{fontSize:r},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r},InputNumber:{fontSize:r}}},children:(0,ya.jsx)(mb,{...t})})}};var An=E(Wt(),1),J4=document.createElement("style");J4.innerHTML=vN;document.head.appendChild(J4);function LR(){let[e,t]=(0,Z4.useState)("1");return(0,An.jsx)(ja,{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,An.jsxs)("div",{className:"sdppp-menu-container",children:[(0,An.jsxs)("div",{className:"sdppp-menu-header",children:[(0,An.jsx)("button",{onClick:()=>t("1"),className:e==="1"?"active":"",children:ve("Simplify Workflow")}),(0,An.jsx)("button",{onClick:()=>t("2"),className:e==="2"?"active":"",children:ve("Photoshop")}),(0,An.jsx)("span",{children:"Powered by SDPPP"})]}),(0,An.jsxs)("div",{className:"sdppp-menu-content",children:[(0,An.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:e==="1"?"block":"none"},children:(0,An.jsx)(ux,{})}),(0,An.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:e==="2"?"block":"none"},children:(0,An.jsx)(bN,{})})]})]})})}var fx=null;async function kR(e){fx||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 c=t("div"),u=t("button.sdppp-close-button",{type:"button",textContent:"X",onclick:()=>this.close()}),f=t("div.comfy-modal-content",[c,u]);f.style.width="100%",f.style.height="100%",this.element=t("div.comfy-modal",{parent:document.body},[f]),(0,ez.createRoot)(c).render((0,tz.createElement)(LR))}}let a=document.createElement("span");a.style.fontSize="0.6em",a.style.margin="-5px 0",a.innerHTML="SD<br/>PPP";let s=new o(new n({action:()=>{fx||(fx=new i),fx.show()},tooltip:"SD-PPP Workflow UI",content:a,classList:"comfyui-button comfyui-menu-mobile-collapse"}).element);e.menu?.settingsGroup.element.before(s.element),requestAnimationFrame(()=>{a.parentElement&&(a.parentElement.style.lineHeight="0.4em")})})}async function aX(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);Ct.setProgress(u)}),t.addEventListener("status",c=>{c.detail?.exec_info&&Ct.setQueueSize(c.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:c})=>{Ct.setLastError(c.exception_message,c.node_id),Ct.setExecutingNodeTitle("")});let o=[];t.addEventListener("execution_start",({detail:c})=>{if(Ct.setLastError("",0),Ct.setProgress(0),Ct.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&&Ct.setExecutingNodeTitle(f.title)}),t.addEventListener("execution_success",()=>{Ct.setProgress(0),Ct.setExecutingNodeTitle("")}),t.addEventListener("execution_interrupted",()=>{Ct.setProgress(0),Ct.setExecutingNodeTitle("")}),t.addEventListener("graphChanged",()=>{Ct.setCurrentForm(zn(e.graph))});let n=new Map;t.addEventListener("executed",c=>{if(c.detail.output){let u=null;if(Pc.get(c.detail.prompt_id)?(u=Pc.get(c.detail.prompt_id),Pc.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=zn(e.graph);Ct.setCurrentForm(f);let d=JSON.stringify(f);setInterval(()=>{let p=zn(e.graph);JSON.stringify(p)!==d&&Ct.setCurrentForm(p)},800)}requestAnimationFrame(a),kR(e);var s=new Bn;s.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){Ct.setCurrentForm(zn(e.graph))},async beforeRegisterNodeDef(c,u,f){try{kO(c,u)}catch(d){Xm.push(d.stack||d.message||d)}}})}var Xm=[];(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 qR(),await aX(e,r,t),import("./sdppp-custom.js").then(o=>{o.default(as)})}catch(e){Xm.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Xm.length&&(console.error(Xm[0]),alert(`sd-ppp init failed:
|
|
`+Xm.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 *)
|
|
*/
|