var Ak=Object.defineProperty;var zk=(e,t,n)=>t in e?Ak(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qa=(e,t,n)=>zk(e,typeof t!="symbol"?t+"":t,n);function ZI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jb={exports:{}},dd={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var OE;function Lk(){if(OE)return dd;OE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var s=null;if(o!==void 0&&(s=""+o),a.key!==void 0&&(s=""+a.key),"key"in a){o={};for(var u in a)u!=="key"&&(o[u]=a[u])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:o}}return dd.Fragment=t,dd.jsx=n,dd.jsxs=n,dd}var IE;function Hk(){return IE||(IE=1,jb.exports=Lk()),jb.exports}var S=Hk(),Tb={exports:{}},In={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var RE;function Bk(){if(RE)return In;RE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function y(A,K,q){this.props=A,this.context=K,this.refs=C,this.updater=q||b}y.prototype.isReactComponent={},y.prototype.setState=function(A,K){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,K,"setState")},y.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function w(){}w.prototype=y.prototype;function $(A,K,q){this.props=A,this.context=K,this.refs=C,this.updater=q||b}var E=$.prototype=new w;E.constructor=$,x(E,y.prototype),E.isPureReactComponent=!0;var I=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function T(A,K,q,Y,W,Q){return q=Q.ref,{$$typeof:e,type:A,key:K,ref:q!==void 0?q:null,props:Q}}function P(A,K){return T(A.type,K,void 0,void 0,void 0,A.props)}function N(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function k(A){var K={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(q){return K[q]})}var z=/\/+/g;function V(A,K){return typeof A=="object"&&A!==null&&A.key!=null?k(""+A.key):K.toString(36)}function B(){}function L(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(B,B):(A.status="pending",A.then(function(K){A.status==="pending"&&(A.status="fulfilled",A.value=K)},function(K){A.status==="pending"&&(A.status="rejected",A.reason=K)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function H(A,K,q,Y,W){var Q=typeof A;(Q==="undefined"||Q==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(Q){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case e:case t:Z=!0;break;case h:return Z=A._init,H(Z(A._payload),K,q,Y,W)}}if(Z)return W=W(A),Z=Y===""?"."+V(A,0):Y,I(W)?(q="",Z!=null&&(q=Z.replace(z,"$&/")+"/"),H(W,K,q,"",function(se){return se})):W!=null&&(N(W)&&(W=P(W,q+(W.key==null||A&&A.key===W.key?"":(""+W.key).replace(z,"$&/")+"/")+Z)),K.push(W)),1;Z=0;var ae=Y===""?".":Y+":";if(I(A))for(var J=0;J<A.length;J++)Y=A[J],Q=ae+V(Y,J),Z+=H(Y,K,q,Q,W);else if(J=v(A),typeof J=="function")for(A=J.call(A),J=0;!(Y=A.next()).done;)Y=Y.value,Q=ae+V(Y,J++),Z+=H(Y,K,q,Q,W);else if(Q==="object"){if(typeof A.then=="function")return H(L(A),K,q,Y,W);throw K=String(A),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Z}function j(A,K,q){if(A==null)return A;var Y=[],W=0;return H(A,Y,"","",function(Q){return K.call(q,Q,W++)}),Y}function D(A){if(A._status===-1){var K=A._result;K=K(),K.then(function(q){(A._status===0||A._status===-1)&&(A._status=1,A._result=q)},function(q){(A._status===0||A._status===-1)&&(A._status=2,A._result=q)}),A._status===-1&&(A._status=0,A._result=K)}if(A._status===1)return A._result.default;throw A._result}var F=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function U(){}return In.Children={map:j,forEach:function(A,K,q){j(A,function(){K.apply(this,arguments)},q)},count:function(A){var K=0;return j(A,function(){K++}),K},toArray:function(A){return j(A,function(K){return K})||[]},only:function(A){if(!N(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},In.Component=y,In.Fragment=n,In.Profiler=a,In.PureComponent=$,In.StrictMode=r,In.Suspense=f,In.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,In.__COMPILER_RUNTIME={__proto__:null,c:function(A){return O.H.useMemoCache(A)}},In.cache=function(A){return function(){return A.apply(null,arguments)}},In.cloneElement=function(A,K,q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Y=x({},A.props),W=A.key,Q=void 0;if(K!=null)for(Z in K.ref!==void 0&&(Q=void 0),K.key!==void 0&&(W=""+K.key),K)!R.call(K,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&K.ref===void 0||(Y[Z]=K[Z]);var Z=arguments.length-2;if(Z===1)Y.children=q;else if(1<Z){for(var ae=Array(Z),J=0;J<Z;J++)ae[J]=arguments[J+2];Y.children=ae}return T(A.type,W,void 0,void 0,Q,Y)},In.createContext=function(A){return A={$$typeof:s,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},In.createElement=function(A,K,q){var Y,W={},Q=null;if(K!=null)for(Y in K.key!==void 0&&(Q=""+K.key),K)R.call(K,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(W[Y]=K[Y]);var Z=arguments.length-2;if(Z===1)W.children=q;else if(1<Z){for(var ae=Array(Z),J=0;J<Z;J++)ae[J]=arguments[J+2];W.children=ae}if(A&&A.defaultProps)for(Y in Z=A.defaultProps,Z)W[Y]===void 0&&(W[Y]=Z[Y]);return T(A,Q,void 0,void 0,null,W)},In.createRef=function(){return{current:null}},In.forwardRef=function(A){return{$$typeof:u,render:A}},In.isValidElement=N,In.lazy=function(A){return{$$typeof:h,_payload:{_status:-1,_result:A},_init:D}},In.memo=function(A,K){return{$$typeof:d,type:A,compare:K===void 0?null:K}},In.startTransition=function(A){var K=O.T,q={};O.T=q;try{var Y=A(),W=O.S;W!==null&&W(q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(U,F)}catch(Q){F(Q)}finally{O.T=K}},In.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},In.use=function(A){return O.H.use(A)},In.useActionState=function(A,K,q){return O.H.useActionState(A,K,q)},In.useCallback=function(A,K){return O.H.useCallback(A,K)},In.useContext=function(A){return O.H.useContext(A)},In.useDebugValue=function(){},In.useDeferredValue=function(A,K){return O.H.useDeferredValue(A,K)},In.useEffect=function(A,K,q){var Y=O.H;if(typeof q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(A,K)},In.useId=function(){return O.H.useId()},In.useImperativeHandle=function(A,K,q){return O.H.useImperativeHandle(A,K,q)},In.useInsertionEffect=function(A,K){return O.H.useInsertionEffect(A,K)},In.useLayoutEffect=function(A,K){return O.H.useLayoutEffect(A,K)},In.useMemo=function(A,K){return O.H.useMemo(A,K)},In.useOptimistic=function(A,K){return O.H.useOptimistic(A,K)},In.useReducer=function(A,K,q){return O.H.useReducer(A,K,q)},In.useRef=function(A){return O.H.useRef(A)},In.useState=function(A){return O.H.useState(A)},In.useSyncExternalStore=function(A,K,q){return O.H.useSyncExternalStore(A,K,q)},In.useTransition=function(){return O.H.useTransition()},In.version="19.1.0",In}var NE;function qx(){return NE||(NE=1,Tb.exports=Bk()),Tb.exports}var l=qx();const Se=Fi(l),Og=ZI({__proto__:null,default:Se},[l]);var Db={exports:{}},fd={},Pb={exports:{}},kb={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ME;function Fk(){return ME||(ME=1,(function(e){function t(j,D){var F=j.length;j.push(D);e:for(;0<F;){var U=F-1>>>1,A=j[U];if(0<a(A,D))j[U]=D,j[F]=A,F=U;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var D=j[0],F=j.pop();if(F!==D){j[0]=F;e:for(var U=0,A=j.length,K=A>>>1;U<K;){var q=2*(U+1)-1,Y=j[q],W=q+1,Q=j[W];if(0>a(Y,F))W<A&&0>a(Q,Y)?(j[U]=Q,j[W]=F,U=W):(j[U]=Y,j[q]=F,U=q);else if(W<A&&0>a(Q,F))j[U]=Q,j[W]=F,U=W;else break e}}return D}function a(j,D){var F=j.sortIndex-D.sortIndex;return F!==0?F:j.id-D.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],d=[],h=1,g=null,v=3,b=!1,x=!1,C=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function I(j){for(var D=n(d);D!==null;){if(D.callback===null)r(d);else if(D.startTime<=j)r(d),D.sortIndex=D.expirationTime,t(f,D);else break;D=n(d)}}function O(j){if(C=!1,I(j),!x)if(n(f)!==null)x=!0,R||(R=!0,V());else{var D=n(d);D!==null&&H(O,D.startTime-j)}}var R=!1,T=-1,P=5,N=-1;function k(){return y?!0:!(e.unstable_now()-N<P)}function z(){if(y=!1,R){var j=e.unstable_now();N=j;var D=!0;try{e:{x=!1,C&&(C=!1,$(T),T=-1),b=!0;var F=v;try{t:{for(I(j),g=n(f);g!==null&&!(g.expirationTime>j&&k());){var U=g.callback;if(typeof U=="function"){g.callback=null,v=g.priorityLevel;var A=U(g.expirationTime<=j);if(j=e.unstable_now(),typeof A=="function"){g.callback=A,I(j),D=!0;break t}g===n(f)&&r(f),I(j)}else r(f);g=n(f)}if(g!==null)D=!0;else{var K=n(d);K!==null&&H(O,K.startTime-j),D=!1}}break e}finally{g=null,v=F,b=!1}D=void 0}}finally{D?V():R=!1}}}var V;if(typeof E=="function")V=function(){E(z)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=z,V=function(){L.postMessage(null)}}else V=function(){w(z,0)};function H(j,D){T=w(function(){j(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(j){switch(v){case 1:case 2:case 3:var D=3;break;default:D=v}var F=v;v=D;try{return j()}finally{v=F}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(j,D){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=v;v=j;try{return D()}finally{v=F}},e.unstable_scheduleCallback=function(j,D,F){var U=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?U+F:U):F=U,j){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=F+A,j={id:h++,callback:D,priorityLevel:j,startTime:F,expirationTime:A,sortIndex:-1},F>U?(j.sortIndex=F,t(d,j),n(f)===null&&j===n(d)&&(C?($(T),T=-1):C=!0,H(O,F-U))):(j.sortIndex=A,t(f,j),x||b||(x=!0,R||(R=!0,V()))),j},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(j){var D=v;return function(){var F=v;v=D;try{return j.apply(this,arguments)}finally{v=F}}}})(kb)),kb}var jE;function Vk(){return jE||(jE=1,Pb.exports=Fk()),Pb.exports}var Ab={exports:{}},Ca={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var TE;function Kk(){if(TE)return Ca;TE=1;var e=qx();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:f,containerInfo:d,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ca.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ca.createPortal=function(f,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,h)},Ca.flushSync=function(f){var d=s.T,h=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=d,r.p=h,r.d.f()}},Ca.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Ca.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Ca.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,g=u(h,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):h==="script"&&r.d.X(f,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ca.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=u(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Ca.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,g=u(h,d.crossOrigin);r.d.L(f,h,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Ca.preloadModule=function(f,d){if(typeof f=="string")if(d){var h=u(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Ca.requestFormReset=function(f){r.d.r(f)},Ca.unstable_batchedUpdates=function(f,d){return f(d)},Ca.useFormState=function(f,d,h){return s.H.useFormState(f,d,h)},Ca.useFormStatus=function(){return s.H.useHostTransitionStatus()},Ca.version="19.1.0",Ca}var DE;function JI(){if(DE)return Ab.exports;DE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ab.exports=Kk(),Ab.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PE;function Uk(){if(PE)return fd;PE=1;var e=Vk(),t=qx(),n=JI();function r(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+i+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var c=i,m=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,(c.flags&4098)!==0&&(m=c.return),i=c.return;while(i)}return c.tag===3?m:null}function s(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function u(i){if(o(i)!==i)throw Error(r(188))}function f(i){var c=i.alternate;if(!c){if(c=o(i),c===null)throw Error(r(188));return c!==i?null:i}for(var m=i,p=c;;){var _=m.return;if(_===null)break;var M=_.alternate;if(M===null){if(p=_.return,p!==null){m=p;continue}break}if(_.child===M.child){for(M=_.child;M;){if(M===m)return u(_),i;if(M===p)return u(_),c;M=M.sibling}throw Error(r(188))}if(m.return!==p.return)m=_,p=M;else{for(var G=!1,re=_.child;re;){if(re===m){G=!0,m=_,p=M;break}if(re===p){G=!0,p=_,m=M;break}re=re.sibling}if(!G){for(re=M.child;re;){if(re===m){G=!0,m=M,p=_;break}if(re===p){G=!0,p=M,m=_;break}re=re.sibling}if(!G)throw Error(r(189))}}if(m.alternate!==p)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?i:c}function d(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=d(i),c!==null)return c;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),$=Symbol.for("react.consumer"),E=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function V(i){return i===null||typeof i!="object"?null:(i=z&&i[z]||i["@@iterator"],typeof i=="function"?i:null)}var B=Symbol.for("react.client.reference");function L(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===B?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case y:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList";case N:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case E:return(i.displayName||"Context")+".Provider";case $:return(i._context.displayName||"Context")+".Consumer";case I:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case T:return c=i.displayName||null,c!==null?c:L(i.type)||"Memo";case P:c=i._payload,i=i._init;try{return L(i(c))}catch{}}return null}var H=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},U=[],A=-1;function K(i){return{current:i}}function q(i){0>A||(i.current=U[A],U[A]=null,A--)}function Y(i,c){A++,U[A]=i.current,i.current=c}var W=K(null),Q=K(null),Z=K(null),ae=K(null);function J(i,c){switch(Y(Z,c),Y(Q,i),Y(W,null),c.nodeType){case 9:case 11:i=(i=c.documentElement)&&(i=i.namespaceURI)?tE(i):0;break;default:if(i=c.tagName,c=c.namespaceURI)c=tE(c),i=nE(c,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}q(W),Y(W,i)}function se(){q(W),q(Q),q(Z)}function he(i){i.memoizedState!==null&&Y(ae,i);var c=W.current,m=nE(c,i.type);c!==m&&(Y(Q,i),Y(W,m))}function oe(i){Q.current===i&&(q(W),q(Q)),ae.current===i&&(q(ae),od._currentValue=F)}var le=Object.prototype.hasOwnProperty,ie=e.unstable_scheduleCallback,de=e.unstable_cancelCallback,ge=e.unstable_shouldYield,me=e.unstable_requestPaint,xe=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,He=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,$e=e.unstable_LowPriority,we=e.unstable_IdlePriority,Re=e.log,ze=e.unstable_setDisableYieldValue,De=null,Ye=null;function Xe(i){if(typeof Re=="function"&&ze(i),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(De,i)}catch{}}var Le=Math.clz32?Math.clz32:Ie,Ke=Math.log,Fe=Math.LN2;function Ie(i){return i>>>=0,i===0?32:31-(Ke(i)/Fe|0)|0}var Ue=256,ye=4194304;function Ce(i){var c=i&42;if(c!==0)return c;switch(i&-i){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:return 64;case 128:return 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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function _e(i,c,m){var p=i.pendingLanes;if(p===0)return 0;var _=0,M=i.suspendedLanes,G=i.pingedLanes;i=i.warmLanes;var re=p&134217727;return re!==0?(p=re&~M,p!==0?_=Ce(p):(G&=re,G!==0?_=Ce(G):m||(m=re&~i,m!==0&&(_=Ce(m))))):(re=p&~M,re!==0?_=Ce(re):G!==0?_=Ce(G):m||(m=p&~i,m!==0&&(_=Ce(m)))),_===0?0:c!==0&&c!==_&&(c&M)===0&&(M=_&-_,m=c&-c,M>=m||M===32&&(m&4194048)!==0)?c:_}function be(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function ke(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32: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 c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var i=Ue;return Ue<<=1,(Ue&4194048)===0&&(Ue=256),i}function Dt(){var i=ye;return ye<<=1,(ye&62914560)===0&&(ye=4194304),i}function Wt(i){for(var c=[],m=0;31>m;m++)c.push(i);return c}function Je(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ct(i,c,m,p,_,M){var G=i.pendingLanes;i.pendingLanes=m,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=m,i.entangledLanes&=m,i.errorRecoveryDisabledLanes&=m,i.shellSuspendCounter=0;var re=i.entanglements,pe=i.expirationTimes,Pe=i.hiddenUpdates;for(m=G&~m;0<m;){var Qe=31-Le(m),rt=1<<Qe;re[Qe]=0,pe[Qe]=-1;var Be=Pe[Qe];if(Be!==null)for(Pe[Qe]=null,Qe=0;Qe<Be.length;Qe++){var Ve=Be[Qe];Ve!==null&&(Ve.lane&=-536870913)}m&=~rt}p!==0&&$t(i,p,0),M!==0&&_===0&&i.tag!==0&&(i.suspendedLanes|=M&~(G&~c))}function $t(i,c,m){i.pendingLanes|=c,i.suspendedLanes&=~c;var p=31-Le(c);i.entangledLanes|=c,i.entanglements[p]=i.entanglements[p]|1073741824|m&4194090}function ot(i,c){var m=i.entangledLanes|=c;for(i=i.entanglements;m;){var p=31-Le(m),_=1<<p;_&c|i[p]&c&&(i[p]|=c),m&=~_}}function gt(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function dt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function lt(){var i=D.p;return i!==0?i:(i=window.event,i===void 0?32:SE(i.type))}function nt(i,c){var m=D.p;try{return D.p=i,c()}finally{D.p=m}}var Pt=Math.random().toString(36).slice(2),bt="__reactFiber$"+Pt,Ge="__reactProps$"+Pt,tt="__reactContainer$"+Pt,Mt="__reactEvents$"+Pt,At="__reactListeners$"+Pt,Ot="__reactHandles$"+Pt,Ht="__reactResources$"+Pt,wt="__reactMarker$"+Pt;function xt(i){delete i[bt],delete i[Ge],delete i[Mt],delete i[At],delete i[Ot]}function Tt(i){var c=i[bt];if(c)return c;for(var m=i.parentNode;m;){if(c=m[tt]||m[bt]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(i=oE(i);i!==null;){if(m=i[bt])return m;i=oE(i)}return c}i=m,m=i.parentNode}return null}function Vt(i){if(i=i[bt]||i[tt]){var c=i.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return i}return null}function Jt(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(r(33))}function on(i){var c=i[Ht];return c||(c=i[Ht]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Ut(i){i[wt]=!0}var gn=new Set,$n={};function En(i,c){at(i,c),at(i+"Capture",c)}function at(i,c){for($n[i]=c,i=0;i<c.length;i++)gn.add(c[i])}var Rt=RegExp("^[: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]*$"),mt={},it={};function Bt(i){return le.call(it,i)?!0:le.call(mt,i)?!1:Rt.test(i)?it[i]=!0:(mt[i]=!0,!1)}function tn(i,c,m){if(Bt(c))if(m===null)i.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var p=c.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+m)}}function bn(i,c,m){if(m===null)i.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+m)}}function On(i,c,m,p){if(p===null)i.removeAttribute(m);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(m);return}i.setAttributeNS(c,m,""+p)}}var kt,Ft;function nn(i){if(kt===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);kt=c&&c[1]||"",Ft=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+kt+i+Ft}var Nn=!1;function hr(i,c){if(!i||Nn)return"";Nn=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(c){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Ve){var Be=Ve}Reflect.construct(i,[],rt)}else{try{rt.call()}catch(Ve){Be=Ve}i.call(rt.prototype)}}else{try{throw Error()}catch(Ve){Be=Ve}(rt=i())&&typeof rt.catch=="function"&&rt.catch(function(){})}}catch(Ve){if(Ve&&Be&&typeof Ve.stack=="string")return[Ve.stack,Be.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=p.DetermineComponentFrameRoot(),G=M[0],re=M[1];if(G&&re){var pe=G.split(`
`),Pe=re.split(`
`);for(_=p=0;p<pe.length&&!pe[p].includes("DetermineComponentFrameRoot");)p++;for(;_<Pe.length&&!Pe[_].includes("DetermineComponentFrameRoot");)_++;if(p===pe.length||_===Pe.length)for(p=pe.length-1,_=Pe.length-1;1<=p&&0<=_&&pe[p]!==Pe[_];)_--;for(;1<=p&&0<=_;p--,_--)if(pe[p]!==Pe[_]){if(p!==1||_!==1)do if(p--,_--,0>_||pe[p]!==Pe[_]){var Qe=`
`+pe[p].replace(" at new "," at ");return i.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",i.displayName)),Qe}while(1<=p&&0<=_);break}}}finally{Nn=!1,Error.prepareStackTrace=m}return(m=i?i.displayName||i.name:"")?nn(m):""}function Ur(i){switch(i.tag){case 26:case 27:case 5:return nn(i.type);case 16:return nn("Lazy");case 13:return nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return hr(i.type,!1);case 11:return hr(i.type.render,!1);case 1:return hr(i.type,!0);case 31:return nn("Activity");default:return""}}function gr(i){try{var c="";do c+=Ur(i),i=i.return;while(i);return c}catch(m){return`
Error generating stack: `+m.message+`
`+m.stack}}function Bn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Wr(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function qr(i){var c=Wr(i)?"checked":"value",m=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),p=""+i[c];if(!i.hasOwnProperty(c)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var _=m.get,M=m.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return _.call(this)},set:function(G){p=""+G,M.call(this,G)}}),Object.defineProperty(i,c,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(G){p=""+G},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function ir(i){i._valueTracker||(i._valueTracker=qr(i))}function Yr(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var m=c.getValue(),p="";return i&&(p=Wr(i)?i.checked?"true":"false":i.value),i=p,i!==m?(c.setValue(i),!0):!1}function Sn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var zt=/[\n"\\]/g;function vt(i){return i.replace(zt,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function _n(i,c,m,p,_,M,G,re){i.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?i.type=G:i.removeAttribute("type"),c!=null?G==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+Bn(c)):i.value!==""+Bn(c)&&(i.value=""+Bn(c)):G!=="submit"&&G!=="reset"||i.removeAttribute("value"),c!=null?Nt(i,G,Bn(c)):m!=null?Nt(i,G,Bn(m)):p!=null&&i.removeAttribute("value"),_==null&&M!=null&&(i.defaultChecked=!!M),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?i.name=""+Bn(re):i.removeAttribute("name")}function jt(i,c,m,p,_,M,G,re){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(i.type=M),c!=null||m!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;m=m!=null?""+Bn(m):"",c=c!=null?""+Bn(c):m,re||c===i.value||(i.value=c),i.defaultValue=c}p=p??_,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=re?i.checked:!!p,i.defaultChecked=!!p,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(i.name=G)}function Nt(i,c,m){c==="number"&&Sn(i.ownerDocument)===i||i.defaultValue===""+m||(i.defaultValue=""+m)}function dn(i,c,m,p){if(i=i.options,c){c={};for(var _=0;_<m.length;_++)c["$"+m[_]]=!0;for(m=0;m<i.length;m++)_=c.hasOwnProperty("$"+i[m].value),i[m].selected!==_&&(i[m].selected=_),_&&p&&(i[m].defaultSelected=!0)}else{for(m=""+Bn(m),c=null,_=0;_<i.length;_++){if(i[_].value===m){i[_].selected=!0,p&&(i[_].defaultSelected=!0);return}c!==null||i[_].disabled||(c=i[_])}c!==null&&(c.selected=!0)}}function Yn(i,c,m){if(c!=null&&(c=""+Bn(c),c!==i.value&&(i.value=c),m==null)){i.defaultValue!==c&&(i.defaultValue=c);return}i.defaultValue=m!=null?""+Bn(m):""}function or(i,c,m,p){if(c==null){if(p!=null){if(m!=null)throw Error(r(92));if(H(p)){if(1<p.length)throw Error(r(93));p=p[0]}m=p}m==null&&(m=""),c=m}m=Bn(c),i.defaultValue=m,p=i.textContent,p===m&&p!==""&&p!==null&&(i.value=p)}function lr(i,c){if(c){var m=i.firstChild;if(m&&m===i.lastChild&&m.nodeType===3){m.nodeValue=c;return}}i.textContent=c}var Ir=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mr(i,c,m){var p=c.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?p?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="":p?i.setProperty(c,m):typeof m!="number"||m===0||Ir.has(c)?c==="float"?i.cssFloat=m:i[c]=(""+m).trim():i[c]=m+"px"}function St(i,c,m){if(c!=null&&typeof c!="object")throw Error(r(62));if(i=i.style,m!=null){for(var p in m)!m.hasOwnProperty(p)||c!=null&&c.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var _ in c)p=c[_],c.hasOwnProperty(_)&&m[_]!==p&&Mr(i,_,p)}else for(var M in c)c.hasOwnProperty(M)&&Mr(i,M,c[M])}function ut(i){if(i.indexOf("-")===-1)return!1;switch(i){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 en=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xn(i){return sn.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Gr=null;function Hr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Rr=null,na=null;function $i(i){var c=Vt(i);if(c&&(i=c.stateNode)){var m=i[Ge]||null;e:switch(i=c.stateNode,c.type){case"input":if(_n(i,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=i;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+vt(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var p=m[c];if(p!==i&&p.form===i.form){var _=p[Ge]||null;if(!_)throw Error(r(90));_n(p,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(c=0;c<m.length;c++)p=m[c],p.form===i.form&&Yr(p)}break e;case"textarea":Yn(i,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&dn(i,!!m.multiple,c,!1)}}}var Bl=!1;function As(i,c,m){if(Bl)return i(c,m);Bl=!0;try{var p=i(c);return p}finally{if(Bl=!1,(Rr!==null||na!==null)&&(Mm(),Rr&&(c=Rr,i=na,na=Rr=null,$i(c),i)))for(c=0;c<i.length;c++)$i(i[c])}}function fo(i,c){var m=i.stateNode;if(m===null)return null;var p=m[Ge]||null;if(p===null)return null;m=p[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(m&&typeof m!="function")throw Error(r(231,c,typeof m));return m}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ln=!1;if(Lt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){ln=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{ln=!1}var sr=null,Sr=null,mo=null;function zs(){if(mo)return mo;var i,c=Sr,m=c.length,p,_="value"in sr?sr.value:sr.textContent,M=_.length;for(i=0;i<m&&c[i]===_[i];i++);var G=m-i;for(p=1;p<=G&&c[m-p]===_[M-p];p++);return mo=_.slice(i,1<p?1-p:void 0)}function Fl(i){var c=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&c===13&&(i=13)):i=c,i===10&&(i=13),32<=i||i===13?i:0}function ho(){return!0}function o1(){return!1}function Ta(i){function c(m,p,_,M,G){this._reactName=m,this._targetInst=_,this.type=p,this.nativeEvent=M,this.target=G,this.currentTarget=null;for(var re in i)i.hasOwnProperty(re)&&(m=i[re],this[re]=m?m(M):M[re]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?ho:o1,this.isPropagationStopped=o1,this}return h(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),c}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xf=Ta(Vl),Su=h({},Vl,{view:0,detail:0}),AP=Ta(Su),Av,zv,Cu,Qf=h({},Su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Cu&&(Cu&&i.type==="mousemove"?(Av=i.screenX-Cu.screenX,zv=i.screenY-Cu.screenY):zv=Av=0,Cu=i),Av)},movementY:function(i){return"movementY"in i?i.movementY:zv}}),l1=Ta(Qf),zP=h({},Qf,{dataTransfer:0}),LP=Ta(zP),HP=h({},Su,{relatedTarget:0}),Lv=Ta(HP),BP=h({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),FP=Ta(BP),VP=h({},Vl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),KP=Ta(VP),UP=h({},Vl,{data:0}),s1=Ta(UP),WP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qP={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"},YP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GP(i){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(i):(i=YP[i])?!!c[i]:!1}function Hv(){return GP}var XP=h({},Su,{key:function(i){if(i.key){var c=WP[i.key]||i.key;if(c!=="Unidentified")return c}return i.type==="keypress"?(i=Fl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?qP[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hv,charCode:function(i){return i.type==="keypress"?Fl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Fl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),QP=Ta(XP),ZP=h({},Qf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),c1=Ta(ZP),JP=h({},Su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hv}),e4=Ta(JP),t4=h({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),n4=Ta(t4),r4=h({},Qf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),a4=Ta(r4),i4=h({},Vl,{newState:0,oldState:0}),o4=Ta(i4),l4=[9,13,27,32],Bv=Lt&&"CompositionEvent"in window,wu=null;Lt&&"documentMode"in document&&(wu=document.documentMode);var s4=Lt&&"TextEvent"in window&&!wu,u1=Lt&&(!Bv||wu&&8<wu&&11>=wu),d1=" ",f1=!1;function m1(i,c){switch(i){case"keyup":return l4.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ls=!1;function c4(i,c){switch(i){case"compositionend":return h1(c);case"keypress":return c.which!==32?null:(f1=!0,d1);case"textInput":return i=c.data,i===d1&&f1?null:i;default:return null}}function u4(i,c){if(Ls)return i==="compositionend"||!Bv&&m1(i,c)?(i=zs(),mo=Sr=sr=null,Ls=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return u1&&c.locale!=="ko"?null:c.data;default:return null}}var d4={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 g1(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c==="input"?!!d4[i.type]:c==="textarea"}function v1(i,c,m,p){Rr?na?na.push(p):na=[p]:Rr=p,c=Am(c,"onChange"),0<c.length&&(m=new Xf("onChange","change",null,m,p),i.push({event:m,listeners:c}))}var $u=null,Eu=null;function f4(i){X$(i,0)}function Zf(i){var c=Jt(i);if(Yr(c))return i}function p1(i,c){if(i==="change")return c}var b1=!1;if(Lt){var Fv;if(Lt){var Vv="oninput"in document;if(!Vv){var y1=document.createElement("div");y1.setAttribute("oninput","return;"),Vv=typeof y1.oninput=="function"}Fv=Vv}else Fv=!1;b1=Fv&&(!document.documentMode||9<document.documentMode)}function x1(){$u&&($u.detachEvent("onpropertychange",S1),Eu=$u=null)}function S1(i){if(i.propertyName==="value"&&Zf(Eu)){var c=[];v1(c,Eu,i,Hr(i)),As(f4,c)}}function m4(i,c,m){i==="focusin"?(x1(),$u=c,Eu=m,$u.attachEvent("onpropertychange",S1)):i==="focusout"&&x1()}function h4(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Zf(Eu)}function g4(i,c){if(i==="click")return Zf(c)}function v4(i,c){if(i==="input"||i==="change")return Zf(c)}function p4(i,c){return i===c&&(i!==0||1/i===1/c)||i!==i&&c!==c}var Ha=typeof Object.is=="function"?Object.is:p4;function _u(i,c){if(Ha(i,c))return!0;if(typeof i!="object"||i===null||typeof c!="object"||c===null)return!1;var m=Object.keys(i),p=Object.keys(c);if(m.length!==p.length)return!1;for(p=0;p<m.length;p++){var _=m[p];if(!le.call(c,_)||!Ha(i[_],c[_]))return!1}return!0}function C1(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function w1(i,c){var m=C1(i);i=0;for(var p;m;){if(m.nodeType===3){if(p=i+m.textContent.length,i<=c&&p>=c)return{node:m,offset:c-i};i=p}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=C1(m)}}function $1(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?$1(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function E1(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=Sn(i.document);c instanceof i.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)i=c.contentWindow;else break;c=Sn(i.document)}return c}function Kv(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}var b4=Lt&&"documentMode"in document&&11>=document.documentMode,Hs=null,Uv=null,Ou=null,Wv=!1;function _1(i,c,m){var p=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Wv||Hs==null||Hs!==Sn(p)||(p=Hs,"selectionStart"in p&&Kv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Ou&&_u(Ou,p)||(Ou=p,p=Am(Uv,"onSelect"),0<p.length&&(c=new Xf("onSelect","select",null,c,m),i.push({event:c,listeners:p}),c.target=Hs)))}function Kl(i,c){var m={};return m[i.toLowerCase()]=c.toLowerCase(),m["Webkit"+i]="webkit"+c,m["Moz"+i]="moz"+c,m}var Bs={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionrun:Kl("Transition","TransitionRun"),transitionstart:Kl("Transition","TransitionStart"),transitioncancel:Kl("Transition","TransitionCancel"),transitionend:Kl("Transition","TransitionEnd")},qv={},O1={};Lt&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function Ul(i){if(qv[i])return qv[i];if(!Bs[i])return i;var c=Bs[i],m;for(m in c)if(c.hasOwnProperty(m)&&m in O1)return qv[i]=c[m];return i}var I1=Ul("animationend"),R1=Ul("animationiteration"),N1=Ul("animationstart"),y4=Ul("transitionrun"),x4=Ul("transitionstart"),S4=Ul("transitioncancel"),M1=Ul("transitionend"),j1=new Map,Yv="abort auxClick beforeToggle 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(" ");Yv.push("scrollEnd");function Ei(i,c){j1.set(i,c),En(c,[i])}var T1=new WeakMap;function ni(i,c){if(typeof i=="object"&&i!==null){var m=T1.get(i);return m!==void 0?m:(c={value:i,source:c,stack:gr(c)},T1.set(i,c),c)}return{value:i,source:c,stack:gr(c)}}var ri=[],Fs=0,Gv=0;function Jf(){for(var i=Fs,c=Gv=Fs=0;c<i;){var m=ri[c];ri[c++]=null;var p=ri[c];ri[c++]=null;var _=ri[c];ri[c++]=null;var M=ri[c];if(ri[c++]=null,p!==null&&_!==null){var G=p.pending;G===null?_.next=_:(_.next=G.next,G.next=_),p.pending=_}M!==0&&D1(m,_,M)}}function em(i,c,m,p){ri[Fs++]=i,ri[Fs++]=c,ri[Fs++]=m,ri[Fs++]=p,Gv|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Xv(i,c,m,p){return em(i,c,m,p),tm(i)}function Vs(i,c){return em(i,null,null,c),tm(i)}function D1(i,c,m){i.lanes|=m;var p=i.alternate;p!==null&&(p.lanes|=m);for(var _=!1,M=i.return;M!==null;)M.childLanes|=m,p=M.alternate,p!==null&&(p.childLanes|=m),M.tag===22&&(i=M.stateNode,i===null||i._visibility&1||(_=!0)),i=M,M=M.return;return i.tag===3?(M=i.stateNode,_&&c!==null&&(_=31-Le(m),i=M.hiddenUpdates,p=i[_],p===null?i[_]=[c]:p.push(c),c.lane=m|536870912),M):null}function tm(i){if(50<Zu)throw Zu=0,nb=null,Error(r(185));for(var c=i.return;c!==null;)i=c,c=i.return;return i.tag===3?i.stateNode:null}var Ks={};function C4(i,c,m,p){this.tag=i,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ba(i,c,m,p){return new C4(i,c,m,p)}function Qv(i){return i=i.prototype,!(!i||!i.isReactComponent)}function go(i,c){var m=i.alternate;return m===null?(m=Ba(i.tag,c,i.key,i.mode),m.elementType=i.elementType,m.type=i.type,m.stateNode=i.stateNode,m.alternate=i,i.alternate=m):(m.pendingProps=c,m.type=i.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=i.flags&65011712,m.childLanes=i.childLanes,m.lanes=i.lanes,m.child=i.child,m.memoizedProps=i.memoizedProps,m.memoizedState=i.memoizedState,m.updateQueue=i.updateQueue,c=i.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=i.sibling,m.index=i.index,m.ref=i.ref,m.refCleanup=i.refCleanup,m}function P1(i,c){i.flags&=65011714;var m=i.alternate;return m===null?(i.childLanes=0,i.lanes=c,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=m.childLanes,i.lanes=m.lanes,i.child=m.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=m.memoizedProps,i.memoizedState=m.memoizedState,i.updateQueue=m.updateQueue,i.type=m.type,c=m.dependencies,i.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),i}function nm(i,c,m,p,_,M){var G=0;if(p=i,typeof i=="function")Qv(i)&&(G=1);else if(typeof i=="string")G=$k(i,m,W.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case N:return i=Ba(31,m,c,_),i.elementType=N,i.lanes=M,i;case x:return Wl(m.children,_,M,c);case C:G=8,_|=24;break;case y:return i=Ba(12,m,c,_|2),i.elementType=y,i.lanes=M,i;case O:return i=Ba(13,m,c,_),i.elementType=O,i.lanes=M,i;case R:return i=Ba(19,m,c,_),i.elementType=R,i.lanes=M,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case w:case E:G=10;break e;case $:G=9;break e;case I:G=11;break e;case T:G=14;break e;case P:G=16,p=null;break e}G=29,m=Error(r(130,i===null?"null":typeof i,"")),p=null}return c=Ba(G,m,c,_),c.elementType=i,c.type=p,c.lanes=M,c}function Wl(i,c,m,p){return i=Ba(7,i,p,c),i.lanes=m,i}function Zv(i,c,m){return i=Ba(6,i,null,c),i.lanes=m,i}function Jv(i,c,m){return c=Ba(4,i.children!==null?i.children:[],i.key,c),c.lanes=m,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}var Us=[],Ws=0,rm=null,am=0,ai=[],ii=0,ql=null,vo=1,po="";function Yl(i,c){Us[Ws++]=am,Us[Ws++]=rm,rm=i,am=c}function k1(i,c,m){ai[ii++]=vo,ai[ii++]=po,ai[ii++]=ql,ql=i;var p=vo;i=po;var _=32-Le(p)-1;p&=~(1<<_),m+=1;var M=32-Le(c)+_;if(30<M){var G=_-_%5;M=(p&(1<<G)-1).toString(32),p>>=G,_-=G,vo=1<<32-Le(c)+_|m<<_|p,po=M+i}else vo=1<<M|m<<_|p,po=i}function ep(i){i.return!==null&&(Yl(i,1),k1(i,1,0))}function tp(i){for(;i===rm;)rm=Us[--Ws],Us[Ws]=null,am=Us[--Ws],Us[Ws]=null;for(;i===ql;)ql=ai[--ii],ai[ii]=null,po=ai[--ii],ai[ii]=null,vo=ai[--ii],ai[ii]=null}var Na=null,jr=null,Zn=!1,Gl=null,Yi=!1,np=Error(r(519));function Xl(i){var c=Error(r(418,""));throw Nu(ni(c,i)),np}function A1(i){var c=i.stateNode,m=i.type,p=i.memoizedProps;switch(c[bt]=i,c[Ge]=p,m){case"dialog":zn("cancel",c),zn("close",c);break;case"iframe":case"object":case"embed":zn("load",c);break;case"video":case"audio":for(m=0;m<ed.length;m++)zn(ed[m],c);break;case"source":zn("error",c);break;case"img":case"image":case"link":zn("error",c),zn("load",c);break;case"details":zn("toggle",c);break;case"input":zn("invalid",c),jt(c,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0),ir(c);break;case"select":zn("invalid",c);break;case"textarea":zn("invalid",c),or(c,p.value,p.defaultValue,p.children),ir(c)}m=p.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||c.textContent===""+m||p.suppressHydrationWarning===!0||eE(c.textContent,m)?(p.popover!=null&&(zn("beforetoggle",c),zn("toggle",c)),p.onScroll!=null&&zn("scroll",c),p.onScrollEnd!=null&&zn("scrollend",c),p.onClick!=null&&(c.onclick=zm),c=!0):c=!1,c||Xl(i)}function z1(i){for(Na=i.return;Na;)switch(Na.tag){case 5:case 13:Yi=!1;return;case 27:case 3:Yi=!0;return;default:Na=Na.return}}function Iu(i){if(i!==Na)return!1;if(!Zn)return z1(i),Zn=!0,!1;var c=i.tag,m;if((m=c!==3&&c!==27)&&((m=c===5)&&(m=i.type,m=!(m!=="form"&&m!=="button")||bb(i.type,i.memoizedProps)),m=!m),m&&jr&&Xl(i),z1(i),c===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,c=0;i;){if(i.nodeType===8)if(m=i.data,m==="/$"){if(c===0){jr=Oi(i.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++;i=i.nextSibling}jr=null}}else c===27?(c=jr,fl(i.type)?(i=Cb,Cb=null,jr=i):jr=c):jr=Na?Oi(i.stateNode.nextSibling):null;return!0}function Ru(){jr=Na=null,Zn=!1}function L1(){var i=Gl;return i!==null&&(ka===null?ka=i:ka.push.apply(ka,i),Gl=null),i}function Nu(i){Gl===null?Gl=[i]:Gl.push(i)}var rp=K(null),Ql=null,bo=null;function Qo(i,c,m){Y(rp,c._currentValue),c._currentValue=m}function yo(i){i._currentValue=rp.current,q(rp)}function ap(i,c,m){for(;i!==null;){var p=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,p!==null&&(p.childLanes|=c)):p!==null&&(p.childLanes&c)!==c&&(p.childLanes|=c),i===m)break;i=i.return}}function ip(i,c,m,p){var _=i.child;for(_!==null&&(_.return=i);_!==null;){var M=_.dependencies;if(M!==null){var G=_.child;M=M.firstContext;e:for(;M!==null;){var re=M;M=_;for(var pe=0;pe<c.length;pe++)if(re.context===c[pe]){M.lanes|=m,re=M.alternate,re!==null&&(re.lanes|=m),ap(M.return,m,i),p||(G=null);break e}M=re.next}}else if(_.tag===18){if(G=_.return,G===null)throw Error(r(341));G.lanes|=m,M=G.alternate,M!==null&&(M.lanes|=m),ap(G,m,i),G=null}else G=_.child;if(G!==null)G.return=_;else for(G=_;G!==null;){if(G===i){G=null;break}if(_=G.sibling,_!==null){_.return=G.return,G=_;break}G=G.return}_=G}}function Mu(i,c,m,p){i=null;for(var _=c,M=!1;_!==null;){if(!M){if((_.flags&524288)!==0)M=!0;else if((_.flags&262144)!==0)break}if(_.tag===10){var G=_.alternate;if(G===null)throw Error(r(387));if(G=G.memoizedProps,G!==null){var re=_.type;Ha(_.pendingProps.value,G.value)||(i!==null?i.push(re):i=[re])}}else if(_===ae.current){if(G=_.alternate,G===null)throw Error(r(387));G.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(i!==null?i.push(od):i=[od])}_=_.return}i!==null&&ip(c,i,m,p),c.flags|=262144}function im(i){for(i=i.firstContext;i!==null;){if(!Ha(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Zl(i){Ql=i,bo=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Sa(i){return H1(Ql,i)}function om(i,c){return Ql===null&&Zl(i),H1(i,c)}function H1(i,c){var m=c._currentValue;if(c={context:c,memoizedValue:m,next:null},bo===null){if(i===null)throw Error(r(308));bo=c,i.dependencies={lanes:0,firstContext:c},i.flags|=524288}else bo=bo.next=c;return m}var w4=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(m,p){i.push(p)}};this.abort=function(){c.aborted=!0,i.forEach(function(m){return m()})}},$4=e.unstable_scheduleCallback,E4=e.unstable_NormalPriority,Xr={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function op(){return{controller:new w4,data:new Map,refCount:0}}function ju(i){i.refCount--,i.refCount===0&&$4(E4,function(){i.controller.abort()})}var Tu=null,lp=0,qs=0,Ys=null;function _4(i,c){if(Tu===null){var m=Tu=[];lp=0,qs=cb(),Ys={status:"pending",value:void 0,then:function(p){m.push(p)}}}return lp++,c.then(B1,B1),c}function B1(){if(--lp===0&&Tu!==null){Ys!==null&&(Ys.status="fulfilled");var i=Tu;Tu=null,qs=0,Ys=null;for(var c=0;c<i.length;c++)(0,i[c])()}}function O4(i,c){var m=[],p={status:"pending",value:null,reason:null,then:function(_){m.push(_)}};return i.then(function(){p.status="fulfilled",p.value=c;for(var _=0;_<m.length;_++)(0,m[_])(c)},function(_){for(p.status="rejected",p.reason=_,_=0;_<m.length;_++)(0,m[_])(void 0)}),p}var F1=j.S;j.S=function(i,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&_4(i,c),F1!==null&&F1(i,c)};var Jl=K(null);function sp(){var i=Jl.current;return i!==null?i:Cr.pooledCache}function lm(i,c){c===null?Y(Jl,Jl.current):Y(Jl,c.pool)}function V1(){var i=sp();return i===null?null:{parent:Xr._currentValue,pool:i}}var Du=Error(r(460)),K1=Error(r(474)),sm=Error(r(542)),cp={then:function(){}};function U1(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cm(){}function W1(i,c,m){switch(m=i[m],m===void 0?i.push(c):m!==c&&(c.then(cm,cm),c=m),c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,Y1(i),i;default:if(typeof c.status=="string")c.then(cm,cm);else{if(i=Cr,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=c,i.status="pending",i.then(function(p){if(c.status==="pending"){var _=c;_.status="fulfilled",_.value=p}},function(p){if(c.status==="pending"){var _=c;_.status="rejected",_.reason=p}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,Y1(i),i}throw Pu=c,Du}}var Pu=null;function q1(){if(Pu===null)throw Error(r(459));var i=Pu;return Pu=null,i}function Y1(i){if(i===Du||i===sm)throw Error(r(483))}var Zo=!1;function up(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dp(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Jo(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function el(i,c,m){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(nr&2)!==0){var _=p.pending;return _===null?c.next=c:(c.next=_.next,_.next=c),p.pending=c,c=tm(i),D1(i,null,m),c}return em(i,p,c,m),tm(i)}function ku(i,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var p=c.lanes;p&=i.pendingLanes,m|=p,c.lanes=m,ot(i,m)}}function fp(i,c){var m=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,m===p)){var _=null,M=null;if(m=m.firstBaseUpdate,m!==null){do{var G={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};M===null?_=M=G:M=M.next=G,m=m.next}while(m!==null);M===null?_=M=c:M=M.next=c}else _=M=c;m={baseState:p.baseState,firstBaseUpdate:_,lastBaseUpdate:M,shared:p.shared,callbacks:p.callbacks},i.updateQueue=m;return}i=m.lastBaseUpdate,i===null?m.firstBaseUpdate=c:i.next=c,m.lastBaseUpdate=c}var mp=!1;function Au(){if(mp){var i=Ys;if(i!==null)throw i}}function zu(i,c,m,p){mp=!1;var _=i.updateQueue;Zo=!1;var M=_.firstBaseUpdate,G=_.lastBaseUpdate,re=_.shared.pending;if(re!==null){_.shared.pending=null;var pe=re,Pe=pe.next;pe.next=null,G===null?M=Pe:G.next=Pe,G=pe;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,re=Qe.lastBaseUpdate,re!==G&&(re===null?Qe.firstBaseUpdate=Pe:re.next=Pe,Qe.lastBaseUpdate=pe))}if(M!==null){var rt=_.baseState;G=0,Qe=Pe=pe=null,re=M;do{var Be=re.lane&-536870913,Ve=Be!==re.lane;if(Ve?(Un&Be)===Be:(p&Be)===Be){Be!==0&&Be===qs&&(mp=!0),Qe!==null&&(Qe=Qe.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var vn=i,cn=re;Be=c;var dr=m;switch(cn.tag){case 1:if(vn=cn.payload,typeof vn=="function"){rt=vn.call(dr,rt,Be);break e}rt=vn;break e;case 3:vn.flags=vn.flags&-65537|128;case 0:if(vn=cn.payload,Be=typeof vn=="function"?vn.call(dr,rt,Be):vn,Be==null)break e;rt=h({},rt,Be);break e;case 2:Zo=!0}}Be=re.callback,Be!==null&&(i.flags|=64,Ve&&(i.flags|=8192),Ve=_.callbacks,Ve===null?_.callbacks=[Be]:Ve.push(Be))}else Ve={lane:Be,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Qe===null?(Pe=Qe=Ve,pe=rt):Qe=Qe.next=Ve,G|=Be;if(re=re.next,re===null){if(re=_.shared.pending,re===null)break;Ve=re,re=Ve.next,Ve.next=null,_.lastBaseUpdate=Ve,_.shared.pending=null}}while(!0);Qe===null&&(pe=rt),_.baseState=pe,_.firstBaseUpdate=Pe,_.lastBaseUpdate=Qe,M===null&&(_.shared.lanes=0),sl|=G,i.lanes=G,i.memoizedState=rt}}function G1(i,c){if(typeof i!="function")throw Error(r(191,i));i.call(c)}function X1(i,c){var m=i.callbacks;if(m!==null)for(i.callbacks=null,i=0;i<m.length;i++)G1(m[i],c)}var Gs=K(null),um=K(0);function Q1(i,c){i=_o,Y(um,i),Y(Gs,c),_o=i|c.baseLanes}function hp(){Y(um,_o),Y(Gs,Gs.current)}function gp(){_o=um.current,q(Gs),q(um)}var tl=0,jn=null,cr=null,Br=null,dm=!1,Xs=!1,es=!1,fm=0,Lu=0,Qs=null,I4=0;function Dr(){throw Error(r(321))}function vp(i,c){if(c===null)return!1;for(var m=0;m<c.length&&m<i.length;m++)if(!Ha(i[m],c[m]))return!1;return!0}function pp(i,c,m,p,_,M){return tl=M,jn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,j.H=i===null||i.memoizedState===null?Dw:Pw,es=!1,M=m(p,_),es=!1,Xs&&(M=J1(c,m,p,_)),Z1(i),M}function Z1(i){j.H=bm;var c=cr!==null&&cr.next!==null;if(tl=0,Br=cr=jn=null,dm=!1,Lu=0,Qs=null,c)throw Error(r(300));i===null||ra||(i=i.dependencies,i!==null&&im(i)&&(ra=!0))}function J1(i,c,m,p){jn=i;var _=0;do{if(Xs&&(Qs=null),Lu=0,Xs=!1,25<=_)throw Error(r(301));if(_+=1,Br=cr=null,i.updateQueue!=null){var M=i.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}j.H=P4,M=c(m,p)}while(Xs);return M}function R4(){var i=j.H,c=i.useState()[0];return c=typeof c.then=="function"?Hu(c):c,i=i.useState()[0],(cr!==null?cr.memoizedState:null)!==i&&(jn.flags|=1024),c}function bp(){var i=fm!==0;return fm=0,i}function yp(i,c,m){c.updateQueue=i.updateQueue,c.flags&=-2053,i.lanes&=~m}function xp(i){if(dm){for(i=i.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}dm=!1}tl=0,Br=cr=jn=null,Xs=!1,Lu=fm=0,Qs=null}function Da(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?jn.memoizedState=Br=i:Br=Br.next=i,Br}function Fr(){if(cr===null){var i=jn.alternate;i=i!==null?i.memoizedState:null}else i=cr.next;var c=Br===null?jn.memoizedState:Br.next;if(c!==null)Br=c,cr=i;else{if(i===null)throw jn.alternate===null?Error(r(467)):Error(r(310));cr=i,i={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null},Br===null?jn.memoizedState=Br=i:Br=Br.next=i}return Br}function Sp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hu(i){var c=Lu;return Lu+=1,Qs===null&&(Qs=[]),i=W1(Qs,i,c),c=jn,(Br===null?c.memoizedState:Br.next)===null&&(c=c.alternate,j.H=c===null||c.memoizedState===null?Dw:Pw),i}function mm(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Hu(i);if(i.$$typeof===E)return Sa(i)}throw Error(r(438,String(i)))}function Cp(i){var c=null,m=jn.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var p=jn.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(c={data:p.data.map(function(_){return _.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=Sp(),jn.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0)for(m=c.data[c.index]=Array(i),p=0;p<i;p++)m[p]=k;return c.index++,m}function xo(i,c){return typeof c=="function"?c(i):c}function hm(i){var c=Fr();return wp(c,cr,i)}function wp(i,c,m){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=m;var _=i.baseQueue,M=p.pending;if(M!==null){if(_!==null){var G=_.next;_.next=M.next,M.next=G}c.baseQueue=_=M,p.pending=null}if(M=i.baseState,_===null)i.memoizedState=M;else{c=_.next;var re=G=null,pe=null,Pe=c,Qe=!1;do{var rt=Pe.lane&-536870913;if(rt!==Pe.lane?(Un&rt)===rt:(tl&rt)===rt){var Be=Pe.revertLane;if(Be===0)pe!==null&&(pe=pe.next={lane:0,revertLane:0,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null}),rt===qs&&(Qe=!0);else if((tl&Be)===Be){Pe=Pe.next,Be===qs&&(Qe=!0);continue}else rt={lane:0,revertLane:Pe.revertLane,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null},pe===null?(re=pe=rt,G=M):pe=pe.next=rt,jn.lanes|=Be,sl|=Be;rt=Pe.action,es&&m(M,rt),M=Pe.hasEagerState?Pe.eagerState:m(M,rt)}else Be={lane:rt,revertLane:Pe.revertLane,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null},pe===null?(re=pe=Be,G=M):pe=pe.next=Be,jn.lanes|=rt,sl|=rt;Pe=Pe.next}while(Pe!==null&&Pe!==c);if(pe===null?G=M:pe.next=re,!Ha(M,i.memoizedState)&&(ra=!0,Qe&&(m=Ys,m!==null)))throw m;i.memoizedState=M,i.baseState=G,i.baseQueue=pe,p.lastRenderedState=M}return _===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function $p(i){var c=Fr(),m=c.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=i;var p=m.dispatch,_=m.pending,M=c.memoizedState;if(_!==null){m.pending=null;var G=_=_.next;do M=i(M,G.action),G=G.next;while(G!==_);Ha(M,c.memoizedState)||(ra=!0),c.memoizedState=M,c.baseQueue===null&&(c.baseState=M),m.lastRenderedState=M}return[M,p]}function ew(i,c,m){var p=jn,_=Fr(),M=Zn;if(M){if(m===void 0)throw Error(r(407));m=m()}else m=c();var G=!Ha((cr||_).memoizedState,m);G&&(_.memoizedState=m,ra=!0),_=_.queue;var re=rw.bind(null,p,_,i);if(Bu(2048,8,re,[i]),_.getSnapshot!==c||G||Br!==null&&Br.memoizedState.tag&1){if(p.flags|=2048,Zs(9,gm(),nw.bind(null,p,_,m,c),null),Cr===null)throw Error(r(349));M||(tl&124)!==0||tw(p,c,m)}return m}function tw(i,c,m){i.flags|=16384,i={getSnapshot:c,value:m},c=jn.updateQueue,c===null?(c=Sp(),jn.updateQueue=c,c.stores=[i]):(m=c.stores,m===null?c.stores=[i]:m.push(i))}function nw(i,c,m,p){c.value=m,c.getSnapshot=p,aw(c)&&iw(i)}function rw(i,c,m){return m(function(){aw(c)&&iw(i)})}function aw(i){var c=i.getSnapshot;i=i.value;try{var m=c();return!Ha(i,m)}catch{return!0}}function iw(i){var c=Vs(i,2);c!==null&&Wa(c,i,2)}function Ep(i){var c=Da();if(typeof i=="function"){var m=i;if(i=m(),es){Xe(!0);try{m()}finally{Xe(!1)}}}return c.memoizedState=c.baseState=i,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:i},c}function ow(i,c,m,p){return i.baseState=m,wp(i,cr,typeof p=="function"?p:xo)}function N4(i,c,m,p,_){if(pm(i))throw Error(r(485));if(i=c.action,i!==null){var M={payload:_,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(G){M.listeners.push(G)}};j.T!==null?m(!0):M.isTransition=!1,p(M),m=c.pending,m===null?(M.next=c.pending=M,lw(c,M)):(M.next=m.next,c.pending=m.next=M)}}function lw(i,c){var m=c.action,p=c.payload,_=i.state;if(c.isTransition){var M=j.T,G={};j.T=G;try{var re=m(_,p),pe=j.S;pe!==null&&pe(G,re),sw(i,c,re)}catch(Pe){_p(i,c,Pe)}finally{j.T=M}}else try{M=m(_,p),sw(i,c,M)}catch(Pe){_p(i,c,Pe)}}function sw(i,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(p){cw(i,c,p)},function(p){return _p(i,c,p)}):cw(i,c,m)}function cw(i,c,m){c.status="fulfilled",c.value=m,uw(c),i.state=m,c=i.pending,c!==null&&(m=c.next,m===c?i.pending=null:(m=m.next,c.next=m,lw(i,m)))}function _p(i,c,m){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do c.status="rejected",c.reason=m,uw(c),c=c.next;while(c!==p)}i.action=null}function uw(i){i=i.listeners;for(var c=0;c<i.length;c++)(0,i[c])()}function dw(i,c){return c}function fw(i,c){if(Zn){var m=Cr.formState;if(m!==null){e:{var p=jn;if(Zn){if(jr){t:{for(var _=jr,M=Yi;_.nodeType!==8;){if(!M){_=null;break t}if(_=Oi(_.nextSibling),_===null){_=null;break t}}M=_.data,_=M==="F!"||M==="F"?_:null}if(_){jr=Oi(_.nextSibling),p=_.data==="F!";break e}}Xl(p)}p=!1}p&&(c=m[0])}}return m=Da(),m.memoizedState=m.baseState=c,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dw,lastRenderedState:c},m.queue=p,m=Mw.bind(null,jn,p),p.dispatch=m,p=Ep(!1),M=Mp.bind(null,jn,!1,p.queue),p=Da(),_={state:c,dispatch:null,action:i,pending:null},p.queue=_,m=N4.bind(null,jn,_,M,m),_.dispatch=m,p.memoizedState=i,[c,m,!1]}function mw(i){var c=Fr();return hw(c,cr,i)}function hw(i,c,m){if(c=wp(i,c,dw)[0],i=hm(xo)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var p=Hu(c)}catch(G){throw G===Du?sm:G}else p=c;c=Fr();var _=c.queue,M=_.dispatch;return m!==c.memoizedState&&(jn.flags|=2048,Zs(9,gm(),M4.bind(null,_,m),null)),[p,M,i]}function M4(i,c){i.action=c}function gw(i){var c=Fr(),m=cr;if(m!==null)return hw(c,m,i);Fr(),c=c.memoizedState,m=Fr();var p=m.queue.dispatch;return m.memoizedState=i,[c,p,!1]}function Zs(i,c,m,p){return i={tag:i,create:m,deps:p,inst:c,next:null},c=jn.updateQueue,c===null&&(c=Sp(),jn.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=i.next=i:(p=m.next,m.next=i,i.next=p,c.lastEffect=i),i}function gm(){return{destroy:void 0,resource:void 0}}function vw(){return Fr().memoizedState}function vm(i,c,m,p){var _=Da();p=p===void 0?null:p,jn.flags|=i,_.memoizedState=Zs(1|c,gm(),m,p)}function Bu(i,c,m,p){var _=Fr();p=p===void 0?null:p;var M=_.memoizedState.inst;cr!==null&&p!==null&&vp(p,cr.memoizedState.deps)?_.memoizedState=Zs(c,M,m,p):(jn.flags|=i,_.memoizedState=Zs(1|c,M,m,p))}function pw(i,c){vm(8390656,8,i,c)}function bw(i,c){Bu(2048,8,i,c)}function yw(i,c){return Bu(4,2,i,c)}function xw(i,c){return Bu(4,4,i,c)}function Sw(i,c){if(typeof c=="function"){i=i();var m=c(i);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return i=i(),c.current=i,function(){c.current=null}}function Cw(i,c,m){m=m!=null?m.concat([i]):null,Bu(4,4,Sw.bind(null,c,i),m)}function Op(){}function ww(i,c){var m=Fr();c=c===void 0?null:c;var p=m.memoizedState;return c!==null&&vp(c,p[1])?p[0]:(m.memoizedState=[i,c],i)}function $w(i,c){var m=Fr();c=c===void 0?null:c;var p=m.memoizedState;if(c!==null&&vp(c,p[1]))return p[0];if(p=i(),es){Xe(!0);try{i()}finally{Xe(!1)}}return m.memoizedState=[p,c],p}function Ip(i,c,m){return m===void 0||(tl&1073741824)!==0?i.memoizedState=c:(i.memoizedState=m,i=O$(),jn.lanes|=i,sl|=i,m)}function Ew(i,c,m,p){return Ha(m,c)?m:Gs.current!==null?(i=Ip(i,m,p),Ha(i,c)||(ra=!0),i):(tl&42)===0?(ra=!0,i.memoizedState=m):(i=O$(),jn.lanes|=i,sl|=i,c)}function _w(i,c,m,p,_){var M=D.p;D.p=M!==0&&8>M?M:8;var G=j.T,re={};j.T=re,Mp(i,!1,c,m);try{var pe=_(),Pe=j.S;if(Pe!==null&&Pe(re,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var Qe=O4(pe,p);Fu(i,c,Qe,Ua(i))}else Fu(i,c,p,Ua(i))}catch(rt){Fu(i,c,{then:function(){},status:"rejected",reason:rt},Ua())}finally{D.p=M,j.T=G}}function j4(){}function Rp(i,c,m,p){if(i.tag!==5)throw Error(r(476));var _=Ow(i).queue;_w(i,_,c,F,m===null?j4:function(){return Iw(i),m(p)})}function Ow(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:F},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:m},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function Iw(i){var c=Ow(i).next.queue;Fu(i,c,{},Ua())}function Np(){return Sa(od)}function Rw(){return Fr().memoizedState}function Nw(){return Fr().memoizedState}function T4(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var m=Ua();i=Jo(m);var p=el(c,i,m);p!==null&&(Wa(p,c,m),ku(p,c,m)),c={cache:op()},i.payload=c;return}c=c.return}}function D4(i,c,m){var p=Ua();m={lane:p,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},pm(i)?jw(c,m):(m=Xv(i,c,m,p),m!==null&&(Wa(m,i,p),Tw(m,c,p)))}function Mw(i,c,m){var p=Ua();Fu(i,c,m,p)}function Fu(i,c,m,p){var _={lane:p,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(pm(i))jw(c,_);else{var M=i.alternate;if(i.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var G=c.lastRenderedState,re=M(G,m);if(_.hasEagerState=!0,_.eagerState=re,Ha(re,G))return em(i,c,_,0),Cr===null&&Jf(),!1}catch{}finally{}if(m=Xv(i,c,_,p),m!==null)return Wa(m,i,p),Tw(m,c,p),!0}return!1}function Mp(i,c,m,p){if(p={lane:2,revertLane:cb(),action:p,hasEagerState:!1,eagerState:null,next:null},pm(i)){if(c)throw Error(r(479))}else c=Xv(i,m,p,2),c!==null&&Wa(c,i,2)}function pm(i){var c=i.alternate;return i===jn||c!==null&&c===jn}function jw(i,c){Xs=dm=!0;var m=i.pending;m===null?c.next=c:(c.next=m.next,m.next=c),i.pending=c}function Tw(i,c,m){if((m&4194048)!==0){var p=c.lanes;p&=i.pendingLanes,m|=p,c.lanes=m,ot(i,m)}}var bm={readContext:Sa,use:mm,useCallback:Dr,useContext:Dr,useEffect:Dr,useImperativeHandle:Dr,useLayoutEffect:Dr,useInsertionEffect:Dr,useMemo:Dr,useReducer:Dr,useRef:Dr,useState:Dr,useDebugValue:Dr,useDeferredValue:Dr,useTransition:Dr,useSyncExternalStore:Dr,useId:Dr,useHostTransitionStatus:Dr,useFormState:Dr,useActionState:Dr,useOptimistic:Dr,useMemoCache:Dr,useCacheRefresh:Dr},Dw={readContext:Sa,use:mm,useCallback:function(i,c){return Da().memoizedState=[i,c===void 0?null:c],i},useContext:Sa,useEffect:pw,useImperativeHandle:function(i,c,m){m=m!=null?m.concat([i]):null,vm(4194308,4,Sw.bind(null,c,i),m)},useLayoutEffect:function(i,c){return vm(4194308,4,i,c)},useInsertionEffect:function(i,c){vm(4,2,i,c)},useMemo:function(i,c){var m=Da();c=c===void 0?null:c;var p=i();if(es){Xe(!0);try{i()}finally{Xe(!1)}}return m.memoizedState=[p,c],p},useReducer:function(i,c,m){var p=Da();if(m!==void 0){var _=m(c);if(es){Xe(!0);try{m(c)}finally{Xe(!1)}}}else _=c;return p.memoizedState=p.baseState=_,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:_},p.queue=i,i=i.dispatch=D4.bind(null,jn,i),[p.memoizedState,i]},useRef:function(i){var c=Da();return i={current:i},c.memoizedState=i},useState:function(i){i=Ep(i);var c=i.queue,m=Mw.bind(null,jn,c);return c.dispatch=m,[i.memoizedState,m]},useDebugValue:Op,useDeferredValue:function(i,c){var m=Da();return Ip(m,i,c)},useTransition:function(){var i=Ep(!1);return i=_w.bind(null,jn,i.queue,!0,!1),Da().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,m){var p=jn,_=Da();if(Zn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=c(),Cr===null)throw Error(r(349));(Un&124)!==0||tw(p,c,m)}_.memoizedState=m;var M={value:m,getSnapshot:c};return _.queue=M,pw(rw.bind(null,p,M,i),[i]),p.flags|=2048,Zs(9,gm(),nw.bind(null,p,M,m,c),null),m},useId:function(){var i=Da(),c=Cr.identifierPrefix;if(Zn){var m=po,p=vo;m=(p&~(1<<32-Le(p)-1)).toString(32)+m,c="«"+c+"R"+m,m=fm++,0<m&&(c+="H"+m.toString(32)),c+="»"}else m=I4++,c="«"+c+"r"+m.toString(32)+"»";return i.memoizedState=c},useHostTransitionStatus:Np,useFormState:fw,useActionState:fw,useOptimistic:function(i){var c=Da();c.memoizedState=c.baseState=i;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=Mp.bind(null,jn,!0,m),m.dispatch=c,[i,c]},useMemoCache:Cp,useCacheRefresh:function(){return Da().memoizedState=T4.bind(null,jn)}},Pw={readContext:Sa,use:mm,useCallback:ww,useContext:Sa,useEffect:bw,useImperativeHandle:Cw,useInsertionEffect:yw,useLayoutEffect:xw,useMemo:$w,useReducer:hm,useRef:vw,useState:function(){return hm(xo)},useDebugValue:Op,useDeferredValue:function(i,c){var m=Fr();return Ew(m,cr.memoizedState,i,c)},useTransition:function(){var i=hm(xo)[0],c=Fr().memoizedState;return[typeof i=="boolean"?i:Hu(i),c]},useSyncExternalStore:ew,useId:Rw,useHostTransitionStatus:Np,useFormState:mw,useActionState:mw,useOptimistic:function(i,c){var m=Fr();return ow(m,cr,i,c)},useMemoCache:Cp,useCacheRefresh:Nw},P4={readContext:Sa,use:mm,useCallback:ww,useContext:Sa,useEffect:bw,useImperativeHandle:Cw,useInsertionEffect:yw,useLayoutEffect:xw,useMemo:$w,useReducer:$p,useRef:vw,useState:function(){return $p(xo)},useDebugValue:Op,useDeferredValue:function(i,c){var m=Fr();return cr===null?Ip(m,i,c):Ew(m,cr.memoizedState,i,c)},useTransition:function(){var i=$p(xo)[0],c=Fr().memoizedState;return[typeof i=="boolean"?i:Hu(i),c]},useSyncExternalStore:ew,useId:Rw,useHostTransitionStatus:Np,useFormState:gw,useActionState:gw,useOptimistic:function(i,c){var m=Fr();return cr!==null?ow(m,cr,i,c):(m.baseState=i,[i,m.queue.dispatch])},useMemoCache:Cp,useCacheRefresh:Nw},Js=null,Vu=0;function ym(i){var c=Vu;return Vu+=1,Js===null&&(Js=[]),W1(Js,i,c)}function Ku(i,c){c=c.props.ref,i.ref=c!==void 0?c:null}function xm(i,c){throw c.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(c),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":i)))}function kw(i){var c=i._init;return c(i._payload)}function Aw(i){function c(Ne,Oe){if(i){var Te=Ne.deletions;Te===null?(Ne.deletions=[Oe],Ne.flags|=16):Te.push(Oe)}}function m(Ne,Oe){if(!i)return null;for(;Oe!==null;)c(Ne,Oe),Oe=Oe.sibling;return null}function p(Ne){for(var Oe=new Map;Ne!==null;)Ne.key!==null?Oe.set(Ne.key,Ne):Oe.set(Ne.index,Ne),Ne=Ne.sibling;return Oe}function _(Ne,Oe){return Ne=go(Ne,Oe),Ne.index=0,Ne.sibling=null,Ne}function M(Ne,Oe,Te){return Ne.index=Te,i?(Te=Ne.alternate,Te!==null?(Te=Te.index,Te<Oe?(Ne.flags|=67108866,Oe):Te):(Ne.flags|=67108866,Oe)):(Ne.flags|=1048576,Oe)}function G(Ne){return i&&Ne.alternate===null&&(Ne.flags|=67108866),Ne}function re(Ne,Oe,Te,Ze){return Oe===null||Oe.tag!==6?(Oe=Zv(Te,Ne.mode,Ze),Oe.return=Ne,Oe):(Oe=_(Oe,Te),Oe.return=Ne,Oe)}function pe(Ne,Oe,Te,Ze){var Qt=Te.type;return Qt===x?Qe(Ne,Oe,Te.props.children,Ze,Te.key):Oe!==null&&(Oe.elementType===Qt||typeof Qt=="object"&&Qt!==null&&Qt.$$typeof===P&&kw(Qt)===Oe.type)?(Oe=_(Oe,Te.props),Ku(Oe,Te),Oe.return=Ne,Oe):(Oe=nm(Te.type,Te.key,Te.props,null,Ne.mode,Ze),Ku(Oe,Te),Oe.return=Ne,Oe)}function Pe(Ne,Oe,Te,Ze){return Oe===null||Oe.tag!==4||Oe.stateNode.containerInfo!==Te.containerInfo||Oe.stateNode.implementation!==Te.implementation?(Oe=Jv(Te,Ne.mode,Ze),Oe.return=Ne,Oe):(Oe=_(Oe,Te.children||[]),Oe.return=Ne,Oe)}function Qe(Ne,Oe,Te,Ze,Qt){return Oe===null||Oe.tag!==7?(Oe=Wl(Te,Ne.mode,Ze,Qt),Oe.return=Ne,Oe):(Oe=_(Oe,Te),Oe.return=Ne,Oe)}function rt(Ne,Oe,Te){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Oe=Zv(""+Oe,Ne.mode,Te),Oe.return=Ne,Oe;if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case v:return Te=nm(Oe.type,Oe.key,Oe.props,null,Ne.mode,Te),Ku(Te,Oe),Te.return=Ne,Te;case b:return Oe=Jv(Oe,Ne.mode,Te),Oe.return=Ne,Oe;case P:var Ze=Oe._init;return Oe=Ze(Oe._payload),rt(Ne,Oe,Te)}if(H(Oe)||V(Oe))return Oe=Wl(Oe,Ne.mode,Te,null),Oe.return=Ne,Oe;if(typeof Oe.then=="function")return rt(Ne,ym(Oe),Te);if(Oe.$$typeof===E)return rt(Ne,om(Ne,Oe),Te);xm(Ne,Oe)}return null}function Be(Ne,Oe,Te,Ze){var Qt=Oe!==null?Oe.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Qt!==null?null:re(Ne,Oe,""+Te,Ze);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case v:return Te.key===Qt?pe(Ne,Oe,Te,Ze):null;case b:return Te.key===Qt?Pe(Ne,Oe,Te,Ze):null;case P:return Qt=Te._init,Te=Qt(Te._payload),Be(Ne,Oe,Te,Ze)}if(H(Te)||V(Te))return Qt!==null?null:Qe(Ne,Oe,Te,Ze,null);if(typeof Te.then=="function")return Be(Ne,Oe,ym(Te),Ze);if(Te.$$typeof===E)return Be(Ne,Oe,om(Ne,Te),Ze);xm(Ne,Te)}return null}function Ve(Ne,Oe,Te,Ze,Qt){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number"||typeof Ze=="bigint")return Ne=Ne.get(Te)||null,re(Oe,Ne,""+Ze,Qt);if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case v:return Ne=Ne.get(Ze.key===null?Te:Ze.key)||null,pe(Oe,Ne,Ze,Qt);case b:return Ne=Ne.get(Ze.key===null?Te:Ze.key)||null,Pe(Oe,Ne,Ze,Qt);case P:var Pn=Ze._init;return Ze=Pn(Ze._payload),Ve(Ne,Oe,Te,Ze,Qt)}if(H(Ze)||V(Ze))return Ne=Ne.get(Te)||null,Qe(Oe,Ne,Ze,Qt,null);if(typeof Ze.then=="function")return Ve(Ne,Oe,Te,ym(Ze),Qt);if(Ze.$$typeof===E)return Ve(Ne,Oe,Te,om(Oe,Ze),Qt);xm(Oe,Ze)}return null}function vn(Ne,Oe,Te,Ze){for(var Qt=null,Pn=null,rn=Oe,fn=Oe=0,ia=null;rn!==null&&fn<Te.length;fn++){rn.index>fn?(ia=rn,rn=null):ia=rn.sibling;var Gn=Be(Ne,rn,Te[fn],Ze);if(Gn===null){rn===null&&(rn=ia);break}i&&rn&&Gn.alternate===null&&c(Ne,rn),Oe=M(Gn,Oe,fn),Pn===null?Qt=Gn:Pn.sibling=Gn,Pn=Gn,rn=ia}if(fn===Te.length)return m(Ne,rn),Zn&&Yl(Ne,fn),Qt;if(rn===null){for(;fn<Te.length;fn++)rn=rt(Ne,Te[fn],Ze),rn!==null&&(Oe=M(rn,Oe,fn),Pn===null?Qt=rn:Pn.sibling=rn,Pn=rn);return Zn&&Yl(Ne,fn),Qt}for(rn=p(rn);fn<Te.length;fn++)ia=Ve(rn,Ne,fn,Te[fn],Ze),ia!==null&&(i&&ia.alternate!==null&&rn.delete(ia.key===null?fn:ia.key),Oe=M(ia,Oe,fn),Pn===null?Qt=ia:Pn.sibling=ia,Pn=ia);return i&&rn.forEach(function(pl){return c(Ne,pl)}),Zn&&Yl(Ne,fn),Qt}function cn(Ne,Oe,Te,Ze){if(Te==null)throw Error(r(151));for(var Qt=null,Pn=null,rn=Oe,fn=Oe=0,ia=null,Gn=Te.next();rn!==null&&!Gn.done;fn++,Gn=Te.next()){rn.index>fn?(ia=rn,rn=null):ia=rn.sibling;var pl=Be(Ne,rn,Gn.value,Ze);if(pl===null){rn===null&&(rn=ia);break}i&&rn&&pl.alternate===null&&c(Ne,rn),Oe=M(pl,Oe,fn),Pn===null?Qt=pl:Pn.sibling=pl,Pn=pl,rn=ia}if(Gn.done)return m(Ne,rn),Zn&&Yl(Ne,fn),Qt;if(rn===null){for(;!Gn.done;fn++,Gn=Te.next())Gn=rt(Ne,Gn.value,Ze),Gn!==null&&(Oe=M(Gn,Oe,fn),Pn===null?Qt=Gn:Pn.sibling=Gn,Pn=Gn);return Zn&&Yl(Ne,fn),Qt}for(rn=p(rn);!Gn.done;fn++,Gn=Te.next())Gn=Ve(rn,Ne,fn,Gn.value,Ze),Gn!==null&&(i&&Gn.alternate!==null&&rn.delete(Gn.key===null?fn:Gn.key),Oe=M(Gn,Oe,fn),Pn===null?Qt=Gn:Pn.sibling=Gn,Pn=Gn);return i&&rn.forEach(function(kk){return c(Ne,kk)}),Zn&&Yl(Ne,fn),Qt}function dr(Ne,Oe,Te,Ze){if(typeof Te=="object"&&Te!==null&&Te.type===x&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case v:e:{for(var Qt=Te.key;Oe!==null;){if(Oe.key===Qt){if(Qt=Te.type,Qt===x){if(Oe.tag===7){m(Ne,Oe.sibling),Ze=_(Oe,Te.props.children),Ze.return=Ne,Ne=Ze;break e}}else if(Oe.elementType===Qt||typeof Qt=="object"&&Qt!==null&&Qt.$$typeof===P&&kw(Qt)===Oe.type){m(Ne,Oe.sibling),Ze=_(Oe,Te.props),Ku(Ze,Te),Ze.return=Ne,Ne=Ze;break e}m(Ne,Oe);break}else c(Ne,Oe);Oe=Oe.sibling}Te.type===x?(Ze=Wl(Te.props.children,Ne.mode,Ze,Te.key),Ze.return=Ne,Ne=Ze):(Ze=nm(Te.type,Te.key,Te.props,null,Ne.mode,Ze),Ku(Ze,Te),Ze.return=Ne,Ne=Ze)}return G(Ne);case b:e:{for(Qt=Te.key;Oe!==null;){if(Oe.key===Qt)if(Oe.tag===4&&Oe.stateNode.containerInfo===Te.containerInfo&&Oe.stateNode.implementation===Te.implementation){m(Ne,Oe.sibling),Ze=_(Oe,Te.children||[]),Ze.return=Ne,Ne=Ze;break e}else{m(Ne,Oe);break}else c(Ne,Oe);Oe=Oe.sibling}Ze=Jv(Te,Ne.mode,Ze),Ze.return=Ne,Ne=Ze}return G(Ne);case P:return Qt=Te._init,Te=Qt(Te._payload),dr(Ne,Oe,Te,Ze)}if(H(Te))return vn(Ne,Oe,Te,Ze);if(V(Te)){if(Qt=V(Te),typeof Qt!="function")throw Error(r(150));return Te=Qt.call(Te),cn(Ne,Oe,Te,Ze)}if(typeof Te.then=="function")return dr(Ne,Oe,ym(Te),Ze);if(Te.$$typeof===E)return dr(Ne,Oe,om(Ne,Te),Ze);xm(Ne,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint"?(Te=""+Te,Oe!==null&&Oe.tag===6?(m(Ne,Oe.sibling),Ze=_(Oe,Te),Ze.return=Ne,Ne=Ze):(m(Ne,Oe),Ze=Zv(Te,Ne.mode,Ze),Ze.return=Ne,Ne=Ze),G(Ne)):m(Ne,Oe)}return function(Ne,Oe,Te,Ze){try{Vu=0;var Qt=dr(Ne,Oe,Te,Ze);return Js=null,Qt}catch(rn){if(rn===Du||rn===sm)throw rn;var Pn=Ba(29,rn,null,Ne.mode);return Pn.lanes=Ze,Pn.return=Ne,Pn}finally{}}}var ec=Aw(!0),zw=Aw(!1),oi=K(null),Gi=null;function nl(i){var c=i.alternate;Y(Qr,Qr.current&1),Y(oi,i),Gi===null&&(c===null||Gs.current!==null||c.memoizedState!==null)&&(Gi=i)}function Lw(i){if(i.tag===22){if(Y(Qr,Qr.current),Y(oi,i),Gi===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(Gi=i)}}else rl()}function rl(){Y(Qr,Qr.current),Y(oi,oi.current)}function So(i){q(oi),Gi===i&&(Gi=null),q(Qr)}var Qr=K(0);function Sm(i){for(var c=i;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||Sb(m)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function jp(i,c,m,p){c=i.memoizedState,m=m(p,c),m=m==null?c:h({},c,m),i.memoizedState=m,i.lanes===0&&(i.updateQueue.baseState=m)}var Tp={enqueueSetState:function(i,c,m){i=i._reactInternals;var p=Ua(),_=Jo(p);_.payload=c,m!=null&&(_.callback=m),c=el(i,_,p),c!==null&&(Wa(c,i,p),ku(c,i,p))},enqueueReplaceState:function(i,c,m){i=i._reactInternals;var p=Ua(),_=Jo(p);_.tag=1,_.payload=c,m!=null&&(_.callback=m),c=el(i,_,p),c!==null&&(Wa(c,i,p),ku(c,i,p))},enqueueForceUpdate:function(i,c){i=i._reactInternals;var m=Ua(),p=Jo(m);p.tag=2,c!=null&&(p.callback=c),c=el(i,p,m),c!==null&&(Wa(c,i,m),ku(c,i,m))}};function Hw(i,c,m,p,_,M,G){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,M,G):c.prototype&&c.prototype.isPureReactComponent?!_u(m,p)||!_u(_,M):!0}function Bw(i,c,m,p){i=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,p),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,p),c.state!==i&&Tp.enqueueReplaceState(c,c.state,null)}function ts(i,c){var m=c;if("ref"in c){m={};for(var p in c)p!=="ref"&&(m[p]=c[p])}if(i=i.defaultProps){m===c&&(m=h({},m));for(var _ in i)m[_]===void 0&&(m[_]=i[_])}return m}var Cm=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function Fw(i){Cm(i)}function Vw(i){console.error(i)}function Kw(i){Cm(i)}function wm(i,c){try{var m=i.onUncaughtError;m(c.value,{componentStack:c.stack})}catch(p){setTimeout(function(){throw p})}}function Uw(i,c,m){try{var p=i.onCaughtError;p(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function Dp(i,c,m){return m=Jo(m),m.tag=3,m.payload={element:null},m.callback=function(){wm(i,c)},m}function Ww(i){return i=Jo(i),i.tag=3,i}function qw(i,c,m,p){var _=m.type.getDerivedStateFromError;if(typeof _=="function"){var M=p.value;i.payload=function(){return _(M)},i.callback=function(){Uw(c,m,p)}}var G=m.stateNode;G!==null&&typeof G.componentDidCatch=="function"&&(i.callback=function(){Uw(c,m,p),typeof _!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var re=p.stack;this.componentDidCatch(p.value,{componentStack:re!==null?re:""})})}function k4(i,c,m,p,_){if(m.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(c=m.alternate,c!==null&&Mu(c,m,_,!0),m=oi.current,m!==null){switch(m.tag){case 13:return Gi===null?ab():m.alternate===null&&Tr===0&&(Tr=3),m.flags&=-257,m.flags|=65536,m.lanes=_,p===cp?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([p]):c.add(p),ob(i,p,_)),!1;case 22:return m.flags|=65536,p===cp?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([p])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([p]):m.add(p)),ob(i,p,_)),!1}throw Error(r(435,m.tag))}return ob(i,p,_),ab(),!1}if(Zn)return c=oi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=_,p!==np&&(i=Error(r(422),{cause:p}),Nu(ni(i,m)))):(p!==np&&(c=Error(r(423),{cause:p}),Nu(ni(c,m))),i=i.current.alternate,i.flags|=65536,_&=-_,i.lanes|=_,p=ni(p,m),_=Dp(i.stateNode,p,_),fp(i,_),Tr!==4&&(Tr=2)),!1;var M=Error(r(520),{cause:p});if(M=ni(M,m),Qu===null?Qu=[M]:Qu.push(M),Tr!==4&&(Tr=2),c===null)return!0;p=ni(p,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,i=_&-_,m.lanes|=i,i=Dp(m.stateNode,p,i),fp(m,i),!1;case 1:if(c=m.type,M=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(cl===null||!cl.has(M))))return m.flags|=65536,_&=-_,m.lanes|=_,_=Ww(_),qw(_,i,m,p),fp(m,_),!1}m=m.return}while(m!==null);return!1}var Yw=Error(r(461)),ra=!1;function da(i,c,m,p){c.child=i===null?zw(c,null,m,p):ec(c,i.child,m,p)}function Gw(i,c,m,p,_){m=m.render;var M=c.ref;if("ref"in p){var G={};for(var re in p)re!=="ref"&&(G[re]=p[re])}else G=p;return Zl(c),p=pp(i,c,m,G,M,_),re=bp(),i!==null&&!ra?(yp(i,c,_),Co(i,c,_)):(Zn&&re&&ep(c),c.flags|=1,da(i,c,p,_),c.child)}function Xw(i,c,m,p,_){if(i===null){var M=m.type;return typeof M=="function"&&!Qv(M)&&M.defaultProps===void 0&&m.compare===null?(c.tag=15,c.type=M,Qw(i,c,M,p,_)):(i=nm(m.type,null,p,c,c.mode,_),i.ref=c.ref,i.return=c,c.child=i)}if(M=i.child,!Fp(i,_)){var G=M.memoizedProps;if(m=m.compare,m=m!==null?m:_u,m(G,p)&&i.ref===c.ref)return Co(i,c,_)}return c.flags|=1,i=go(M,p),i.ref=c.ref,i.return=c,c.child=i}function Qw(i,c,m,p,_){if(i!==null){var M=i.memoizedProps;if(_u(M,p)&&i.ref===c.ref)if(ra=!1,c.pendingProps=p=M,Fp(i,_))(i.flags&131072)!==0&&(ra=!0);else return c.lanes=i.lanes,Co(i,c,_)}return Pp(i,c,m,p,_)}function Zw(i,c,m){var p=c.pendingProps,_=p.children,M=i!==null?i.memoizedState:null;if(p.mode==="hidden"){if((c.flags&128)!==0){if(p=M!==null?M.baseLanes|m:m,i!==null){for(_=c.child=i.child,M=0;_!==null;)M=M|_.lanes|_.childLanes,_=_.sibling;c.childLanes=M&~p}else c.childLanes=0,c.child=null;return Jw(i,c,p,m)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},i!==null&&lm(c,M!==null?M.cachePool:null),M!==null?Q1(c,M):hp(),Lw(c);else return c.lanes=c.childLanes=536870912,Jw(i,c,M!==null?M.baseLanes|m:m,m)}else M!==null?(lm(c,M.cachePool),Q1(c,M),rl(),c.memoizedState=null):(i!==null&&lm(c,null),hp(),rl());return da(i,c,_,m),c.child}function Jw(i,c,m,p){var _=sp();return _=_===null?null:{parent:Xr._currentValue,pool:_},c.memoizedState={baseLanes:m,cachePool:_},i!==null&&lm(c,null),hp(),Lw(c),i!==null&&Mu(i,c,p,!0),null}function $m(i,c){var m=c.ref;if(m===null)i!==null&&i.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(i===null||i.ref!==m)&&(c.flags|=4194816)}}function Pp(i,c,m,p,_){return Zl(c),m=pp(i,c,m,p,void 0,_),p=bp(),i!==null&&!ra?(yp(i,c,_),Co(i,c,_)):(Zn&&p&&ep(c),c.flags|=1,da(i,c,m,_),c.child)}function e$(i,c,m,p,_,M){return Zl(c),c.updateQueue=null,m=J1(c,p,m,_),Z1(i),p=bp(),i!==null&&!ra?(yp(i,c,M),Co(i,c,M)):(Zn&&p&&ep(c),c.flags|=1,da(i,c,m,M),c.child)}function t$(i,c,m,p,_){if(Zl(c),c.stateNode===null){var M=Ks,G=m.contextType;typeof G=="object"&&G!==null&&(M=Sa(G)),M=new m(p,M),c.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=Tp,c.stateNode=M,M._reactInternals=c,M=c.stateNode,M.props=p,M.state=c.memoizedState,M.refs={},up(c),G=m.contextType,M.context=typeof G=="object"&&G!==null?Sa(G):Ks,M.state=c.memoizedState,G=m.getDerivedStateFromProps,typeof G=="function"&&(jp(c,m,G,p),M.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(G=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),G!==M.state&&Tp.enqueueReplaceState(M,M.state,null),zu(c,p,M,_),Au(),M.state=c.memoizedState),typeof M.componentDidMount=="function"&&(c.flags|=4194308),p=!0}else if(i===null){M=c.stateNode;var re=c.memoizedProps,pe=ts(m,re);M.props=pe;var Pe=M.context,Qe=m.contextType;G=Ks,typeof Qe=="object"&&Qe!==null&&(G=Sa(Qe));var rt=m.getDerivedStateFromProps;Qe=typeof rt=="function"||typeof M.getSnapshotBeforeUpdate=="function",re=c.pendingProps!==re,Qe||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(re||Pe!==G)&&Bw(c,M,p,G),Zo=!1;var Be=c.memoizedState;M.state=Be,zu(c,p,M,_),Au(),Pe=c.memoizedState,re||Be!==Pe||Zo?(typeof rt=="function"&&(jp(c,m,rt,p),Pe=c.memoizedState),(pe=Zo||Hw(c,m,pe,p,Be,Pe,G))?(Qe||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(c.flags|=4194308)):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=p,c.memoizedState=Pe),M.props=p,M.state=Pe,M.context=G,p=pe):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),p=!1)}else{M=c.stateNode,dp(i,c),G=c.memoizedProps,Qe=ts(m,G),M.props=Qe,rt=c.pendingProps,Be=M.context,Pe=m.contextType,pe=Ks,typeof Pe=="object"&&Pe!==null&&(pe=Sa(Pe)),re=m.getDerivedStateFromProps,(Pe=typeof re=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(G!==rt||Be!==pe)&&Bw(c,M,p,pe),Zo=!1,Be=c.memoizedState,M.state=Be,zu(c,p,M,_),Au();var Ve=c.memoizedState;G!==rt||Be!==Ve||Zo||i!==null&&i.dependencies!==null&&im(i.dependencies)?(typeof re=="function"&&(jp(c,m,re,p),Ve=c.memoizedState),(Qe=Zo||Hw(c,m,Qe,p,Be,Ve,pe)||i!==null&&i.dependencies!==null&&im(i.dependencies))?(Pe||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(p,Ve,pe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(p,Ve,pe)),typeof M.componentDidUpdate=="function"&&(c.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof M.componentDidUpdate!="function"||G===i.memoizedProps&&Be===i.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||G===i.memoizedProps&&Be===i.memoizedState||(c.flags|=1024),c.memoizedProps=p,c.memoizedState=Ve),M.props=p,M.state=Ve,M.context=pe,p=Qe):(typeof M.componentDidUpdate!="function"||G===i.memoizedProps&&Be===i.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||G===i.memoizedProps&&Be===i.memoizedState||(c.flags|=1024),p=!1)}return M=p,$m(i,c),p=(c.flags&128)!==0,M||p?(M=c.stateNode,m=p&&typeof m.getDerivedStateFromError!="function"?null:M.render(),c.flags|=1,i!==null&&p?(c.child=ec(c,i.child,null,_),c.child=ec(c,null,m,_)):da(i,c,m,_),c.memoizedState=M.state,i=c.child):i=Co(i,c,_),i}function n$(i,c,m,p){return Ru(),c.flags|=256,da(i,c,m,p),c.child}var kp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ap(i){return{baseLanes:i,cachePool:V1()}}function zp(i,c,m){return i=i!==null?i.childLanes&~m:0,c&&(i|=li),i}function r$(i,c,m){var p=c.pendingProps,_=!1,M=(c.flags&128)!==0,G;if((G=M)||(G=i!==null&&i.memoizedState===null?!1:(Qr.current&2)!==0),G&&(_=!0,c.flags&=-129),G=(c.flags&32)!==0,c.flags&=-33,i===null){if(Zn){if(_?nl(c):rl(),Zn){var re=jr,pe;if(pe=re){e:{for(pe=re,re=Yi;pe.nodeType!==8;){if(!re){re=null;break e}if(pe=Oi(pe.nextSibling),pe===null){re=null;break e}}re=pe}re!==null?(c.memoizedState={dehydrated:re,treeContext:ql!==null?{id:vo,overflow:po}:null,retryLane:536870912,hydrationErrors:null},pe=Ba(18,null,null,0),pe.stateNode=re,pe.return=c,c.child=pe,Na=c,jr=null,pe=!0):pe=!1}pe||Xl(c)}if(re=c.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return Sb(re)?c.lanes=32:c.lanes=536870912,null;So(c)}return re=p.children,p=p.fallback,_?(rl(),_=c.mode,re=Em({mode:"hidden",children:re},_),p=Wl(p,_,m,null),re.return=c,p.return=c,re.sibling=p,c.child=re,_=c.child,_.memoizedState=Ap(m),_.childLanes=zp(i,G,m),c.memoizedState=kp,p):(nl(c),Lp(c,re))}if(pe=i.memoizedState,pe!==null&&(re=pe.dehydrated,re!==null)){if(M)c.flags&256?(nl(c),c.flags&=-257,c=Hp(i,c,m)):c.memoizedState!==null?(rl(),c.child=i.child,c.flags|=128,c=null):(rl(),_=p.fallback,re=c.mode,p=Em({mode:"visible",children:p.children},re),_=Wl(_,re,m,null),_.flags|=2,p.return=c,_.return=c,p.sibling=_,c.child=p,ec(c,i.child,null,m),p=c.child,p.memoizedState=Ap(m),p.childLanes=zp(i,G,m),c.memoizedState=kp,c=_);else if(nl(c),Sb(re)){if(G=re.nextSibling&&re.nextSibling.dataset,G)var Pe=G.dgst;G=Pe,p=Error(r(419)),p.stack="",p.digest=G,Nu({value:p,source:null,stack:null}),c=Hp(i,c,m)}else if(ra||Mu(i,c,m,!1),G=(m&i.childLanes)!==0,ra||G){if(G=Cr,G!==null&&(p=m&-m,p=(p&42)!==0?1:gt(p),p=(p&(G.suspendedLanes|m))!==0?0:p,p!==0&&p!==pe.retryLane))throw pe.retryLane=p,Vs(i,p),Wa(G,i,p),Yw;re.data==="$?"||ab(),c=Hp(i,c,m)}else re.data==="$?"?(c.flags|=192,c.child=i.child,c=null):(i=pe.treeContext,jr=Oi(re.nextSibling),Na=c,Zn=!0,Gl=null,Yi=!1,i!==null&&(ai[ii++]=vo,ai[ii++]=po,ai[ii++]=ql,vo=i.id,po=i.overflow,ql=c),c=Lp(c,p.children),c.flags|=4096);return c}return _?(rl(),_=p.fallback,re=c.mode,pe=i.child,Pe=pe.sibling,p=go(pe,{mode:"hidden",children:p.children}),p.subtreeFlags=pe.subtreeFlags&65011712,Pe!==null?_=go(Pe,_):(_=Wl(_,re,m,null),_.flags|=2),_.return=c,p.return=c,p.sibling=_,c.child=p,p=_,_=c.child,re=i.child.memoizedState,re===null?re=Ap(m):(pe=re.cachePool,pe!==null?(Pe=Xr._currentValue,pe=pe.parent!==Pe?{parent:Pe,pool:Pe}:pe):pe=V1(),re={baseLanes:re.baseLanes|m,cachePool:pe}),_.memoizedState=re,_.childLanes=zp(i,G,m),c.memoizedState=kp,p):(nl(c),m=i.child,i=m.sibling,m=go(m,{mode:"visible",children:p.children}),m.return=c,m.sibling=null,i!==null&&(G=c.deletions,G===null?(c.deletions=[i],c.flags|=16):G.push(i)),c.child=m,c.memoizedState=null,m)}function Lp(i,c){return c=Em({mode:"visible",children:c},i.mode),c.return=i,i.child=c}function Em(i,c){return i=Ba(22,i,null,c),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Hp(i,c,m){return ec(c,i.child,null,m),i=Lp(c,c.pendingProps.children),i.flags|=2,c.memoizedState=null,i}function a$(i,c,m){i.lanes|=c;var p=i.alternate;p!==null&&(p.lanes|=c),ap(i.return,c,m)}function Bp(i,c,m,p,_){var M=i.memoizedState;M===null?i.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:p,tail:m,tailMode:_}:(M.isBackwards=c,M.rendering=null,M.renderingStartTime=0,M.last=p,M.tail=m,M.tailMode=_)}function i$(i,c,m){var p=c.pendingProps,_=p.revealOrder,M=p.tail;if(da(i,c,p.children,m),p=Qr.current,(p&2)!==0)p=p&1|2,c.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=c.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&a$(i,m,c);else if(i.tag===19)a$(i,m,c);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===c)break e;for(;i.sibling===null;){if(i.return===null||i.return===c)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}switch(Y(Qr,p),_){case"forwards":for(m=c.child,_=null;m!==null;)i=m.alternate,i!==null&&Sm(i)===null&&(_=m),m=m.sibling;m=_,m===null?(_=c.child,c.child=null):(_=m.sibling,m.sibling=null),Bp(c,!1,_,m,M);break;case"backwards":for(m=null,_=c.child,c.child=null;_!==null;){if(i=_.alternate,i!==null&&Sm(i)===null){c.child=_;break}i=_.sibling,_.sibling=m,m=_,_=i}Bp(c,!0,m,null,M);break;case"together":Bp(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Co(i,c,m){if(i!==null&&(c.dependencies=i.dependencies),sl|=c.lanes,(m&c.childLanes)===0)if(i!==null){if(Mu(i,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(i!==null&&c.child!==i.child)throw Error(r(153));if(c.child!==null){for(i=c.child,m=go(i,i.pendingProps),c.child=m,m.return=c;i.sibling!==null;)i=i.sibling,m=m.sibling=go(i,i.pendingProps),m.return=c;m.sibling=null}return c.child}function Fp(i,c){return(i.lanes&c)!==0?!0:(i=i.dependencies,!!(i!==null&&im(i)))}function A4(i,c,m){switch(c.tag){case 3:J(c,c.stateNode.containerInfo),Qo(c,Xr,i.memoizedState.cache),Ru();break;case 27:case 5:he(c);break;case 4:J(c,c.stateNode.containerInfo);break;case 10:Qo(c,c.type,c.memoizedProps.value);break;case 13:var p=c.memoizedState;if(p!==null)return p.dehydrated!==null?(nl(c),c.flags|=128,null):(m&c.child.childLanes)!==0?r$(i,c,m):(nl(c),i=Co(i,c,m),i!==null?i.sibling:null);nl(c);break;case 19:var _=(i.flags&128)!==0;if(p=(m&c.childLanes)!==0,p||(Mu(i,c,m,!1),p=(m&c.childLanes)!==0),_){if(p)return i$(i,c,m);c.flags|=128}if(_=c.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),Y(Qr,Qr.current),p)break;return null;case 22:case 23:return c.lanes=0,Zw(i,c,m);case 24:Qo(c,Xr,i.memoizedState.cache)}return Co(i,c,m)}function o$(i,c,m){if(i!==null)if(i.memoizedProps!==c.pendingProps)ra=!0;else{if(!Fp(i,m)&&(c.flags&128)===0)return ra=!1,A4(i,c,m);ra=(i.flags&131072)!==0}else ra=!1,Zn&&(c.flags&1048576)!==0&&k1(c,am,c.index);switch(c.lanes=0,c.tag){case 16:e:{i=c.pendingProps;var p=c.elementType,_=p._init;if(p=_(p._payload),c.type=p,typeof p=="function")Qv(p)?(i=ts(p,i),c.tag=1,c=t$(null,c,p,i,m)):(c.tag=0,c=Pp(null,c,p,i,m));else{if(p!=null){if(_=p.$$typeof,_===I){c.tag=11,c=Gw(null,c,p,i,m);break e}else if(_===T){c.tag=14,c=Xw(null,c,p,i,m);break e}}throw c=L(p)||p,Error(r(306,c,""))}}return c;case 0:return Pp(i,c,c.type,c.pendingProps,m);case 1:return p=c.type,_=ts(p,c.pendingProps),t$(i,c,p,_,m);case 3:e:{if(J(c,c.stateNode.containerInfo),i===null)throw Error(r(387));p=c.pendingProps;var M=c.memoizedState;_=M.element,dp(i,c),zu(c,p,null,m);var G=c.memoizedState;if(p=G.cache,Qo(c,Xr,p),p!==M.cache&&ip(c,[Xr],m,!0),Au(),p=G.element,M.isDehydrated)if(M={element:p,isDehydrated:!1,cache:G.cache},c.updateQueue.baseState=M,c.memoizedState=M,c.flags&256){c=n$(i,c,p,m);break e}else if(p!==_){_=ni(Error(r(424)),c),Nu(_),c=n$(i,c,p,m);break e}else{switch(i=c.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(jr=Oi(i.firstChild),Na=c,Zn=!0,Gl=null,Yi=!0,m=zw(c,null,p,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Ru(),p===_){c=Co(i,c,m);break e}da(i,c,p,m)}c=c.child}return c;case 26:return $m(i,c),i===null?(m=uE(c.type,null,c.pendingProps,null))?c.memoizedState=m:Zn||(m=c.type,i=c.pendingProps,p=Lm(Z.current).createElement(m),p[bt]=c,p[Ge]=i,ma(p,m,i),Ut(p),c.stateNode=p):c.memoizedState=uE(c.type,i.memoizedProps,c.pendingProps,i.memoizedState),null;case 27:return he(c),i===null&&Zn&&(p=c.stateNode=lE(c.type,c.pendingProps,Z.current),Na=c,Yi=!0,_=jr,fl(c.type)?(Cb=_,jr=Oi(p.firstChild)):jr=_),da(i,c,c.pendingProps.children,m),$m(i,c),i===null&&(c.flags|=4194304),c.child;case 5:return i===null&&Zn&&((_=p=jr)&&(p=dk(p,c.type,c.pendingProps,Yi),p!==null?(c.stateNode=p,Na=c,jr=Oi(p.firstChild),Yi=!1,_=!0):_=!1),_||Xl(c)),he(c),_=c.type,M=c.pendingProps,G=i!==null?i.memoizedProps:null,p=M.children,bb(_,M)?p=null:G!==null&&bb(_,G)&&(c.flags|=32),c.memoizedState!==null&&(_=pp(i,c,R4,null,null,m),od._currentValue=_),$m(i,c),da(i,c,p,m),c.child;case 6:return i===null&&Zn&&((i=m=jr)&&(m=fk(m,c.pendingProps,Yi),m!==null?(c.stateNode=m,Na=c,jr=null,i=!0):i=!1),i||Xl(c)),null;case 13:return r$(i,c,m);case 4:return J(c,c.stateNode.containerInfo),p=c.pendingProps,i===null?c.child=ec(c,null,p,m):da(i,c,p,m),c.child;case 11:return Gw(i,c,c.type,c.pendingProps,m);case 7:return da(i,c,c.pendingProps,m),c.child;case 8:return da(i,c,c.pendingProps.children,m),c.child;case 12:return da(i,c,c.pendingProps.children,m),c.child;case 10:return p=c.pendingProps,Qo(c,c.type,p.value),da(i,c,p.children,m),c.child;case 9:return _=c.type._context,p=c.pendingProps.children,Zl(c),_=Sa(_),p=p(_),c.flags|=1,da(i,c,p,m),c.child;case 14:return Xw(i,c,c.type,c.pendingProps,m);case 15:return Qw(i,c,c.type,c.pendingProps,m);case 19:return i$(i,c,m);case 31:return p=c.pendingProps,m=c.mode,p={mode:p.mode,children:p.children},i===null?(m=Em(p,m),m.ref=c.ref,c.child=m,m.return=c,c=m):(m=go(i.child,p),m.ref=c.ref,c.child=m,m.return=c,c=m),c;case 22:return Zw(i,c,m);case 24:return Zl(c),p=Sa(Xr),i===null?(_=sp(),_===null&&(_=Cr,M=op(),_.pooledCache=M,M.refCount++,M!==null&&(_.pooledCacheLanes|=m),_=M),c.memoizedState={parent:p,cache:_},up(c),Qo(c,Xr,_)):((i.lanes&m)!==0&&(dp(i,c),zu(c,null,null,m),Au()),_=i.memoizedState,M=c.memoizedState,_.parent!==p?(_={parent:p,cache:p},c.memoizedState=_,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=_),Qo(c,Xr,p)):(p=M.cache,Qo(c,Xr,p),p!==_.cache&&ip(c,[Xr],m,!0))),da(i,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function wo(i){i.flags|=4}function l$(i,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!gE(c)){if(c=oi.current,c!==null&&((Un&4194048)===Un?Gi!==null:(Un&62914560)!==Un&&(Un&536870912)===0||c!==Gi))throw Pu=cp,K1;i.flags|=8192}}function _m(i,c){c!==null&&(i.flags|=4),i.flags&16384&&(c=i.tag!==22?Dt():536870912,i.lanes|=c,ac|=c)}function Uu(i,c){if(!Zn)switch(i.tailMode){case"hidden":c=i.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?i.tail=null:m.sibling=null;break;case"collapsed":m=i.tail;for(var p=null;m!==null;)m.alternate!==null&&(p=m),m=m.sibling;p===null?c||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Nr(i){var c=i.alternate!==null&&i.alternate.child===i.child,m=0,p=0;if(c)for(var _=i.child;_!==null;)m|=_.lanes|_.childLanes,p|=_.subtreeFlags&65011712,p|=_.flags&65011712,_.return=i,_=_.sibling;else for(_=i.child;_!==null;)m|=_.lanes|_.childLanes,p|=_.subtreeFlags,p|=_.flags,_.return=i,_=_.sibling;return i.subtreeFlags|=p,i.childLanes=m,c}function z4(i,c,m){var p=c.pendingProps;switch(tp(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nr(c),null;case 1:return Nr(c),null;case 3:return m=c.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),yo(Xr),se(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(i===null||i.child===null)&&(Iu(c)?wo(c):i===null||i.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,L1())),Nr(c),null;case 26:return m=c.memoizedState,i===null?(wo(c),m!==null?(Nr(c),l$(c,m)):(Nr(c),c.flags&=-16777217)):m?m!==i.memoizedState?(wo(c),Nr(c),l$(c,m)):(Nr(c),c.flags&=-16777217):(i.memoizedProps!==p&&wo(c),Nr(c),c.flags&=-16777217),null;case 27:oe(c),m=Z.current;var _=c.type;if(i!==null&&c.stateNode!=null)i.memoizedProps!==p&&wo(c);else{if(!p){if(c.stateNode===null)throw Error(r(166));return Nr(c),null}i=W.current,Iu(c)?A1(c):(i=lE(_,p,m),c.stateNode=i,wo(c))}return Nr(c),null;case 5:if(oe(c),m=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==p&&wo(c);else{if(!p){if(c.stateNode===null)throw Error(r(166));return Nr(c),null}if(i=W.current,Iu(c))A1(c);else{switch(_=Lm(Z.current),i){case 1:i=_.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:i=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":i=_.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":i=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":i=_.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof p.is=="string"?_.createElement("select",{is:p.is}):_.createElement("select"),p.multiple?i.multiple=!0:p.size&&(i.size=p.size);break;default:i=typeof p.is=="string"?_.createElement(m,{is:p.is}):_.createElement(m)}}i[bt]=c,i[Ge]=p;e:for(_=c.child;_!==null;){if(_.tag===5||_.tag===6)i.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===c)break e;for(;_.sibling===null;){if(_.return===null||_.return===c)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}c.stateNode=i;e:switch(ma(i,m,p),m){case"button":case"input":case"select":case"textarea":i=!!p.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&wo(c)}}return Nr(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==p&&wo(c);else{if(typeof p!="string"&&c.stateNode===null)throw Error(r(166));if(i=Z.current,Iu(c)){if(i=c.stateNode,m=c.memoizedProps,p=null,_=Na,_!==null)switch(_.tag){case 27:case 5:p=_.memoizedProps}i[bt]=c,i=!!(i.nodeValue===m||p!==null&&p.suppressHydrationWarning===!0||eE(i.nodeValue,m)),i||Xl(c)}else i=Lm(i).createTextNode(p),i[bt]=c,c.stateNode=i}return Nr(c),null;case 13:if(p=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(_=Iu(c),p!==null&&p.dehydrated!==null){if(i===null){if(!_)throw Error(r(318));if(_=c.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[bt]=c}else Ru(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Nr(c),_=!1}else _=L1(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=_),_=!0;if(!_)return c.flags&256?(So(c),c):(So(c),null)}if(So(c),(c.flags&128)!==0)return c.lanes=m,c;if(m=p!==null,i=i!==null&&i.memoizedState!==null,m){p=c.child,_=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(_=p.alternate.memoizedState.cachePool.pool);var M=null;p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(M=p.memoizedState.cachePool.pool),M!==_&&(p.flags|=2048)}return m!==i&&m&&(c.child.flags|=8192),_m(c,c.updateQueue),Nr(c),null;case 4:return se(),i===null&&mb(c.stateNode.containerInfo),Nr(c),null;case 10:return yo(c.type),Nr(c),null;case 19:if(q(Qr),_=c.memoizedState,_===null)return Nr(c),null;if(p=(c.flags&128)!==0,M=_.rendering,M===null)if(p)Uu(_,!1);else{if(Tr!==0||i!==null&&(i.flags&128)!==0)for(i=c.child;i!==null;){if(M=Sm(i),M!==null){for(c.flags|=128,Uu(_,!1),i=M.updateQueue,c.updateQueue=i,_m(c,i),c.subtreeFlags=0,i=m,m=c.child;m!==null;)P1(m,i),m=m.sibling;return Y(Qr,Qr.current&1|2),c.child}i=i.sibling}_.tail!==null&&xe()>Rm&&(c.flags|=128,p=!0,Uu(_,!1),c.lanes=4194304)}else{if(!p)if(i=Sm(M),i!==null){if(c.flags|=128,p=!0,i=i.updateQueue,c.updateQueue=i,_m(c,i),Uu(_,!0),_.tail===null&&_.tailMode==="hidden"&&!M.alternate&&!Zn)return Nr(c),null}else 2*xe()-_.renderingStartTime>Rm&&m!==536870912&&(c.flags|=128,p=!0,Uu(_,!1),c.lanes=4194304);_.isBackwards?(M.sibling=c.child,c.child=M):(i=_.last,i!==null?i.sibling=M:c.child=M,_.last=M)}return _.tail!==null?(c=_.tail,_.rendering=c,_.tail=c.sibling,_.renderingStartTime=xe(),c.sibling=null,i=Qr.current,Y(Qr,p?i&1|2:i&1),c):(Nr(c),null);case 22:case 23:return So(c),gp(),p=c.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(c.flags|=8192):p&&(c.flags|=8192),p?(m&536870912)!==0&&(c.flags&128)===0&&(Nr(c),c.subtreeFlags&6&&(c.flags|=8192)):Nr(c),m=c.updateQueue,m!==null&&_m(c,m.retryQueue),m=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),p=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==m&&(c.flags|=2048),i!==null&&q(Jl),null;case 24:return m=null,i!==null&&(m=i.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),yo(Xr),Nr(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function L4(i,c){switch(tp(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return yo(Xr),se(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return oe(c),null;case 13:if(So(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Ru()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return q(Qr),null;case 4:return se(),null;case 10:return yo(c.type),null;case 22:case 23:return So(c),gp(),i!==null&&q(Jl),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return yo(Xr),null;case 25:return null;default:return null}}function s$(i,c){switch(tp(c),c.tag){case 3:yo(Xr),se();break;case 26:case 27:case 5:oe(c);break;case 4:se();break;case 13:So(c);break;case 19:q(Qr);break;case 10:yo(c.type);break;case 22:case 23:So(c),gp(),i!==null&&q(Jl);break;case 24:yo(Xr)}}function Wu(i,c){try{var m=c.updateQueue,p=m!==null?m.lastEffect:null;if(p!==null){var _=p.next;m=_;do{if((m.tag&i)===i){p=void 0;var M=m.create,G=m.inst;p=M(),G.destroy=p}m=m.next}while(m!==_)}}catch(re){vr(c,c.return,re)}}function al(i,c,m){try{var p=c.updateQueue,_=p!==null?p.lastEffect:null;if(_!==null){var M=_.next;p=M;do{if((p.tag&i)===i){var G=p.inst,re=G.destroy;if(re!==void 0){G.destroy=void 0,_=c;var pe=m,Pe=re;try{Pe()}catch(Qe){vr(_,pe,Qe)}}}p=p.next}while(p!==M)}}catch(Qe){vr(c,c.return,Qe)}}function c$(i){var c=i.updateQueue;if(c!==null){var m=i.stateNode;try{X1(c,m)}catch(p){vr(i,i.return,p)}}}function u$(i,c,m){m.props=ts(i.type,i.memoizedProps),m.state=i.memoizedState;try{m.componentWillUnmount()}catch(p){vr(i,c,p)}}function qu(i,c){try{var m=i.ref;if(m!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof m=="function"?i.refCleanup=m(p):m.current=p}}catch(_){vr(i,c,_)}}function Xi(i,c){var m=i.ref,p=i.refCleanup;if(m!==null)if(typeof p=="function")try{p()}catch(_){vr(i,c,_)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(_){vr(i,c,_)}else m.current=null}function d$(i){var c=i.type,m=i.memoizedProps,p=i.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&p.focus();break e;case"img":m.src?p.src=m.src:m.srcSet&&(p.srcset=m.srcSet)}}catch(_){vr(i,i.return,_)}}function Vp(i,c,m){try{var p=i.stateNode;ok(p,i.type,m,c),p[Ge]=c}catch(_){vr(i,i.return,_)}}function f$(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&fl(i.type)||i.tag===4}function Kp(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||f$(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&fl(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Up(i,c,m){var p=i.tag;if(p===5||p===6)i=i.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(i,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(i),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=zm));else if(p!==4&&(p===27&&fl(i.type)&&(m=i.stateNode,c=null),i=i.child,i!==null))for(Up(i,c,m),i=i.sibling;i!==null;)Up(i,c,m),i=i.sibling}function Om(i,c,m){var p=i.tag;if(p===5||p===6)i=i.stateNode,c?m.insertBefore(i,c):m.appendChild(i);else if(p!==4&&(p===27&&fl(i.type)&&(m=i.stateNode),i=i.child,i!==null))for(Om(i,c,m),i=i.sibling;i!==null;)Om(i,c,m),i=i.sibling}function m$(i){var c=i.stateNode,m=i.memoizedProps;try{for(var p=i.type,_=c.attributes;_.length;)c.removeAttributeNode(_[0]);ma(c,p,m),c[bt]=i,c[Ge]=m}catch(M){vr(i,i.return,M)}}var $o=!1,Pr=!1,Wp=!1,h$=typeof WeakSet=="function"?WeakSet:Set,aa=null;function H4(i,c){if(i=i.containerInfo,vb=Um,i=E1(i),Kv(i)){if("selectionStart"in i)var m={start:i.selectionStart,end:i.selectionEnd};else e:{m=(m=i.ownerDocument)&&m.defaultView||window;var p=m.getSelection&&m.getSelection();if(p&&p.rangeCount!==0){m=p.anchorNode;var _=p.anchorOffset,M=p.focusNode;p=p.focusOffset;try{m.nodeType,M.nodeType}catch{m=null;break e}var G=0,re=-1,pe=-1,Pe=0,Qe=0,rt=i,Be=null;t:for(;;){for(var Ve;rt!==m||_!==0&&rt.nodeType!==3||(re=G+_),rt!==M||p!==0&&rt.nodeType!==3||(pe=G+p),rt.nodeType===3&&(G+=rt.nodeValue.length),(Ve=rt.firstChild)!==null;)Be=rt,rt=Ve;for(;;){if(rt===i)break t;if(Be===m&&++Pe===_&&(re=G),Be===M&&++Qe===p&&(pe=G),(Ve=rt.nextSibling)!==null)break;rt=Be,Be=rt.parentNode}rt=Ve}m=re===-1||pe===-1?null:{start:re,end:pe}}else m=null}m=m||{start:0,end:0}}else m=null;for(pb={focusedElem:i,selectionRange:m},Um=!1,aa=c;aa!==null;)if(c=aa,i=c.child,(c.subtreeFlags&1024)!==0&&i!==null)i.return=c,aa=i;else for(;aa!==null;){switch(c=aa,M=c.alternate,i=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&M!==null){i=void 0,m=c,_=M.memoizedProps,M=M.memoizedState,p=m.stateNode;try{var vn=ts(m.type,_,m.elementType===m.type);i=p.getSnapshotBeforeUpdate(vn,M),p.__reactInternalSnapshotBeforeUpdate=i}catch(cn){vr(m,m.return,cn)}}break;case 3:if((i&1024)!==0){if(i=c.stateNode.containerInfo,m=i.nodeType,m===9)xb(i);else if(m===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":xb(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=c.sibling,i!==null){i.return=c.return,aa=i;break}aa=c.return}}function g$(i,c,m){var p=m.flags;switch(m.tag){case 0:case 11:case 15:il(i,m),p&4&&Wu(5,m);break;case 1:if(il(i,m),p&4)if(i=m.stateNode,c===null)try{i.componentDidMount()}catch(G){vr(m,m.return,G)}else{var _=ts(m.type,c.memoizedProps);c=c.memoizedState;try{i.componentDidUpdate(_,c,i.__reactInternalSnapshotBeforeUpdate)}catch(G){vr(m,m.return,G)}}p&64&&c$(m),p&512&&qu(m,m.return);break;case 3:if(il(i,m),p&64&&(i=m.updateQueue,i!==null)){if(c=null,m.child!==null)switch(m.child.tag){case 27:case 5:c=m.child.stateNode;break;case 1:c=m.child.stateNode}try{X1(i,c)}catch(G){vr(m,m.return,G)}}break;case 27:c===null&&p&4&&m$(m);case 26:case 5:il(i,m),c===null&&p&4&&d$(m),p&512&&qu(m,m.return);break;case 12:il(i,m);break;case 13:il(i,m),p&4&&b$(i,m),p&64&&(i=m.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(m=G4.bind(null,m),mk(i,m))));break;case 22:if(p=m.memoizedState!==null||$o,!p){c=c!==null&&c.memoizedState!==null||Pr,_=$o;var M=Pr;$o=p,(Pr=c)&&!M?ol(i,m,(m.subtreeFlags&8772)!==0):il(i,m),$o=_,Pr=M}break;case 30:break;default:il(i,m)}}function v$(i){var c=i.alternate;c!==null&&(i.alternate=null,v$(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&xt(c)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Er=null,Pa=!1;function Eo(i,c,m){for(m=m.child;m!==null;)p$(i,c,m),m=m.sibling}function p$(i,c,m){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(De,m)}catch{}switch(m.tag){case 26:Pr||Xi(m,c),Eo(i,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Pr||Xi(m,c);var p=Er,_=Pa;fl(m.type)&&(Er=m.stateNode,Pa=!1),Eo(i,c,m),nd(m.stateNode),Er=p,Pa=_;break;case 5:Pr||Xi(m,c);case 6:if(p=Er,_=Pa,Er=null,Eo(i,c,m),Er=p,Pa=_,Er!==null)if(Pa)try{(Er.nodeType===9?Er.body:Er.nodeName==="HTML"?Er.ownerDocument.body:Er).removeChild(m.stateNode)}catch(M){vr(m,c,M)}else try{Er.removeChild(m.stateNode)}catch(M){vr(m,c,M)}break;case 18:Er!==null&&(Pa?(i=Er,iE(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,m.stateNode),ud(i)):iE(Er,m.stateNode));break;case 4:p=Er,_=Pa,Er=m.stateNode.containerInfo,Pa=!0,Eo(i,c,m),Er=p,Pa=_;break;case 0:case 11:case 14:case 15:Pr||al(2,m,c),Pr||al(4,m,c),Eo(i,c,m);break;case 1:Pr||(Xi(m,c),p=m.stateNode,typeof p.componentWillUnmount=="function"&&u$(m,c,p)),Eo(i,c,m);break;case 21:Eo(i,c,m);break;case 22:Pr=(p=Pr)||m.memoizedState!==null,Eo(i,c,m),Pr=p;break;default:Eo(i,c,m)}}function b$(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ud(i)}catch(m){vr(c,c.return,m)}}function B4(i){switch(i.tag){case 13:case 19:var c=i.stateNode;return c===null&&(c=i.stateNode=new h$),c;case 22:return i=i.stateNode,c=i._retryCache,c===null&&(c=i._retryCache=new h$),c;default:throw Error(r(435,i.tag))}}function qp(i,c){var m=B4(i);c.forEach(function(p){var _=X4.bind(null,i,p);m.has(p)||(m.add(p),p.then(_,_))})}function Fa(i,c){var m=c.deletions;if(m!==null)for(var p=0;p<m.length;p++){var _=m[p],M=i,G=c,re=G;e:for(;re!==null;){switch(re.tag){case 27:if(fl(re.type)){Er=re.stateNode,Pa=!1;break e}break;case 5:Er=re.stateNode,Pa=!1;break e;case 3:case 4:Er=re.stateNode.containerInfo,Pa=!0;break e}re=re.return}if(Er===null)throw Error(r(160));p$(M,G,_),Er=null,Pa=!1,M=_.alternate,M!==null&&(M.return=null),_.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)y$(c,i),c=c.sibling}var _i=null;function y$(i,c){var m=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Fa(c,i),Va(i),p&4&&(al(3,i,i.return),Wu(3,i),al(5,i,i.return));break;case 1:Fa(c,i),Va(i),p&512&&(Pr||m===null||Xi(m,m.return)),p&64&&$o&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(m=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=m===null?p:m.concat(p))));break;case 26:var _=_i;if(Fa(c,i),Va(i),p&512&&(Pr||m===null||Xi(m,m.return)),p&4){var M=m!==null?m.memoizedState:null;if(p=i.memoizedState,m===null)if(p===null)if(i.stateNode===null){e:{p=i.type,m=i.memoizedProps,_=_.ownerDocument||_;t:switch(p){case"title":M=_.getElementsByTagName("title")[0],(!M||M[wt]||M[bt]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=_.createElement(p),_.head.insertBefore(M,_.querySelector("head > title"))),ma(M,p,m),M[bt]=i,Ut(M),p=M;break e;case"link":var G=mE("link","href",_).get(p+(m.href||""));if(G){for(var re=0;re<G.length;re++)if(M=G[re],M.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&M.getAttribute("rel")===(m.rel==null?null:m.rel)&&M.getAttribute("title")===(m.title==null?null:m.title)&&M.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){G.splice(re,1);break t}}M=_.createElement(p),ma(M,p,m),_.head.appendChild(M);break;case"meta":if(G=mE("meta","content",_).get(p+(m.content||""))){for(re=0;re<G.length;re++)if(M=G[re],M.getAttribute("content")===(m.content==null?null:""+m.content)&&M.getAttribute("name")===(m.name==null?null:m.name)&&M.getAttribute("property")===(m.property==null?null:m.property)&&M.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&M.getAttribute("charset")===(m.charSet==null?null:m.charSet)){G.splice(re,1);break t}}M=_.createElement(p),ma(M,p,m),_.head.appendChild(M);break;default:throw Error(r(468,p))}M[bt]=i,Ut(M),p=M}i.stateNode=p}else hE(_,i.type,i.stateNode);else i.stateNode=fE(_,p,i.memoizedProps);else M!==p?(M===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):M.count--,p===null?hE(_,i.type,i.stateNode):fE(_,p,i.memoizedProps)):p===null&&i.stateNode!==null&&Vp(i,i.memoizedProps,m.memoizedProps)}break;case 27:Fa(c,i),Va(i),p&512&&(Pr||m===null||Xi(m,m.return)),m!==null&&p&4&&Vp(i,i.memoizedProps,m.memoizedProps);break;case 5:if(Fa(c,i),Va(i),p&512&&(Pr||m===null||Xi(m,m.return)),i.flags&32){_=i.stateNode;try{lr(_,"")}catch(Ve){vr(i,i.return,Ve)}}p&4&&i.stateNode!=null&&(_=i.memoizedProps,Vp(i,_,m!==null?m.memoizedProps:_)),p&1024&&(Wp=!0);break;case 6:if(Fa(c,i),Va(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,m=i.stateNode;try{m.nodeValue=p}catch(Ve){vr(i,i.return,Ve)}}break;case 3:if(Fm=null,_=_i,_i=Hm(c.containerInfo),Fa(c,i),_i=_,Va(i),p&4&&m!==null&&m.memoizedState.isDehydrated)try{ud(c.containerInfo)}catch(Ve){vr(i,i.return,Ve)}Wp&&(Wp=!1,x$(i));break;case 4:p=_i,_i=Hm(i.stateNode.containerInfo),Fa(c,i),Va(i),_i=p;break;case 12:Fa(c,i),Va(i);break;case 13:Fa(c,i),Va(i),i.child.flags&8192&&i.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Jp=xe()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,qp(i,p)));break;case 22:_=i.memoizedState!==null;var pe=m!==null&&m.memoizedState!==null,Pe=$o,Qe=Pr;if($o=Pe||_,Pr=Qe||pe,Fa(c,i),Pr=Qe,$o=Pe,Va(i),p&8192)e:for(c=i.stateNode,c._visibility=_?c._visibility&-2:c._visibility|1,_&&(m===null||pe||$o||Pr||ns(i)),m=null,c=i;;){if(c.tag===5||c.tag===26){if(m===null){pe=m=c;try{if(M=pe.stateNode,_)G=M.style,typeof G.setProperty=="function"?G.setProperty("display","none","important"):G.display="none";else{re=pe.stateNode;var rt=pe.memoizedProps.style,Be=rt!=null&&rt.hasOwnProperty("display")?rt.display:null;re.style.display=Be==null||typeof Be=="boolean"?"":(""+Be).trim()}}catch(Ve){vr(pe,pe.return,Ve)}}}else if(c.tag===6){if(m===null){pe=c;try{pe.stateNode.nodeValue=_?"":pe.memoizedProps}catch(Ve){vr(pe,pe.return,Ve)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===i)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break e;for(;c.sibling===null;){if(c.return===null||c.return===i)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}p&4&&(p=i.updateQueue,p!==null&&(m=p.retryQueue,m!==null&&(p.retryQueue=null,qp(i,m))));break;case 19:Fa(c,i),Va(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,qp(i,p)));break;case 30:break;case 21:break;default:Fa(c,i),Va(i)}}function Va(i){var c=i.flags;if(c&2){try{for(var m,p=i.return;p!==null;){if(f$(p)){m=p;break}p=p.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var _=m.stateNode,M=Kp(i);Om(i,M,_);break;case 5:var G=m.stateNode;m.flags&32&&(lr(G,""),m.flags&=-33);var re=Kp(i);Om(i,re,G);break;case 3:case 4:var pe=m.stateNode.containerInfo,Pe=Kp(i);Up(i,Pe,pe);break;default:throw Error(r(161))}}catch(Qe){vr(i,i.return,Qe)}i.flags&=-3}c&4096&&(i.flags&=-4097)}function x$(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var c=i;x$(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),i=i.sibling}}function il(i,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)g$(i,c.alternate,c),c=c.sibling}function ns(i){for(i=i.child;i!==null;){var c=i;switch(c.tag){case 0:case 11:case 14:case 15:al(4,c,c.return),ns(c);break;case 1:Xi(c,c.return);var m=c.stateNode;typeof m.componentWillUnmount=="function"&&u$(c,c.return,m),ns(c);break;case 27:nd(c.stateNode);case 26:case 5:Xi(c,c.return),ns(c);break;case 22:c.memoizedState===null&&ns(c);break;case 30:ns(c);break;default:ns(c)}i=i.sibling}}function ol(i,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var p=c.alternate,_=i,M=c,G=M.flags;switch(M.tag){case 0:case 11:case 15:ol(_,M,m),Wu(4,M);break;case 1:if(ol(_,M,m),p=M,_=p.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(Pe){vr(p,p.return,Pe)}if(p=M,_=p.updateQueue,_!==null){var re=p.stateNode;try{var pe=_.shared.hiddenCallbacks;if(pe!==null)for(_.shared.hiddenCallbacks=null,_=0;_<pe.length;_++)G1(pe[_],re)}catch(Pe){vr(p,p.return,Pe)}}m&&G&64&&c$(M),qu(M,M.return);break;case 27:m$(M);case 26:case 5:ol(_,M,m),m&&p===null&&G&4&&d$(M),qu(M,M.return);break;case 12:ol(_,M,m);break;case 13:ol(_,M,m),m&&G&4&&b$(_,M);break;case 22:M.memoizedState===null&&ol(_,M,m),qu(M,M.return);break;case 30:break;default:ol(_,M,m)}c=c.sibling}}function Yp(i,c){var m=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),i=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(i=c.memoizedState.cachePool.pool),i!==m&&(i!=null&&i.refCount++,m!=null&&ju(m))}function Gp(i,c){i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&ju(i))}function Qi(i,c,m,p){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)S$(i,c,m,p),c=c.sibling}function S$(i,c,m,p){var _=c.flags;switch(c.tag){case 0:case 11:case 15:Qi(i,c,m,p),_&2048&&Wu(9,c);break;case 1:Qi(i,c,m,p);break;case 3:Qi(i,c,m,p),_&2048&&(i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&ju(i)));break;case 12:if(_&2048){Qi(i,c,m,p),i=c.stateNode;try{var M=c.memoizedProps,G=M.id,re=M.onPostCommit;typeof re=="function"&&re(G,c.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(pe){vr(c,c.return,pe)}}else Qi(i,c,m,p);break;case 13:Qi(i,c,m,p);break;case 23:break;case 22:M=c.stateNode,G=c.alternate,c.memoizedState!==null?M._visibility&2?Qi(i,c,m,p):Yu(i,c):M._visibility&2?Qi(i,c,m,p):(M._visibility|=2,tc(i,c,m,p,(c.subtreeFlags&10256)!==0)),_&2048&&Yp(G,c);break;case 24:Qi(i,c,m,p),_&2048&&Gp(c.alternate,c);break;default:Qi(i,c,m,p)}}function tc(i,c,m,p,_){for(_=_&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var M=i,G=c,re=m,pe=p,Pe=G.flags;switch(G.tag){case 0:case 11:case 15:tc(M,G,re,pe,_),Wu(8,G);break;case 23:break;case 22:var Qe=G.stateNode;G.memoizedState!==null?Qe._visibility&2?tc(M,G,re,pe,_):Yu(M,G):(Qe._visibility|=2,tc(M,G,re,pe,_)),_&&Pe&2048&&Yp(G.alternate,G);break;case 24:tc(M,G,re,pe,_),_&&Pe&2048&&Gp(G.alternate,G);break;default:tc(M,G,re,pe,_)}c=c.sibling}}function Yu(i,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=i,p=c,_=p.flags;switch(p.tag){case 22:Yu(m,p),_&2048&&Yp(p.alternate,p);break;case 24:Yu(m,p),_&2048&&Gp(p.alternate,p);break;default:Yu(m,p)}c=c.sibling}}var Gu=8192;function nc(i){if(i.subtreeFlags&Gu)for(i=i.child;i!==null;)C$(i),i=i.sibling}function C$(i){switch(i.tag){case 26:nc(i),i.flags&Gu&&i.memoizedState!==null&&_k(_i,i.memoizedState,i.memoizedProps);break;case 5:nc(i);break;case 3:case 4:var c=_i;_i=Hm(i.stateNode.containerInfo),nc(i),_i=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=Gu,Gu=16777216,nc(i),Gu=c):nc(i));break;default:nc(i)}}function w$(i){var c=i.alternate;if(c!==null&&(i=c.child,i!==null)){c.child=null;do c=i.sibling,i.sibling=null,i=c;while(i!==null)}}function Xu(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var p=c[m];aa=p,E$(p,i)}w$(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)$$(i),i=i.sibling}function $$(i){switch(i.tag){case 0:case 11:case 15:Xu(i),i.flags&2048&&al(9,i,i.return);break;case 3:Xu(i);break;case 12:Xu(i);break;case 22:var c=i.stateNode;i.memoizedState!==null&&c._visibility&2&&(i.return===null||i.return.tag!==13)?(c._visibility&=-3,Im(i)):Xu(i);break;default:Xu(i)}}function Im(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var p=c[m];aa=p,E$(p,i)}w$(i)}for(i=i.child;i!==null;){switch(c=i,c.tag){case 0:case 11:case 15:al(8,c,c.return),Im(c);break;case 22:m=c.stateNode,m._visibility&2&&(m._visibility&=-3,Im(c));break;default:Im(c)}i=i.sibling}}function E$(i,c){for(;aa!==null;){var m=aa;switch(m.tag){case 0:case 11:case 15:al(8,m,c);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var p=m.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:ju(m.memoizedState.cache)}if(p=m.child,p!==null)p.return=m,aa=p;else e:for(m=i;aa!==null;){p=aa;var _=p.sibling,M=p.return;if(v$(p),p===m){aa=null;break e}if(_!==null){_.return=M,aa=_;break e}aa=M}}}var F4={getCacheForType:function(i){var c=Sa(Xr),m=c.data.get(i);return m===void 0&&(m=i(),c.data.set(i,m)),m}},V4=typeof WeakMap=="function"?WeakMap:Map,nr=0,Cr=null,An=null,Un=0,rr=0,Ka=null,ll=!1,rc=!1,Xp=!1,_o=0,Tr=0,sl=0,rs=0,Qp=0,li=0,ac=0,Qu=null,ka=null,Zp=!1,Jp=0,Rm=1/0,Nm=null,cl=null,fa=0,ul=null,ic=null,oc=0,eb=0,tb=null,_$=null,Zu=0,nb=null;function Ua(){if((nr&2)!==0&&Un!==0)return Un&-Un;if(j.T!==null){var i=qs;return i!==0?i:cb()}return lt()}function O$(){li===0&&(li=(Un&536870912)===0||Zn?st():536870912);var i=oi.current;return i!==null&&(i.flags|=32),li}function Wa(i,c,m){(i===Cr&&(rr===2||rr===9)||i.cancelPendingCommit!==null)&&(lc(i,0),dl(i,Un,li,!1)),Je(i,m),((nr&2)===0||i!==Cr)&&(i===Cr&&((nr&2)===0&&(rs|=m),Tr===4&&dl(i,Un,li,!1)),Zi(i))}function I$(i,c,m){if((nr&6)!==0)throw Error(r(327));var p=!m&&(c&124)===0&&(c&i.expiredLanes)===0||be(i,c),_=p?W4(i,c):ib(i,c,!0),M=p;do{if(_===0){rc&&!p&&dl(i,c,0,!1);break}else{if(m=i.current.alternate,M&&!K4(m)){_=ib(i,c,!1),M=!1;continue}if(_===2){if(M=c,i.errorRecoveryDisabledLanes&M)var G=0;else G=i.pendingLanes&-536870913,G=G!==0?G:G&536870912?536870912:0;if(G!==0){c=G;e:{var re=i;_=Qu;var pe=re.current.memoizedState.isDehydrated;if(pe&&(lc(re,G).flags|=256),G=ib(re,G,!1),G!==2){if(Xp&&!pe){re.errorRecoveryDisabledLanes|=M,rs|=M,_=4;break e}M=ka,ka=_,M!==null&&(ka===null?ka=M:ka.push.apply(ka,M))}_=G}if(M=!1,_!==2)continue}}if(_===1){lc(i,0),dl(i,c,0,!0);break}e:{switch(p=i,M=_,M){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:dl(p,c,li,!ll);break e;case 2:ka=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(_=Jp+300-xe(),10<_)){if(dl(p,c,li,!ll),_e(p,0,!0)!==0)break e;p.timeoutHandle=rE(R$.bind(null,p,m,ka,Nm,Zp,c,li,rs,ac,ll,M,2,-0,0),_);break e}R$(p,m,ka,Nm,Zp,c,li,rs,ac,ll,M,0,-0,0)}}break}while(!0);Zi(i)}function R$(i,c,m,p,_,M,G,re,pe,Pe,Qe,rt,Be,Ve){if(i.timeoutHandle=-1,rt=c.subtreeFlags,(rt&8192||(rt&16785408)===16785408)&&(id={stylesheets:null,count:0,unsuspend:Ek},C$(c),rt=Ok(),rt!==null)){i.cancelPendingCommit=rt(k$.bind(null,i,c,M,m,p,_,G,re,pe,Qe,1,Be,Ve)),dl(i,M,G,!Pe);return}k$(i,c,M,m,p,_,G,re,pe)}function K4(i){for(var c=i;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var p=0;p<m.length;p++){var _=m[p],M=_.getSnapshot;_=_.value;try{if(!Ha(M(),_))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function dl(i,c,m,p){c&=~Qp,c&=~rs,i.suspendedLanes|=c,i.pingedLanes&=~c,p&&(i.warmLanes|=c),p=i.expirationTimes;for(var _=c;0<_;){var M=31-Le(_),G=1<<M;p[M]=-1,_&=~G}m!==0&&$t(i,m,c)}function Mm(){return(nr&6)===0?(Ju(0),!1):!0}function rb(){if(An!==null){if(rr===0)var i=An.return;else i=An,bo=Ql=null,xp(i),Js=null,Vu=0,i=An;for(;i!==null;)s$(i.alternate,i),i=i.return;An=null}}function lc(i,c){var m=i.timeoutHandle;m!==-1&&(i.timeoutHandle=-1,sk(m)),m=i.cancelPendingCommit,m!==null&&(i.cancelPendingCommit=null,m()),rb(),Cr=i,An=m=go(i.current,null),Un=c,rr=0,Ka=null,ll=!1,rc=be(i,c),Xp=!1,ac=li=Qp=rs=sl=Tr=0,ka=Qu=null,Zp=!1,(c&8)!==0&&(c|=c&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=c;0<p;){var _=31-Le(p),M=1<<_;c|=i[_],p&=~M}return _o=c,Jf(),m}function N$(i,c){jn=null,j.H=bm,c===Du||c===sm?(c=q1(),rr=3):c===K1?(c=q1(),rr=4):rr=c===Yw?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Ka=c,An===null&&(Tr=1,wm(i,ni(c,i.current)))}function M$(){var i=j.H;return j.H=bm,i===null?bm:i}function j$(){var i=j.A;return j.A=F4,i}function ab(){Tr=4,ll||(Un&4194048)!==Un&&oi.current!==null||(rc=!0),(sl&134217727)===0&&(rs&134217727)===0||Cr===null||dl(Cr,Un,li,!1)}function ib(i,c,m){var p=nr;nr|=2;var _=M$(),M=j$();(Cr!==i||Un!==c)&&(Nm=null,lc(i,c)),c=!1;var G=Tr;e:do try{if(rr!==0&&An!==null){var re=An,pe=Ka;switch(rr){case 8:rb(),G=6;break e;case 3:case 2:case 9:case 6:oi.current===null&&(c=!0);var Pe=rr;if(rr=0,Ka=null,sc(i,re,pe,Pe),m&&rc){G=0;break e}break;default:Pe=rr,rr=0,Ka=null,sc(i,re,pe,Pe)}}U4(),G=Tr;break}catch(Qe){N$(i,Qe)}while(!0);return c&&i.shellSuspendCounter++,bo=Ql=null,nr=p,j.H=_,j.A=M,An===null&&(Cr=null,Un=0,Jf()),G}function U4(){for(;An!==null;)T$(An)}function W4(i,c){var m=nr;nr|=2;var p=M$(),_=j$();Cr!==i||Un!==c?(Nm=null,Rm=xe()+500,lc(i,c)):rc=be(i,c);e:do try{if(rr!==0&&An!==null){c=An;var M=Ka;t:switch(rr){case 1:rr=0,Ka=null,sc(i,c,M,1);break;case 2:case 9:if(U1(M)){rr=0,Ka=null,D$(c);break}c=function(){rr!==2&&rr!==9||Cr!==i||(rr=7),Zi(i)},M.then(c,c);break e;case 3:rr=7;break e;case 4:rr=5;break e;case 7:U1(M)?(rr=0,Ka=null,D$(c)):(rr=0,Ka=null,sc(i,c,M,7));break;case 5:var G=null;switch(An.tag){case 26:G=An.memoizedState;case 5:case 27:var re=An;if(!G||gE(G)){rr=0,Ka=null;var pe=re.sibling;if(pe!==null)An=pe;else{var Pe=re.return;Pe!==null?(An=Pe,jm(Pe)):An=null}break t}}rr=0,Ka=null,sc(i,c,M,5);break;case 6:rr=0,Ka=null,sc(i,c,M,6);break;case 8:rb(),Tr=6;break e;default:throw Error(r(462))}}q4();break}catch(Qe){N$(i,Qe)}while(!0);return bo=Ql=null,j.H=p,j.A=_,nr=m,An!==null?0:(Cr=null,Un=0,Jf(),Tr)}function q4(){for(;An!==null&&!ge();)T$(An)}function T$(i){var c=o$(i.alternate,i,_o);i.memoizedProps=i.pendingProps,c===null?jm(i):An=c}function D$(i){var c=i,m=c.alternate;switch(c.tag){case 15:case 0:c=e$(m,c,c.pendingProps,c.type,void 0,Un);break;case 11:c=e$(m,c,c.pendingProps,c.type.render,c.ref,Un);break;case 5:xp(c);default:s$(m,c),c=An=P1(c,_o),c=o$(m,c,_o)}i.memoizedProps=i.pendingProps,c===null?jm(i):An=c}function sc(i,c,m,p){bo=Ql=null,xp(c),Js=null,Vu=0;var _=c.return;try{if(k4(i,_,c,m,Un)){Tr=1,wm(i,ni(m,i.current)),An=null;return}}catch(M){if(_!==null)throw An=_,M;Tr=1,wm(i,ni(m,i.current)),An=null;return}c.flags&32768?(Zn||p===1?i=!0:rc||(Un&536870912)!==0?i=!1:(ll=i=!0,(p===2||p===9||p===3||p===6)&&(p=oi.current,p!==null&&p.tag===13&&(p.flags|=16384))),P$(c,i)):jm(c)}function jm(i){var c=i;do{if((c.flags&32768)!==0){P$(c,ll);return}i=c.return;var m=z4(c.alternate,c,_o);if(m!==null){An=m;return}if(c=c.sibling,c!==null){An=c;return}An=c=i}while(c!==null);Tr===0&&(Tr=5)}function P$(i,c){do{var m=L4(i.alternate,i);if(m!==null){m.flags&=32767,An=m;return}if(m=i.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(i=i.sibling,i!==null)){An=i;return}An=i=m}while(i!==null);Tr=6,An=null}function k$(i,c,m,p,_,M,G,re,pe){i.cancelPendingCommit=null;do Tm();while(fa!==0);if((nr&6)!==0)throw Error(r(327));if(c!==null){if(c===i.current)throw Error(r(177));if(M=c.lanes|c.childLanes,M|=Gv,ct(i,m,M,G,re,pe),i===Cr&&(An=Cr=null,Un=0),ic=c,ul=i,oc=m,eb=M,tb=_,_$=p,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Q4(ve,function(){return B$(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||p){p=j.T,j.T=null,_=D.p,D.p=2,G=nr,nr|=4;try{H4(i,c,m)}finally{nr=G,D.p=_,j.T=p}}fa=1,A$(),z$(),L$()}}function A$(){if(fa===1){fa=0;var i=ul,c=ic,m=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||m){m=j.T,j.T=null;var p=D.p;D.p=2;var _=nr;nr|=4;try{y$(c,i);var M=pb,G=E1(i.containerInfo),re=M.focusedElem,pe=M.selectionRange;if(G!==re&&re&&re.ownerDocument&&$1(re.ownerDocument.documentElement,re)){if(pe!==null&&Kv(re)){var Pe=pe.start,Qe=pe.end;if(Qe===void 0&&(Qe=Pe),"selectionStart"in re)re.selectionStart=Pe,re.selectionEnd=Math.min(Qe,re.value.length);else{var rt=re.ownerDocument||document,Be=rt&&rt.defaultView||window;if(Be.getSelection){var Ve=Be.getSelection(),vn=re.textContent.length,cn=Math.min(pe.start,vn),dr=pe.end===void 0?cn:Math.min(pe.end,vn);!Ve.extend&&cn>dr&&(G=dr,dr=cn,cn=G);var Ne=w1(re,cn),Oe=w1(re,dr);if(Ne&&Oe&&(Ve.rangeCount!==1||Ve.anchorNode!==Ne.node||Ve.anchorOffset!==Ne.offset||Ve.focusNode!==Oe.node||Ve.focusOffset!==Oe.offset)){var Te=rt.createRange();Te.setStart(Ne.node,Ne.offset),Ve.removeAllRanges(),cn>dr?(Ve.addRange(Te),Ve.extend(Oe.node,Oe.offset)):(Te.setEnd(Oe.node,Oe.offset),Ve.addRange(Te))}}}}for(rt=[],Ve=re;Ve=Ve.parentNode;)Ve.nodeType===1&&rt.push({element:Ve,left:Ve.scrollLeft,top:Ve.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<rt.length;re++){var Ze=rt[re];Ze.element.scrollLeft=Ze.left,Ze.element.scrollTop=Ze.top}}Um=!!vb,pb=vb=null}finally{nr=_,D.p=p,j.T=m}}i.current=c,fa=2}}function z$(){if(fa===2){fa=0;var i=ul,c=ic,m=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||m){m=j.T,j.T=null;var p=D.p;D.p=2;var _=nr;nr|=4;try{g$(i,c.alternate,c)}finally{nr=_,D.p=p,j.T=m}}fa=3}}function L$(){if(fa===4||fa===3){fa=0,me();var i=ul,c=ic,m=oc,p=_$;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?fa=5:(fa=0,ic=ul=null,H$(i,i.pendingLanes));var _=i.pendingLanes;if(_===0&&(cl=null),dt(m),c=c.stateNode,Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(De,c,void 0,(c.current.flags&128)===128)}catch{}if(p!==null){c=j.T,_=D.p,D.p=2,j.T=null;try{for(var M=i.onRecoverableError,G=0;G<p.length;G++){var re=p[G];M(re.value,{componentStack:re.stack})}}finally{j.T=c,D.p=_}}(oc&3)!==0&&Tm(),Zi(i),_=i.pendingLanes,(m&4194090)!==0&&(_&42)!==0?i===nb?Zu++:(Zu=0,nb=i):Zu=0,Ju(0)}}function H$(i,c){(i.pooledCacheLanes&=c)===0&&(c=i.pooledCache,c!=null&&(i.pooledCache=null,ju(c)))}function Tm(i){return A$(),z$(),L$(),B$()}function B$(){if(fa!==5)return!1;var i=ul,c=eb;eb=0;var m=dt(oc),p=j.T,_=D.p;try{D.p=32>m?32:m,j.T=null,m=tb,tb=null;var M=ul,G=oc;if(fa=0,ic=ul=null,oc=0,(nr&6)!==0)throw Error(r(331));var re=nr;if(nr|=4,$$(M.current),S$(M,M.current,G,m),nr=re,Ju(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(De,M)}catch{}return!0}finally{D.p=_,j.T=p,H$(i,c)}}function F$(i,c,m){c=ni(m,c),c=Dp(i.stateNode,c,2),i=el(i,c,2),i!==null&&(Je(i,2),Zi(i))}function vr(i,c,m){if(i.tag===3)F$(i,i,m);else for(;c!==null;){if(c.tag===3){F$(c,i,m);break}else if(c.tag===1){var p=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(cl===null||!cl.has(p))){i=ni(m,i),m=Ww(2),p=el(c,m,2),p!==null&&(qw(m,p,c,i),Je(p,2),Zi(p));break}}c=c.return}}function ob(i,c,m){var p=i.pingCache;if(p===null){p=i.pingCache=new V4;var _=new Set;p.set(c,_)}else _=p.get(c),_===void 0&&(_=new Set,p.set(c,_));_.has(m)||(Xp=!0,_.add(m),i=Y4.bind(null,i,c,m),c.then(i,i))}function Y4(i,c,m){var p=i.pingCache;p!==null&&p.delete(c),i.pingedLanes|=i.suspendedLanes&m,i.warmLanes&=~m,Cr===i&&(Un&m)===m&&(Tr===4||Tr===3&&(Un&62914560)===Un&&300>xe()-Jp?(nr&2)===0&&lc(i,0):Qp|=m,ac===Un&&(ac=0)),Zi(i)}function V$(i,c){c===0&&(c=Dt()),i=Vs(i,c),i!==null&&(Je(i,c),Zi(i))}function G4(i){var c=i.memoizedState,m=0;c!==null&&(m=c.retryLane),V$(i,m)}function X4(i,c){var m=0;switch(i.tag){case 13:var p=i.stateNode,_=i.memoizedState;_!==null&&(m=_.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(c),V$(i,m)}function Q4(i,c){return ie(i,c)}var Dm=null,cc=null,lb=!1,Pm=!1,sb=!1,as=0;function Zi(i){i!==cc&&i.next===null&&(cc===null?Dm=cc=i:cc=cc.next=i),Pm=!0,lb||(lb=!0,J4())}function Ju(i,c){if(!sb&&Pm){sb=!0;do for(var m=!1,p=Dm;p!==null;){if(i!==0){var _=p.pendingLanes;if(_===0)var M=0;else{var G=p.suspendedLanes,re=p.pingedLanes;M=(1<<31-Le(42|i)+1)-1,M&=_&~(G&~re),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(m=!0,q$(p,M))}else M=Un,M=_e(p,p===Cr?M:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(M&3)===0||be(p,M)||(m=!0,q$(p,M));p=p.next}while(m);sb=!1}}function Z4(){K$()}function K$(){Pm=lb=!1;var i=0;as!==0&&(lk()&&(i=as),as=0);for(var c=xe(),m=null,p=Dm;p!==null;){var _=p.next,M=U$(p,c);M===0?(p.next=null,m===null?Dm=_:m.next=_,_===null&&(cc=m)):(m=p,(i!==0||(M&3)!==0)&&(Pm=!0)),p=_}Ju(i)}function U$(i,c){for(var m=i.suspendedLanes,p=i.pingedLanes,_=i.expirationTimes,M=i.pendingLanes&-62914561;0<M;){var G=31-Le(M),re=1<<G,pe=_[G];pe===-1?((re&m)===0||(re&p)!==0)&&(_[G]=ke(re,c)):pe<=c&&(i.expiredLanes|=re),M&=~re}if(c=Cr,m=Un,m=_e(i,i===c?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,m===0||i===c&&(rr===2||rr===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&de(p),i.callbackNode=null,i.callbackPriority=0;if((m&3)===0||be(i,m)){if(c=m&-m,c===i.callbackPriority)return c;switch(p!==null&&de(p),dt(m)){case 2:case 8:m=je;break;case 32:m=ve;break;case 268435456:m=we;break;default:m=ve}return p=W$.bind(null,i),m=ie(m,p),i.callbackPriority=c,i.callbackNode=m,c}return p!==null&&p!==null&&de(p),i.callbackPriority=2,i.callbackNode=null,2}function W$(i,c){if(fa!==0&&fa!==5)return i.callbackNode=null,i.callbackPriority=0,null;var m=i.callbackNode;if(Tm()&&i.callbackNode!==m)return null;var p=Un;return p=_e(i,i===Cr?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(I$(i,p,c),U$(i,xe()),i.callbackNode!=null&&i.callbackNode===m?W$.bind(null,i):null)}function q$(i,c){if(Tm())return null;I$(i,c,!0)}function J4(){ck(function(){(nr&6)!==0?ie(He,Z4):K$()})}function cb(){return as===0&&(as=st()),as}function Y$(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:xn(""+i)}function G$(i,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,i.id&&m.setAttribute("form",i.id),c.parentNode.insertBefore(m,c),i=new FormData(i),m.parentNode.removeChild(m),i}function ek(i,c,m,p,_){if(c==="submit"&&m&&m.stateNode===_){var M=Y$((_[Ge]||null).action),G=p.submitter;G&&(c=(c=G[Ge]||null)?Y$(c.formAction):G.getAttribute("formAction"),c!==null&&(M=c,G=null));var re=new Xf("action","action",null,p,_);i.push({event:re,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(as!==0){var pe=G?G$(_,G):new FormData(_);Rp(m,{pending:!0,data:pe,method:_.method,action:M},null,pe)}}else typeof M=="function"&&(re.preventDefault(),pe=G?G$(_,G):new FormData(_),Rp(m,{pending:!0,data:pe,method:_.method,action:M},M,pe))},currentTarget:_}]})}}for(var ub=0;ub<Yv.length;ub++){var db=Yv[ub],tk=db.toLowerCase(),nk=db[0].toUpperCase()+db.slice(1);Ei(tk,"on"+nk)}Ei(I1,"onAnimationEnd"),Ei(R1,"onAnimationIteration"),Ei(N1,"onAnimationStart"),Ei("dblclick","onDoubleClick"),Ei("focusin","onFocus"),Ei("focusout","onBlur"),Ei(y4,"onTransitionRun"),Ei(x4,"onTransitionStart"),Ei(S4,"onTransitionCancel"),Ei(M1,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),En("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),En("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),En("onBeforeInput",["compositionend","keypress","textInput","paste"]),En("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ed="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(" "),rk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ed));function X$(i,c){c=(c&4)!==0;for(var m=0;m<i.length;m++){var p=i[m],_=p.event;p=p.listeners;e:{var M=void 0;if(c)for(var G=p.length-1;0<=G;G--){var re=p[G],pe=re.instance,Pe=re.currentTarget;if(re=re.listener,pe!==M&&_.isPropagationStopped())break e;M=re,_.currentTarget=Pe;try{M(_)}catch(Qe){Cm(Qe)}_.currentTarget=null,M=pe}else for(G=0;G<p.length;G++){if(re=p[G],pe=re.instance,Pe=re.currentTarget,re=re.listener,pe!==M&&_.isPropagationStopped())break e;M=re,_.currentTarget=Pe;try{M(_)}catch(Qe){Cm(Qe)}_.currentTarget=null,M=pe}}}}function zn(i,c){var m=c[Mt];m===void 0&&(m=c[Mt]=new Set);var p=i+"__bubble";m.has(p)||(Q$(c,i,2,!1),m.add(p))}function fb(i,c,m){var p=0;c&&(p|=4),Q$(m,i,p,c)}var km="_reactListening"+Math.random().toString(36).slice(2);function mb(i){if(!i[km]){i[km]=!0,gn.forEach(function(m){m!=="selectionchange"&&(rk.has(m)||fb(m,!1,i),fb(m,!0,i))});var c=i.nodeType===9?i:i.ownerDocument;c===null||c[km]||(c[km]=!0,fb("selectionchange",!1,c))}}function Q$(i,c,m,p){switch(SE(c)){case 2:var _=Nk;break;case 8:_=Mk;break;default:_=Ob}m=_.bind(null,c,m,i),_=void 0,!ln||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(_=!0),p?_!==void 0?i.addEventListener(c,m,{capture:!0,passive:_}):i.addEventListener(c,m,!0):_!==void 0?i.addEventListener(c,m,{passive:_}):i.addEventListener(c,m,!1)}function hb(i,c,m,p,_){var M=p;if((c&1)===0&&(c&2)===0&&p!==null)e:for(;;){if(p===null)return;var G=p.tag;if(G===3||G===4){var re=p.stateNode.containerInfo;if(re===_)break;if(G===4)for(G=p.return;G!==null;){var pe=G.tag;if((pe===3||pe===4)&&G.stateNode.containerInfo===_)return;G=G.return}for(;re!==null;){if(G=Tt(re),G===null)return;if(pe=G.tag,pe===5||pe===6||pe===26||pe===27){p=M=G;continue e}re=re.parentNode}}p=p.return}As(function(){var Pe=M,Qe=Hr(m),rt=[];e:{var Be=j1.get(i);if(Be!==void 0){var Ve=Xf,vn=i;switch(i){case"keypress":if(Fl(m)===0)break e;case"keydown":case"keyup":Ve=QP;break;case"focusin":vn="focus",Ve=Lv;break;case"focusout":vn="blur",Ve=Lv;break;case"beforeblur":case"afterblur":Ve=Lv;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ve=l1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=LP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=e4;break;case I1:case R1:case N1:Ve=FP;break;case M1:Ve=n4;break;case"scroll":case"scrollend":Ve=AP;break;case"wheel":Ve=a4;break;case"copy":case"cut":case"paste":Ve=KP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=c1;break;case"toggle":case"beforetoggle":Ve=o4}var cn=(c&4)!==0,dr=!cn&&(i==="scroll"||i==="scrollend"),Ne=cn?Be!==null?Be+"Capture":null:Be;cn=[];for(var Oe=Pe,Te;Oe!==null;){var Ze=Oe;if(Te=Ze.stateNode,Ze=Ze.tag,Ze!==5&&Ze!==26&&Ze!==27||Te===null||Ne===null||(Ze=fo(Oe,Ne),Ze!=null&&cn.push(td(Oe,Ze,Te))),dr)break;Oe=Oe.return}0<cn.length&&(Be=new Ve(Be,vn,null,m,Qe),rt.push({event:Be,listeners:cn}))}}if((c&7)===0){e:{if(Be=i==="mouseover"||i==="pointerover",Ve=i==="mouseout"||i==="pointerout",Be&&m!==Gr&&(vn=m.relatedTarget||m.fromElement)&&(Tt(vn)||vn[tt]))break e;if((Ve||Be)&&(Be=Qe.window===Qe?Qe:(Be=Qe.ownerDocument)?Be.defaultView||Be.parentWindow:window,Ve?(vn=m.relatedTarget||m.toElement,Ve=Pe,vn=vn?Tt(vn):null,vn!==null&&(dr=o(vn),cn=vn.tag,vn!==dr||cn!==5&&cn!==27&&cn!==6)&&(vn=null)):(Ve=null,vn=Pe),Ve!==vn)){if(cn=l1,Ze="onMouseLeave",Ne="onMouseEnter",Oe="mouse",(i==="pointerout"||i==="pointerover")&&(cn=c1,Ze="onPointerLeave",Ne="onPointerEnter",Oe="pointer"),dr=Ve==null?Be:Jt(Ve),Te=vn==null?Be:Jt(vn),Be=new cn(Ze,Oe+"leave",Ve,m,Qe),Be.target=dr,Be.relatedTarget=Te,Ze=null,Tt(Qe)===Pe&&(cn=new cn(Ne,Oe+"enter",vn,m,Qe),cn.target=Te,cn.relatedTarget=dr,Ze=cn),dr=Ze,Ve&&vn)t:{for(cn=Ve,Ne=vn,Oe=0,Te=cn;Te;Te=uc(Te))Oe++;for(Te=0,Ze=Ne;Ze;Ze=uc(Ze))Te++;for(;0<Oe-Te;)cn=uc(cn),Oe--;for(;0<Te-Oe;)Ne=uc(Ne),Te--;for(;Oe--;){if(cn===Ne||Ne!==null&&cn===Ne.alternate)break t;cn=uc(cn),Ne=uc(Ne)}cn=null}else cn=null;Ve!==null&&Z$(rt,Be,Ve,cn,!1),vn!==null&&dr!==null&&Z$(rt,dr,vn,cn,!0)}}e:{if(Be=Pe?Jt(Pe):window,Ve=Be.nodeName&&Be.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&Be.type==="file")var Qt=p1;else if(g1(Be))if(b1)Qt=v4;else{Qt=h4;var Pn=m4}else Ve=Be.nodeName,!Ve||Ve.toLowerCase()!=="input"||Be.type!=="checkbox"&&Be.type!=="radio"?Pe&&ut(Pe.elementType)&&(Qt=p1):Qt=g4;if(Qt&&(Qt=Qt(i,Pe))){v1(rt,Qt,m,Qe);break e}Pn&&Pn(i,Be,Pe),i==="focusout"&&Pe&&Be.type==="number"&&Pe.memoizedProps.value!=null&&Nt(Be,"number",Be.value)}switch(Pn=Pe?Jt(Pe):window,i){case"focusin":(g1(Pn)||Pn.contentEditable==="true")&&(Hs=Pn,Uv=Pe,Ou=null);break;case"focusout":Ou=Uv=Hs=null;break;case"mousedown":Wv=!0;break;case"contextmenu":case"mouseup":case"dragend":Wv=!1,_1(rt,m,Qe);break;case"selectionchange":if(b4)break;case"keydown":case"keyup":_1(rt,m,Qe)}var rn;if(Bv)e:{switch(i){case"compositionstart":var fn="onCompositionStart";break e;case"compositionend":fn="onCompositionEnd";break e;case"compositionupdate":fn="onCompositionUpdate";break e}fn=void 0}else Ls?m1(i,m)&&(fn="onCompositionEnd"):i==="keydown"&&m.keyCode===229&&(fn="onCompositionStart");fn&&(u1&&m.locale!=="ko"&&(Ls||fn!=="onCompositionStart"?fn==="onCompositionEnd"&&Ls&&(rn=zs()):(sr=Qe,Sr="value"in sr?sr.value:sr.textContent,Ls=!0)),Pn=Am(Pe,fn),0<Pn.length&&(fn=new s1(fn,i,null,m,Qe),rt.push({event:fn,listeners:Pn}),rn?fn.data=rn:(rn=h1(m),rn!==null&&(fn.data=rn)))),(rn=s4?c4(i,m):u4(i,m))&&(fn=Am(Pe,"onBeforeInput"),0<fn.length&&(Pn=new s1("onBeforeInput","beforeinput",null,m,Qe),rt.push({event:Pn,listeners:fn}),Pn.data=rn)),ek(rt,i,Pe,m,Qe)}X$(rt,c)})}function td(i,c,m){return{instance:i,listener:c,currentTarget:m}}function Am(i,c){for(var m=c+"Capture",p=[];i!==null;){var _=i,M=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||M===null||(_=fo(i,m),_!=null&&p.unshift(td(i,_,M)),_=fo(i,c),_!=null&&p.push(td(i,_,M))),i.tag===3)return p;i=i.return}return[]}function uc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Z$(i,c,m,p,_){for(var M=c._reactName,G=[];m!==null&&m!==p;){var re=m,pe=re.alternate,Pe=re.stateNode;if(re=re.tag,pe!==null&&pe===p)break;re!==5&&re!==26&&re!==27||Pe===null||(pe=Pe,_?(Pe=fo(m,M),Pe!=null&&G.unshift(td(m,Pe,pe))):_||(Pe=fo(m,M),Pe!=null&&G.push(td(m,Pe,pe)))),m=m.return}G.length!==0&&i.push({event:c,listeners:G})}var ak=/\r\n?/g,ik=/\u0000|\uFFFD/g;function J$(i){return(typeof i=="string"?i:""+i).replace(ak,`
`).replace(ik,"")}function eE(i,c){return c=J$(c),J$(i)===c}function zm(){}function ur(i,c,m,p,_,M){switch(m){case"children":typeof p=="string"?c==="body"||c==="textarea"&&p===""||lr(i,p):(typeof p=="number"||typeof p=="bigint")&&c!=="body"&&lr(i,""+p);break;case"className":bn(i,"class",p);break;case"tabIndex":bn(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(i,m,p);break;case"style":St(i,p,M);break;case"data":if(c!=="object"){bn(i,"data",p);break}case"src":case"href":if(p===""&&(c!=="a"||m!=="href")){i.removeAttribute(m);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(m);break}p=xn(""+p),i.setAttribute(m,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(m==="formAction"?(c!=="input"&&ur(i,c,"name",_.name,_,null),ur(i,c,"formEncType",_.formEncType,_,null),ur(i,c,"formMethod",_.formMethod,_,null),ur(i,c,"formTarget",_.formTarget,_,null)):(ur(i,c,"encType",_.encType,_,null),ur(i,c,"method",_.method,_,null),ur(i,c,"target",_.target,_,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(m);break}p=xn(""+p),i.setAttribute(m,p);break;case"onClick":p!=null&&(i.onclick=zm);break;case"onScroll":p!=null&&zn("scroll",i);break;case"onScrollEnd":p!=null&&zn("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(m=p.__html,m!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=m}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}m=xn(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(m,""+p):i.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(m,""):i.removeAttribute(m);break;case"capture":case"download":p===!0?i.setAttribute(m,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(m,p):i.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(m,p):i.removeAttribute(m);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(m):i.setAttribute(m,p);break;case"popover":zn("beforetoggle",i),zn("toggle",i),tn(i,"popover",p);break;case"xlinkActuate":On(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":On(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":On(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":On(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":On(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":On(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":On(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":On(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":On(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":tn(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=en.get(m)||m,tn(i,m,p))}}function gb(i,c,m,p,_,M){switch(m){case"style":St(i,p,M);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(m=p.__html,m!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=m}}break;case"children":typeof p=="string"?lr(i,p):(typeof p=="number"||typeof p=="bigint")&&lr(i,""+p);break;case"onScroll":p!=null&&zn("scroll",i);break;case"onScrollEnd":p!=null&&zn("scrollend",i);break;case"onClick":p!=null&&(i.onclick=zm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$n.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(_=m.endsWith("Capture"),c=m.slice(2,_?m.length-7:void 0),M=i[Ge]||null,M=M!=null?M[m]:null,typeof M=="function"&&i.removeEventListener(c,M,_),typeof p=="function")){typeof M!="function"&&M!==null&&(m in i?i[m]=null:i.hasAttribute(m)&&i.removeAttribute(m)),i.addEventListener(c,p,_);break e}m in i?i[m]=p:p===!0?i.setAttribute(m,""):tn(i,m,p)}}}function ma(i,c,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":zn("error",i),zn("load",i);var p=!1,_=!1,M;for(M in m)if(m.hasOwnProperty(M)){var G=m[M];if(G!=null)switch(M){case"src":p=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:ur(i,c,M,G,m,null)}}_&&ur(i,c,"srcSet",m.srcSet,m,null),p&&ur(i,c,"src",m.src,m,null);return;case"input":zn("invalid",i);var re=M=G=_=null,pe=null,Pe=null;for(p in m)if(m.hasOwnProperty(p)){var Qe=m[p];if(Qe!=null)switch(p){case"name":_=Qe;break;case"type":G=Qe;break;case"checked":pe=Qe;break;case"defaultChecked":Pe=Qe;break;case"value":M=Qe;break;case"defaultValue":re=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(r(137,c));break;default:ur(i,c,p,Qe,m,null)}}jt(i,M,re,pe,Pe,G,_,!1),ir(i);return;case"select":zn("invalid",i),p=G=M=null;for(_ in m)if(m.hasOwnProperty(_)&&(re=m[_],re!=null))switch(_){case"value":M=re;break;case"defaultValue":G=re;break;case"multiple":p=re;default:ur(i,c,_,re,m,null)}c=M,m=G,i.multiple=!!p,c!=null?dn(i,!!p,c,!1):m!=null&&dn(i,!!p,m,!0);return;case"textarea":zn("invalid",i),M=_=p=null;for(G in m)if(m.hasOwnProperty(G)&&(re=m[G],re!=null))switch(G){case"value":p=re;break;case"defaultValue":_=re;break;case"children":M=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(91));break;default:ur(i,c,G,re,m,null)}or(i,p,_,M),ir(i);return;case"option":for(pe in m)if(m.hasOwnProperty(pe)&&(p=m[pe],p!=null))switch(pe){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:ur(i,c,pe,p,m,null)}return;case"dialog":zn("beforetoggle",i),zn("toggle",i),zn("cancel",i),zn("close",i);break;case"iframe":case"object":zn("load",i);break;case"video":case"audio":for(p=0;p<ed.length;p++)zn(ed[p],i);break;case"image":zn("error",i),zn("load",i);break;case"details":zn("toggle",i);break;case"embed":case"source":case"link":zn("error",i),zn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Pe in m)if(m.hasOwnProperty(Pe)&&(p=m[Pe],p!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:ur(i,c,Pe,p,m,null)}return;default:if(ut(c)){for(Qe in m)m.hasOwnProperty(Qe)&&(p=m[Qe],p!==void 0&&gb(i,c,Qe,p,m,void 0));return}}for(re in m)m.hasOwnProperty(re)&&(p=m[re],p!=null&&ur(i,c,re,p,m,null))}function ok(i,c,m,p){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,M=null,G=null,re=null,pe=null,Pe=null,Qe=null;for(Ve in m){var rt=m[Ve];if(m.hasOwnProperty(Ve)&&rt!=null)switch(Ve){case"checked":break;case"value":break;case"defaultValue":pe=rt;default:p.hasOwnProperty(Ve)||ur(i,c,Ve,null,p,rt)}}for(var Be in p){var Ve=p[Be];if(rt=m[Be],p.hasOwnProperty(Be)&&(Ve!=null||rt!=null))switch(Be){case"type":M=Ve;break;case"name":_=Ve;break;case"checked":Pe=Ve;break;case"defaultChecked":Qe=Ve;break;case"value":G=Ve;break;case"defaultValue":re=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(r(137,c));break;default:Ve!==rt&&ur(i,c,Be,Ve,p,rt)}}_n(i,G,re,pe,Pe,Qe,M,_);return;case"select":Ve=G=re=Be=null;for(M in m)if(pe=m[M],m.hasOwnProperty(M)&&pe!=null)switch(M){case"value":break;case"multiple":Ve=pe;default:p.hasOwnProperty(M)||ur(i,c,M,null,p,pe)}for(_ in p)if(M=p[_],pe=m[_],p.hasOwnProperty(_)&&(M!=null||pe!=null))switch(_){case"value":Be=M;break;case"defaultValue":re=M;break;case"multiple":G=M;default:M!==pe&&ur(i,c,_,M,p,pe)}c=re,m=G,p=Ve,Be!=null?dn(i,!!m,Be,!1):!!p!=!!m&&(c!=null?dn(i,!!m,c,!0):dn(i,!!m,m?[]:"",!1));return;case"textarea":Ve=Be=null;for(re in m)if(_=m[re],m.hasOwnProperty(re)&&_!=null&&!p.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:ur(i,c,re,null,p,_)}for(G in p)if(_=p[G],M=m[G],p.hasOwnProperty(G)&&(_!=null||M!=null))switch(G){case"value":Be=_;break;case"defaultValue":Ve=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==M&&ur(i,c,G,_,p,M)}Yn(i,Be,Ve);return;case"option":for(var vn in m)if(Be=m[vn],m.hasOwnProperty(vn)&&Be!=null&&!p.hasOwnProperty(vn))switch(vn){case"selected":i.selected=!1;break;default:ur(i,c,vn,null,p,Be)}for(pe in p)if(Be=p[pe],Ve=m[pe],p.hasOwnProperty(pe)&&Be!==Ve&&(Be!=null||Ve!=null))switch(pe){case"selected":i.selected=Be&&typeof Be!="function"&&typeof Be!="symbol";break;default:ur(i,c,pe,Be,p,Ve)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var cn in m)Be=m[cn],m.hasOwnProperty(cn)&&Be!=null&&!p.hasOwnProperty(cn)&&ur(i,c,cn,null,p,Be);for(Pe in p)if(Be=p[Pe],Ve=m[Pe],p.hasOwnProperty(Pe)&&Be!==Ve&&(Be!=null||Ve!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(r(137,c));break;default:ur(i,c,Pe,Be,p,Ve)}return;default:if(ut(c)){for(var dr in m)Be=m[dr],m.hasOwnProperty(dr)&&Be!==void 0&&!p.hasOwnProperty(dr)&&gb(i,c,dr,void 0,p,Be);for(Qe in p)Be=p[Qe],Ve=m[Qe],!p.hasOwnProperty(Qe)||Be===Ve||Be===void 0&&Ve===void 0||gb(i,c,Qe,Be,p,Ve);return}}for(var Ne in m)Be=m[Ne],m.hasOwnProperty(Ne)&&Be!=null&&!p.hasOwnProperty(Ne)&&ur(i,c,Ne,null,p,Be);for(rt in p)Be=p[rt],Ve=m[rt],!p.hasOwnProperty(rt)||Be===Ve||Be==null&&Ve==null||ur(i,c,rt,Be,p,Ve)}var vb=null,pb=null;function Lm(i){return i.nodeType===9?i:i.ownerDocument}function tE(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nE(i,c){if(i===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&c==="foreignObject"?0:i}function bb(i,c){return i==="textarea"||i==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var yb=null;function lk(){var i=window.event;return i&&i.type==="popstate"?i===yb?!1:(yb=i,!0):(yb=null,!1)}var rE=typeof setTimeout=="function"?setTimeout:void 0,sk=typeof clearTimeout=="function"?clearTimeout:void 0,aE=typeof Promise=="function"?Promise:void 0,ck=typeof queueMicrotask=="function"?queueMicrotask:typeof aE<"u"?function(i){return aE.resolve(null).then(i).catch(uk)}:rE;function uk(i){setTimeout(function(){throw i})}function fl(i){return i==="head"}function iE(i,c){var m=c,p=0,_=0;do{var M=m.nextSibling;if(i.removeChild(m),M&&M.nodeType===8)if(m=M.data,m==="/$"){if(0<p&&8>p){m=p;var G=i.ownerDocument;if(m&1&&nd(G.documentElement),m&2&&nd(G.body),m&4)for(m=G.head,nd(m),G=m.firstChild;G;){var re=G.nextSibling,pe=G.nodeName;G[wt]||pe==="SCRIPT"||pe==="STYLE"||pe==="LINK"&&G.rel.toLowerCase()==="stylesheet"||m.removeChild(G),G=re}}if(_===0){i.removeChild(M),ud(c);return}_--}else m==="$"||m==="$?"||m==="$!"?_++:p=m.charCodeAt(0)-48;else p=0;m=M}while(m);ud(c)}function xb(i){var c=i.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":xb(m),xt(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}i.removeChild(m)}}function dk(i,c,m,p){for(;i.nodeType===1;){var _=m;if(i.nodeName.toLowerCase()!==c.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[wt])switch(c){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(M=i.getAttribute("rel"),M==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(M!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(M=i.getAttribute("src"),(M!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&M&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(c==="input"&&i.type==="hidden"){var M=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===M)return i}else return i;if(i=Oi(i.nextSibling),i===null)break}return null}function fk(i,c,m){if(c==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!m||(i=Oi(i.nextSibling),i===null))return null;return i}function Sb(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function mk(i,c){var m=i.ownerDocument;if(i.data!=="$?"||m.readyState==="complete")c();else{var p=function(){c(),m.removeEventListener("DOMContentLoaded",p)};m.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function Oi(i){for(;i!=null;i=i.nextSibling){var c=i.nodeType;if(c===1||c===3)break;if(c===8){if(c=i.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return i}var Cb=null;function oE(i){i=i.previousSibling;for(var c=0;i;){if(i.nodeType===8){var m=i.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return i;c--}else m==="/$"&&c++}i=i.previousSibling}return null}function lE(i,c,m){switch(c=Lm(m),i){case"html":if(i=c.documentElement,!i)throw Error(r(452));return i;case"head":if(i=c.head,!i)throw Error(r(453));return i;case"body":if(i=c.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function nd(i){for(var c=i.attributes;c.length;)i.removeAttributeNode(c[0]);xt(i)}var si=new Map,sE=new Set;function Hm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Oo=D.d;D.d={f:hk,r:gk,D:vk,C:pk,L:bk,m:yk,X:Sk,S:xk,M:Ck};function hk(){var i=Oo.f(),c=Mm();return i||c}function gk(i){var c=Vt(i);c!==null&&c.tag===5&&c.type==="form"?Iw(c):Oo.r(i)}var dc=typeof document>"u"?null:document;function cE(i,c,m){var p=dc;if(p&&typeof c=="string"&&c){var _=vt(c);_='link[rel="'+i+'"][href="'+_+'"]',typeof m=="string"&&(_+='[crossorigin="'+m+'"]'),sE.has(_)||(sE.add(_),i={rel:i,crossOrigin:m,href:c},p.querySelector(_)===null&&(c=p.createElement("link"),ma(c,"link",i),Ut(c),p.head.appendChild(c)))}}function vk(i){Oo.D(i),cE("dns-prefetch",i,null)}function pk(i,c){Oo.C(i,c),cE("preconnect",i,c)}function bk(i,c,m){Oo.L(i,c,m);var p=dc;if(p&&i&&c){var _='link[rel="preload"][as="'+vt(c)+'"]';c==="image"&&m&&m.imageSrcSet?(_+='[imagesrcset="'+vt(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(_+='[imagesizes="'+vt(m.imageSizes)+'"]')):_+='[href="'+vt(i)+'"]';var M=_;switch(c){case"style":M=fc(i);break;case"script":M=mc(i)}si.has(M)||(i=h({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:i,as:c},m),si.set(M,i),p.querySelector(_)!==null||c==="style"&&p.querySelector(rd(M))||c==="script"&&p.querySelector(ad(M))||(c=p.createElement("link"),ma(c,"link",i),Ut(c),p.head.appendChild(c)))}}function yk(i,c){Oo.m(i,c);var m=dc;if(m&&i){var p=c&&typeof c.as=="string"?c.as:"script",_='link[rel="modulepreload"][as="'+vt(p)+'"][href="'+vt(i)+'"]',M=_;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=mc(i)}if(!si.has(M)&&(i=h({rel:"modulepreload",href:i},c),si.set(M,i),m.querySelector(_)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ad(M)))return}p=m.createElement("link"),ma(p,"link",i),Ut(p),m.head.appendChild(p)}}}function xk(i,c,m){Oo.S(i,c,m);var p=dc;if(p&&i){var _=on(p).hoistableStyles,M=fc(i);c=c||"default";var G=_.get(M);if(!G){var re={loading:0,preload:null};if(G=p.querySelector(rd(M)))re.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":c},m),(m=si.get(M))&&wb(i,m);var pe=G=p.createElement("link");Ut(pe),ma(pe,"link",i),pe._p=new Promise(function(Pe,Qe){pe.onload=Pe,pe.onerror=Qe}),pe.addEventListener("load",function(){re.loading|=1}),pe.addEventListener("error",function(){re.loading|=2}),re.loading|=4,Bm(G,c,p)}G={type:"stylesheet",instance:G,count:1,state:re},_.set(M,G)}}}function Sk(i,c){Oo.X(i,c);var m=dc;if(m&&i){var p=on(m).hoistableScripts,_=mc(i),M=p.get(_);M||(M=m.querySelector(ad(_)),M||(i=h({src:i,async:!0},c),(c=si.get(_))&&$b(i,c),M=m.createElement("script"),Ut(M),ma(M,"link",i),m.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(_,M))}}function Ck(i,c){Oo.M(i,c);var m=dc;if(m&&i){var p=on(m).hoistableScripts,_=mc(i),M=p.get(_);M||(M=m.querySelector(ad(_)),M||(i=h({src:i,async:!0,type:"module"},c),(c=si.get(_))&&$b(i,c),M=m.createElement("script"),Ut(M),ma(M,"link",i),m.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(_,M))}}function uE(i,c,m,p){var _=(_=Z.current)?Hm(_):null;if(!_)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(c=fc(m.href),m=on(_).hoistableStyles,p=m.get(c),p||(p={type:"style",instance:null,count:0,state:null},m.set(c,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){i=fc(m.href);var M=on(_).hoistableStyles,G=M.get(i);if(G||(_=_.ownerDocument||_,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(i,G),(M=_.querySelector(rd(i)))&&!M._p&&(G.instance=M,G.state.loading=5),si.has(i)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},si.set(i,m),M||wk(_,i,m,G.state))),c&&p===null)throw Error(r(528,""));return G}if(c&&p!==null)throw Error(r(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=mc(m),m=on(_).hoistableScripts,p=m.get(c),p||(p={type:"script",instance:null,count:0,state:null},m.set(c,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function fc(i){return'href="'+vt(i)+'"'}function rd(i){return'link[rel="stylesheet"]['+i+"]"}function dE(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function wk(i,c,m,p){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?p.loading=1:(c=i.createElement("link"),p.preload=c,c.addEventListener("load",function(){return p.loading|=1}),c.addEventListener("error",function(){return p.loading|=2}),ma(c,"link",m),Ut(c),i.head.appendChild(c))}function mc(i){return'[src="'+vt(i)+'"]'}function ad(i){return"script[async]"+i}function fE(i,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var p=i.querySelector('style[data-href~="'+vt(m.href)+'"]');if(p)return c.instance=p,Ut(p),p;var _=h({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Ut(p),ma(p,"style",_),Bm(p,m.precedence,i),c.instance=p;case"stylesheet":_=fc(m.href);var M=i.querySelector(rd(_));if(M)return c.state.loading|=4,c.instance=M,Ut(M),M;p=dE(m),(_=si.get(_))&&wb(p,_),M=(i.ownerDocument||i).createElement("link"),Ut(M);var G=M;return G._p=new Promise(function(re,pe){G.onload=re,G.onerror=pe}),ma(M,"link",p),c.state.loading|=4,Bm(M,m.precedence,i),c.instance=M;case"script":return M=mc(m.src),(_=i.querySelector(ad(M)))?(c.instance=_,Ut(_),_):(p=m,(_=si.get(M))&&(p=h({},m),$b(p,_)),i=i.ownerDocument||i,_=i.createElement("script"),Ut(_),ma(_,"link",p),i.head.appendChild(_),c.instance=_);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(p=c.instance,c.state.loading|=4,Bm(p,m.precedence,i));return c.instance}function Bm(i,c,m){for(var p=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=p.length?p[p.length-1]:null,M=_,G=0;G<p.length;G++){var re=p[G];if(re.dataset.precedence===c)M=re;else if(M!==_)break}M?M.parentNode.insertBefore(i,M.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(i,c.firstChild))}function wb(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.title==null&&(i.title=c.title)}function $b(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.integrity==null&&(i.integrity=c.integrity)}var Fm=null;function mE(i,c,m){if(Fm===null){var p=new Map,_=Fm=new Map;_.set(m,p)}else _=Fm,p=_.get(m),p||(p=new Map,_.set(m,p));if(p.has(i))return p;for(p.set(i,null),m=m.getElementsByTagName(i),_=0;_<m.length;_++){var M=m[_];if(!(M[wt]||M[bt]||i==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var G=M.getAttribute(c)||"";G=i+G;var re=p.get(G);re?re.push(M):p.set(G,[M])}}return p}function hE(i,c,m){i=i.ownerDocument||i,i.head.insertBefore(m,c==="title"?i.querySelector("head > title"):null)}function $k(i,c,m){if(m===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function gE(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var id=null;function Ek(){}function _k(i,c,m){if(id===null)throw Error(r(475));var p=id;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var _=fc(m.href),M=i.querySelector(rd(_));if(M){i=M._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(p.count++,p=Vm.bind(p),i.then(p,p)),c.state.loading|=4,c.instance=M,Ut(M);return}M=i.ownerDocument||i,m=dE(m),(_=si.get(_))&&wb(m,_),M=M.createElement("link"),Ut(M);var G=M;G._p=new Promise(function(re,pe){G.onload=re,G.onerror=pe}),ma(M,"link",m),c.instance=M}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(c,i),(i=c.state.preload)&&(c.state.loading&3)===0&&(p.count++,c=Vm.bind(p),i.addEventListener("load",c),i.addEventListener("error",c))}}function Ok(){if(id===null)throw Error(r(475));var i=id;return i.stylesheets&&i.count===0&&Eb(i,i.stylesheets),0<i.count?function(c){var m=setTimeout(function(){if(i.stylesheets&&Eb(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(m)}}:null}function Vm(){if(this.count--,this.count===0){if(this.stylesheets)Eb(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Km=null;function Eb(i,c){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Km=new Map,c.forEach(Ik,i),Km=null,Vm.call(i))}function Ik(i,c){if(!(c.state.loading&4)){var m=Km.get(i);if(m)var p=m.get(null);else{m=new Map,Km.set(i,m);for(var _=i.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<_.length;M++){var G=_[M];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(m.set(G.dataset.precedence,G),p=G)}p&&m.set(null,p)}_=c.instance,G=_.getAttribute("data-precedence"),M=m.get(G)||p,M===p&&m.set(null,_),m.set(G,_),this.count++,p=Vm.bind(this),_.addEventListener("load",p),_.addEventListener("error",p),M?M.parentNode.insertBefore(_,M.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(_,i.firstChild)),c.state.loading|=4}}var od={$$typeof:E,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Rk(i,c,m,p,_,M,G,re){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.hiddenUpdates=Wt(null),this.identifierPrefix=p,this.onUncaughtError=_,this.onCaughtError=M,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function vE(i,c,m,p,_,M,G,re,pe,Pe,Qe,rt){return i=new Rk(i,c,m,G,re,pe,Pe,rt),c=1,M===!0&&(c|=24),M=Ba(3,null,null,c),i.current=M,M.stateNode=i,c=op(),c.refCount++,i.pooledCache=c,c.refCount++,M.memoizedState={element:p,isDehydrated:m,cache:c},up(M),i}function pE(i){return i?(i=Ks,i):Ks}function bE(i,c,m,p,_,M){_=pE(_),p.context===null?p.context=_:p.pendingContext=_,p=Jo(c),p.payload={element:m},M=M===void 0?null:M,M!==null&&(p.callback=M),m=el(i,p,c),m!==null&&(Wa(m,i,c),ku(m,i,c))}function yE(i,c){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var m=i.retryLane;i.retryLane=m!==0&&m<c?m:c}}function _b(i,c){yE(i,c),(i=i.alternate)&&yE(i,c)}function xE(i){if(i.tag===13){var c=Vs(i,67108864);c!==null&&Wa(c,i,67108864),_b(i,67108864)}}var Um=!0;function Nk(i,c,m,p){var _=j.T;j.T=null;var M=D.p;try{D.p=2,Ob(i,c,m,p)}finally{D.p=M,j.T=_}}function Mk(i,c,m,p){var _=j.T;j.T=null;var M=D.p;try{D.p=8,Ob(i,c,m,p)}finally{D.p=M,j.T=_}}function Ob(i,c,m,p){if(Um){var _=Ib(p);if(_===null)hb(i,c,p,Wm,m),CE(i,p);else if(Tk(_,i,c,m,p))p.stopPropagation();else if(CE(i,p),c&4&&-1<jk.indexOf(i)){for(;_!==null;){var M=Vt(_);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var G=Ce(M.pendingLanes);if(G!==0){var re=M;for(re.pendingLanes|=2,re.entangledLanes|=2;G;){var pe=1<<31-Le(G);re.entanglements[1]|=pe,G&=~pe}Zi(M),(nr&6)===0&&(Rm=xe()+500,Ju(0))}}break;case 13:re=Vs(M,2),re!==null&&Wa(re,M,2),Mm(),_b(M,2)}if(M=Ib(p),M===null&&hb(i,c,p,Wm,m),M===_)break;_=M}_!==null&&p.stopPropagation()}else hb(i,c,p,null,m)}}function Ib(i){return i=Hr(i),Rb(i)}var Wm=null;function Rb(i){if(Wm=null,i=Tt(i),i!==null){var c=o(i);if(c===null)i=null;else{var m=c.tag;if(m===13){if(i=s(c),i!==null)return i;i=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;i=null}else c!==i&&(i=null)}}return Wm=i,null}function SE(i){switch(i){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ee()){case He:return 2;case je:return 8;case ve:case $e:return 32;case we:return 268435456;default:return 32}default:return 32}}var Nb=!1,ml=null,hl=null,gl=null,ld=new Map,sd=new Map,vl=[],jk="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".split(" ");function CE(i,c){switch(i){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":hl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":ld.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":sd.delete(c.pointerId)}}function cd(i,c,m,p,_,M){return i===null||i.nativeEvent!==M?(i={blockedOn:c,domEventName:m,eventSystemFlags:p,nativeEvent:M,targetContainers:[_]},c!==null&&(c=Vt(c),c!==null&&xE(c)),i):(i.eventSystemFlags|=p,c=i.targetContainers,_!==null&&c.indexOf(_)===-1&&c.push(_),i)}function Tk(i,c,m,p,_){switch(c){case"focusin":return ml=cd(ml,i,c,m,p,_),!0;case"dragenter":return hl=cd(hl,i,c,m,p,_),!0;case"mouseover":return gl=cd(gl,i,c,m,p,_),!0;case"pointerover":var M=_.pointerId;return ld.set(M,cd(ld.get(M)||null,i,c,m,p,_)),!0;case"gotpointercapture":return M=_.pointerId,sd.set(M,cd(sd.get(M)||null,i,c,m,p,_)),!0}return!1}function wE(i){var c=Tt(i.target);if(c!==null){var m=o(c);if(m!==null){if(c=m.tag,c===13){if(c=s(m),c!==null){i.blockedOn=c,nt(i.priority,function(){if(m.tag===13){var p=Ua();p=gt(p);var _=Vs(m,p);_!==null&&Wa(_,m,p),_b(m,p)}});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){i.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}i.blockedOn=null}function qm(i){if(i.blockedOn!==null)return!1;for(var c=i.targetContainers;0<c.length;){var m=Ib(i.nativeEvent);if(m===null){m=i.nativeEvent;var p=new m.constructor(m.type,m);Gr=p,m.target.dispatchEvent(p),Gr=null}else return c=Vt(m),c!==null&&xE(c),i.blockedOn=m,!1;c.shift()}return!0}function $E(i,c,m){qm(i)&&m.delete(c)}function Dk(){Nb=!1,ml!==null&&qm(ml)&&(ml=null),hl!==null&&qm(hl)&&(hl=null),gl!==null&&qm(gl)&&(gl=null),ld.forEach($E),sd.forEach($E)}function Ym(i,c){i.blockedOn===c&&(i.blockedOn=null,Nb||(Nb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Dk)))}var Gm=null;function EE(i){Gm!==i&&(Gm=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gm===i&&(Gm=null);for(var c=0;c<i.length;c+=3){var m=i[c],p=i[c+1],_=i[c+2];if(typeof p!="function"){if(Rb(p||m)===null)continue;break}var M=Vt(m);M!==null&&(i.splice(c,3),c-=3,Rp(M,{pending:!0,data:_,method:m.method,action:p},p,_))}}))}function ud(i){function c(pe){return Ym(pe,i)}ml!==null&&Ym(ml,i),hl!==null&&Ym(hl,i),gl!==null&&Ym(gl,i),ld.forEach(c),sd.forEach(c);for(var m=0;m<vl.length;m++){var p=vl[m];p.blockedOn===i&&(p.blockedOn=null)}for(;0<vl.length&&(m=vl[0],m.blockedOn===null);)wE(m),m.blockedOn===null&&vl.shift();if(m=(i.ownerDocument||i).$$reactFormReplay,m!=null)for(p=0;p<m.length;p+=3){var _=m[p],M=m[p+1],G=_[Ge]||null;if(typeof M=="function")G||EE(m);else if(G){var re=null;if(M&&M.hasAttribute("formAction")){if(_=M,G=M[Ge]||null)re=G.formAction;else if(Rb(_)!==null)continue}else re=G.action;typeof re=="function"?m[p+1]=re:(m.splice(p,3),p-=3),EE(m)}}}function Mb(i){this._internalRoot=i}Xm.prototype.render=Mb.prototype.render=function(i){var c=this._internalRoot;if(c===null)throw Error(r(409));var m=c.current,p=Ua();bE(m,p,i,c,null,null)},Xm.prototype.unmount=Mb.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var c=i.containerInfo;bE(i.current,2,null,i,null,null),Mm(),c[tt]=null}};function Xm(i){this._internalRoot=i}Xm.prototype.unstable_scheduleHydration=function(i){if(i){var c=lt();i={blockedOn:null,target:i,priority:c};for(var m=0;m<vl.length&&c!==0&&c<vl[m].priority;m++);vl.splice(m,0,i),m===0&&wE(i)}};var _E=t.version;if(_E!=="19.1.0")throw Error(r(527,_E,"19.1.0"));D.findDOMNode=function(i){var c=i._reactInternals;if(c===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(c),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var Pk={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qm.isDisabled&&Qm.supportsFiber)try{De=Qm.inject(Pk),Ye=Qm}catch{}}return fd.createRoot=function(i,c){if(!a(i))throw Error(r(299));var m=!1,p="",_=Fw,M=Vw,G=Kw,re=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(M=c.onCaughtError),c.onRecoverableError!==void 0&&(G=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(re=c.unstable_transitionCallbacks)),c=vE(i,1,!1,null,null,m,p,_,M,G,re,null),i[tt]=c.current,mb(i),new Mb(c)},fd.hydrateRoot=function(i,c,m){if(!a(i))throw Error(r(299));var p=!1,_="",M=Fw,G=Vw,re=Kw,pe=null,Pe=null;return m!=null&&(m.unstable_strictMode===!0&&(p=!0),m.identifierPrefix!==void 0&&(_=m.identifierPrefix),m.onUncaughtError!==void 0&&(M=m.onUncaughtError),m.onCaughtError!==void 0&&(G=m.onCaughtError),m.onRecoverableError!==void 0&&(re=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(pe=m.unstable_transitionCallbacks),m.formState!==void 0&&(Pe=m.formState)),c=vE(i,1,!0,c,m??null,p,_,M,G,re,pe,Pe),c.context=pE(null),m=c.current,p=Ua(),p=gt(p),_=Jo(p),_.callback=null,el(m,_,p),m=p,c.current.lanes=m,Je(c,m),Zi(c),i[tt]=c.current,mb(i),new Xm(c)},fd.version="19.1.0",fd}var kE;function Wk(){if(kE)return Db.exports;kE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Db.exports=Uk(),Db.exports}var qk=Wk(),zb={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var AE;function Yk(){return AE||(AE=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=a(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=a(s,u));return s}function a(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(zb)),zb.exports}var Gk=Yk();const ce=Fi(Gk);function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(null,arguments)}function _t(e){"@babel/helpers - typeof";return _t=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},_t(e)}var Xk=Symbol.for("react.element"),Qk=Symbol.for("react.transitional.element"),Zk=Symbol.for("react.fragment");function eR(e){return e&&_t(e)==="object"&&(e.$$typeof===Xk||e.$$typeof===Qk)&&e.type===Zk}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_a(r)):eR(r)&&r.props?n=n.concat(_a(r.props.children,t)):n.push(r))}),n}var r0={},Jk=function(t){};function e3(e,t){}function t3(e,t){}function n3(){r0={}}function tR(e,t,n){!t&&!r0[n]&&(e(!1,n),r0[n]=!0)}function br(e,t){tR(e3,e,t)}function r3(e,t){tR(t3,e,t)}br.preMessage=Jk;br.resetWarned=n3;br.noteOnce=r3;function a3(e,t){if(_t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nR(e){var t=a3(e,"string");return _t(t)=="symbol"?t:t+""}function X(e,t,n){return(t=nR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zE(Object(n),!0).forEach(function(r){X(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pi=JI();const Qd=Fi(Pi),i3=ZI({__proto__:null,default:Qd},[Pi]);function Zd(e){return e instanceof HTMLElement||e instanceof SVGElement}function $f(e){return e&&_t(e)==="object"&&Zd(e.nativeElement)?e.nativeElement:Zd(e)?e:null}function Ih(e){var t=$f(e);if(t)return t;if(e instanceof Se.Component){var n;return(n=Qd.findDOMNode)===null||n===void 0?void 0:n.call(Qd,e)}return null}var Lb={exports:{}},er={};/**
 * @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.
 */var LE;function o3(){if(LE)return er;LE=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function C(y){if(typeof y=="object"&&y!==null){var w=y.$$typeof;switch(w){case e:switch(y=y.type,y){case n:case a:case r:case d:case h:return y;default:switch(y=y&&y.$$typeof,y){case u:case s:case f:case v:case g:case o:return y;default:return w}}case t:return w}}}return er.ContextConsumer=s,er.ContextProvider=o,er.Element=e,er.ForwardRef=f,er.Fragment=n,er.Lazy=v,er.Memo=g,er.Portal=t,er.Profiler=a,er.StrictMode=r,er.Suspense=d,er.SuspenseList=h,er.isAsyncMode=function(){return!1},er.isConcurrentMode=function(){return!1},er.isContextConsumer=function(y){return C(y)===s},er.isContextProvider=function(y){return C(y)===o},er.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},er.isForwardRef=function(y){return C(y)===f},er.isFragment=function(y){return C(y)===n},er.isLazy=function(y){return C(y)===v},er.isMemo=function(y){return C(y)===g},er.isPortal=function(y){return C(y)===t},er.isProfiler=function(y){return C(y)===a},er.isStrictMode=function(y){return C(y)===r},er.isSuspense=function(y){return C(y)===d},er.isSuspenseList=function(y){return C(y)===h},er.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===a||y===r||y===d||y===h||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===g||y.$$typeof===o||y.$$typeof===s||y.$$typeof===f||y.$$typeof===x||y.getModuleId!==void 0)},er.typeOf=C,er}var HE;function l3(){return HE||(HE=1,Lb.exports=o3()),Lb.exports}var Hb=l3();function _s(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var s3=Number(l.version.split(".")[0]),Jd=function(t,n){typeof t=="function"?t(n):_t(t)==="object"&&t&&"current"in t&&(t.current=n)},xa=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(o){n.forEach(function(s){Jd(s,o)})}},Pl=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _s(function(){return xa.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(s,u){return s!==o[u]})})},ki=function(t){var n,r;if(!t)return!1;if(Yx(t)&&s3>=19)return!0;var a=Hb.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Hb.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Hb.ForwardRef)};function Yx(e){return l.isValidElement(e)&&!eR(e)}var c3=function(t){return Yx(t)&&ki(t)},kl=function(t){if(t&&Yx(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},a0=l.createContext(null);function u3(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(a0),s=l.useCallback(function(u,f,d){r.current+=1;var h=r.current;a.current.push({size:u,element:f,data:d}),Promise.resolve().then(function(){h===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(u,f,d)},[n,o]);return l.createElement(a0.Provider,{value:s},t)}var rR=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a<o.length;a++){var s=o[a];n.call(r,s[1],s[0])}},t})()})(),i0=typeof window<"u"&&typeof document<"u"&&window.document===document,tg=(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")()})(),d3=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tg):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),f3=2;function m3(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&u()}function s(){d3(o)}function u(){var f=Date.now();if(n){if(f-a<f3)return;r=!0}else n=!0,r=!1,setTimeout(s,t);a=f}return u}var h3=20,g3=["top","right","bottom","left","width","height","size","weight"],v3=typeof MutationObserver<"u",p3=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m3(this.refresh.bind(this),h3)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.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(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!i0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v3?(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(){!i0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=g3.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),aR=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),Fc=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||tg}),iR=Ig(0,0,0,0);function ng(e){return parseFloat(e)||0}function BE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var o=e["border-"+a+"-width"];return r+ng(o)},0)}function b3(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],s=e["padding-"+o];n[o]=ng(s)}return n}function y3(e){var t=e.getBBox();return Ig(0,0,t.width,t.height)}function x3(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return iR;var r=Fc(e).getComputedStyle(e),a=b3(r),o=a.left+a.right,s=a.top+a.bottom,u=ng(r.width),f=ng(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=BE(r,"left","right")+o),Math.round(f+s)!==n&&(f-=BE(r,"top","bottom")+s)),!C3(e)){var d=Math.round(u+o)-t,h=Math.round(f+s)-n;Math.abs(d)!==1&&(u-=d),Math.abs(h)!==1&&(f-=h)}return Ig(a.left,a.top,u,f)}var S3=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Fc(e).SVGGraphicsElement}:function(e){return e instanceof Fc(e).SVGElement&&typeof e.getBBox=="function"}})();function C3(e){return e===Fc(e).document.documentElement}function w3(e){return i0?S3(e)?y3(e):x3(e):iR}function $3(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return aR(s,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),s}function Ig(e,t,n,r){return{x:e,y:t,width:n,height:r}}var E3=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ig(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=w3(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})(),_3=(function(){function e(t,n){var r=$3(n);aR(this,{target:t,contentRect:r})}return e})(),O3=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new rR,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 Fc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new E3(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 Fc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _3(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),oR=typeof WeakMap<"u"?new WeakMap:new rR,lR=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=p3.getInstance(),r=new O3(t,n,this);oR.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){lR.prototype[e]=function(){var t;return(t=oR.get(this))[e].apply(t,arguments)}});var I3=(function(){return typeof tg.ResizeObserver<"u"?tg.ResizeObserver:lR})(),$l=new Map;function R3(e){e.forEach(function(t){var n,r=t.target;(n=$l.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var sR=new I3(R3);function N3(e,t){$l.has(e)||($l.set(e,new Set),sR.observe(e)),$l.get(e).add(t)}function M3(e,t){$l.has(e)&&($l.get(e).delete(t),$l.get(e).size||(sR.unobserve(e),$l.delete(e)))}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nR(r.key),r)}}function xr(e,t,n){return t&&FE(e.prototype,t),n&&FE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ef(e,t)}function ei(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&&ef(e,t)}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ys(e)}function Rg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rg=function(){return!!e})()}function Ct(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cR(e,t){if(t&&(_t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ct(e)}function yi(e){var t=Rg();return function(){var n,r=ys(e);if(t){var a=ys(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return cR(this,n)}}var j3=(function(e){ei(n,e);var t=yi(n);function n(){return yr(this,n),t.apply(this,arguments)}return xr(n,[{key:"render",value:function(){return this.props.children}}]),n})(l.Component);function T3(e,t){var n=e.children,r=e.disabled,a=l.useRef(null),o=l.useRef(null),s=l.useContext(a0),u=typeof n=="function",f=u?n(a):n,d=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&l.isValidElement(f)&&ki(f),g=h?kl(f):null,v=Pl(g,a),b=function(){var w;return Ih(a.current)||(a.current&&_t(a.current)==="object"?Ih((w=a.current)===null||w===void 0?void 0:w.nativeElement):null)||Ih(o.current)};l.useImperativeHandle(t,function(){return b()});var x=l.useRef(e);x.current=e;var C=l.useCallback(function(y){var w=x.current,$=w.onResize,E=w.data,I=y.getBoundingClientRect(),O=I.width,R=I.height,T=y.offsetWidth,P=y.offsetHeight,N=Math.floor(O),k=Math.floor(R);if(d.current.width!==N||d.current.height!==k||d.current.offsetWidth!==T||d.current.offsetHeight!==P){var z={width:N,height:k,offsetWidth:T,offsetHeight:P};d.current=z;var V=T===Math.round(O)?O:T,B=P===Math.round(R)?R:P,L=te(te({},z),{},{offsetWidth:V,offsetHeight:B});s==null||s(L,y,E),$&&Promise.resolve().then(function(){$(L,y)})}},[]);return l.useEffect(function(){var y=b();return y&&!r&&N3(y,C),function(){return M3(y,C)}},[a.current,r]),l.createElement(j3,{ref:o},h?l.cloneElement(f,{ref:v}):f)}var D3=l.forwardRef(T3),P3="rc-observer-key";function k3(e,t){var n=e.children,r=typeof n=="function"?[n]:_a(n);return r.map(function(a,o){var s=(a==null?void 0:a.key)||"".concat(P3,"-").concat(o);return l.createElement(D3,Me({},e,{key:s,ref:o===0?t:void 0}),a)})}var ga=l.forwardRef(k3);ga.Collection=u3;function o0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A3(e){if(Array.isArray(e))return o0(e)}function uR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gx(e,t){if(e){if(typeof e=="string")return o0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o0(e,t):void 0}}function z3(){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 Ae(e){return A3(e)||uR(e)||Gx(e)||z3()}var dR=function(t){return+setTimeout(t,16)},fR=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(dR=function(t){return window.requestAnimationFrame(t)},fR=function(t){return window.cancelAnimationFrame(t)});var VE=0,Xx=new Map;function mR(e){Xx.delete(e)}var un=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;VE+=1;var r=VE;function a(o){if(o===0)mR(r),t();else{var s=dR(function(){a(o-1)});Xx.set(r,s)}}return a(n),r};un.cancel=function(e){var t=Xx.get(e);return mR(e),fR(t)};function hR(e){if(Array.isArray(e))return e}function L3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,s,u=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(h){d=!0,a=h}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw a}}return u}}function gR(){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 ue(e,t){return hR(e)||L3(e,t)||Gx(e,t)||gR()}function tf(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function va(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function H3(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var KE="data-rc-order",UE="data-rc-priority",B3="rc-util-key",l0=new Map;function vR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):B3}function Ng(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function F3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Qx(e){return Array.from((l0.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function pR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!va())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,s=F3(r),u=s==="prependQueue",f=document.createElement("style");f.setAttribute(KE,s),u&&o&&f.setAttribute(UE,"".concat(o)),n!=null&&n.nonce&&(f.nonce=n==null?void 0:n.nonce),f.innerHTML=e;var d=Ng(t),h=d.firstChild;if(r){if(u){var g=(t.styles||Qx(d)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(KE)))return!1;var b=Number(v.getAttribute(UE)||0);return o>=b});if(g.length)return d.insertBefore(f,g[g.length-1].nextSibling),f}d.insertBefore(f,h)}else d.appendChild(f);return f}function bR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ng(t);return(t.styles||Qx(n)).find(function(r){return r.getAttribute(vR(t))===e})}function nf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bR(e,t);if(n){var r=Ng(t);r.removeChild(n)}}function V3(e,t){var n=l0.get(e);if(!n||!H3(document,n)){var r=pR("",t),a=r.parentNode;l0.set(e,a),e.removeChild(r)}}function ko(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ng(n),a=Qx(r),o=te(te({},n),{},{styles:a});V3(r,o);var s=bR(t,o);if(s){var u,f;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((f=o.csp)===null||f===void 0?void 0:f.nonce)){var d;s.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var h=pR(e,o);return h.setAttribute(vR(o),t),h}function K3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qt(e,t){if(e==null)return{};var n,r,a=K3(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function no(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(o);if(br(!f,"Warning: There may be circular references"),f)return!1;if(o===s)return!0;if(n&&u>1)return!1;r.add(o);var d=u+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var h=0;h<o.length;h++)if(!a(o[h],s[h],d))return!1;return!0}if(o&&s&&_t(o)==="object"&&_t(s)==="object"){var g=Object.keys(o);return g.length!==Object.keys(s).length?!1:g.every(function(v){return a(o[v],s[v],d)})}return!1}return a(e,t)}var U3="%";function s0(e){return e.join(U3)}var W3=(function(){function e(t){yr(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),this.instanceId=t}return xr(e,[{key:"get",value:function(n){return this.opGet(s0(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(s0(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),o=r(a);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e})(),Vc="data-token-hash",ji="data-css-hash",El="__cssinjs_instance__";function q3(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ji,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[El]=a[El]||e,a[El]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ji,"]"))).forEach(function(a){var o=a.getAttribute(ji);if(r[o]){if(a[El]===e){var s;(s=a.parentNode)===null||s===void 0||s.removeChild(a)}}else r[o]=!0})}return new W3(e)}var Ef=l.createContext({hashPriority:"low",cache:q3(),defaultCache:!0});function Y3(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Zx=(function(){function e(){yr(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return xr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(u){if(!s)s=void 0;else{var f;s=(f=s)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=s)!==null&&r!==void 0&&r.value&&o&&(s.value[1]=this.cacheCallTimes++),(a=s)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,h){var g=ue(d,2),v=g[1];return a.internalGet(h)[1]<v?[h,a.internalGet(h)[1]]:d},[this.keys[0],this.cacheCallTimes]),s=ue(o,1),u=s[0];this.delete(u)}this.keys.push(n)}var f=this.cache;n.forEach(function(d,h){if(h===n.length-1)f.set(d,{value:[r,a.cacheCallTimes++]});else{var g=f.get(d);g?g.map||(g.map=new Map):f.set(d,{map:new Map}),f=f.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var o;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var s=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Y3(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();X(Zx,"MAX_CACHE_SIZE",20);X(Zx,"MAX_CACHE_OFFSET",5);var WE=0,yR=(function(){function e(t){yr(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=WE,t.length===0&&(t.length>0,void 0),WE+=1}return xr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),Bb=new Zx;function c0(e){var t=Array.isArray(e)?e:[e];return Bb.has(t)||Bb.set(t,new yR(t)),Bb.get(t)}var G3=new WeakMap,Fb={};function X3(e,t){for(var n=G3,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(Fb)||n.set(Fb,e()),n.get(Fb)}var qE=new WeakMap;function Ld(e){var t=qE.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof yR?t+=r.id:r&&_t(r)==="object"?t+=Ld(r):t+=r}),t=tf(t),qE.set(e,t)),t}function YE(e,t){return tf("".concat(t,"_").concat(Ld(e)))}var u0=va();function ne(e){return typeof e=="number"?"".concat(e,"px"):e}function rg(e,t,n){var r,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var s=te(te({},a),{},(r={},X(r,Vc,t),X(r,ji,n),r)),u=Object.keys(s).map(function(f){var d=s[f];return d?"".concat(f,'="').concat(d,'"'):null}).filter(function(f){return f}).join(" ");return"<style ".concat(u,">").concat(e,"</style>")}var Rh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Q3=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ue(a,2),s=o[0],u=o[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},xR=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(s){var u,f,d=ue(s,2),h=d[0],g=d[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[h])o[h]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[h])){var v,b=Rh(h,r==null?void 0:r.prefix);a[b]=typeof g=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[h])?"".concat(g,"px"):String(g),o[h]="var(".concat(b,")")}}),[o,Q3(a,n,{scope:r==null?void 0:r.scope})]},GE=va()?l.useLayoutEffect:l.useEffect,hn=function(t,n){var r=l.useRef(!0);GE(function(){return t(r.current)},n),GE(function(){return r.current=!1,function(){r.current=!0}},[])},gs=function(t,n){hn(function(r){if(!r)return t()},n)},Z3=te({},Og),XE=Z3.useInsertionEffect,J3=function(t,n,r){l.useMemo(t,r),hn(function(){return n(!0)},r)},e6=XE?function(e,t,n){return XE(function(){return e(),t()},n)}:J3,t6=te({},Og),n6=t6.useInsertionEffect,r6=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},a6=function(){return function(t){t()}},i6=typeof n6<"u"?r6:a6;function Jx(e,t,n,r,a){var o=l.useContext(Ef),s=o.cache,u=[e].concat(Ae(t)),f=s0(u),d=i6([f]),h=function(x){s.opUpdate(f,function(C){var y=C||[void 0,void 0],w=ue(y,2),$=w[0],E=$===void 0?0:$,I=w[1],O=I,R=O||n(),T=[E,R];return x?x(T):T})};l.useMemo(function(){h()},[f]);var g=s.opGet(f),v=g[1];return e6(function(){a==null||a(v)},function(b){return h(function(x){var C=ue(x,2),y=C[0],w=C[1];return b&&y===0&&(a==null||a(v)),[y+1,w]}),function(){s.opUpdate(f,function(x){var C=x||[],y=ue(C,2),w=y[0],$=w===void 0?0:w,E=y[1],I=$-1;return I===0?(d(function(){(b||!s.opGet(f))&&(r==null||r(E,!1))}),null):[$-1,E]})}},[f]),v}var o6={},l6="css",us=new Map;function s6(e){us.set(e,(us.get(e)||0)+1)}function c6(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Vc,'="').concat(e,'"]'));n.forEach(function(r){if(r[El]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var u6=0;function d6(e,t){us.set(e,(us.get(e)||0)-1);var n=Array.from(us.keys()),r=n.filter(function(a){var o=us.get(a)||0;return o<=0});n.length-r.length>u6&&r.forEach(function(a){c6(a,t),us.delete(a)})}var f6=function(t,n,r,a){var o=r.getDerivativeToken(t),s=te(te({},o),n);return a&&(s=a(s)),s},SR="token";function m6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(Ef),a=r.cache.instanceId,o=r.container,s=n.salt,u=s===void 0?"":s,f=n.override,d=f===void 0?o6:f,h=n.formatToken,g=n.getComputedToken,v=n.cssVar,b=X3(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),x=Ld(b),C=Ld(d),y=v?Ld(v):"",w=Jx(SR,[u,e.id,x,C,y],function(){var $,E=g?g(b,d,e):f6(b,d,e,h),I=te({},E),O="";if(v){var R=xR(E,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),T=ue(R,2);E=T[0],O=T[1]}var P=YE(E,u);E._tokenKey=P,I._tokenKey=YE(I,u);var N=($=v==null?void 0:v.key)!==null&&$!==void 0?$:P;E._themeKey=N,s6(N);var k="".concat(l6,"-").concat(tf(P));return E._hashId=k,[E,k,I,O,(v==null?void 0:v.key)||""]},function($){d6($[0]._themeKey,a)},function($){var E=ue($,4),I=E[0],O=E[3];if(v&&O){var R=ko(O,tf("css-variables-".concat(I._themeKey)),{mark:ji,prepend:"queue",attachTo:o,priority:-999});R[El]=a,R.setAttribute(Vc,I._themeKey)}});return w}var h6=function(t,n,r){var a=ue(t,5),o=a[2],s=a[3],u=a[4],f=r||{},d=f.plain;if(!s)return null;var h=o._tokenKey,g=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=rg(s,u,h,v,d);return[g,h,b]},g6={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},CR="comm",wR="rule",$R="decl",v6="@import",p6="@namespace",b6="@keyframes",y6="@layer",ER=Math.abs,eS=String.fromCharCode;function _R(e){return e.trim()}function Nh(e,t,n){return e.replace(t,n)}function x6(e,t,n){return e.indexOf(t,n)}function Tc(e,t){return e.charCodeAt(t)|0}function Kc(e,t,n){return e.slice(t,n)}function eo(e){return e.length}function S6(e){return e.length}function Zm(e,t){return t.push(e),e}var Mg=1,Uc=1,OR=0,pi=0,Kr=0,Xc="";function tS(e,t,n,r,a,o,s,u){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Mg,column:Uc,length:s,return:"",siblings:u}}function C6(){return Kr}function w6(){return Kr=pi>0?Tc(Xc,--pi):0,Uc--,Kr===10&&(Uc=1,Mg--),Kr}function Ti(){return Kr=pi<OR?Tc(Xc,pi++):0,Uc++,Kr===10&&(Uc=1,Mg++),Kr}function _l(){return Tc(Xc,pi)}function Mh(){return pi}function jg(e,t){return Kc(Xc,e,t)}function rf(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 $6(e){return Mg=Uc=1,OR=eo(Xc=e),pi=0,[]}function E6(e){return Xc="",e}function Vb(e){return _R(jg(pi-1,d0(e===91?e+2:e===40?e+1:e)))}function _6(e){for(;(Kr=_l())&&Kr<33;)Ti();return rf(e)>2||rf(Kr)>3?"":" "}function O6(e,t){for(;--t&&Ti()&&!(Kr<48||Kr>102||Kr>57&&Kr<65||Kr>70&&Kr<97););return jg(e,Mh()+(t<6&&_l()==32&&Ti()==32))}function d0(e){for(;Ti();)switch(Kr){case e:return pi;case 34:case 39:e!==34&&e!==39&&d0(Kr);break;case 40:e===41&&d0(e);break;case 92:Ti();break}return pi}function I6(e,t){for(;Ti()&&e+Kr!==57;)if(e+Kr===84&&_l()===47)break;return"/*"+jg(t,pi-1)+"*"+eS(e===47?e:Ti())}function R6(e){for(;!rf(_l());)Ti();return jg(e,pi)}function N6(e){return E6(jh("",null,null,null,[""],e=$6(e),0,[0],e))}function jh(e,t,n,r,a,o,s,u,f){for(var d=0,h=0,g=s,v=0,b=0,x=0,C=1,y=1,w=1,$=0,E="",I=a,O=o,R=r,T=E;y;)switch(x=$,$=Ti()){case 40:if(x!=108&&Tc(T,g-1)==58){x6(T+=Nh(Vb($),"&","&\f"),"&\f",ER(d?u[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:T+=Vb($);break;case 9:case 10:case 13:case 32:T+=_6(x);break;case 92:T+=O6(Mh()-1,7);continue;case 47:switch(_l()){case 42:case 47:Zm(M6(I6(Ti(),Mh()),t,n,f),f),(rf(x||1)==5||rf(_l()||1)==5)&&eo(T)&&Kc(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*C:u[d++]=eo(T)*w;case 125*C:case 59:case 0:switch($){case 0:case 125:y=0;case 59+h:w==-1&&(T=Nh(T,/\f/g,"")),b>0&&(eo(T)-g||C===0&&x===47)&&Zm(b>32?ZE(T+";",r,n,g-1,f):ZE(Nh(T," ","")+";",r,n,g-2,f),f);break;case 59:T+=";";default:if(Zm(R=QE(T,t,n,d,h,a,u,E,I=[],O=[],g,o),o),$===123)if(h===0)jh(T,t,R,R,I,o,g,u,O);else{switch(v){case 99:if(Tc(T,3)===110)break;case 108:if(Tc(T,2)===97)break;default:h=0;case 100:case 109:case 115:}h?jh(e,R,R,r&&Zm(QE(e,R,R,0,0,a,u,E,a,I=[],g,O),O),a,O,g,u,r?I:O):jh(T,R,R,R,[""],O,0,u,O)}}d=h=b=0,C=w=1,E=T="",g=s;break;case 58:g=1+eo(T),b=x;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&w6()==125)continue}switch(T+=eS($),$*C){case 38:w=h>0?1:(T+="\f",-1);break;case 44:u[d++]=(eo(T)-1)*w,w=1;break;case 64:_l()===45&&(T+=Vb(Ti())),v=_l(),h=g=eo(E=T+=R6(Mh())),$++;break;case 45:x===45&&eo(T)==2&&(C=0)}}return o}function QE(e,t,n,r,a,o,s,u,f,d,h,g){for(var v=a-1,b=a===0?o:[""],x=S6(b),C=0,y=0,w=0;C<r;++C)for(var $=0,E=Kc(e,v+1,v=ER(y=s[C])),I=e;$<x;++$)(I=_R(y>0?b[$]+" "+E:Nh(E,/&\f/g,b[$])))&&(f[w++]=I);return tS(e,t,n,a===0?wR:u,f,d,h,g)}function M6(e,t,n,r){return tS(e,t,n,CR,eS(C6()),Kc(e,2,-2),0,r)}function ZE(e,t,n,r,a){return tS(e,t,n,$R,Kc(e,0,r),Kc(e,r+1,-1),r,a)}function f0(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function j6(e,t,n,r){switch(e.type){case y6:if(e.children.length)break;case v6:case p6:case $R:return e.return=e.return||e.value;case CR:return"";case b6:return e.return=e.value+"{"+f0(e.children,r)+"}";case wR:if(!eo(e.value=e.props.join(",")))return""}return eo(n=f0(e.children,r))?e.return=e.value+"{"+n+"}":""}var JE="data-ant-cssinjs-cache-path",IR="_FILE_STYLE__",vs,RR=!0;function T6(){if(!vs&&(vs={},va())){var e=document.createElement("div");e.className=JE,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(a){var o=a.split(":"),s=ue(o,2),u=s[0],f=s[1];vs[u]=f});var n=document.querySelector("style[".concat(JE,"]"));if(n){var r;RR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function D6(e){return T6(),!!vs[e]}function P6(e){var t=vs[e],n=null;if(t&&va())if(RR)n=IR;else{var r=document.querySelector("style[".concat(ji,'="').concat(vs[e],'"]'));r?n=r.innerHTML:delete vs[e]}return[n,t]}var k6="_skip_check_",NR="_multi_value_";function Th(e){var t=f0(N6(e),j6);return t.replace(/\{%%%\:[^;];}/g,";")}function A6(e){return _t(e)==="object"&&e&&(k6 in e||NR in e)}function e_(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(s){var u,f=s.trim().split(/\s+/),d=f[0]||"",h=((u=d.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return d="".concat(h).concat(a).concat(d.slice(h.length)),[d].concat(Ae(f.slice(1))).join(" ")});return o.join(",")}var z6=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,s=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var d=n.hashPriority,h=n.transformers,g=h===void 0?[]:h;n.linters;var v="",b={};function x(w){var $=w.getName(u);if(!b[$]){var E=e(w.style,n,{root:!1,parentSelectors:s}),I=ue(E,1),O=I[0];b[$]="@keyframes ".concat(w.getName(u)).concat(O)}}function C(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(E){Array.isArray(E)?C(E,$):E&&$.push(E)}),$}var y=C(Array.isArray(t)?t:[t]);return y.forEach(function(w){var $=typeof w=="string"&&!a?{}:w;if(typeof $=="string")v+="".concat($,`
`);else if($._keyframe)x($);else{var E=g.reduce(function(I,O){var R;return(O==null||(R=O.visit)===null||R===void 0?void 0:R.call(O,I))||I},$);Object.keys(E).forEach(function(I){var O=E[I];if(_t(O)==="object"&&O&&(I!=="animationName"||!O._keyframe)&&!A6(O)){var R=!1,T=I.trim(),P=!1;(a||o)&&u?T.startsWith("@")?R=!0:T==="&"?T=e_("",u,d):T=e_(I,u,d):a&&!u&&(T==="&"||T==="")&&(T="",P=!0);var N=e(O,n,{root:P,injectHash:R,parentSelectors:[].concat(Ae(s),[T])}),k=ue(N,2),z=k[0],V=k[1];b=te(te({},b),V),v+="".concat(T).concat(z)}else{let H=function(j,D){var F=j.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),U=D;!g6[j]&&typeof U=="number"&&U!==0&&(U="".concat(U,"px")),j==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(x(D),U=D.getName(u)),v+="".concat(F,":").concat(U,";")};var B,L=(B=O==null?void 0:O.value)!==null&&B!==void 0?B:O;_t(O)==="object"&&O!==null&&O!==void 0&&O[NR]&&Array.isArray(L)?L.forEach(function(j){H(I,j)}):H(I,L)}})}}),a?f&&(v&&(v="@layer ".concat(f.name," {").concat(v,"}")),f.dependencies&&(b["@layer ".concat(f.name)]=f.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(f.name,";")}).join(`
`))):v="{".concat(v,"}"),[v,b]};function MR(e,t){return tf("".concat(e.join("%")).concat(t))}function L6(){return null}var jR="style";function m0(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,s=e.nonce,u=e.clientOnly,f=e.order,d=f===void 0?0:f,h=l.useContext(Ef),g=h.autoClear;h.mock;var v=h.defaultCache,b=h.hashPriority,x=h.container,C=h.ssrInline,y=h.transformers,w=h.linters,$=h.cache,E=h.layer,I=n._tokenKey,O=[I];E&&O.push("layer"),O.push.apply(O,Ae(r));var R=u0,T=Jx(jR,O,function(){var V=O.join("|");if(D6(V)){var B=P6(V),L=ue(B,2),H=L[0],j=L[1];if(H)return[H,I,j,{},u,d]}var D=t(),F=z6(D,{hashId:a,hashPriority:b,layer:E?o:void 0,path:r.join("-"),transformers:y,linters:w}),U=ue(F,2),A=U[0],K=U[1],q=Th(A),Y=MR(O,q);return[q,I,Y,K,u,d]},function(V,B){var L=ue(V,3),H=L[2];(B||g)&&u0&&nf(H,{mark:ji})},function(V){var B=ue(V,4),L=B[0];B[1];var H=B[2],j=B[3];if(R&&L!==IR){var D={mark:ji,prepend:E?!1:"queue",attachTo:x,priority:d},F=typeof s=="function"?s():s;F&&(D.csp={nonce:F});var U=[],A=[];Object.keys(j).forEach(function(q){q.startsWith("@layer")?U.push(q):A.push(q)}),U.forEach(function(q){ko(Th(j[q]),"_layer-".concat(q),te(te({},D),{},{prepend:!0}))});var K=ko(L,H,D);K[El]=$.instanceId,K.setAttribute(Vc,I),A.forEach(function(q){ko(Th(j[q]),"_effect-".concat(q),D)})}}),P=ue(T,3),N=P[0],k=P[1],z=P[2];return function(V){var B;if(!C||R||!v)B=l.createElement(L6,null);else{var L;B=l.createElement("style",Me({},(L={},X(L,Vc,k),X(L,ji,z),L),{dangerouslySetInnerHTML:{__html:N}}))}return l.createElement(l.Fragment,null,B,V)}}var H6=function(t,n,r){var a=ue(t,6),o=a[0],s=a[1],u=a[2],f=a[3],d=a[4],h=a[5],g=r||{},v=g.plain;if(d)return null;var b=o,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return b=rg(o,s,u,x,v),f&&Object.keys(f).forEach(function(C){if(!n[C]){n[C]=!0;var y=Th(f[C]),w=rg(y,s,"_effect-".concat(C),x,v);C.startsWith("@layer")?b=w+b:b+=w}}),[h,u,b]},TR="cssVar",B6=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,s=t.ignore,u=t.token,f=t.scope,d=f===void 0?"":f,h=l.useContext(Ef),g=h.cache.instanceId,v=h.container,b=u._tokenKey,x=[].concat(Ae(t.path),[r,d,b]),C=Jx(TR,x,function(){var y=n(),w=xR(y,r,{prefix:a,unitless:o,ignore:s,scope:d}),$=ue(w,2),E=$[0],I=$[1],O=MR(x,I);return[E,I,O,r]},function(y){var w=ue(y,3),$=w[2];u0&&nf($,{mark:ji})},function(y){var w=ue(y,3),$=w[1],E=w[2];if($){var I=ko($,E,{mark:ji,prepend:"queue",attachTo:v,priority:-999});I[El]=g,I.setAttribute(Vc,r)}});return C},F6=function(t,n,r){var a=ue(t,4),o=a[1],s=a[2],u=a[3],f=r||{},d=f.plain;if(!o)return null;var h=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},v=rg(o,u,s,g,d);return[h,s,v]},md;md={},X(md,jR,H6),X(md,SR,h6),X(md,TR,F6);var Dn=(function(){function e(t,n){yr(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=n}return xr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function hc(e){return e.notSplit=!0,e}hc(["borderTop","borderBottom"]),hc(["borderTop"]),hc(["borderBottom"]),hc(["borderLeft","borderRight"]),hc(["borderLeft"]),hc(["borderRight"]);var nS=l.createContext({});function DR(e){return hR(e)||uR(e)||Gx(e)||gR()}function Ma(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function PR(e,t,n,r){if(!t.length)return n;var a=DR(t),o=a[0],s=a.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=Ae(e):u=te({},e),r&&n===void 0&&s.length===1?delete u[o][s[0]]:u[o]=PR(u[o],s,n,r),u}function mi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ma(e,t.slice(0,-1))?e:PR(e,t,n,r)}function V6(e){return _t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t_(e){return Array.isArray(e)?[]:{}}var K6=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ic(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t_(t[0]);return t.forEach(function(a){function o(s,u){var f=new Set(u),d=Ma(a,s),h=Array.isArray(d);if(h||V6(d)){if(!f.has(d)){f.add(d);var g=Ma(r,s);h?r=mi(r,s,[]):(!g||_t(g)!=="object")&&(r=mi(r,s,t_(d))),K6(d).forEach(function(v){o([].concat(Ae(s),[v]),f)})}}else r=mi(r,s,d)}o([])}),r}function U6(){}const W6=l.createContext({}),Al=()=>{const e=()=>{};return e.deprecated=U6,e},kR=l.createContext(void 0);var AR={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"},q6={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Y6=te(te({},q6),{},{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"});const zR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ag={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"]},Y6),timePickerLocale:Object.assign({},zR)},Ya="${label} is not a valid ${type}",Ho={locale:"en",Pagination:AR,DatePicker:ag,TimePicker:zR,Calendar:ag,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:Ya,method:Ya,array:Ya,object:Ya,number:Ya,date:Ya,boolean:Ya,integer:Ya,float:Ya,regexp:Ya,email:Ya,url:Ya,hex:Ya},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Ho.Modal);let Dh=[];const n_=()=>Dh.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ho.Modal);function G6(e){if(e){const t=Object.assign({},e);return Dh.push(t),n_(),()=>{Dh=Dh.filter(n=>n!==t),n_()}}Object.assign({},Ho.Modal)}const rS=l.createContext(void 0),Wo=(e,t)=>{const n=l.useContext(rS),r=l.useMemo(()=>{var o;const s=t||Ho[e],u=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Ho.locale:o},[n]);return[r,a]},X6="internalMark",Q6=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>G6(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(rS.Provider,{value:a},n)},LR={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"},af=Object.assign(Object.assign({},LR),{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}),oa=Math.round;function Kb(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const r_=(e,t,n)=>n===0?e:e/100;function hd(e,t){const n=t||255;return e>n?n:e<0?0:e}let Mn=class HR{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof HR)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=hd(t.r),this.g=hd(t.g),this.b=hd(t.b),this.a=typeof t.a=="number"?hd(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=oa(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"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=u=>(r[u]-this[u])*a+this[u],s={r:oa(o("r")),g:oa(o("g")),b:oa(o("b")),a:oa(o("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>oa((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=oa(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=oa(this.getSaturation()*100),r=oa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=hd(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const v=oa(r*255);this.r=v,this.g=v,this.b=v}let o=0,s=0,u=0;const f=t/60,d=(1-Math.abs(2*r-1))*n,h=d*(1-Math.abs(f%2-1));f>=0&&f<1?(o=d,s=h):f>=1&&f<2?(o=h,s=d):f>=2&&f<3?(s=d,u=h):f>=3&&f<4?(s=h,u=d):f>=4&&f<5?(o=h,u=d):f>=5&&f<6&&(o=d,u=h);const g=r-d/2;this.r=oa((o+g)*255),this.g=oa((s+g)*255),this.b=oa((u+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=oa(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=t/60,u=Math.floor(s),f=s-u,d=oa(r*(1-n)*255),h=oa(r*(1-n*f)*255),g=oa(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=d;break;case 1:this.r=h,this.b=d;break;case 2:this.r=d,this.b=g;break;case 3:this.r=d,this.g=h;break;case 4:this.r=g,this.g=d;break;case 5:default:this.g=d,this.b=h;break}}fromHsvString(t){const n=Kb(t,r_);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Kb(t,r_);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Kb(t,(r,a)=>a.includes("%")?oa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var Jm=2,a_=.16,Z6=.05,J6=.05,eA=.15,BR=5,FR=4,tA=[{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 i_(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Jm*t:Math.round(e.h)+Jm*t:r=n?Math.round(e.h)+Jm*t:Math.round(e.h)-Jm*t,r<0?r+=360:r>=360&&(r-=360),r}function o_(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-a_*t:t===FR?r=e.s+a_:r=e.s+Z6*t,r>1&&(r=1),n&&t===BR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function l_(e,t,n){var r;return n?r=e.v+J6*t:r=e.v-eA*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function of(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Mn(e),a=r.toHsv(),o=BR;o>0;o-=1){var s=new Mn({h:i_(a,o,!0),s:o_(a,o,!0),v:l_(a,o,!0)});n.push(s)}n.push(r);for(var u=1;u<=FR;u+=1){var f=new Mn({h:i_(a,u),s:o_(a,u),v:l_(a,u)});n.push(f)}return t.theme==="dark"?tA.map(function(d){var h=d.index,g=d.amount;return new Mn(t.backgroundColor||"#141414").mix(n[h],g).toHexString()}):n.map(function(d){return d.toHexString()})}var Dc={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"},h0=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];h0.primary=h0[5];var g0=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];g0.primary=g0[5];var v0=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];v0.primary=v0[5];var ig=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ig.primary=ig[5];var p0=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];p0.primary=p0[5];var b0=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b0.primary=b0[5];var y0=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];y0.primary=y0[5];var x0=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];x0.primary=x0[5];var Wc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wc.primary=Wc[5];var S0=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];S0.primary=S0[5];var C0=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];C0.primary=C0[5];var w0=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];w0.primary=w0[5];var $0=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];$0.primary=$0[5];var Ub={red:h0,volcano:g0,orange:v0,gold:ig,yellow:p0,lime:b0,green:y0,cyan:x0,blue:Wc,geekblue:S0,purple:C0,magenta:w0,grey:$0};function nA(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:s,colorInfo:u,colorPrimary:f,colorBgBase:d,colorTextBase:h}=e,g=n(f),v=n(a),b=n(o),x=n(s),C=n(u),y=r(d,h),w=e.colorLink||e.colorInfo,$=n(w),E=new Mn(x[1]).mix(new Mn(x[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgFilledHover:E,colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new Mn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const rA=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function aA(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},rA(r))}const iA=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ph(e){return(e+8)/e}function oA(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),s=r>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ph(n)}))}const lA=e=>{const t=oA(e),n=t.map(h=>h.size),r=t.map(h=>h.lineHeight),a=n[1],o=n[0],s=n[2],u=r[1],f=r[0],d=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:d,lineHeightSM:f,fontHeight:Math.round(u*a),fontHeightLG:Math.round(d*s),fontHeightSM:Math.round(f*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function sA(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ci=(e,t)=>new Mn(e).setA(t).toRgbString(),gd=(e,t)=>new Mn(e).darken(t).toHexString(),cA=e=>{const t=of(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]}},uA=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ci(r,.88),colorTextSecondary:ci(r,.65),colorTextTertiary:ci(r,.45),colorTextQuaternary:ci(r,.25),colorFill:ci(r,.15),colorFillSecondary:ci(r,.06),colorFillTertiary:ci(r,.04),colorFillQuaternary:ci(r,.02),colorBgSolid:ci(r,1),colorBgSolidHover:ci(r,.75),colorBgSolidActive:ci(r,.95),colorBgLayout:gd(n,4),colorBgContainer:gd(n,0),colorBgElevated:gd(n,0),colorBgSpotlight:ci(r,.85),colorBgBlur:"transparent",colorBorder:gd(n,15),colorBorderSecondary:gd(n,6)}};function dA(e){Dc.pink=Dc.magenta,Ub.pink=Ub.magenta;const t=Object.keys(LR).map(n=>{const r=e[n]===Dc[n]?Ub[n]:of(e[n]);return Array.from({length:10},()=>1).reduce((a,o,s)=>(a[`${n}-${s+1}`]=r[s],a[`${n}${s+1}`]=r[s],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),nA(e,{generateColorPalettes:cA,generateNeutralColorPalettes:uA})),lA(e.fontSize)),sA(e)),iA(e)),aA(e))}const VR=c0(dA),lf={token:af,override:{override:af},hashed:!0},KR=Se.createContext(lf),sf="ant",Tg="anticon",fA=["outlined","borderless","filled","underlined"],mA=(e,t)=>t||(e?`${sf}-${e}`:sf),Yt=l.createContext({getPrefixCls:mA,iconPrefixCls:Tg}),{Consumer:Kce}=Yt,s_={};function Ia(e){const t=l.useContext(Yt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:s_,styles:s_},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const hA=`-ant-${Date.now()}-${Math.random()}`;function gA(e,t){const n={},r=(s,u)=>{let f=s.clone();return f=(u==null?void 0:u(f))||f,f.toRgbString()},a=(s,u)=>{const f=new Mn(s),d=of(f.toRgbString());n[`${u}-color`]=r(f),n[`${u}-color-disabled`]=d[1],n[`${u}-color-hover`]=d[4],n[`${u}-color-active`]=d[6],n[`${u}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=d[0],n[`${u}-color-deprecated-border`]=d[2]};if(t.primaryColor){a(t.primaryColor,"primary");const s=new Mn(t.primaryColor),u=of(s.toRgbString());u.forEach((d,h)=>{n[`primary-${h+1}`]=d}),n["primary-color-deprecated-l-35"]=r(s,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(s,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(s,d=>d.setA(d.a*.12));const f=new Mn(u[0]);n["primary-color-active-deprecated-f-30"]=r(f,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(f,d=>d.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
`)}
  }
  `.trim()}function vA(e,t){const n=gA(e,t);va()&&ko(n,`${hA}-dynamic-theme`)}const Oa=l.createContext(!1),UR=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Oa);return l.createElement(Oa.Provider,{value:n??r},t)},xs=l.createContext(void 0),pA=e=>{let{children:t,size:n}=e;const r=l.useContext(xs);return l.createElement(xs.Provider,{value:n||r},t)};function bA(){const e=l.useContext(Oa),t=l.useContext(xs);return{componentDisabled:e,componentSize:t}}var WR=xr(function e(){yr(this,e)}),qR="CALC_UNIT",yA=new RegExp(qR,"g");function Wb(e){return typeof e=="number"?"".concat(e).concat(qR):e}var xA=(function(e){ei(n,e);var t=yi(n);function n(r,a){var o;yr(this,n),o=t.call(this),X(Ct(o),"result",""),X(Ct(o),"unitlessCssVar",void 0),X(Ct(o),"lowPriority",void 0);var s=_t(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):s==="number"?o.result=Wb(r):s==="string"&&(o.result=r),o}return xr(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(Wb(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(Wb(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,s=a||{},u=s.unit,f=!0;return typeof u=="boolean"?f=u:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(f=!1),this.result=this.result.replace(yA,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(WR),SA=(function(e){ei(n,e);var t=yi(n);function n(r){var a;return yr(this,n),a=t.call(this),X(Ct(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return xr(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(WR),CA=function(t,n){var r=t==="css"?xA:SA;return function(a){return new r(a,n)}},c_=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function pn(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function qc(e){var t=l.useRef(!1),n=l.useState(e),r=ue(n,2),a=r[0],o=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,f){f&&t.current||o(u)}return[a,s]}function qb(e){return e!==void 0}function Wn(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,s=n.postState,u=qc(function(){return qb(a)?a:qb(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ue(u,2),d=f[0],h=f[1],g=a!==void 0?a:d,v=s?s(g):g,b=pn(o),x=qc([g]),C=ue(x,2),y=C[0],w=C[1];gs(function(){var E=y[0];d!==E&&b(d,E)},[y]),gs(function(){qb(a)||h(a)},[a]);var $=pn(function(E,I){h(E,I),w([g],I)});return[v,$]}function u_(e,t,n,r){var a=te({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(u){var f=ue(u,2),d=f[0],h=f[1];if(a!=null&&a[d]||a!=null&&a[h]){var g;(g=a[h])!==null&&g!==void 0||(a[h]=a==null?void 0:a[d])}})}var s=te(te({},n),a);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var YR=typeof CSSINJS_STATISTIC<"u",E0=!0;function yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!YR)return Object.assign.apply(Object,[{}].concat(t));E0=!1;var r={};return t.forEach(function(a){if(_t(a)==="object"){var o=Object.keys(a);o.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return a[s]}})})}}),E0=!0,r}var d_={};function wA(){}var $A=function(t){var n,r=t,a=wA;return YR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,u){if(E0){var f;(f=n)===null||f===void 0||f.add(u)}return s[u]}}),a=function(s,u){var f;d_[s]={global:Array.from(n),component:te(te({},(f=d_[s])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:a}};function f_(e,t,n){if(typeof n=="function"){var r;return n(yn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function EA(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(o){return ne(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(o){return ne(o)}).join(","),")")}}}var _A=1e3*60*10,OA=(function(){function e(){yr(this,e),X(this,"map",new Map),X(this,"objectIDMap",new WeakMap),X(this,"nextID",0),X(this,"lastAccessBeat",new Map),X(this,"accessBeat",0)}return xr(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(o){return o&&_t(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(_t(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>_A&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),m_=new OA;function IA(e,t){return Se.useMemo(function(){var n=m_.get(t);if(n)return n;var r=e();return m_.set(t,r),r},t)}var RA=function(){return{}};function NA(e){var t=e.useCSP,n=t===void 0?RA:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function f(v,b,x,C){var y=Array.isArray(v)?v[0]:v;function w(P){return"".concat(String(y)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var $=(C==null?void 0:C.unitless)||{},E=typeof u=="function"?u(v):{},I=te(te({},E),{},X({},w("zIndexPopup"),!0));Object.keys($).forEach(function(P){I[w(P)]=$[P]});var O=te(te({},C),{},{unitless:I,prefixToken:w}),R=h(v,b,x,O),T=d(y,x,O);return function(P){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,k=R(P,N),z=ue(k,2),V=z[1],B=T(N),L=ue(B,2),H=L[0],j=L[1];return[H,V,j]}}function d(v,b,x){var C=x.unitless,y=x.injectStyle,w=y===void 0?!0:y,$=x.prefixToken,E=x.ignore,I=function(T){var P=T.rootCls,N=T.cssVar,k=N===void 0?{}:N,z=r(),V=z.realToken;return B6({path:[v],prefix:k.prefix,key:k.key,unitless:C,ignore:E,token:V,scope:P},function(){var B=f_(v,V,b),L=u_(v,V,B,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(B).forEach(function(H){L[$(H)]=L[H],delete L[H]}),L}),null},O=function(T){var P=r(),N=P.cssVar;return[function(k){return w&&N?Se.createElement(Se.Fragment,null,Se.createElement(I,{rootCls:T,cssVar:N,component:v}),k):k},N==null?void 0:N.key]};return O}function h(v,b,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(v)?v:[v,v],w=ue(y,1),$=w[0],E=y.join("-"),I=e.layer||{name:"antd"};return function(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,T=r(),P=T.theme,N=T.realToken,k=T.hashId,z=T.token,V=T.cssVar,B=a(),L=B.rootPrefixCls,H=B.iconPrefixCls,j=n(),D=V?"css":"js",F=IA(function(){var W=new Set;return V&&Object.keys(C.unitless||{}).forEach(function(Q){W.add(Rh(Q,V.prefix)),W.add(Rh(Q,c_($,V.prefix)))}),CA(D,W)},[D,$,V==null?void 0:V.prefix]),U=EA(D),A=U.max,K=U.min,q={theme:P,token:z,hashId:k,nonce:function(){return j.nonce},clientOnly:C.clientOnly,layer:I,order:C.order||-999};typeof o=="function"&&m0(te(te({},q),{},{clientOnly:!1,path:["Shared",L]}),function(){return o(z,{prefix:{rootPrefixCls:L,iconPrefixCls:H},csp:j})});var Y=m0(te(te({},q),{},{path:[E,O,H]}),function(){if(C.injectStyle===!1)return[];var W=$A(z),Q=W.token,Z=W.flush,ae=f_($,N,x),J=".".concat(O),se=u_($,N,ae,{deprecatedTokens:C.deprecatedTokens});V&&ae&&_t(ae)==="object"&&Object.keys(ae).forEach(function(ie){ae[ie]="var(".concat(Rh(ie,c_($,V.prefix)),")")});var he=yn(Q,{componentCls:J,prefixCls:O,iconCls:".".concat(H),antCls:".".concat(L),calc:F,max:A,min:K},V?ae:se),oe=b(he,{hashId:k,prefixCls:O,rootPrefixCls:L,iconPrefixCls:H});Z($,se);var le=typeof s=="function"?s(he,O,R,C.resetFont):null;return[C.resetStyle===!1?null:le,oe]});return[Y,k]}}function g(v,b,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=h(v,b,x,te({resetStyle:!1,order:-998},C)),w=function(E){var I=E.prefixCls,O=E.rootCls,R=O===void 0?I:O;return y(I,R),null};return w}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:h}}const Ss=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],MA="5.24.9";function Yb(e){return e>=0&&e<=255}function Md(e,t){const{r:n,g:r,b:a,a:o}=new Mn(e).toRgb();if(o<1)return e;const{r:s,g:u,b:f}=new Mn(t).toRgb();for(let d=.01;d<=1;d+=.01){const h=Math.round((n-s*(1-d))/d),g=Math.round((r-u*(1-d))/d),v=Math.round((a-f*(1-d))/d);if(Yb(h)&&Yb(g)&&Yb(v))return new Mn({r:h,g,b:v,a:Math.round(d*100)/100}).toRgbString()}return new Mn({r:n,g:r,b:a,a:1}).toRgbString()}var jA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function GR(e){const{override:t}=e,n=jA(e,["override"]),r=Object.assign({},t);Object.keys(af).forEach(v=>{delete r[v]});const a=Object.assign(Object.assign({},n),r),o=480,s=576,u=768,f=992,d=1200,h=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Md(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Md(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Md(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Md(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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:o,screenXSMin:o,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Mn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Mn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Mn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var h_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const XR={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},TA={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},DA={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},QR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=h_(t,["override"]);let s=Object.assign(Object.assign({},r),{override:a});return s=GR(s),o&&Object.entries(o).forEach(u=>{let[f,d]=u;const{theme:h}=d,g=h_(d,["theme"]);let v=g;h&&(v=QR(Object.assign(Object.assign({},s),g),{override:g},h)),s[f]=v}),s};function Ra(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=Se.useContext(KR),o=`${MA}-${t||""}`,s=n||VR,[u,f,d]=m6(s,[af,e],{salt:o,override:r,getComputedToken:QR,formatToken:GR,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:XR,ignore:TA,preserve:DA}});return[s,d,t?f:"",u,a]}const Ai={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ln=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}},Qc=()=>({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"}}),ro=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),PA=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"}}}),kA=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),s),{[a]:s})}},ao=(e,t)=>({outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Bo=(e,t)=>({"&:focus-visible":Object.assign({},ao(e,t))}),ZR=e=>({[`.${e}`]:Object.assign(Object.assign({},Qc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),aS=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Bo(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Kn,genComponentStyleHook:AA,genSubStyleComponent:_f}=NA({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(Yt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Ra();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=l.useContext(Yt);return e??{}},getResetStyles:(e,t)=>{var n;const r=PA(e);return[r,{"&":r},ZR((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Tg)]},getCommonStyle:kA,getCompUnitless:()=>XR});function JR(e,t){return Ss.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],s=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:s,textColor:u}))},{})}const zA=(e,t)=>{const[n,r]=Ra();return m0({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[ZR(e)])},LA=Object.assign({},Og),{useId:g_}=LA,HA=()=>"",BA=typeof g_>"u"?HA:g_;function FA(e,t,n){var r;Al();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},lf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:lf.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=BA();return _s(()=>{var u,f;if(!e)return t;const d=Object.assign({},o.components);Object.keys(e.components||{}).forEach(v=>{d[v]=Object.assign(Object.assign({},d[v]),e.components[v])});const h=`css-var-${s.replace(/:/g,"")}`,g=((u=a.cssVar)!==null&&u!==void 0?u:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||h});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:d,cssVar:g})},[a,o],(u,f)=>u.some((d,h)=>{const g=f[h];return!no(d,g,!0)}))}var VA=["children"],eN=l.createContext({});function KA(e){var t=e.children,n=qt(e,VA);return l.createElement(eN.Provider,{value:n},t)}var UA=(function(e){ei(n,e);var t=yi(n);function n(){return yr(this,n),t.apply(this,arguments)}return xr(n,[{key:"render",value:function(){return this.props.children}}]),n})(l.Component);function WA(e){var t=l.useReducer(function(u){return u+1},0),n=ue(t,2),r=n[1],a=l.useRef(e),o=pn(function(){return a.current}),s=pn(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[o,s]}var Sl="none",eh="appear",th="enter",nh="leave",v_="none",Ri="prepare",Rc="start",Nc="active",iS="end",tN="prepared";function p_(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function qA(e,t){var n={animationend:p_("Animation","AnimationEnd"),transitionend:p_("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var YA=qA(va(),typeof window<"u"?window:{}),nN={};if(va()){var GA=document.createElement("div");nN=GA.style}var rh={};function rN(e){if(rh[e])return rh[e];var t=YA[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in nN)return rh[e]=t[o],rh[e]}return""}var aN=rN("animationend"),iN=rN("transitionend"),oN=!!(aN&&iN),b_=aN||"animationend",y_=iN||"transitionend";function x_(e,t){if(!e)return null;if(_t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const XA=(function(e){var t=l.useRef();function n(a){a&&(a.removeEventListener(y_,e),a.removeEventListener(b_,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(y_,e),a.addEventListener(b_,e),t.current=a)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var lN=va()?l.useLayoutEffect:l.useEffect;const QA=(function(){var e=l.useRef(null);function t(){un.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=un(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]});var ZA=[Ri,Rc,Nc,iS],JA=[Ri,tN],sN=!1,ez=!0;function cN(e){return e===Nc||e===iS}const tz=(function(e,t,n){var r=qc(v_),a=ue(r,2),o=a[0],s=a[1],u=QA(),f=ue(u,2),d=f[0],h=f[1];function g(){s(Ri,!0)}var v=t?JA:ZA;return lN(function(){if(o!==v_&&o!==iS){var b=v.indexOf(o),x=v[b+1],C=n(o);C===sN?s(x,!0):x&&d(function(y){function w(){y.isCanceled()||s(x,!0)}C===!0?w():Promise.resolve(C).then(w)})}},[e,o]),l.useEffect(function(){return function(){h()}},[]),[g,o]});function nz(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,s=r.motionAppear,u=s===void 0?!0:s,f=r.motionLeave,d=f===void 0?!0:f,h=r.motionDeadline,g=r.motionLeaveImmediately,v=r.onAppearPrepare,b=r.onEnterPrepare,x=r.onLeavePrepare,C=r.onAppearStart,y=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,E=r.onEnterActive,I=r.onLeaveActive,O=r.onAppearEnd,R=r.onEnterEnd,T=r.onLeaveEnd,P=r.onVisibleChanged,N=qc(),k=ue(N,2),z=k[0],V=k[1],B=WA(Sl),L=ue(B,2),H=L[0],j=L[1],D=qc(null),F=ue(D,2),U=F[0],A=F[1],K=H(),q=l.useRef(!1),Y=l.useRef(null);function W(){return n()}var Q=l.useRef(!1);function Z(){j(Sl),A(null,!0)}var ae=pn(function(ve){var $e=H();if($e!==Sl){var we=W();if(!(ve&&!ve.deadline&&ve.target!==we)){var Re=Q.current,ze;$e===eh&&Re?ze=O==null?void 0:O(we,ve):$e===th&&Re?ze=R==null?void 0:R(we,ve):$e===nh&&Re&&(ze=T==null?void 0:T(we,ve)),Re&&ze!==!1&&Z()}}}),J=XA(ae),se=ue(J,1),he=se[0],oe=function($e){switch($e){case eh:return X(X(X({},Ri,v),Rc,C),Nc,$);case th:return X(X(X({},Ri,b),Rc,y),Nc,E);case nh:return X(X(X({},Ri,x),Rc,w),Nc,I);default:return{}}},le=l.useMemo(function(){return oe(K)},[K]),ie=tz(K,!e,function(ve){if(ve===Ri){var $e=le[Ri];return $e?$e(W()):sN}if(me in le){var we;A(((we=le[me])===null||we===void 0?void 0:we.call(le,W(),null))||null)}return me===Nc&&K!==Sl&&(he(W()),h>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){ae({deadline:!0})},h))),me===tN&&Z(),ez}),de=ue(ie,2),ge=de[0],me=de[1],xe=cN(me);Q.current=xe;var Ee=l.useRef(null);lN(function(){if(!(q.current&&Ee.current===t)){V(t);var ve=q.current;q.current=!0;var $e;!ve&&t&&u&&($e=eh),ve&&t&&o&&($e=th),(ve&&!t&&d||!ve&&g&&!t&&d)&&($e=nh);var we=oe($e);$e&&(e||we[Ri])?(j($e),ge()):j(Sl),Ee.current=t}},[t]),l.useEffect(function(){(K===eh&&!u||K===th&&!o||K===nh&&!d)&&j(Sl)},[u,o,d]),l.useEffect(function(){return function(){q.current=!1,clearTimeout(Y.current)}},[]);var He=l.useRef(!1);l.useEffect(function(){z&&(He.current=!0),z!==void 0&&K===Sl&&((He.current||z)&&(P==null||P(z)),He.current=!0)},[z,K]);var je=U;return le[Ri]&&me===Rc&&(je=te({transition:"none"},je)),[K,me,je,z??t]}function rz(e){var t=e;_t(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var s=a.visible,u=s===void 0?!0:s,f=a.removeOnLeave,d=f===void 0?!0:f,h=a.forceRender,g=a.children,v=a.motionName,b=a.leavedClassName,x=a.eventProps,C=l.useContext(eN),y=C.motion,w=n(a,y),$=l.useRef(),E=l.useRef();function I(){try{return $.current instanceof HTMLElement?$.current:Ih(E.current)}catch{return null}}var O=nz(w,u,I,a),R=ue(O,4),T=R[0],P=R[1],N=R[2],k=R[3],z=l.useRef(k);k&&(z.current=!0);var V=l.useCallback(function(F){$.current=F,Jd(o,F)},[o]),B,L=te(te({},x),{},{visible:u});if(!g)B=null;else if(T===Sl)k?B=g(te({},L),V):!d&&z.current&&b?B=g(te(te({},L),{},{className:b}),V):h||!d&&!b?B=g(te(te({},L),{},{style:{display:"none"}}),V):B=null;else{var H;P===Ri?H="prepare":cN(P)?H="active":P===Rc&&(H="start");var j=x_(v,"".concat(T,"-").concat(H));B=g(te(te({},L),{},{className:ce(x_(v,T),X(X({},j,j&&H),v,typeof v=="string")),style:N}),V)}if(l.isValidElement(B)&&ki(B)){var D=kl(B);D||(B=l.cloneElement(B,{ref:V}))}return l.createElement(UA,{ref:E},B)});return r.displayName="CSSMotion",r}const xi=rz(oN);var _0="add",O0="keep",I0="remove",Gb="removed";function az(e){var t;return e&&_t(e)==="object"&&"key"in e?t=e:t={key:e},te(te({},t),{},{key:String(t.key)})}function R0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(az)}function iz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=R0(e),s=R0(t);o.forEach(function(d){for(var h=!1,g=r;g<a;g+=1){var v=s[g];if(v.key===d.key){r<g&&(n=n.concat(s.slice(r,g).map(function(b){return te(te({},b),{},{status:_0})})),r=g),n.push(te(te({},v),{},{status:O0})),r+=1,h=!0;break}}h||n.push(te(te({},d),{},{status:I0}))}),r<a&&(n=n.concat(s.slice(r).map(function(d){return te(te({},d),{},{status:_0})})));var u={};n.forEach(function(d){var h=d.key;u[h]=(u[h]||0)+1});var f=Object.keys(u).filter(function(d){return u[d]>1});return f.forEach(function(d){n=n.filter(function(h){var g=h.key,v=h.status;return g!==d||v!==I0}),n.forEach(function(h){h.key===d&&(h.status=O0)})}),n}var oz=["component","children","onVisibleChanged","onAllRemoved"],lz=["status"],sz=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xi,n=(function(r){ei(o,r);var a=yi(o);function o(){var s;yr(this,o);for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];return s=a.call.apply(a,[this].concat(f)),X(Ct(s),"state",{keyEntities:[]}),X(Ct(s),"removeKey",function(h){s.setState(function(g){var v=g.keyEntities.map(function(b){return b.key!==h?b:te(te({},b),{},{status:Gb})});return{keyEntities:v}},function(){var g=s.state.keyEntities,v=g.filter(function(b){var x=b.status;return x!==Gb}).length;v===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return xr(o,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,d=this.props,h=d.component,g=d.children,v=d.onVisibleChanged;d.onAllRemoved;var b=qt(d,oz),x=h||l.Fragment,C={};return sz.forEach(function(y){C[y]=b[y],delete b[y]}),delete b.keys,l.createElement(x,b,f.map(function(y,w){var $=y.status,E=qt(y,lz),I=$===_0||$===O0;return l.createElement(t,Me({},C,{key:E.key,visible:I,eventProps:E,onVisibleChanged:function(R){v==null||v(R,{key:E.key}),R||u.removeKey(E.key)}}),function(O,R){return g(te(te({},O),{},{index:w}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var d=u.keys,h=f.keyEntities,g=R0(d),v=iz(h,g);return{keyEntities:v.filter(function(b){var x=h.find(function(C){var y=C.key;return b.key===y});return!(x&&x.status===Gb&&b.status===I0)})}}}]),o})(l.Component);return X(n,"defaultProps",{component:"div"}),n}const oS=cz(oN);function uz(e){const{children:t}=e,[,n]=Ra(),{motion:r}=n,a=l.useRef(!1);return a.current=a.current||r===!1,a.current?l.createElement(KA,{motion:r},t):t}const dz=()=>null;var fz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let og,uN,dN,fN;function kh(){return og||sf}function hz(){return uN||Tg}function gz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const vz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(og=t),n!==void 0&&(uN=n),"holderRender"in e&&(fN=a),r&&(gz(r)?vA(kh(),r):dN=r)},pz=()=>({getPrefixCls:(e,t)=>t||(e?`${kh()}-${e}`:kh()),getIconPrefixCls:hz,getRootPrefixCls:()=>og||kh(),getTheme:()=>dN,holderRender:fN}),bz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:s,locale:u,componentSize:f,direction:d,space:h,splitter:g,virtual:v,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,popupOverflow:C,legacyLocale:y,parentContext:w,iconPrefixCls:$,theme:E,componentDisabled:I,segmented:O,statistic:R,spin:T,calendar:P,carousel:N,cascader:k,collapse:z,typography:V,checkbox:B,descriptions:L,divider:H,drawer:j,skeleton:D,steps:F,image:U,layout:A,list:K,mentions:q,modal:Y,progress:W,result:Q,slider:Z,breadcrumb:ae,menu:J,pagination:se,input:he,textArea:oe,empty:le,badge:ie,radio:de,rate:ge,switch:me,transfer:xe,avatar:Ee,message:He,tag:je,table:ve,card:$e,tabs:we,timeline:Re,timePicker:ze,upload:De,notification:Ye,tree:Xe,colorPicker:Le,datePicker:Ke,rangePicker:Fe,flex:Ie,wave:Ue,dropdown:ye,warning:Ce,tour:_e,tooltip:be,popover:ke,popconfirm:st,floatButtonGroup:Dt,variant:Wt,inputNumber:Je,treeSelect:ct}=e,$t=l.useCallback((Ot,Ht)=>{const{prefixCls:wt}=e;if(Ht)return Ht;const xt=wt||w.getPrefixCls("");return Ot?`${xt}-${Ot}`:xt},[w.getPrefixCls,e.prefixCls]),ot=$||w.iconPrefixCls||Tg,gt=n||w.csp;zA(ot,gt);const dt=FA(E,w.theme,{prefixCls:$t("")}),lt={csp:gt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:u||y,direction:d,space:h,splitter:g,virtual:v,popupMatchSelectWidth:x??b,popupOverflow:C,getPrefixCls:$t,iconPrefixCls:ot,theme:dt,segmented:O,statistic:R,spin:T,calendar:P,carousel:N,cascader:k,collapse:z,typography:V,checkbox:B,descriptions:L,divider:H,drawer:j,skeleton:D,steps:F,image:U,input:he,textArea:oe,layout:A,list:K,mentions:q,modal:Y,progress:W,result:Q,slider:Z,breadcrumb:ae,menu:J,pagination:se,empty:le,badge:ie,radio:de,rate:ge,switch:me,transfer:xe,avatar:Ee,message:He,tag:je,table:ve,card:$e,tabs:we,timeline:Re,timePicker:ze,upload:De,notification:Ye,tree:Xe,colorPicker:Le,datePicker:Ke,rangePicker:Fe,flex:Ie,wave:Ue,dropdown:ye,warning:Ce,tour:_e,tooltip:be,popover:ke,popconfirm:st,floatButtonGroup:Dt,variant:Wt,inputNumber:Je,treeSelect:ct},nt=Object.assign({},w);Object.keys(lt).forEach(Ot=>{lt[Ot]!==void 0&&(nt[Ot]=lt[Ot])}),mz.forEach(Ot=>{const Ht=e[Ot];Ht&&(nt[Ot]=Ht)}),typeof r<"u"&&(nt.button=Object.assign({autoInsertSpace:r},nt.button));const Pt=_s(()=>nt,nt,(Ot,Ht)=>{const wt=Object.keys(Ot),xt=Object.keys(Ht);return wt.length!==xt.length||wt.some(Tt=>Ot[Tt]!==Ht[Tt])}),{layer:bt}=l.useContext(Ef),Ge=l.useMemo(()=>({prefixCls:ot,csp:gt,layer:bt?"antd":void 0}),[ot,gt,bt]);let tt=l.createElement(l.Fragment,null,l.createElement(dz,{dropdownMatchSelectWidth:b}),t);const Mt=l.useMemo(()=>{var Ot,Ht,wt,xt;return Ic(((Ot=Ho.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((wt=(Ht=Pt.locale)===null||Ht===void 0?void 0:Ht.Form)===null||wt===void 0?void 0:wt.defaultValidateMessages)||{},((xt=Pt.form)===null||xt===void 0?void 0:xt.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[Pt,s==null?void 0:s.validateMessages]);Object.keys(Mt).length>0&&(tt=l.createElement(kR.Provider,{value:Mt},tt)),u&&(tt=l.createElement(Q6,{locale:u,_ANT_MARK__:X6},tt)),tt=l.createElement(nS.Provider,{value:Ge},tt),f&&(tt=l.createElement(pA,{size:f},tt)),tt=l.createElement(uz,null,tt);const At=l.useMemo(()=>{const Ot=dt||{},{algorithm:Ht,token:wt,components:xt,cssVar:Tt}=Ot,Vt=fz(Ot,["algorithm","token","components","cssVar"]),Jt=Ht&&(!Array.isArray(Ht)||Ht.length>0)?c0(Ht):VR,on={};Object.entries(xt||{}).forEach(gn=>{let[$n,En]=gn;const at=Object.assign({},En);"algorithm"in at&&(at.algorithm===!0?at.theme=Jt:(Array.isArray(at.algorithm)||typeof at.algorithm=="function")&&(at.theme=c0(at.algorithm)),delete at.algorithm),on[$n]=at});const Ut=Object.assign(Object.assign({},af),wt);return Object.assign(Object.assign({},Vt),{theme:Jt,token:Ut,components:on,override:Object.assign({override:Ut},on),cssVar:Tt})},[dt]);return E&&(tt=l.createElement(KR.Provider,{value:At},tt)),Pt.warning&&(tt=l.createElement(W6.Provider,{value:Pt.warning},tt)),I!==void 0&&(tt=l.createElement(UR,{disabled:I},tt)),l.createElement(Yt.Provider,{value:Pt},tt)},qo=e=>{const t=l.useContext(Yt),n=l.useContext(rS);return l.createElement(bz,Object.assign({parentContext:t,legacyLocale:n},e))};qo.ConfigContext=Yt;qo.SizeContext=xs;qo.config=vz;qo.useConfig=bA;Object.defineProperty(qo,"SizeContext",{get:()=>xs});var yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function mN(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function xz(e){return mN(e)instanceof ShadowRoot}function lg(e){return xz(e)?mN(e):null}function Sz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Cz(e,t){br(e,"[@ant-design/icons] ".concat(t))}function S_(e){return _t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(_t(e.icon)==="object"||typeof e.icon=="function")}function C_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Sz(n)]=r}return t},{})}function N0(e,t,n){return n?Se.createElement(e.tag,te(te({key:t},C_(e.attrs)),n),(e.children||[]).map(function(r,a){return N0(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Se.createElement(e.tag,te({key:t},C_(e.attrs)),(e.children||[]).map(function(r,a){return N0(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function hN(e){return of(e)[0]}function gN(e){return e?Array.isArray(e)?e:[e]:[]}var wz=`
.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);
  }
}
`,$z=function(t){var n=l.useContext(nS),r=n.csp,a=n.prefixCls,o=n.layer,s=wz;a&&(s=s.replace(/anticon/g,a)),o&&(s="@layer ".concat(o,` {
`).concat(s,`
}`)),l.useEffect(function(){var u=t.current,f=lg(u);ko(s,"@ant-design-icons",{prepend:!o,csp:r,attachTo:f})},[])},Ez=["icon","className","onClick","style","primaryColor","secondaryColor"],Hd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _z(e){var t=e.primaryColor,n=e.secondaryColor;Hd.primaryColor=t,Hd.secondaryColor=n||hN(t),Hd.calculated=!!n}function Oz(){return te({},Hd)}var Zc=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,s=t.primaryColor,u=t.secondaryColor,f=qt(t,Ez),d=l.useRef(),h=Hd;if(s&&(h={primaryColor:s,secondaryColor:u||hN(s)}),$z(d),Cz(S_(n),"icon should be icon definiton, but got ".concat(n)),!S_(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=te(te({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),N0(g.icon,"svg-".concat(g.name),te(te({className:r,onClick:a,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:d}))};Zc.displayName="IconReact";Zc.getTwoToneColors=Oz;Zc.setTwoToneColors=_z;function vN(e){var t=gN(e),n=ue(t,2),r=n[0],a=n[1];return Zc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Iz(){var e=Zc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Rz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vN(Wc.primary);var wn=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,f=e.twoToneColor,d=qt(e,Rz),h=l.useContext(nS),g=h.prefixCls,v=g===void 0?"anticon":g,b=h.rootClassName,x=ce(b,v,X(X({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!a||r.name==="loading"),n),C=s;C===void 0&&u&&(C=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,w=gN(f),$=ue(w,2),E=$[0],I=$[1];return l.createElement("span",Me({role:"img","aria-label":r.name},d,{ref:t,tabIndex:C,onClick:u,className:x}),l.createElement(Zc,{icon:r,primaryColor:E,secondaryColor:I,style:y}))});wn.displayName="AntdIcon";wn.getTwoToneColor=Iz;wn.setTwoToneColor=vN;var Nz=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:yz}))},Dg=l.forwardRef(Nz),Mz={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"},jz=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:Mz}))},Jc=l.forwardRef(jz),Tz={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"},Dz=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:Tz}))},eu=l.forwardRef(Dz),Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},kz=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:Pz}))},lS=l.forwardRef(kz),Az={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},zz=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:Az}))},pN=l.forwardRef(zz),Lz=`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`,Hz=`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`,Bz="".concat(Lz," ").concat(Hz).split(/[\s\n]+/),Fz="aria-",Vz="data-";function w_(e,t){return e.indexOf(t)===0}function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=te({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||w_(a,Fz))||n.data&&w_(a,Vz)||n.attr&&Bz.includes(a))&&(r[a]=e[a])}),r}function bN(e){return e&&Se.isValidElement(e)&&e.type===Se.Fragment}const sS=(e,t,n)=>Se.isValidElement(e)?Se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function pa(e,t){return sS(e,e,t)}const ah=(e,t,n,r,a)=>({background:e,border:`${ne(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Kz=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:s,lineHeight:u,borderRadiusLG:f,motionEaseInOutCirc:d,withDescriptionIconSize:h,colorText:g,colorTextHeading:v,withDescriptionPadding:b,defaultPadding:x}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"flex",alignItems:"center",padding:x,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:u},"&-message":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${d}, opacity ${n} ${d},
        padding-top ${n} ${d}, padding-bottom ${n} ${d},
        margin-bottom ${n} ${d}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:b,[`${t}-icon`]:{marginInlineEnd:a,fontSize:h,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:v,fontSize:s},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Uz=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:s,colorWarningBg:u,colorError:f,colorErrorBorder:d,colorErrorBg:h,colorInfo:g,colorInfoBorder:v,colorInfoBg:b}=e;return{[t]:{"&-success":ah(a,r,n,e,t),"&-info":ah(b,v,g,e,t),"&-warning":ah(u,s,o,e,t),"&-error":Object.assign(Object.assign({},ah(h,d,f,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Wz=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:s,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:ne(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:s,transition:`color ${r}`,"&:hover":{color:u}}}}},qz=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Yz=Kn("Alert",e=>[Kz(e),Uz(e),Wz(e)],qz);var $_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Gz={success:Dg,info:pN,error:Jc,warning:lS},Xz=e=>{const{icon:t,prefixCls:n,type:r}=e,a=Gz[r]||null;return t?sS(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ce(`${n}-icon`,t.props.className)})):l.createElement(a,{className:`${n}-icon`})},Qz=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,s=r===!0||r===void 0?l.createElement(eu,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),s):null},yN=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:s,rootClassName:u,style:f,onMouseEnter:d,onMouseLeave:h,onClick:g,afterClose:v,showIcon:b,closable:x,closeText:C,closeIcon:y,action:w,id:$}=e,E=$_(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[I,O]=l.useState(!1),R=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:R.current}));const{getPrefixCls:T,direction:P,closable:N,closeIcon:k,className:z,style:V}=Ia("alert"),B=T("alert",r),[L,H,j]=Yz(B),D=Q=>{var Z;O(!0),(Z=e.onClose)===null||Z===void 0||Z.call(e,Q)},F=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),U=l.useMemo(()=>typeof x=="object"&&x.closeIcon||C?!0:typeof x=="boolean"?x:y!==!1&&y!==null&&y!==void 0?!0:!!N,[C,y,x,N]),A=o&&b===void 0?!0:b,K=ce(B,`${B}-${F}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!A,[`${B}-banner`]:!!o,[`${B}-rtl`]:P==="rtl"},z,s,u,j,H),q=sa(E,{aria:!0,data:!0}),Y=l.useMemo(()=>typeof x=="object"&&x.closeIcon?x.closeIcon:C||(y!==void 0?y:typeof N=="object"&&N.closeIcon?N.closeIcon:k),[y,x,C,k]),W=l.useMemo(()=>{const Q=x??N;if(typeof Q=="object"){const{closeIcon:Z}=Q;return $_(Q,["closeIcon"])}return{}},[x,N]);return L(l.createElement(xi,{visible:!I,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Q=>({maxHeight:Q.offsetHeight}),onLeaveEnd:v},(Q,Z)=>{let{className:ae,style:J}=Q;return l.createElement("div",Object.assign({id:$,ref:xa(R,Z),"data-show":!I,className:ce(K,ae),style:Object.assign(Object.assign(Object.assign({},V),f),J),onMouseEnter:d,onMouseLeave:h,onClick:g,role:"alert"},q),A?l.createElement(Xz,{description:n,icon:e.icon,prefixCls:B,type:F}):null,l.createElement("div",{className:`${B}-content`},a?l.createElement("div",{className:`${B}-message`},a):null,n?l.createElement("div",{className:`${B}-description`},n):null),w?l.createElement("div",{className:`${B}-action`},w):null,l.createElement(Qz,{isClosable:U,prefixCls:B,closeIcon:Y,handleClose:D,ariaProps:W}))}))});function Zz(e,t,n){return t=ys(t),cR(e,Rg()?Reflect.construct(t,n||[],ys(e).constructor):t.apply(e,n))}let Jz=(function(e){function t(){var n;return yr(this,t),n=Zz(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return ei(t,e),xr(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:s}=this.props,{error:u,info:f}=this.state,d=(f==null?void 0:f.componentStack)||null,h=typeof r>"u"?(u||"").toString():r,g=typeof a>"u"?d:a;return u?l.createElement(yN,{id:o,type:"error",message:h,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):s}}])})(l.Component);const xN=yN;xN.ErrorBoundary=Jz;const E_=e=>typeof e=="object"&&e!=null&&e.nodeType===1,__=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ih=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return __(n.overflowY,t)||__(n.overflowX,t)||(r=>{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},oh=(e,t,n,r,a,o,s,u)=>o<e&&s>t||o>e&&s<t?0:o<=e&&u<=n||s>=t&&u>=n?o-e-r:s>t&&u<n||o<e&&u>n?s-t+a:0,e8=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},O_=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:s,block:u,inline:f,boundary:d,skipOverflowHiddenElements:h}=t,g=typeof d=="function"?d:j=>j!==d;if(!E_(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,b=[];let x=e;for(;E_(x)&&g(x);){if(x=e8(x),x===v){b.push(x);break}x!=null&&x===document.body&&ih(x)&&!ih(document.documentElement)||x!=null&&ih(x,h)&&b.push(x)}const C=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:w,scrollY:$}=window,{height:E,width:I,top:O,right:R,bottom:T,left:P}=e.getBoundingClientRect(),{top:N,right:k,bottom:z,left:V}=(j=>{const D=window.getComputedStyle(j);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let B=u==="start"||u==="nearest"?O-N:u==="end"?T+z:O+E/2-N+z,L=f==="center"?P+I/2-V+k:f==="end"?R+k:P-V;const H=[];for(let j=0;j<b.length;j++){const D=b[j],{height:F,width:U,top:A,right:K,bottom:q,left:Y}=D.getBoundingClientRect();if(s==="if-needed"&&O>=0&&P>=0&&T<=y&&R<=C&&(D===v&&!ih(D)||O>=A&&T<=q&&P>=Y&&R<=K))return H;const W=getComputedStyle(D),Q=parseInt(W.borderLeftWidth,10),Z=parseInt(W.borderTopWidth,10),ae=parseInt(W.borderRightWidth,10),J=parseInt(W.borderBottomWidth,10);let se=0,he=0;const oe="offsetWidth"in D?D.offsetWidth-D.clientWidth-Q-ae:0,le="offsetHeight"in D?D.offsetHeight-D.clientHeight-Z-J:0,ie="offsetWidth"in D?D.offsetWidth===0?0:U/D.offsetWidth:0,de="offsetHeight"in D?D.offsetHeight===0?0:F/D.offsetHeight:0;if(v===D)se=u==="start"?B:u==="end"?B-y:u==="nearest"?oh($,$+y,y,Z,J,$+B,$+B+E,E):B-y/2,he=f==="start"?L:f==="center"?L-C/2:f==="end"?L-C:oh(w,w+C,C,Q,ae,w+L,w+L+I,I),se=Math.max(0,se+$),he=Math.max(0,he+w);else{se=u==="start"?B-A-Z:u==="end"?B-q+J+le:u==="nearest"?oh(A,q,F,Z,J+le,B,B+E,E):B-(A+F/2)+le/2,he=f==="start"?L-Y-Q:f==="center"?L-(Y+U/2)+oe/2:f==="end"?L-K+ae+oe:oh(Y,K,U,Q,ae+oe,L,L+I,I);const{scrollLeft:ge,scrollTop:me}=D;se=de===0?0:Math.max(0,Math.min(me+se/de,D.scrollHeight-F/de+le)),he=ie===0?0:Math.max(0,Math.min(ge+he/ie,D.scrollWidth-U/ie+oe)),B+=me-se,L+=ge-he}H.push({el:D,top:se,left:he})}return H},t8=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function n8(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(O_(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:s}of O_(e,t8(t))){const u=o-n.top+n.bottom,f=s-n.left+n.right;a.scroll({top:u,left:f,behavior:r})}}function M0(e){return e!=null&&e===e.window}const r8=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return M0(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!M0(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function a8(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function i8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),s=r8(o),u=Date.now(),f=()=>{const h=Date.now()-u,g=a8(h>a?a:h,s,e,a);M0(o)?o.scrollTo(window.pageXOffset,g):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=g:o.scrollTop=g,h<a?un(f):typeof r=="function"&&r()};un(f)}const ta=e=>{const[,,,,t]=Ra();return t?`${e}-css-var`:""};var It={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},SN=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,s=o===void 0?4.5:o,u=e.showProgress,f=e.pauseOnHover,d=f===void 0?!0:f,h=e.eventKey,g=e.content,v=e.closable,b=e.closeIcon,x=b===void 0?"x":b,C=e.props,y=e.onClick,w=e.onNoticeClose,$=e.times,E=e.hovering,I=l.useState(!1),O=ue(I,2),R=O[0],T=O[1],P=l.useState(0),N=ue(P,2),k=N[0],z=N[1],V=l.useState(0),B=ue(V,2),L=B[0],H=B[1],j=E||R,D=s>0&&u,F=function(){w(h)},U=function(Q){(Q.key==="Enter"||Q.code==="Enter"||Q.keyCode===It.ENTER)&&F()};l.useEffect(function(){if(!j&&s>0){var W=Date.now()-L,Q=setTimeout(function(){F()},s*1e3-L);return function(){d&&clearTimeout(Q),H(Date.now()-W)}}},[s,j,$]),l.useEffect(function(){if(!j&&D&&(d||L===0)){var W=performance.now(),Q,Z=function ae(){cancelAnimationFrame(Q),Q=requestAnimationFrame(function(J){var se=J+L-W,he=Math.min(se/(s*1e3),1);z(he*100),he<1&&ae()})};return Z(),function(){d&&cancelAnimationFrame(Q)}}},[s,L,j,D,$]);var A=l.useMemo(function(){return _t(v)==="object"&&v!==null?v:v?{closeIcon:x}:{}},[v,x]),K=sa(A,!0),q=100-(!k||k<0?0:k>100?100:k),Y="".concat(n,"-notice");return l.createElement("div",Me({},C,{ref:t,className:ce(Y,a,X({},"".concat(Y,"-closable"),v)),style:r,onMouseEnter:function(Q){var Z;T(!0),C==null||(Z=C.onMouseEnter)===null||Z===void 0||Z.call(C,Q)},onMouseLeave:function(Q){var Z;T(!1),C==null||(Z=C.onMouseLeave)===null||Z===void 0||Z.call(C,Q)},onClick:y}),l.createElement("div",{className:"".concat(Y,"-content")},g),v&&l.createElement("a",Me({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:U,"aria-label":"Close"},K,{onClick:function(Q){Q.preventDefault(),Q.stopPropagation(),F()}}),A.closeIcon),D&&l.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:q},q+"%"))}),CN=Se.createContext({}),o8=function(t){var n=t.children,r=t.classNames;return Se.createElement(CN.Provider,{value:{classNames:r}},n)},I_=8,R_=3,N_=16,l8=function(t){var n={offset:I_,threshold:R_,gap:N_};if(t&&_t(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:I_,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:R_,n.gap=(o=t.gap)!==null&&o!==void 0?o:N_}return[!!t,n]},s8=["className","style","classNames","styles"],c8=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,s=t.style,u=t.motion,f=t.onAllNoticeRemoved,d=t.onNoticeClose,h=t.stack,g=l.useContext(CN),v=g.classNames,b=l.useRef({}),x=l.useState(null),C=ue(x,2),y=C[0],w=C[1],$=l.useState([]),E=ue($,2),I=E[0],O=E[1],R=n.map(function(j){return{config:j,key:String(j.key)}}),T=l8(h),P=ue(T,2),N=P[0],k=P[1],z=k.offset,V=k.threshold,B=k.gap,L=N&&(I.length>0||R.length<=V),H=typeof u=="function"?u(r):u;return l.useEffect(function(){N&&I.length>1&&O(function(j){return j.filter(function(D){return R.some(function(F){var U=F.key;return D===U})})})},[I,R,N]),l.useEffect(function(){var j;if(N&&b.current[(j=R[R.length-1])===null||j===void 0?void 0:j.key]){var D;w(b.current[(D=R[R.length-1])===null||D===void 0?void 0:D.key])}},[R,N]),Se.createElement(oS,Me({key:r,className:ce(a,"".concat(a,"-").concat(r),v==null?void 0:v.list,o,X(X({},"".concat(a,"-stack"),!!N),"".concat(a,"-stack-expanded"),L)),style:s,keys:R,motionAppear:!0},H,{onAllRemoved:function(){f(r)}}),function(j,D){var F=j.config,U=j.className,A=j.style,K=j.index,q=F,Y=q.key,W=q.times,Q=String(Y),Z=F,ae=Z.className,J=Z.style,se=Z.classNames,he=Z.styles,oe=qt(Z,s8),le=R.findIndex(function(Re){return Re.key===Q}),ie={};if(N){var de=R.length-1-(le>-1?le:K-1),ge=r==="top"||r==="bottom"?"-50%":"0";if(de>0){var me,xe,Ee;ie.height=L?(me=b.current[Q])===null||me===void 0?void 0:me.offsetHeight:y==null?void 0:y.offsetHeight;for(var He=0,je=0;je<de;je++){var ve;He+=((ve=b.current[R[R.length-1-je].key])===null||ve===void 0?void 0:ve.offsetHeight)+B}var $e=(L?He:de*z)*(r.startsWith("top")?1:-1),we=!L&&y!==null&&y!==void 0&&y.offsetWidth&&(xe=b.current[Q])!==null&&xe!==void 0&&xe.offsetWidth?((y==null?void 0:y.offsetWidth)-z*2*(de<3?de:3))/((Ee=b.current[Q])===null||Ee===void 0?void 0:Ee.offsetWidth):1;ie.transform="translate3d(".concat(ge,", ").concat($e,"px, 0) scaleX(").concat(we,")")}else ie.transform="translate3d(".concat(ge,", 0, 0)")}return Se.createElement("div",{ref:D,className:ce("".concat(a,"-notice-wrapper"),U,se==null?void 0:se.wrapper),style:te(te(te({},A),ie),he==null?void 0:he.wrapper),onMouseEnter:function(){return O(function(ze){return ze.includes(Q)?ze:[].concat(Ae(ze),[Q])})},onMouseLeave:function(){return O(function(ze){return ze.filter(function(De){return De!==Q})})}},Se.createElement(SN,Me({},oe,{ref:function(ze){le>-1?b.current[Q]=ze:delete b.current[Q]},prefixCls:a,classNames:se,styles:he,className:ce(ae,v==null?void 0:v.notice),style:J,times:W,key:Y,eventKey:Y,onNoticeClose:d,hovering:N&&I.length>0})))})},u8=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,s=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,h=e.stack,g=e.renderNotifications,v=l.useState([]),b=ue(v,2),x=b[0],C=b[1],y=function(N){var k,z=x.find(function(V){return V.key===N});z==null||(k=z.onClose)===null||k===void 0||k.call(z),C(function(V){return V.filter(function(B){return B.key!==N})})};l.useImperativeHandle(t,function(){return{open:function(N){C(function(k){var z=Ae(k),V=z.findIndex(function(H){return H.key===N.key}),B=te({},N);if(V>=0){var L;B.times=(((L=k[V])===null||L===void 0?void 0:L.times)||0)+1,z[V]=B}else B.times=0,z.push(B);return s>0&&z.length>s&&(z=z.slice(-s)),z})},close:function(N){y(N)},destroy:function(){C([])}}});var w=l.useState({}),$=ue(w,2),E=$[0],I=$[1];l.useEffect(function(){var P={};x.forEach(function(N){var k=N.placement,z=k===void 0?"topRight":k;z&&(P[z]=P[z]||[],P[z].push(N))}),Object.keys(E).forEach(function(N){P[N]=P[N]||[]}),I(P)},[x]);var O=function(N){I(function(k){var z=te({},k),V=z[N]||[];return V.length||delete z[N],z})},R=l.useRef(!1);if(l.useEffect(function(){Object.keys(E).length>0?R.current=!0:R.current&&(d==null||d(),R.current=!1)},[E]),!a)return null;var T=Object.keys(E);return Pi.createPortal(l.createElement(l.Fragment,null,T.map(function(P){var N=E[P],k=l.createElement(c8,{key:P,configList:N,placement:P,prefixCls:r,className:u==null?void 0:u(P),style:f==null?void 0:f(P),motion:o,onNoticeClose:y,onAllNoticeRemoved:O,stack:h});return g?g(k,{prefixCls:r,key:P}):k})),a)}),d8=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],f8=function(){return document.body},M_=0;function m8(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(o){var s=a[o];s!==void 0&&(e[o]=s)})}),e}function h8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?f8:t,r=e.motion,a=e.prefixCls,o=e.maxCount,s=e.className,u=e.style,f=e.onAllRemoved,d=e.stack,h=e.renderNotifications,g=qt(e,d8),v=l.useState(),b=ue(v,2),x=b[0],C=b[1],y=l.useRef(),w=l.createElement(u8,{container:x,ref:y,prefixCls:a,motion:r,maxCount:o,className:s,style:u,onAllRemoved:f,stack:d,renderNotifications:h}),$=l.useState([]),E=ue($,2),I=E[0],O=E[1],R=pn(function(P){var N=m8(g,P);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(M_),M_+=1),O(function(k){return[].concat(Ae(k),[{type:"open",config:N}])})}),T=l.useMemo(function(){return{open:R,close:function(N){O(function(k){return[].concat(Ae(k),[{type:"close",key:N}])})},destroy:function(){O(function(N){return[].concat(Ae(N),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){C(n())}),l.useEffect(function(){if(y.current&&I.length){I.forEach(function(k){switch(k.type){case"open":y.current.open(k.config);break;case"close":y.current.close(k.key);break;case"destroy":y.current.destroy();break}});var P,N;O(function(k){return(P!==k||!N)&&(P=k,N=k.filter(function(z){return!I.includes(z)})),N})}},[I]),[T,w]}var g8={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"},v8=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:g8}))},Fo=l.forwardRef(v8);const cS=Se.createContext(void 0),Cl=100,p8=10,b8=Cl*p8,wN={Modal:Cl,Drawer:Cl,Popover:Cl,Popconfirm:Cl,Tooltip:Cl,Tour:Cl,FloatButton:Cl},y8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function x8(e){return e in wN}const tu=(e,t)=>{const[,n]=Ra(),r=Se.useContext(cS),a=x8(e);let o;if(t!==void 0)o=[t,t];else{let s=r??0;a?s+=(r?0:n.zIndexPopupBase)+wN[e]:s+=y8[e],o=[r===void 0?t:s,s]}return o},S8=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:s,colorWarning:u,colorInfo:f,fontSizeLG:d,motionEaseInOutCirc:h,motionDurationSlow:g,marginXS:v,paddingXS:b,borderRadiusLG:x,zIndexPopup:C,contentPadding:y,contentBg:w}=e,$=`${t}-notice`,E=new Dn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),I=new Dn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:v,fontSize:d},[`${$}-content`]:{display:"inline-block",padding:y,background:w,borderRadius:x,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},Ln(e)),{color:a,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:E,animationDuration:g,animationPlayState:"paused",animationTimingFunction:h},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:g,animationPlayState:"paused",animationTimingFunction:h},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},O)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]},C8=e=>({zIndexPopup:e.zIndexPopupBase+b8+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$N=Kn("Message",e=>{const t=yn(e,{height:150});return[S8(t)]},C8);var w8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $8={info:l.createElement(pN,null),success:l.createElement(Dg,null),error:l.createElement(Jc,null),warning:l.createElement(lS,null),loading:l.createElement(Fo,null)},EN=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return l.createElement("div",{className:ce(`${t}-custom-content`,`${t}-${n}`)},r||$8[n],l.createElement("span",null,a))},E8=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,s=w8(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=l.useContext(Yt),f=t||u("message"),d=ta(f),[h,g,v]=$N(f,d);return h(l.createElement(SN,Object.assign({},s,{prefixCls:f,className:ce(n,g,`${f}-notice-pure-panel`,v,d),eventKey:"pure",duration:null,content:l.createElement(EN,{prefixCls:f,type:r,icon:a},o)})))};function _8(e,t){return{motionName:t??`${e}-move-up`}}function uS(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var O8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const I8=8,R8=3,N8=e=>{let{children:t,prefixCls:n}=e;const r=ta(n),[a,o,s]=$N(n,r);return a(l.createElement(o8,{classNames:{list:ce(o,s,r)}},t))},M8=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(N8,{prefixCls:n,key:r},e)},j8=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:s=R8,rtl:u,transitionName:f,onAllRemoved:d}=e,{getPrefixCls:h,getPopupContainer:g,message:v,direction:b}=l.useContext(Yt),x=r||h("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??I8}),y=()=>ce({[`${x}-rtl`]:u??b==="rtl"}),w=()=>_8(x,f),$=l.createElement("span",{className:`${x}-close-x`},l.createElement(eu,{className:`${x}-close-icon`})),[E,I]=h8({prefixCls:x,style:C,className:y,motion:w,closable:!1,closeIcon:$,duration:s,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:o,onAllRemoved:d,renderNotifications:M8});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:x,message:v})),I});let j_=0;function _N(e){const t=l.useRef(null);return Al(),[l.useMemo(()=>{const r=f=>{var d;(d=t.current)===null||d===void 0||d.close(f)},a=f=>{if(!t.current){const R=()=>{};return R.then=()=>{},R}const{open:d,prefixCls:h,message:g}=t.current,v=`${h}-notice`,{content:b,icon:x,type:C,key:y,className:w,style:$,onClose:E}=f,I=O8(f,["content","icon","type","key","className","style","onClose"]);let O=y;return O==null&&(j_+=1,O=`antd-message-${j_}`),uS(R=>(d(Object.assign(Object.assign({},I),{key:O,content:l.createElement(EN,{prefixCls:h,type:C,icon:x},b),placement:"top",className:ce(C&&`${v}-${C}`,w,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),$),onClose:()=>{E==null||E(),R()}})),()=>{r(O)}))},s={open:a,destroy:f=>{var d;f!==void 0?r(f):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const d=(h,g,v)=>{let b;h&&typeof h=="object"&&"content"in h?b=h:b={content:h};let x,C;typeof g=="function"?C=g:(x=g,C=v);const y=Object.assign(Object.assign({onClose:C,duration:x},b),{type:f});return a(y)};s[f]=d}),s},[]),l.createElement(j8,Object.assign({key:"message-holder"},e,{ref:t}))]}function T8(e){return _N(e)}function pr(){pr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(j,D,F){j[D]=F.value},o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag";function d(j,D,F){return Object.defineProperty(j,D,{value:F,enumerable:!0,configurable:!0,writable:!0}),j[D]}try{d({},"")}catch{d=function(F,U,A){return F[U]=A}}function h(j,D,F,U){var A=D&&D.prototype instanceof w?D:w,K=Object.create(A.prototype),q=new L(U||[]);return a(K,"_invoke",{value:k(j,F,q)}),K}function g(j,D,F){try{return{type:"normal",arg:j.call(D,F)}}catch(U){return{type:"throw",arg:U}}}t.wrap=h;var v="suspendedStart",b="suspendedYield",x="executing",C="completed",y={};function w(){}function $(){}function E(){}var I={};d(I,s,function(){return this});var O=Object.getPrototypeOf,R=O&&O(O(H([])));R&&R!==n&&r.call(R,s)&&(I=R);var T=E.prototype=w.prototype=Object.create(I);function P(j){["next","throw","return"].forEach(function(D){d(j,D,function(F){return this._invoke(D,F)})})}function N(j,D){function F(A,K,q,Y){var W=g(j[A],j,K);if(W.type!=="throw"){var Q=W.arg,Z=Q.value;return Z&&_t(Z)=="object"&&r.call(Z,"__await")?D.resolve(Z.__await).then(function(ae){F("next",ae,q,Y)},function(ae){F("throw",ae,q,Y)}):D.resolve(Z).then(function(ae){Q.value=ae,q(Q)},function(ae){return F("throw",ae,q,Y)})}Y(W.arg)}var U;a(this,"_invoke",{value:function(K,q){function Y(){return new D(function(W,Q){F(K,q,W,Q)})}return U=U?U.then(Y,Y):Y()}})}function k(j,D,F){var U=v;return function(A,K){if(U===x)throw Error("Generator is already running");if(U===C){if(A==="throw")throw K;return{value:e,done:!0}}for(F.method=A,F.arg=K;;){var q=F.delegate;if(q){var Y=z(q,F);if(Y){if(Y===y)continue;return Y}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(U===v)throw U=C,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);U=x;var W=g(j,D,F);if(W.type==="normal"){if(U=F.done?C:b,W.arg===y)continue;return{value:W.arg,done:F.done}}W.type==="throw"&&(U=C,F.method="throw",F.arg=W.arg)}}}function z(j,D){var F=D.method,U=j.iterator[F];if(U===e)return D.delegate=null,F==="throw"&&j.iterator.return&&(D.method="return",D.arg=e,z(j,D),D.method==="throw")||F!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+F+"' method")),y;var A=g(U,j.iterator,D.arg);if(A.type==="throw")return D.method="throw",D.arg=A.arg,D.delegate=null,y;var K=A.arg;return K?K.done?(D[j.resultName]=K.value,D.next=j.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,y):K:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,y)}function V(j){var D={tryLoc:j[0]};1 in j&&(D.catchLoc=j[1]),2 in j&&(D.finallyLoc=j[2],D.afterLoc=j[3]),this.tryEntries.push(D)}function B(j){var D=j.completion||{};D.type="normal",delete D.arg,j.completion=D}function L(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(V,this),this.reset(!0)}function H(j){if(j||j===""){var D=j[s];if(D)return D.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var F=-1,U=function A(){for(;++F<j.length;)if(r.call(j,F))return A.value=j[F],A.done=!1,A;return A.value=e,A.done=!0,A};return U.next=U}}throw new TypeError(_t(j)+" is not iterable")}return $.prototype=E,a(T,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:$,configurable:!0}),$.displayName=d(E,f,"GeneratorFunction"),t.isGeneratorFunction=function(j){var D=typeof j=="function"&&j.constructor;return!!D&&(D===$||(D.displayName||D.name)==="GeneratorFunction")},t.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,E):(j.__proto__=E,d(j,f,"GeneratorFunction")),j.prototype=Object.create(T),j},t.awrap=function(j){return{__await:j}},P(N.prototype),d(N.prototype,u,function(){return this}),t.AsyncIterator=N,t.async=function(j,D,F,U,A){A===void 0&&(A=Promise);var K=new N(h(j,D,F,U),A);return t.isGeneratorFunction(D)?K:K.next().then(function(q){return q.done?q.value:K.next()})},P(T),d(T,f,"Generator"),d(T,s,function(){return this}),d(T,"toString",function(){return"[object Generator]"}),t.keys=function(j){var D=Object(j),F=[];for(var U in D)F.push(U);return F.reverse(),function A(){for(;F.length;){var K=F.pop();if(K in D)return A.value=K,A.done=!1,A}return A.done=!0,A}},t.values=H,L.prototype={constructor:L,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(B),!D)for(var F in this)F.charAt(0)==="t"&&r.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 U(Q,Z){return q.type="throw",q.arg=D,F.next=Q,Z&&(F.method="next",F.arg=e),!!Z}for(var A=this.tryEntries.length-1;A>=0;--A){var K=this.tryEntries[A],q=K.completion;if(K.tryLoc==="root")return U("end");if(K.tryLoc<=this.prev){var Y=r.call(K,"catchLoc"),W=r.call(K,"finallyLoc");if(Y&&W){if(this.prev<K.catchLoc)return U(K.catchLoc,!0);if(this.prev<K.finallyLoc)return U(K.finallyLoc)}else if(Y){if(this.prev<K.catchLoc)return U(K.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return U(K.finallyLoc)}}}},abrupt:function(D,F){for(var U=this.tryEntries.length-1;U>=0;--U){var A=this.tryEntries[U];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var K=A;break}}K&&(D==="break"||D==="continue")&&K.tryLoc<=F&&F<=K.finallyLoc&&(K=null);var q=K?K.completion:{};return q.type=D,q.arg=F,K?(this.method="next",this.next=K.finallyLoc,y):this.complete(q)},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 U=this.tryEntries[F];if(U.finallyLoc===D)return this.complete(U.completion,U.afterLoc),B(U),y}},catch:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc===D){var A=U.completion;if(A.type==="throw"){var K=A.arg;B(U)}return K}}throw Error("illegal catch attempt")},delegateYield:function(D,F,U){return this.delegate={iterator:H(D),resultName:F,nextLoc:U},this.method==="next"&&(this.arg=e),y}},t}function T_(e,t,n,r,a,o,s){try{var u=e[o](s),f=u.value}catch(d){return void n(d)}u.done?t(f):Promise.resolve(f).then(r,a)}function Qa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(f){T_(o,r,a,s,u,"next",f)}function u(f){T_(o,r,a,s,u,"throw",f)}s(void 0)})}}var Of=te({},i3),D8=Of.version,Xb=Of.render,P8=Of.unmountComponentAtNode,Pg;try{var k8=Number((D8||"").split(".")[0]);k8>=18&&(Pg=Of.createRoot)}catch{}function D_(e){var t=Of.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&_t(t)==="object"&&(t.usingClientEntryPoint=e)}var sg="__rc_react_root__";function A8(e,t){D_(!0);var n=t[sg]||Pg(t);D_(!1),n.render(e),t[sg]=n}function z8(e,t){Xb==null||Xb(e,t)}function L8(e,t){if(Pg){A8(e,t);return}z8(e,t)}function H8(e){return j0.apply(this,arguments)}function j0(){return j0=Qa(pr().mark(function e(t){return pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[sg])===null||a===void 0||a.unmount(),delete t[sg]}));case 1:case"end":return r.stop()}},e)})),j0.apply(this,arguments)}function B8(e){P8(e)}function F8(e){return T0.apply(this,arguments)}function T0(){return T0=Qa(pr().mark(function e(t){return pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Pg===void 0){r.next=2;break}return r.abrupt("return",H8(t));case 2:B8(t);case 3:case"end":return r.stop()}},e)})),T0.apply(this,arguments)}const V8=(e,t)=>(L8(e,t),()=>F8(t));let K8=V8;function ON(){return K8}const Qb=()=>({height:0,opacity:0}),P_=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},U8=e=>({height:e?e.offsetHeight:0}),Zb=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",cf=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:sf}-motion-collapse`,onAppearStart:Qb,onEnterStart:Qb,onAppearActive:P_,onEnterActive:P_,onLeaveStart:U8,onLeaveActive:Qb,onAppearEnd:Zb,onEnterEnd:Zb,onLeaveEnd:Zb,motionDeadline:500}},dS=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function tr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const nu=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,s=a.height;if(o||s)return!0}}return!1}),W8=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},q8=AA("Wave",e=>[W8(e)]),kg=`${sf}-wave-target`;function Jb(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 Y8(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Jb(t)?t:Jb(n)?n:Jb(r)?r:null}function ey(e){return Number.isNaN(e)?0:e}const G8=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=l.useRef(null),s=l.useRef(null);l.useEffect(()=>{s.current=a()},[]);const[u,f]=l.useState(null),[d,h]=l.useState([]),[g,v]=l.useState(0),[b,x]=l.useState(0),[C,y]=l.useState(0),[w,$]=l.useState(0),[E,I]=l.useState(!1),O={left:g,top:b,width:C,height:w,borderRadius:d.map(P=>`${P}px`).join(" ")};u&&(O["--wave-color"]=u);function R(){const P=getComputedStyle(n);f(Y8(n));const N=P.position==="static",{borderLeftWidth:k,borderTopWidth:z}=P;v(N?n.offsetLeft:ey(-parseFloat(k))),x(N?n.offsetTop:ey(-parseFloat(z))),y(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:V,borderTopRightRadius:B,borderBottomLeftRadius:L,borderBottomRightRadius:H}=P;h([V,B,H,L].map(j=>ey(parseFloat(j))))}if(l.useEffect(()=>{if(n){const P=un(()=>{R(),I(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(R),N.observe(n)),()=>{un.cancel(P),N==null||N.disconnect()}}},[]),!E)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(kg));return l.createElement(xi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,N)=>{var k,z;if(N.deadline||N.propertyName==="opacity"){const V=(k=o.current)===null||k===void 0?void 0:k.parentElement;(z=s.current)===null||z===void 0||z.call(s).then(()=>{V==null||V.remove()})}return!1}},(P,N)=>{let{className:k}=P;return l.createElement("div",{ref:xa(o,N),className:ce(t,k,{"wave-quick":T}),style:O})})},X8=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const o=ON();let s=null;function u(){return s}s=o(l.createElement(G8,Object.assign({},t,{target:e,registerUnmount:u})),a)},Q8=(e,t,n)=>{const{wave:r}=l.useContext(Yt),[,a,o]=Ra(),s=pn(d=>{const h=e.current;if(r!=null&&r.disabled||!h)return;const g=h.querySelector(`.${kg}`)||h,{showEffect:v}=r||{};(v||X8)(g,{className:t,token:a,component:n,event:d,hashId:o})}),u=l.useRef(null);return d=>{un.cancel(u.current),u.current=un(()=>{s(d)})}},If=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(Yt),o=l.useRef(null),s=a("wave"),[,u]=q8(s),f=Q8(o,ce(s,u),r);if(Se.useEffect(()=>{const h=o.current;if(!h||h.nodeType!==1||n)return;const g=v=>{!nu(v.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")||h.className.includes("-leave")||f(v)};return h.addEventListener("click",g,!0),()=>{h.removeEventListener("click",g,!0)}},[n]),!Se.isValidElement(t))return t??null;const d=ki(t)?xa(kl(t),o):o;return pa(t,{ref:d})},ua=e=>{const t=Se.useContext(xs);return Se.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Z8=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},J8=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},eL=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},IN=Kn("Space",e=>{const t=yn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[J8(t),eL(t),Z8(t)]},()=>({}),{resetStyle:!1});var RN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ag=l.createContext(null),Yo=(e,t)=>{const n=l.useContext(Ag),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:s}=n,u=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:o,[`${e}-compact${u}last-item`]:s,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},tL=e=>{const{children:t}=e;return l.createElement(Ag.Provider,{value:null},t)},nL=e=>{const{children:t}=e,n=RN(e,["children"]);return l.createElement(Ag.Provider,{value:l.useMemo(()=>n,[n])},t)},rL=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Yt),{size:r,direction:a,block:o,prefixCls:s,className:u,rootClassName:f,children:d}=e,h=RN(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=ua(E=>r??E),v=t("space-compact",s),[b,x]=IN(v),C=ce(v,x,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},u,f),y=l.useContext(Ag),w=_a(d),$=l.useMemo(()=>w.map((E,I)=>{const O=(E==null?void 0:E.key)||`${v}-item-${I}`;return l.createElement(nL,{key:O,compactSize:g,compactDirection:a,isFirstItem:I===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:I===w.length-1&&(!y||(y==null?void 0:y.isLastItem))},E)}),[r,w,y]);return w.length===0?null:b(l.createElement("div",Object.assign({className:C},h),$))};var aL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const NN=l.createContext(void 0),iL=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Yt),{prefixCls:r,size:a,className:o}=e,s=aL(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=Ra(),d=l.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),h=ce(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:n==="rtl"},o,f);return l.createElement(NN.Provider,{value:a},l.createElement("div",Object.assign({},s,{className:h})))},k_=/^[\u4E00-\u9FA5]{2}$/,D0=k_.test.bind(k_);function A_(e){return typeof e=="string"}function ty(e){return e==="text"||e==="link"}function oL(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&A_(e.type)&&D0(e.props.children)?pa(e,{children:e.props.children.split("").join(n)}):A_(e)?D0(e)?Se.createElement("span",null,e.split("").join(n)):Se.createElement("span",null,e):bN(e)?Se.createElement("span",null,e):e}function lL(e,t){let n=!1;const r=[];return Se.Children.forEach(e,a=>{const o=typeof a,s=o==="string"||o==="number";if(n&&s){const u=r.length-1,f=r[u];r[u]=`${f}${a}`}else r.push(a);n=s}),Se.Children.map(r,a=>oL(a,t))}["default","primary","danger"].concat(Ae(Ss));const P0=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,s=ce(`${o}-icon`,n);return Se.createElement("span",{ref:t,className:s,style:r},a)}),z_=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,s=ce(`${n}-loading-icon`,r);return Se.createElement(P0,{prefixCls:n,className:s,style:a,ref:t},Se.createElement(Fo,{className:o}))}),ny=()=>({width:0,opacity:0,transform:"scale(0)"}),ry=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),sL=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:s}=e,u=!!n;return r?Se.createElement(z_,{prefixCls:t,className:a,style:o}):Se.createElement(xi,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:ny,onAppearActive:ry,onEnterStart:ny,onEnterActive:ry,onLeaveStart:ry,onLeaveActive:ny},(f,d)=>{let{className:h,style:g}=f;const v=Object.assign(Object.assign({},o),g);return Se.createElement(z_,{prefixCls:t,className:ce(a,h),style:v,ref:d})})},L_=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),cL=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},L_(`${t}-primary`,a),L_(`${t}-danger`,o)]}};var uL=["b"],dL=["v"],ay=function(t){return Math.round(Number(t||0))},fL=function(t){if(t instanceof Mn)return t;if(t&&_t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=qt(n,uL);return te(te({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},uf=(function(e){ei(n,e);var t=yi(n);function n(r){return yr(this,n),t.call(this,fL(r))}return xr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=ay(a.s*100),s=ay(a.b*100),u=ay(a.h),f=a.a,d="hsb(".concat(u,", ").concat(o,"%, ").concat(s,"%)"),h="hsba(".concat(u,", ").concat(o,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?d:h}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,s=qt(a,dL);return te(te({},s),{},{b:o,a:this.a})}}]),n})(Mn),mL=function(t){return t instanceof uf?t:new uf(t)};mL("#1677ff");const hL=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",gL=(e,t)=>e?hL(e,t):"";let vL=(function(){function e(t){yr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:o,percent:s}=a;return{color:new e(o),percent:s}}),this.metaColor=new uf(this.colors[0].color.metaColor)):this.metaColor=new uf(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return xr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return gL(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var pL={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"},bL=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:pL}))},df=l.forwardRef(bL);const zg=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`}}}),yL=e=>({animationDuration:e,animationFillMode:"both"}),xL=e=>({animationDuration:e,animationFillMode:"both"}),Lg=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${o}${e}-enter,
      ${o}${e}-appear
    `]:Object.assign(Object.assign({},yL(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},xL(r)),{animationPlayState:"paused"}),[`
      ${o}${e}-enter${e}-enter-active,
      ${o}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},SL=new Dn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),CL=new Dn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),wL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Lg(r,SL,CL,e.motionDurationMid,t),{[`
        ${a}${r}-enter,
        ${a}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},$L=new Dn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),EL=new Dn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),_L=new Dn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OL=new Dn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),IL=new Dn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RL=new Dn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),NL=new Dn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ML=new Dn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),jL={"move-up":{inKeyframes:NL,outKeyframes:ML},"move-down":{inKeyframes:$L,outKeyframes:EL},"move-left":{inKeyframes:_L,outKeyframes:OL},"move-right":{inKeyframes:IL,outKeyframes:RL}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=jL[t];return[Lg(r,a,o,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Hg=new Dn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Bg=new Dn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fg=new Dn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vg=new Dn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),TL=new Dn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),DL=new Dn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),PL=new Dn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),kL=new Dn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),AL={"slide-up":{inKeyframes:Hg,outKeyframes:Bg},"slide-down":{inKeyframes:Fg,outKeyframes:Vg},"slide-left":{inKeyframes:TL,outKeyframes:DL},"slide-right":{inKeyframes:PL,outKeyframes:kL}},io=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=AL[t];return[Lg(r,a,o,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},fS=new Dn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zL=new Dn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),H_=new Dn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B_=new Dn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),LL=new Dn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),HL=new Dn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),BL=new Dn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),FL=new Dn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),VL=new Dn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),KL=new Dn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),UL=new Dn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),WL=new Dn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),qL={zoom:{inKeyframes:fS,outKeyframes:zL},"zoom-big":{inKeyframes:H_,outKeyframes:B_},"zoom-big-fast":{inKeyframes:H_,outKeyframes:B_},"zoom-left":{inKeyframes:BL,outKeyframes:FL},"zoom-right":{inKeyframes:VL,outKeyframes:KL},"zoom-up":{inKeyframes:LL,outKeyframes:HL},"zoom-down":{inKeyframes:UL,outKeyframes:WL}},mS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=qL[t];return[Lg(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},YL=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),s=new uf(e.toRgbString()).onBackground(t).toHsv();return o<=.5?s.v>.5:n*.299+r*.587+a*.114>192},MN=e=>{const{paddingInline:t,onlyIconSize:n}=e;return yn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},jN=e=>{var t,n,r,a,o,s;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,h=(a=e.contentLineHeight)!==null&&a!==void 0?a:Ph(u),g=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Ph(f),v=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:Ph(d),b=YL(new vL(e.colorBgSolid),"#fff")?"#000":"#fff",x=Ss.reduce((C,y)=>Object.assign(Object.assign({},C),{[`${y}ShadowColor`]:`0 ${ne(e.controlOutlineWidth)} 0 ${Md(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},x),{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:b,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:d,contentLineHeight:h,contentLineHeightSM:g,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-u*h)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*v)/2-e.lineWidth,0)})},GL=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:s,marginXS:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Qc(),"> a":{color:"currentColor"},"&:not(:disabled)":Bo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${o} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(u).mul(-1).equal()}}}}}},TN=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),XL=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QL=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ZL=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Kg=(e,t,n,r,a,o,s,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},TN(e,Object.assign({background:t},s),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),JL=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ZL(e))}),e5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ug=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?e5:JL;return Object.assign(Object.assign({},o(e)),TN(e.componentCls,t,n))},Wg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ug(e,r,a))}),qg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ug(e,r,a))}),Yg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Gg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ug(e,n,r))}),oo=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ug(e,r,a,n))}),t5=e=>{const{componentCls:t}=e;return Ss.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],s=e[`${r}5`],u=e[`${r}2`],f=e[`${r}3`],d=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Wg(e,e.colorTextLightSolid,a,{background:s},{background:d})),qg(e,a,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),Yg(e)),Gg(e,o,{background:u},{background:f})),oo(e,a,"link",{color:s},{color:d})),oo(e,a,"text",{color:s,background:o},{color:d,background:f}))})},{})},n5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Wg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Yg(e)),Gg(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Kg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),oo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),r5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},qg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Yg(e)),Gg(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),oo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),oo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Kg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),a5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Wg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),qg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yg(e)),Gg(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),oo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),oo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Kg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),i5=e=>Object.assign(Object.assign({},oo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Kg(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),o5=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:n5(e),[`${t}-color-primary`]:r5(e),[`${t}-color-dangerous`]:a5(e),[`${t}-color-link`]:i5(e)},t5(e))},l5=e=>Object.assign(Object.assign(Object.assign(Object.assign({},qg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),oo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Wg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),oo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),hS=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:a,height:r,padding:`${ne(f)} ${ne(s)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:XL(e)},{[`${n}${n}-round${t}`]:QL(e)}]},s5=e=>{const t=yn(e,{fontSize:e.contentFontSize});return hS(t,e.componentCls)},c5=e=>{const t=yn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return hS(t,`${e.componentCls}-sm`)},u5=e=>{const t=yn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return hS(t,`${e.componentCls}-lg`)},d5=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},f5=Kn("Button",e=>{const t=MN(e);return[GL(t),s5(t),c5(t),u5(t),d5(t),o5(t),l5(t),cL(t)]},jN,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function m5(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,s=o?"> *":"",u=["hover",a?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function h5(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Rf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},m5(e,r,t)),h5(n,r,t))}}function g5(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 v5(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 p5(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},g5(e,t)),v5(e.componentCls,t))}}const b5=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),s=u=>{const f=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:u?o:0,insetInlineStart:u?0:o,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},y5=_f(["Button","compact"],e=>{const t=MN(e);return[Rf(t),p5(t),b5(t)]},jN);var x5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function S5(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const C5={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},w5=Se.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:o,color:s,variant:u,type:f,danger:d=!1,shape:h="default",size:g,styles:v,disabled:b,className:x,rootClassName:C,children:y,icon:w,iconPosition:$="start",ghost:E=!1,block:I=!1,htmlType:O="button",classNames:R,style:T={},autoInsertSpace:P,autoFocus:N}=e,k=x5(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),z=f||"default",[V,B]=l.useMemo(()=>{if(s&&u)return[s,u];const Ce=C5[z]||[];return d?["danger",Ce[1]]:Ce},[f,s,u,d]),H=V==="danger"?"dangerous":V,{getPrefixCls:j,direction:D,autoInsertSpace:F,className:U,style:A,classNames:K,styles:q}=Ia("button"),Y=(n=P??F)!==null&&n!==void 0?n:!0,W=j("btn",o),[Q,Z,ae]=f5(W),J=l.useContext(Oa),se=b??J,he=l.useContext(NN),oe=l.useMemo(()=>S5(a),[a]),[le,ie]=l.useState(oe.loading),[de,ge]=l.useState(!1),me=l.useRef(null),xe=Pl(t,me),Ee=l.Children.count(y)===1&&!w&&!ty(B),He=l.useRef(!0);Se.useEffect(()=>(He.current=!1,()=>{He.current=!0}),[]),l.useEffect(()=>{let Ce=null;oe.delay>0?Ce=setTimeout(()=>{Ce=null,ie(!0)},oe.delay):ie(oe.loading);function _e(){Ce&&(clearTimeout(Ce),Ce=null)}return _e},[oe]),l.useEffect(()=>{if(!me.current||!Y)return;const Ce=me.current.textContent||"";Ee&&D0(Ce)?de||ge(!0):de&&ge(!1)}),l.useEffect(()=>{N&&me.current&&me.current.focus()},[]);const je=Se.useCallback(Ce=>{var _e;if(le||se){Ce.preventDefault();return}(_e=e.onClick)===null||_e===void 0||_e.call(e,("href"in e,Ce))},[e.onClick,le,se]),{compactSize:ve,compactItemClassnames:$e}=Yo(W,D),we={large:"lg",small:"sm",middle:void 0},Re=ua(Ce=>{var _e,be;return(be=(_e=g??ve)!==null&&_e!==void 0?_e:he)!==null&&be!==void 0?be:Ce}),ze=Re&&(r=we[Re])!==null&&r!==void 0?r:"",De=le?"loading":w,Ye=tr(k,["navigate"]),Xe=ce(W,Z,ae,{[`${W}-${h}`]:h!=="default"&&h,[`${W}-${z}`]:z,[`${W}-dangerous`]:d,[`${W}-color-${H}`]:H,[`${W}-variant-${B}`]:B,[`${W}-${ze}`]:ze,[`${W}-icon-only`]:!y&&y!==0&&!!De,[`${W}-background-ghost`]:E&&!ty(B),[`${W}-loading`]:le,[`${W}-two-chinese-chars`]:de&&Y&&!le,[`${W}-block`]:I,[`${W}-rtl`]:D==="rtl",[`${W}-icon-end`]:$==="end"},$e,x,C,U),Le=Object.assign(Object.assign({},A),T),Ke=ce(R==null?void 0:R.icon,K.icon),Fe=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),q.icon||{}),Ie=w&&!le?Se.createElement(P0,{prefixCls:W,className:Ke,style:Fe},w):a&&typeof a=="object"&&a.icon?Se.createElement(P0,{prefixCls:W,className:Ke,style:Fe},a.icon):Se.createElement(sL,{existIcon:!!w,prefixCls:W,loading:le,mount:He.current}),Ue=y||y===0?lL(y,Ee&&Y):null;if(Ye.href!==void 0)return Q(Se.createElement("a",Object.assign({},Ye,{className:ce(Xe,{[`${W}-disabled`]:se}),href:se?void 0:Ye.href,style:Le,onClick:je,ref:xe,tabIndex:se?-1:0}),Ie,Ue));let ye=Se.createElement("button",Object.assign({},k,{type:O,className:Xe,style:Le,onClick:je,disabled:se,ref:xe}),Ie,Ue,$e&&Se.createElement(y5,{prefixCls:W}));return ty(B)||(ye=Se.createElement(If,{component:"Button",disabled:le},ye)),Q(ye)}),mn=w5;mn.Group=iL;mn.__ANT_BUTTON=!0;var DN=l.createContext(null),F_=[];function $5(e,t){var n=l.useState(function(){if(!va())return null;var x=document.createElement("div");return x}),r=ue(n,1),a=r[0],o=l.useRef(!1),s=l.useContext(DN),u=l.useState(F_),f=ue(u,2),d=f[0],h=f[1],g=s||(o.current?void 0:function(x){h(function(C){var y=[x].concat(Ae(C));return y})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var x;(x=a.parentElement)===null||x===void 0||x.removeChild(a),o.current=!1}return hn(function(){return e?s?s(v):v():b(),b},[e]),hn(function(){d.length&&(d.forEach(function(x){return x()}),h(F_))},[d]),[a,g]}var iy;function PN(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(u.width,10),d=parseInt(u.height,10);try{var h=f?"width: ".concat(u.width,";"):"",g=d?"height: ".concat(u.height,";"):"";ko(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(h,`
`).concat(g,`
}`),t)}catch(x){console.error(x),a=f,o=d}}document.body.appendChild(n);var v=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,b=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),nf(t),{width:v,height:b}}function V_(e){return typeof document>"u"?0:(iy===void 0&&(iy=PN()),iy.width)}function k0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:PN(e)}function E5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _5="rc-util-locker-".concat(Date.now()),K_=0;function O5(e){var t=!!e,n=l.useState(function(){return K_+=1,"".concat(_5,"_").concat(K_)}),r=ue(n,1),a=r[0];hn(function(){if(t){var o=k0(document.body).width,s=E5();ko(`
html body {
  overflow-y: hidden;
  `.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
}`),a)}else nf(a);return function(){nf(a)}},[t,a])}var I5=!1;function R5(e){return I5}var U_=function(t){return t===!1?!1:!va()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},kN=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,s=o===void 0?!0:o,u=e.children,f=l.useState(n),d=ue(f,2),h=d[0],g=d[1],v=h||n;l.useEffect(function(){(s||n)&&g(n)},[n,s]);var b=l.useState(function(){return U_(a)}),x=ue(b,2),C=x[0],y=x[1];l.useEffect(function(){var z=U_(a);y(z??null)});var w=$5(v&&!C),$=ue(w,2),E=$[0],I=$[1],O=C??E;O5(r&&n&&va()&&(O===E||O===document.body));var R=null;if(u&&ki(u)&&t){var T=u;R=T.ref}var P=Pl(R,t);if(!v||!va()||C===void 0)return null;var N=O===!1||R5(),k=u;return t&&(k=l.cloneElement(u,{ref:P})),l.createElement(DN.Provider,{value:I},N?k:Pi.createPortal(k,O))});function N5(){var e=te({},Og);return e.useId}var W_=0,q_=N5();const gS=q_?(function(t){var n=q_();return t||n}):(function(t){var n=l.useState("ssr-id"),r=ue(n,2),a=r[0],o=r[1];return l.useEffect(function(){var s=W_;W_+=1,o("rc_unique_".concat(s))},[]),t||a});var ds="RC_FORM_INTERNAL_HOOKS",fr=function(){br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Cs=l.createContext({getFieldValue:fr,getFieldsValue:fr,getFieldError:fr,getFieldWarning:fr,getFieldsError:fr,isFieldsTouched:fr,isFieldTouched:fr,isFieldValidating:fr,isFieldsValidating:fr,resetFields:fr,setFields:fr,setFieldValue:fr,setFieldsValue:fr,validateFields:fr,submit:fr,getInternalHooks:function(){return fr(),{dispatch:fr,initEntityValue:fr,registerField:fr,useSubscribe:fr,setInitialValues:fr,destroyForm:fr,setCallbacks:fr,registerWatch:fr,getFields:fr,setValidateMessages:fr,setPreserve:fr,getInitialValue:fr}}}),ff=l.createContext(null);function A0(e){return e==null?[]:Array.isArray(e)?e:[e]}function M5(e){return e&&!!e._init}function z0(){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 L0=z0();function j5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function T5(e,t,n){if(Rg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&ef(a,n.prototype),a}function H0(e){var t=typeof Map=="function"?new Map:void 0;return H0=function(r){if(r===null||!j5(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return T5(r,arguments,ys(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ef(a,r)},H0(e)}var D5=/%[sdj%]/g,P5=function(){};function B0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Za(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(D5,function(u){if(u==="%%")return"%";if(a>=o)return u;switch(u){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function k5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ea(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||k5(t)&&typeof e=="string"&&!e)}function A5(e,t,n){var r=[],a=0,o=e.length;function s(u){r.push.apply(r,Ae(u||[])),a++,a===o&&n(r)}e.forEach(function(u){t(u,s)})}function Y_(e,t,n){var r=0,a=e.length;function o(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<a?t(e[u],o):n([])}o([])}function z5(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var G_=(function(e){ei(n,e);var t=yi(n);function n(r,a){var o;return yr(this,n),o=t.call(this,"Async Validation Error"),X(Ct(o),"errors",void 0),X(Ct(o),"fields",void 0),o.errors=r,o.fields=a,o}return xr(n)})(H0(Error));function L5(e,t,n,r,a){if(t.first){var o=new Promise(function(v,b){var x=function(w){return r(w),w.length?b(new G_(w,B0(w))):v(a)},C=z5(e);Y_(C,n,x)});return o.catch(function(v){return v}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,d=0,h=[],g=new Promise(function(v,b){var x=function(y){if(h.push.apply(h,y),d++,d===f)return r(h),h.length?b(new G_(h,B0(h))):v(a)};u.length||(r(h),v(a)),u.forEach(function(C){var y=e[C];s.indexOf(C)!==-1?Y_(y,n,x):A5(y,n,x)})});return g.catch(function(v){return v}),g}function H5(e){return!!(e&&e.message!==void 0)}function B5(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function X_(e,t){return function(n){var r;return e.fullFields?r=B5(t,e.fullFields):r=t[n.field||e.fullField],H5(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Q_(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];_t(r)==="object"&&_t(e[n])==="object"?e[n]=te(te({},e[n]),r):e[n]=r}}return e}var gc="enum",F5=function(t,n,r,a,o){t[gc]=Array.isArray(t[gc])?t[gc]:[],t[gc].indexOf(n)===-1&&a.push(Za(o.messages[gc],t.fullField,t[gc].join(", ")))},V5=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Za(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||a.push(Za(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},K5=function(t,n,r,a,o){var s=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,g=null,v=typeof n=="number",b=typeof n=="string",x=Array.isArray(n);if(v?g="number":b?g="string":x&&(g="array"),!g)return!1;x&&(h=n.length),b&&(h=n.replace(d,"_").length),s?h!==t.len&&a.push(Za(o.messages[g].len,t.fullField,t.len)):u&&!f&&h<t.min?a.push(Za(o.messages[g].min,t.fullField,t.min)):f&&!u&&h>t.max?a.push(Za(o.messages[g].max,t.fullField,t.max)):u&&f&&(h<t.min||h>t.max)&&a.push(Za(o.messages[g].range,t.fullField,t.min,t.max))},AN=function(t,n,r,a,o,s){t.required&&(!r.hasOwnProperty(t.field)||ea(n,s||t.type))&&a.push(Za(o.messages.required,t.fullField))},lh;const U5=(function(){if(lh)return lh;var e="[a-fA-F\\d:]",t=function(R){return R&&R.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(a.join("|"),")").concat(o),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(s,"$")),h=function(R){return R&&R.exact?u:new RegExp("(?:".concat(t(R)).concat(n).concat(t(R),")|(?:").concat(t(R)).concat(s).concat(t(R),")"),"g")};h.v4=function(O){return O&&O.exact?f:new RegExp("".concat(t(O)).concat(n).concat(t(O)),"g")},h.v6=function(O){return O&&O.exact?d:new RegExp("".concat(t(O)).concat(s).concat(t(O)),"g")};var g="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=h.v4().source,x=h.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',I="(?:".concat(g,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(x,"|").concat(C).concat(y).concat(w,")").concat($).concat(E);return lh=new RegExp("(?:^".concat(I,"$)"),"i"),lh});var Z_={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},jd={integer:function(t){return jd.number(t)&&parseInt(t,10)===t},float:function(t){return jd.number(t)&&!jd.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 _t(t)==="object"&&!jd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Z_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(U5())},hex:function(t){return typeof t=="string"&&!!t.match(Z_.hex)}},W5=function(t,n,r,a,o){if(t.required&&n===void 0){AN(t,n,r,a,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?jd[u](n)||a.push(Za(o.messages.types[u],t.fullField,t.type)):u&&_t(n)!==t.type&&a.push(Za(o.messages.types[u],t.fullField,t.type))},q5=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Za(o.messages.whitespace,t.fullField))};const Fn={required:AN,whitespace:q5,type:W5,range:K5,enum:F5,pattern:V5};var Y5=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o)}r(s)},G5=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Fn.required(t,n,a,s,o,"array"),n!=null&&(Fn.type(t,n,a,s,o),Fn.range(t,n,a,s,o))}r(s)},X5=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&Fn.type(t,n,a,s,o)}r(s)},Q5=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n,"date")&&!t.required)return r();if(Fn.required(t,n,a,s,o),!ea(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Fn.type(t,f,a,s,o),f&&Fn.range(t,f.getTime(),a,s,o)}}r(s)},Z5="enum",J5=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&Fn[Z5](t,n,a,s,o)}r(s)},eH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&(Fn.type(t,n,a,s,o),Fn.range(t,n,a,s,o))}r(s)},tH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&(Fn.type(t,n,a,s,o),Fn.range(t,n,a,s,o))}r(s)},nH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&Fn.type(t,n,a,s,o)}r(s)},rH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&(Fn.type(t,n,a,s,o),Fn.range(t,n,a,s,o))}r(s)},aH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),n!==void 0&&Fn.type(t,n,a,s,o)}r(s)},iH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n,"string")&&!t.required)return r();Fn.required(t,n,a,s,o),ea(n,"string")||Fn.pattern(t,n,a,s,o)}r(s)},oH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Fn.required(t,n,a,s,o),ea(n)||Fn.type(t,n,a,s,o)}r(s)},lH=function(t,n,r,a,o){var s=[],u=Array.isArray(n)?"array":_t(n);Fn.required(t,n,a,s,o,u),r(s)},sH=function(t,n,r,a,o){var s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n,"string")&&!t.required)return r();Fn.required(t,n,a,s,o,"string"),ea(n,"string")||(Fn.type(t,n,a,s,o),Fn.range(t,n,a,s,o),Fn.pattern(t,n,a,s,o),t.whitespace===!0&&Fn.whitespace(t,n,a,s,o))}r(s)},oy=function(t,n,r,a,o){var s=t.type,u=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(ea(n,s)&&!t.required)return r();Fn.required(t,n,a,u,o,s),ea(n,s)||Fn.type(t,n,a,u,o)}r(u)};const Bd={string:sH,method:nH,number:rH,boolean:X5,regexp:oH,integer:tH,float:eH,array:G5,object:aH,enum:J5,pattern:iH,date:Q5,url:oy,hex:oy,email:oy,required:lH,any:Y5};var Nf=(function(){function e(t){yr(this,e),X(this,"rules",null),X(this,"_messages",L0),this.define(t)}return xr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(_t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Q_(z0(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,u=a,f=o;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function d(x){var C=[],y={};function w(E){if(Array.isArray(E)){var I;C=(I=C).concat.apply(I,Ae(E))}else C.push(E)}for(var $=0;$<x.length;$++)w(x[$]);C.length?(y=B0(C),f(C,y)):f(null,s)}if(u.messages){var h=this.messages();h===L0&&(h=z0()),Q_(h,u.messages),u.messages=h}else u.messages=this.messages();var g={},v=u.keys||Object.keys(this.rules);v.forEach(function(x){var C=r.rules[x],y=s[x];C.forEach(function(w){var $=w;typeof $.transform=="function"&&(s===n&&(s=te({},s)),y=s[x]=$.transform(y),y!=null&&($.type=$.type||(Array.isArray(y)?"array":_t(y)))),typeof $=="function"?$={validator:$}:$=te({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=x,$.fullField=$.fullField||x,$.type=r.getType($),g[x]=g[x]||[],g[x].push({rule:$,value:y,source:s,field:x}))})});var b={};return L5(g,u,function(x,C){var y=x.rule,w=(y.type==="object"||y.type==="array")&&(_t(y.fields)==="object"||_t(y.defaultField)==="object");w=w&&(y.required||!y.required&&x.value),y.field=x.field;function $(T,P){return te(te({},P),{},{fullField:"".concat(y.fullField,".").concat(T),fullFields:y.fullFields?[].concat(Ae(y.fullFields),[T]):[T]})}function E(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(T)?T:[T];!u.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&y.message!==void 0&&(P=[].concat(y.message));var N=P.map(X_(y,s));if(u.first&&N.length)return b[y.field]=1,C(N);if(!w)C(N);else{if(y.required&&!x.value)return y.message!==void 0?N=[].concat(y.message).map(X_(y,s)):u.error&&(N=[u.error(y,Za(u.messages.required,y.field))]),C(N);var k={};y.defaultField&&Object.keys(x.value).map(function(B){k[B]=y.defaultField}),k=te(te({},k),x.rule.fields);var z={};Object.keys(k).forEach(function(B){var L=k[B],H=Array.isArray(L)?L:[L];z[B]=H.map($.bind(null,B))});var V=new e(z);V.messages(u.messages),x.rule.options&&(x.rule.options.messages=u.messages,x.rule.options.error=u.error),V.validate(x.value,x.rule.options||u,function(B){var L=[];N&&N.length&&L.push.apply(L,Ae(N)),B&&B.length&&L.push.apply(L,Ae(B)),C(L.length?L:null)})}}var I;if(y.asyncValidator)I=y.asyncValidator(y,x.value,E,x.source,u);else if(y.validator){try{I=y.validator(y,x.value,E,x.source,u)}catch(T){var O,R;(O=(R=console).error)===null||O===void 0||O.call(R,T),u.suppressValidatorError||setTimeout(function(){throw T},0),E(T.message)}I===!0?E():I===!1?E(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):I instanceof Array?E(I):I instanceof Error&&E(I.message)}I&&I.then&&I.then(function(){return E()},function(T){return E(T)})},function(x){d(x)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Bd.hasOwnProperty(n.type))throw new Error(Za("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Bd.required:Bd[this.getType(n)]||void 0}}]),e})();X(Nf,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Bd[t]=n});X(Nf,"warning",P5);X(Nf,"messages",L0);X(Nf,"validators",Bd);var Ga="'${name}' is not a valid ${type}",zN={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:Ga,method:Ga,array:Ga,object:Ga,number:Ga,date:Ga,boolean:Ga,integer:Ga,float:Ga,regexp:Ga,email:Ga,url:Ga,hex:Ga},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}"}},J_=Nf;function cH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var e2="CODE_LOGIC_ERROR";function F0(e,t,n,r,a){return V0.apply(this,arguments)}function V0(){return V0=Qa(pr().mark(function e(t,n,r,a,o){var s,u,f,d,h,g,v,b,x;return pr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=te({},r),delete s.ruleIndex,J_.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(e2)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),d=new J_(X({},t,[s])),h=Ic(zN,a.validateMessages),d.messages(h),g=[],y.prev=10,y.next=13,Promise.resolve(d.validate(X({},t,n),te({},a)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(g=y.t0.errors.map(function(w,$){var E=w.message,I=E===e2?h.default:E;return l.isValidElement(I)?l.cloneElement(I,{key:"error_".concat($)}):I}));case 18:if(!(!g.length&&f)){y.next=23;break}return y.next=21,Promise.all(n.map(function(w,$){return F0("".concat(t,".").concat($),w,f,a,o)}));case 21:return v=y.sent,y.abrupt("return",v.reduce(function(w,$){return[].concat(Ae(w),Ae($))},[]));case 23:return b=te(te({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),x=g.map(function(w){return typeof w=="string"?cH(w,b):w}),y.abrupt("return",x);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),V0.apply(this,arguments)}function uH(e,t,n,r,a,o){var s=e.join("."),u=n.map(function(h,g){var v=h.validator,b=te(te({},h),{},{ruleIndex:g});return v&&(b.validator=function(x,C,y){var w=!1,$=function(){for(var O=arguments.length,R=new Array(O),T=0;T<O;T++)R[T]=arguments[T];Promise.resolve().then(function(){br(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||y.apply(void 0,R)})},E=v(x,C,$);w=E&&typeof E.then=="function"&&typeof E.catch=="function",br(w,"`callback` is deprecated. Please return a promise instead."),w&&E.then(function(){y()}).catch(function(I){y(I||" ")})}),b}).sort(function(h,g){var v=h.warningOnly,b=h.ruleIndex,x=g.warningOnly,C=g.ruleIndex;return!!v==!!x?b-C:v?1:-1}),f;if(a===!0)f=new Promise((function(){var h=Qa(pr().mark(function g(v,b){var x,C,y;return pr().wrap(function($){for(;;)switch($.prev=$.next){case 0:x=0;case 1:if(!(x<u.length)){$.next=12;break}return C=u[x],$.next=5,F0(s,t,C,r,o);case 5:if(y=$.sent,!y.length){$.next=9;break}return b([{errors:y,rule:C}]),$.abrupt("return");case 9:x+=1,$.next=1;break;case 12:v([]);case 13:case"end":return $.stop()}},g)}));return function(g,v){return h.apply(this,arguments)}})());else{var d=u.map(function(h){return F0(s,t,h,r,o).then(function(g){return{errors:g,rule:h}})});f=(a?fH(d):dH(d)).then(function(h){return Promise.reject(h)})}return f.catch(function(h){return h}),f}function dH(e){return K0.apply(this,arguments)}function K0(){return K0=Qa(pr().mark(function e(t){return pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,s=(o=[]).concat.apply(o,Ae(a));return s}));case 1:case"end":return r.stop()}},e)})),K0.apply(this,arguments)}function fH(e){return U0.apply(this,arguments)}function U0(){return U0=Qa(pr().mark(function e(t){var n;return pr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(s){s.then(function(u){u.errors.length&&o([u]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),U0.apply(this,arguments)}function kr(e){return A0(e)}function t2(e,t){var n={};return t.forEach(function(r){var a=Ma(e,r);n=mi(n,r,a)}),n}function Pc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return LN(t,r,n)})}function LN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function mH(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||_t(e)!=="object"||_t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ae(a).every(function(o){var s=e[o],u=t[o];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function hH(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&_t(t.target)==="object"&&e in t.target?t.target[e]:t}function n2(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Ae(e.slice(0,n)),[a],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):o<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[a],Ae(e.slice(n+1,r))):e}var gH=["name"],ui=[];function ly(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var vS=(function(e){ei(n,e);var t=yi(n);function n(r){var a;if(yr(this,n),a=t.call(this,r),X(Ct(a),"state",{resetCount:0}),X(Ct(a),"cancelRegisterFunc",null),X(Ct(a),"mounted",!1),X(Ct(a),"touched",!1),X(Ct(a),"dirty",!1),X(Ct(a),"validatePromise",void 0),X(Ct(a),"prevValidating",void 0),X(Ct(a),"errors",ui),X(Ct(a),"warnings",ui),X(Ct(a),"cancelRegister",function(){var f=a.props,d=f.preserve,h=f.isListField,g=f.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(h,d,kr(g)),a.cancelRegisterFunc=null}),X(Ct(a),"getNamePath",function(){var f=a.props,d=f.name,h=f.fieldContext,g=h.prefixName,v=g===void 0?[]:g;return d!==void 0?[].concat(Ae(v),Ae(d)):[]}),X(Ct(a),"getRules",function(){var f=a.props,d=f.rules,h=d===void 0?[]:d,g=f.fieldContext;return h.map(function(v){return typeof v=="function"?v(g):v})}),X(Ct(a),"refresh",function(){a.mounted&&a.setState(function(f){var d=f.resetCount;return{resetCount:d+1}})}),X(Ct(a),"metaCache",null),X(Ct(a),"triggerMetaEvent",function(f){var d=a.props.onMetaChange;if(d){var h=te(te({},a.getMeta()),{},{destroy:f});no(a.metaCache,h)||d(h),a.metaCache=h}else a.metaCache=null}),X(Ct(a),"onStoreChange",function(f,d,h){var g=a.props,v=g.shouldUpdate,b=g.dependencies,x=b===void 0?[]:b,C=g.onReset,y=h.store,w=a.getNamePath(),$=a.getValue(f),E=a.getValue(y),I=d&&Pc(d,w);switch(h.type==="valueUpdate"&&h.source==="external"&&!no($,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ui,a.warnings=ui,a.triggerMetaEvent()),h.type){case"reset":if(!d||I){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ui,a.warnings=ui,a.triggerMetaEvent(),C==null||C(),a.refresh();return}break;case"remove":{if(v&&ly(v,f,y,$,E,h)){a.reRender();return}break}case"setField":{var O=h.data;if(I){"touched"in O&&(a.touched=O.touched),"validating"in O&&!("originRCField"in O)&&(a.validatePromise=O.validating?Promise.resolve([]):null),"errors"in O&&(a.errors=O.errors||ui),"warnings"in O&&(a.warnings=O.warnings||ui),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in O&&Pc(d,w,!0)){a.reRender();return}if(v&&!w.length&&ly(v,f,y,$,E,h)){a.reRender();return}break}case"dependenciesUpdate":{var R=x.map(kr);if(R.some(function(T){return Pc(h.relatedFields,T)})){a.reRender();return}break}default:if(I||(!x.length||w.length||v)&&ly(v,f,y,$,E,h)){a.reRender();return}break}v===!0&&a.reRender()}),X(Ct(a),"validateRules",function(f){var d=a.getNamePath(),h=a.getValue(),g=f||{},v=g.triggerName,b=g.validateOnly,x=b===void 0?!1:b,C=Promise.resolve().then(Qa(pr().mark(function y(){var w,$,E,I,O,R,T;return pr().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(a.mounted){N.next=2;break}return N.abrupt("return",[]);case 2:if(w=a.props,$=w.validateFirst,E=$===void 0?!1:$,I=w.messageVariables,O=w.validateDebounce,R=a.getRules(),v&&(R=R.filter(function(k){return k}).filter(function(k){var z=k.validateTrigger;if(!z)return!0;var V=A0(z);return V.includes(v)})),!(O&&v)){N.next=10;break}return N.next=8,new Promise(function(k){setTimeout(k,O)});case 8:if(a.validatePromise===C){N.next=10;break}return N.abrupt("return",[]);case 10:return T=uH(d,h,R,f,E,I),T.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ui;if(a.validatePromise===C){var z;a.validatePromise=null;var V=[],B=[];(z=k.forEach)===null||z===void 0||z.call(k,function(L){var H=L.rule.warningOnly,j=L.errors,D=j===void 0?ui:j;H?B.push.apply(B,Ae(D)):V.push.apply(V,Ae(D))}),a.errors=V,a.warnings=B,a.triggerMetaEvent(),a.reRender()}}),N.abrupt("return",T);case 13:case"end":return N.stop()}},y)})));return x||(a.validatePromise=C,a.dirty=!0,a.errors=ui,a.warnings=ui,a.triggerMetaEvent(),a.reRender()),C}),X(Ct(a),"isFieldValidating",function(){return!!a.validatePromise}),X(Ct(a),"isFieldTouched",function(){return a.touched}),X(Ct(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var f=a.props.fieldContext,d=f.getInternalHooks(ds),h=d.getInitialValue;return h(a.getNamePath())!==void 0}),X(Ct(a),"getErrors",function(){return a.errors}),X(Ct(a),"getWarnings",function(){return a.warnings}),X(Ct(a),"isListField",function(){return a.props.isListField}),X(Ct(a),"isList",function(){return a.props.isList}),X(Ct(a),"isPreserve",function(){return a.props.preserve}),X(Ct(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var f={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return f}),X(Ct(a),"getOnlyChild",function(f){if(typeof f=="function"){var d=a.getMeta();return te(te({},a.getOnlyChild(f(a.getControlled(),d,a.props.fieldContext))),{},{isFunction:!0})}var h=_a(f);return h.length!==1||!l.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),X(Ct(a),"getValue",function(f){var d=a.props.fieldContext.getFieldsValue,h=a.getNamePath();return Ma(f||d(!0),h)}),X(Ct(a),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=a.props,h=d.name,g=d.trigger,v=d.validateTrigger,b=d.getValueFromEvent,x=d.normalize,C=d.valuePropName,y=d.getValueProps,w=d.fieldContext,$=v!==void 0?v:w.validateTrigger,E=a.getNamePath(),I=w.getInternalHooks,O=w.getFieldsValue,R=I(ds),T=R.dispatch,P=a.getValue(),N=y||function(L){return X({},C,L)},k=f[g],z=h!==void 0?N(P):{},V=te(te({},f),z);V[g]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var L,H=arguments.length,j=new Array(H),D=0;D<H;D++)j[D]=arguments[D];b?L=b.apply(void 0,j):L=hH.apply(void 0,[C].concat(j)),x&&(L=x(L,P,O(!0))),L!==P&&T({type:"updateValue",namePath:E,value:L}),k&&k.apply(void 0,j)};var B=A0($||[]);return B.forEach(function(L){var H=V[L];V[L]=function(){H&&H.apply(void 0,arguments);var j=a.props.rules;j&&j.length&&T({type:"validateField",namePath:E,triggerName:L})}}),V}),r.fieldContext){var o=r.fieldContext.getInternalHooks,s=o(ds),u=s.initEntityValue;u(Ct(a))}return a}return xr(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,s=a.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,f=u(ds),d=f.registerField;this.cancelRegisterFunc=d(this)}o===!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 a=this.state.resetCount,o=this.props.children,s=this.getOnlyChild(o),u=s.child,f=s.isFunction,d;return f?d=u:l.isValidElement(u)?d=l.cloneElement(u,this.getControlled(u.props)):(br(!u,"`children` of Field is not validate ReactElement."),d=u),l.createElement(l.Fragment,{key:a},d)}}]),n})(l.Component);X(vS,"contextType",Cs);X(vS,"defaultProps",{trigger:"onChange",valuePropName:"value"});function pS(e){var t,n=e.name,r=qt(e,gH),a=l.useContext(Cs),o=l.useContext(ff),s=n!==void 0?kr(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!o,f="keep";return u||(f="_".concat((s||[]).join("_"))),l.createElement(vS,Me({key:f,name:s,isListField:u},r,{fieldContext:a}))}function HN(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,s=e.isListField,u=l.useContext(Cs),f=l.useContext(ff),d=l.useRef({keys:[],id:0}),h=d.current,g=l.useMemo(function(){var C=kr(u.prefixName)||[];return[].concat(Ae(C),Ae(kr(t)))},[u.prefixName,t]),v=l.useMemo(function(){return te(te({},u),{},{prefixName:g})},[u,g]),b=l.useMemo(function(){return{getKey:function(y){var w=g.length,$=y[w];return[h.keys[$],y.slice(w+1)]}}},[g]);if(typeof r!="function")return br(!1,"Form.List only accepts function as children."),null;var x=function(y,w,$){var E=$.source;return E==="internal"?!1:y!==w};return l.createElement(ff.Provider,{value:b},l.createElement(Cs.Provider,{value:v},l.createElement(pS,{name:[],shouldUpdate:x,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:s??!!f},function(C,y){var w=C.value,$=w===void 0?[]:w,E=C.onChange,I=u.getFieldValue,O=function(){var N=I(g||[]);return N||[]},R={add:function(N,k){var z=O();k>=0&&k<=z.length?(h.keys=[].concat(Ae(h.keys.slice(0,k)),[h.id],Ae(h.keys.slice(k))),E([].concat(Ae(z.slice(0,k)),[N],Ae(z.slice(k))))):(h.keys=[].concat(Ae(h.keys),[h.id]),E([].concat(Ae(z),[N]))),h.id+=1},remove:function(N){var k=O(),z=new Set(Array.isArray(N)?N:[N]);z.size<=0||(h.keys=h.keys.filter(function(V,B){return!z.has(B)}),E(k.filter(function(V,B){return!z.has(B)})))},move:function(N,k){if(N!==k){var z=O();N<0||N>=z.length||k<0||k>=z.length||(h.keys=n2(h.keys,N,k),E(n2(z,N,k)))}}},T=$||[];return Array.isArray(T)||(T=[]),r(T.map(function(P,N){var k=h.keys[N];return k===void 0&&(h.keys[N]=h.id,k=h.keys[N],h.id+=1),{name:N,key:k,isListField:!0}}),R,y)})))}function vH(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(s,u){s.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[u]=f,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var BN="__@field_split__";function sy(e){return e.map(function(t){return"".concat(_t(t),":").concat(t)}).join(BN)}var vc=(function(){function e(){yr(this,e),X(this,"kvs",new Map)}return xr(e,[{key:"set",value:function(n,r){this.kvs.set(sy(n),r)}},{key:"get",value:function(n){return this.kvs.get(sy(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(sy(n))}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var a=ue(r,2),o=a[0],s=a[1],u=o.split(BN);return n({key:u.map(function(f){var d=f.match(/^([^:]*):(.*)$/),h=ue(d,3),g=h[1],v=h[2];return g==="number"?Number(v):v}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),pH=["name"],bH=xr(function e(t){var n=this;yr(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),X(this,"getInternalHooks",function(r){return r===ds?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(r){n.subscribable=r}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,s=Ic(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var f=u.key;s=mi(s,f,Ma(r,f))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),X(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new vc;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),X(this,"getInitialValue",function(r){var a=Ma(n.initialValues,r);return r.length?Ic(a):a}),X(this,"setCallbacks",function(r){n.callbacks=r}),X(this,"setValidateMessages",function(r){n.validateMessages=r}),X(this,"setPreserve",function(r){n.preserve=r}),X(this,"watchList",[]),X(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),X(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(a,o,r)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){}),X(this,"updateStore",function(r){n.store=r}),X(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),X(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new vc;return n.getFieldEntities(r).forEach(function(o){var s=o.getNamePath();a.set(s,o)}),a}),X(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var s=kr(o);return a.get(s)||{INVALIDATE_NAME_PATH:kr(o)}})}),X(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,s,u;if(r===!0||Array.isArray(r)?(o=r,s=a):r&&_t(r)==="object"&&(u=r.strict,s=r.filter),o===!0&&!s)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return f.forEach(function(h){var g,v,b="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(u){var x,C;if((x=(C=h).isList)!==null&&x!==void 0&&x.call(C))return}else if(!o&&(g=(v=h).isListField)!==null&&g!==void 0&&g.call(v))return;if(!s)d.push(b);else{var y="getMeta"in h?h.getMeta():null;s(y)&&d.push(b)}}),t2(n.store,d.map(kr))}),X(this,"getFieldValue",function(r){n.warningUnhooked();var a=kr(r);return Ma(n.store,a)}),X(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,s){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:kr(r[s]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(r){n.warningUnhooked();var a=kr(r),o=n.getFieldsError([a])[0];return o.errors}),X(this,"getFieldWarning",function(r){n.warningUnhooked();var a=kr(r),o=n.getFieldsError([a])[0];return o.warnings}),X(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=a[0],u=a[1],f,d=!1;a.length===0?f=null:a.length===1?Array.isArray(s)?(f=s.map(kr),d=!1):(f=null,d=s):(f=s.map(kr),d=u);var h=n.getFieldEntities(!0),g=function(y){return y.isFieldTouched()};if(!f)return d?h.every(function(C){return g(C)||C.isList()}):h.some(g);var v=new vc;f.forEach(function(C){v.set(C,[])}),h.forEach(function(C){var y=C.getNamePath();f.forEach(function(w){w.every(function($,E){return y[E]===$})&&v.update(w,function($){return[].concat(Ae($),[C])})})});var b=function(y){return y.some(g)},x=v.map(function(C){var y=C.value;return y});return d?x.every(b):x.some(b)}),X(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),X(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(s){return s.isFieldValidating()});var o=r.map(kr);return a.some(function(s){var u=s.getNamePath();return Pc(o,u)&&s.isFieldValidating()})}),X(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),X(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new vc,o=n.getFieldEntities(!0);o.forEach(function(f){var d=f.props.initialValue,h=f.getNamePath();if(d!==void 0){var g=a.get(h)||new Set;g.add({entity:f,value:d}),a.set(h,g)}});var s=function(d){d.forEach(function(h){var g=h.props.initialValue;if(g!==void 0){var v=h.getNamePath(),b=n.getInitialValue(v);if(b!==void 0)br(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var x=a.get(v);if(x&&x.size>1)br(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var C=n.getFieldValue(v),y=h.isListField();!y&&(!r.skipExist||C===void 0)&&n.updateStore(mi(n.store,v,Ae(x)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(f){var d=a.get(f);if(d){var h;(h=u).push.apply(h,Ae(Ae(d).map(function(g){return g.entity})))}})):u=o,s(u)}),X(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Ic(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(kr);o.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(mi(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),X(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(s){var u=s.name,f=qt(s,pH),d=kr(u);o.push(d),"value"in f&&n.updateStore(mi(n.store,d,f.value)),n.notifyObservers(a,[d],{type:"setField",data:s})}),n.notifyWatch(o)}),X(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var s=o.getNamePath(),u=o.getMeta(),f=te(te({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return a}),X(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),s=Ma(n.store,o);s===void 0&&n.updateStore(mi(n.store,o,a))}}),X(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),X(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!s||f.length>1)){var d=s?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==d&&n.fieldEntities.every(function(g){return!LN(g.getNamePath(),a)})){var h=n.store;n.updateStore(mi(h,a,d,!0)),n.notifyObservers(h,[a],{type:"remove"}),n.triggerDependenciesUpdate(h,a)}}n.notifyWatch([a])}}),X(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var s=r.namePath,u=r.triggerName;n.validateFields([s],{triggerName:u});break}}}),X(this,"notifyObservers",function(r,a,o){if(n.subscribable){var s=te(te({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,a,s)})}else n.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ae(o))}),o}),X(this,"updateValue",function(r,a){var o=kr(r),s=n.store;n.updateStore(mi(n.store,o,a)),n.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var u=n.triggerDependenciesUpdate(s,o),f=n.callbacks.onValuesChange;if(f){var d=t2(n.store,[o]);f(d,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Ae(u)))}),X(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Ic(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),X(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),X(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],s=new vc;n.getFieldEntities().forEach(function(f){var d=f.props.dependencies;(d||[]).forEach(function(h){var g=kr(h);s.update(g,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(f),v})})});var u=function f(d){var h=s.get(d)||new Set;h.forEach(function(g){if(!a.has(g)){a.add(g);var v=g.getNamePath();g.isFieldDirty()&&v.length&&(o.push(v),f(v))}})};return u(r),o}),X(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var s=n.getFields();if(a){var u=new vc;a.forEach(function(d){var h=d.name,g=d.errors;u.set(h,g)}),s.forEach(function(d){d.errors=u.get(d.name)||d.errors})}var f=s.filter(function(d){var h=d.name;return Pc(r,h)});f.length&&o(f,s)}}),X(this,"validateFields",function(r,a){n.warningUnhooked();var o,s;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,s=a):s=r;var u=!!o,f=u?o.map(kr):[],d=[],h=String(Date.now()),g=new Set,v=s||{},b=v.recursive,x=v.dirty;n.getFieldEntities(!0).forEach(function($){if(u||f.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(x&&!$.isFieldDirty())){var E=$.getNamePath();if(g.add(E.join(h)),!u||Pc(f,E,b)){var I=$.validateRules(te({validateMessages:te(te({},zN),n.validateMessages)},s));d.push(I.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(O){var R,T=[],P=[];return(R=O.forEach)===null||R===void 0||R.call(O,function(N){var k=N.rule.warningOnly,z=N.errors;k?P.push.apply(P,Ae(z)):T.push.apply(T,Ae(z))}),T.length?Promise.reject({name:E,errors:T,warnings:P}):{name:E,errors:T,warnings:P}}))}}});var C=vH(d);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var E=$.map(function(I){var O=I.name;return O});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,$)});var y=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function($){var E=$.filter(function(I){return I&&I.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:E,outOfDate:n.lastValidatePromise!==C})});y.catch(function($){return $});var w=f.filter(function($){return g.has($.join(h))});return n.triggerOnFieldsChange(w),y}),X(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function bS(e){var t=l.useRef(),n=l.useState({}),r=ue(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},s=new bH(o);t.current=s.getForm()}return[t.current]}var W0=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FN=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,s=l.useContext(W0),u=l.useRef({});return l.createElement(W0.Provider,{value:te(te({},s),{},{validateMessages:te(te({},s.validateMessages),n),triggerFormChange:function(d,h){r&&r(d,{changedFields:h,forms:u.current}),s.triggerFormChange(d,h)},triggerFormFinish:function(d,h){a&&a(d,{values:h,forms:u.current}),s.triggerFormFinish(d,h)},registerForm:function(d,h){d&&(u.current=te(te({},u.current),{},X({},d,h))),s.registerForm(d,h)},unregisterForm:function(d){var h=te({},u.current);delete h[d],u.current=h,s.unregisterForm(d)}})},o)},yH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xH=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,s=t.form,u=t.preserve,f=t.children,d=t.component,h=d===void 0?"form":d,g=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,x=t.onValuesChange,C=t.onFieldsChange,y=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,E=qt(t,yH),I=l.useRef(null),O=l.useContext(W0),R=bS(s),T=ue(R,1),P=T[0],N=P.getInternalHooks(ds),k=N.useSubscribe,z=N.setInitialValues,V=N.setCallbacks,B=N.setValidateMessages,L=N.setPreserve,H=N.destroyForm;l.useImperativeHandle(n,function(){return te(te({},P),{},{nativeElement:I.current})}),l.useEffect(function(){return O.registerForm(r,P),function(){O.unregisterForm(r)}},[O,P,r]),B(te(te({},O.validateMessages),g)),V({onValuesChange:x,onFieldsChange:function(W){if(O.triggerFormChange(r,W),C){for(var Q=arguments.length,Z=new Array(Q>1?Q-1:0),ae=1;ae<Q;ae++)Z[ae-1]=arguments[ae];C.apply(void 0,[W].concat(Z))}},onFinish:function(W){O.triggerFormFinish(r,W),y&&y(W)},onFinishFailed:w}),L(u);var j=l.useRef(null);z(a,!j.current),j.current||(j.current=!0),l.useEffect(function(){return function(){return H($)}},[]);var D,F=typeof f=="function";if(F){var U=P.getFieldsValue(!0);D=f(U,P)}else D=f;k(!F);var A=l.useRef();l.useEffect(function(){mH(A.current||[],o||[])||P.setFields(o||[]),A.current=o},[o,P]);var K=l.useMemo(function(){return te(te({},P),{},{validateTrigger:b})},[P,b]),q=l.createElement(ff.Provider,{value:null},l.createElement(Cs.Provider,{value:K},D));return h===!1?q:l.createElement(h,Me({},E,{ref:I,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),P.submit()},onReset:function(W){var Q;W.preventDefault(),P.resetFields(),(Q=E.onReset)===null||Q===void 0||Q.call(E,W)}}),q)};function r2(e){try{return JSON.stringify(e)}catch{return Math.random()}}function VN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],o=a===void 0?{}:a,s=M5(o)?{form:o}:o,u=s.form,f=l.useState(),d=ue(f,2),h=d[0],g=d[1],v=l.useMemo(function(){return r2(h)},[h]),b=l.useRef(v);b.current=v;var x=l.useContext(Cs),C=u||x,y=C&&C._init,w=kr(r),$=l.useRef(w);return $.current=w,l.useEffect(function(){if(y){var E=C.getFieldsValue,I=C.getInternalHooks,O=I(ds),R=O.registerWatch,T=function(z,V){var B=s.preserve?V:z;return typeof r=="function"?r(B):Ma(B,$.current)},P=R(function(k,z){var V=T(k,z),B=r2(V);b.current!==B&&(b.current=B,g(V))}),N=T(E(),E(!0));return h!==N&&g(N),P}},[y]),h}var SH=l.forwardRef(xH),ru=SH;ru.FormProvider=FN;ru.Field=pS;ru.List=HN;ru.useForm=bS;ru.useWatch=VN;const Vo=l.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),KN=l.createContext(null),UN=e=>{const t=tr(e,["prefixCls"]);return l.createElement(FN,Object.assign({},t))},yS=l.createContext({prefixCls:""}),ca=l.createContext({}),CH=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(ca),o=l.useMemo(()=>{const s=Object.assign({},a);return r&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,r,a]);return l.createElement(ca.Provider,{value:o},t)},WN=l.createContext(void 0),jl=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=Se.createElement(CH,{override:!0,status:!0},a)),t&&(a=Se.createElement(tL,null,a)),a};function a2(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function i2(e){const{closable:t,closeIcon:n}=e||{};return Se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function o2(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(a=>{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const wH={};function $H(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wH;const r=i2(e),a=i2(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=Se.useMemo(()=>Object.assign({closeIcon:Se.createElement(eu,null)},n),[n]),u=Se.useMemo(()=>r===!1?!1:r?o2(s,a,r):a===!1?!1:a?o2(s,a):s.closable?s:!1,[r,a,s]);return Se.useMemo(()=>{if(u===!1)return[!1,null,o];const{closeIconRender:f}=s,{closeIcon:d}=u;let h=d;if(h!=null){f&&(h=f(d));const g=sa(u,!0);Object.keys(g).length&&(h=Se.isValidElement(h)?Se.cloneElement(h,g):Se.createElement("span",Object.assign({},g),h))}return[!0,h,o]},[u,s])}var qN=function(t){if(va()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},EH=function(t,n){if(!qN(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function q0(e,t){return!Array.isArray(e)&&t!==void 0?EH(e,t):qN(e)}const Xg=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,s=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=ce({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),f=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ce(t,s,u,n),style:Object.assign(Object.assign({},f),r)})},_H=new Dn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Qg=e=>({height:e,lineHeight:ne(e)}),kc=e=>Object.assign({width:e},Qg(e)),OH=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_H,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),cy=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Qg(e)),IH=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},kc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},kc(a)),[`${t}${t}-sm`]:Object.assign({},kc(o))}},RH=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:s,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},cy(t,u)),[`${r}-lg`]:Object.assign({},cy(a,u)),[`${r}-sm`]:Object.assign({},cy(o,u))}},l2=e=>Object.assign({width:e},Qg(e)),NH=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},l2(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},l2(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},uy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},dy=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Qg(e)),MH=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:s,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},dy(r,u))},uy(e,r,n)),{[`${n}-lg`]:Object.assign({},dy(a,u))}),uy(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},dy(o,u))}),uy(e,o,`${n}-sm`))},jH=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:s,skeletonImageCls:u,controlHeight:f,controlHeightLG:d,controlHeightSM:h,gradientFromColor:g,padding:v,marginSM:b,borderRadius:x,titleHeight:C,blockRadius:y,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},kc(f)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},kc(d)),[`${n}-sm`]:Object.assign({},kc(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:y,[`+ ${a}`]:{marginBlockStart:h}},[a]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:g,borderRadius:y,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},MH(e)),IH(e)),RH(e)),NH(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${a} > li,
        ${n},
        ${o},
        ${s},
        ${u}
      `]:Object.assign({},OH(e))}}},TH=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},au=Kn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=yn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[jH(r)]},TH,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),DH=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:s="default"}=e,{getPrefixCls:u}=l.useContext(Yt),f=u("skeleton",t),[d,h,g]=au(f),v=tr(e,["prefixCls","className"]),b=ce(f,`${f}-element`,{[`${f}-active`]:a},n,r,h,g);return d(l.createElement("div",{className:b},l.createElement(Xg,Object.assign({prefixCls:`${f}-avatar`,shape:o,size:s},v))))},PH=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:s="default"}=e,{getPrefixCls:u}=l.useContext(Yt),f=u("skeleton",t),[d,h,g]=au(f),v=tr(e,["prefixCls"]),b=ce(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},n,r,h,g);return d(l.createElement("div",{className:b},l.createElement(Xg,Object.assign({prefixCls:`${f}-button`,size:s},v))))},kH="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",AH=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:s}=l.useContext(Yt),u=s("skeleton",t),[f,d,h]=au(u),g=ce(u,`${u}-element`,{[`${u}-active`]:o},n,r,d,h);return f(l.createElement("div",{className:g},l.createElement("div",{className:ce(`${u}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:kH,className:`${u}-image-path`})))))},zH=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:s="default"}=e,{getPrefixCls:u}=l.useContext(Yt),f=u("skeleton",t),[d,h,g]=au(f),v=tr(e,["prefixCls"]),b=ce(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},n,r,h,g);return d(l.createElement("div",{className:b},l.createElement(Xg,Object.assign({prefixCls:`${f}-input`,size:s},v))))},LH=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:s}=e,{getPrefixCls:u}=l.useContext(Yt),f=u("skeleton",t),[d,h,g]=au(f),v=ce(f,`${f}-element`,{[`${f}-active`]:o},h,n,r,g);return d(l.createElement("div",{className:v},l.createElement("div",{className:ce(`${f}-image`,n),style:a},s)))},HH=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},BH=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((s,u)=>l.createElement("li",{key:u,style:{width:HH(u,e)}}));return l.createElement("ul",{className:ce(t,n),style:r},o)},FH=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ce(t,n),style:Object.assign({width:r},a)})};function fy(e){return e&&typeof e=="object"?e:{}}function VH(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function KH(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function UH(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const iu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:s,avatar:u=!1,title:f=!0,paragraph:d=!0,active:h,round:g}=e,{getPrefixCls:v,direction:b,className:x,style:C}=Ia("skeleton"),y=v("skeleton",t),[w,$,E]=au(y);if(n||!("loading"in e)){const I=!!u,O=!!f,R=!!d;let T;if(I){const k=Object.assign(Object.assign({prefixCls:`${y}-avatar`},VH(O,R)),fy(u));T=l.createElement("div",{className:`${y}-header`},l.createElement(Xg,Object.assign({},k)))}let P;if(O||R){let k;if(O){const V=Object.assign(Object.assign({prefixCls:`${y}-title`},KH(I,R)),fy(f));k=l.createElement(FH,Object.assign({},V))}let z;if(R){const V=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},UH(I,O)),fy(d));z=l.createElement(BH,Object.assign({},V))}P=l.createElement("div",{className:`${y}-content`},k,z)}const N=ce(y,{[`${y}-with-avatar`]:I,[`${y}-active`]:h,[`${y}-rtl`]:b==="rtl",[`${y}-round`]:g},x,r,a,$,E);return w(l.createElement("div",{className:N,style:Object.assign(Object.assign({},C),o)},T,P))}return s??null};iu.Button=PH;iu.Avatar=DH;iu.Input=zH;iu.Image=AH;iu.Node=LH;const WH=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},qH=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},YH=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let s=a;s>=0;s--)s===0?(o[`${r}${t}-${s}`]={display:"none"},o[`${r}-push-${s}`]={insetInlineStart:"auto"},o[`${r}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${s}`]={marginInlineStart:0},o[`${r}${t}-order-${s}`]={order:0}):(o[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/a*100}%`,maxWidth:`${s/a*100}%`}],o[`${r}${t}-push-${s}`]={insetInlineStart:`${s/a*100}%`},o[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/a*100}%`},o[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/a*100}%`},o[`${r}${t}-order-${s}`]={order:s});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},Y0=(e,t)=>YH(e,t),GH=(e,t,n)=>({[`@media (min-width: ${ne(t)})`]:Object.assign({},Y0(e,n))}),XH=()=>({}),QH=()=>({}),ZH=Kn("Grid",WH,XH),JH=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),eB=Kn("Grid",e=>{const t=yn(e,{gridColumns:24}),n=JH(t);return delete n.xs,[qH(t),Y0(t,""),Y0(t,"-xs"),Object.keys(n).map(r=>GH(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},QH),tB=Se.createContext({});function nB(e){return t=>l.createElement(qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const Zg=(e,t,n,r,a)=>nB(s=>{const{prefixCls:u,style:f}=s,d=l.useRef(null),[h,g]=l.useState(0),[v,b]=l.useState(0),[x,C]=Wn(!1,{value:s.open}),{getPrefixCls:y}=l.useContext(Yt),w=y(r||"select",u);l.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(R=>{const T=R[0].target;g(T.offsetHeight+8),b(T.offsetWidth)}),O=setInterval(()=>{var R;const T=a?`.${a(w)}`:`.${w}-dropdown`,P=(R=d.current)===null||R===void 0?void 0:R.querySelector(T);P&&(clearInterval(O),I.observe(P))},10);return()=>{clearInterval(O),I.disconnect()}}},[]);let $=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},f),{margin:0}),open:x,visible:x,getPopupContainer:()=>d.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const E={paddingBottom:h,position:"relative",minWidth:v};return l.createElement("div",{ref:d,style:E},l.createElement(e,Object.assign({},$)))}),Jg=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var ev=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,s=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(h){h.preventDefault(),s==null||s(h)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:ce(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},o))},rB=function(t,n,r,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,d=Se.useMemo(function(){if(_t(a)==="object")return a.clearIcon;if(o)return o},[a,o]),h=Se.useMemo(function(){return!!(!s&&a&&(r.length||u)&&!(f==="combobox"&&u===""))},[a,s,r.length,u,f]);return{allowClear:h,clearIcon:Se.createElement(ev,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},YN=l.createContext(null);function aB(){return l.useContext(YN)}function iB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=ue(t,2),r=n[0],a=n[1],o=l.useRef(null),s=function(){window.clearTimeout(o.current)};l.useEffect(function(){return s},[]);var u=function(d,h){s(),o.current=window.setTimeout(function(){a(d),h&&h()},e)};return[r,u,s]}function GN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function oB(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(s){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=s.target;f.shadowRoot&&s.composed&&(f=s.composedPath()[0]||f),a.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(f)&&d!==f})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function lB(e){return e&&![It.ESC,It.SHIFT,It.BACKSPACE,It.TAB,It.WIN_KEY,It.ALT,It.META,It.WIN_KEY_RIGHT,It.CTRL,It.SEMICOLON,It.EQUALS,It.CAPS_LOCK,It.CONTEXT_MENU,It.F1,It.F2,It.F3,It.F4,It.F5,It.F6,It.F7,It.F8,It.F9,It.F10,It.F11,It.F12].includes(e)}var sB=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pc=void 0;function cB(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,s=e.responsive,u=e.responsiveDisabled,f=e.registerSize,d=e.itemKey,h=e.className,g=e.style,v=e.children,b=e.display,x=e.order,C=e.component,y=C===void 0?"div":C,w=qt(e,sB),$=s&&!b;function E(P){f(d,P)}l.useEffect(function(){return function(){E(null)}},[]);var I=o&&a!==pc?o(a,{index:x}):v,O;r||(O={opacity:$?0:1,height:$?0:pc,overflowY:$?"hidden":pc,order:s?x:pc,pointerEvents:$?"none":pc,position:$?"absolute":pc});var R={};$&&(R["aria-hidden"]=!0);var T=l.createElement(y,Me({className:ce(!r&&n,h),style:te(te({},O),g)},R,w,{ref:t}),I);return s&&(T=l.createElement(ga,{onResize:function(N){var k=N.offsetWidth;E(k)},disabled:u},T)),T}var Fd=l.forwardRef(cB);Fd.displayName="Item";function uB(e){if(typeof MessageChannel>"u")un(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function dB(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],uB(function(){Pi.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function vd(e,t){var n=l.useState(t),r=ue(n,2),a=r[0],o=r[1],s=pn(function(u){e(function(){o(u)})});return[a,s]}var cg=Se.createContext(null),fB=["component"],mB=["className"],hB=["className"],gB=function(t,n){var r=l.useContext(cg);if(!r){var a=t.component,o=a===void 0?"div":a,s=qt(t,fB);return l.createElement(o,Me({},s,{ref:n}))}var u=r.className,f=qt(r,mB),d=t.className,h=qt(t,hB);return l.createElement(cg.Provider,{value:null},l.createElement(Fd,Me({ref:n,className:ce(u,d)},f,h)))},XN=l.forwardRef(gB);XN.displayName="RawItem";var vB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QN="responsive",ZN="invalidate";function pB(e){return"+ ".concat(e.length," ...")}function bB(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,s=e.renderItem,u=e.renderRawItem,f=e.itemKey,d=e.itemWidth,h=d===void 0?10:d,g=e.ssr,v=e.style,b=e.className,x=e.maxCount,C=e.renderRest,y=e.renderRawRest,w=e.suffix,$=e.component,E=$===void 0?"div":$,I=e.itemComponent,O=e.onVisibleChange,R=qt(e,vB),T=g==="full",P=dB(),N=vd(P,null),k=ue(N,2),z=k[0],V=k[1],B=z||0,L=vd(P,new Map),H=ue(L,2),j=H[0],D=H[1],F=vd(P,0),U=ue(F,2),A=U[0],K=U[1],q=vd(P,0),Y=ue(q,2),W=Y[0],Q=Y[1],Z=vd(P,0),ae=ue(Z,2),J=ae[0],se=ae[1],he=l.useState(null),oe=ue(he,2),le=oe[0],ie=oe[1],de=l.useState(null),ge=ue(de,2),me=ge[0],xe=ge[1],Ee=l.useMemo(function(){return me===null&&T?Number.MAX_SAFE_INTEGER:me||0},[me,z]),He=l.useState(!1),je=ue(He,2),ve=je[0],$e=je[1],we="".concat(r,"-item"),Re=Math.max(A,W),ze=x===QN,De=o.length&&ze,Ye=x===ZN,Xe=De||typeof x=="number"&&o.length>x,Le=l.useMemo(function(){var dt=o;return De?z===null&&T?dt=o:dt=o.slice(0,Math.min(o.length,B/h)):typeof x=="number"&&(dt=o.slice(0,x)),dt},[o,h,z,x,De]),Ke=l.useMemo(function(){return De?o.slice(Ee+1):o.slice(Le.length)},[o,Le,De,Ee]),Fe=l.useCallback(function(dt,lt){var nt;return typeof f=="function"?f(dt):(nt=f&&(dt==null?void 0:dt[f]))!==null&&nt!==void 0?nt:lt},[f]),Ie=l.useCallback(s||function(dt){return dt},[s]);function Ue(dt,lt,nt){me===dt&&(lt===void 0||lt===le)||(xe(dt),nt||($e(dt<o.length-1),O==null||O(dt)),lt!==void 0&&ie(lt))}function ye(dt,lt){V(lt.clientWidth)}function Ce(dt,lt){D(function(nt){var Pt=new Map(nt);return lt===null?Pt.delete(dt):Pt.set(dt,lt),Pt})}function _e(dt,lt){Q(lt),K(W)}function be(dt,lt){se(lt)}function ke(dt){return j.get(Fe(Le[dt],dt))}hn(function(){if(B&&typeof Re=="number"&&Le){var dt=J,lt=Le.length,nt=lt-1;if(!lt){Ue(0,null);return}for(var Pt=0;Pt<lt;Pt+=1){var bt=ke(Pt);if(T&&(bt=bt||0),bt===void 0){Ue(Pt-1,void 0,!0);break}if(dt+=bt,nt===0&&dt<=B||Pt===nt-1&&dt+ke(nt)<=B){Ue(nt,null);break}else if(dt+Re>B){Ue(Pt-1,dt-bt-J+W);break}}w&&ke(0)+J>B&&ie(null)}},[B,j,W,J,Fe,Le]);var st=ve&&!!Ke.length,Dt={};le!==null&&De&&(Dt={position:"absolute",left:le,top:0});var Wt={prefixCls:we,responsive:De,component:I,invalidate:Ye},Je=u?function(dt,lt){var nt=Fe(dt,lt);return l.createElement(cg.Provider,{key:nt,value:te(te({},Wt),{},{order:lt,item:dt,itemKey:nt,registerSize:Ce,display:lt<=Ee})},u(dt,lt))}:function(dt,lt){var nt=Fe(dt,lt);return l.createElement(Fd,Me({},Wt,{order:lt,key:nt,item:dt,renderItem:Ie,itemKey:nt,registerSize:Ce,display:lt<=Ee}))},ct={order:st?Ee:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:_e,display:st},$t=C||pB,ot=y?l.createElement(cg.Provider,{value:te(te({},Wt),ct)},y(Ke)):l.createElement(Fd,Me({},Wt,ct),typeof $t=="function"?$t(Ke):$t),gt=l.createElement(E,Me({className:ce(!Ye&&r,b),style:v,ref:t},R),Le.map(Je),Xe?ot:null,w&&l.createElement(Fd,Me({},Wt,{responsive:ze,responsiveDisabled:!De,order:Ee,className:"".concat(we,"-suffix"),registerSize:be,display:!0,style:Dt}),w));return ze?l.createElement(ga,{onResize:ye,disabled:!De},gt):gt}var Di=l.forwardRef(bB);Di.displayName="Overflow";Di.Item=XN;Di.RESPONSIVE=QN;Di.INVALIDATE=ZN;var yB=function(t,n){var r,a=t.prefixCls,o=t.id,s=t.inputElement,u=t.disabled,f=t.tabIndex,d=t.autoFocus,h=t.autoComplete,g=t.editable,v=t.activeDescendantId,b=t.value,x=t.maxLength,C=t.onKeyDown,y=t.onMouseDown,w=t.onChange,$=t.onPaste,E=t.onCompositionStart,I=t.onCompositionEnd,O=t.onBlur,R=t.open,T=t.attrs,P=s||l.createElement("input",null),N=P,k=N.ref,z=N.props,V=z.onKeyDown,B=z.onChange,L=z.onMouseDown,H=z.onCompositionStart,j=z.onCompositionEnd,D=z.onBlur,F=z.style;return"maxLength"in P.props,P=l.cloneElement(P,te(te(te({type:"search"},z),{},{id:o,ref:xa(n,k),disabled:u,tabIndex:f,autoComplete:h||"off",autoFocus:d,className:ce("".concat(a,"-selection-search-input"),(r=P)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":R?v:void 0},T),{},{value:g?b:"",maxLength:x,readOnly:!g,unselectable:g?null:"on",style:te(te({},F),{},{opacity:g?null:0}),onKeyDown:function(A){C(A),V&&V(A)},onMouseDown:function(A){y(A),L&&L(A)},onChange:function(A){w(A),B&&B(A)},onCompositionStart:function(A){E(A),H&&H(A)},onCompositionEnd:function(A){I(A),j&&j(A)},onPaste:$,onBlur:function(A){O(A),D&&D(A)}})),P},JN=l.forwardRef(yB);function eM(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var xB=typeof window<"u"&&window.document&&window.document.documentElement,SB=xB;function CB(e){return e!=null}function wB(e){return!e&&e!==0}function s2(e){return["string","number"].includes(_t(e))}function tM(e){var t=void 0;return e&&(s2(e.title)?t=e.title.toString():s2(e.label)&&(t=e.label.toString())),t}function $B(e,t){SB?l.useLayoutEffect(e,t):l.useEffect(e,t)}function EB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var c2=function(t){t.preventDefault(),t.stopPropagation()},_B=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,s=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,d=t.placeholder,h=t.disabled,g=t.mode,v=t.showSearch,b=t.autoFocus,x=t.autoComplete,C=t.activeDescendantId,y=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,E=t.maxTagTextLength,I=t.maxTagPlaceholder,O=I===void 0?function(de){return"+ ".concat(de.length," ...")}:I,R=t.tagRender,T=t.onToggleOpen,P=t.onRemove,N=t.onInputChange,k=t.onInputPaste,z=t.onInputKeyDown,V=t.onInputMouseDown,B=t.onInputCompositionStart,L=t.onInputCompositionEnd,H=t.onInputBlur,j=l.useRef(null),D=l.useState(0),F=ue(D,2),U=F[0],A=F[1],K=l.useState(!1),q=ue(K,2),Y=q[0],W=q[1],Q="".concat(r,"-selection"),Z=o||g==="multiple"&&u===!1||g==="tags"?s:"",ae=g==="tags"||g==="multiple"&&u===!1||v&&(o||Y);$B(function(){A(j.current.scrollWidth)},[Z]);var J=function(ge,me,xe,Ee,He){return l.createElement("span",{title:tM(ge),className:ce("".concat(Q,"-item"),X({},"".concat(Q,"-item-disabled"),xe))},l.createElement("span",{className:"".concat(Q,"-item-content")},me),Ee&&l.createElement(ev,{className:"".concat(Q,"-item-remove"),onMouseDown:c2,onClick:He,customizeIcon:w},"×"))},se=function(ge,me,xe,Ee,He,je){var ve=function(we){c2(we),T(!o)};return l.createElement("span",{onMouseDown:ve},R({label:me,value:ge,disabled:xe,closable:Ee,onClose:He,isMaxTag:!!je}))},he=function(ge){var me=ge.disabled,xe=ge.label,Ee=ge.value,He=!h&&!me,je=xe;if(typeof E=="number"&&(typeof xe=="string"||typeof xe=="number")){var ve=String(je);ve.length>E&&(je="".concat(ve.slice(0,E),"..."))}var $e=function(Re){Re&&Re.stopPropagation(),P(ge)};return typeof R=="function"?se(Ee,je,me,He,$e):J(ge,je,me,He,$e)},oe=function(ge){if(!a.length)return null;var me=typeof O=="function"?O(ge):O;return typeof R=="function"?se(void 0,me,!1,!1,void 0,!0):J({title:me},me,!1)},le=l.createElement("div",{className:"".concat(Q,"-search"),style:{width:U},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},l.createElement(JN,{ref:f,open:o,prefixCls:r,id:n,inputElement:null,disabled:h,autoFocus:b,autoComplete:x,editable:ae,activeDescendantId:C,value:Z,onKeyDown:z,onMouseDown:V,onChange:N,onPaste:k,onCompositionStart:B,onCompositionEnd:L,onBlur:H,tabIndex:y,attrs:sa(t,!0)}),l.createElement("span",{ref:j,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0},Z," ")),ie=l.createElement(Di,{prefixCls:"".concat(Q,"-overflow"),data:a,renderItem:he,renderRest:oe,suffix:le,itemKey:EB,maxCount:$});return l.createElement("span",{className:"".concat(Q,"-wrap")},ie,!a.length&&!Z&&l.createElement("span",{className:"".concat(Q,"-placeholder")},d))},OB=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,s=t.disabled,u=t.autoFocus,f=t.autoComplete,d=t.activeDescendantId,h=t.mode,g=t.open,v=t.values,b=t.placeholder,x=t.tabIndex,C=t.showSearch,y=t.searchValue,w=t.activeValue,$=t.maxLength,E=t.onInputKeyDown,I=t.onInputMouseDown,O=t.onInputChange,R=t.onInputPaste,T=t.onInputCompositionStart,P=t.onInputCompositionEnd,N=t.onInputBlur,k=t.title,z=l.useState(!1),V=ue(z,2),B=V[0],L=V[1],H=h==="combobox",j=H||C,D=v[0],F=y||"";H&&w&&!B&&(F=w),l.useEffect(function(){H&&L(!1)},[H,w]);var U=h!=="combobox"&&!g&&!C?!1:!!F,A=k===void 0?tM(D):k,K=l.useMemo(function(){return D?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:U?{visibility:"hidden"}:void 0},b)},[D,U,b,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(JN,{ref:o,prefixCls:r,id:a,open:g,inputElement:n,disabled:s,autoFocus:u,autoComplete:f,editable:j,activeDescendantId:d,value:F,onKeyDown:E,onMouseDown:I,onChange:function(Y){L(!0),O(Y)},onPaste:R,onCompositionStart:T,onCompositionEnd:P,onBlur:N,tabIndex:x,attrs:sa(t,!0),maxLength:H?$:void 0})),!H&&D?l.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:U?{visibility:"hidden"}:void 0},D.label):null,K)},IB=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,s=t.open,u=t.mode,f=t.showSearch,d=t.tokenWithEnter,h=t.disabled,g=t.prefix,v=t.autoClearSearchValue,b=t.onSearch,x=t.onSearchSubmit,C=t.onToggleOpen,y=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(A){r.current.focus(A)},blur:function(){r.current.blur()}}});var E=GN(0),I=ue(E,2),O=I[0],R=I[1],T=function(A){var K=A.which,q=r.current instanceof HTMLTextAreaElement;!q&&s&&(K===It.UP||K===It.DOWN)&&A.preventDefault(),y&&y(A),K===It.ENTER&&u==="tags"&&!a.current&&!s&&(x==null||x(A.target.value)),!(q&&!s&&~[It.UP,It.DOWN,It.LEFT,It.RIGHT].indexOf(K))&&lB(K)&&C(!0)},P=function(){R(!0)},N=l.useRef(null),k=function(A){b(A,!0,a.current)!==!1&&C(!0)},z=function(){a.current=!0},V=function(A){a.current=!1,u!=="combobox"&&k(A.target.value)},B=function(A){var K=A.target.value;if(d&&N.current&&/[\r\n]/.test(N.current)){var q=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(q,N.current)}N.current=null,k(K)},L=function(A){var K=A.clipboardData,q=K==null?void 0:K.getData("text");N.current=q||""},H=function(A){var K=A.target;if(K!==r.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(A){var K=O();A.target!==r.current&&!K&&!(u==="combobox"&&h)&&A.preventDefault(),(u!=="combobox"&&(!f||!K)||!s)&&(s&&v!==!1&&b("",!0,!1),C())},D={inputRef:r,onInputKeyDown:T,onInputMouseDown:P,onInputChange:B,onInputPaste:L,onInputCompositionStart:z,onInputCompositionEnd:V,onInputBlur:w},F=u==="multiple"||u==="tags"?l.createElement(_B,Me({},t,D)):l.createElement(OB,Me({},t,D));return l.createElement("div",{ref:$,className:"".concat(o,"-selector"),onClick:H,onMouseDown:j},g&&l.createElement("div",{className:"".concat(o,"-prefix")},g),F)},RB=l.forwardRef(IB);function NB(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},s=o.className,u=o.content,f=a.x,d=f===void 0?0:f,h=a.y,g=h===void 0?0:h,v=l.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],C=n.points[1],y=x[0],w=x[1],$=C[0],E=C[1];y===$||!["t","b"].includes(y)?b.top=g:y==="t"?b.top=0:b.bottom=0,w===E||!["l","r"].includes(w)?b.left=d:w==="l"?b.left=0:b.right=0}return l.createElement("div",{ref:v,className:ce("".concat(t,"-arrow"),s),style:b},u)}function MB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(xi,Me({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return l.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),u)})}):null}var jB=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),TB=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,s=e.target,u=e.onVisibleChanged,f=e.open,d=e.keepDom,h=e.fresh,g=e.onClick,v=e.mask,b=e.arrow,x=e.arrowPos,C=e.align,y=e.motion,w=e.maskMotion,$=e.forceRender,E=e.getPopupContainer,I=e.autoDestroy,O=e.portal,R=e.zIndex,T=e.onMouseEnter,P=e.onMouseLeave,N=e.onPointerEnter,k=e.onPointerDownCapture,z=e.ready,V=e.offsetX,B=e.offsetY,L=e.offsetR,H=e.offsetB,j=e.onAlign,D=e.onPrepare,F=e.stretch,U=e.targetWidth,A=e.targetHeight,K=typeof n=="function"?n():n,q=f||d,Y=(E==null?void 0:E.length)>0,W=l.useState(!E||!Y),Q=ue(W,2),Z=Q[0],ae=Q[1];if(hn(function(){!Z&&Y&&s&&ae(!0)},[Z,Y,s]),!Z)return null;var J="auto",se={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(z||!f){var he,oe=C.points,le=C.dynamicInset||((he=C._experimental)===null||he===void 0?void 0:he.dynamicInset),ie=le&&oe[0][1]==="r",de=le&&oe[0][0]==="b";ie?(se.right=L,se.left=J):(se.left=V,se.right=J),de?(se.bottom=H,se.top=J):(se.top=B,se.bottom=J)}var ge={};return F&&(F.includes("height")&&A?ge.height=A:F.includes("minHeight")&&A&&(ge.minHeight=A),F.includes("width")&&U?ge.width=U:F.includes("minWidth")&&U&&(ge.minWidth=U)),f||(ge.pointerEvents="none"),l.createElement(O,{open:$||q,getContainer:E&&function(){return E(s)},autoDestroy:I},l.createElement(MB,{prefixCls:a,open:f,zIndex:R,mask:v,motion:w}),l.createElement(ga,{onResize:j,disabled:!f},function(me){return l.createElement(xi,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:f,onVisibleChanged:function(Ee){var He;y==null||(He=y.onVisibleChanged)===null||He===void 0||He.call(y,Ee),u(Ee)}}),function(xe,Ee){var He=xe.className,je=xe.style,ve=ce(a,He,r);return l.createElement("div",{ref:xa(me,t,Ee),className:ve,style:te(te(te(te({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},se),ge),je),{},{boxSizing:"border-box",zIndex:R},o),onMouseEnter:T,onMouseLeave:P,onPointerEnter:N,onClick:g,onPointerDownCapture:k},b&&l.createElement(NB,{prefixCls:a,arrow:b,arrowPos:x,align:C}),l.createElement(jB,{cache:!f&&!h},K))})}))}),DB=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=ki(n),o=l.useCallback(function(u){Jd(t,r?r(u):u)},[r]),s=Pl(o,kl(n));return a?l.cloneElement(n,{ref:s}):n}),u2=l.createContext(null);function d2(e){return e?Array.isArray(e)?e:[e]:[]}function PB(e,t,n,r){return l.useMemo(function(){var a=d2(n??t),o=d2(r??t),s=new Set(a),u=new Set(o);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,n,r])}function kB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function AB(e,t,n,r){for(var a=n.points,o=Object.keys(e),s=0;s<o.length;s+=1){var u,f=o[s];if(kB((u=e[f])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(f)}return""}function f2(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Mf(e){return e.ownerDocument.defaultView}function G0(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Mf(n).getComputedStyle(n),o=a.overflowX,s=a.overflowY,u=a.overflow;[o,s,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function mf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function pd(e){return mf(parseFloat(e),0)}function m2(e,t){var n=te({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Mf(r).getComputedStyle(r),o=a.overflow,s=a.overflowClipMargin,u=a.borderTopWidth,f=a.borderBottomWidth,d=a.borderLeftWidth,h=a.borderRightWidth,g=r.getBoundingClientRect(),v=r.offsetHeight,b=r.clientHeight,x=r.offsetWidth,C=r.clientWidth,y=pd(u),w=pd(f),$=pd(d),E=pd(h),I=mf(Math.round(g.width/x*1e3)/1e3),O=mf(Math.round(g.height/v*1e3)/1e3),R=(x-C-$-E)*I,T=(v-b-y-w)*O,P=y*O,N=w*O,k=$*I,z=E*I,V=0,B=0;if(o==="clip"){var L=pd(s);V=L*I,B=L*O}var H=g.x+k-V,j=g.y+P-B,D=H+g.width+2*V-k-z-R,F=j+g.height+2*B-P-N-T;n.left=Math.max(n.left,H),n.top=Math.max(n.top,j),n.right=Math.min(n.right,D),n.bottom=Math.min(n.bottom,F)}}),n}function h2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function g2(e,t){var n=t||[],r=ue(n,2),a=r[0],o=r[1];return[h2(e.width,a),h2(e.height,o)]}function v2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function bc(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function bl(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function zB(e,t,n,r,a,o,s){var u=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),f=ue(u,2),d=f[0],h=f[1],g=l.useRef(0),v=l.useMemo(function(){return t?G0(t):[]},[t]),b=l.useRef({}),x=function(){b.current={}};e||x();var C=pn(function(){if(t&&n&&e){let sn=function(Gr,Hr){var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Re,na=W.x+Gr,$i=W.y+Hr,Bl=na+ie,As=$i+le,fo=Math.max(na,Rr.left),Lt=Math.max($i,Rr.top),ln=Math.min(Bl,Rr.right),Jn=Math.min(As,Rr.bottom);return Math.max(0,(ln-fo)*(Jn-Lt))},xn=function(){Jt=W.y+nt,on=Jt+le,Ut=W.x+lt,gn=Ut+ie};var $,E,I,O,R=t,T=R.ownerDocument,P=Mf(R),N=P.getComputedStyle(R),k=N.width,z=N.height,V=N.position,B=R.style.left,L=R.style.top,H=R.style.right,j=R.style.bottom,D=R.style.overflow,F=te(te({},a[r]),o),U=T.createElement("div");($=R.parentElement)===null||$===void 0||$.appendChild(U),U.style.left="".concat(R.offsetLeft,"px"),U.style.top="".concat(R.offsetTop,"px"),U.style.position=V,U.style.height="".concat(R.offsetHeight,"px"),U.style.width="".concat(R.offsetWidth,"px"),R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var K,q,Y=n.getBoundingClientRect();Y.x=(K=Y.x)!==null&&K!==void 0?K:Y.left,Y.y=(q=Y.y)!==null&&q!==void 0?q:Y.top,A={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var W=R.getBoundingClientRect();W.x=(E=W.x)!==null&&E!==void 0?E:W.left,W.y=(I=W.y)!==null&&I!==void 0?I:W.top;var Q=T.documentElement,Z=Q.clientWidth,ae=Q.clientHeight,J=Q.scrollWidth,se=Q.scrollHeight,he=Q.scrollTop,oe=Q.scrollLeft,le=W.height,ie=W.width,de=A.height,ge=A.width,me={left:0,top:0,right:Z,bottom:ae},xe={left:-oe,top:-he,right:J-oe,bottom:se-he},Ee=F.htmlRegion,He="visible",je="visibleFirst";Ee!=="scroll"&&Ee!==je&&(Ee=He);var ve=Ee===je,$e=m2(xe,v),we=m2(me,v),Re=Ee===He?we:$e,ze=ve?we:Re;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";var De=R.getBoundingClientRect();R.style.left=B,R.style.top=L,R.style.right=H,R.style.bottom=j,R.style.overflow=D,(O=R.parentElement)===null||O===void 0||O.removeChild(U);var Ye=mf(Math.round(ie/parseFloat(k)*1e3)/1e3),Xe=mf(Math.round(le/parseFloat(z)*1e3)/1e3);if(Ye===0||Xe===0||Zd(n)&&!nu(n))return;var Le=F.offset,Ke=F.targetOffset,Fe=g2(W,Le),Ie=ue(Fe,2),Ue=Ie[0],ye=Ie[1],Ce=g2(A,Ke),_e=ue(Ce,2),be=_e[0],ke=_e[1];A.x-=be,A.y-=ke;var st=F.points||[],Dt=ue(st,2),Wt=Dt[0],Je=Dt[1],ct=v2(Je),$t=v2(Wt),ot=bc(A,ct),gt=bc(W,$t),dt=te({},F),lt=ot.x-gt.x+Ue,nt=ot.y-gt.y+ye,Pt=sn(lt,nt),bt=sn(lt,nt,we),Ge=bc(A,["t","l"]),tt=bc(W,["t","l"]),Mt=bc(A,["b","r"]),At=bc(W,["b","r"]),Ot=F.overflow||{},Ht=Ot.adjustX,wt=Ot.adjustY,xt=Ot.shiftX,Tt=Ot.shiftY,Vt=function(Hr){return typeof Hr=="boolean"?Hr:Hr>=0},Jt,on,Ut,gn;xn();var $n=Vt(wt),En=$t[0]===ct[0];if($n&&$t[0]==="t"&&(on>ze.bottom||b.current.bt)){var at=nt;En?at-=le-de:at=Ge.y-At.y-ye;var Rt=sn(lt,at),mt=sn(lt,at,we);Rt>Pt||Rt===Pt&&(!ve||mt>=bt)?(b.current.bt=!0,nt=at,ye=-ye,dt.points=[bl($t,0),bl(ct,0)]):b.current.bt=!1}if($n&&$t[0]==="b"&&(Jt<ze.top||b.current.tb)){var it=nt;En?it+=le-de:it=Mt.y-tt.y-ye;var Bt=sn(lt,it),tn=sn(lt,it,we);Bt>Pt||Bt===Pt&&(!ve||tn>=bt)?(b.current.tb=!0,nt=it,ye=-ye,dt.points=[bl($t,0),bl(ct,0)]):b.current.tb=!1}var bn=Vt(Ht),On=$t[1]===ct[1];if(bn&&$t[1]==="l"&&(gn>ze.right||b.current.rl)){var kt=lt;On?kt-=ie-ge:kt=Ge.x-At.x-Ue;var Ft=sn(kt,nt),nn=sn(kt,nt,we);Ft>Pt||Ft===Pt&&(!ve||nn>=bt)?(b.current.rl=!0,lt=kt,Ue=-Ue,dt.points=[bl($t,1),bl(ct,1)]):b.current.rl=!1}if(bn&&$t[1]==="r"&&(Ut<ze.left||b.current.lr)){var Nn=lt;On?Nn+=ie-ge:Nn=Mt.x-tt.x-Ue;var hr=sn(Nn,nt),Ur=sn(Nn,nt,we);hr>Pt||hr===Pt&&(!ve||Ur>=bt)?(b.current.lr=!0,lt=Nn,Ue=-Ue,dt.points=[bl($t,1),bl(ct,1)]):b.current.lr=!1}xn();var gr=xt===!0?0:xt;typeof gr=="number"&&(Ut<we.left&&(lt-=Ut-we.left-Ue,A.x+ge<we.left+gr&&(lt+=A.x-we.left+ge-gr)),gn>we.right&&(lt-=gn-we.right-Ue,A.x>we.right-gr&&(lt+=A.x-we.right+gr)));var Bn=Tt===!0?0:Tt;typeof Bn=="number"&&(Jt<we.top&&(nt-=Jt-we.top-ye,A.y+de<we.top+Bn&&(nt+=A.y-we.top+de-Bn)),on>we.bottom&&(nt-=on-we.bottom-ye,A.y>we.bottom-Bn&&(nt+=A.y-we.bottom+Bn)));var Wr=W.x+lt,qr=Wr+ie,ir=W.y+nt,Yr=ir+le,Sn=A.x,zt=Sn+ge,vt=A.y,_n=vt+de,jt=Math.max(Wr,Sn),Nt=Math.min(qr,zt),dn=(jt+Nt)/2,Yn=dn-Wr,or=Math.max(ir,vt),lr=Math.min(Yr,_n),Ir=(or+lr)/2,Mr=Ir-ir;s==null||s(t,dt);var St=De.right-W.x-(lt+W.width),ut=De.bottom-W.y-(nt+W.height);Ye===1&&(lt=Math.round(lt),St=Math.round(St)),Xe===1&&(nt=Math.round(nt),ut=Math.round(ut));var en={ready:!0,offsetX:lt/Ye,offsetY:nt/Xe,offsetR:St/Ye,offsetB:ut/Xe,arrowX:Yn/Ye,arrowY:Mr/Xe,scaleX:Ye,scaleY:Xe,align:dt};h(en)}}),y=function(){g.current+=1;var E=g.current;Promise.resolve().then(function(){g.current===E&&C()})},w=function(){h(function(E){return te(te({},E),{},{ready:!1})})};return hn(w,[r]),hn(function(){e||w()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,y]}function LB(e,t,n,r,a){hn(function(){if(e&&t&&n){let g=function(){r(),a()};var o=t,s=n,u=G0(o),f=G0(s),d=Mf(s),h=new Set([d].concat(Ae(u),Ae(f)));return h.forEach(function(v){v.addEventListener("scroll",g,{passive:!0})}),d.addEventListener("resize",g,{passive:!0}),r(),function(){h.forEach(function(v){v.removeEventListener("scroll",g),d.removeEventListener("resize",g)})}}},[e,t,n])}function HB(e,t,n,r,a,o,s,u){var f=l.useRef(e);f.current=e;var d=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!a||o)){var g=function(){d.current=!1},v=function(y){var w;f.current&&!s(((w=y.composedPath)===null||w===void 0||(w=w.call(y))===null||w===void 0?void 0:w[0])||y.target)&&!d.current&&u(!1)},b=Mf(r);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",v,!0),b.addEventListener("contextmenu",v,!0);var x=lg(n);return x&&(x.addEventListener("mousedown",v,!0),x.addEventListener("contextmenu",v,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",v,!0),b.removeEventListener("contextmenu",v,!0),x&&(x.removeEventListener("mousedown",v,!0),x.removeEventListener("contextmenu",v,!0))}}},[t,n,r,a,o]);function h(){d.current=!0}return h}var BB=["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 FB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kN,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,s=n.children,u=n.action,f=u===void 0?"hover":u,d=n.showAction,h=n.hideAction,g=n.popupVisible,v=n.defaultPopupVisible,b=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,C=n.mouseEnterDelay,y=n.mouseLeaveDelay,w=y===void 0?.1:y,$=n.focusDelay,E=n.blurDelay,I=n.mask,O=n.maskClosable,R=O===void 0?!0:O,T=n.getPopupContainer,P=n.forceRender,N=n.autoDestroy,k=n.destroyPopupOnHide,z=n.popup,V=n.popupClassName,B=n.popupStyle,L=n.popupPlacement,H=n.builtinPlacements,j=H===void 0?{}:H,D=n.popupAlign,F=n.zIndex,U=n.stretch,A=n.getPopupClassNameFromAlign,K=n.fresh,q=n.alignPoint,Y=n.onPopupClick,W=n.onPopupAlign,Q=n.arrow,Z=n.popupMotion,ae=n.maskMotion,J=n.popupTransitionName,se=n.popupAnimation,he=n.maskTransitionName,oe=n.maskAnimation,le=n.className,ie=n.getTriggerDOMNode,de=qt(n,BB),ge=N||k||!1,me=l.useState(!1),xe=ue(me,2),Ee=xe[0],He=xe[1];hn(function(){He(Jg())},[]);var je=l.useRef({}),ve=l.useContext(u2),$e=l.useMemo(function(){return{registerSubPopup:function(ln,Jn){je.current[ln]=Jn,ve==null||ve.registerSubPopup(ln,Jn)}}},[ve]),we=gS(),Re=l.useState(null),ze=ue(Re,2),De=ze[0],Ye=ze[1],Xe=l.useRef(null),Le=pn(function(Lt){Xe.current=Lt,Zd(Lt)&&De!==Lt&&Ye(Lt),ve==null||ve.registerSubPopup(we,Lt)}),Ke=l.useState(null),Fe=ue(Ke,2),Ie=Fe[0],Ue=Fe[1],ye=l.useRef(null),Ce=pn(function(Lt){Zd(Lt)&&Ie!==Lt&&(Ue(Lt),ye.current=Lt)}),_e=l.Children.only(s),be=(_e==null?void 0:_e.props)||{},ke={},st=pn(function(Lt){var ln,Jn,sr=Ie;return(sr==null?void 0:sr.contains(Lt))||((ln=lg(sr))===null||ln===void 0?void 0:ln.host)===Lt||Lt===sr||(De==null?void 0:De.contains(Lt))||((Jn=lg(De))===null||Jn===void 0?void 0:Jn.host)===Lt||Lt===De||Object.values(je.current).some(function(Sr){return(Sr==null?void 0:Sr.contains(Lt))||Lt===Sr})}),Dt=f2(o,Z,se,J),Wt=f2(o,ae,oe,he),Je=l.useState(v||!1),ct=ue(Je,2),$t=ct[0],ot=ct[1],gt=g??$t,dt=pn(function(Lt){g===void 0&&ot(Lt)});hn(function(){ot(g||!1)},[g]);var lt=l.useRef(gt);lt.current=gt;var nt=l.useRef([]);nt.current=[];var Pt=pn(function(Lt){var ln;dt(Lt),((ln=nt.current[nt.current.length-1])!==null&&ln!==void 0?ln:gt)!==Lt&&(nt.current.push(Lt),b==null||b(Lt))}),bt=l.useRef(),Ge=function(){clearTimeout(bt.current)},tt=function(ln){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ge(),Jn===0?Pt(ln):bt.current=setTimeout(function(){Pt(ln)},Jn*1e3)};l.useEffect(function(){return Ge},[]);var Mt=l.useState(!1),At=ue(Mt,2),Ot=At[0],Ht=At[1];hn(function(Lt){(!Lt||gt)&&Ht(!0)},[gt]);var wt=l.useState(null),xt=ue(wt,2),Tt=xt[0],Vt=xt[1],Jt=l.useState(null),on=ue(Jt,2),Ut=on[0],gn=on[1],$n=function(ln){gn([ln.clientX,ln.clientY])},En=zB(gt,De,q&&Ut!==null?Ut:Ie,L,j,D,W),at=ue(En,11),Rt=at[0],mt=at[1],it=at[2],Bt=at[3],tn=at[4],bn=at[5],On=at[6],kt=at[7],Ft=at[8],nn=at[9],Nn=at[10],hr=PB(Ee,f,d,h),Ur=ue(hr,2),gr=Ur[0],Bn=Ur[1],Wr=gr.has("click"),qr=Bn.has("click")||Bn.has("contextMenu"),ir=pn(function(){Ot||Nn()}),Yr=function(){lt.current&&q&&qr&&tt(!1)};LB(gt,Ie,De,ir,Yr),hn(function(){ir()},[Ut,L]),hn(function(){gt&&!(j!=null&&j[L])&&ir()},[JSON.stringify(D)]);var Sn=l.useMemo(function(){var Lt=AB(j,o,nn,q);return ce(Lt,A==null?void 0:A(nn))},[nn,A,j,o,q]);l.useImperativeHandle(r,function(){return{nativeElement:ye.current,popupElement:Xe.current,forceAlign:ir}});var zt=l.useState(0),vt=ue(zt,2),_n=vt[0],jt=vt[1],Nt=l.useState(0),dn=ue(Nt,2),Yn=dn[0],or=dn[1],lr=function(){if(U&&Ie){var ln=Ie.getBoundingClientRect();jt(ln.width),or(ln.height)}},Ir=function(){lr(),ir()},Mr=function(ln){Ht(!1),Nn(),x==null||x(ln)},St=function(){return new Promise(function(ln){lr(),Vt(function(){return ln})})};hn(function(){Tt&&(Nn(),Tt(),Vt(null))},[Tt]);function ut(Lt,ln,Jn,sr){ke[Lt]=function(Sr){var mo;sr==null||sr(Sr),tt(ln,Jn);for(var zs=arguments.length,Fl=new Array(zs>1?zs-1:0),ho=1;ho<zs;ho++)Fl[ho-1]=arguments[ho];(mo=be[Lt])===null||mo===void 0||mo.call.apply(mo,[be,Sr].concat(Fl))}}(Wr||qr)&&(ke.onClick=function(Lt){var ln;lt.current&&qr?tt(!1):!lt.current&&Wr&&($n(Lt),tt(!0));for(var Jn=arguments.length,sr=new Array(Jn>1?Jn-1:0),Sr=1;Sr<Jn;Sr++)sr[Sr-1]=arguments[Sr];(ln=be.onClick)===null||ln===void 0||ln.call.apply(ln,[be,Lt].concat(sr))});var en=HB(gt,qr,Ie,De,I,R,st,tt),sn=gr.has("hover"),xn=Bn.has("hover"),Gr,Hr;sn&&(ut("onMouseEnter",!0,C,function(Lt){$n(Lt)}),ut("onPointerEnter",!0,C,function(Lt){$n(Lt)}),Gr=function(ln){(gt||Ot)&&De!==null&&De!==void 0&&De.contains(ln.target)&&tt(!0,C)},q&&(ke.onMouseMove=function(Lt){var ln;(ln=be.onMouseMove)===null||ln===void 0||ln.call(be,Lt)})),xn&&(ut("onMouseLeave",!1,w),ut("onPointerLeave",!1,w),Hr=function(){tt(!1,w)}),gr.has("focus")&&ut("onFocus",!0,$),Bn.has("focus")&&ut("onBlur",!1,E),gr.has("contextMenu")&&(ke.onContextMenu=function(Lt){var ln;lt.current&&Bn.has("contextMenu")?tt(!1):($n(Lt),tt(!0)),Lt.preventDefault();for(var Jn=arguments.length,sr=new Array(Jn>1?Jn-1:0),Sr=1;Sr<Jn;Sr++)sr[Sr-1]=arguments[Sr];(ln=be.onContextMenu)===null||ln===void 0||ln.call.apply(ln,[be,Lt].concat(sr))}),le&&(ke.className=ce(be.className,le));var Rr=te(te({},be),ke),na={},$i=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];$i.forEach(function(Lt){de[Lt]&&(na[Lt]=function(){for(var ln,Jn=arguments.length,sr=new Array(Jn),Sr=0;Sr<Jn;Sr++)sr[Sr]=arguments[Sr];(ln=Rr[Lt])===null||ln===void 0||ln.call.apply(ln,[Rr].concat(sr)),de[Lt].apply(de,sr)})});var Bl=l.cloneElement(_e,te(te({},Rr),na)),As={x:bn,y:On},fo=Q?te({},Q!==!0?Q:{}):null;return l.createElement(l.Fragment,null,l.createElement(ga,{disabled:!gt,ref:Ce,onResize:Ir},l.createElement(DB,{getTriggerDOMNode:ie},Bl)),l.createElement(u2.Provider,{value:$e},l.createElement(TB,{portal:e,ref:Le,prefixCls:o,popup:z,className:ce(V,Sn),style:B,target:Ie,onMouseEnter:Gr,onMouseLeave:Hr,onPointerEnter:Gr,zIndex:F,open:gt,keepDom:Ot,fresh:K,onClick:Y,onPointerDownCapture:en,mask:I,motion:Dt,maskMotion:Wt,onVisibleChanged:Mr,onPrepare:St,forceRender:P,autoDestroy:ge,getPopupContainer:T,align:nn,arrow:fo,arrowPos:As,ready:Rt,offsetX:mt,offsetY:it,offsetR:Bt,offsetB:tn,onAlign:ir,stretch:U,targetWidth:_n/kt,targetHeight:Yn/Ft})))});return t}const jf=FB(kN);var VB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],KB=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},UB=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,s=t.popupElement,u=t.animation,f=t.transitionName,d=t.dropdownStyle,h=t.dropdownClassName,g=t.direction,v=g===void 0?"ltr":g,b=t.placement,x=t.builtinPlacements,C=t.dropdownMatchSelectWidth,y=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,E=t.empty,I=t.getTriggerDOMNode,O=t.onPopupVisibleChange,R=t.onPopupMouseEnter,T=qt(t,VB),P="".concat(r,"-dropdown"),N=s;y&&(N=y(s));var k=l.useMemo(function(){return x||KB(C)},[x,C]),z=u?"".concat(P,"-").concat(u):f,V=typeof C=="number",B=l.useMemo(function(){return V?null:C===!1?"minWidth":"width"},[C,V]),L=d;V&&(L=te(te({},L),{},{width:C}));var H=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var D;return(D=H.current)===null||D===void 0?void 0:D.popupElement}}}),l.createElement(jf,Me({},T,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:P,popupTransitionName:z,popup:l.createElement("div",{onMouseEnter:R},N),ref:H,stretch:B,popupAlign:w,popupVisible:a,getPopupContainer:$,popupClassName:ce(h,X({},"".concat(P,"-empty"),E)),popupStyle:L,getTriggerDOMNode:I,onPopupVisibleChange:O}),o)},WB=l.forwardRef(UB);function p2(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function X0(e){return typeof e<"u"&&!Number.isNaN(e)}function nM(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,s=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:o||"options",groupLabel:s||u}}function qB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=nM(n,!1),s=o.label,u=o.value,f=o.options,d=o.groupLabel;function h(g,v){Array.isArray(g)&&g.forEach(function(b){if(v||!(f in b)){var x=b[u];a.push({key:p2(b,a.length),groupOption:v,data:b,label:b[s],value:x})}else{var C=b[d];C===void 0&&r&&(C=b.label),a.push({key:p2(b,a.length),group:!0,data:b,label:C}),h(b[f],!0)}})}return h(e,!1),a}function Q0(e){var t=te({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var YB=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function u(f,d){var h=DR(d),g=h[0],v=h.slice(1);if(!g)return[f];var b=f.split(g);return a=a||b.length>1,b.reduce(function(x,C){return[].concat(Ae(x),Ae(u(C,v)))},[]).filter(Boolean)},s=o(t,n);return a?typeof r<"u"?s.slice(0,r):s:null},xS=l.createContext(null);function GB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,s=a.value;return["number","string"].includes(_t(o))?o:s}).join(", ")),n.length>r?", ...":null)}var XB=["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"],QB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Z0=function(t){return t==="tags"||t==="multiple"},ZB=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,s=e.showSearch,u=e.tagRender,f=e.direction,d=e.omitDomProps,h=e.displayValues,g=e.onDisplayValuesChange,v=e.emptyOptions,b=e.notFoundContent,x=b===void 0?"Not Found":b,C=e.onClear,y=e.mode,w=e.disabled,$=e.loading,E=e.getInputElement,I=e.getRawInputElement,O=e.open,R=e.defaultOpen,T=e.onDropdownVisibleChange,P=e.activeValue,N=e.onActiveValueChange,k=e.activeDescendantId,z=e.searchValue,V=e.autoClearSearchValue,B=e.onSearch,L=e.onSearchSplit,H=e.tokenSeparators,j=e.allowClear,D=e.prefix,F=e.suffixIcon,U=e.clearIcon,A=e.OptionList,K=e.animation,q=e.transitionName,Y=e.dropdownStyle,W=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,Z=e.dropdownRender,ae=e.dropdownAlign,J=e.placement,se=e.builtinPlacements,he=e.getPopupContainer,oe=e.showAction,le=oe===void 0?[]:oe,ie=e.onFocus,de=e.onBlur,ge=e.onKeyUp,me=e.onKeyDown,xe=e.onMouseDown,Ee=qt(e,XB),He=Z0(y),je=(s!==void 0?s:He)||y==="combobox",ve=te({},Ee);QB.forEach(function(zt){delete ve[zt]}),d==null||d.forEach(function(zt){delete ve[zt]});var $e=l.useState(!1),we=ue($e,2),Re=we[0],ze=we[1];l.useEffect(function(){ze(Jg())},[]);var De=l.useRef(null),Ye=l.useRef(null),Xe=l.useRef(null),Le=l.useRef(null),Ke=l.useRef(null),Fe=l.useRef(!1),Ie=iB(),Ue=ue(Ie,3),ye=Ue[0],Ce=Ue[1],_e=Ue[2];l.useImperativeHandle(t,function(){var zt,vt;return{focus:(zt=Le.current)===null||zt===void 0?void 0:zt.focus,blur:(vt=Le.current)===null||vt===void 0?void 0:vt.blur,scrollTo:function(jt){var Nt;return(Nt=Ke.current)===null||Nt===void 0?void 0:Nt.scrollTo(jt)},nativeElement:De.current||Ye.current}});var be=l.useMemo(function(){var zt;if(y!=="combobox")return z;var vt=(zt=h[0])===null||zt===void 0?void 0:zt.value;return typeof vt=="string"||typeof vt=="number"?String(vt):""},[z,y,h]),ke=y==="combobox"&&typeof E=="function"&&E()||null,st=typeof I=="function"&&I(),Dt=Pl(Ye,st==null||(n=st.props)===null||n===void 0?void 0:n.ref),Wt=l.useState(!1),Je=ue(Wt,2),ct=Je[0],$t=Je[1];hn(function(){$t(!0)},[]);var ot=Wn(!1,{defaultValue:R,value:O}),gt=ue(ot,2),dt=gt[0],lt=gt[1],nt=ct?dt:!1,Pt=!x&&v;(w||Pt&&nt&&y==="combobox")&&(nt=!1);var bt=Pt?!1:nt,Ge=l.useCallback(function(zt){var vt=zt!==void 0?zt:!nt;w||(lt(vt),nt!==vt&&(T==null||T(vt)))},[w,nt,lt,T]),tt=l.useMemo(function(){return(H||[]).some(function(zt){return[`
`,`\r
`].includes(zt)})},[H]),Mt=l.useContext(xS)||{},At=Mt.maxCount,Ot=Mt.rawValues,Ht=function(vt,_n,jt){if(!(He&&X0(At)&&(Ot==null?void 0:Ot.size)>=At)){var Nt=!0,dn=vt;N==null||N(null);var Yn=YB(vt,H,X0(At)?At-Ot.size:void 0),or=jt?null:Yn;return y!=="combobox"&&or&&(dn="",L==null||L(or),Ge(!1),Nt=!1),B&&be!==dn&&B(dn,{source:_n?"typing":"effect"}),Nt}},wt=function(vt){!vt||!vt.trim()||B(vt,{source:"submit"})};l.useEffect(function(){!nt&&!He&&y!=="combobox"&&Ht("",!1,!1)},[nt]),l.useEffect(function(){dt&&w&&lt(!1),w&&!Fe.current&&Ce(!1)},[w]);var xt=GN(),Tt=ue(xt,2),Vt=Tt[0],Jt=Tt[1],on=l.useRef(!1),Ut=function(vt){var _n=Vt(),jt=vt.key,Nt=jt==="Enter";if(Nt&&(y!=="combobox"&&vt.preventDefault(),nt||Ge(!0)),Jt(!!be),jt==="Backspace"&&!_n&&He&&!be&&h.length){for(var dn=Ae(h),Yn=null,or=dn.length-1;or>=0;or-=1){var lr=dn[or];if(!lr.disabled){dn.splice(or,1),Yn=lr;break}}Yn&&g(dn,{type:"remove",values:[Yn]})}for(var Ir=arguments.length,Mr=new Array(Ir>1?Ir-1:0),St=1;St<Ir;St++)Mr[St-1]=arguments[St];if(nt&&(!Nt||!on.current)){var ut;Nt&&(on.current=!0),(ut=Ke.current)===null||ut===void 0||ut.onKeyDown.apply(ut,[vt].concat(Mr))}me==null||me.apply(void 0,[vt].concat(Mr))},gn=function(vt){for(var _n=arguments.length,jt=new Array(_n>1?_n-1:0),Nt=1;Nt<_n;Nt++)jt[Nt-1]=arguments[Nt];if(nt){var dn;(dn=Ke.current)===null||dn===void 0||dn.onKeyUp.apply(dn,[vt].concat(jt))}vt.key==="Enter"&&(on.current=!1),ge==null||ge.apply(void 0,[vt].concat(jt))},$n=function(vt){var _n=h.filter(function(jt){return jt!==vt});g(_n,{type:"remove",values:[vt]})},En=function(){on.current=!1},at=l.useRef(!1),Rt=function(){Ce(!0),w||(ie&&!at.current&&ie.apply(void 0,arguments),le.includes("focus")&&Ge(!0)),at.current=!0},mt=function(){Fe.current=!0,Ce(!1,function(){at.current=!1,Fe.current=!1,Ge(!1)}),!w&&(be&&(y==="tags"?B(be,{source:"submit"}):y==="multiple"&&B("",{source:"blur"})),de&&de.apply(void 0,arguments))},it=[];l.useEffect(function(){return function(){it.forEach(function(zt){return clearTimeout(zt)}),it.splice(0,it.length)}},[]);var Bt=function(vt){var _n,jt=vt.target,Nt=(_n=Xe.current)===null||_n===void 0?void 0:_n.getPopupElement();if(Nt&&Nt.contains(jt)){var dn=setTimeout(function(){var Ir=it.indexOf(dn);if(Ir!==-1&&it.splice(Ir,1),_e(),!Re&&!Nt.contains(document.activeElement)){var Mr;(Mr=Le.current)===null||Mr===void 0||Mr.focus()}});it.push(dn)}for(var Yn=arguments.length,or=new Array(Yn>1?Yn-1:0),lr=1;lr<Yn;lr++)or[lr-1]=arguments[lr];xe==null||xe.apply(void 0,[vt].concat(or))},tn=l.useState({}),bn=ue(tn,2),On=bn[1];function kt(){On({})}var Ft;st&&(Ft=function(vt){Ge(vt)}),oB(function(){var zt;return[De.current,(zt=Xe.current)===null||zt===void 0?void 0:zt.getPopupElement()]},bt,Ge,!!st);var nn=l.useMemo(function(){return te(te({},e),{},{notFoundContent:x,open:nt,triggerOpen:bt,id:r,showSearch:je,multiple:He,toggleOpen:Ge})},[e,x,bt,nt,r,je,He,Ge]),Nn=!!F||$,hr;Nn&&(hr=l.createElement(ev,{className:ce("".concat(a,"-arrow"),X({},"".concat(a,"-arrow-loading"),$)),customizeIcon:F,customizeIconProps:{loading:$,searchValue:be,open:nt,focused:ye,showSearch:je}}));var Ur=function(){var vt;C==null||C(),(vt=Le.current)===null||vt===void 0||vt.focus(),g([],{type:"clear",values:h}),Ht("",!1,!1)},gr=rB(a,Ur,h,j,U,w,be,y),Bn=gr.allowClear,Wr=gr.clearIcon,qr=l.createElement(A,{ref:Ke}),ir=ce(a,o,X(X(X(X(X(X(X(X(X(X({},"".concat(a,"-focused"),ye),"".concat(a,"-multiple"),He),"".concat(a,"-single"),!He),"".concat(a,"-allow-clear"),j),"".concat(a,"-show-arrow"),Nn),"".concat(a,"-disabled"),w),"".concat(a,"-loading"),$),"".concat(a,"-open"),nt),"".concat(a,"-customize-input"),ke),"".concat(a,"-show-search"),je)),Yr=l.createElement(WB,{ref:Xe,disabled:w,prefixCls:a,visible:bt,popupElement:qr,animation:K,transitionName:q,dropdownStyle:Y,dropdownClassName:W,direction:f,dropdownMatchSelectWidth:Q,dropdownRender:Z,dropdownAlign:ae,placement:J,builtinPlacements:se,getPopupContainer:he,empty:v,getTriggerDOMNode:function(vt){return Ye.current||vt},onPopupVisibleChange:Ft,onPopupMouseEnter:kt},st?l.cloneElement(st,{ref:Dt}):l.createElement(RB,Me({},e,{domRef:Ye,prefixCls:a,inputElement:ke,ref:Le,id:r,prefix:D,showSearch:je,autoClearSearchValue:V,mode:y,activeDescendantId:k,tagRender:u,values:h,open:nt,onToggleOpen:Ge,activeValue:P,searchValue:be,onSearch:Ht,onSearchSubmit:wt,onRemove:$n,tokenWithEnter:tt,onInputBlur:En}))),Sn;return st?Sn=Yr:Sn=l.createElement("div",Me({className:ir},ve,{ref:De,onMouseDown:Bt,onKeyDown:Ut,onKeyUp:gn,onFocus:Rt,onBlur:mt}),l.createElement(GB,{visible:ye&&!nt,values:h}),Yr,hr,Bn&&Wr),l.createElement(YN.Provider,{value:nn},Sn)}),SS=function(){return null};SS.isSelectOptGroup=!0;var CS=function(){return null};CS.isSelectOption=!0;var rM=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,o=e.children,s=e.prefixCls,u=e.onInnerResize,f=e.innerProps,d=e.rtl,h=e.extra,g={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},v=te(te({},v),{},X(X(X(X(X({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:g},l.createElement(ga,{onResize:function(x){var C=x.offsetHeight;C&&u&&u()}},l.createElement("div",Me({style:v,className:ce(X({},"".concat(s,"-holder-inner"),s)),ref:t},f),o,h)))});rM.displayName="Filler";function JB(e){var t=e.children,n=e.setRef,r=l.useCallback(function(a){n(a)},[]);return l.cloneElement(t,{ref:r})}function eF(e,t,n,r,a,o,s,u){var f=u.getKey;return e.slice(t,n+1).map(function(d,h){var g=t+h,v=s(d,g,{style:{width:r},offsetX:a}),b=f(d);return l.createElement(JB,{key:b,setRef:function(C){return o(d,C)}},v)})}function tF(e,t,n){var r=e.length,a=t.length,o,s;if(r===0&&a===0)return null;r<a?(o=e,s=t):(o=t,s=e);var u={__EMPTY_ITEM__:!0};function f(x){return x!==void 0?n(x):u}for(var d=null,h=Math.abs(r-a)!==1,g=0;g<s.length;g+=1){var v=f(o[g]),b=f(s[g]);if(v!==b){d=g,h=h||v!==f(s[g+1]);break}}return d===null?null:{index:d,multiple:h}}function nF(e,t,n){var r=l.useState(e),a=ue(r,2),o=a[0],s=a[1],u=l.useState(null),f=ue(u,2),d=f[0],h=f[1];return l.useEffect(function(){var g=tF(o||[],e||[],t);(g==null?void 0:g.index)!==void 0&&h(e[g.index]),s(e)},[e]),[d]}var b2=(typeof navigator>"u"?"undefined":_t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const aM=(function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function s(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var u=l.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(f,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?d<0&&u.current.left||d>0&&u.current.right:d<0&&u.current.top||d>0&&u.current.bottom;return h&&g?(clearTimeout(o.current),a.current=!1):(!g||a.current)&&s(),!a.current&&g}});function rF(e,t,n,r,a,o,s){var u=l.useRef(0),f=l.useRef(null),d=l.useRef(null),h=l.useRef(!1),g=aM(t,n,r,a);function v($,E){if(un.cancel(f.current),!g(!1,E)){var I=$;if(!I._virtualHandled)I._virtualHandled=!0;else return;u.current+=E,d.current=E,b2||I.preventDefault(),f.current=un(function(){var O=h.current?10:1;s(u.current*O,!1),u.current=0})}}function b($,E){s(E,!0),b2||$.preventDefault()}var x=l.useRef(null),C=l.useRef(null);function y($){if(e){un.cancel(C.current),C.current=un(function(){x.current=null},2);var E=$.deltaX,I=$.deltaY,O=$.shiftKey,R=E,T=I;(x.current==="sx"||!x.current&&O&&I&&!E)&&(R=I,T=0,x.current="sx");var P=Math.abs(R),N=Math.abs(T);x.current===null&&(x.current=o&&P>N?"x":"y"),x.current==="y"?v($,T):b($,R)}}function w($){e&&(h.current=$.detail===d.current)}return[y,w]}function aF(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ue(a,2),s=o[0],u=o[1],f=function(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,v=s.get(h),b=s.get(g);if(v===void 0||b===void 0)for(var x=e.length,C=u.length;C<x;C+=1){var y,w=e[C],$=t(w);s.set($,C);var E=(y=n.get($))!==null&&y!==void 0?y:r;if(u[C]=(u[C-1]||0)+E,$===h&&(v=C),$===g&&(b=C),v!==void 0&&b!==void 0)break}return{top:u[v-1]||0,bottom:u[b]}};return f}var iF=(function(){function e(){yr(this,e),X(this,"maps",void 0),X(this,"id",0),X(this,"diffKeys",new Set),this.maps=Object.create(null)}return xr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e})();function y2(e){var t=parseFloat(e);return isNaN(t)?0:t}function oF(e,t,n){var r=l.useState(0),a=ue(r,2),o=a[0],s=a[1],u=l.useRef(new Map),f=l.useRef(new iF),d=l.useRef(0);function h(){d.current+=1}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h();var x=function(){var w=!1;u.current.forEach(function($,E){if($&&$.offsetParent){var I=$.offsetHeight,O=getComputedStyle($),R=O.marginTop,T=O.marginBottom,P=y2(R),N=y2(T),k=I+P+N;f.current.get(E)!==k&&(f.current.set(E,k),w=!0)}}),w&&s(function($){return $+1})};if(b)x();else{d.current+=1;var C=d.current;Promise.resolve().then(function(){C===d.current&&x()})}}function v(b,x){var C=e(b);u.current.get(C),x?(u.current.set(C,x),g()):u.current.delete(C)}return l.useEffect(function(){return h},[]),[v,g,f.current,o]}var x2=14/15;function lF(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),s=l.useRef(null),u=l.useRef(null),f,d=function(b){if(r.current){var x=Math.ceil(b.touches[0].pageX),C=Math.ceil(b.touches[0].pageY),y=a.current-x,w=o.current-C,$=Math.abs(y)>Math.abs(w);$?a.current=x:o.current=C;var E=n($,$?y:w,!1,b);E&&b.preventDefault(),clearInterval(u.current),E&&(u.current=setInterval(function(){$?y*=x2:w*=x2;var I=Math.floor($?y:w);(!n($,I,!0)||Math.abs(I)<=.1)&&clearInterval(u.current)},16))}},h=function(){r.current=!1,f()},g=function(b){f(),b.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(b.touches[0].pageX),o.current=Math.ceil(b.touches[0].pageY),s.current=b.target,s.current.addEventListener("touchmove",d,{passive:!1}),s.current.addEventListener("touchend",h,{passive:!0}))};f=function(){s.current&&(s.current.removeEventListener("touchmove",d),s.current.removeEventListener("touchend",h))},hn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",g),f(),clearInterval(u.current)}},[e])}function S2(e){return Math.floor(Math.pow(e,.5))}function J0(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function sF(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,s,u=function(){un.cancel(o)},f=function v(){u(),o=un(function(){n(s),v()})},d=function(b){if(!(b.target.draggable||b.button!==0)){var x=b;x._virtualHandled||(x._virtualHandled=!0,a=!0)}},h=function(){a=!1,u()},g=function(b){if(a){var x=J0(b,!1),C=r.getBoundingClientRect(),y=C.top,w=C.bottom;if(x<=y){var $=y-x;s=-S2($),f()}else if(x>=w){var E=x-w;s=S2(E),f()}else u()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",h),r.ownerDocument.addEventListener("mousemove",g),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",h),r.ownerDocument.removeEventListener("mousemove",g),u()}}},[e])}var cF=10;function uF(e,t,n,r,a,o,s,u){var f=l.useRef(),d=l.useState(null),h=ue(d,2),g=h[0],v=h[1];return hn(function(){if(g&&g.times<cF){if(!e.current){v(function(U){return te({},U)});return}o();var b=g.targetAlign,x=g.originAlign,C=g.index,y=g.offset,w=e.current.clientHeight,$=!1,E=b,I=null;if(w){for(var O=b||x,R=0,T=0,P=0,N=Math.min(t.length-1,C),k=0;k<=N;k+=1){var z=a(t[k]);T=R;var V=n.get(z);P=T+(V===void 0?r:V),R=P}for(var B=O==="top"?y:w-y,L=N;L>=0;L-=1){var H=a(t[L]),j=n.get(H);if(j===void 0){$=!0;break}if(B-=j,B<=0)break}switch(O){case"top":I=T-y;break;case"bottom":I=P-w+y;break;default:{var D=e.current.scrollTop,F=D+w;T<D?E="top":P>F&&(E="bottom")}}I!==null&&s(I),I!==g.lastTop&&($=!0)}$&&v(te(te({},g),{},{times:g.times+1,targetAlign:E,lastTop:I}))}},[g,e.current]),function(b){if(b==null){u();return}if(un.cancel(f.current),typeof b=="number")s(b);else if(b&&_t(b)==="object"){var x,C=b.align;"index"in b?x=b.index:x=t.findIndex(function($){return a($)===b.key});var y=b.offset,w=y===void 0?0:y;v({times:0,index:x,offset:w,originAlign:C})}}}var C2=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,s=e.onStartMove,u=e.onStopMove,f=e.onScroll,d=e.horizontal,h=e.spinSize,g=e.containerSize,v=e.style,b=e.thumbStyle,x=e.showScrollBar,C=l.useState(!1),y=ue(C,2),w=y[0],$=y[1],E=l.useState(null),I=ue(E,2),O=I[0],R=I[1],T=l.useState(null),P=ue(T,2),N=P[0],k=P[1],z=!r,V=l.useRef(),B=l.useRef(),L=l.useState(x),H=ue(L,2),j=H[0],D=H[1],F=l.useRef(),U=function(){x===!0||x===!1||(clearTimeout(F.current),D(!0),F.current=setTimeout(function(){D(!1)},3e3))},A=o-g||0,K=g-h||0,q=l.useMemo(function(){if(a===0||A===0)return 0;var oe=a/A;return oe*K},[a,A,K]),Y=function(le){le.stopPropagation(),le.preventDefault()},W=l.useRef({top:q,dragging:w,pageY:O,startTop:N});W.current={top:q,dragging:w,pageY:O,startTop:N};var Q=function(le){$(!0),R(J0(le,d)),k(W.current.top),s(),le.stopPropagation(),le.preventDefault()};l.useEffect(function(){var oe=function(ge){ge.preventDefault()},le=V.current,ie=B.current;return le.addEventListener("touchstart",oe,{passive:!1}),ie.addEventListener("touchstart",Q,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ie.removeEventListener("touchstart",Q)}},[]);var Z=l.useRef();Z.current=A;var ae=l.useRef();ae.current=K,l.useEffect(function(){if(w){var oe,le=function(ge){var me=W.current,xe=me.dragging,Ee=me.pageY,He=me.startTop;un.cancel(oe);var je=V.current.getBoundingClientRect(),ve=g/(d?je.width:je.height);if(xe){var $e=(J0(ge,d)-Ee)*ve,we=He;!z&&d?we-=$e:we+=$e;var Re=Z.current,ze=ae.current,De=ze?we/ze:0,Ye=Math.ceil(De*Re);Ye=Math.max(Ye,0),Ye=Math.min(Ye,Re),oe=un(function(){f(Ye,d)})}},ie=function(){$(!1),u()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ie,{passive:!0}),window.addEventListener("touchend",ie,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ie),window.removeEventListener("touchend",ie),un.cancel(oe)}}},[w]),l.useEffect(function(){return U(),function(){clearTimeout(F.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:U}});var J="".concat(n,"-scrollbar"),se={position:"absolute",visibility:j?null:"hidden"},he={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(se.height=8,se.left=0,se.right=0,se.bottom=0,he.height="100%",he.width=h,z?he.left=q:he.right=q):(se.width=8,se.top=0,se.bottom=0,z?se.right=0:se.left=0,he.width="100%",he.height=h,he.top=q),l.createElement("div",{ref:V,className:ce(J,X(X(X({},"".concat(J,"-horizontal"),d),"".concat(J,"-vertical"),!d),"".concat(J,"-visible"),j)),style:te(te({},se),v),onMouseDown:Y,onMouseMove:U},l.createElement("div",{ref:B,className:ce("".concat(J,"-thumb"),X({},"".concat(J,"-thumb-moving"),w)),style:te(te({},he),b),onMouseDown:Q}))}),dF=20;function w2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,dF),Math.floor(n)}var fF=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],mF=[],hF={overflowY:"auto",overflowAnchor:"none"};function gF(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,s=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,d=e.style,h=e.data,g=e.children,v=e.itemKey,b=e.virtual,x=e.direction,C=e.scrollWidth,y=e.component,w=y===void 0?"div":y,$=e.onScroll,E=e.onVirtualScroll,I=e.onVisibleChange,O=e.innerProps,R=e.extraRender,T=e.styles,P=e.showScrollBar,N=P===void 0?"optional":P,k=qt(e,fF),z=l.useCallback(function(at){return typeof v=="function"?v(at):at==null?void 0:at[v]},[v]),V=oF(z),B=ue(V,4),L=B[0],H=B[1],j=B[2],D=B[3],F=!!(b!==!1&&o&&s),U=l.useMemo(function(){return Object.values(j.maps).reduce(function(at,Rt){return at+Rt},0)},[j.id,j.maps]),A=F&&h&&(Math.max(s*h.length,U)>o||!!C),K=x==="rtl",q=ce(r,X({},"".concat(r,"-rtl"),K),a),Y=h||mF,W=l.useRef(),Q=l.useRef(),Z=l.useRef(),ae=l.useState(0),J=ue(ae,2),se=J[0],he=J[1],oe=l.useState(0),le=ue(oe,2),ie=le[0],de=le[1],ge=l.useState(!1),me=ue(ge,2),xe=me[0],Ee=me[1],He=function(){Ee(!0)},je=function(){Ee(!1)},ve={getKey:z};function $e(at){he(function(Rt){var mt;typeof at=="function"?mt=at(Rt):mt=at;var it=$t(mt);return W.current.scrollTop=it,it})}var we=l.useRef({start:0,end:Y.length}),Re=l.useRef(),ze=nF(Y,z),De=ue(ze,1),Ye=De[0];Re.current=Ye;var Xe=l.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!A){var at;return{scrollHeight:((at=Q.current)===null||at===void 0?void 0:at.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var Rt=0,mt,it,Bt,tn=Y.length,bn=0;bn<tn;bn+=1){var On=Y[bn],kt=z(On),Ft=j.get(kt),nn=Rt+(Ft===void 0?s:Ft);nn>=se&&mt===void 0&&(mt=bn,it=Rt),nn>se+o&&Bt===void 0&&(Bt=bn),Rt=nn}return mt===void 0&&(mt=0,it=0,Bt=Math.ceil(o/s)),Bt===void 0&&(Bt=Y.length-1),Bt=Math.min(Bt+1,Y.length-1),{scrollHeight:Rt,start:mt,end:Bt,offset:it}},[A,F,se,Y,D,o]),Le=Xe.scrollHeight,Ke=Xe.start,Fe=Xe.end,Ie=Xe.offset;we.current.start=Ke,we.current.end=Fe,l.useLayoutEffect(function(){var at=j.getRecord();if(at.size===1){var Rt=Array.from(at)[0],mt=Y[Ke];if(mt){var it=z(mt);if(it===Rt){var Bt=j.get(Rt),tn=Bt-s;$e(function(bn){return bn+tn})}}}j.resetRecord()},[Le]);var Ue=l.useState({width:0,height:o}),ye=ue(Ue,2),Ce=ye[0],_e=ye[1],be=function(Rt){_e({width:Rt.offsetWidth,height:Rt.offsetHeight})},ke=l.useRef(),st=l.useRef(),Dt=l.useMemo(function(){return w2(Ce.width,C)},[Ce.width,C]),Wt=l.useMemo(function(){return w2(Ce.height,Le)},[Ce.height,Le]),Je=Le-o,ct=l.useRef(Je);ct.current=Je;function $t(at){var Rt=at;return Number.isNaN(ct.current)||(Rt=Math.min(Rt,ct.current)),Rt=Math.max(Rt,0),Rt}var ot=se<=0,gt=se>=Je,dt=ie<=0,lt=ie>=C,nt=aM(ot,gt,dt,lt),Pt=function(){return{x:K?-ie:ie,y:se}},bt=l.useRef(Pt()),Ge=pn(function(at){if(E){var Rt=te(te({},Pt()),at);(bt.current.x!==Rt.x||bt.current.y!==Rt.y)&&(E(Rt),bt.current=Rt)}});function tt(at,Rt){var mt=at;Rt?(Pi.flushSync(function(){de(mt)}),Ge()):$e(mt)}function Mt(at){var Rt=at.currentTarget.scrollTop;Rt!==se&&$e(Rt),$==null||$(at),Ge()}var At=function(Rt){var mt=Rt,it=C?C-Ce.width:0;return mt=Math.max(mt,0),mt=Math.min(mt,it),mt},Ot=pn(function(at,Rt){Rt?(Pi.flushSync(function(){de(function(mt){var it=mt+(K?-at:at);return At(it)})}),Ge()):$e(function(mt){var it=mt+at;return it})}),Ht=rF(F,ot,gt,dt,lt,!!C,Ot),wt=ue(Ht,2),xt=wt[0],Tt=wt[1];lF(F,W,function(at,Rt,mt,it){var Bt=it;return nt(at,Rt,mt)?!1:!Bt||!Bt._virtualHandled?(Bt&&(Bt._virtualHandled=!0),xt({preventDefault:function(){},deltaX:at?Rt:0,deltaY:at?0:Rt}),!0):!1}),sF(A,W,function(at){$e(function(Rt){return Rt+at})}),hn(function(){function at(mt){var it=ot&&mt.detail<0,Bt=gt&&mt.detail>0;F&&!it&&!Bt&&mt.preventDefault()}var Rt=W.current;return Rt.addEventListener("wheel",xt,{passive:!1}),Rt.addEventListener("DOMMouseScroll",Tt,{passive:!0}),Rt.addEventListener("MozMousePixelScroll",at,{passive:!1}),function(){Rt.removeEventListener("wheel",xt),Rt.removeEventListener("DOMMouseScroll",Tt),Rt.removeEventListener("MozMousePixelScroll",at)}},[F,ot,gt]),hn(function(){if(C){var at=At(ie);de(at),Ge({x:at})}},[Ce.width,C]);var Vt=function(){var Rt,mt;(Rt=ke.current)===null||Rt===void 0||Rt.delayHidden(),(mt=st.current)===null||mt===void 0||mt.delayHidden()},Jt=uF(W,Y,j,s,z,function(){return H(!0)},$e,Vt);l.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:Pt,scrollTo:function(Rt){function mt(it){return it&&_t(it)==="object"&&("left"in it||"top"in it)}mt(Rt)?(Rt.left!==void 0&&de(At(Rt.left)),Jt(Rt.top)):Jt(Rt)}}}),hn(function(){if(I){var at=Y.slice(Ke,Fe+1);I(at,Y)}},[Ke,Fe,Y]);var on=aF(Y,z,j,s),Ut=R==null?void 0:R({start:Ke,end:Fe,virtual:A,offsetX:ie,offsetY:Ie,rtl:K,getSize:on}),gn=eF(Y,Ke,Fe,C,ie,L,g,ve),$n=null;o&&($n=te(X({},f?"height":"maxHeight",o),hF),F&&($n.overflowY="hidden",C&&($n.overflowX="hidden"),xe&&($n.pointerEvents="none")));var En={};return K&&(En.dir="rtl"),l.createElement("div",Me({ref:Z,style:te(te({},d),{},{position:"relative"}),className:q},En,k),l.createElement(ga,{onResize:be},l.createElement(w,{className:"".concat(r,"-holder"),style:$n,ref:W,onScroll:Mt,onMouseEnter:Vt},l.createElement(rM,{prefixCls:r,height:Le,offsetX:ie,offsetY:Ie,scrollWidth:C,onInnerResize:H,ref:Q,innerProps:O,rtl:K,extra:Ut},gn))),A&&Le>o&&l.createElement(C2,{ref:ke,prefixCls:r,scrollOffset:se,scrollRange:Le,rtl:K,onScroll:tt,onStartMove:He,onStopMove:je,spinSize:Wt,containerSize:Ce.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:N}),A&&C>Ce.width&&l.createElement(C2,{ref:st,prefixCls:r,scrollOffset:ie,scrollRange:C,rtl:K,onScroll:tt,onStartMove:He,onStopMove:je,spinSize:Dt,containerSize:Ce.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:N}))}var tv=l.forwardRef(gF);tv.displayName="List";function vF(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pF=["disabled","title","children","style","className"];function $2(e){return typeof e=="string"||typeof e=="number"}var bF=function(t,n){var r=aB(),a=r.prefixCls,o=r.id,s=r.open,u=r.multiple,f=r.mode,d=r.searchValue,h=r.toggleOpen,g=r.notFoundContent,v=r.onPopupScroll,b=l.useContext(xS),x=b.maxCount,C=b.flattenOptions,y=b.onActiveValue,w=b.defaultActiveFirstOption,$=b.onSelect,E=b.menuItemSelectedIcon,I=b.rawValues,O=b.fieldNames,R=b.virtual,T=b.direction,P=b.listHeight,N=b.listItemHeight,k=b.optionRender,z="".concat(a,"-item"),V=_s(function(){return C},[s,C],function(oe,le){return le[0]&&oe[1]!==le[1]}),B=l.useRef(null),L=l.useMemo(function(){return u&&X0(x)&&(I==null?void 0:I.size)>=x},[u,x,I==null?void 0:I.size]),H=function(le){le.preventDefault()},j=function(le){var ie;(ie=B.current)===null||ie===void 0||ie.scrollTo(typeof le=="number"?{index:le}:le)},D=l.useCallback(function(oe){return f==="combobox"?!1:I.has(oe)},[f,Ae(I).toString(),I.size]),F=function(le){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=V.length,ge=0;ge<de;ge+=1){var me=(le+ge*ie+de)%de,xe=V[me]||{},Ee=xe.group,He=xe.data;if(!Ee&&!(He!=null&&He.disabled)&&(D(He.value)||!L))return me}return-1},U=l.useState(function(){return F(0)}),A=ue(U,2),K=A[0],q=A[1],Y=function(le){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(le);var de={source:ie?"keyboard":"mouse"},ge=V[le];if(!ge){y(null,-1,de);return}y(ge.value,le,de)};l.useEffect(function(){Y(w!==!1?F(0):-1)},[V.length,d]);var W=l.useCallback(function(oe){return f==="combobox"?String(oe).toLowerCase()===d.toLowerCase():I.has(oe)},[f,d,Ae(I).toString(),I.size]);l.useEffect(function(){var oe=setTimeout(function(){if(!u&&s&&I.size===1){var ie=Array.from(I)[0],de=V.findIndex(function(ge){var me=ge.data;return me.value===ie});de!==-1&&(Y(de),j(de))}});if(s){var le;(le=B.current)===null||le===void 0||le.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[s,d]);var Q=function(le){le!==void 0&&$(le,{selected:!I.has(le)}),u||h(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(le){var ie=le.which,de=le.ctrlKey;switch(ie){case It.N:case It.P:case It.UP:case It.DOWN:{var ge=0;if(ie===It.UP?ge=-1:ie===It.DOWN?ge=1:vF()&&de&&(ie===It.N?ge=1:ie===It.P&&(ge=-1)),ge!==0){var me=F(K+ge,ge);j(me),Y(me,!0)}break}case It.TAB:case It.ENTER:{var xe,Ee=V[K];Ee&&!(Ee!=null&&(xe=Ee.data)!==null&&xe!==void 0&&xe.disabled)&&!L?Q(Ee.value):Q(void 0),s&&le.preventDefault();break}case It.ESC:h(!1),s&&le.stopPropagation()}},onKeyUp:function(){},scrollTo:function(le){j(le)}}}),V.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(z,"-empty"),onMouseDown:H},g);var Z=Object.keys(O).map(function(oe){return O[oe]}),ae=function(le){return le.label};function J(oe,le){var ie=oe.group;return{role:ie?"presentation":"option",id:"".concat(o,"_list_").concat(le)}}var se=function(le){var ie=V[le];if(!ie)return null;var de=ie.data||{},ge=de.value,me=ie.group,xe=sa(de,!0),Ee=ae(ie);return ie?l.createElement("div",Me({"aria-label":typeof Ee=="string"&&!me?Ee:null},xe,{key:le},J(ie,le),{"aria-selected":W(ge)}),ge):null},he={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,R&&l.createElement("div",Me({},he,{style:{height:0,width:0,overflow:"hidden"}}),se(K-1),se(K),se(K+1)),l.createElement(tv,{itemKey:"key",ref:B,data:V,height:P,itemHeight:N,fullHeight:!1,onMouseDown:H,onScroll:v,virtual:R,direction:T,innerProps:R?null:he},function(oe,le){var ie=oe.group,de=oe.groupOption,ge=oe.data,me=oe.label,xe=oe.value,Ee=ge.key;if(ie){var He,je=(He=ge.title)!==null&&He!==void 0?He:$2(me)?me.toString():void 0;return l.createElement("div",{className:ce(z,"".concat(z,"-group"),ge.className),title:je},me!==void 0?me:Ee)}var ve=ge.disabled,$e=ge.title;ge.children;var we=ge.style,Re=ge.className,ze=qt(ge,pF),De=tr(ze,Z),Ye=D(xe),Xe=ve||!Ye&&L,Le="".concat(z,"-option"),Ke=ce(z,Le,Re,X(X(X(X({},"".concat(Le,"-grouped"),de),"".concat(Le,"-active"),K===le&&!Xe),"".concat(Le,"-disabled"),Xe),"".concat(Le,"-selected"),Ye)),Fe=ae(oe),Ie=!E||typeof E=="function"||Ye,Ue=typeof Fe=="number"?Fe:Fe||xe,ye=$2(Ue)?Ue.toString():void 0;return $e!==void 0&&(ye=$e),l.createElement("div",Me({},sa(De),R?{}:J(oe,le),{"aria-selected":W(xe),className:Ke,title:ye,onMouseMove:function(){K===le||Xe||Y(le)},onClick:function(){Xe||Q(xe)},style:we}),l.createElement("div",{className:"".concat(Le,"-content")},typeof k=="function"?k(oe,{index:le}):Ue),l.isValidElement(E)||Ye,Ie&&l.createElement(ev,{className:"".concat(z,"-option-state"),customizeIcon:E,customizeIconProps:{value:xe,disabled:Xe,isSelected:Ye}},Ye?"✓":null))}))},yF=l.forwardRef(bF);const xF=(function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,s=o.values,u=o.options,f=e.map(function(g){if(g.label===void 0){var v;return te(te({},g),{},{label:(v=s.get(g.value))===null||v===void 0?void 0:v.label})}return g}),d=new Map,h=new Map;return f.forEach(function(g){d.set(g.value,g),h.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=d,n.current.options=h,f},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function my(e,t){return eM(e).join("").toUpperCase().includes(t)}const SF=(function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,s=t.label,u=t.value,f=[],d=typeof r=="function",h=n.toUpperCase(),g=d?r:function(b,x){return a?my(x[a],h):x[o]?my(x[s!=="children"?s:"label"],h):my(x[u],h)},v=d?function(b){return Q0(b)}:function(b){return b};return e.forEach(function(b){if(b[o]){var x=g(n,v(b));if(x)f.push(b);else{var C=b[o].filter(function(y){return g(n,v(y))});C.length&&f.push(te(te({},b),{},X({},o,C)))}return}g(n,v(b))&&f.push(b)}),f},[e,r,a,n,t])});var E2=0,CF=va();function wF(){var e;return CF?(e=E2,E2+=1):e="TEST_OR_SSR",e}function $F(e){var t=l.useState(),n=ue(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(wF()))},[]),e||r}var EF=["children","value"],_F=["children"];function OF(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,s=qt(r,EF);return te({key:n,value:o!==void 0?o:n,children:a},s)}function iM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _a(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,s=a.key,u=a.props,f=u.children,d=qt(u,_F);return t||!o?OF(n):te(te({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},d),{},{options:iM(f)})}).filter(function(n){return n})}var IF=function(t,n,r,a,o){return l.useMemo(function(){var s=t,u=!t;u&&(s=iM(n));var f=new Map,d=new Map,h=function(b,x,C){C&&typeof C=="string"&&b.set(x[C],x)},g=function v(b){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<b.length;C+=1){var y=b[C];!y[r.options]||x?(f.set(y[r.value],y),h(d,y,r.label),h(d,y,a),h(d,y,o)):v(y[r.options],!0)}};return g(s),{options:s,valueOptions:f,labelOptions:d}},[t,n,r,a,o])};function _2(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var RF=["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"],NF=["inputValue"];function MF(e){return!e||_t(e)!=="object"}var jF=l.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,s=e.backfill,u=e.fieldNames,f=e.inputValue,d=e.searchValue,h=e.onSearch,g=e.autoClearSearchValue,v=g===void 0?!0:g,b=e.onSelect,x=e.onDeselect,C=e.dropdownMatchSelectWidth,y=C===void 0?!0:C,w=e.filterOption,$=e.filterSort,E=e.optionFilterProp,I=e.optionLabelProp,O=e.options,R=e.optionRender,T=e.children,P=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,k=e.virtual,z=e.direction,V=e.listHeight,B=V===void 0?200:V,L=e.listItemHeight,H=L===void 0?20:L,j=e.labelRender,D=e.value,F=e.defaultValue,U=e.labelInValue,A=e.onChange,K=e.maxCount,q=qt(e,RF),Y=$F(n),W=Z0(r),Q=!!(!O&&T),Z=l.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),ae=l.useMemo(function(){return nM(u,Q)},[JSON.stringify(u),Q]),J=Wn("",{value:d!==void 0?d:f,postState:function(tt){return tt||""}}),se=ue(J,2),he=se[0],oe=se[1],le=IF(O,T,ae,E,I),ie=le.valueOptions,de=le.labelOptions,ge=le.options,me=l.useCallback(function(Ge){var tt=eM(Ge);return tt.map(function(Mt){var At,Ot,Ht,wt,xt;if(MF(Mt))At=Mt;else{var Tt;Ht=Mt.key,Ot=Mt.label,At=(Tt=Mt.value)!==null&&Tt!==void 0?Tt:Ht}var Vt=ie.get(At);if(Vt){var Jt;Ot===void 0&&(Ot=Vt==null?void 0:Vt[I||ae.label]),Ht===void 0&&(Ht=(Jt=Vt==null?void 0:Vt.key)!==null&&Jt!==void 0?Jt:At),wt=Vt==null?void 0:Vt.disabled,xt=Vt==null?void 0:Vt.title}return{label:Ot,value:At,key:Ht,disabled:wt,title:xt}})},[ae,I,ie]),xe=Wn(F,{value:D}),Ee=ue(xe,2),He=Ee[0],je=Ee[1],ve=l.useMemo(function(){var Ge,tt=W&&He===null?[]:He,Mt=me(tt);return r==="combobox"&&wB((Ge=Mt[0])===null||Ge===void 0?void 0:Ge.value)?[]:Mt},[He,me,r,W]),$e=xF(ve,ie),we=ue($e,2),Re=we[0],ze=we[1],De=l.useMemo(function(){if(!r&&Re.length===1){var Ge=Re[0];if(Ge.value===null&&(Ge.label===null||Ge.label===void 0))return[]}return Re.map(function(tt){var Mt;return te(te({},tt),{},{label:(Mt=typeof j=="function"?j(tt):tt.label)!==null&&Mt!==void 0?Mt:tt.value})})},[r,Re,j]),Ye=l.useMemo(function(){return new Set(Re.map(function(Ge){return Ge.value}))},[Re]);l.useEffect(function(){if(r==="combobox"){var Ge,tt=(Ge=Re[0])===null||Ge===void 0?void 0:Ge.value;oe(CB(tt)?String(tt):"")}},[Re]);var Xe=_2(function(Ge,tt){var Mt=tt??Ge;return X(X({},ae.value,Ge),ae.label,Mt)}),Le=l.useMemo(function(){if(r!=="tags")return ge;var Ge=Ae(ge),tt=function(At){return ie.has(At)};return Ae(Re).sort(function(Mt,At){return Mt.value<At.value?-1:1}).forEach(function(Mt){var At=Mt.value;tt(At)||Ge.push(Xe(At,Mt.label))}),Ge},[Xe,ge,ie,Re,r]),Ke=SF(Le,ae,he,Z,E),Fe=l.useMemo(function(){return r!=="tags"||!he||Ke.some(function(Ge){return Ge[E||"value"]===he})||Ke.some(function(Ge){return Ge[ae.value]===he})?Ke:[Xe(he)].concat(Ae(Ke))},[Xe,E,r,Ke,he,ae]),Ie=function Ge(tt){var Mt=Ae(tt).sort(function(At,Ot){return $(At,Ot,{searchValue:he})});return Mt.map(function(At){return Array.isArray(At.options)?te(te({},At),{},{options:At.options.length>0?Ge(At.options):At.options}):At})},Ue=l.useMemo(function(){return $?Ie(Fe):Fe},[Fe,$,he]),ye=l.useMemo(function(){return qB(Ue,{fieldNames:ae,childrenAsData:Q})},[Ue,ae,Q]),Ce=function(tt){var Mt=me(tt);if(je(Mt),A&&(Mt.length!==Re.length||Mt.some(function(Ht,wt){var xt;return((xt=Re[wt])===null||xt===void 0?void 0:xt.value)!==(Ht==null?void 0:Ht.value)}))){var At=U?Mt:Mt.map(function(Ht){return Ht.value}),Ot=Mt.map(function(Ht){return Q0(ze(Ht.value))});A(W?At:At[0],W?Ot:Ot[0])}},_e=l.useState(null),be=ue(_e,2),ke=be[0],st=be[1],Dt=l.useState(0),Wt=ue(Dt,2),Je=Wt[0],ct=Wt[1],$t=P!==void 0?P:r!=="combobox",ot=l.useCallback(function(Ge,tt){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},At=Mt.source,Ot=At===void 0?"keyboard":At;ct(tt),s&&r==="combobox"&&Ge!==null&&Ot==="keyboard"&&st(String(Ge))},[s,r]),gt=function(tt,Mt,At){var Ot=function(){var $n,En=ze(tt);return[U?{label:En==null?void 0:En[ae.label],value:tt,key:($n=En==null?void 0:En.key)!==null&&$n!==void 0?$n:tt}:tt,Q0(En)]};if(Mt&&b){var Ht=Ot(),wt=ue(Ht,2),xt=wt[0],Tt=wt[1];b(xt,Tt)}else if(!Mt&&x&&At!=="clear"){var Vt=Ot(),Jt=ue(Vt,2),on=Jt[0],Ut=Jt[1];x(on,Ut)}},dt=_2(function(Ge,tt){var Mt,At=W?tt.selected:!0;At?Mt=W?[].concat(Ae(Re),[Ge]):[Ge]:Mt=Re.filter(function(Ot){return Ot.value!==Ge}),Ce(Mt),gt(Ge,At),r==="combobox"?st(""):(!Z0||v)&&(oe(""),st(""))}),lt=function(tt,Mt){Ce(tt);var At=Mt.type,Ot=Mt.values;(At==="remove"||At==="clear")&&Ot.forEach(function(Ht){gt(Ht.value,!1,At)})},nt=function(tt,Mt){if(oe(tt),st(null),Mt.source==="submit"){var At=(tt||"").trim();if(At){var Ot=Array.from(new Set([].concat(Ae(Ye),[At])));Ce(Ot),gt(At,!0),oe("")}return}Mt.source!=="blur"&&(r==="combobox"&&Ce(tt),h==null||h(tt))},Pt=function(tt){var Mt=tt;r!=="tags"&&(Mt=tt.map(function(Ot){var Ht=de.get(Ot);return Ht==null?void 0:Ht.value}).filter(function(Ot){return Ot!==void 0}));var At=Array.from(new Set([].concat(Ae(Ye),Ae(Mt))));Ce(At),At.forEach(function(Ot){gt(Ot,!0)})},bt=l.useMemo(function(){var Ge=k!==!1&&y!==!1;return te(te({},le),{},{flattenOptions:ye,onActiveValue:ot,defaultActiveFirstOption:$t,onSelect:dt,menuItemSelectedIcon:N,rawValues:Ye,fieldNames:ae,virtual:Ge,direction:z,listHeight:B,listItemHeight:H,childrenAsData:Q,maxCount:K,optionRender:R})},[K,le,ye,ot,$t,dt,N,Ye,ae,k,y,z,B,H,Q,R]);return l.createElement(xS.Provider,{value:bt},l.createElement(ZB,Me({},q,{id:Y,prefixCls:o,ref:t,omitDomProps:NF,mode:r,displayValues:De,onDisplayValuesChange:lt,direction:z,searchValue:he,onSearch:nt,autoClearSearchValue:v,onSearchSplit:Pt,dropdownMatchSelectWidth:y,OptionList:yF,emptyOptions:!ye.length,activeValue:ke,activeDescendantId:"".concat(Y,"_list_").concat(Je)})))}),wS=jF;wS.Option=CS;wS.OptGroup=SS;function Tl(e,t,n){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Os=(e,t)=>t||e,TF=()=>{const[,e]=Ra(),[t]=Wo("Empty"),r=new Mn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},DF=()=>{const[,e]=Ra(),[t]=Wo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:s,shadowColor:u,contentColor:f}=l.useMemo(()=>({borderColor:new Mn(n).onBackground(o).toHexString(),shadowColor:new Mn(r).onBackground(o).toHexString(),contentColor:new Mn(a).onBackground(o).toHexString()}),[n,r,a,o]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:s},l.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"}),l.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:f}))))},PF=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},kF=Kn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=yn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[PF(a)]});var AF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const oM=l.createElement(TF,null),lM=l.createElement(DF,null),jo=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a=oM,description:o,children:s,imageStyle:u,style:f,classNames:d,styles:h}=e,g=AF(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:b,className:x,style:C,classNames:y,styles:w}=Ia("empty"),$=v("empty",r),[E,I,O]=kF($),[R]=Wo("Empty"),T=typeof o<"u"?o:R==null?void 0:R.description,P=typeof T=="string"?T:"empty";let N=null;return typeof a=="string"?N=l.createElement("img",{alt:P,src:a}):N=a,E(l.createElement("div",Object.assign({className:ce(I,O,$,x,{[`${$}-normal`]:a===lM,[`${$}-rtl`]:b==="rtl"},t,n,y.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),C),h==null?void 0:h.root),f)},g),l.createElement("div",{className:ce(`${$}-image`,y.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},u),w.image),h==null?void 0:h.image)},N),T&&l.createElement("div",{className:ce(`${$}-description`,y.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},w.description),h==null?void 0:h.description)},T),s&&l.createElement("div",{className:ce(`${$}-footer`,y.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},w.footer),h==null?void 0:h.footer)},s)))};jo.PRESENTED_IMAGE_DEFAULT=oM;jo.PRESENTED_IMAGE_SIMPLE=lM;const $S=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(Yt),r=n("empty");switch(t){case"Table":case"List":return Se.createElement(jo,{image:jo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Se.createElement(jo,{image:jo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Se.createElement(jo,null)}},Is=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:s}=l.useContext(Yt),u=l.useContext(WN),f=s==null?void 0:s.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(a=(r=u??f)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const h=fA.includes(d);return[d,h]},zF=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function LF(e,t){return e||zF(t)}const O2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},HF=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ln(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,[`
          ${a}${u}bottomLeft,
          ${o}${u}bottomLeft
        `]:{animationName:Hg},[`
          ${a}${u}topLeft,
          ${o}${u}topLeft,
          ${a}${u}topRight,
          ${o}${u}topRight
        `]:{animationName:Fg},[`${s}${u}bottomLeft`]:{animationName:Bg},[`
          ${s}${u}topLeft,
          ${s}${u}topRight
        `]:{animationName:Vg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},O2(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"},Ai),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},O2(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},io(e,"slide-up"),io(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down")]},sM=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:s,itemHeight:ne(t),itemLineHeight:ne(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},BF=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},cM=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:f,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:h}=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:h,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(h).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Qc()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},FF=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,s=BF(e),u=t?`${n}-${t}`:"",f=sM(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},cM(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:f.basePadding,paddingBlock:f.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne(r)} 0`,lineHeight:ne(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:ne(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ne(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${a}-item + ${a}-item,
        ${n}-prefix + ${n}-selection-wrap
      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n          &-input,\n          &-mirror\n        ":{height:o,fontFamily:e.fontFamily,lineHeight:ne(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function hy(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[FF(e,t),a]}const VF=e=>{const{componentCls:t}=e,n=yn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=yn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[hy(e),hy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},hy(r,"lg")]};function gy(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ln(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ne(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{display:"block",padding:0,lineHeight:ne(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-search,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ne(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:ne(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ne(r)}`,"&:after":{display:"none"}}}}}}}function KF(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gy(e),gy(yn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ne(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gy(yn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const UF=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:d,colorText:h,fontWeightStrong:g,controlItemBgActive:v,controlItemBgHover:b,colorBgContainer:x,colorFillSecondary:C,colorBgContainerDisabled:y,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:E,controlOutline:I}=e,O=u*2,R=r*2,T=Math.min(a-O,a-R),P=Math.min(o-O,o-R),N=Math.min(s-O,s-R);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:d+50,optionSelectedColor:h,optionSelectedFontWeight:g,optionSelectedBg:v,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:x,clearBg:x,singleItemHeightLG:s,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:P,multipleItemHeightLG:N,multipleSelectorBgDisabled:y,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:E,activeOutlineColor:I,selectAffixPadding:u}},uM=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ne(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},I2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},uM(e,t))}),WF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},uM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),I2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),I2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),dM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},R2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dM(e,t))}),qF=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},dM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),R2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),R2(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),YF=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),fM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ne(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},N2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fM(e,t))}),GF=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},fM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),N2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),N2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XF=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},WF(e)),qF(e)),YF(e)),GF(e))}),QF=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ZF=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},JF=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},QF(e)),ZF(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ai),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ai),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Qc()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},e7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},JF(e),KF(e),VF(e),HF(e),{[`${t}-rtl`]:{direction:"rtl"}},Rf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},t7=Kn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=yn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[e7(r),XF(r)]},UF,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var n7={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"},r7=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:n7}))},ES=l.forwardRef(r7),a7={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"},i7=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:a7}))},_S=l.forwardRef(i7),mM={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"},o7=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:mM}))},OS=l.forwardRef(o7);function hM(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:s,hasFeedback:u,prefixCls:f,showSuffixIcon:d,feedbackIcon:h,showArrow:g,componentName:v}=e;const b=n??l.createElement(Jc,null),x=$=>t===null&&!u&&!g?null:l.createElement(l.Fragment,null,d!==!1&&$,u&&h);let C=null;if(t!==void 0)C=x(t);else if(o)C=x(l.createElement(Fo,{spin:!0}));else{const $=`${f}-suffix`;C=E=>{let{open:I,showSearch:O}=E;return x(I&&O?l.createElement(OS,{className:$}):l.createElement(_S,{className:$}))}}let y=null;r!==void 0?y=r:s?y=l.createElement(ES,null):y=null;let w=null;return a!==void 0?w=a:w=l.createElement(eu,null),{clearIcon:b,suffixIcon:C,itemIcon:y,removeIcon:w}}function l7(e,t){return t!==void 0?t:e!==null}var s7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gM="SECRET_COMBOBOX_MODE_DO_NOT_USE",c7=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:s,getPopupContainer:u,popupClassName:f,dropdownClassName:d,listHeight:h=256,placement:g,listItemHeight:v,size:b,disabled:x,notFoundContent:C,status:y,builtinPlacements:w,dropdownMatchSelectWidth:$,popupMatchSelectWidth:E,direction:I,style:O,allowClear:R,variant:T,dropdownStyle:P,transitionName:N,tagRender:k,maxCount:z,prefix:V}=e,B=s7(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:L,getPrefixCls:H,renderEmpty:j,direction:D,virtual:F,popupMatchSelectWidth:U,popupOverflow:A}=l.useContext(Yt),K=Ia("select"),[,q]=Ra(),Y=v??(q==null?void 0:q.controlHeight),W=H("select",r),Q=H(),Z=I??D,{compactSize:ae,compactItemClassnames:J}=Yo(W,Z),[se,he]=Is("select",T,a),oe=ta(W),[le,ie,de]=t7(W,oe),ge=l.useMemo(()=>{const{mode:ke}=e;if(ke!=="combobox")return ke===gM?"combobox":ke},[e.mode]),me=ge==="multiple"||ge==="tags",xe=l7(e.suffixIcon,e.showArrow),Ee=(n=E??$)!==null&&n!==void 0?n:U,{status:He,hasFeedback:je,isFormItemInput:ve,feedbackIcon:$e}=l.useContext(ca),we=Os(He,y);let Re;C!==void 0?Re=C:ge==="combobox"?Re=null:Re=(j==null?void 0:j("Select"))||l.createElement($S,{componentName:"Select"});const{suffixIcon:ze,itemIcon:De,removeIcon:Ye,clearIcon:Xe}=hM(Object.assign(Object.assign({},B),{multiple:me,hasFeedback:je,feedbackIcon:$e,showSuffixIcon:xe,prefixCls:W,componentName:"Select"})),Le=R===!0?{clearIcon:Xe}:R,Ke=tr(B,["suffixIcon","itemIcon"]),Fe=ce(f||d,{[`${W}-dropdown-${Z}`]:Z==="rtl"},s,de,oe,ie),Ie=ua(ke=>{var st;return(st=b??ae)!==null&&st!==void 0?st:ke}),Ue=l.useContext(Oa),ye=x??Ue,Ce=ce({[`${W}-lg`]:Ie==="large",[`${W}-sm`]:Ie==="small",[`${W}-rtl`]:Z==="rtl",[`${W}-${se}`]:he,[`${W}-in-form-item`]:ve},Tl(W,we,je),J,K.className,o,s,de,oe,ie),_e=l.useMemo(()=>g!==void 0?g:Z==="rtl"?"bottomRight":"bottomLeft",[g,Z]),[be]=tu("SelectLike",P==null?void 0:P.zIndex);return le(l.createElement(wS,Object.assign({ref:t,virtual:F,showSearch:K.showSearch},Ke,{style:Object.assign(Object.assign({},K.style),O),dropdownMatchSelectWidth:Ee,transitionName:dS(Q,"slide-up",N),builtinPlacements:LF(w,A),listHeight:h,listItemHeight:Y,mode:ge,prefixCls:W,placement:_e,direction:Z,prefix:V,suffixIcon:ze,menuItemSelectedIcon:De,removeIcon:Ye,allowClear:Le,notFoundContent:Re,className:Ce,getPopupContainer:u||L,dropdownClassName:Fe,disabled:ye,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:be}),maxCount:me?z:void 0,tagRender:me?k:void 0})))},Et=l.forwardRef(c7),u7=Zg(Et,"dropdownAlign");Et.SECRET_COMBOBOX_MODE_DO_NOT_USE=gM;Et.Option=CS;Et.OptGroup=SS;Et._InternalPanelDoNotUseOrYouWillBeFired=u7;const ws=["xxl","xl","lg","md","sm","xs"],d7=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),f7=e=>{const t=e,n=[].concat(ws).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),s=`screen${o}Min`,u=`screen${o}`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);if(a<n.length-1){const f=`screen${o}Max`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);const h=`screen${n[a+1].toUpperCase()}Min`;if(!(t[f]<=t[h]))throw new Error(`${f}<=${h} fails : !(${t[f]}<=${t[h]})`)}}),e},m7=()=>{const[,e]=Ra(),t=d7(f7(e));return Se.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(s=>s(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.keys(t).forEach(o=>{const s=t[o],u=d=>{let{matches:h}=d;this.dispatch(Object.assign(Object.assign({},a),{[o]:h}))},f=window.matchMedia(s);f.addListener(u),this.matchHandlers[s]={mql:f,listener:u},u(f)})},unregister(){Object.keys(t).forEach(o=>{const s=t[o],u=this.matchHandlers[s];u==null||u.mql.removeListener(u==null?void 0:u.listener)}),n.clear()}}},[e])};function IS(){const[,e]=l.useReducer(t=>t+1,0);return e}function nv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=l.useRef(t),r=IS(),a=m7();return hn(()=>{const o=a.subscribe(s=>{n.current=s,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}function vM(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,s=e.className,u=e.style;return l.createElement("div",{className:ce("".concat(n,"-content"),s),style:u},l.createElement("div",{className:ce("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var yc={shiftX:64,adjustY:1},xc={adjustX:1,shiftY:!0},di=[0,0],h7={left:{points:["cr","cl"],overflow:xc,offset:[-4,0],targetOffset:di},right:{points:["cl","cr"],overflow:xc,offset:[4,0],targetOffset:di},top:{points:["bc","tc"],overflow:yc,offset:[0,-4],targetOffset:di},bottom:{points:["tc","bc"],overflow:yc,offset:[0,4],targetOffset:di},topLeft:{points:["bl","tl"],overflow:yc,offset:[0,-4],targetOffset:di},leftTop:{points:["tr","tl"],overflow:xc,offset:[-4,0],targetOffset:di},topRight:{points:["br","tr"],overflow:yc,offset:[0,-4],targetOffset:di},rightTop:{points:["tl","tr"],overflow:xc,offset:[4,0],targetOffset:di},bottomRight:{points:["tr","br"],overflow:yc,offset:[0,4],targetOffset:di},rightBottom:{points:["bl","br"],overflow:xc,offset:[4,0],targetOffset:di},bottomLeft:{points:["tl","bl"],overflow:yc,offset:[0,4],targetOffset:di},leftBottom:{points:["br","bl"],overflow:xc,offset:[-4,0],targetOffset:di}},g7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v7=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,s=t.mouseEnterDelay,u=s===void 0?0:s,f=t.mouseLeaveDelay,d=f===void 0?.1:f,h=t.overlayStyle,g=t.prefixCls,v=g===void 0?"rc-tooltip":g,b=t.children,x=t.onVisibleChange,C=t.afterVisibleChange,y=t.transitionName,w=t.animation,$=t.motion,E=t.placement,I=E===void 0?"right":E,O=t.align,R=O===void 0?{}:O,T=t.destroyTooltipOnHide,P=T===void 0?!1:T,N=t.defaultVisible,k=t.getTooltipContainer,z=t.overlayInnerStyle;t.arrowContent;var V=t.overlay,B=t.id,L=t.showArrow,H=L===void 0?!0:L,j=t.classNames,D=t.styles,F=qt(t,g7),U=gS(B),A=l.useRef(null);l.useImperativeHandle(n,function(){return A.current});var K=te({},F);"visible"in t&&(K.popupVisible=t.visible);var q=function(){return l.createElement(vM,{key:"content",prefixCls:v,id:U,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:te(te({},z),D==null?void 0:D.body)},V)},Y=function(){var Q=l.Children.only(b),Z=(Q==null?void 0:Q.props)||{},ae=te(te({},Z),{},{"aria-describedby":V?U:null});return l.cloneElement(b,ae)};return l.createElement(jf,Me({popupClassName:ce(r,j==null?void 0:j.root),prefixCls:v,popup:q,action:o,builtinPlacements:h7,popupPlacement:I,ref:A,popupAlign:R,getPopupContainer:k,onPopupVisibleChange:x,afterPopupVisibleChange:C,popupTransitionName:y,popupAnimation:w,popupMotion:$,defaultPopupVisible:N,autoDestroy:P,mouseLeaveDelay:d,popupStyle:te(te({},h),D==null?void 0:D.root),mouseEnterDelay:u,arrow:H},K),Y())};const p7=l.forwardRef(v7);function RS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,s=a,u=r*1/Math.sqrt(2),f=a-r*(1-1/Math.sqrt(2)),d=a-n*(1/Math.sqrt(2)),h=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*a-d,v=h,b=2*a-u,x=f,C=2*a-o,y=s,w=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),E=`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,I=`path('M ${o} ${s} A ${r} ${r} 0 0 0 ${u} ${f} L ${d} ${h} A ${n} ${n} 0 0 1 ${g} ${v} L ${b} ${x} A ${r} ${r} 0 0 0 ${C} ${y} Z')`;return{arrowShadowWidth:w,arrowPath:I,arrowPolygon:E}}const pM=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:u,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ne(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},bM=8;function NS(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?bM:r}}function sh(e,t){return e?t:{}}function yM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},pM(e,t,a)),{"&:before":{background:t}})]},sh(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),sh(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),sh(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),sh(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function b7(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),a);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const M2={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"]}},y7={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"]}},x7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:s}=e,u=t/2,f={};return Object.keys(M2).forEach(d=>{const h=r&&y7[d]||M2[d],g=Object.assign(Object.assign({},h),{offset:[0,0],dynamicInset:!0});switch(f[d]=g,x7.has(d)&&(g.autoArrow=!1),d){case"top":case"topLeft":case"topRight":g.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=u+a;break}const v=NS({contentRadius:o,limitVerticalRadius:!0});if(r)switch(d){case"topLeft":case"bottomLeft":g.offset[0]=-v.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":g.offset[0]=v.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":g.offset[1]=-v.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":g.offset[1]=v.arrowOffsetHorizontal*2-u;break}g.overflow=b7(d,v,t,n),s&&(g.htmlRegion="visibleFirst")}),f}const S7=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:f,boxShadowSecondary:d,paddingSM:h,paddingXS:g,arrowOffsetHorizontal:v,sizePopupArrow:b}=e,x=t(s).add(b).add(v).equal(),C=t(s).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:C,minHeight:f,padding:`${ne(e.calc(h).div(2).equal())} ${ne(g)}`,color:a,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:s,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,bM)}},[`${n}-content`]:{position:"relative"}}),JR(e,(y,w)=>{let{darkColor:$}=w;return{[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}})),{"&-rtl":{direction:"rtl"}})},yM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},C7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},NS({contentRadius:e.borderRadius,limitVerticalRadius:!0})),RS(yn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),SM=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:s}=r,u=yn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:s});return[S7(u),mS(r,"zoom-big-fast")]},C7,{resetStyle:!1,injectStyle:t})(e)}),w7=Ss.map(e=>`${e}-inverse`),$7=["success","processing","error","default","warning"];function CM(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ae(w7),Ae(Ss)).includes(e):Ss.includes(e)}function E7(e){return $7.includes(e)}function wM(e,t){const n=CM(t),r=ce({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const _7=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:s}=e,{getPrefixCls:u}=l.useContext(Yt),f=u("tooltip",t),[d,h,g]=SM(f),v=wM(f,o),b=v.arrowStyle,x=Object.assign(Object.assign({},s),v.overlayStyle),C=ce(h,g,f,`${f}-pure`,`${f}-placement-${r}`,n,v.className);return d(l.createElement("div",{className:C,style:b},l.createElement("div",{className:`${f}-arrow`}),l.createElement(vM,Object.assign({},e,{className:h,prefixCls:f,overlayInnerStyle:x}),a)))};var O7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const I7=l.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:s,color:u,overlayInnerStyle:f,children:d,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:b=!0,title:x,overlay:C,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:$=!0,motion:E,getPopupContainer:I,placement:O="top",mouseEnterDelay:R=.1,mouseLeaveDelay:T=.1,overlayStyle:P,rootClassName:N,overlayClassName:k,styles:z,classNames:V}=e,B=O7(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"]),L=!!b,[,H]=Ra(),{getPopupContainer:j,getPrefixCls:D,direction:F,className:U,style:A,classNames:K,styles:q}=Ia("tooltip"),Y=Al(),W=l.useRef(null),Q=()=>{var Ke;(Ke=W.current)===null||Ke===void 0||Ke.forceAlign()};l.useImperativeHandle(t,()=>{var Ke,Fe;return{forceAlign:Q,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(Ke=W.current)===null||Ke===void 0?void 0:Ke.nativeElement,popupElement:(Fe=W.current)===null||Fe===void 0?void 0:Fe.popupElement}});const[Z,ae]=Wn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),J=!x&&!C&&x!==0,se=Ke=>{var Fe,Ie;ae(J?!1:Ke),J||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,Ke),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,Ke))},he=l.useMemo(()=>{var Ke,Fe;let Ie=w;return typeof b=="object"&&(Ie=(Fe=(Ke=b.pointAtCenter)!==null&&Ke!==void 0?Ke:b.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:w),y||xM({arrowPointAtCenter:Ie,autoAdjustOverflow:$,arrowWidth:L?H.sizePopupArrow:0,borderRadius:H.borderRadius,offset:H.marginXXS,visibleFirst:!0})},[w,b,y,H]),oe=l.useMemo(()=>x===0?x:C||x||"",[C,x]),le=l.createElement(jl,{space:!0},typeof oe=="function"?oe():oe),ie=D("tooltip",a),de=D(),ge=e["data-popover-inject"];let me=Z;!("open"in e)&&!("visible"in e)&&J&&(me=!1);const xe=l.isValidElement(d)&&!bN(d)?d:l.createElement("span",null,d),Ee=xe.props,He=!Ee.className||typeof Ee.className=="string"?ce(Ee.className,o||`${ie}-open`):Ee.className,[je,ve,$e]=SM(ie,!ge),we=wM(ie,u),Re=we.arrowStyle,ze=ce(k,{[`${ie}-rtl`]:F==="rtl"},we.className,N,ve,$e,U,K.root,V==null?void 0:V.root),De=ce(K.body,V==null?void 0:V.body),[Ye,Xe]=tu("Tooltip",B.zIndex),Le=l.createElement(p7,Object.assign({},B,{zIndex:Ye,showArrow:L,placement:O,mouseEnterDelay:R,mouseLeaveDelay:T,prefixCls:ie,classNames:{root:ze,body:De},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),q.root),A),P),z==null?void 0:z.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),f),z==null?void 0:z.body),we.overlayStyle)},getTooltipContainer:I||s||j,ref:W,builtinPlacements:he,overlay:le,visible:me,onVisibleChange:se,afterVisibleChange:h??g,arrowContent:l.createElement("span",{className:`${ie}-arrow-content`}),motion:{motionName:dS(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),me?pa(xe,{className:He}):xe);return je(l.createElement(cS.Provider,{value:Xe},Le))}),bi=I7;bi._InternalPanelDoNotUseOrYouWillBeFired=_7;var R7={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"},N7=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:R7}))},hf=l.forwardRef(N7),M7=It.ESC,j7=It.TAB;function T7(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,s=l.useRef(!1),u=function(){if(t){var g,v;(g=n.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),r==null||r(!1)}},f=function(){var g;return(g=o.current)!==null&&g!==void 0&&g.focus?(o.current.focus(),s.current=!0,!0):!1},d=function(g){switch(g.keyCode){case M7:u();break;case j7:{var v=!1;s.current||(v=f()),v?g.preventDefault():u();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",d),a&&un(f,3),function(){window.removeEventListener("keydown",d),s.current=!1}):function(){s.current=!1}},[t])}var D7=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),s=xa(t,kl(o));return Se.createElement(Se.Fragment,null,r&&Se.createElement("div",{className:"".concat(a,"-arrow")}),Se.cloneElement(o,{ref:ki(o)?s:void 0}))}),Sc={adjustX:1,adjustY:1},Cc=[0,0],P7={topLeft:{points:["bl","tl"],overflow:Sc,offset:[0,-4],targetOffset:Cc},top:{points:["bc","tc"],overflow:Sc,offset:[0,-4],targetOffset:Cc},topRight:{points:["br","tr"],overflow:Sc,offset:[0,-4],targetOffset:Cc},bottomLeft:{points:["tl","bl"],overflow:Sc,offset:[0,4],targetOffset:Cc},bottom:{points:["tc","bc"],overflow:Sc,offset:[0,4],targetOffset:Cc},bottomRight:{points:["tr","br"],overflow:Sc,offset:[0,4],targetOffset:Cc}},k7=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function A7(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,s=o===void 0?"rc-dropdown":o,u=e.transitionName,f=e.animation,d=e.align,h=e.placement,g=h===void 0?"bottomLeft":h,v=e.placements,b=v===void 0?P7:v,x=e.getPopupContainer,C=e.showAction,y=e.hideAction,w=e.overlayClassName,$=e.overlayStyle,E=e.visible,I=e.trigger,O=I===void 0?["hover"]:I,R=e.autoFocus,T=e.overlay,P=e.children,N=e.onVisibleChange,k=qt(e,k7),z=Se.useState(),V=ue(z,2),B=V[0],L=V[1],H="visible"in e?E:B,j=Se.useRef(null),D=Se.useRef(null),F=Se.useRef(null);Se.useImperativeHandle(t,function(){return j.current});var U=function(J){L(J),N==null||N(J)};T7({visible:H,triggerRef:F,onVisibleChange:U,autoFocus:R,overlayRef:D});var A=function(J){var se=e.onOverlayClick;L(!1),se&&se(J)},K=function(){return Se.createElement(D7,{ref:D,overlay:T,prefixCls:s,arrow:a})},q=function(){return typeof T=="function"?K:K()},Y=function(){var J=e.minOverlayWidthMatchTrigger,se=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!se},W=function(){var J=e.openClassName;return J!==void 0?J:"".concat(s,"-open")},Q=Se.cloneElement(P,{className:ce((n=P.props)===null||n===void 0?void 0:n.className,H&&W()),ref:ki(P)?xa(F,kl(P)):void 0}),Z=y;return!Z&&O.indexOf("contextMenu")!==-1&&(Z=["click"]),Se.createElement(jf,Me({builtinPlacements:b},k,{prefixCls:s,ref:j,popupClassName:ce(w,X({},"".concat(s,"-show-arrow"),a)),popupStyle:$,action:O,showAction:C,hideAction:Z,popupPlacement:g,popupAlign:d,popupTransitionName:u,popupAnimation:f,popupVisible:H,stretch:Y()?"minWidth":"",popup:q(),onPopupVisibleChange:U,onPopupClick:A,getPopupContainer:x}),Q)}const $M=Se.forwardRef(A7),z7=e=>typeof e!="object"&&typeof e!="function"||e===null;var EM=l.createContext(null);function _M(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function OM(e){var t=l.useContext(EM);return _M(t,e)}var L7=["children","locked"],zi=l.createContext(null);function H7(e,t){var n=te({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function gf(e){var t=e.children,n=e.locked,r=qt(e,L7),a=l.useContext(zi),o=_s(function(){return H7(a,r)},[a,r],function(s,u){return!n&&(s[0]!==u[0]||!no(s[1],u[1],!0))});return l.createElement(zi.Provider,{value:o},t)}var B7=[],IM=l.createContext(null);function rv(){return l.useContext(IM)}var RM=l.createContext(B7);function ou(e){var t=l.useContext(RM);return l.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var NM=l.createContext(null),MS=l.createContext({});function j2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(nu(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),s=null;return a&&!Number.isNaN(o)?s=o:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function F7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return j2(r,t)});return j2(e,t)&&n.unshift(e),n}var ex=It.LEFT,tx=It.RIGHT,nx=It.UP,Ah=It.DOWN,zh=It.ENTER,MM=It.ESC,bd=It.HOME,yd=It.END,T2=[nx,Ah,ex,tx];function V7(e,t,n,r){var a,o="prev",s="next",u="children",f="parent";if(e==="inline"&&r===zh)return{inlineTrigger:!0};var d=X(X({},nx,o),Ah,s),h=X(X(X(X({},ex,n?s:o),tx,n?o:s),Ah,u),zh,u),g=X(X(X(X(X(X({},nx,o),Ah,s),zh,u),MM,f),ex,n?u:f),tx,n?f:u),v={inline:d,horizontal:h,vertical:g,inlineSub:d,horizontalSub:g,verticalSub:g},b=(a=v["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(b){case o:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function K7(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function U7(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function jS(e,t){var n=F7(e,!0);return n.filter(function(r){return t.has(r)})}function D2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=jS(e,t),o=a.length,s=a.findIndex(function(u){return n===u});return r<0?s===-1?s=o-1:s-=1:r>0&&(s+=1),s=(s+o)%o,a[s]}var rx=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(s){var u=document.querySelector("[data-menu-id='".concat(_M(n,s),"']"));u&&(r.add(u),o.set(u,s),a.set(s,u))}),{elements:r,key2element:a,element2key:o}};function W7(e,t,n,r,a,o,s,u,f,d){var h=l.useRef(),g=l.useRef();g.current=t;var v=function(){un.cancel(h.current)};return l.useEffect(function(){return function(){v()}},[]),function(b){var x=b.which;if([].concat(T2,[zh,MM,bd,yd]).includes(x)){var C=o(),y=rx(C,r),w=y,$=w.elements,E=w.key2element,I=w.element2key,O=E.get(t),R=U7(O,$),T=I.get(R),P=V7(e,s(T,!0).length===1,n,x);if(!P&&x!==bd&&x!==yd)return;(T2.includes(x)||[bd,yd].includes(x))&&b.preventDefault();var N=function(D){if(D){var F=D,U=D.querySelector("a");U!=null&&U.getAttribute("href")&&(F=U);var A=I.get(D);u(A),v(),h.current=un(function(){g.current===A&&F.focus()})}};if([bd,yd].includes(x)||P.sibling||!R){var k;!R||e==="inline"?k=a.current:k=K7(R);var z,V=jS(k,$);x===bd?z=V[0]:x===yd?z=V[V.length-1]:z=D2(k,$,R,P.offset),N(z)}else if(P.inlineTrigger)f(T);else if(P.offset>0)f(T,!0),v(),h.current=un(function(){y=rx(C,r);var j=R.getAttribute("aria-controls"),D=document.getElementById(j),F=D2(D,y.elements);N(F)},5);else if(P.offset<0){var B=s(T,!0),L=B[B.length-2],H=E.get(L);f(L,!1),N(H)}}d==null||d(b)}}function q7(e){Promise.resolve().then(e)}var TS="__RC_UTIL_PATH_SPLIT__",P2=function(t){return t.join(TS)},Y7=function(t){return t.split(TS)},ax="rc-menu-more";function G7(){var e=l.useState({}),t=ue(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),s=ue(o,2),u=s[0],f=s[1],d=l.useRef(0),h=l.useRef(!1),g=function(){h.current||n({})},v=l.useCallback(function(E,I){var O=P2(I);a.current.set(O,E),r.current.set(E,O),d.current+=1;var R=d.current;q7(function(){R===d.current&&g()})},[]),b=l.useCallback(function(E,I){var O=P2(I);a.current.delete(O),r.current.delete(E)},[]),x=l.useCallback(function(E){f(E)},[]),C=l.useCallback(function(E,I){var O=r.current.get(E)||"",R=Y7(O);return I&&u.includes(R[0])&&R.unshift(ax),R},[u]),y=l.useCallback(function(E,I){return E.filter(function(O){return O!==void 0}).some(function(O){var R=C(O,!0);return R.includes(I)})},[C]),w=function(){var I=Ae(r.current.keys());return u.length&&I.push(ax),I},$=l.useCallback(function(E){var I="".concat(r.current.get(E)).concat(TS),O=new Set;return Ae(a.current.keys()).forEach(function(R){R.startsWith(I)&&O.add(a.current.get(R))}),O},[]);return l.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:x,isSubPathKey:y,getKeyPath:C,getKeys:w,getSubPathKeys:$}}function Td(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var X7=Math.random().toFixed(5).toString().slice(2),k2=0;function Q7(e){var t=Wn(e,{value:e}),n=ue(t,2),r=n[0],a=n[1];return l.useEffect(function(){k2+=1;var o="".concat(X7,"-").concat(k2);a("rc-menu-uuid-".concat(o))},[]),r}function jM(e,t,n,r){var a=l.useContext(zi),o=a.activeKey,s=a.onActive,u=a.onInactive,f={active:o===e};return t||(f.onMouseEnter=function(d){n==null||n({key:e,domEvent:d}),s(e)},f.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),u(e)}),f}function TM(e){var t=l.useContext(zi),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*a}:{paddingLeft:o*a}}function DM(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=l.createElement(t,te({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var Z7=["item"];function ug(e){var t=e.item,n=qt(e,Z7);return Object.defineProperty(n,"item",{get:function(){return br(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var J7=["title","attribute","elementRef"],e9=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],t9=["active"],n9=(function(e){ei(n,e);var t=yi(n);function n(){return yr(this,n),t.apply(this,arguments)}return xr(n,[{key:"render",value:function(){var a=this.props,o=a.title,s=a.attribute,u=a.elementRef,f=qt(a,J7),d=tr(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return br(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Di.Item,Me({},s,{title:typeof o=="string"?o:void 0},d,{ref:u}))}}]),n})(l.Component),r9=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.itemIcon,u=e.children,f=e.role,d=e.onMouseEnter,h=e.onMouseLeave,g=e.onClick,v=e.onKeyDown,b=e.onFocus,x=qt(e,e9),C=OM(a),y=l.useContext(zi),w=y.prefixCls,$=y.onItemClick,E=y.disabled,I=y.overflowDisabled,O=y.itemIcon,R=y.selectedKeys,T=y.onActive,P=l.useContext(MS),N=P._internalRenderMenuItem,k="".concat(w,"-item"),z=l.useRef(),V=l.useRef(),B=E||o,L=Pl(t,V),H=ou(a),j=function(se){return{key:a,keyPath:Ae(H).reverse(),item:z.current,domEvent:se}},D=s||O,F=jM(a,B,d,h),U=F.active,A=qt(F,t9),K=R.includes(a),q=TM(H.length),Y=function(se){if(!B){var he=j(se);g==null||g(ug(he)),$(he)}},W=function(se){if(v==null||v(se),se.which===It.ENTER){var he=j(se);g==null||g(ug(he)),$(he)}},Q=function(se){T(a),b==null||b(se)},Z={};e.role==="option"&&(Z["aria-selected"]=K);var ae=l.createElement(n9,Me({ref:z,elementRef:L,role:f===null?"none":f||"menuitem",tabIndex:o?null:-1,"data-menu-id":I&&C?null:C},tr(x,["extra"]),A,Z,{component:"li","aria-disabled":o,style:te(te({},q),n),className:ce(k,X(X(X({},"".concat(k,"-active"),U),"".concat(k,"-selected"),K),"".concat(k,"-disabled"),B),r),onClick:Y,onKeyDown:W,onFocus:Q}),u,l.createElement(DM,{props:te(te({},e),{},{isSelected:K}),icon:D}));return N&&(ae=N(ae,e,{selected:K})),ae});function a9(e,t){var n=e.eventKey,r=rv(),a=ou(n);return l.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:l.createElement(r9,Me({},e,{ref:t}))}const Tf=l.forwardRef(a9);var i9=["className","children"],o9=function(t,n){var r=t.className,a=t.children,o=qt(t,i9),s=l.useContext(zi),u=s.prefixCls,f=s.mode,d=s.rtl;return l.createElement("ul",Me({className:ce(u,d&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),a)},DS=l.forwardRef(o9);DS.displayName="SubMenuList";function PS(e,t){return _a(e).map(function(n,r){if(l.isValidElement(n)){var a,o,s=n.key,u=(a=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:s,f=u==null;f&&(u="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var d={key:u,eventKey:u};return l.cloneElement(n,d)}return n})}var wa={adjustX:1,adjustY:1},l9={topLeft:{points:["bl","tl"],overflow:wa},topRight:{points:["br","tr"],overflow:wa},bottomLeft:{points:["tl","bl"],overflow:wa},bottomRight:{points:["tr","br"],overflow:wa},leftTop:{points:["tr","tl"],overflow:wa},leftBottom:{points:["br","bl"],overflow:wa},rightTop:{points:["tl","tr"],overflow:wa},rightBottom:{points:["bl","br"],overflow:wa}},s9={topLeft:{points:["bl","tl"],overflow:wa},topRight:{points:["br","tr"],overflow:wa},bottomLeft:{points:["tl","bl"],overflow:wa},bottomRight:{points:["tr","br"],overflow:wa},rightTop:{points:["tr","tl"],overflow:wa},rightBottom:{points:["br","bl"],overflow:wa},leftTop:{points:["tl","tr"],overflow:wa},leftBottom:{points:["bl","br"],overflow:wa}};function PM(e,t,n){if(t)return t;if(n)return n[e]||n.other}var c9={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function u9(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,o=e.popupStyle,s=e.popupClassName,u=e.popupOffset,f=e.disabled,d=e.mode,h=e.onVisibleChange,g=l.useContext(zi),v=g.getPopupContainer,b=g.rtl,x=g.subMenuOpenDelay,C=g.subMenuCloseDelay,y=g.builtinPlacements,w=g.triggerSubMenuAction,$=g.forceSubMenuRender,E=g.rootClassName,I=g.motion,O=g.defaultMotions,R=l.useState(!1),T=ue(R,2),P=T[0],N=T[1],k=te(b?te({},s9):te({},l9),y),z=c9[d],V=PM(d,I,O),B=l.useRef(V);d!=="inline"&&(B.current=V);var L=te(te({},B.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=l.useRef();return l.useEffect(function(){return H.current=un(function(){N(n)}),function(){un.cancel(H.current)}},[n]),l.createElement(jf,{prefixCls:t,popupClassName:ce("".concat(t,"-popup"),X({},"".concat(t,"-rtl"),b),s,E),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:k,popupPlacement:z,popupVisible:P,popup:a,popupStyle:o,popupAlign:u&&{offset:u},action:f?[]:[w],mouseEnterDelay:x,mouseLeaveDelay:C,onPopupVisibleChange:h,forceRender:$,popupMotion:L,fresh:!0},r)}function d9(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,o="inline",s=l.useContext(zi),u=s.prefixCls,f=s.forceSubMenuRender,d=s.motion,h=s.defaultMotions,g=s.mode,v=l.useRef(!1);v.current=g===o;var b=l.useState(!v.current),x=ue(b,2),C=x[0],y=x[1],w=v.current?n:!1;l.useEffect(function(){v.current&&y(!1)},[g]);var $=te({},PM(o,d,h));r.length>1&&($.motionAppear=!1);var E=$.onVisibleChanged;return $.onVisibleChanged=function(I){return!v.current&&!I&&y(!0),E==null?void 0:E(I)},C?null:l.createElement(gf,{mode:o,locked:!v.current},l.createElement(xi,Me({visible:w},$,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(I){var O=I.className,R=I.style;return l.createElement(DS,{id:t,className:O,style:R},a)}))}var f9=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],m9=["active"],h9=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var s=e.disabled,u=e.internalPopupClose,f=e.children,d=e.itemIcon,h=e.expandIcon,g=e.popupClassName,v=e.popupOffset,b=e.popupStyle,x=e.onClick,C=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,E=e.onTitleMouseLeave,I=qt(e,f9),O=OM(o),R=l.useContext(zi),T=R.prefixCls,P=R.mode,N=R.openKeys,k=R.disabled,z=R.overflowDisabled,V=R.activeKey,B=R.selectedKeys,L=R.itemIcon,H=R.expandIcon,j=R.onItemClick,D=R.onOpenChange,F=R.onActive,U=l.useContext(MS),A=U._internalRenderSubMenuItem,K=l.useContext(NM),q=K.isSubPathKey,Y=ou(),W="".concat(T,"-submenu"),Q=k||s,Z=l.useRef(),ae=l.useRef(),J=d??L,se=h??H,he=N.includes(o),oe=!z&&he,le=q(B,o),ie=jM(o,Q,$,E),de=ie.active,ge=qt(ie,m9),me=l.useState(!1),xe=ue(me,2),Ee=xe[0],He=xe[1],je=function(_e){Q||He(_e)},ve=function(_e){je(!0),C==null||C({key:o,domEvent:_e})},$e=function(_e){je(!1),y==null||y({key:o,domEvent:_e})},we=l.useMemo(function(){return de||(P!=="inline"?Ee||q([V],o):!1)},[P,de,V,Ee,o,q]),Re=TM(Y.length),ze=function(_e){Q||(w==null||w({key:o,domEvent:_e}),P==="inline"&&D(o,!he))},De=Td(function(Ce){x==null||x(ug(Ce)),j(Ce)}),Ye=function(_e){P!=="inline"&&D(o,_e)},Xe=function(){F(o)},Le=O&&"".concat(O,"-popup"),Ke=l.useMemo(function(){return l.createElement(DM,{icon:P!=="horizontal"?se:void 0,props:te(te({},e),{},{isOpen:oe,isSubMenu:!0})},l.createElement("i",{className:"".concat(W,"-arrow")}))},[P,se,e,oe,W]),Fe=l.createElement("div",Me({role:"menuitem",style:Re,className:"".concat(W,"-title"),tabIndex:Q?null:-1,ref:Z,title:typeof a=="string"?a:null,"data-menu-id":z&&O?null:O,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":Q,onClick:ze,onFocus:Xe},ge),a,Ke),Ie=l.useRef(P);if(P!=="inline"&&Y.length>1?Ie.current="vertical":Ie.current=P,!z){var Ue=Ie.current;Fe=l.createElement(u9,{mode:Ue,prefixCls:W,visible:!u&&oe&&P!=="inline",popupClassName:g,popupOffset:v,popupStyle:b,popup:l.createElement(gf,{mode:Ue==="horizontal"?"vertical":Ue},l.createElement(DS,{id:Le,ref:ae},f)),disabled:Q,onVisibleChange:Ye},Fe)}var ye=l.createElement(Di.Item,Me({ref:t,role:"none"},I,{component:"li",style:n,className:ce(W,"".concat(W,"-").concat(P),r,X(X(X(X({},"".concat(W,"-open"),oe),"".concat(W,"-active"),we),"".concat(W,"-selected"),le),"".concat(W,"-disabled"),Q)),onMouseEnter:ve,onMouseLeave:$e}),Fe,!z&&l.createElement(d9,{id:Le,open:oe,keyPath:Y},f));return A&&(ye=A(ye,e,{selected:le,active:we,open:oe,disabled:Q})),l.createElement(gf,{onItemClick:De,mode:P==="horizontal"?"vertical":P,itemIcon:J,expandIcon:se},ye)}),av=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ou(n),o=PS(r,a),s=rv();l.useEffect(function(){if(s)return s.registerPath(n,a),function(){s.unregisterPath(n,a)}},[a]);var u;return s?u=o:u=l.createElement(h9,Me({ref:t},e),o),l.createElement(RM.Provider,{value:a},u)});function kS(e){var t=e.className,n=e.style,r=l.useContext(zi),a=r.prefixCls,o=rv();return o?null:l.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:n})}var g9=["className","title","eventKey","children"],v9=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=qt(e,g9),s=l.useContext(zi),u=s.prefixCls,f="".concat(u,"-item-group");return l.createElement("li",Me({ref:t,role:"presentation"},o,{onClick:function(h){return h.stopPropagation()},className:ce(f,n)}),l.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(f,"-list")},a))}),AS=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ou(n),o=PS(r,a),s=rv();return s?o:l.createElement(v9,Me({ref:t},tr(e,["warnKey"])),o)}),p9=["label","children","key","type","extra"];function ix(e,t,n){var r=t.item,a=t.group,o=t.submenu,s=t.divider;return(e||[]).map(function(u,f){if(u&&_t(u)==="object"){var d=u,h=d.label,g=d.children,v=d.key,b=d.type,x=d.extra,C=qt(d,p9),y=v??"tmp-".concat(f);return g||b==="group"?b==="group"?l.createElement(a,Me({key:y},C,{title:h}),ix(g,t,n)):l.createElement(o,Me({key:y},C,{title:h}),ix(g,t,n)):b==="divider"?l.createElement(s,Me({key:y},C)):l.createElement(r,Me({key:y},C,{extra:x}),h,(!!x||x===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},x))}return null}).filter(function(u){return u})}function A2(e,t,n,r,a){var o=e,s=te({divider:kS,item:Tf,group:AS,submenu:av},r);return t&&(o=ix(t,s,a)),PS(o,n)}var b9=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],is=[],y9=l.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,s=r.rootClassName,u=r.style,f=r.className,d=r.tabIndex,h=d===void 0?0:d,g=r.items,v=r.children,b=r.direction,x=r.id,C=r.mode,y=C===void 0?"vertical":C,w=r.inlineCollapsed,$=r.disabled,E=r.disabledOverflow,I=r.subMenuOpenDelay,O=I===void 0?.1:I,R=r.subMenuCloseDelay,T=R===void 0?.1:R,P=r.forceSubMenuRender,N=r.defaultOpenKeys,k=r.openKeys,z=r.activeKey,V=r.defaultActiveFirst,B=r.selectable,L=B===void 0?!0:B,H=r.multiple,j=H===void 0?!1:H,D=r.defaultSelectedKeys,F=r.selectedKeys,U=r.onSelect,A=r.onDeselect,K=r.inlineIndent,q=K===void 0?24:K,Y=r.motion,W=r.defaultMotions,Q=r.triggerSubMenuAction,Z=Q===void 0?"hover":Q,ae=r.builtinPlacements,J=r.itemIcon,se=r.expandIcon,he=r.overflowedIndicator,oe=he===void 0?"...":he,le=r.overflowedIndicatorPopupClassName,ie=r.getPopupContainer,de=r.onClick,ge=r.onOpenChange,me=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,Ee=r._internalRenderSubMenuItem,He=r._internalComponents,je=qt(r,b9),ve=l.useMemo(function(){return[A2(v,g,is,He,o),A2(v,g,is,{},o)]},[v,g,He]),$e=ue(ve,2),we=$e[0],Re=$e[1],ze=l.useState(!1),De=ue(ze,2),Ye=De[0],Xe=De[1],Le=l.useRef(),Ke=Q7(x),Fe=b==="rtl",Ie=Wn(N,{value:k,postState:function(zt){return zt||is}}),Ue=ue(Ie,2),ye=Ue[0],Ce=Ue[1],_e=function(zt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _n(){Ce(zt),ge==null||ge(zt)}vt?Pi.flushSync(_n):_n()},be=l.useState(ye),ke=ue(be,2),st=ke[0],Dt=ke[1],Wt=l.useRef(!1),Je=l.useMemo(function(){return(y==="inline"||y==="vertical")&&w?["vertical",w]:[y,!1]},[y,w]),ct=ue(Je,2),$t=ct[0],ot=ct[1],gt=$t==="inline",dt=l.useState($t),lt=ue(dt,2),nt=lt[0],Pt=lt[1],bt=l.useState(ot),Ge=ue(bt,2),tt=Ge[0],Mt=Ge[1];l.useEffect(function(){Pt($t),Mt(ot),Wt.current&&(gt?Ce(st):_e(is))},[$t,ot]);var At=l.useState(0),Ot=ue(At,2),Ht=Ot[0],wt=Ot[1],xt=Ht>=we.length-1||nt!=="horizontal"||E;l.useEffect(function(){gt&&Dt(ye)},[ye]),l.useEffect(function(){return Wt.current=!0,function(){Wt.current=!1}},[]);var Tt=G7(),Vt=Tt.registerPath,Jt=Tt.unregisterPath,on=Tt.refreshOverflowKeys,Ut=Tt.isSubPathKey,gn=Tt.getKeyPath,$n=Tt.getKeys,En=Tt.getSubPathKeys,at=l.useMemo(function(){return{registerPath:Vt,unregisterPath:Jt}},[Vt,Jt]),Rt=l.useMemo(function(){return{isSubPathKey:Ut}},[Ut]);l.useEffect(function(){on(xt?is:we.slice(Ht+1).map(function(Sn){return Sn.key}))},[Ht,xt]);var mt=Wn(z||V&&((n=we[0])===null||n===void 0?void 0:n.key),{value:z}),it=ue(mt,2),Bt=it[0],tn=it[1],bn=Td(function(Sn){tn(Sn)}),On=Td(function(){tn(void 0)});l.useImperativeHandle(t,function(){return{list:Le.current,focus:function(zt){var vt,_n=$n(),jt=rx(_n,Ke),Nt=jt.elements,dn=jt.key2element,Yn=jt.element2key,or=jS(Le.current,Nt),lr=Bt??(or[0]?Yn.get(or[0]):(vt=we.find(function(St){return!St.props.disabled}))===null||vt===void 0?void 0:vt.key),Ir=dn.get(lr);if(lr&&Ir){var Mr;Ir==null||(Mr=Ir.focus)===null||Mr===void 0||Mr.call(Ir,zt)}}}});var kt=Wn(D||[],{value:F,postState:function(zt){return Array.isArray(zt)?zt:zt==null?is:[zt]}}),Ft=ue(kt,2),nn=Ft[0],Nn=Ft[1],hr=function(zt){if(L){var vt=zt.key,_n=nn.includes(vt),jt;j?_n?jt=nn.filter(function(dn){return dn!==vt}):jt=[].concat(Ae(nn),[vt]):jt=[vt],Nn(jt);var Nt=te(te({},zt),{},{selectedKeys:jt});_n?A==null||A(Nt):U==null||U(Nt)}!j&&ye.length&&nt!=="inline"&&_e(is)},Ur=Td(function(Sn){de==null||de(ug(Sn)),hr(Sn)}),gr=Td(function(Sn,zt){var vt=ye.filter(function(jt){return jt!==Sn});if(zt)vt.push(Sn);else if(nt!=="inline"){var _n=En(Sn);vt=vt.filter(function(jt){return!_n.has(jt)})}no(ye,vt,!0)||_e(vt,!0)}),Bn=function(zt,vt){var _n=vt??!ye.includes(zt);gr(zt,_n)},Wr=W7(nt,Bt,Fe,Ke,Le,$n,gn,tn,Bn,me);l.useEffect(function(){Xe(!0)},[]);var qr=l.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:Ee}},[xe,Ee]),ir=nt!=="horizontal"||E?we:we.map(function(Sn,zt){return l.createElement(gf,{key:Sn.key,overflowDisabled:zt>Ht},Sn)}),Yr=l.createElement(Di,Me({id:x,ref:Le,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Tf,className:ce(o,"".concat(o,"-root"),"".concat(o,"-").concat(nt),f,X(X({},"".concat(o,"-inline-collapsed"),tt),"".concat(o,"-rtl"),Fe),s),dir:b,style:u,role:"menu",tabIndex:h,data:ir,renderRawItem:function(zt){return zt},renderRawRest:function(zt){var vt=zt.length,_n=vt?we.slice(-vt):null;return l.createElement(av,{eventKey:ax,title:oe,disabled:xt,internalPopupClose:vt===0,popupClassName:le},_n)},maxCount:nt!=="horizontal"||E?Di.INVALIDATE:Di.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(zt){wt(zt)},onKeyDown:Wr},je));return l.createElement(MS.Provider,{value:qr},l.createElement(EM.Provider,{value:Ke},l.createElement(gf,{prefixCls:o,rootClassName:s,mode:nt,openKeys:ye,rtl:Fe,disabled:$,motion:Ye?Y:null,defaultMotions:Ye?W:null,activeKey:Bt,onActive:bn,onInactive:On,selectedKeys:nn,inlineIndent:q,subMenuOpenDelay:O,subMenuCloseDelay:T,forceSubMenuRender:P,builtinPlacements:ae,triggerSubMenuAction:Z,getPopupContainer:ie,itemIcon:J,expandIcon:se,onItemClick:Ur,onOpenChange:gr},l.createElement(NM.Provider,{value:Rt},Yr),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(IM.Provider,{value:at},Re)))))}),lu=y9;lu.Item=Tf;lu.SubMenu=av;lu.ItemGroup=AS;lu.Divider=kS;var x9={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},S9=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:x9}))},C9=l.forwardRef(S9);const kM=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),w9=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:s,headerColor:u,footerPadding:f,fontSize:d,bodyBg:h,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:s,color:u,lineHeight:ne(o),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:d,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},AM=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:s,colorTextLightSolid:u,colorBgContainer:f}=e,d=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${d}px`,headerColor:a,footerPadding:`${o}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:a}},zM=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],LM=Kn("Layout",e=>[w9(e)],AM,{deprecatedTokens:zM}),$9=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:s,triggerColor:u,triggerBg:f,headerHeight:d,zeroTriggerWidth:h,zeroTriggerHeight:g,borderRadiusLG:v,lightSiderBg:b,lightTriggerColor:x,lightTriggerBg:C,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:u,lineHeight:ne(s),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:d,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ne(v)} ${ne(v)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderRadius:`${ne(v)} 0 0 ${ne(v)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:x,background:C},[`${t}-zero-width-trigger`]:{color:x,background:C,border:`1px solid ${y}`,borderInlineStart:0}}}}},E9=Kn(["Layout","Sider"],e=>[$9(e)],AM,{deprecatedTokens:zM});var _9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const z2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O9=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),iv=l.createContext({}),I9=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),HM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:s=!1,theme:u="dark",style:f={},collapsible:d=!1,reverseArrow:h=!1,width:g=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:x,onCollapse:C,onBreakpoint:y}=e,w=_9(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=l.useContext(kM),[E,I]=l.useState("collapsed"in e?e.collapsed:s),[O,R]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const T=(J,se)=>{"collapsed"in e||I(J),C==null||C(J,se)},{getPrefixCls:P,direction:N}=l.useContext(Yt),k=P("layout-sider",n),[z,V,B]=E9(k),L=l.useRef(null);L.current=J=>{R(J.matches),y==null||y(J.matches),E!==J.matches&&T(J.matches,"responsive")},l.useEffect(()=>{function J(he){return L.current(he)}let se;if(typeof window<"u"){const{matchMedia:he}=window;if(he&&x&&x in z2){se=he(`screen and (max-width: ${z2[x]})`);try{se.addEventListener("change",J)}catch{se.addListener(J)}J(se)}}return()=>{try{se==null||se.removeEventListener("change",J)}catch{se==null||se.removeListener(J)}}},[x]),l.useEffect(()=>{const J=I9("ant-sider-");return $.addSider(J),()=>$.removeSider(J)},[]);const H=()=>{T(!E,"clickTrigger")},j=tr(w,["collapsed"]),D=E?v:g,F=O9(D)?`${D}px`:String(D),U=parseFloat(String(v||0))===0?l.createElement("span",{onClick:H,className:ce(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${h?"right":"left"}`),style:b},a||l.createElement(C9,null)):null,A=N==="rtl"==!h,Y={expanded:A?l.createElement(df,null):l.createElement(hf,null),collapsed:A?l.createElement(hf,null):l.createElement(df,null)}[E?"collapsed":"expanded"],W=a!==null?U||l.createElement("div",{className:`${k}-trigger`,onClick:H,style:{width:F}},a||Y):null,Q=Object.assign(Object.assign({},f),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Z=ce(k,`${k}-${u}`,{[`${k}-collapsed`]:!!E,[`${k}-has-trigger`]:d&&a!==null&&!U,[`${k}-below`]:!!O,[`${k}-zero-width`]:parseFloat(F)===0},r,V,B),ae=l.useMemo(()=>({siderCollapsed:E}),[E]);return z(l.createElement(iv.Provider,{value:ae},l.createElement("aside",Object.assign({className:Z},j,{style:Q,ref:t}),l.createElement("div",{className:`${k}-children`},o),d||O&&U?W:null)))});var R9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},N9=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:R9}))},zS=l.forwardRef(N9);const dg=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var M9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const BM=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=M9(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(Yt),s=o("menu",t),u=ce({[`${s}-item-divider-dashed`]:!!r},n);return l.createElement(kS,Object.assign({className:u},a))},FM=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:s,extra:u}=e,{prefixCls:f,firstLevel:d,direction:h,disableMenuItemTitleTooltip:g,inlineCollapsed:v}=l.useContext(dg),b=E=>{const I=r==null?void 0:r[0],O=l.createElement("span",{className:ce(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!u||u===0})},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&E&&d&&typeof I=="string"?l.createElement("div",{className:`${f}-inline-collapsed-noicon`},I.charAt(0)):O},{siderCollapsed:x}=l.useContext(iv);let C=o;typeof o>"u"?C=d?r:"":o===!1&&(C="");const y={title:C};!x&&!v&&(y.title=null,y.open=!1);const w=_a(r).length;let $=l.createElement(Tf,Object.assign({},tr(e,["title","icon","danger"]),{className:ce({[`${f}-item-danger`]:s,[`${f}-item-only-child`]:(a?w+1:w)===1},n),title:typeof o=="string"?o:void 0}),pa(a,{className:ce(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${f}-item-icon`)}),b(v));return g||($=l.createElement(bi,Object.assign({},y,{placement:h==="rtl"?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),$)),$};var j9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fg=l.createContext(null),VM=l.forwardRef((e,t)=>{const{children:n}=e,r=j9(e,["children"]),a=l.useContext(fg),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=c3(n),u=Pl(t,s?kl(n):null);return l.createElement(fg.Provider,{value:o},l.createElement(jl,{space:!0},s?l.cloneElement(n,{ref:u}):n))}),T9=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:s,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ne(o)} ${s} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},D9=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ne(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ne(n)})`}}}}},L2=e=>Object.assign({},ao(e)),H2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:s,itemBg:u,subMenuItemBg:f,itemSelectedBg:d,activeBarHeight:h,activeBarWidth:g,activeBarBorderWidth:v,motionDurationSlow:b,motionEaseInOut:x,motionEaseOut:C,itemPaddingInline:y,motionDurationMid:w,itemHoverColor:$,lineType:E,colorSplit:I,itemDisabledColor:O,dangerItemColor:R,dangerItemHoverColor:T,dangerItemSelectedColor:P,dangerItemActiveBg:N,dangerItemSelectedBg:k,popupBg:z,itemHoverBg:V,itemActiveBg:B,menuSubMenuBg:L,horizontalItemSelectedColor:H,horizontalItemSelectedBg:j,horizontalItemBorderRadius:D,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},L2(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},L2(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:V},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:V},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:R,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:z},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:z},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${ne(h)} solid transparent`,transition:`border-color ${b} ${x}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:h,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:h,borderBottomColor:H}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ne(v)} ${E} ${I}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ne(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${C}`,`opacity ${w} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${x}`,`opacity ${w} ${x}`].join(",")}}}}}},B2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:s,itemMarginBlock:u,itemWidth:f,itemPaddingInline:d}=e,h=e.calc(o).add(a).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ne(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:f},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ne(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:h}}},P9=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:s,motionEaseOut:u,paddingXL:f,itemMarginInline:d,fontSizeLG:h,motionDurationFast:g,motionDurationSlow:v,paddingXS:b,boxShadowSecondary:x,collapsedWidth:C,collapsedIconSize:y}=e,w={height:r,lineHeight:ne(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},B2(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},B2(e)),{boxShadow:x})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ne(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${v}`,`background ${v}`,`padding ${g} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:h,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ne(e.calc(y).div(2).equal())} - ${ne(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:ne(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ai),{paddingInline:b})}}]},F2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:s,iconSize:u,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Qc()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},V2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ne(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ne(s)})`}}}}},k9=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:s,paddingXS:u,padding:f,colorSplit:d,lineWidth:h,zIndexPopup:g,borderRadiusLG:v,subMenuItemBorderRadius:b,menuArrowSize:x,menuArrowOffset:C,lineType:y,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},ro()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),ro()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ne(u)} ${ne(f)}`,fontSize:$,lineHeight:w,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${s}`,`background ${a} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${s}`,`background ${a} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${s}`,`padding ${a} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:y,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}}}),F2(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ne(e.calc(r).mul(2).equal())} ${ne(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:v},F2(e)),V2(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${s}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),V2(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ne(C)})`},"&::after":{transform:`rotate(45deg) translateX(${ne(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ne(e.calc(x).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ne(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ne(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},A9=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:s,colorErrorBg:u,colorText:f,colorTextDescription:d,colorBgContainer:h,colorFillAlter:g,colorFillContent:v,lineWidth:b,lineWidthBold:x,controlItemBgActive:C,colorBgTextHover:y,controlHeightLG:w,lineHeight:$,colorBgElevated:E,marginXXS:I,padding:O,fontSize:R,controlHeightSM:T,fontSizeLG:P,colorTextLightSolid:N,colorErrorHover:k}=e,z=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,V=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:b,B=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,L=new Mn(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:f,itemColor:f,colorItemTextHover:f,itemHoverColor:f,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:h,itemBg:h,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:v,itemActiveBg:C,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:z,colorActiveBarHeight:x,activeBarHeight:x,colorActiveBarBorderSize:b,activeBarBorderWidth:V,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:$,collapsedWidth:w*2,popupBg:E,itemMarginBlock:I,itemPaddingInline:O,horizontalLineHeight:`${w*1.15}px`,iconSize:R,iconMarginInlineEnd:T-R,collapsedIconSize:P,groupTitleFontSize:R,darkItemDisabledColor:new Mn(N).setA(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:N,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:o,itemWidth:z?`calc(100% + ${V}px)`:`calc(100% - ${B*2}px)`}},z9=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Kn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:s,fontSize:u,darkItemColor:f,darkDangerItemColor:d,darkItemBg:h,darkSubMenuItemBg:g,darkItemSelectedColor:v,darkItemSelectedBg:b,darkDangerItemSelectedBg:x,darkItemHoverBg:C,darkGroupTitleColor:y,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:O,popupBg:R,darkPopupBg:T}=a,P=a.calc(u).div(7).mul(5).equal(),N=yn(a,{menuArrowSize:P,menuHorizontalHeight:a.calc(s).mul(1.15).equal(),menuArrowOffset:a.calc(P).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:R}),k=yn(N,{itemColor:f,itemHoverColor:w,groupTitleColor:y,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:h,popupBg:T,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:$,dangerItemColor:d,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:O,dangerItemSelectedBg:x,menuSubMenuBg:g,horizontalItemSelectedColor:v,horizontalItemSelectedBg:b});return[k9(N),T9(N),P9(N),H2(N,"light"),H2(k,"dark"),D9(N),zg(N),io(N,"slide-up"),io(N,"slide-down"),mS(N,"zoom-big")]},A9,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}),KM=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,s=l.useContext(dg),{prefixCls:u,inlineCollapsed:f,theme:d}=s,h=ou();let g;if(!r)g=f&&!h.length&&a&&typeof a=="string"?l.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${u}-title-content`},a);else{const x=l.isValidElement(a)&&a.type==="span";g=l.createElement(l.Fragment,null,pa(r,{className:ce(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${u}-item-icon`)}),x?a:l.createElement("span",{className:`${u}-title-content`},a))}const v=l.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[b]=tu("Menu");return l.createElement(dg.Provider,{value:v},l.createElement(av,Object.assign({},tr(e,["icon"]),{title:g,popupClassName:ce(u,n,`${u}-${o||d}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))};var L9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function vy(e){return e===null||e===!1}const H9={item:FM,submenu:KM,divider:BM},B9=l.forwardRef((e,t)=>{var n;const r=l.useContext(fg),a=r||{},{getPrefixCls:o,getPopupContainer:s,direction:u,menu:f}=l.useContext(Yt),d=o(),{prefixCls:h,className:g,style:v,theme:b="light",expandIcon:x,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:y,siderCollapsed:w,rootClassName:$,mode:E,selectable:I,onClick:O,overflowedIndicatorPopupClassName:R}=e,T=L9(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=tr(T,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const N=pn(function(){var q;O==null||O.apply(void 0,arguments),(q=a.onClick)===null||q===void 0||q.call(a)}),k=a.mode||E,z=I??a.selectable,V=y??w,B={horizontal:{motionName:`${d}-slide-up`},inline:cf(d),other:{motionName:`${d}-zoom-big`}},L=o("menu",h||a.prefixCls),H=ta(L),[j,D,F]=z9(L,H,!r),U=ce(`${L}-${b}`,f==null?void 0:f.className,g),A=l.useMemo(()=>{var q,Y;if(typeof x=="function"||vy(x))return x||null;if(typeof a.expandIcon=="function"||vy(a.expandIcon))return a.expandIcon||null;if(typeof(f==null?void 0:f.expandIcon)=="function"||vy(f==null?void 0:f.expandIcon))return(f==null?void 0:f.expandIcon)||null;const W=(q=x??(a==null?void 0:a.expandIcon))!==null&&q!==void 0?q:f==null?void 0:f.expandIcon;return pa(W,{className:ce(`${L}-submenu-expand-icon`,l.isValidElement(W)?(Y=W.props)===null||Y===void 0?void 0:Y.className:void 0)})},[x,a==null?void 0:a.expandIcon,f==null?void 0:f.expandIcon,L]),K=l.useMemo(()=>({prefixCls:L,inlineCollapsed:V||!1,direction:u,firstLevel:!0,theme:b,mode:k,disableMenuItemTitleTooltip:C}),[L,V,u,C,b]);return j(l.createElement(fg.Provider,{value:null},l.createElement(dg.Provider,{value:K},l.createElement(lu,Object.assign({getPopupContainer:s,overflowedIndicator:l.createElement(zS,null),overflowedIndicatorPopupClassName:ce(L,`${L}-${b}`,R),mode:k,selectable:z,onClick:N},P,{inlineCollapsed:V,style:Object.assign(Object.assign({},f==null?void 0:f.style),v),className:U,prefixCls:L,direction:u,defaultMotions:B,expandIcon:A,ref:t,rootClassName:ce($,D,a.rootClassName,F,H),_internalComponents:H9})))))}),Rs=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(iv);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(B9,Object.assign({ref:n},e,r))});Rs.Item=FM;Rs.SubMenu=KM;Rs.Divider=BM;Rs.ItemGroup=AS;const F9=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},V9=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:s,iconCls:u,motionDurationMid:f,paddingBlock:d,fontSize:h,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:b,controlPaddingHorizontal:x,colorBgElevated:C}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${u}-down, & > ${s}-btn-icon > ${u}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${u}-down`]:{fontSize:b},[`${u}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
          &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
          &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
          &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Hg},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
          &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
          &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
          &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fg},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
          &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
          &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Bg},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
          &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
          &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Vg}}},yM(e,C,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Ln(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Bo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ne(d)} ${ne(x)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:h,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ne(d)} ${ne(x)}`,color:e.colorText,fontWeight:"normal",fontSize:h,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Bo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:b,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ne(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(x).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[io(e,"slide-up"),io(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down"),mS(e,"zoom-big")]]},K9=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},NS({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),RS(e)),U9=Kn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=yn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[V9(o),F9(o)]},K9,{resetStyle:!1}),ov=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:s,disabled:u,dropdownRender:f,getPopupContainer:d,overlayClassName:h,rootClassName:g,overlayStyle:v,open:b,onOpenChange:x,visible:C,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:$=.1,autoAdjustOverflow:E=!0,placement:I="",overlay:O,transitionName:R}=e,{getPopupContainer:T,getPrefixCls:P,direction:N,dropdown:k}=l.useContext(Yt);Al();const z=l.useMemo(()=>{const ie=P();return R!==void 0?R:I.includes("top")?`${ie}-slide-down`:`${ie}-slide-up`},[P,I,R]),V=l.useMemo(()=>I?I.includes("Center")?I.slice(0,I.indexOf("Center")):I:N==="rtl"?"bottomRight":"bottomLeft",[I,N]),B=P("dropdown",a),L=ta(B),[H,j,D]=U9(B,L),[,F]=Ra(),U=l.Children.only(z7(o)?l.createElement("span",null,o):o),A=pa(U,{className:ce(`${B}-trigger`,{[`${B}-rtl`]:N==="rtl"},U.props.className),disabled:(t=U.props.disabled)!==null&&t!==void 0?t:u}),K=u?[]:s,q=!!(K!=null&&K.includes("contextMenu")),[Y,W]=Wn(!1,{value:b??C}),Q=pn(ie=>{x==null||x(ie,{source:"trigger"}),y==null||y(ie),W(ie)}),Z=ce(h,g,j,D,L,k==null?void 0:k.className,{[`${B}-rtl`]:N==="rtl"}),ae=xM({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),J=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(x==null||x(!1,{source:"menu"}),W(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),se=()=>{let ie;return n!=null&&n.items?ie=l.createElement(Rs,Object.assign({},n)):typeof O=="function"?ie=O():ie=O,f&&(ie=f(ie)),ie=l.Children.only(typeof ie=="string"?l.createElement("span",null,ie):ie),l.createElement(VM,{prefixCls:`${B}-menu`,rootClassName:ce(D,L),expandIcon:l.createElement("span",{className:`${B}-menu-submenu-arrow`},N==="rtl"?l.createElement(hf,{className:`${B}-menu-submenu-arrow-icon`}):l.createElement(df,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:de=>{let{mode:ge}=de}},ie)},[he,oe]=tu("Dropdown",v==null?void 0:v.zIndex);let le=l.createElement($M,Object.assign({alignPoint:q},tr(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:$,visible:Y,builtinPlacements:ae,arrow:!!r,overlayClassName:Z,prefixCls:B,getPopupContainer:d||T,transitionName:z,trigger:K,overlay:se,placement:V,onVisibleChange:Q,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),v),{zIndex:he})}),A);return he&&(le=l.createElement(cS.Provider,{value:oe},le)),H(le)},W9=Zg(ov,"align",void 0,"dropdown",e=>e),q9=e=>l.createElement(W9,Object.assign({},e),l.createElement("span",null));ov._InternalPanelDoNotUseOrYouWillBeFired=q9;var Lh={exports:{}},Y9=Lh.exports,K2;function G9(){return K2||(K2=1,(function(e,t){(function(n,r){e.exports=r()})(Y9,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",u="minute",f="hour",d="day",h="week",g="month",v="quarter",b="year",x="date",C="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var H=["th","st","nd","rd"],j=L%100;return"["+L+(H[(j-20)%10]||H[j]||H[0])+"]"}},E=function(L,H,j){var D=String(L);return!D||D.length>=H?L:""+Array(H+1-D.length).join(j)+L},I={s:E,z:function(L){var H=-L.utcOffset(),j=Math.abs(H),D=Math.floor(j/60),F=j%60;return(H<=0?"+":"-")+E(D,2,"0")+":"+E(F,2,"0")},m:function L(H,j){if(H.date()<j.date())return-L(j,H);var D=12*(j.year()-H.year())+(j.month()-H.month()),F=H.clone().add(D,g),U=j-F<0,A=H.clone().add(D+(U?-1:1),g);return+(-(D+(j-F)/(U?F-A:A-F))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:g,y:b,w:h,d,D:x,h:f,m:u,s,ms:o,Q:v}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},O="en",R={};R[O]=$;var T="$isDayjsObject",P=function(L){return L instanceof V||!(!L||!L[T])},N=function L(H,j,D){var F;if(!H)return O;if(typeof H=="string"){var U=H.toLowerCase();R[U]&&(F=U),j&&(R[U]=j,F=U);var A=H.split("-");if(!F&&A.length>1)return L(A[0])}else{var K=H.name;R[K]=H,F=K}return!D&&F&&(O=F),F||!D&&O},k=function(L,H){if(P(L))return L.clone();var j=typeof H=="object"?H:{};return j.date=L,j.args=arguments,new V(j)},z=I;z.l=N,z.i=P,z.w=function(L,H){return k(L,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var V=(function(){function L(j){this.$L=N(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[T]=!0}var H=L.prototype;return H.parse=function(j){this.$d=(function(D){var F=D.date,U=D.utc;if(F===null)return new Date(NaN);if(z.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var A=F.match(y);if(A){var K=A[2]-1||0,q=(A[7]||"0").substring(0,3);return U?new Date(Date.UTC(A[1],K,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)):new Date(A[1],K,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)}}return new Date(F)})(j),this.init()},H.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},H.$utils=function(){return z},H.isValid=function(){return this.$d.toString()!==C},H.isSame=function(j,D){var F=k(j);return this.startOf(D)<=F&&F<=this.endOf(D)},H.isAfter=function(j,D){return k(j)<this.startOf(D)},H.isBefore=function(j,D){return this.endOf(D)<k(j)},H.$g=function(j,D,F){return z.u(j)?this[D]:this.set(F,j)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(j,D){var F=this,U=!!z.u(D)||D,A=z.p(j),K=function(se,he){var oe=z.w(F.$u?Date.UTC(F.$y,he,se):new Date(F.$y,he,se),F);return U?oe:oe.endOf(d)},q=function(se,he){return z.w(F.toDate()[se].apply(F.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(he)),F)},Y=this.$W,W=this.$M,Q=this.$D,Z="set"+(this.$u?"UTC":"");switch(A){case b:return U?K(1,0):K(31,11);case g:return U?K(1,W):K(0,W+1);case h:var ae=this.$locale().weekStart||0,J=(Y<ae?Y+7:Y)-ae;return K(U?Q-J:Q+(6-J),W);case d:case x:return q(Z+"Hours",0);case f:return q(Z+"Minutes",1);case u:return q(Z+"Seconds",2);case s:return q(Z+"Milliseconds",3);default:return this.clone()}},H.endOf=function(j){return this.startOf(j,!1)},H.$set=function(j,D){var F,U=z.p(j),A="set"+(this.$u?"UTC":""),K=(F={},F[d]=A+"Date",F[x]=A+"Date",F[g]=A+"Month",F[b]=A+"FullYear",F[f]=A+"Hours",F[u]=A+"Minutes",F[s]=A+"Seconds",F[o]=A+"Milliseconds",F)[U],q=U===d?this.$D+(D-this.$W):D;if(U===g||U===b){var Y=this.clone().set(x,1);Y.$d[K](q),Y.init(),this.$d=Y.set(x,Math.min(this.$D,Y.daysInMonth())).$d}else K&&this.$d[K](q);return this.init(),this},H.set=function(j,D){return this.clone().$set(j,D)},H.get=function(j){return this[z.p(j)]()},H.add=function(j,D){var F,U=this;j=Number(j);var A=z.p(D),K=function(W){var Q=k(U);return z.w(Q.date(Q.date()+Math.round(W*j)),U)};if(A===g)return this.set(g,this.$M+j);if(A===b)return this.set(b,this.$y+j);if(A===d)return K(1);if(A===h)return K(7);var q=(F={},F[u]=r,F[f]=a,F[s]=n,F)[A]||1,Y=this.$d.getTime()+j*q;return z.w(Y,this)},H.subtract=function(j,D){return this.add(-1*j,D)},H.format=function(j){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||C;var U=j||"YYYY-MM-DDTHH:mm:ssZ",A=z.z(this),K=this.$H,q=this.$m,Y=this.$M,W=F.weekdays,Q=F.months,Z=F.meridiem,ae=function(he,oe,le,ie){return he&&(he[oe]||he(D,U))||le[oe].slice(0,ie)},J=function(he){return z.s(K%12||12,he,"0")},se=Z||function(he,oe,le){var ie=he<12?"AM":"PM";return le?ie.toLowerCase():ie};return U.replace(w,(function(he,oe){return oe||(function(le){switch(le){case"YY":return String(D.$y).slice(-2);case"YYYY":return z.s(D.$y,4,"0");case"M":return Y+1;case"MM":return z.s(Y+1,2,"0");case"MMM":return ae(F.monthsShort,Y,Q,3);case"MMMM":return ae(Q,Y);case"D":return D.$D;case"DD":return z.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ae(F.weekdaysMin,D.$W,W,2);case"ddd":return ae(F.weekdaysShort,D.$W,W,3);case"dddd":return W[D.$W];case"H":return String(K);case"HH":return z.s(K,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return se(K,q,!0);case"A":return se(K,q,!1);case"m":return String(q);case"mm":return z.s(q,2,"0");case"s":return String(D.$s);case"ss":return z.s(D.$s,2,"0");case"SSS":return z.s(D.$ms,3,"0");case"Z":return A}return null})(he)||A.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(j,D,F){var U,A=this,K=z.p(D),q=k(j),Y=(q.utcOffset()-this.utcOffset())*r,W=this-q,Q=function(){return z.m(A,q)};switch(K){case b:U=Q()/12;break;case g:U=Q();break;case v:U=Q()/3;break;case h:U=(W-Y)/6048e5;break;case d:U=(W-Y)/864e5;break;case f:U=W/a;break;case u:U=W/r;break;case s:U=W/n;break;default:U=W}return F?U:z.a(U)},H.daysInMonth=function(){return this.endOf(g).$D},H.$locale=function(){return R[this.$L]},H.locale=function(j,D){if(!j)return this.$L;var F=this.clone(),U=N(j,D,!0);return U&&(F.$L=U),F},H.clone=function(){return z.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},L})(),B=V.prototype;return k.prototype=B,[["$ms",o],["$s",s],["$m",u],["$H",f],["$W",d],["$M",g],["$y",b],["$D",x]].forEach((function(L){B[L[1]]=function(H){return this.$g(H,L[0],L[1])}})),k.extend=function(L,H){return L.$i||(L(H,V,k),L.$i=!0),k},k.locale=N,k.isDayjs=P,k.unix=function(L){return k(1e3*L)},k.en=R[O],k.Ls=R,k.p={},k}))})(Lh)),Lh.exports}var X9=G9();const za=Fi(X9);var Hh={exports:{}},Q9=Hh.exports,U2;function Z9(){return U2||(U2=1,(function(e,t){(function(n,r){e.exports=r()})(Q9,(function(){return function(n,r){r.prototype.weekday=function(a){var o=this.$locale().weekStart||0,s=this.$W,u=(s<o?s+7:s)-o;return this.$utils().u(a)?u:this.subtract(u,"day").add(a,"day")}}}))})(Hh)),Hh.exports}var J9=Z9();const eV=Fi(J9);var Bh={exports:{}},tV=Bh.exports,W2;function nV(){return W2||(W2=1,(function(e,t){(function(n,r){e.exports=r()})(tV,(function(){return function(n,r,a){var o=r.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,v,b,x,C){var y=g.name?g:g.$locale(),w=s(y[v]),$=s(y[b]),E=w||$.map((function(O){return O.slice(0,x)}));if(!C)return E;var I=y.weekStart;return E.map((function(O,R){return E[(R+(I||0))%7]}))},f=function(){return a.Ls[a.locale()]},d=function(g,v){return g.formats[v]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,C,y){return C||y.slice(1)}))})(g.formats[v.toUpperCase()])},h=function(){var g=this;return{months:function(v){return v?v.format("MMMM"):u(g,"months")},monthsShort:function(v){return v?v.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(g,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(g.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return h.bind(this)()},a.localeData=function(){var g=f();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(v){return d(g,v)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(f(),"months")},a.monthsShort=function(){return u(f(),"monthsShort","months",3)},a.weekdays=function(g){return u(f(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(f(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(f(),"weekdaysMin","weekdays",2,g)}}}))})(Bh)),Bh.exports}var rV=nV();const aV=Fi(rV);var Fh={exports:{}},iV=Fh.exports,q2;function oV(){return q2||(q2=1,(function(e,t){(function(n,r){e.exports=r()})(iV,(function(){var n="week",r="year";return function(a,o,s){var u=o.prototype;u.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),g=s(this).endOf(n);if(h.isBefore(g))return 1}var v=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),b=this.diff(v,n,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},u.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Fh)),Fh.exports}var lV=oV();const sV=Fi(lV);var Vh={exports:{}},cV=Vh.exports,Y2;function uV(){return Y2||(Y2=1,(function(e,t){(function(n,r){e.exports=r()})(cV,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),s=this.year();return o===1&&a===11?s+1:a===0&&o>=52?s-1:s}}}))})(Vh)),Vh.exports}var dV=uV();const fV=Fi(dV);var Kh={exports:{}},mV=Kh.exports,G2;function hV(){return G2||(G2=1,(function(e,t){(function(n,r){e.exports=r()})(mV,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return o.bind(this)(s);var d=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return o.bind(this)(h)}}}))})(Kh)),Kh.exports}var gV=hV();const vV=Fi(gV);var Uh={exports:{}},pV=Uh.exports,X2;function bV(){return X2||(X2=1,(function(e,t){(function(n,r){e.exports=r()})(pV,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,f={},d=function(y){return(y=+y)+(y>68?1900:2e3)},h=function(y){return function(w){this[y]=+w}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var $=w.match(/([+-]|\d\d)/g),E=60*$[1]+(+$[2]||0);return E===0?0:$[0]==="+"?-E:E})(y)}],v=function(y){var w=f[y];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(y,w){var $,E=f.meridiem;if(E){for(var I=1;I<=24;I+=1)if(y.indexOf(E(I,0,w))>-1){$=I>12;break}}else $=y===(w?"pm":"PM");return $},x={A:[u,function(y){this.afternoon=b(y,!1)}],a:[u,function(y){this.afternoon=b(y,!0)}],Q:[a,function(y){this.month=3*(y-1)+1}],S:[a,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[o,h("day")],Do:[u,function(y){var w=f.ordinal,$=y.match(/\d+/);if(this.day=$[0],w)for(var E=1;E<=31;E+=1)w(E).replace(/\[|\]/g,"")===y&&(this.day=E)}],w:[s,h("week")],ww:[o,h("week")],M:[s,h("month")],MM:[o,h("month")],MMM:[u,function(y){var w=v("months"),$=(v("monthsShort")||w.map((function(E){return E.slice(0,3)}))).indexOf(y)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[u,function(y){var w=v("months").indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(y){this.year=d(y)}],YYYY:[/\d{4}/,h("year")],Z:g,ZZ:g};function C(y){var w,$;w=y,$=f&&f.formats;for(var E=(y=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,z,V){var B=V&&V.toUpperCase();return z||$[V]||n[V]||$[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,H,j){return H||j.slice(1)}))}))).match(r),I=E.length,O=0;O<I;O+=1){var R=E[O],T=x[R],P=T&&T[0],N=T&&T[1];E[O]=N?{regex:P,parser:N}:R.replace(/^\[|\]$/g,"")}return function(k){for(var z={},V=0,B=0;V<I;V+=1){var L=E[V];if(typeof L=="string")B+=L.length;else{var H=L.regex,j=L.parser,D=k.slice(B),F=H.exec(D)[0];j.call(z,F),k=k.replace(F,"")}}return(function(U){var A=U.afternoon;if(A!==void 0){var K=U.hours;A?K<12&&(U.hours+=12):K===12&&(U.hours=0),delete U.afternoon}})(z),z}}return function(y,w,$){$.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var E=w.prototype,I=E.parse;E.parse=function(O){var R=O.date,T=O.utc,P=O.args;this.$u=T;var N=P[1];if(typeof N=="string"){var k=P[2]===!0,z=P[3]===!0,V=k||z,B=P[2];z&&(B=P[2]),f=this.$locale(),!k&&B&&(f=$.Ls[B]),this.$d=(function(D,F,U,A){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*D);var K=C(F)(D),q=K.year,Y=K.month,W=K.day,Q=K.hours,Z=K.minutes,ae=K.seconds,J=K.milliseconds,se=K.zone,he=K.week,oe=new Date,le=W||(q||Y?1:oe.getDate()),ie=q||oe.getFullYear(),de=0;q&&!Y||(de=Y>0?Y-1:oe.getMonth());var ge,me=Q||0,xe=Z||0,Ee=ae||0,He=J||0;return se?new Date(Date.UTC(ie,de,le,me,xe,Ee,He+60*se.offset*1e3)):U?new Date(Date.UTC(ie,de,le,me,xe,Ee,He)):(ge=new Date(ie,de,le,me,xe,Ee,He),he&&(ge=A(ge).week(he).toDate()),ge)}catch{return new Date("")}})(R,N,T,$),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),V&&R!=this.format(N)&&(this.$d=new Date("")),f={}}else if(N instanceof Array)for(var L=N.length,H=1;H<=L;H+=1){P[1]=N[H-1];var j=$.apply(this,P);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}H===L&&(this.$d=new Date(""))}else I.call(this,O)}}}))})(Uh)),Uh.exports}var yV=bV();const xV=Fi(yV);za.extend(xV);za.extend(vV);za.extend(eV);za.extend(aV);za.extend(sV);za.extend(fV);za.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var s=(o||"").replace("Wo","wo");return r.bind(this)(s)}});var SV={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},os=function(t){var n=SV[t];return n||t.split("_")[0]},CV={getNow:function(){var t=za();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return za(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return za().locale(os(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(os(t)).weekday(0)},getWeek:function(t,n){return n.locale(os(t)).week()},getShortWeekDays:function(t){return za().locale(os(t)).localeData().weekdaysMin()},getShortMonths:function(t){return za().locale(os(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(os(t)).format(r)},parse:function(t,n,r){for(var a=os(t),o=0;o<r.length;o+=1){var s=r[o],u=n;if(s.includes("wo")||s.includes("Wo")){for(var f=u.split("-")[0],d=u.split("-")[1],h=za(f,"YYYY").startOf("year").locale(a),g=0;g<=52;g+=1){var v=h.add(g,"week");if(v.format("Wo")===d)return v}return null}var b=za(u,s,!0).locale(a);if(b.isValid())return b}return null}}};function wV(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Vi=l.createContext(null),$V={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function UM(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,o=e.transitionName,s=e.getPopupContainer,u=e.children,f=e.range,d=e.placement,h=e.builtinPlacements,g=h===void 0?$V:h,v=e.direction,b=e.visible,x=e.onClose,C=l.useContext(Vi),y=C.prefixCls,w="".concat(y,"-dropdown"),$=wV(d,v==="rtl");return l.createElement(jf,{showAction:[],hideAction:["click"],popupPlacement:$,builtinPlacements:g,prefixCls:w,popupTransitionName:o,popup:t,popupAlign:a,popupVisible:b,popupClassName:ce(r,X(X({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),v==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(I){I||x()}},u)}function LS(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function Ns(e){return e==null?[]:Array.isArray(e)?e:[e]}function Vd(e,t,n){var r=Ae(e);return r[t]=n,r}function lv(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function WM(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function qM(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(o){return e[o]});return r!==a?e[a]:void 0}function YM(e){return lv(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function HS(e,t,n,r){var a=l.useMemo(function(){return e||function(s,u){var f=s;return t&&u.type==="date"?t(f,u.today):n&&u.type==="month"?n(f,u.locale):u.originNode}},[e,n,t]),o=l.useCallback(function(s,u){return a(s,te(te({},u),{},{range:r}))},[a,r]);return o}function GM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=ue(r,2),o=a[0],s=a[1],u=function(h,g){s(function(v){return Vd(v,g,h)})},f=l.useMemo(function(){return o.map(function(d,h){if(d)return!0;var g=e[h];return g?!!(!n[h]&&!g||g&&t(g,{activeIndex:h})):!1})},[e,o,t,n]);return[f,u]}function XM(e,t,n,r,a){var o="",s=[];return e&&s.push(a?"hh":"HH"),t&&s.push("mm"),n&&s.push("ss"),o=s.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function EV(e,t,n,r,a,o){var s=e.fieldDateTimeFormat,u=e.fieldDateFormat,f=e.fieldTimeFormat,d=e.fieldMonthFormat,h=e.fieldYearFormat,g=e.fieldWeekFormat,v=e.fieldQuarterFormat,b=e.yearFormat,x=e.cellYearFormat,C=e.cellQuarterFormat,y=e.dayFormat,w=e.cellDateFormat,$=XM(t,n,r,a,o);return te(te({},e),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat($),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:f||$,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:h||"YYYY",fieldWeekFormat:g||"gggg-wo",fieldQuarterFormat:v||"YYYY-[Q]Q",yearFormat:b||"YYYY",cellYearFormat:x||"YYYY",cellQuarterFormat:C||"[Q]Q",cellDateFormat:w||y||"D"})}function QM(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,s=t.use12Hours;return Se.useMemo(function(){return EV(e,n,r,a,o,s)},[e,n,r,a,o,s])}function xd(e,t,n){return n??t.some(function(r){return e.includes(r)})}var _V=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function OV(e){var t=lv(e,_V),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=_t(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function IV(e){return e&&typeof e=="string"}function ZM(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function JM(e,t,n,r,a){var o=t,s=n,u=r;if(!e&&!o&&!s&&!u&&!a)o=!0,s=!0,u=!0;else if(e){var f,d,h,g=[o,s,u].some(function(x){return x===!1}),v=[o,s,u].some(function(x){return x===!0}),b=g?!0:!v;o=(f=o)!==null&&f!==void 0?f:b,s=(d=s)!==null&&d!==void 0?d:b,u=(h=u)!==null&&h!==void 0?h:b}return[o,s,u,a]}function ej(e){var t=e.showTime,n=OV(e),r=ue(n,2),a=r[0],o=r[1],s=t&&_t(t)==="object"?t:{},u=te(te({defaultOpenValue:s.defaultOpenValue||s.defaultValue},a),s),f=u.showMillisecond,d=u.showHour,h=u.showMinute,g=u.showSecond,v=ZM(d,h,g,f),b=JM(v,d,h,g,f),x=ue(b,3);return d=x[0],h=x[1],g=x[2],[u,te(te({},u),{},{showHour:d,showMinute:h,showSecond:g,showMillisecond:f}),u.format,o]}function tj(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var s=r,u=WM(e,a,null),f=u,d=[t,n],h=0;h<d.length;h+=1){var g=Ns(d[h])[0];if(IV(g)){f=g;break}}var v=s.showHour,b=s.showMinute,x=s.showSecond,C=s.showMillisecond,y=s.use12Hours,w=xd(f,["a","A","LT","LLL","LTS"],y),$=ZM(v,b,x,C);$||(v=xd(f,["H","h","k","LT","LLL"]),b=xd(f,["m","LT","LLL"]),x=xd(f,["s","LTS"]),C=xd(f,["SSS"]));var E=JM($,v,b,x,C),I=ue(E,3);v=I[0],b=I[1],x=I[2];var O=t||XM(v,b,x,C,w);return te(te({},s),{},{format:O,showHour:v,showMinute:b,showSecond:x,showMillisecond:C,use12Hours:w})}return null}function RV(e,t,n){if(t===!1)return null;var r=t&&_t(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var py=7;function zl(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function ox(e,t,n){return zl(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function $s(e,t,n){return zl(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Q2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function NV(e,t,n){return zl(t,n,function(){return $s(e,t,n)&&Q2(e,t)===Q2(e,n)})}function BS(e,t,n){return zl(t,n,function(){return $s(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function FS(e,t,n){return zl(t,n,function(){return $s(e,t,n)&&BS(e,t,n)&&e.getDate(t)===e.getDate(n)})}function nj(e,t,n){return zl(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function rj(e,t,n){return zl(t,n,function(){return FS(e,t,n)&&nj(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Dd(e,t,n,r){return zl(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return $s(e,a,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function $a(e,t,n,r,a){switch(a){case"date":return FS(e,n,r);case"week":return Dd(e,t.locale,n,r);case"month":return BS(e,n,r);case"quarter":return NV(e,n,r);case"year":return $s(e,n,r);case"decade":return ox(e,n,r);case"time":return nj(e,n,r);default:return rj(e,n,r)}}function sv(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function ch(e,t,n,r,a){return $a(e,t,n,r,a)?!0:e.isAfter(n,r)}function MV(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),o=t.getWeekDay(a),s=t.addDate(a,r-o);return t.getMonth(s)===t.getMonth(n)&&t.getDate(s)>1&&(s=t.addDate(s,-7)),s}function Zr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function mg(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(s,u){n?r=e[s](r,e[a[u]](n)):r=e[s](r,0)}),r}function jV(e,t,n,r,a){var o=pn(function(s,u){return!!(n&&n(s,u)||r&&e.isAfter(r,s)&&!$a(e,t,r,s,u.type)||a&&e.isAfter(s,a)&&!$a(e,t,a,s,u.type))});return o}function TV(e,t,n){return l.useMemo(function(){var r=WM(e,t,n),a=Ns(r),o=a[0],s=_t(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),s]},[e,t,n])}function DV(e,t,n){return typeof e[0]=="function"||n?!0:t}function PV(e,t,n,r){var a=pn(function(o,s){var u=te({type:t},s);if(delete u.activeIndex,!e.isValidate(o)||n&&n(o,u))return!0;if((t==="date"||t==="time")&&r){var f,d=s&&s.activeIndex===1?"end":"start",h=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,o,d,{from:u.from}))||{},g=h.disabledHours,v=h.disabledMinutes,b=h.disabledSeconds,x=h.disabledMilliseconds,C=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=g||C,E=v||y,I=b||w,O=e.getHour(o),R=e.getMinute(o),T=e.getSecond(o),P=e.getMillisecond(o);if($&&$().includes(O)||E&&E(O).includes(R)||I&&I(O,R).includes(T)||x&&x(O,R,T).includes(P))return!0}return!1});return a}function uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&Ns(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function aj(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,s=e.prefixCls,u=s===void 0?"rc-picker":s,f=e.styles,d=f===void 0?{}:f,h=e.classNames,g=h===void 0?{}:h,v=e.order,b=v===void 0?!0:v,x=e.components,C=x===void 0?{}:x,y=e.inputRender,w=e.allowClear,$=e.clearIcon,E=e.needConfirm,I=e.multiple,O=e.format,R=e.inputReadOnly,T=e.disabledDate,P=e.minDate,N=e.maxDate,k=e.showTime,z=e.value,V=e.defaultValue,B=e.pickerValue,L=e.defaultPickerValue,H=uh(z),j=uh(V),D=uh(B),F=uh(L),U=o==="date"&&k?"datetime":o,A=U==="time"||U==="datetime",K=A||I,q=E??A,Y=ej(e),W=ue(Y,4),Q=W[0],Z=W[1],ae=W[2],J=W[3],se=QM(r,Z),he=l.useMemo(function(){return tj(U,ae,J,Q,se)},[U,ae,J,Q,se]),oe=l.useMemo(function(){return te(te({},e),{},{prefixCls:u,locale:se,picker:o,styles:d,classNames:g,order:b,components:te({input:y},C),clearIcon:RV(u,w,$),showTime:he,value:H,defaultValue:j,pickerValue:D,defaultPickerValue:F},t==null?void 0:t())},[e]),le=TV(U,se,O),ie=ue(le,2),de=ie[0],ge=ie[1],me=DV(de,R,I),xe=jV(n,r,T,P,N),Ee=PV(n,o,xe,he),He=l.useMemo(function(){return te(te({},oe),{},{needConfirm:q,inputReadOnly:me,disabledDate:xe})},[oe,q,me,xe]);return[He,U,K,de,ge,Ee]}function kV(e,t,n){var r=Wn(t,{value:e}),a=ue(r,2),o=a[0],s=a[1],u=Se.useRef(e),f=Se.useRef(),d=function(){un.cancel(f.current)},h=pn(function(){s(u.current),n&&o!==u.current&&n(u.current)}),g=pn(function(v,b){d(),u.current=v,v||b?h():f.current=un(h)});return Se.useEffect(function(){return d},[]),[o,g]}function ij(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(h){return h})?!1:e,o=kV(a,t||!1,r),s=ue(o,2),u=s[0],f=s[1];function d(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!g.inherit||u)&&f(h,g.force)}return[u,d]}function oj(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function lj(e,t){return l.useMemo(function(){return e||(t?(br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ue(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function VS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,gs(function(){if(e)r.current(e);else{var a=un(function(){r.current(e)},n);return function(){un.cancel(a)}}},[e])}function sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=ue(r,2),o=a[0],s=a[1],u=l.useState(!1),f=ue(u,2),d=f[0],h=f[1],g=l.useRef([]),v=l.useRef(null),b=l.useRef(null),x=function(I){v.current=I},C=function(I){return v.current===I},y=function(I){h(I)},w=function(I){return I&&(b.current=I),b.current},$=function(I){var O=g.current,R=new Set(O.filter(function(P){return I[P]||t[P]})),T=O[O.length-1]===0?1:0;return R.size>=2||e[T]?null:T};return VS(d||n,function(){d||(g.current=[],x(null))}),l.useEffect(function(){d&&g.current.push(o)},[d,o]),[d,y,w,o,s,$,g.current,x,C]}function AV(e,t,n,r,a,o){var s=n[n.length-1],u=function(d,h){var g=ue(e,2),v=g[0],b=g[1],x=te(te({},h),{},{from:qM(e,n)});return s===1&&t[0]&&v&&!$a(r,a,v,d,x.type)&&r.isAfter(v,d)||s===0&&t[1]&&b&&!$a(r,a,b,d,x.type)&&r.isAfter(d,b)?!0:o==null?void 0:o(d,x)};return u}function Pd(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var by=[];function cj(e,t,n,r,a,o,s,u){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:by,d=arguments.length>9&&arguments[9]!==void 0?arguments[9]:by,h=arguments.length>10&&arguments[10]!==void 0?arguments[10]:by,g=arguments.length>11?arguments[11]:void 0,v=arguments.length>12?arguments[12]:void 0,b=arguments.length>13?arguments[13]:void 0,x=s==="time",C=o||0,y=function(D){var F=e.getNow();return x&&(F=mg(e,F)),f[D]||n[D]||F},w=ue(d,2),$=w[0],E=w[1],I=Wn(function(){return y(0)},{value:$}),O=ue(I,2),R=O[0],T=O[1],P=Wn(function(){return y(1)},{value:E}),N=ue(P,2),k=N[0],z=N[1],V=l.useMemo(function(){var j=[R,k][C];return x?j:mg(e,j,h[C])},[x,R,k,C,e,h]),B=function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",U=[T,z][C];U(D);var A=[R,k];A[C]=D,g&&(!$a(e,t,R,A[0],s)||!$a(e,t,k,A[1],s))&&g(A,{source:F,range:C===1?"end":"start",mode:r})},L=function(D,F){if(u){var U={date:"month",week:"month",month:"year",quarter:"year"},A=U[s];if(A&&!$a(e,t,D,F,A))return Pd(e,s,F,-1);if(s==="year"&&D){var K=Math.floor(e.getYear(D)/10),q=Math.floor(e.getYear(F)/10);if(K!==q)return Pd(e,s,F,-1)}}return F},H=l.useRef(null);return hn(function(){if(a&&!f[C]){var j=x?null:e.getNow();if(H.current!==null&&H.current!==C?j=[R,k][C^1]:n[C]?j=C===0?n[0]:L(n[0],n[1]):n[C^1]&&(j=n[C^1]),j){v&&e.isAfter(v,j)&&(j=v);var D=u?Pd(e,s,j,1):j;b&&e.isAfter(D,b)&&(j=u?Pd(e,s,b,-1):b),B(j,"reset")}}},[a,C,n[C]]),l.useEffect(function(){a?H.current=C:H.current=null},[a,C]),hn(function(){a&&f&&f[C]&&B(f[C],"reset")},[a,C]),[V,B]}function uj(e,t){var n=l.useRef(e),r=l.useState({}),a=ue(r,2),o=a[1],s=function(d){return d&&t!==void 0?t:n.current},u=function(d){n.current=d,o({})};return[s,u,s(!0)]}var zV=[];function dj(e,t,n){var r=function(s){return s.map(function(u){return Zr(u,{generateConfig:e,locale:t,format:n[0]})})},a=function(s,u){for(var f=Math.max(s.length,u.length),d=-1,h=0;h<f;h+=1){var g=s[h]||null,v=u[h]||null;if(g!==v&&!rj(e,g,v)){d=h;break}}return[d<0,d!==0]};return[r,a]}function fj(e,t){return Ae(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function LV(e){var t=uj(e),n=ue(t,2),r=n[0],a=n[1],o=pn(function(){a(e)});return l.useEffect(function(){o()},[e]),[r,a]}function mj(e,t,n,r,a,o,s,u,f){var d=Wn(o,{value:s}),h=ue(d,2),g=h[0],v=h[1],b=g||zV,x=LV(b),C=ue(x,2),y=C[0],w=C[1],$=dj(e,t,n),E=ue($,2),I=E[0],O=E[1],R=pn(function(P){var N=Ae(P);if(r)for(var k=0;k<2;k+=1)N[k]=N[k]||null;else a&&(N=fj(N.filter(function(j){return j}),e));var z=O(y(),N),V=ue(z,2),B=V[0],L=V[1];if(!B&&(w(N),u)){var H=I(N);u(N,H,{range:L?"end":"start"})}}),T=function(){f&&f(y())};return[b,v,y,R,T]}function hj(e,t,n,r,a,o,s,u,f,d){var h=e.generateConfig,g=e.locale,v=e.picker,b=e.onChange,x=e.allowEmpty,C=e.order,y=o.some(function(B){return B})?!1:C,w=dj(h,g,s),$=ue(w,2),E=$[0],I=$[1],O=uj(t),R=ue(O,2),T=R[0],P=R[1],N=pn(function(){P(t)});l.useEffect(function(){N()},[t]);var k=pn(function(B){var L=B===null,H=Ae(B||T());if(L)for(var j=Math.max(o.length,H.length),D=0;D<j;D+=1)o[D]||(H[D]=null);y&&H[0]&&H[1]&&(H=fj(H,h)),a(H);var F=H,U=ue(F,2),A=U[0],K=U[1],q=!A,Y=!K,W=x?(!q||x[0])&&(!Y||x[1]):!0,Q=!C||q||Y||$a(h,g,A,K,v)||h.isAfter(K,A),Z=(o[0]||!A||!d(A,{activeIndex:0}))&&(o[1]||!K||!d(K,{from:A,activeIndex:1})),ae=L||W&&Q&&Z;if(ae){n(H);var J=I(H,t),se=ue(J,1),he=se[0];b&&!he&&b(L&&H.every(function(oe){return!oe})?null:H,E(H))}return ae}),z=pn(function(B,L){var H=Vd(T(),B,r()[B]);P(H),L&&k()}),V=!u&&!f;return VS(!V,function(){V&&(k(),a(t),N())},2),[z,k]}function gj(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function HV(e,t,n,r,a,o){var s=e;function u(g,v,b){var x=o[g](s),C=b.find(function(E){return E.value===x});if(!C||C.disabled){var y=b.filter(function(E){return!E.disabled}),w=Ae(y).reverse(),$=w.find(function(E){return E.value<=x})||y[0];$&&(x=$.value,s=o[v](s,x))}return x}var f=u("getHour","setHour",t()),d=u("getMinute","setMinute",n(f)),h=u("getSecond","setSecond",r(f,d));return u("getMillisecond","setMillisecond",a(f,d,h)),s}function dh(){return[]}function fh(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],u=n>=1?n|0:1,f=e;f<=t;f+=u){var d=a.includes(f);(!d||!r)&&s.push({label:LS(f,o),value:f,disabled:d})}return s}function KS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,s=o===void 0?1:o,u=r.minuteStep,f=u===void 0?1:u,d=r.secondStep,h=d===void 0?1:d,g=r.millisecondStep,v=g===void 0?100:g,b=r.hideDisabledOptions,x=r.disabledTime,C=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=l.useMemo(function(){return n||e.getNow()},[n,e]),E=l.useCallback(function(F){var U=(x==null?void 0:x(F))||{};return[U.disabledHours||C||dh,U.disabledMinutes||y||dh,U.disabledSeconds||w||dh,U.disabledMilliseconds||dh]},[x,C,y,w]),I=l.useMemo(function(){return E($)},[$,E]),O=ue(I,4),R=O[0],T=O[1],P=O[2],N=O[3],k=l.useCallback(function(F,U,A,K){var q=fh(0,23,s,b,F()),Y=a?q.map(function(ae){return te(te({},ae),{},{label:LS(ae.value%12||12,2)})}):q,W=function(J){return fh(0,59,f,b,U(J))},Q=function(J,se){return fh(0,59,h,b,A(J,se))},Z=function(J,se,he){return fh(0,999,v,b,K(J,se,he),3)};return[Y,W,Q,Z]},[b,s,a,v,f,h]),z=l.useMemo(function(){return k(R,T,P,N)},[k,R,T,P,N]),V=ue(z,4),B=V[0],L=V[1],H=V[2],j=V[3],D=function(U,A){var K=function(){return B},q=L,Y=H,W=j;if(A){var Q=E(A),Z=ue(Q,4),ae=Z[0],J=Z[1],se=Z[2],he=Z[3],oe=k(ae,J,se,he),le=ue(oe,4),ie=le[0],de=le[1],ge=le[2],me=le[3];K=function(){return ie},q=de,Y=ge,W=me}var xe=HV(U,K,q,Y,W,e);return xe};return[D,B,L,H,j]}function BV(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,s=e.onSubmit,u=e.onNow,f=e.invalid,d=e.needConfirm,h=e.generateConfig,g=e.disabledDate,v=l.useContext(Vi),b=v.prefixCls,x=v.locale,C=v.button,y=C===void 0?"button":C,w=h.getNow(),$=KS(h,o,w),E=ue($,1),I=E[0],O=r==null?void 0:r(t),R=g(w,{type:t}),T=function(){if(!R){var L=I(w);u(L)}},P="".concat(b,"-now"),N="".concat(P,"-btn"),k=a&&l.createElement("li",{className:P},l.createElement("a",{className:ce(N,R&&"".concat(N,"-disabled")),"aria-disabled":R,onClick:T},n==="date"?x.today:x.now)),z=d&&l.createElement("li",{className:"".concat(b,"-ok")},l.createElement(y,{disabled:f,onClick:s},x.ok)),V=(k||z)&&l.createElement("ul",{className:"".concat(b,"-ranges")},k,z);return!O&&!V?null:l.createElement("div",{className:"".concat(b,"-footer")},O&&l.createElement("div",{className:"".concat(b,"-footer-extra")},O),V)}function vj(e,t,n){function r(a,o){var s=a.findIndex(function(f){return $a(e,t,f,o,n)});if(s===-1)return[].concat(Ae(a),[o]);var u=Ae(a);return u.splice(s,1),u}return r}var Ms=l.createContext(null);function cv(){return l.useContext(Ms)}function su(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,s=e.minDate,u=e.maxDate,f=e.cellRender,d=e.hoverValue,h=e.hoverRangeValue,g=e.onHover,v=e.values,b=e.pickerValue,x=e.onSelect,C=e.prevIcon,y=e.nextIcon,w=e.superPrevIcon,$=e.superNextIcon,E=r.getNow(),I={now:E,values:v,pickerValue:b,prefixCls:n,disabledDate:o,minDate:s,maxDate:u,cellRender:f,hoverValue:d,hoverRangeValue:h,onHover:g,locale:a,generateConfig:r,onSelect:x,panelType:t,prevIcon:C,nextIcon:y,superPrevIcon:w,superNextIcon:$};return[I,E]}var Rl=l.createContext({});function Df(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,s=e.rowClassName,u=e.titleFormat,f=e.getCellText,d=e.getCellClassName,h=e.headerCells,g=e.cellSelection,v=g===void 0?!0:g,b=e.disabledDate,x=cv(),C=x.prefixCls,y=x.panelType,w=x.now,$=x.disabledDate,E=x.cellRender,I=x.onHover,O=x.hoverValue,R=x.hoverRangeValue,T=x.generateConfig,P=x.values,N=x.locale,k=x.onSelect,z=b||$,V="".concat(C,"-cell"),B=l.useContext(Rl),L=B.onCellDblClick,H=function(Y){return P.some(function(W){return W&&$a(T,N,Y,W,y)})},j=[],D=0;D<t;D+=1){for(var F=[],U=void 0,A=function(){var Y=D*n+K,W=a(r,Y),Q=z==null?void 0:z(W,{type:y});K===0&&(U=W,o&&F.push(o(U)));var Z=!1,ae=!1,J=!1;if(v&&R){var se=ue(R,2),he=se[0],oe=se[1];Z=sv(T,he,oe,W),ae=$a(T,N,W,he,y),J=$a(T,N,W,oe,y)}var le=u?Zr(W,{locale:N,format:u,generateConfig:T}):void 0,ie=l.createElement("div",{className:"".concat(V,"-inner")},f(W));F.push(l.createElement("td",{key:K,title:le,className:ce(V,te(X(X(X(X(X(X({},"".concat(V,"-disabled"),Q),"".concat(V,"-hover"),(O||[]).some(function(de){return $a(T,N,W,de,y)})),"".concat(V,"-in-range"),Z&&!ae&&!J),"".concat(V,"-range-start"),ae),"".concat(V,"-range-end"),J),"".concat(C,"-cell-selected"),!R&&y!=="week"&&H(W)),d(W))),onClick:function(){Q||k(W)},onDoubleClick:function(){!Q&&L&&L()},onMouseEnter:function(){Q||I==null||I(W)},onMouseLeave:function(){Q||I==null||I(null)}},E?E(W,{prefixCls:C,originNode:ie,today:w,type:y,locale:N}):ie))},K=0;K<n;K+=1)A();j.push(l.createElement("tr",{key:D,className:s==null?void 0:s(U)},F))}return l.createElement("div",{className:"".concat(C,"-body")},l.createElement("table",{className:"".concat(C,"-content")},h&&l.createElement("thead",null,l.createElement("tr",null,h)),l.createElement("tbody",null,j)))}var mh={visibility:"hidden"};function cu(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,o=e.getEnd,s=e.children,u=cv(),f=u.prefixCls,d=u.prevIcon,h=d===void 0?"‹":d,g=u.nextIcon,v=g===void 0?"›":g,b=u.superPrevIcon,x=b===void 0?"«":b,C=u.superNextIcon,y=C===void 0?"»":C,w=u.minDate,$=u.maxDate,E=u.generateConfig,I=u.locale,O=u.pickerValue,R=u.panelType,T="".concat(f,"-header"),P=l.useContext(Rl),N=P.hidePrev,k=P.hideNext,z=P.hideHeader,V=l.useMemo(function(){if(!w||!t||!o)return!1;var q=o(t(-1,O));return!ch(E,I,q,w,R)},[w,t,O,o,E,I,R]),B=l.useMemo(function(){if(!w||!n||!o)return!1;var q=o(n(-1,O));return!ch(E,I,q,w,R)},[w,n,O,o,E,I,R]),L=l.useMemo(function(){if(!$||!t||!a)return!1;var q=a(t(1,O));return!ch(E,I,$,q,R)},[$,t,O,a,E,I,R]),H=l.useMemo(function(){if(!$||!n||!a)return!1;var q=a(n(1,O));return!ch(E,I,$,q,R)},[$,n,O,a,E,I,R]),j=function(Y){t&&r(t(Y,O))},D=function(Y){n&&r(n(Y,O))};if(z)return null;var F="".concat(T,"-prev-btn"),U="".concat(T,"-next-btn"),A="".concat(T,"-super-prev-btn"),K="".concat(T,"-super-next-btn");return l.createElement("div",{className:T},n&&l.createElement("button",{type:"button","aria-label":I.previousYear,onClick:function(){return D(-1)},tabIndex:-1,className:ce(A,B&&"".concat(A,"-disabled")),disabled:B,style:N?mh:{}},x),t&&l.createElement("button",{type:"button","aria-label":I.previousMonth,onClick:function(){return j(-1)},tabIndex:-1,className:ce(F,V&&"".concat(F,"-disabled")),disabled:V,style:N?mh:{}},h),l.createElement("div",{className:"".concat(T,"-view")},s),t&&l.createElement("button",{type:"button","aria-label":I.nextMonth,onClick:function(){return j(1)},tabIndex:-1,className:ce(U,L&&"".concat(U,"-disabled")),disabled:L,style:k?mh:{}},v),n&&l.createElement("button",{type:"button","aria-label":I.nextYear,onClick:function(){return D(1)},tabIndex:-1,className:ce(K,H&&"".concat(K,"-disabled")),disabled:H,style:k?mh:{}},y))}function uv(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,o=e.generateConfig,s=e.pickerValue,u=e.onPickerValueChange,f=e.onModeChange,d=e.mode,h=d===void 0?"date":d,g=e.disabledDate,v=e.onSelect,b=e.onHover,x=e.showWeek,C="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),w=h==="week",$=su(e,h),E=ue($,2),I=E[0],O=E[1],R=o.locale.getWeekFirstDay(a.locale),T=o.setDate(s,1),P=MV(a.locale,o,T),N=o.getMonth(s),k=x===void 0?w:x,z=k?function(q){var Y=g==null?void 0:g(q,{type:"week"});return l.createElement("td",{key:"week",className:ce(y,"".concat(y,"-week"),X({},"".concat(y,"-disabled"),Y)),onClick:function(){Y||v(q)},onMouseEnter:function(){Y||b==null||b(q)},onMouseLeave:function(){Y||b==null||b(null)}},l.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(a.locale,q)))}:null,V=[],B=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);z&&V.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var L=0;L<py;L+=1)V.push(l.createElement("th",{key:L},B[(L+R)%py]));var H=function(Y,W){return o.addDate(Y,W)},j=function(Y){return Zr(Y,{locale:a,format:a.cellDateFormat,generateConfig:o})},D=function(Y){var W=X(X({},"".concat(t,"-cell-in-view"),BS(o,Y,s)),"".concat(t,"-cell-today"),FS(o,Y,O));return W},F=a.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(a.locale):[]),U=l.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){f("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},Zr(s,{locale:a,format:a.yearFormat,generateConfig:o})),A=l.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){f("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?Zr(s,{locale:a,format:a.monthFormat,generateConfig:o}):F[N]),K=a.monthBeforeYear?[A,U]:[U,A];return l.createElement(Ms.Provider,{value:I},l.createElement("div",{className:ce(C,x&&"".concat(C,"-show-week"))},l.createElement(cu,{offset:function(Y){return o.addMonth(s,Y)},superOffset:function(Y){return o.addYear(s,Y)},onChange:u,getStart:function(Y){return o.setDate(Y,1)},getEnd:function(Y){var W=o.setDate(Y,1);return W=o.addMonth(W,1),o.addDate(W,-1)}},K),l.createElement(Df,Me({titleFormat:a.fieldDateFormat},e,{colNum:py,rowNum:6,baseDate:P,headerCells:V,getCellDate:H,getCellText:j,getCellClassName:D,prefixColumn:z,cellSelection:!w}))))}var FV=1/3;function VV(e,t){var n=l.useRef(!1),r=l.useRef(null),a=l.useRef(null),o=function(){return n.current},s=function(){un.cancel(r.current),n.current=!1},u=l.useRef(),f=function(){var g=e.current;if(a.current=null,u.current=0,g){var v=g.querySelector('[data-value="'.concat(t,'"]')),b=g.querySelector("li"),x=function C(){s(),n.current=!0,u.current+=1;var y=g.scrollTop,w=b.offsetTop,$=v.offsetTop,E=$-w;if($===0&&v!==b||!nu(g)){u.current<=5&&(r.current=un(C));return}var I=y+(E-y)*FV,O=Math.abs(E-I);if(a.current!==null&&a.current<O){s();return}if(a.current=O,O<=1){g.scrollTop=E,s();return}g.scrollTop=I,r.current=un(C)};v&&b&&x()}},d=pn(f);return[d,s,o]}var KV=300;function UV(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function Sd(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,o=e.onChange,s=e.onHover,u=e.onDblClick,f=e.changeOnScroll,d=cv(),h=d.prefixCls,g=d.cellRender,v=d.now,b=d.locale,x="".concat(h,"-time-panel"),C="".concat(h,"-time-panel-cell"),y=l.useRef(null),w=l.useRef(),$=function(){clearTimeout(w.current)},E=VV(y,n??r),I=ue(E,3),O=I[0],R=I[1],T=I[2];hn(function(){return O(),$(),function(){R(),$()}},[n,r,UV(t)]);var P=function(z){$();var V=z.target;!T()&&f&&(w.current=setTimeout(function(){var B=y.current,L=B.querySelector("li").offsetTop,H=Array.from(B.querySelectorAll("li")),j=H.map(function(K){return K.offsetTop-L}),D=j.map(function(K,q){return t[q].disabled?Number.MAX_SAFE_INTEGER:Math.abs(K-V.scrollTop)}),F=Math.min.apply(Math,Ae(D)),U=D.findIndex(function(K){return K===F}),A=t[U];A&&!A.disabled&&o(A.value)},KV))},N="".concat(x,"-column");return l.createElement("ul",{className:N,ref:y,"data-type":a,onScroll:P},t.map(function(k){var z=k.label,V=k.value,B=k.disabled,L=l.createElement("div",{className:"".concat(C,"-inner")},z);return l.createElement("li",{key:V,className:ce(C,X(X({},"".concat(C,"-selected"),n===V),"".concat(C,"-disabled"),B)),onClick:function(){B||o(V)},onDoubleClick:function(){!B&&u&&u()},onMouseEnter:function(){s(V)},onMouseLeave:function(){s(null)},"data-value":V},g?g(V,{prefixCls:h,originNode:L,today:v,type:"time",subType:a,locale:b}):L)}))}function yl(e){return e<12}function WV(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,o=e.use12Hours,s=e.changeOnScroll,u=cv(),f=u.prefixCls,d=u.values,h=u.generateConfig,g=u.locale,v=u.onSelect,b=u.onHover,x=b===void 0?function(){}:b,C=u.pickerValue,y=(d==null?void 0:d[0])||null,w=l.useContext(Rl),$=w.onCellDblClick,E=KS(h,e,y),I=ue(E,5),O=I[0],R=I[1],T=I[2],P=I[3],N=I[4],k=function(ke){var st=y&&h[ke](y),Dt=C&&h[ke](C);return[st,Dt]},z=k("getHour"),V=ue(z,2),B=V[0],L=V[1],H=k("getMinute"),j=ue(H,2),D=j[0],F=j[1],U=k("getSecond"),A=ue(U,2),K=A[0],q=A[1],Y=k("getMillisecond"),W=ue(Y,2),Q=W[0],Z=W[1],ae=B===null?null:yl(B)?"am":"pm",J=l.useMemo(function(){return o?yl(B)?R.filter(function(be){return yl(be.value)}):R.filter(function(be){return!yl(be.value)}):R},[B,R,o]),se=function(ke,st){var Dt,Wt=ke.filter(function(Je){return!Je.disabled});return st??(Wt==null||(Dt=Wt[0])===null||Dt===void 0?void 0:Dt.value)},he=se(R,B),oe=l.useMemo(function(){return T(he)},[T,he]),le=se(oe,D),ie=l.useMemo(function(){return P(he,le)},[P,he,le]),de=se(ie,K),ge=l.useMemo(function(){return N(he,le,de)},[N,he,le,de]),me=se(ge,Q),xe=l.useMemo(function(){if(!o)return[];var be=h.getNow(),ke=h.setHour(be,6),st=h.setHour(be,18),Dt=function(Je,ct){var $t=g.cellMeridiemFormat;return $t?Zr(Je,{generateConfig:h,locale:g,format:$t}):ct};return[{label:Dt(ke,"AM"),value:"am",disabled:R.every(function(Wt){return Wt.disabled||!yl(Wt.value)})},{label:Dt(st,"PM"),value:"pm",disabled:R.every(function(Wt){return Wt.disabled||yl(Wt.value)})}]},[R,o,h,g]),Ee=function(ke){var st=O(ke);v(st)},He=l.useMemo(function(){var be=y||C||h.getNow(),ke=function(Dt){return Dt!=null};return ke(B)?(be=h.setHour(be,B),be=h.setMinute(be,D),be=h.setSecond(be,K),be=h.setMillisecond(be,Q)):ke(L)?(be=h.setHour(be,L),be=h.setMinute(be,F),be=h.setSecond(be,q),be=h.setMillisecond(be,Z)):ke(he)&&(be=h.setHour(be,he),be=h.setMinute(be,le),be=h.setSecond(be,de),be=h.setMillisecond(be,me)),be},[y,C,B,D,K,Q,he,le,de,me,L,F,q,Z,h]),je=function(ke,st){return ke===null?null:h[st](He,ke)},ve=function(ke){return je(ke,"setHour")},$e=function(ke){return je(ke,"setMinute")},we=function(ke){return je(ke,"setSecond")},Re=function(ke){return je(ke,"setMillisecond")},ze=function(ke){return ke===null?null:ke==="am"&&!yl(B)?h.setHour(He,B-12):ke==="pm"&&yl(B)?h.setHour(He,B+12):He},De=function(ke){Ee(ve(ke))},Ye=function(ke){Ee($e(ke))},Xe=function(ke){Ee(we(ke))},Le=function(ke){Ee(Re(ke))},Ke=function(ke){Ee(ze(ke))},Fe=function(ke){x(ve(ke))},Ie=function(ke){x($e(ke))},Ue=function(ke){x(we(ke))},ye=function(ke){x(Re(ke))},Ce=function(ke){x(ze(ke))},_e={onDblClick:$,changeOnScroll:s};return l.createElement("div",{className:"".concat(f,"-content")},t&&l.createElement(Sd,Me({units:J,value:B,optionalValue:L,type:"hour",onChange:De,onHover:Fe},_e)),n&&l.createElement(Sd,Me({units:oe,value:D,optionalValue:F,type:"minute",onChange:Ye,onHover:Ie},_e)),r&&l.createElement(Sd,Me({units:ie,value:K,optionalValue:q,type:"second",onChange:Xe,onHover:Ue},_e)),a&&l.createElement(Sd,Me({units:ge,value:Q,optionalValue:Z,type:"millisecond",onChange:Le,onHover:ye},_e)),o&&l.createElement(Sd,Me({units:xe,value:ae,type:"meridiem",onChange:Ke,onHover:Ce},_e)))}function pj(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,o=e.showTime,s=o||{},u=s.format,f="".concat(t,"-time-panel"),d=su(e,"time"),h=ue(d,1),g=h[0];return l.createElement(Ms.Provider,{value:g},l.createElement("div",{className:ce(f)},l.createElement(cu,null,n?Zr(n,{locale:r,format:u,generateConfig:a}):" "),l.createElement(WV,o)))}function qV(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,o=e.value,s=e.pickerValue,u=e.onHover,f="".concat(t,"-datetime-panel"),d=KS(n,r),h=ue(d,1),g=h[0],v=function(y){return o?mg(n,y,o):mg(n,y,s)},b=function(y){u==null||u(y&&v(y))},x=function(y){var w=v(y);a(g(w,w))};return l.createElement("div",{className:f},l.createElement(uv,Me({},e,{onSelect:x,onHover:b})),l.createElement(pj,e))}function YV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,u="".concat(t,"-decade-panel"),f=su(e,"decade"),d=ue(f,1),h=d[0],g=function(R){var T=Math.floor(r.getYear(R)/100)*100;return r.setYear(R,T)},v=function(R){var T=g(R);return r.addYear(T,99)},b=g(a),x=v(a),C=r.addYear(b,-10),y=function(R,T){return r.addYear(R,T*10)},w=function(R){var T=n.cellYearFormat,P=Zr(R,{locale:n,format:T,generateConfig:r}),N=Zr(r.addYear(R,9),{locale:n,format:T,generateConfig:r});return"".concat(P,"-").concat(N)},$=function(R){return X({},"".concat(t,"-cell-in-view"),ox(r,R,b)||ox(r,R,x)||sv(r,b,x,R))},E=o?function(O,R){var T=r.setDate(O,1),P=r.setMonth(T,0),N=r.setYear(P,Math.floor(r.getYear(P)/10)*10),k=r.addYear(N,10),z=r.addDate(k,-1);return o(N,R)&&o(z,R)}:null,I="".concat(Zr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Zr(x,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ms.Provider,{value:h},l.createElement("div",{className:u},l.createElement(cu,{superOffset:function(R){return r.addYear(a,R*100)},onChange:s,getStart:g,getEnd:v},I),l.createElement(Df,Me({},e,{disabledDate:E,colNum:3,rowNum:4,baseDate:C,getCellDate:y,getCellText:w,getCellClassName:$}))))}function GV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,u=e.onModeChange,f="".concat(t,"-month-panel"),d=su(e,"month"),h=ue(d,1),g=h[0],v=r.setMonth(a,0),b=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),x=function(I,O){return r.addMonth(I,O)},C=function(I){var O=r.getMonth(I);return n.monthFormat?Zr(I,{locale:n,format:n.monthFormat,generateConfig:r}):b[O]},y=function(){return X({},"".concat(t,"-cell-in-view"),!0)},w=o?function(E,I){var O=r.setDate(E,1),R=r.setMonth(O,r.getMonth(O)+1),T=r.addDate(R,-1);return o(O,I)&&o(T,I)}:null,$=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Zr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ms.Provider,{value:g},l.createElement("div",{className:f},l.createElement(cu,{superOffset:function(I){return r.addYear(a,I)},onChange:s,getStart:function(I){return r.setMonth(I,0)},getEnd:function(I){return r.setMonth(I,11)}},$),l.createElement(Df,Me({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:x,getCellText:C,getCellClassName:y}))))}function XV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-quarter-panel"),f=su(e,"quarter"),d=ue(f,1),h=d[0],g=r.setMonth(a,0),v=function(w,$){return r.addMonth(w,$*3)},b=function(w){return Zr(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},x=function(){return X({},"".concat(t,"-cell-in-view"),!0)},C=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Zr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ms.Provider,{value:h},l.createElement("div",{className:u},l.createElement(cu,{superOffset:function(w){return r.addYear(a,w)},onChange:o,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},C),l.createElement(Df,Me({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:g,getCellDate:v,getCellText:b,getCellClassName:x}))))}function QV(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,o=e.hoverValue,s=e.hoverRangeValue,u=r.locale,f="".concat(t,"-week-panel-row"),d=function(g){var v={};if(s){var b=ue(s,2),x=b[0],C=b[1],y=Dd(n,u,x,g),w=Dd(n,u,C,g);v["".concat(f,"-range-start")]=y,v["".concat(f,"-range-end")]=w,v["".concat(f,"-range-hover")]=!y&&!w&&sv(n,x,C,g)}return o&&(v["".concat(f,"-hover")]=o.some(function($){return Dd(n,u,g,$)})),ce(f,X({},"".concat(f,"-selected"),!s&&Dd(n,u,a,g)),v)};return l.createElement(uv,Me({},e,{mode:"week",panelName:"week",rowClassName:d}))}function ZV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,u=e.onModeChange,f="".concat(t,"-year-panel"),d=su(e,"year"),h=ue(d,1),g=h[0],v=function(T){var P=Math.floor(r.getYear(T)/10)*10;return r.setYear(T,P)},b=function(T){var P=v(T);return r.addYear(P,9)},x=v(a),C=b(a),y=r.addYear(x,-1),w=function(T,P){return r.addYear(T,P)},$=function(T){return Zr(T,{locale:n,format:n.cellYearFormat,generateConfig:r})},E=function(T){return X({},"".concat(t,"-cell-in-view"),$s(r,T,x)||$s(r,T,C)||sv(r,x,C,T))},I=o?function(R,T){var P=r.setMonth(R,0),N=r.setDate(P,1),k=r.addYear(N,1),z=r.addDate(k,-1);return o(N,T)&&o(z,T)}:null,O=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Zr(x,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Zr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ms.Provider,{value:g},l.createElement("div",{className:f},l.createElement(cu,{superOffset:function(T){return r.addYear(a,T*10)},onChange:s,getStart:v,getEnd:b},O),l.createElement(Df,Me({},e,{disabledDate:I,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:w,getCellText:$,getCellClassName:E}))))}var JV={date:uv,datetime:qV,week:QV,month:GV,quarter:XV,year:ZV,decade:YV,time:pj};function eK(e,t){var n,r=e.locale,a=e.generateConfig,o=e.direction,s=e.prefixCls,u=e.tabIndex,f=u===void 0?0:u,d=e.multiple,h=e.defaultValue,g=e.value,v=e.onChange,b=e.onSelect,x=e.defaultPickerValue,C=e.pickerValue,y=e.onPickerValueChange,w=e.mode,$=e.onPanelChange,E=e.picker,I=E===void 0?"date":E,O=e.showTime,R=e.hoverValue,T=e.hoverRangeValue,P=e.cellRender,N=e.dateRender,k=e.monthCellRender,z=e.components,V=z===void 0?{}:z,B=e.hideHeader,L=((n=l.useContext(Vi))===null||n===void 0?void 0:n.prefixCls)||s||"rc-picker",H=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:H.current}});var j=ej(e),D=ue(j,4),F=D[0],U=D[1],A=D[2],K=D[3],q=QM(r,U),Y=I==="date"&&O?"datetime":I,W=l.useMemo(function(){return tj(Y,A,K,F,q)},[Y,A,K,F,q]),Q=a.getNow(),Z=Wn(I,{value:w,postState:function(Ce){return Ce||"date"}}),ae=ue(Z,2),J=ae[0],se=ae[1],he=J==="date"&&W?"datetime":J,oe=vj(a,r,Y),le=Wn(h,{value:g}),ie=ue(le,2),de=ie[0],ge=ie[1],me=l.useMemo(function(){var ye=Ns(de).filter(function(Ce){return Ce});return d?ye:ye.slice(0,1)},[de,d]),xe=pn(function(ye){ge(ye),v&&(ye===null||me.length!==ye.length||me.some(function(Ce,_e){return!$a(a,r,Ce,ye[_e],Y)}))&&(v==null||v(d?ye:ye[0]))}),Ee=pn(function(ye){if(b==null||b(ye),J===I){var Ce=d?oe(me,ye):[ye];xe(Ce)}}),He=Wn(x||me[0]||Q,{value:C}),je=ue(He,2),ve=je[0],$e=je[1];l.useEffect(function(){me[0]&&!C&&$e(me[0])},[me[0]]);var we=function(Ce,_e){$==null||$(Ce||C,_e||J)},Re=function(Ce){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$e(Ce),y==null||y(Ce),_e&&we(Ce)},ze=function(Ce,_e){se(Ce),_e&&Re(_e),we(_e,Ce)},De=function(Ce){if(Ee(Ce),Re(Ce),J!==I){var _e=["decade","year"],be=[].concat(_e,["month"]),ke={quarter:[].concat(_e,["quarter"]),week:[].concat(Ae(be),["week"]),date:[].concat(Ae(be),["date"])},st=ke[I]||be,Dt=st.indexOf(J),Wt=st[Dt+1];Wt&&ze(Wt,Ce)}},Ye=l.useMemo(function(){var ye,Ce;if(Array.isArray(T)){var _e=ue(T,2);ye=_e[0],Ce=_e[1]}else ye=T;return!ye&&!Ce?null:(ye=ye||Ce,Ce=Ce||ye,a.isAfter(ye,Ce)?[Ce,ye]:[ye,Ce])},[T,a]),Xe=HS(P,N,k),Le=V[he]||JV[he]||uv,Ke=l.useContext(Rl),Fe=l.useMemo(function(){return te(te({},Ke),{},{hideHeader:B})},[Ke,B]),Ie="".concat(L,"-panel"),Ue=lv(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Rl.Provider,{value:Fe},l.createElement("div",{ref:H,tabIndex:f,className:ce(Ie,X({},"".concat(Ie,"-rtl"),o==="rtl"))},l.createElement(Le,Me({},Ue,{showTime:W,prefixCls:L,locale:q,generateConfig:a,onModeChange:ze,pickerValue:ve,onPickerValueChange:function(Ce){Re(Ce,!0)},value:me[0],onSelect:De,values:me,cellRender:Xe,hoverRangeValue:Ye,hoverValue:R}))))}var yy=l.memo(l.forwardRef(eK));function tK(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,s=e.onSubmit,u=e.range,f=e.hoverValue,d=l.useContext(Vi),h=d.prefixCls,g=d.generateConfig,v=l.useCallback(function($,E){return Pd(g,t,$,E)},[g,t]),b=l.useMemo(function(){return v(r,1)},[r,v]),x=function(E){a(v(E,-1))},C={onCellDblClick:function(){o&&s()}},y=t==="time",w=te(te({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return u?w.hoverRangeValue=f:w.hoverValue=f,n?l.createElement("div",{className:"".concat(h,"-panels")},l.createElement(Rl.Provider,{value:te(te({},C),{},{hideNext:!0})},l.createElement(yy,w)),l.createElement(Rl.Provider,{value:te(te({},C),{},{hidePrev:!0})},l.createElement(yy,Me({},w,{pickerValue:b,onPickerValueChange:x})))):l.createElement(Rl.Provider,{value:te({},C)},l.createElement(yy,w))}function Z2(e){return typeof e=="function"?e():e}function nK(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,s){var u=o.label,f=o.value;return l.createElement("li",{key:s,onClick:function(){r(Z2(f))},onMouseEnter:function(){a(Z2(f))},onMouseLeave:function(){a(null)}},u)}))):null}function bj(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,s=e.multiple,u=e.activeInfo,f=u===void 0?[0,0,0]:u,d=e.presets,h=e.onPresetHover,g=e.onPresetSubmit,v=e.onFocus,b=e.onBlur,x=e.onPanelMouseDown,C=e.direction,y=e.value,w=e.onSelect,$=e.isInvalid,E=e.defaultOpenValue,I=e.onOk,O=e.onSubmit,R=l.useContext(Vi),T=R.prefixCls,P="".concat(T,"-panel"),N=C==="rtl",k=l.useRef(null),z=l.useRef(null),V=l.useState(0),B=ue(V,2),L=B[0],H=B[1],j=l.useState(0),D=ue(j,2),F=D[0],U=D[1],A=l.useState(0),K=ue(A,2),q=K[0],Y=K[1],W=function(De){De.width&&H(De.width)},Q=ue(f,3),Z=Q[0],ae=Q[1],J=Q[2],se=l.useState(0),he=ue(se,2),oe=he[0],le=he[1];l.useEffect(function(){le(10)},[Z]),l.useEffect(function(){if(o&&z.current){var ze,De=((ze=k.current)===null||ze===void 0?void 0:ze.offsetWidth)||0,Ye=z.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){le(function(Fe){return Math.max(0,Fe-1)});return}var Xe=(N?ae-De:Z)-Ye.left;if(Y(Xe),L&&L<J){var Le=N?Ye.right-(ae-De+L):Z+De-Ye.left-L,Ke=Math.max(0,Le);U(Ke)}else U(0)}},[oe,N,L,Z,ae,J,o]);function ie(ze){return ze.filter(function(De){return De})}var de=l.useMemo(function(){return ie(Ns(y))},[y]),ge=r==="time"&&!de.length,me=l.useMemo(function(){return ge?ie([E]):de},[ge,de,E]),xe=ge?E:de,Ee=l.useMemo(function(){return me.length?me.some(function(ze){return $(ze)}):!0},[me,$]),He=function(){ge&&w(E),I(),O()},je=l.createElement("div",{className:"".concat(T,"-panel-layout")},l.createElement(nK,{prefixCls:T,presets:d,onClick:g,onHover:h}),l.createElement("div",null,l.createElement(tK,Me({},e,{value:xe})),l.createElement(BV,Me({},e,{showNow:s?!1:a,invalid:Ee,onSubmit:He}))));t&&(je=t(je));var ve="".concat(P,"-container"),$e="marginLeft",we="marginRight",Re=l.createElement("div",{onMouseDown:x,tabIndex:-1,className:ce(ve,"".concat(T,"-").concat(n,"-panel-container")),style:X(X({},N?we:$e,F),N?$e:we,"auto"),onFocus:v,onBlur:b},je);return o&&(Re=l.createElement("div",{onMouseDown:x,ref:z,className:ce("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:k,className:"".concat(T,"-range-arrow"),style:{left:q}}),l.createElement(ga,{onResize:W},Re))),Re}function yj(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,s=e.preserveInvalidOnBlur,u=e.inputReadOnly,f=e.required,d=e["aria-required"],h=e.onSubmit,g=e.onFocus,v=e.onBlur,b=e.onInputChange,x=e.onInvalid,C=e.open,y=e.onOpenChange,w=e.onKeyDown,$=e.onChange,E=e.activeHelp,I=e.name,O=e.autoComplete,R=e.id,T=e.value,P=e.invalid,N=e.placeholder,k=e.disabled,z=e.activeIndex,V=e.allHelp,B=e.picker,L=function(q,Y){var W=a.locale.parse(o.locale,q,[Y]);return W&&a.isValidate(W)?W:null},H=n[0],j=l.useCallback(function(K){return Zr(K,{locale:o,format:H,generateConfig:a})},[o,a,H]),D=l.useMemo(function(){return T.map(j)},[T,j]),F=l.useMemo(function(){var K=B==="time"?8:10,q=typeof H=="function"?H(a.getNow()).length:H.length;return Math.max(K,q)+2},[H,B,a]),U=function(q){for(var Y=0;Y<n.length;Y+=1){var W=n[Y];if(typeof W=="string"){var Q=L(q,W);if(Q)return Q}}return!1},A=function(q){function Y(Z){return q!==void 0?Z[q]:Z}var W=sa(e,{aria:!0,data:!0}),Q=te(te({},W),{},{format:r,validateFormat:function(ae){return!!U(ae)},preserveInvalidOnBlur:s,readOnly:u,required:f,"aria-required":d,name:I,autoComplete:O,size:F,id:Y(R),value:Y(D)||"",invalid:Y(P),placeholder:Y(N),active:z===q,helped:V||E&&z===q,disabled:Y(k),onFocus:function(ae){g(ae,q)},onBlur:function(ae){v(ae,q)},onSubmit:h,onChange:function(ae){b();var J=U(ae);if(J){x(!1,q),$(J,q);return}x(!!ae,q)},onHelp:function(){y(!0,{index:q})},onKeyDown:function(ae){var J=!1;if(w==null||w(ae,function(){J=!0}),!ae.defaultPrevented&&!J)switch(ae.key){case"Escape":y(!1,{index:q});break;case"Enter":C||y(!0);break}}},t==null?void 0:t({valueTexts:D}));return Object.keys(Q).forEach(function(Z){Q[Z]===void 0&&delete Q[Z]}),Q};return[A,j]}var rK=["onMouseEnter","onMouseLeave"];function xj(e){return l.useMemo(function(){return lv(e,rK)},[e])}var aK=["icon","type"],iK=["onClear"];function dv(e){var t=e.icon,n=e.type,r=qt(e,aK),a=l.useContext(Vi),o=a.prefixCls;return t?l.createElement("span",Me({className:"".concat(o,"-").concat(n)},r),t):null}function lx(e){var t=e.onClear,n=qt(e,iK);return l.createElement(dv,Me({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var xy=["YYYY","MM","DD","HH","mm","ss","SSS"],J2="顧",oK=(function(){function e(t){yr(this,e),X(this,"format",void 0),X(this,"maskFormat",void 0),X(this,"cells",void 0),X(this,"maskCells",void 0),this.format=t;var n=xy.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return J2.repeat(u.length)});var a=new RegExp("(".concat(xy.join("|"),")")),o=(t.split(a)||[]).filter(function(u){return u}),s=0;this.cells=o.map(function(u){var f=xy.includes(u),d=s,h=s+u.length;return s=h,{text:u,mask:f,start:d,end:h}}),this.maskCells=this.cells.filter(function(u){return u.mask})}return xr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,o=r.end;return[a||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],o=n[r];if(!o||a!==J2&&a!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,o=0;o<this.maskCells.length;o+=1){var s=this.maskCells[o],u=s.start,f=s.end;if(n>=u&&n<=f)return o;var d=Math.min(Math.abs(n-u),Math.abs(n-f));d<r&&(r=d,a=o)}return a}}]),e})();function lK(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var sK=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],sx=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,o=e.suffixIcon,s=e.format,u=e.validateFormat,f=e.onChange;e.onInput;var d=e.helped,h=e.onHelp,g=e.onSubmit,v=e.onKeyDown,b=e.preserveInvalidOnBlur,x=b===void 0?!1:b,C=e.invalid,y=e.clearIcon,w=qt(e,sK),$=e.value,E=e.onFocus,I=e.onBlur,O=e.onMouseUp,R=l.useContext(Vi),T=R.prefixCls,P=R.input,N=P===void 0?"input":P,k="".concat(T,"-input"),z=l.useState(!1),V=ue(z,2),B=V[0],L=V[1],H=l.useState($),j=ue(H,2),D=j[0],F=j[1],U=l.useState(""),A=ue(U,2),K=A[0],q=A[1],Y=l.useState(null),W=ue(Y,2),Q=W[0],Z=W[1],ae=l.useState(null),J=ue(ae,2),se=J[0],he=J[1],oe=D||"";l.useEffect(function(){F($)},[$]);var le=l.useRef(),ie=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:le.current,inputElement:ie.current,focus:function(ye){ie.current.focus(ye)},blur:function(){ie.current.blur()}}});var de=l.useMemo(function(){return new oK(s||"")},[s]),ge=l.useMemo(function(){return d?[0,0]:de.getSelection(Q)},[de,Q,d]),me=ue(ge,2),xe=me[0],Ee=me[1],He=function(ye){ye&&ye!==s&&ye!==$&&h()},je=pn(function(Ue){u(Ue)&&f(Ue),F(Ue),He(Ue)}),ve=function(ye){if(!s){var Ce=ye.target.value;He(Ce),F(Ce),f(Ce)}},$e=function(ye){var Ce=ye.clipboardData.getData("text");u(Ce)&&je(Ce)},we=l.useRef(!1),Re=function(){we.current=!0},ze=function(ye){var Ce=ye.target,_e=Ce.selectionStart,be=de.getMaskCellIndex(_e);Z(be),he({}),O==null||O(ye),we.current=!1},De=function(ye){L(!0),Z(0),q(""),E(ye)},Ye=function(ye){I(ye)},Xe=function(ye){L(!1),Ye(ye)};VS(n,function(){!n&&!x&&F($)});var Le=function(ye){ye.key==="Enter"&&u(oe)&&g(),v==null||v(ye)},Ke=function(ye){Le(ye);var Ce=ye.key,_e=null,be=null,ke=Ee-xe,st=s.slice(xe,Ee),Dt=function($t){Z(function(ot){var gt=ot+$t;return gt=Math.max(gt,0),gt=Math.min(gt,de.size()-1),gt})},Wt=function($t){var ot=lK(st),gt=ue(ot,3),dt=gt[0],lt=gt[1],nt=gt[2],Pt=oe.slice(xe,Ee),bt=Number(Pt);if(isNaN(bt))return String(nt||($t>0?dt:lt));var Ge=bt+$t,tt=lt-dt+1;return String(dt+(tt+Ge-dt)%tt)};switch(Ce){case"Backspace":case"Delete":_e="",be=st;break;case"ArrowLeft":_e="",Dt(-1);break;case"ArrowRight":_e="",Dt(1);break;case"ArrowUp":_e="",be=Wt(1);break;case"ArrowDown":_e="",be=Wt(-1);break;default:isNaN(Number(Ce))||(_e=K+Ce,be=_e);break}if(_e!==null&&(q(_e),_e.length>=ke&&(Dt(1),q(""))),be!==null){var Je=oe.slice(0,xe)+LS(be,ke)+oe.slice(Ee);je(Je.slice(0,s.length))}he({})},Fe=l.useRef();hn(function(){if(!(!B||!s||we.current)){if(!de.match(oe)){je(s);return}return ie.current.setSelectionRange(xe,Ee),Fe.current=un(function(){ie.current.setSelectionRange(xe,Ee)}),function(){un.cancel(Fe.current)}}},[de,s,B,oe,Q,xe,Ee,se,je]);var Ie=s?{onFocus:De,onBlur:Xe,onKeyDown:Ke,onMouseDown:Re,onMouseUp:ze,onPaste:$e}:{};return l.createElement("div",{ref:le,className:ce(k,X(X({},"".concat(k,"-active"),n&&a),"".concat(k,"-placeholder"),d))},l.createElement(N,Me({ref:ie,"aria-invalid":C,autoComplete:"off"},w,{onKeyDown:Le,onBlur:Ye},Ie,{value:oe,onChange:ve})),l.createElement(dv,{type:"suffix",icon:o}),y)}),cK=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],uK=["index"];function dK(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,s=e.separator,u=s===void 0?"~":s,f=e.activeIndex;e.activeHelp,e.allHelp;var d=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var h=e.placeholder,g=e.className,v=e.style,b=e.onClick,x=e.onClear,C=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,w=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var E=e.onActiveInfo;e.placement;var I=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,R=e.tabIndex,T=qt(e,cK),P=$==="rtl",N=l.useContext(Vi),k=N.prefixCls,z=l.useMemo(function(){if(typeof n=="string")return[n];var se=n||{};return[se.start,se.end]},[n]),V=l.useRef(),B=l.useRef(),L=l.useRef(),H=function(he){var oe;return(oe=[B,L][he])===null||oe===void 0?void 0:oe.current};l.useImperativeHandle(t,function(){return{nativeElement:V.current,focus:function(he){if(_t(he)==="object"){var oe,le=he||{},ie=le.index,de=ie===void 0?0:ie,ge=qt(le,uK);(oe=H(de))===null||oe===void 0||oe.focus(ge)}else{var me;(me=H(he??0))===null||me===void 0||me.focus()}},blur:function(){var he,oe;(he=H(0))===null||he===void 0||he.blur(),(oe=H(1))===null||oe===void 0||oe.blur()}}});var j=xj(T),D=l.useMemo(function(){return Array.isArray(h)?h:[h,h]},[h]),F=yj(te(te({},e),{},{id:z,placeholder:D})),U=ue(F,1),A=U[0],K=l.useState({position:"absolute",width:0}),q=ue(K,2),Y=q[0],W=q[1],Q=pn(function(){var se=H(f);if(se){var he=se.nativeElement.getBoundingClientRect(),oe=V.current.getBoundingClientRect(),le=he.left-oe.left;W(function(ie){return te(te({},ie),{},{width:he.width,left:le})}),E([he.left,he.right,oe.width])}});l.useEffect(function(){Q()},[f]);var Z=a&&(C[0]&&!y[0]||C[1]&&!y[1]),ae=O&&!y[0],J=O&&!ae&&!y[1];return l.createElement(ga,{onResize:Q},l.createElement("div",Me({},j,{className:ce(k,"".concat(k,"-range"),X(X(X(X({},"".concat(k,"-focused"),d),"".concat(k,"-disabled"),y.every(function(se){return se})),"".concat(k,"-invalid"),w.some(function(se){return se})),"".concat(k,"-rtl"),P),g),style:v,ref:V,onClick:b,onMouseDown:function(he){var oe=he.target;oe!==B.current.inputElement&&oe!==L.current.inputElement&&he.preventDefault(),I==null||I(he)}}),r&&l.createElement("div",{className:"".concat(k,"-prefix")},r),l.createElement(sx,Me({ref:B},A(0),{autoFocus:ae,tabIndex:R,"date-range":"start"})),l.createElement("div",{className:"".concat(k,"-range-separator")},u),l.createElement(sx,Me({ref:L},A(1),{autoFocus:J,tabIndex:R,"date-range":"end"})),l.createElement("div",{className:"".concat(k,"-active-bar"),style:Y}),l.createElement(dv,{type:"suffix",icon:o}),Z&&l.createElement(lx,{icon:a,onClear:x})))}var fK=l.forwardRef(dK);function eO(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function hh(e){return e===1?"end":"start"}function mK(e,t){var n=aj(e,function(){var St=e.disabled,ut=e.allowEmpty,en=eO(St,!1),sn=eO(ut,!1);return{disabled:en,allowEmpty:sn}}),r=ue(n,6),a=r[0],o=r[1],s=r[2],u=r[3],f=r[4],d=r[5],h=a.prefixCls,g=a.styles,v=a.classNames,b=a.defaultValue,x=a.value,C=a.needConfirm,y=a.onKeyDown,w=a.disabled,$=a.allowEmpty,E=a.disabledDate,I=a.minDate,O=a.maxDate,R=a.defaultOpen,T=a.open,P=a.onOpenChange,N=a.locale,k=a.generateConfig,z=a.picker,V=a.showNow,B=a.showToday,L=a.showTime,H=a.mode,j=a.onPanelChange,D=a.onCalendarChange,F=a.onOk,U=a.defaultPickerValue,A=a.pickerValue,K=a.onPickerValueChange,q=a.inputReadOnly,Y=a.suffixIcon,W=a.onFocus,Q=a.onBlur,Z=a.presets,ae=a.ranges,J=a.components,se=a.cellRender,he=a.dateRender,oe=a.monthCellRender,le=a.onClick,ie=oj(t),de=ij(T,R,w,P),ge=ue(de,2),me=ge[0],xe=ge[1],Ee=function(ut,en){(w.some(function(sn){return!sn})||!ut)&&xe(ut,en)},He=mj(k,N,u,!0,!1,b,x,D,F),je=ue(He,5),ve=je[0],$e=je[1],we=je[2],Re=je[3],ze=je[4],De=we(),Ye=sj(w,$,me),Xe=ue(Ye,9),Le=Xe[0],Ke=Xe[1],Fe=Xe[2],Ie=Xe[3],Ue=Xe[4],ye=Xe[5],Ce=Xe[6],_e=Xe[7],be=Xe[8],ke=function(ut,en){Ke(!0),W==null||W(ut,{range:hh(en??Ie)})},st=function(ut,en){Ke(!1),Q==null||Q(ut,{range:hh(en??Ie)})},Dt=l.useMemo(function(){if(!L)return null;var St=L.disabledTime,ut=St?function(en){var sn=hh(Ie),xn=qM(De,Ce,Ie);return St(en,sn,{from:xn})}:void 0;return te(te({},L),{},{disabledTime:ut})},[L,Ie,De,Ce]),Wt=Wn([z,z],{value:H}),Je=ue(Wt,2),ct=Je[0],$t=Je[1],ot=ct[Ie]||z,gt=ot==="date"&&Dt?"datetime":ot,dt=gt===z&&gt!=="time",lt=gj(z,ot,V,B,!0),nt=hj(a,ve,$e,we,Re,w,u,Le,me,d),Pt=ue(nt,2),bt=Pt[0],Ge=Pt[1],tt=AV(De,w,Ce,k,N,E),Mt=GM(De,d,$),At=ue(Mt,2),Ot=At[0],Ht=At[1],wt=cj(k,N,De,ct,me,Ie,o,dt,U,A,Dt==null?void 0:Dt.defaultOpenValue,K,I,O),xt=ue(wt,2),Tt=xt[0],Vt=xt[1],Jt=pn(function(St,ut,en){var sn=Vd(ct,Ie,ut);if((sn[0]!==ct[0]||sn[1]!==ct[1])&&$t(sn),j&&en!==!1){var xn=Ae(De);St&&(xn[Ie]=St),j(xn,sn)}}),on=function(ut,en){return Vd(De,en,ut)},Ut=function(ut,en){var sn=De;ut&&(sn=on(ut,Ie)),_e(Ie);var xn=ye(sn);Re(sn),bt(Ie,xn===null),xn===null?Ee(!1,{force:!0}):en||ie.current.focus({index:xn})},gn=function(ut){var en,sn=ut.target.getRootNode();if(!ie.current.nativeElement.contains((en=sn.activeElement)!==null&&en!==void 0?en:document.activeElement)){var xn=w.findIndex(function(Gr){return!Gr});xn>=0&&ie.current.focus({index:xn})}Ee(!0),le==null||le(ut)},$n=function(){Ge(null),Ee(!1,{force:!0})},En=l.useState(null),at=ue(En,2),Rt=at[0],mt=at[1],it=l.useState(null),Bt=ue(it,2),tn=Bt[0],bn=Bt[1],On=l.useMemo(function(){return tn||De},[De,tn]);l.useEffect(function(){me||bn(null)},[me]);var kt=l.useState([0,0,0]),Ft=ue(kt,2),nn=Ft[0],Nn=Ft[1],hr=lj(Z,ae),Ur=function(ut){bn(ut),mt("preset")},gr=function(ut){var en=Ge(ut);en&&Ee(!1,{force:!0})},Bn=function(ut){Ut(ut)},Wr=function(ut){bn(ut?on(ut,Ie):null),mt("cell")},qr=function(ut){Ee(!0),ke(ut)},ir=function(){Fe("panel")},Yr=function(ut){var en=Vd(De,Ie,ut);Re(en),!C&&!s&&o===gt&&Ut(ut)},Sn=function(){Ee(!1)},zt=HS(se,he,oe,hh(Ie)),vt=De[Ie]||null,_n=pn(function(St){return d(St,{activeIndex:Ie})}),jt=l.useMemo(function(){var St=sa(a,!1),ut=tr(a,[].concat(Ae(Object.keys(St)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ut},[a]),Nt=l.createElement(bj,Me({},jt,{showNow:lt,showTime:Dt,range:!0,multiplePanel:dt,activeInfo:nn,disabledDate:tt,onFocus:qr,onBlur:st,onPanelMouseDown:ir,picker:z,mode:ot,internalMode:gt,onPanelChange:Jt,format:f,value:vt,isInvalid:_n,onChange:null,onSelect:Yr,pickerValue:Tt,defaultOpenValue:Ns(L==null?void 0:L.defaultOpenValue)[Ie],onPickerValueChange:Vt,hoverValue:On,onHover:Wr,needConfirm:C,onSubmit:Ut,onOk:ze,presets:hr,onPresetHover:Ur,onPresetSubmit:gr,onNow:Bn,cellRender:zt})),dn=function(ut,en){var sn=on(ut,en);Re(sn)},Yn=function(){Fe("input")},or=function(ut,en){var sn=Ce.length,xn=Ce[sn-1];if(sn&&xn!==en&&C&&!$[xn]&&!be(xn)&&De[xn]){ie.current.focus({index:xn});return}Fe("input"),Ee(!0,{inherit:!0}),Ie!==en&&me&&!C&&s&&Ut(null,!0),Ue(en),ke(ut,en)},lr=function(ut,en){if(Ee(!1),!C&&Fe()==="input"){var sn=ye(De);bt(Ie,sn===null)}st(ut,en)},Ir=function(ut,en){ut.key==="Tab"&&Ut(null,!0),y==null||y(ut,en)},Mr=l.useMemo(function(){return{prefixCls:h,locale:N,generateConfig:k,button:J.button,input:J.input}},[h,N,k,J.button,J.input]);return hn(function(){me&&Ie!==void 0&&Jt(null,z,!1)},[me,Ie,z]),hn(function(){var St=Fe();!me&&St==="input"&&(Ee(!1),Ut(null,!0)),!me&&s&&!C&&St==="panel"&&(Ee(!0),Ut())},[me]),l.createElement(Vi.Provider,{value:Mr},l.createElement(UM,Me({},YM(a),{popupElement:Nt,popupStyle:g.popup,popupClassName:v.popup,visible:me,onClose:Sn,range:!0}),l.createElement(fK,Me({},a,{ref:ie,suffixIcon:Y,activeIndex:Le||me?Ie:null,activeHelp:!!tn,allHelp:!!tn&&Rt==="preset",focused:Le,onFocus:or,onBlur:lr,onKeyDown:Ir,onSubmit:Ut,value:On,maskFormat:f,onChange:dn,onInputChange:Yn,format:u,inputReadOnly:q,disabled:w,open:me,onOpenChange:Ee,onClick:gn,onClear:$n,invalid:Ot,onInvalid:Ht,onActiveInfo:Nn}))))}var hK=l.forwardRef(mK);function gK(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,s=e.formatDate,u=e.disabled,f=e.maxTagCount,d=e.placeholder,h="".concat(t,"-selector"),g="".concat(t,"-selection"),v="".concat(g,"-overflow");function b(y,w){return l.createElement("span",{className:ce("".concat(g,"-item")),title:typeof y=="string"?y:null},l.createElement("span",{className:"".concat(g,"-item-content")},y),!u&&w&&l.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:w,className:"".concat(g,"-item-remove")},o))}function x(y){var w=s(y),$=function(I){I&&I.stopPropagation(),r(y)};return b(w,$)}function C(y){var w="+ ".concat(y.length," ...");return b(w)}return l.createElement("div",{className:h},l.createElement(Di,{prefixCls:v,data:n,renderItem:x,renderRest:C,itemKey:function(w){return s(w)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var vK=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function pK(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,f=e.generateConfig,d=e.placeholder,h=e.className,g=e.style,v=e.onClick,b=e.onClear,x=e.internalPicker,C=e.value,y=e.onChange,w=e.onSubmit;e.onInputChange;var $=e.multiple,E=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var I=e.disabled,O=e.invalid;e.inputReadOnly;var R=e.direction;e.onOpenChange;var T=e.onMouseDown;e.required,e["aria-required"];var P=e.autoFocus,N=e.tabIndex,k=e.removeIcon,z=qt(e,vK),V=R==="rtl",B=l.useContext(Vi),L=B.prefixCls,H=l.useRef(),j=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(ae){var J;(J=j.current)===null||J===void 0||J.focus(ae)},blur:function(){var ae;(ae=j.current)===null||ae===void 0||ae.blur()}}});var D=xj(z),F=function(ae){y([ae])},U=function(ae){var J=C.filter(function(se){return se&&!$a(f,u,se,ae,x)});y(J),n||w()},A=yj(te(te({},e),{},{onChange:F}),function(Z){var ae=Z.valueTexts;return{value:ae[0]||"",active:s}}),K=ue(A,2),q=K[0],Y=K[1],W=!!(a&&C.length&&!I),Q=$?l.createElement(l.Fragment,null,l.createElement(gK,{prefixCls:L,value:C,onRemove:U,formatDate:Y,maxTagCount:E,disabled:I,removeIcon:k,placeholder:d}),l.createElement("input",{className:"".concat(L,"-multiple-input"),value:C.map(Y).join(","),ref:j,readOnly:!0,autoFocus:P,tabIndex:N}),l.createElement(dv,{type:"suffix",icon:o}),W&&l.createElement(lx,{icon:a,onClear:b})):l.createElement(sx,Me({ref:j},q(),{autoFocus:P,tabIndex:N,suffixIcon:o,clearIcon:W&&l.createElement(lx,{icon:a,onClear:b}),showActiveCls:!1}));return l.createElement("div",Me({},D,{className:ce(L,X(X(X(X(X({},"".concat(L,"-multiple"),$),"".concat(L,"-focused"),s),"".concat(L,"-disabled"),I),"".concat(L,"-invalid"),O),"".concat(L,"-rtl"),V),h),style:g,ref:H,onClick:v,onMouseDown:function(ae){var J,se=ae.target;se!==((J=j.current)===null||J===void 0?void 0:J.inputElement)&&ae.preventDefault(),T==null||T(ae)}}),r&&l.createElement("div",{className:"".concat(L,"-prefix")},r),Q)}var bK=l.forwardRef(pK);function yK(e,t){var n=aj(e),r=ue(n,6),a=r[0],o=r[1],s=r[2],u=r[3],f=r[4],d=r[5],h=a,g=h.prefixCls,v=h.styles,b=h.classNames,x=h.order,C=h.defaultValue,y=h.value,w=h.needConfirm,$=h.onChange,E=h.onKeyDown,I=h.disabled,O=h.disabledDate,R=h.minDate,T=h.maxDate,P=h.defaultOpen,N=h.open,k=h.onOpenChange,z=h.locale,V=h.generateConfig,B=h.picker,L=h.showNow,H=h.showToday,j=h.showTime,D=h.mode,F=h.onPanelChange,U=h.onCalendarChange,A=h.onOk,K=h.multiple,q=h.defaultPickerValue,Y=h.pickerValue,W=h.onPickerValueChange,Q=h.inputReadOnly,Z=h.suffixIcon,ae=h.removeIcon,J=h.onFocus,se=h.onBlur,he=h.presets,oe=h.components,le=h.cellRender,ie=h.dateRender,de=h.monthCellRender,ge=h.onClick,me=oj(t);function xe(jt){return jt===null?null:K?jt:jt[0]}var Ee=vj(V,z,o),He=ij(N,P,[I],k),je=ue(He,2),ve=je[0],$e=je[1],we=function(Nt,dn,Yn){if(U){var or=te({},Yn);delete or.range,U(xe(Nt),xe(dn),or)}},Re=function(Nt){A==null||A(xe(Nt))},ze=mj(V,z,u,!1,x,C,y,we,Re),De=ue(ze,5),Ye=De[0],Xe=De[1],Le=De[2],Ke=De[3],Fe=De[4],Ie=Le(),Ue=sj([I]),ye=ue(Ue,4),Ce=ye[0],_e=ye[1],be=ye[2],ke=ye[3],st=function(Nt){_e(!0),J==null||J(Nt,{})},Dt=function(Nt){_e(!1),se==null||se(Nt,{})},Wt=Wn(B,{value:D}),Je=ue(Wt,2),ct=Je[0],$t=Je[1],ot=ct==="date"&&j?"datetime":ct,gt=gj(B,ct,L,H),dt=$&&function(jt,Nt){$(xe(jt),xe(Nt))},lt=hj(te(te({},a),{},{onChange:dt}),Ye,Xe,Le,Ke,[],u,Ce,ve,d),nt=ue(lt,2),Pt=nt[1],bt=GM(Ie,d),Ge=ue(bt,2),tt=Ge[0],Mt=Ge[1],At=l.useMemo(function(){return tt.some(function(jt){return jt})},[tt]),Ot=function(Nt,dn){if(W){var Yn=te(te({},dn),{},{mode:dn.mode[0]});delete Yn.range,W(Nt[0],Yn)}},Ht=cj(V,z,Ie,[ct],ve,ke,o,!1,q,Y,Ns(j==null?void 0:j.defaultOpenValue),Ot,R,T),wt=ue(Ht,2),xt=wt[0],Tt=wt[1],Vt=pn(function(jt,Nt,dn){if($t(Nt),F&&dn!==!1){var Yn=jt||Ie[Ie.length-1];F(Yn,Nt)}}),Jt=function(){Pt(Le()),$e(!1,{force:!0})},on=function(Nt){!I&&!me.current.nativeElement.contains(document.activeElement)&&me.current.focus(),$e(!0),ge==null||ge(Nt)},Ut=function(){Pt(null),$e(!1,{force:!0})},gn=l.useState(null),$n=ue(gn,2),En=$n[0],at=$n[1],Rt=l.useState(null),mt=ue(Rt,2),it=mt[0],Bt=mt[1],tn=l.useMemo(function(){var jt=[it].concat(Ae(Ie)).filter(function(Nt){return Nt});return K?jt:jt.slice(0,1)},[Ie,it,K]),bn=l.useMemo(function(){return!K&&it?[it]:Ie.filter(function(jt){return jt})},[Ie,it,K]);l.useEffect(function(){ve||Bt(null)},[ve]);var On=lj(he),kt=function(Nt){Bt(Nt),at("preset")},Ft=function(Nt){var dn=K?Ee(Le(),Nt):[Nt],Yn=Pt(dn);Yn&&!K&&$e(!1,{force:!0})},nn=function(Nt){Ft(Nt)},Nn=function(Nt){Bt(Nt),at("cell")},hr=function(Nt){$e(!0),st(Nt)},Ur=function(Nt){if(be("panel"),!(K&&ot!==B)){var dn=K?Ee(Le(),Nt):[Nt];Ke(dn),!w&&!s&&o===ot&&Jt()}},gr=function(){$e(!1)},Bn=HS(le,ie,de),Wr=l.useMemo(function(){var jt=sa(a,!1),Nt=tr(a,[].concat(Ae(Object.keys(jt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return te(te({},Nt),{},{multiple:a.multiple})},[a]),qr=l.createElement(bj,Me({},Wr,{showNow:gt,showTime:j,disabledDate:O,onFocus:hr,onBlur:Dt,picker:B,mode:ct,internalMode:ot,onPanelChange:Vt,format:f,value:Ie,isInvalid:d,onChange:null,onSelect:Ur,pickerValue:xt,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:Tt,hoverValue:tn,onHover:Nn,needConfirm:w,onSubmit:Jt,onOk:Fe,presets:On,onPresetHover:kt,onPresetSubmit:Ft,onNow:nn,cellRender:Bn})),ir=function(Nt){Ke(Nt)},Yr=function(){be("input")},Sn=function(Nt){be("input"),$e(!0,{inherit:!0}),st(Nt)},zt=function(Nt){$e(!1),Dt(Nt)},vt=function(Nt,dn){Nt.key==="Tab"&&Jt(),E==null||E(Nt,dn)},_n=l.useMemo(function(){return{prefixCls:g,locale:z,generateConfig:V,button:oe.button,input:oe.input}},[g,z,V,oe.button,oe.input]);return hn(function(){ve&&ke!==void 0&&Vt(null,B,!1)},[ve,ke,B]),hn(function(){var jt=be();!ve&&jt==="input"&&($e(!1),Jt()),!ve&&s&&!w&&jt==="panel"&&Jt()},[ve]),l.createElement(Vi.Provider,{value:_n},l.createElement(UM,Me({},YM(a),{popupElement:qr,popupStyle:v.popup,popupClassName:b.popup,visible:ve,onClose:gr}),l.createElement(bK,Me({},a,{ref:me,suffixIcon:Z,removeIcon:ae,activeHelp:!!it,allHelp:!!it&&En==="preset",focused:Ce,onFocus:Sn,onBlur:zt,onKeyDown:vt,onSubmit:Jt,value:bn,maskFormat:f,onChange:ir,onInputChange:Yr,internalPicker:o,format:u,inputReadOnly:Q,disabled:I,open:ve,onOpenChange:$e,onClick:on,onClear:Ut,invalid:At,onInvalid:function(Nt){Mt(Nt,0)}}))))}var xK=l.forwardRef(yK);const Sj=l.createContext(null),SK=Sj.Provider,Cj=l.createContext(null),CK=Cj.Provider;var wK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],wj=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,s=e.checked,u=e.disabled,f=e.defaultChecked,d=f===void 0?!1:f,h=e.type,g=h===void 0?"checkbox":h,v=e.title,b=e.onChange,x=qt(e,wK),C=l.useRef(null),y=l.useRef(null),w=Wn(d,{value:s}),$=ue(w,2),E=$[0],I=$[1];l.useImperativeHandle(t,function(){return{focus:function(P){var N;(N=C.current)===null||N===void 0||N.focus(P)},blur:function(){var P;(P=C.current)===null||P===void 0||P.blur()},input:C.current,nativeElement:y.current}});var O=ce(r,a,X(X({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),u)),R=function(P){u||("checked"in e||I(P.target.checked),b==null||b({target:te(te({},e),{},{type:g,checked:P.target.checked}),stopPropagation:function(){P.stopPropagation()},preventDefault:function(){P.preventDefault()},nativeEvent:P.nativeEvent}))};return l.createElement("span",{className:O,title:v,style:o,ref:y},l.createElement("input",Me({},x,{className:"".concat(r,"-input"),ref:C,onChange:R,disabled:u,checked:!!E,type:g})),l.createElement("span",{className:"".concat(r,"-inner")}))});function $j(e){const t=Se.useRef(null),n=()=>{un.cancel(t.current),t.current=null};return[()=>{n(),t.current=un(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const $K=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ln(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},EK=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:u,colorBgContainer:f,colorBorder:d,lineWidth:h,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:b,dotColorDisabled:x,lineType:C,radioColor:y,radioBgColor:w,calc:$}=e,E=`${t}-inner`,O=$(a).sub($(4).mul(2)),R=$(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ne(h)} ${C} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},ao(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:R,height:R,marginBlockStart:$(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:$(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:R,transform:"scale(0)",opacity:0,transition:`all ${o} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:R,height:R,backgroundColor:f,borderColor:d,borderStyle:"solid",borderWidth:h,borderRadius:"50%",transition:`all ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:w,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${u}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:g,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:x}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${$(O).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},_K=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:s,motionDurationSlow:u,motionDurationMid:f,buttonPaddingInline:d,fontSize:h,buttonBg:g,fontSizeLG:v,controlHeightLG:b,controlHeightSM:x,paddingXS:C,borderRadius:y,borderRadiusSM:w,borderRadiusLG:$,buttonCheckedBg:E,buttonSolidCheckedColor:I,colorTextDisabled:O,colorBgContainerDisabled:R,buttonCheckedBgDisabled:T,buttonCheckedColorDisabled:P,colorPrimary:N,colorPrimaryHover:k,colorPrimaryActive:z,buttonSolidCheckedBg:V,buttonSolidCheckedHoverBg:B,buttonSolidCheckedActiveBg:L,calc:H}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:h,lineHeight:ne(H(n).sub(H(a).mul(2)).equal()),background:g,border:`${ne(a)} ${o} ${s}`,borderBlockStartWidth:H(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${f}`,`background ${f}`,`box-shadow ${f}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:H(a).mul(-1).equal(),insetInlineStart:H(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:s,transition:`background-color ${u}`,content:'""'}},"&:first-child":{borderInlineStart:`${ne(a)} ${o} ${s}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:b,fontSize:v,lineHeight:ne(H(b).sub(H(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:x,paddingInline:H(C).sub(a).equal(),paddingBlock:0,lineHeight:ne(H(x).sub(H(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},"&:hover":{position:"relative",color:N},"&:has(:focus-visible)":Object.assign({},ao(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:N,background:E,borderColor:N,"&::before":{backgroundColor:N},"&:first-child":{borderColor:N},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:z,borderColor:z,"&::before":{backgroundColor:z}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:I,background:V,borderColor:V,"&:hover":{color:I,background:B,borderColor:B},"&:active":{color:I,background:L,borderColor:L}},"&-disabled":{color:O,backgroundColor:R,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:O,backgroundColor:R,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:T,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},OK=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:s,colorBgContainer:u,colorTextDisabled:f,controlItemBgActiveDisabled:d,colorTextLightSolid:h,colorPrimary:g,colorPrimaryHover:v,colorPrimaryActive:b,colorWhite:x}=e,C=4,y=o,w=t?y-C*2:y-(C+a)*2;return{radioSize:y,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:h,buttonSolidCheckedBg:g,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:b,buttonBg:u,buttonCheckedBg:u,buttonColor:s,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:f,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?g:x,radioBgColor:t?u:g}},Ej=Kn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ne(n)} ${t}`,o=yn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[$K(o),EK(o),_K(o)]},OK,{unitless:{radioSize:!0,dotSize:!0}});var IK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const RK=(e,t)=>{var n,r;const a=l.useContext(Sj),o=l.useContext(Cj),{getPrefixCls:s,direction:u,radio:f}=l.useContext(Yt),d=l.useRef(null),h=xa(t,d),{isFormItemInput:g}=l.useContext(ca),v=j=>{var D,F;(D=e.onChange)===null||D===void 0||D.call(e,j),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,j)},{prefixCls:b,className:x,rootClassName:C,children:y,style:w,title:$}=e,E=IK(e,["prefixCls","className","rootClassName","children","style","title"]),I=s("radio",b),O=((a==null?void 0:a.optionType)||o)==="button",R=O?`${I}-button`:I,T=ta(I),[P,N,k]=Ej(I,T),z=Object.assign({},E),V=l.useContext(Oa);a&&(z.name=a.name,z.onChange=v,z.checked=e.value===a.value,z.disabled=(n=z.disabled)!==null&&n!==void 0?n:a.disabled),z.disabled=(r=z.disabled)!==null&&r!==void 0?r:V;const B=ce(`${R}-wrapper`,{[`${R}-wrapper-checked`]:z.checked,[`${R}-wrapper-disabled`]:z.disabled,[`${R}-wrapper-rtl`]:u==="rtl",[`${R}-wrapper-in-form-item`]:g,[`${R}-wrapper-block`]:!!(a!=null&&a.block)},f==null?void 0:f.className,x,C,N,k,T),[L,H]=$j(z.onClick);return P(l.createElement(If,{component:"Radio",disabled:z.disabled},l.createElement("label",{className:B,style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$,onClick:L},l.createElement(wj,Object.assign({},z,{className:ce(z.className,{[kg]:!O}),type:"radio",prefixCls:R,ref:h,onClick:H})),y!==void 0?l.createElement("span",{className:`${R}-label`},y):null)))},hg=l.forwardRef(RK),NK=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Yt),a=gS(),{prefixCls:o,className:s,rootClassName:u,options:f,buttonStyle:d="outline",disabled:h,children:g,size:v,style:b,id:x,optionType:C,name:y=a,defaultValue:w,value:$,block:E=!1,onChange:I,onMouseEnter:O,onMouseLeave:R,onFocus:T,onBlur:P}=e,[N,k]=Wn(w,{value:$}),z=l.useCallback(q=>{const Y=N,W=q.target.value;"value"in e||k(W),W!==Y&&(I==null||I(q))},[N,k,I]),V=n("radio",o),B=`${V}-group`,L=ta(V),[H,j,D]=Ej(V,L);let F=g;f&&f.length>0&&(F=f.map(q=>typeof q=="string"||typeof q=="number"?l.createElement(hg,{key:q.toString(),prefixCls:V,disabled:h,value:q,checked:N===q},q):l.createElement(hg,{key:`radio-group-value-options-${q.value}`,prefixCls:V,disabled:q.disabled||h,value:q.value,checked:N===q.value,title:q.title,style:q.style,id:q.id,required:q.required},q.label)));const U=ua(v),A=ce(B,`${B}-${d}`,{[`${B}-${U}`]:U,[`${B}-rtl`]:r==="rtl",[`${B}-block`]:E},s,u,j,D,L),K=l.useMemo(()=>({onChange:z,value:N,disabled:h,name:y,optionType:C,block:E}),[z,N,h,y,C,E]);return H(l.createElement("div",Object.assign({},sa(e,{aria:!0,data:!0}),{className:A,style:b,onMouseEnter:O,onMouseLeave:R,onFocus:T,onBlur:P,id:x,ref:t}),l.createElement(SK,{value:K},F)))}),MK=l.memo(NK);var jK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TK=(e,t)=>{const{getPrefixCls:n}=l.useContext(Yt),{prefixCls:r}=e,a=jK(e,["prefixCls"]),o=n("radio",r);return l.createElement(CK,{value:"button"},l.createElement(hg,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},DK=l.forwardRef(TK),ha=hg;ha.Button=DK;ha.Group=MK;ha.__ANT_RADIO=!0;function js(e){return yn(e,{inputAffixPadding:e.paddingXXS})}const Ts=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:s,fontSizeLG:u,lineHeightLG:f,paddingSM:d,controlPaddingHorizontalSM:h,controlPaddingHorizontal:g,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:x,controlOutlineWidth:C,controlOutline:y,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:E,inputFontSize:I,inputFontSizeLG:O,inputFontSizeSM:R}=e,T=I||n,P=R||T,N=O||u,k=Math.round((t-T*r)/2*10)/10-a,z=Math.round((o-P*r)/2*10)/10-a,V=Math.ceil((s-N*f)/2*10)/10-a;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(z,0),paddingBlockLG:Math.max(V,0),paddingInline:d-a,paddingInlineSM:h-a,paddingInlineLG:g-a,addonBg:v,activeBorderColor:x,hoverBorderColor:b,activeShadow:`0 0 0 ${C}px ${y}`,errorActiveShadow:`0 0 0 ${C}px ${w}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:E,activeBg:E,inputFontSize:T,inputFontSizeLG:N,inputFontSizeSM:P}},PK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),fv=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({},PK(yn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),US=(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}}),tO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},US(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),WS=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},US(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fv(e))}),tO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_j=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},fv(e))}})}),qS=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Oj=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Oj(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),YS=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oj(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fv(e))}),rO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),aO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ij=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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},aO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),aO(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Rj=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ne(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),iO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rj(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`}}),GS=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rj(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"}}),iO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),iO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),XS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Nj=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ne(t)} ${ne(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},QS=e=>({padding:`${ne(e.paddingBlockSM)} ${ne(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Pf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ne(e.paddingBlock)} ${ne(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},XS(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Nj(e)),"&-sm":Object.assign({},QS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Mj=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Nj(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},QS(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ne(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ne(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ro()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},kK=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,s=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),Pf(e)),WS(e)),YS(e)),qS(e)),GS(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},AK=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ne(e.inputAffixPadding)}`}}}},zK=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:s,iconCls:u}=e,f=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},Pf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),AK(e)),{[`${u}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${u}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},LK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ln(e)),Mj(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},_j(e)),Ij(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}}})})}},HK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-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,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},BK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jj=Kn(["Input","Shared"],e=>{const t=yn(e,js(e));return[kK(t),zK(t)]},Ts,{resetFont:!1}),Tj=Kn(["Input","Component"],e=>{const t=yn(e,js(e));return[LK(t),HK(t),BK(t),Rf(t)]},Ts,{resetFont:!1}),Sy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=sM(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:ne(o.itemLineHeight)}}}]},FK=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=yn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=yn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Sy(a,"small"),Sy(e),Sy(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},cM(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},VK=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:s,lineWidth:u,lineType:f,colorPrimary:d,cellActiveWithRangeBg:h,colorTextLightSolid:g,colorTextDisabled:v,cellBgDisabled:b,colorFillSecondary:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ne(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:s}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ne(u)} ${f} ${d}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:h}},[`&-in-view${t}-selected,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:g,background:d},[`&${t}-disabled ${n}`]:{background:x}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:v,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:b}},[`&-disabled${t}-today ${n}::before`]:{borderColor:v}}},KK=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:s,paddingSM:u,paddingXS:f,paddingXXS:d,colorBgContainer:h,lineWidth:g,lineType:v,borderRadiusLG:b,colorPrimary:x,colorTextHeading:C,colorSplit:y,pickerControlIconBorderWidth:w,colorIcon:$,textHeight:E,motionDurationMid:I,colorIconHover:O,fontWeightStrong:R,cellHeight:T,pickerCellPaddingVertical:P,colorTextDisabled:N,colorText:k,fontSize:z,motionDurationSlow:V,withoutTimeCellHeight:B,pickerQuarterPanelContentHeight:L,borderRadiusSM:H,colorTextLightSolid:j,cellHoverBg:D,timeColumnHeight:F,timeColumnWidth:U,timeCellHeight:A,controlItemBgActive:K,marginXXS:q,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:W}=e,Q=e.calc(s).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:h,borderRadius:b,outline:"none","&-focused":{borderColor:x},"&-rtl":{[`${t}-prev-icon,
              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:Q},"&-header":{display:"flex",padding:`0 ${ne(f)}`,color:C,borderBottom:`${ne(g)} ${v} ${y}`,"> *":{flex:"none"},button:{padding:0,color:$,lineHeight:ne(E),background:"transparent",border:0,cursor:"pointer",transition:`color ${I}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:z,"&:hover":{color:O},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:R,lineHeight:ne(E),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:x}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc(P).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ne(P)} 0`,color:N,cursor:"pointer","&-in-view":{color:k}},VK(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(B).mul(4).equal()},[r]:{padding:`0 ${ne(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:L}},"&-decade-panel":{[r]:{padding:`0 ${ne(e.calc(f).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${ne(f)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ne(f)} ${ne(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
            &-selected ${r},
            ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${I}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:x},[`&${t}-cell-week`]:{color:new Mn(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ne(f)} ${ne(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ne(g)} ${v} ${y}`},[`${t}-date-panel,
          ${t}-time-panel`]:{transition:`opacity ${V}`},"&-active":{[`${t}-date-panel,
            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:U,margin:`${ne(d)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${I}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ne(A)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ne(g)} ${v} ${y}`},"&-active":{background:new Mn(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:q,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(U).sub(e.calc(q).mul(2)).equal(),height:A,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(U).sub(A).div(2).equal(),color:k,lineHeight:ne(A),borderRadius:H,cursor:"pointer",transition:`background ${I}`,"&:hover":{background:D}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:N,background:"transparent",cursor:"not-allowed"}}}}}}}}},UK=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:s,cellActiveWithRangeBg:u,colorPrimaryBorder:f,lineType:d,colorSplit:h}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ne(r)} ${d} ${h}`,"&-extra":{padding:`0 ${ne(a)}`,lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ne(r)} ${d} ${h}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ne(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:s,background:u,borderColor:f,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},WK=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},qK=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:s}=e,u=o*2,f=s*2,d=Math.min(n-u,n-f),h=Math.min(r-u,r-f),g=Math.min(a-u,a-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Mn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Mn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightSM:h,multipleItemHeightLG:g,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},YK=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ts(e)),qK(e)),RS(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),GK=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},WS(e)),GS(e)),YS(e)),qS(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Cy=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),s=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${ne(o)} ${ne(r)} ${ne(s)}`}},XK=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},QK=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:s,colorBorder:u,borderRadius:f,motionDurationMid:d,colorTextDisabled:h,colorTextPlaceholder:g,controlHeightLG:v,fontSizeLG:b,controlHeightSM:x,paddingInlineSM:C,paddingXS:y,marginXS:w,colorIcon:$,lineWidthBold:E,colorPrimary:I,motionDurationSlow:O,zIndexPopup:R,paddingXXS:T,sizePopupArrow:P,colorBgElevated:N,borderRadiusLG:k,boxShadowSecondary:z,borderRadiusSM:V,colorSplit:B,cellHoverBg:L,presetsWidth:H,presetsMaxWidth:j,boxShadowPopoverArrow:D,fontHeight:F,fontHeightLG:U,lineHeightLG:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ln(e)),Cy(e,r,F,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:f,transition:`border ${d}, box-shadow ${d}, background ${d}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${d}`},XS(g)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:h,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},Cy(e,v,U,a)),{[`${t}-input > input`]:{fontSize:b,lineHeight:A}}),"&-small":Object.assign({},Cy(e,x,F,C)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:h,fontSize:b,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:$},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:I,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ne(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ln(e)),KK(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
            &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
            &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fg},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Hg},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Vg},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Bg},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`},pM(e,N,D)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:k,boxShadow:z,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${ne(o)} ${s} ${B}`,li:Object.assign(Object.assign({},Ai),{borderRadius:V,paddingInline:y,paddingBlock:e.calc(x).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:w},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${ne(e.calc(P).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},io(e,"slide-up"),io(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down")]},Dj=Kn("DatePicker",e=>{const t=yn(js(e),WK(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[UK(t),QK(t),GK(t),XK(t),FK(t),Rf(e,{focusElCls:`${e.componentCls}-focused`})]},YK);var ZK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},JK=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:ZK}))},eU=l.forwardRef(JK);const mv=l.createContext(null);var tU=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,s=o===void 0?{}:o,u=s.size,f=s.align,d=f===void 0?"center":f,h=l.useState(),g=ue(h,2),v=g[0],b=g[1],x=l.useRef(),C=Se.useCallback(function(w){return typeof u=="function"?u(w):typeof u=="number"?u:w},[u]);function y(){un.cancel(x.current)}return l.useEffect(function(){var w={};if(n)if(r){w.width=C(n.width);var $=a?"right":"left";d==="start"&&(w[$]=n[$]),d==="center"&&(w[$]=n[$]+n.width/2,w.transform=a?"translateX(50%)":"translateX(-50%)"),d==="end"&&(w[$]=n[$]+n.width,w.transform="translateX(-100%)")}else w.height=C(n.height),d==="start"&&(w.top=n.top),d==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),d==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return y(),x.current=un(function(){var E=v&&w&&Object.keys(w).every(function(I){var O=w[I],R=v[I];return typeof O=="number"&&typeof R=="number"?Math.round(O)===Math.round(R):O===R});E||b(w)}),y},[JSON.stringify(n),r,a,d,C]),{style:v}},oO={width:0,height:0,left:0,top:0};function nU(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||oO,s=o.left+o.width,u=0;u<e.length;u+=1){var f=e[u].key,d=t.get(f);if(!d){var h;d=t.get((h=e[u-1])===null||h===void 0?void 0:h.key)||oO}var g=a.get(f)||te({},d);g.right=s-g.left-g.width,a.set(f,g)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function lO(e,t){var n=l.useRef(e),r=l.useState({}),a=ue(r,2),o=a[1];function s(u){var f=typeof u=="function"?u(n.current):u;f!==n.current&&t(f,n.current),n.current=f,o({})}return[n.current,s]}var rU=.1,sO=.01,Wh=20,cO=Math.pow(.995,Wh);function aU(e,t){var n=l.useState(),r=ue(n,2),a=r[0],o=r[1],s=l.useState(0),u=ue(s,2),f=u[0],d=u[1],h=l.useState(0),g=ue(h,2),v=g[0],b=g[1],x=l.useState(),C=ue(x,2),y=C[0],w=C[1],$=l.useRef();function E(N){var k=N.touches[0],z=k.screenX,V=k.screenY;o({x:z,y:V}),window.clearInterval($.current)}function I(N){if(a){var k=N.touches[0],z=k.screenX,V=k.screenY;o({x:z,y:V});var B=z-a.x,L=V-a.y;t(B,L);var H=Date.now();d(H),b(H-f),w({x:B,y:L})}}function O(){if(a&&(o(null),w(null),y)){var N=y.x/v,k=y.y/v,z=Math.abs(N),V=Math.abs(k);if(Math.max(z,V)<rU)return;var B=N,L=k;$.current=window.setInterval(function(){if(Math.abs(B)<sO&&Math.abs(L)<sO){window.clearInterval($.current);return}B*=cO,L*=cO,t(B*Wh,L*Wh)},Wh)}}var R=l.useRef();function T(N){var k=N.deltaX,z=N.deltaY,V=0,B=Math.abs(k),L=Math.abs(z);B===L?V=R.current==="x"?k:z:B>L?(V=k,R.current="x"):(V=z,R.current="y"),t(-V,-V)&&N.preventDefault()}var P=l.useRef(null);P.current={onTouchStart:E,onTouchMove:I,onTouchEnd:O,onWheel:T},l.useEffect(function(){function N(B){P.current.onTouchStart(B)}function k(B){P.current.onTouchMove(B)}function z(B){P.current.onTouchEnd(B)}function V(B){P.current.onWheel(B)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",z,{passive:!0}),e.current.addEventListener("touchstart",N,{passive:!0}),e.current.addEventListener("wheel",V,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",z)}},[])}function Pj(e){var t=l.useState(0),n=ue(t,2),r=n[0],a=n[1],o=l.useRef(0),s=l.useRef();return s.current=e,gs(function(){var u;(u=s.current)===null||u===void 0||u.call(s)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function iU(e){var t=l.useRef([]),n=l.useState({}),r=ue(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),s=Pj(function(){var f=o.current;t.current.forEach(function(d){f=d(f)}),t.current=[],o.current=f,a({})});function u(f){t.current.push(f),s()}return[o.current,u]}var uO={width:0,height:0,left:0,top:0,right:0};function oU(e,t,n,r,a,o,s){var u=s.tabs,f=s.tabPosition,d=s.rtl,h,g,v;return["top","bottom"].includes(f)?(h="width",g=d?"right":"left",v=Math.abs(n)):(h="height",g="top",v=-n),l.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,x=b,C=0;C<b;C+=1){var y=e.get(u[C].key)||uO;if(Math.floor(y[g]+y[h])>Math.floor(v+t)){x=C-1;break}}for(var w=0,$=b-1;$>=0;$-=1){var E=e.get(u[$].key)||uO;if(E[g]<v){w=$+1;break}}return w>=x?[0,0]:[w,x]},[e,t,r,a,o,v,f,u.map(function(b){return b.key}).join("_"),d])}function dO(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var lU="TABS_DQ";function kj(e){return String(e).replace(/"/g,lU)}function ZS(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Aj=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),fO=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,s={};return _t(a)==="object"&&!l.isValidElement(a)?s=a:s.right=a,n==="right"&&(o=s.right),n==="left"&&(o=s.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),sU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,s=e.mobile,u=e.more,f=u===void 0?{}:u,d=e.style,h=e.className,g=e.editable,v=e.tabBarGutter,b=e.rtl,x=e.removeAriaLabel,C=e.onTabClick,y=e.getPopupContainer,w=e.popupClassName,$=l.useState(!1),E=ue($,2),I=E[0],O=E[1],R=l.useState(null),T=ue(R,2),P=T[0],N=T[1],k=f.icon,z=k===void 0?"More":k,V="".concat(r,"-more-popup"),B="".concat(n,"-dropdown"),L=P!==null?"".concat(V,"-").concat(P):null,H=o==null?void 0:o.dropdownAriaLabel;function j(Y,W){Y.preventDefault(),Y.stopPropagation(),g.onEdit("remove",{key:W,event:Y})}var D=l.createElement(lu,{onClick:function(W){var Q=W.key,Z=W.domEvent;C(Q,Z),O(!1)},prefixCls:"".concat(B,"-menu"),id:V,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[P],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(Y){var W=Y.closable,Q=Y.disabled,Z=Y.closeIcon,ae=Y.key,J=Y.label,se=ZS(W,Z,g,Q);return l.createElement(Tf,{key:ae,id:"".concat(V,"-").concat(ae),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ae),disabled:Q},l.createElement("span",null,J),se&&l.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(B,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),j(oe,ae)}},Z||g.removeIcon||"×"))}));function F(Y){for(var W=a.filter(function(se){return!se.disabled}),Q=W.findIndex(function(se){return se.key===P})||0,Z=W.length,ae=0;ae<Z;ae+=1){Q=(Q+Y+Z)%Z;var J=W[Q];if(!J.disabled){N(J.key);return}}}function U(Y){var W=Y.which;if(!I){[It.DOWN,It.SPACE,It.ENTER].includes(W)&&(O(!0),Y.preventDefault());return}switch(W){case It.UP:F(-1),Y.preventDefault();break;case It.DOWN:F(1),Y.preventDefault();break;case It.ESC:O(!1);break;case It.SPACE:case It.ENTER:P!==null&&C(P,Y);break}}l.useEffect(function(){var Y=document.getElementById(L);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[P]),l.useEffect(function(){I||N(null)},[I]);var A=X({},b?"marginRight":"marginLeft",v);a.length||(A.visibility="hidden",A.order=1);var K=ce(X({},"".concat(B,"-rtl"),b)),q=s?null:l.createElement($M,Me({prefixCls:B,overlay:D,visible:a.length?I:!1,onVisibleChange:O,overlayClassName:ce(K,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},f),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:A,"aria-haspopup":"listbox","aria-controls":V,id:"".concat(r,"-more"),"aria-expanded":I,onKeyDown:U},z));return l.createElement("div",{className:ce("".concat(n,"-nav-operations"),h),style:d,ref:t},q,l.createElement(Aj,{prefixCls:n,locale:o,editable:g}))});const cU=l.memo(sU,function(e,t){return t.tabMoving});var uU=function(t){var n=t.prefixCls,r=t.id,a=t.active,o=t.focus,s=t.tab,u=s.key,f=s.label,d=s.disabled,h=s.closeIcon,g=s.icon,v=t.closable,b=t.renderWrapper,x=t.removeAriaLabel,C=t.editable,y=t.onClick,w=t.onFocus,$=t.onBlur,E=t.onKeyDown,I=t.onMouseDown,O=t.onMouseUp,R=t.style,T=t.tabCount,P=t.currentPosition,N="".concat(n,"-tab"),k=ZS(v,h,C,d);function z(j){d||y(j)}function V(j){j.preventDefault(),j.stopPropagation(),C.onEdit("remove",{key:u,event:j})}var B=l.useMemo(function(){return g&&typeof f=="string"?l.createElement("span",null,f):f},[f,g]),L=l.useRef(null);l.useEffect(function(){o&&L.current&&L.current.focus()},[o]);var H=l.createElement("div",{key:u,"data-node-key":kj(u),className:ce(N,X(X(X(X({},"".concat(N,"-with-remove"),k),"".concat(N,"-active"),a),"".concat(N,"-disabled"),d),"".concat(N,"-focus"),o)),style:R,onClick:z},l.createElement("div",{ref:L,role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(N,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":d,tabIndex:d?null:a?0:-1,onClick:function(D){D.stopPropagation(),z(D)},onKeyDown:E,onMouseDown:I,onMouseUp:O,onFocus:w,onBlur:$},o&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(P," of ").concat(T)),g&&l.createElement("span",{className:"".concat(N,"-icon")},g),f&&B),k&&l.createElement("button",{type:"button",role:"tab","aria-label":x||"remove",tabIndex:a?0:-1,className:"".concat(N,"-remove"),onClick:function(D){D.stopPropagation(),V(D)}},h||C.removeIcon||"×"));return b?b(H):H},dU=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,s=t.offsetLeft,u=t.getBoundingClientRect(),f=u.width,d=u.height,h=u.left,g=u.top;return Math.abs(f-r)<1?[f,d,h-n.left,g-n.top]:[r,a,s,o]},wc=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,o=n.offsetHeight,s=o===void 0?0:o;if(t.current){var u=t.current.getBoundingClientRect(),f=u.width,d=u.height;if(Math.abs(f-a)<1)return[f,d]}return[a,s]},gh=function(t,n){return t[n?0:1]},mO=l.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,o=e.animated,s=e.activeKey,u=e.rtl,f=e.extra,d=e.editable,h=e.locale,g=e.tabPosition,v=e.tabBarGutter,b=e.children,x=e.onTabClick,C=e.onTabScroll,y=e.indicator,w=l.useContext(mv),$=w.prefixCls,E=w.tabs,I=l.useRef(null),O=l.useRef(null),R=l.useRef(null),T=l.useRef(null),P=l.useRef(null),N=l.useRef(null),k=l.useRef(null),z=g==="top"||g==="bottom",V=lO(0,function(mt,it){z&&C&&C({direction:mt>it?"left":"right"})}),B=ue(V,2),L=B[0],H=B[1],j=lO(0,function(mt,it){!z&&C&&C({direction:mt>it?"top":"bottom"})}),D=ue(j,2),F=D[0],U=D[1],A=l.useState([0,0]),K=ue(A,2),q=K[0],Y=K[1],W=l.useState([0,0]),Q=ue(W,2),Z=Q[0],ae=Q[1],J=l.useState([0,0]),se=ue(J,2),he=se[0],oe=se[1],le=l.useState([0,0]),ie=ue(le,2),de=ie[0],ge=ie[1],me=iU(new Map),xe=ue(me,2),Ee=xe[0],He=xe[1],je=nU(E,Ee,Z[0]),ve=gh(q,z),$e=gh(Z,z),we=gh(he,z),Re=gh(de,z),ze=Math.floor(ve)<Math.floor($e+we),De=ze?ve-Re:ve-we,Ye="".concat($,"-nav-operations-hidden"),Xe=0,Le=0;z&&u?(Xe=0,Le=Math.max(0,$e-De)):(Xe=Math.min(0,De-$e),Le=0);function Ke(mt){return mt<Xe?Xe:mt>Le?Le:mt}var Fe=l.useRef(null),Ie=l.useState(),Ue=ue(Ie,2),ye=Ue[0],Ce=Ue[1];function _e(){Ce(Date.now())}function be(){Fe.current&&clearTimeout(Fe.current)}aU(T,function(mt,it){function Bt(tn,bn){tn(function(On){var kt=Ke(On+bn);return kt})}return ze?(z?Bt(H,mt):Bt(U,it),be(),_e(),!0):!1}),l.useEffect(function(){return be(),ye&&(Fe.current=setTimeout(function(){Ce(0)},100)),be},[ye]);var ke=oU(je,De,z?L:F,$e,we,Re,te(te({},e),{},{tabs:E})),st=ue(ke,2),Dt=st[0],Wt=st[1],Je=pn(function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,it=je.get(mt)||{width:0,height:0,left:0,right:0,top:0};if(z){var Bt=L;u?it.right<L?Bt=it.right:it.right+it.width>L+De&&(Bt=it.right+it.width-De):it.left<-L?Bt=-it.left:it.left+it.width>-L+De&&(Bt=-(it.left+it.width-De)),U(0),H(Ke(Bt))}else{var tn=F;it.top<-F?tn=-it.top:it.top+it.height>-F+De&&(tn=-(it.top+it.height-De)),H(0),U(Ke(tn))}}),ct=l.useState(),$t=ue(ct,2),ot=$t[0],gt=$t[1],dt=l.useState(!1),lt=ue(dt,2),nt=lt[0],Pt=lt[1],bt=E.filter(function(mt){return!mt.disabled}).map(function(mt){return mt.key}),Ge=function(it){var Bt=bt.indexOf(ot||s),tn=bt.length,bn=(Bt+it+tn)%tn,On=bt[bn];gt(On)},tt=function(it){var Bt=it.code,tn=u&&z,bn=bt[0],On=bt[bt.length-1];switch(Bt){case"ArrowLeft":{z&&Ge(tn?1:-1);break}case"ArrowRight":{z&&Ge(tn?-1:1);break}case"ArrowUp":{it.preventDefault(),z||Ge(-1);break}case"ArrowDown":{it.preventDefault(),z||Ge(1);break}case"Home":{it.preventDefault(),gt(bn);break}case"End":{it.preventDefault(),gt(On);break}case"Enter":case"Space":{it.preventDefault(),x(ot??s,it);break}case"Backspace":case"Delete":{var kt=bt.indexOf(ot),Ft=E.find(function(Nn){return Nn.key===ot}),nn=ZS(Ft==null?void 0:Ft.closable,Ft==null?void 0:Ft.closeIcon,d,Ft==null?void 0:Ft.disabled);nn&&(it.preventDefault(),it.stopPropagation(),d.onEdit("remove",{key:ot,event:it}),kt===bt.length-1?Ge(-1):Ge(1));break}}},Mt={};z?Mt[u?"marginRight":"marginLeft"]=v:Mt.marginTop=v;var At=E.map(function(mt,it){var Bt=mt.key;return l.createElement(uU,{id:a,prefixCls:$,key:Bt,tab:mt,style:it===0?void 0:Mt,closable:mt.closable,editable:d,active:Bt===s,focus:Bt===ot,renderWrapper:b,removeAriaLabel:h==null?void 0:h.removeAriaLabel,tabCount:bt.length,currentPosition:it+1,onClick:function(bn){x(Bt,bn)},onKeyDown:tt,onFocus:function(){nt||gt(Bt),Je(Bt),_e(),T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){gt(void 0)},onMouseDown:function(){Pt(!0)},onMouseUp:function(){Pt(!1)}})}),Ot=function(){return He(function(){var it,Bt=new Map,tn=(it=P.current)===null||it===void 0?void 0:it.getBoundingClientRect();return E.forEach(function(bn){var On,kt=bn.key,Ft=(On=P.current)===null||On===void 0?void 0:On.querySelector('[data-node-key="'.concat(kj(kt),'"]'));if(Ft){var nn=dU(Ft,tn),Nn=ue(nn,4),hr=Nn[0],Ur=Nn[1],gr=Nn[2],Bn=Nn[3];Bt.set(kt,{width:hr,height:Ur,left:gr,top:Bn})}}),Bt})};l.useEffect(function(){Ot()},[E.map(function(mt){return mt.key}).join("_")]);var Ht=Pj(function(){var mt=wc(I),it=wc(O),Bt=wc(R);Y([mt[0]-it[0]-Bt[0],mt[1]-it[1]-Bt[1]]);var tn=wc(k);oe(tn);var bn=wc(N);ge(bn);var On=wc(P);ae([On[0]-tn[0],On[1]-tn[1]]),Ot()}),wt=E.slice(0,Dt),xt=E.slice(Wt+1),Tt=[].concat(Ae(wt),Ae(xt)),Vt=je.get(s),Jt=tU({activeTabOffset:Vt,horizontal:z,indicator:y,rtl:u}),on=Jt.style;l.useEffect(function(){Je()},[s,Xe,Le,dO(Vt),dO(je),z]),l.useEffect(function(){Ht()},[u]);var Ut=!!Tt.length,gn="".concat($,"-nav-wrap"),$n,En,at,Rt;return z?u?(En=L>0,$n=L!==Le):($n=L<0,En=L!==Xe):(at=F<0,Rt=F!==Xe),l.createElement(ga,{onResize:Ht},l.createElement("div",{ref:Pl(t,I),role:"tablist","aria-orientation":z?"horizontal":"vertical",className:ce("".concat($,"-nav"),n),style:r,onKeyDown:function(){_e()}},l.createElement(fO,{ref:O,position:"left",extra:f,prefixCls:$}),l.createElement(ga,{onResize:Ht},l.createElement("div",{className:ce(gn,X(X(X(X({},"".concat(gn,"-ping-left"),$n),"".concat(gn,"-ping-right"),En),"".concat(gn,"-ping-top"),at),"".concat(gn,"-ping-bottom"),Rt)),ref:T},l.createElement(ga,{onResize:Ht},l.createElement("div",{ref:P,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(F,"px)"),transition:ye?"none":void 0}},At,l.createElement(Aj,{ref:k,prefixCls:$,locale:h,editable:d,style:te(te({},At.length===0?void 0:Mt),{},{visibility:Ut?"hidden":null})}),l.createElement("div",{className:ce("".concat($,"-ink-bar"),X({},"".concat($,"-ink-bar-animated"),o.inkBar)),style:on}))))),l.createElement(cU,Me({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:N,prefixCls:$,tabs:Tt,className:!Ut&&Ye,tabMoving:!!ye})),l.createElement(fO,{ref:R,position:"right",extra:f,prefixCls:$})))}),zj=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,s=e.active,u=e.tabKey,f=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(u),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(u),"aria-hidden":!s,style:a,className:ce(n,s&&"".concat(n,"-active"),r),ref:t},f)}),fU=["renderTabBar"],mU=["label","key"],hU=function(t){var n=t.renderTabBar,r=qt(t,fU),a=l.useContext(mv),o=a.tabs;if(n){var s=te(te({},r),{},{panes:o.map(function(u){var f=u.label,d=u.key,h=qt(u,mU);return l.createElement(zj,Me({tab:f,key:d,tabKey:d},h))})});return n(s,mO)}return l.createElement(mO,r)},gU=["key","forceRender","style","className","destroyInactiveTabPane"],vU=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,s=t.destroyInactiveTabPane,u=l.useContext(mv),f=u.prefixCls,d=u.tabs,h=a.tabPane,g="".concat(f,"-tabpane");return l.createElement("div",{className:ce("".concat(f,"-content-holder"))},l.createElement("div",{className:ce("".concat(f,"-content"),"".concat(f,"-content-").concat(o),X({},"".concat(f,"-content-animated"),h))},d.map(function(v){var b=v.key,x=v.forceRender,C=v.style,y=v.className,w=v.destroyInactiveTabPane,$=qt(v,gU),E=b===r;return l.createElement(xi,Me({key:b,visible:E,forceRender:x,removeOnLeave:!!(s||w),leavedClassName:"".concat(g,"-hidden")},a.tabPaneMotion),function(I,O){var R=I.style,T=I.className;return l.createElement(zj,Me({},$,{prefixCls:g,id:n,tabKey:b,animated:h,active:E,style:te(te({},C),R),className:ce(y,T),ref:O}))})})))};function pU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=te({inkBar:!0},_t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var bU=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],hO=0,yU=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,s=e.items,u=e.direction,f=e.activeKey,d=e.defaultActiveKey,h=e.editable,g=e.animated,v=e.tabPosition,b=v===void 0?"top":v,x=e.tabBarGutter,C=e.tabBarStyle,y=e.tabBarExtraContent,w=e.locale,$=e.more,E=e.destroyInactiveTabPane,I=e.renderTabBar,O=e.onChange,R=e.onTabClick,T=e.onTabScroll,P=e.getPopupContainer,N=e.popupClassName,k=e.indicator,z=qt(e,bU),V=l.useMemo(function(){return(s||[]).filter(function(de){return de&&_t(de)==="object"&&"key"in de})},[s]),B=u==="rtl",L=pU(g),H=l.useState(!1),j=ue(H,2),D=j[0],F=j[1];l.useEffect(function(){F(Jg())},[]);var U=Wn(function(){var de;return(de=V[0])===null||de===void 0?void 0:de.key},{value:f,defaultValue:d}),A=ue(U,2),K=A[0],q=A[1],Y=l.useState(function(){return V.findIndex(function(de){return de.key===K})}),W=ue(Y,2),Q=W[0],Z=W[1];l.useEffect(function(){var de=V.findIndex(function(me){return me.key===K});if(de===-1){var ge;de=Math.max(0,Math.min(Q,V.length-1)),q((ge=V[de])===null||ge===void 0?void 0:ge.key)}Z(de)},[V.map(function(de){return de.key}).join("_"),K,Q]);var ae=Wn(null,{value:n}),J=ue(ae,2),se=J[0],he=J[1];l.useEffect(function(){n||(he("rc-tabs-".concat(hO)),hO+=1)},[]);function oe(de,ge){R==null||R(de,ge);var me=de!==K;q(de),me&&(O==null||O(de))}var le={id:se,activeKey:K,animated:L,tabPosition:b,rtl:B,mobile:D},ie=te(te({},le),{},{editable:h,locale:w,more:$,tabBarGutter:x,onTabClick:oe,onTabScroll:T,extra:y,style:C,panes:null,getPopupContainer:P,popupClassName:N,indicator:k});return l.createElement(mv.Provider,{value:{tabs:V,prefixCls:a}},l.createElement("div",Me({ref:t,id:n,className:ce(a,"".concat(a,"-").concat(b),X(X(X({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),h),"".concat(a,"-rtl"),B),o)},z),l.createElement(hU,Me({},ie,{renderTabBar:I})),l.createElement(vU,Me({destroyInactiveTabPane:E},le,{animated:L}))))});const xU={motionAppear:!1,motionEnter:!0,motionLeave:!0};function SU(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},xU),{motionName:dS(e,"switch")})),n}var CU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function wU(e){return e.filter(t=>t)}function $U(e,t){if(e)return e;const n=_a(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,s=o||{},{tab:u}=s,f=CU(s,["tab"]);return Object.assign(Object.assign({key:String(a)},f),{label:u})}return null});return wU(n)}const EU=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[io(e,"slide-up"),io(e,"slide-down")]]},_U=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ne(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},ao(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ne(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ne(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadiusLG)} 0 0 ${ne(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},OU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ln(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ne(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ai),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ne(e.paddingXXS)} ${ne(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},IU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:s,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ne(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},RU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ne(e.borderRadius)} ${ne(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ne(e.borderRadius)} ${ne(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ne(e.borderRadius)} ${ne(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadius)} 0 0 ${ne(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},NU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:u,itemColor:f}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Bo(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn`]:Object.assign({},ao(e)),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},MU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ne(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ne(e.marginXS)},marginLeft:{_skip_check_:!0,value:ne(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},jU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:a},padding:ne(e.paddingXS),background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s}},Bo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),NU(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Bo(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},TU=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},DU=Kn("Tabs",e=>{const t=yn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ne(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ne(e.horizontalItemGutter)}`});return[RU(t),MU(t),IU(t),OU(t),_U(t),jU(t),EU(t)]},TU),PU=()=>null;var kU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Lj=e=>{var t,n,r,a,o,s,u,f,d,h,g;const{type:v,className:b,rootClassName:x,size:C,onEdit:y,hideAdd:w,centered:$,addIcon:E,removeIcon:I,moreIcon:O,more:R,popupClassName:T,children:P,items:N,animated:k,style:z,indicatorSize:V,indicator:B}=e,L=kU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=L,{direction:j,tabs:D,getPrefixCls:F,getPopupContainer:U}=l.useContext(Yt),A=F("tabs",H),K=ta(A),[q,Y,W]=DU(A,K);let Q;v==="editable-card"&&(Q={onEdit:(le,ie)=>{let{key:de,event:ge}=ie;y==null||y(le==="add"?ge:de,le)},removeIcon:(t=I??(D==null?void 0:D.removeIcon))!==null&&t!==void 0?t:l.createElement(eu,null),addIcon:(E??(D==null?void 0:D.addIcon))||l.createElement(eU,null),showAdd:w!==!0});const Z=F(),ae=ua(C),J=$U(N,P),se=SU(A,k),he=Object.assign(Object.assign({},D==null?void 0:D.style),z),oe={align:(n=B==null?void 0:B.align)!==null&&n!==void 0?n:(r=D==null?void 0:D.indicator)===null||r===void 0?void 0:r.align,size:(u=(o=(a=B==null?void 0:B.size)!==null&&a!==void 0?a:V)!==null&&o!==void 0?o:(s=D==null?void 0:D.indicator)===null||s===void 0?void 0:s.size)!==null&&u!==void 0?u:D==null?void 0:D.indicatorSize};return q(l.createElement(yU,Object.assign({direction:j,getPopupContainer:U},L,{items:J,className:ce({[`${A}-${ae}`]:ae,[`${A}-card`]:["card","editable-card"].includes(v),[`${A}-editable-card`]:v==="editable-card",[`${A}-centered`]:$},D==null?void 0:D.className,b,x,Y,W,K),popupClassName:ce(T,Y,W,K),style:he,editable:Q,more:Object.assign({icon:(g=(h=(d=(f=D==null?void 0:D.more)===null||f===void 0?void 0:f.icon)!==null&&d!==void 0?d:D==null?void 0:D.moreIcon)!==null&&h!==void 0?h:O)!==null&&g!==void 0?g:l.createElement(zS,null),transitionName:`${Z}-slide-up`},R),prefixCls:A,animated:se,indicator:oe})))};Lj.TabPane=PU;var AU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Hj=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=AU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(Yt),s=o("card",t),u=ce(`${s}-grid`,n,{[`${s}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:u}))},zU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ne(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},ro()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ai),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},LU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${ne(a)} 0 0 0 ${n},
      0 ${ne(a)} 0 0 ${n},
      ${ne(a)} ${ne(a)} 0 0 ${n},
      ${ne(a)} 0 0 0 ${n} inset,
      0 ${ne(a)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},HU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},ro()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ne(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ne(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${o}`}}})},BU=e=>Object.assign(Object.assign({margin:`${ne(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ro()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ai),"&-description":{color:e.colorTextDescription}}),FU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${ne(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ne(e.padding)} ${ne(a)}`}}},VU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},KU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,bodyPadding:s,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:zU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},ro()),[`${t}-grid`]:LU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:HU(e),[`${t}-meta`]:BU(e)}),[`${t}-bordered`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:FU(e),[`${t}-loading`]:VU(e),[`${t}-rtl`]:{direction:"rtl"}}},UU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${ne(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},WU=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},qU=Kn("Card",e=>{const t=yn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[KU(t),UU(t)]},WU);var gO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const s=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:s},l.createElement("span",null,a))}))},GU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:s,headStyle:u={},bodyStyle:f={},title:d,loading:h,bordered:g,variant:v,size:b,type:x,cover:C,actions:y,tabList:w,children:$,activeTabKey:E,defaultActiveTabKey:I,tabBarExtraContent:O,hoverable:R,tabProps:T={},classNames:P,styles:N}=e,k=gO(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:z,direction:V,card:B}=l.useContext(Yt),[L]=Is("card",v,g),H=je=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,je)},j=je=>{var ve;return ce((ve=B==null?void 0:B.classNames)===null||ve===void 0?void 0:ve[je],P==null?void 0:P[je])},D=je=>{var ve;return Object.assign(Object.assign({},(ve=B==null?void 0:B.styles)===null||ve===void 0?void 0:ve[je]),N==null?void 0:N[je])},F=l.useMemo(()=>{let je=!1;return l.Children.forEach($,ve=>{(ve==null?void 0:ve.type)===Hj&&(je=!0)}),je},[$]),U=z("card",n),[A,K,q]=qU(U),Y=l.createElement(iu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),W=E!==void 0,Q=Object.assign(Object.assign({},T),{[W?"activeKey":"defaultActiveKey"]:W?E:I,tabBarExtraContent:O});let Z;const ae=ua(b),J=!ae||ae==="default"?"large":ae,se=w?l.createElement(Lj,Object.assign({size:J},Q,{className:`${U}-head-tabs`,onChange:H,items:w.map(je=>{var{tab:ve}=je,$e=gO(je,["tab"]);return Object.assign({label:ve},$e)})})):null;if(d||s||se){const je=ce(`${U}-head`,j("header")),ve=ce(`${U}-head-title`,j("title")),$e=ce(`${U}-extra`,j("extra")),we=Object.assign(Object.assign({},u),D("header"));Z=l.createElement("div",{className:je,style:we},l.createElement("div",{className:`${U}-head-wrapper`},d&&l.createElement("div",{className:ve,style:D("title")},d),s&&l.createElement("div",{className:$e,style:D("extra")},s)),se)}const he=ce(`${U}-cover`,j("cover")),oe=C?l.createElement("div",{className:he,style:D("cover")},C):null,le=ce(`${U}-body`,j("body")),ie=Object.assign(Object.assign({},f),D("body")),de=l.createElement("div",{className:le,style:ie},h?Y:$),ge=ce(`${U}-actions`,j("actions")),me=y!=null&&y.length?l.createElement(YU,{actionClasses:ge,actionStyle:D("actions"),actions:y}):null,xe=tr(k,["onTabChange"]),Ee=ce(U,B==null?void 0:B.className,{[`${U}-loading`]:h,[`${U}-bordered`]:L!=="borderless",[`${U}-hoverable`]:R,[`${U}-contain-grid`]:F,[`${U}-contain-tabs`]:w==null?void 0:w.length,[`${U}-${ae}`]:ae,[`${U}-type-${x}`]:!!x,[`${U}-rtl`]:V==="rtl"},r,a,K,q),He=Object.assign(Object.assign({},B==null?void 0:B.style),o);return A(l.createElement("div",Object.assign({ref:t},xe,{className:Ee,style:He}),Z,oe,de,me))});var XU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QU=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,s=XU(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=l.useContext(Yt),f=u("card",t),d=ce(`${f}-meta`,n),h=r?l.createElement("div",{className:`${f}-meta-avatar`},r):null,g=a?l.createElement("div",{className:`${f}-meta-title`},a):null,v=o?l.createElement("div",{className:`${f}-meta-description`},o):null,b=g||v?l.createElement("div",{className:`${f}-meta-detail`},g,v):null;return l.createElement("div",Object.assign({},s,{className:d}),h,b)},et=GU;et.Grid=Hj;et.Meta=QU;function ZU(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,s=r.noLeading,u=s===void 0?!1:s,f=r.debounceMode,d=f===void 0?void 0:f,h,g=!1,v=0;function b(){h&&clearTimeout(h)}function x(y){var w=y||{},$=w.upcomingOnly,E=$===void 0?!1:$;b(),g=!E}function C(){for(var y=arguments.length,w=new Array(y),$=0;$<y;$++)w[$]=arguments[$];var E=this,I=Date.now()-v;if(g)return;function O(){v=Date.now(),t.apply(E,w)}function R(){h=void 0}!u&&d&&!h&&O(),b(),d===void 0&&I>e?u?(v=Date.now(),o||(h=setTimeout(d?R:O,e))):O():o!==!0&&(h=setTimeout(d?R:O,d===void 0?e-I:e))}return C.cancel=x,C}function JU(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return ZU(e,t,{debounceMode:o!==!1})}function La(e,t){return e[t]}var eW=["children"];function Bj(e,t){return"".concat(e,"-").concat(t)}function tW(e){return e&&e.type&&e.type.isTreeNode}function kf(e,t){return e??t}function Gc(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,s=n||"title";return{title:s,_title:r||[s],key:a||"key",children:o||"children"}}function Fj(e){function t(n){var r=_a(n);return r.map(function(a){if(!tW(a))return br(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,s=a.props,u=s.children,f=qt(s,eW),d=te({key:o},f),h=t(u);return h.length&&(d.children=h),d}).filter(function(a){return a})}return t(e)}function wy(e,t,n){var r=Gc(n),a=r._title,o=r.key,s=r.children,u=new Set(t===!0?[]:t),f=[];function d(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(v,b){for(var x=Bj(g?g.pos:"0",b),C=kf(v[o],x),y,w=0;w<a.length;w+=1){var $=a[w];if(v[$]!==void 0){y=v[$];break}}var E=Object.assign(tr(v,[].concat(Ae(a),[o,s])),{title:y,key:C,parent:g,pos:x,children:null,data:v,isStart:[].concat(Ae(g?g.isStart:[]),[b===0]),isEnd:[].concat(Ae(g?g.isEnd:[]),[b===h.length-1])});return f.push(E),t===!0||u.has(C)?E.children=d(v[s]||[],E):E.children=[],E})}return d(e),f}function nW(e,t,n){var r={};_t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,o=a.childrenPropName,s=a.externalGetKey,u=a.fieldNames,f=Gc(u),d=f.key,h=f.children,g=o||h,v;s?typeof s=="string"?v=function(C){return C[s]}:typeof s=="function"&&(v=function(C){return s(C)}):v=function(C,y){return kf(C[d],y)};function b(x,C,y,w){var $=x?x[g]:e,E=x?Bj(y.pos,C):"0",I=x?[].concat(Ae(w),[x]):[];if(x){var O=v(x,E),R={node:x,index:C,pos:E,key:O,parentPos:y.node?y.pos:null,level:y.level+1,nodes:I};t(R)}$&&$.forEach(function(T,P){b(T,P,{node:x,pos:E,level:y?y.level+1:-1},I)})}b(null)}function JS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,s=t.childrenPropName,u=t.fieldNames,f=arguments.length>2?arguments[2]:void 0,d=o||f,h={},g={},v={posEntities:h,keyEntities:g};return n&&(v=n(v)||v),nW(e,function(b){var x=b.node,C=b.index,y=b.pos,w=b.key,$=b.parentPos,E=b.level,I=b.nodes,O={node:x,nodes:I,index:C,key:w,pos:y,level:E},R=kf(w,y);h[y]=O,g[R]=O,O.parent=h[$],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),r&&r(O,v)},{externalGetKey:d,childrenPropName:s,fieldNames:u}),a&&a(v),v}function Kd(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,u=t.halfCheckedKeys,f=t.dragOverNodeKey,d=t.dropPosition,h=t.keyEntities,g=La(h,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:f===e&&d===0,dragOverGapTop:f===e&&d===-1,dragOverGapBottom:f===e&&d===1};return v}function Vr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,s=e.loading,u=e.halfChecked,f=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,g=e.pos,v=e.active,b=e.eventKey,x=te(te({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:s,halfChecked:u,dragOver:f,dragOverGapTop:d,dragOverGapBottom:h,pos:g,active:v,key:b});return"props"in x||Object.defineProperty(x,"props",{get:function(){return br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),x}function Vj(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function rW(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function aW(e,t,n,r){for(var a=new Set(e),o=new Set,s=0;s<=n;s+=1){var u=t.get(s)||new Set;u.forEach(function(g){var v=g.key,b=g.node,x=g.children,C=x===void 0?[]:x;a.has(v)&&!r(b)&&C.filter(function(y){return!r(y.node)}).forEach(function(y){a.add(y.key)})})}for(var f=new Set,d=n;d>=0;d-=1){var h=t.get(d)||new Set;h.forEach(function(g){var v=g.parent,b=g.node;if(!(r(b)||!g.parent||f.has(g.parent.key))){if(r(g.parent.node)){f.add(v.key);return}var x=!0,C=!1;(v.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var w=y.key,$=a.has(w);x&&!$&&(x=!1),!C&&($||o.has(w))&&(C=!0)}),x&&a.add(v.key),C&&o.add(v.key),f.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Vj(o,a))}}function iW(e,t,n,r,a){for(var o=new Set(e),s=new Set(t),u=0;u<=r;u+=1){var f=n.get(u)||new Set;f.forEach(function(v){var b=v.key,x=v.node,C=v.children,y=C===void 0?[]:C;!o.has(b)&&!s.has(b)&&!a(x)&&y.filter(function(w){return!a(w.node)}).forEach(function(w){o.delete(w.key)})})}s=new Set;for(var d=new Set,h=r;h>=0;h-=1){var g=n.get(h)||new Set;g.forEach(function(v){var b=v.parent,x=v.node;if(!(a(x)||!v.parent||d.has(v.parent.key))){if(a(v.parent.node)){d.add(b.key);return}var C=!0,y=!1;(b.children||[]).filter(function(w){return!a(w.node)}).forEach(function(w){var $=w.key,E=o.has($);C&&!E&&(C=!1),!y&&(E||s.has($))&&(y=!0)}),C||o.delete(b.key),y&&s.add(b.key),d.add(b.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Vj(s,o))}}function Ac(e,t,n,r){var a=[],o;r?o=r:o=rW;var s=new Set(e.filter(function(h){var g=!!La(n,h);return g||a.push(h),g})),u=new Map,f=0;Object.keys(n).forEach(function(h){var g=n[h],v=g.level,b=u.get(v);b||(b=new Set,u.set(v,b)),b.add(g),f=Math.max(f,v)}),br(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var d;return t===!0?d=aW(s,u,f,o):d=iW(s,t.halfCheckedKeys,u,f,o),d}const oW=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ln(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({},ao(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ne(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Kj(e,t){const n=yn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[oW(n)]}const Uj=Kn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Kj(n,e)]}),Wj=Se.createContext(null);var lW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sW=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:o,children:s,indeterminate:u=!1,style:f,onMouseEnter:d,onMouseLeave:h,skipGroup:g=!1,disabled:v}=e,b=lW(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:x,direction:C,checkbox:y}=l.useContext(Yt),w=l.useContext(Wj),{isFormItemInput:$}=l.useContext(ca),E=l.useContext(Oa),I=(n=(w==null?void 0:w.disabled)||v)!==null&&n!==void 0?n:E,O=l.useRef(b.value),R=l.useRef(null),T=xa(t,R);l.useEffect(()=>{w==null||w.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==O.current&&(w==null||w.cancelValue(O.current),w==null||w.registerValue(b.value),O.current=b.value),()=>w==null?void 0:w.cancelValue(b.value)},[b.value]),l.useEffect(()=>{var F;!((F=R.current)===null||F===void 0)&&F.input&&(R.current.input.indeterminate=u)},[u]);const P=x("checkbox",r),N=ta(P),[k,z,V]=Uj(P,N),B=Object.assign({},b);w&&!g&&(B.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),w.toggleOption&&w.toggleOption({label:s,value:b.value})},B.name=w.name,B.checked=w.value.includes(b.value));const L=ce(`${P}-wrapper`,{[`${P}-rtl`]:C==="rtl",[`${P}-wrapper-checked`]:B.checked,[`${P}-wrapper-disabled`]:I,[`${P}-wrapper-in-form-item`]:$},y==null?void 0:y.className,a,o,V,N,z),H=ce({[`${P}-indeterminate`]:u},kg,z),[j,D]=$j(B.onClick);return k(l.createElement(If,{component:"Checkbox",disabled:I},l.createElement("label",{className:L,style:Object.assign(Object.assign({},y==null?void 0:y.style),f),onMouseEnter:d,onMouseLeave:h,onClick:j},l.createElement(wj,Object.assign({},B,{onClick:D,prefixCls:P,className:H,disabled:I,ref:T})),s!==void 0&&l.createElement("span",{className:`${P}-label`},s))))},qj=l.forwardRef(sW);var cW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uW=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:s,rootClassName:u,style:f,onChange:d}=e,h=cW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:v}=l.useContext(Yt),[b,x]=l.useState(h.value||n||[]),[C,y]=l.useState([]);l.useEffect(()=>{"value"in h&&x(h.value||[])},[h.value]);const w=l.useMemo(()=>a.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[a]),$=H=>{y(j=>j.filter(D=>D!==H))},E=H=>{y(j=>[].concat(Ae(j),[H]))},I=H=>{const j=b.indexOf(H.value),D=Ae(b);j===-1?D.push(H.value):D.splice(j,1),"value"in h||x(D),d==null||d(D.filter(F=>C.includes(F)).sort((F,U)=>{const A=w.findIndex(q=>q.value===F),K=w.findIndex(q=>q.value===U);return A-K}))},O=g("checkbox",o),R=`${O}-group`,T=ta(O),[P,N,k]=Uj(O,T),z=tr(h,["value","disabled"]),V=a.length?w.map(H=>l.createElement(qj,{prefixCls:O,key:H.value.toString(),disabled:"disabled"in H?H.disabled:h.disabled,value:H.value,checked:b.includes(H.value),onChange:H.onChange,className:`${R}-item`,style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,B={toggleOption:I,value:b,disabled:h.disabled,name:h.name,registerValue:E,cancelValue:$},L=ce(R,{[`${R}-rtl`]:v==="rtl"},s,u,k,T,N);return P(l.createElement("div",Object.assign({className:L,style:f},z,{ref:t}),l.createElement(Wj.Provider,{value:B},V)))}),Lr=qj;Lr.Group=uW;Lr.__ANT_CHECKBOX=!0;const Yj=l.createContext({});var dW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function vO(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fW=["xs","sm","md","lg","xl","xxl"],eC=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Yt),{gutter:a,wrap:o}=l.useContext(Yj),{prefixCls:s,span:u,order:f,offset:d,push:h,pull:g,className:v,children:b,flex:x,style:C}=e,y=dW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",s),[$,E,I]=eB(w),O={};let R={};fW.forEach(N=>{let k={};const z=e[N];typeof z=="number"?k.span=z:typeof z=="object"&&(k=z||{}),delete y[N],R=Object.assign(Object.assign({},R),{[`${w}-${N}-${k.span}`]:k.span!==void 0,[`${w}-${N}-order-${k.order}`]:k.order||k.order===0,[`${w}-${N}-offset-${k.offset}`]:k.offset||k.offset===0,[`${w}-${N}-push-${k.push}`]:k.push||k.push===0,[`${w}-${N}-pull-${k.pull}`]:k.pull||k.pull===0,[`${w}-rtl`]:r==="rtl"}),k.flex&&(R[`${w}-${N}-flex`]=!0,O[`--${w}-${N}-flex`]=vO(k.flex))});const T=ce(w,{[`${w}-${u}`]:u!==void 0,[`${w}-order-${f}`]:f,[`${w}-offset-${d}`]:d,[`${w}-push-${h}`]:h,[`${w}-pull-${g}`]:g},v,R,E,I),P={};if(a&&a[0]>0){const N=a[0]/2;P.paddingLeft=N,P.paddingRight=N}return x&&(P.flex=vO(x),o===!1&&!P.minWidth&&(P.minWidth=0)),$(l.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},P),C),O),className:T,ref:t}),b))});function mW(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,s)=>{if(typeof o=="object"&&o!==null)for(let u=0;u<ws.length;u++){const f=ws[u];if(a[f]&&o[f]!==void 0){n[s]=o[f];break}}else n[s]=o}),n}var hW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function pO(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<ws.length;o++){const s=ws[o];if(!t||!t[s])continue;const u=e[s];if(u!==void 0){r(u);return}}};return l.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const Gj=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:s,children:u,gutter:f=0,wrap:d}=e,h=hW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:v}=l.useContext(Yt),b=nv(!0,null),x=pO(a,b),C=pO(r,b),y=g("row",n),[w,$,E]=ZH(y),I=mW(f,b),O=ce(y,{[`${y}-no-wrap`]:d===!1,[`${y}-${C}`]:C,[`${y}-${x}`]:x,[`${y}-rtl`]:v==="rtl"},o,$,E),R={},T=I[0]!=null&&I[0]>0?I[0]/-2:void 0;T&&(R.marginLeft=T,R.marginRight=T);const[P,N]=I;R.rowGap=N;const k=l.useMemo(()=>({gutter:[P,N],wrap:d}),[P,N,d]);return w(l.createElement(Yj.Provider,{value:k},l.createElement("div",Object.assign({},h,{className:O,style:Object.assign(Object.assign({},R),s),ref:t}),u)))}),gW=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:s,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{borderBlockStart:`${ne(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ne(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ne(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ne(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ne(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ne(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ne(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},vW=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),pW=Kn("Divider",e=>{const t=yn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[gW(t)]},vW,{unitless:{orientationMargin:!0}});var bW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yW=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=Ia("divider"),{prefixCls:o,type:s="horizontal",orientation:u="center",orientationMargin:f,className:d,rootClassName:h,children:g,dashed:v,variant:b="solid",plain:x,style:C}=e,y=bW(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),w=t("divider",o),[$,E,I]=pW(w),O=!!g,R=l.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),T=R==="start"&&f!=null,P=R==="end"&&f!=null,N=ce(w,r,E,I,`${w}-${s}`,{[`${w}-with-text`]:O,[`${w}-with-text-${R}`]:O,[`${w}-dashed`]:!!v,[`${w}-${b}`]:b!=="solid",[`${w}-plain`]:!!x,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:T,[`${w}-no-default-orientation-margin-end`]:P},d,h),k=l.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),z={marginInlineStart:T?k:void 0,marginInlineEnd:P?k:void 0};return $(l.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},a),C)},y,{role:"separator"}),g&&s!=="vertical"&&l.createElement("span",{className:`${w}-inner-text`,style:z},g)))};var xW={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"},SW=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:xW}))},CW=l.forwardRef(SW);function cx(){return typeof BigInt=="function"}function Xj(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ps(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",s=a[1]||"0";o==="0"&&s==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:o,decimalStr:s,fullStr:"".concat(u).concat(r)}}function tC(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function fs(e){var t=String(e);if(tC(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&nC(t)?t.length-t.indexOf(".")-1:0}function hv(e){var t=String(e);if(tC(e)){if(e>Number.MAX_SAFE_INTEGER)return String(cx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(cx()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(fs(t))}return ps(t).fullStr}function nC(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 wW=(function(){function e(t){if(yr(this,e),X(this,"origin",""),X(this,"negative",void 0),X(this,"integer",void 0),X(this,"decimal",void 0),X(this,"decimalLen",void 0),X(this,"empty",void 0),X(this,"nan",void 0),Xj(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(tC(n)&&(n=Number(n)),n=typeof n=="string"?n:hv(n),nC(n)){var r=ps(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return xr(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(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),s=this.alignDecimal(o),u=n.alignDecimal(o),f=r(s,u).toString(),d=a(o),h=ps(f),g=h.negativeStr,v=h.trimStr,b="".concat(g).concat(v.padStart(d+1,"0"));return new e("".concat(b.slice(0,-d),".").concat(b.slice(-d)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*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(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ps("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),$W=(function(){function e(t){if(yr(this,e),X(this,"origin",""),X(this,"number",void 0),X(this,"empty",void 0),Xj(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return xr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(fs(this.number),fs(r));return new e(a.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(fs(this.number),fs(r));return new e(a.toFixed(o))}},{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(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":hv(this.number):this.origin}}]),e})();function Ii(e){return cx()?new wW(e):new $W(e)}function qh(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=ps(e),o=a.negativeStr,s=a.integerStr,u=a.decimalStr,f="".concat(t).concat(u),d="".concat(o).concat(s);if(n>=0){var h=Number(u[n]);if(h>=5&&!r){var g=Ii(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-h));return qh(g.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return f===".0"?d:"".concat(d).concat(f)}function EW(e){return!!(e.addonBefore||e.addonAfter)}function _W(e){return!!(e.prefix||e.suffix||e.allowClear)}function bO(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function gg(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=bO(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=bO(t,e,r),n(a);return}n(a)}}function rC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var aC=Se.forwardRef(function(e,t){var n,r,a,o=e.inputElement,s=e.children,u=e.prefixCls,f=e.prefix,d=e.suffix,h=e.addonBefore,g=e.addonAfter,v=e.className,b=e.style,x=e.disabled,C=e.readOnly,y=e.focused,w=e.triggerFocus,$=e.allowClear,E=e.value,I=e.handleReset,O=e.hidden,R=e.classes,T=e.classNames,P=e.dataAttrs,N=e.styles,k=e.components,z=e.onClear,V=s??o,B=(k==null?void 0:k.affixWrapper)||"span",L=(k==null?void 0:k.groupWrapper)||"span",H=(k==null?void 0:k.wrapper)||"span",j=(k==null?void 0:k.groupAddon)||"span",D=l.useRef(null),F=function(ge){var me;(me=D.current)!==null&&me!==void 0&&me.contains(ge.target)&&(w==null||w())},U=_W(e),A=l.cloneElement(V,{value:E,className:ce((n=V.props)===null||n===void 0?void 0:n.className,!U&&(T==null?void 0:T.variant))||null}),K=l.useRef(null);if(Se.useImperativeHandle(t,function(){return{nativeElement:K.current||D.current}}),U){var q=null;if($){var Y=!x&&!C&&E,W="".concat(u,"-clear-icon"),Q=_t($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";q=Se.createElement("button",{type:"button",tabIndex:-1,onClick:function(ge){I==null||I(ge),z==null||z()},onMouseDown:function(ge){return ge.preventDefault()},className:ce(W,X(X({},"".concat(W,"-hidden"),!Y),"".concat(W,"-has-suffix"),!!d))},Q)}var Z="".concat(u,"-affix-wrapper"),ae=ce(Z,X(X(X(X(X({},"".concat(u,"-disabled"),x),"".concat(Z,"-disabled"),x),"".concat(Z,"-focused"),y),"".concat(Z,"-readonly"),C),"".concat(Z,"-input-with-clear-btn"),d&&$&&E),R==null?void 0:R.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),J=(d||$)&&Se.createElement("span",{className:ce("".concat(u,"-suffix"),T==null?void 0:T.suffix),style:N==null?void 0:N.suffix},q,d);A=Se.createElement(B,Me({className:ae,style:N==null?void 0:N.affixWrapper,onClick:F},P==null?void 0:P.affixWrapper,{ref:D}),f&&Se.createElement("span",{className:ce("".concat(u,"-prefix"),T==null?void 0:T.prefix),style:N==null?void 0:N.prefix},f),A,J)}if(EW(e)){var se="".concat(u,"-group"),he="".concat(se,"-addon"),oe="".concat(se,"-wrapper"),le=ce("".concat(u,"-wrapper"),se,R==null?void 0:R.wrapper,T==null?void 0:T.wrapper),ie=ce(oe,X({},"".concat(oe,"-disabled"),x),R==null?void 0:R.group,T==null?void 0:T.groupWrapper);A=Se.createElement(L,{className:ie,ref:K},Se.createElement(H,{className:le},h&&Se.createElement(j,{className:he},h),A,g&&Se.createElement(j,{className:he},g)))}return Se.cloneElement(A,{className:ce((r=A.props)===null||r===void 0?void 0:r.className,v)||null,style:te(te({},(a=A.props)===null||a===void 0?void 0:a.style),b),hidden:O})}),OW=["show"];function Qj(e,t){return l.useMemo(function(){var n={};t&&(n.show=_t(t)==="object"&&t.formatter?t.formatter:!!t),n=te(te({},n),e);var r=n,a=r.show,o=qt(r,OW);return te(te({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(s){return s.length}})},[e,t])}var IW=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],RW=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,s=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,d=e.prefixCls,h=d===void 0?"rc-input":d,g=e.disabled,v=e.htmlSize,b=e.className,x=e.maxLength,C=e.suffix,y=e.showCount,w=e.count,$=e.type,E=$===void 0?"text":$,I=e.classes,O=e.classNames,R=e.styles,T=e.onCompositionStart,P=e.onCompositionEnd,N=qt(e,IW),k=l.useState(!1),z=ue(k,2),V=z[0],B=z[1],L=l.useRef(!1),H=l.useRef(!1),j=l.useRef(null),D=l.useRef(null),F=function(Re){j.current&&rC(j.current,Re)},U=Wn(e.defaultValue,{value:e.value}),A=ue(U,2),K=A[0],q=A[1],Y=K==null?"":String(K),W=l.useState(null),Q=ue(W,2),Z=Q[0],ae=Q[1],J=Qj(w,y),se=J.max||x,he=J.strategy(Y),oe=!!se&&he>se;l.useImperativeHandle(t,function(){var we;return{focus:F,blur:function(){var ze;(ze=j.current)===null||ze===void 0||ze.blur()},setSelectionRange:function(ze,De,Ye){var Xe;(Xe=j.current)===null||Xe===void 0||Xe.setSelectionRange(ze,De,Ye)},select:function(){var ze;(ze=j.current)===null||ze===void 0||ze.select()},input:j.current,nativeElement:((we=D.current)===null||we===void 0?void 0:we.nativeElement)||j.current}}),l.useEffect(function(){H.current&&(H.current=!1),B(function(we){return we&&g?!1:we})},[g]);var le=function(Re,ze,De){var Ye=ze;if(!L.current&&J.exceedFormatter&&J.max&&J.strategy(ze)>J.max){if(Ye=J.exceedFormatter(ze,{max:J.max}),ze!==Ye){var Xe,Le;ae([((Xe=j.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((Le=j.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(De.source==="compositionEnd")return;q(Ye),j.current&&gg(j.current,Re,r,Ye)};l.useEffect(function(){if(Z){var we;(we=j.current)===null||we===void 0||we.setSelectionRange.apply(we,Ae(Z))}},[Z]);var ie=function(Re){le(Re,Re.target.value,{source:"change"})},de=function(Re){L.current=!1,le(Re,Re.currentTarget.value,{source:"compositionEnd"}),P==null||P(Re)},ge=function(Re){s&&Re.key==="Enter"&&!H.current&&(H.current=!0,s(Re)),u==null||u(Re)},me=function(Re){Re.key==="Enter"&&(H.current=!1),f==null||f(Re)},xe=function(Re){B(!0),a==null||a(Re)},Ee=function(Re){H.current&&(H.current=!1),B(!1),o==null||o(Re)},He=function(Re){q(""),F(),j.current&&gg(j.current,Re,r)},je=oe&&"".concat(h,"-out-of-range"),ve=function(){var Re=tr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Se.createElement("input",Me({autoComplete:n},Re,{onChange:ie,onFocus:xe,onBlur:Ee,onKeyDown:ge,onKeyUp:me,className:ce(h,X({},"".concat(h,"-disabled"),g),O==null?void 0:O.input),style:R==null?void 0:R.input,ref:j,size:v,type:E,onCompositionStart:function(De){L.current=!0,T==null||T(De)},onCompositionEnd:de}))},$e=function(){var Re=Number(se)>0;if(C||J.show){var ze=J.showFormatter?J.showFormatter({value:Y,count:he,maxLength:se}):"".concat(he).concat(Re?" / ".concat(se):"");return Se.createElement(Se.Fragment,null,J.show&&Se.createElement("span",{className:ce("".concat(h,"-show-count-suffix"),X({},"".concat(h,"-show-count-has-suffix"),!!C),O==null?void 0:O.count),style:te({},R==null?void 0:R.count)},ze),C)}return null};return Se.createElement(aC,Me({},N,{prefixCls:h,className:ce(b,je),handleReset:He,value:Y,focused:V,triggerFocus:F,suffix:$e(),disabled:g,classes:I,classNames:O,styles:R,ref:D}),ve())});function NW(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function MW(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,s=e.selectionEnd,u=e.value,f=u.substring(0,o),d=u.substring(s);n.current={start:o,end:s,value:u,beforeTxt:f,afterTxt:d}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,s=n.current,u=s.beforeTxt,f=s.afterTxt,d=s.start,h=o.length;if(o.startsWith(u))h=u.length;else if(o.endsWith(f))h=o.length-n.current.afterTxt.length;else{var g=u[d-1],v=o.indexOf(g,d-1);v!==-1&&(h=v+1)}e.setSelectionRange(h,h)}catch(b){br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,a]}var jW=function(){var t=l.useState(!1),n=ue(t,2),r=n[0],a=n[1];return hn(function(){a(Jg())},[]),r},TW=200,DW=600;function PW(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,s=e.onStep,u=l.useRef(),f=l.useRef([]),d=l.useRef();d.current=s;var h=function(){clearTimeout(u.current)},g=function(E,I){E.preventDefault(),h(),d.current(I);function O(){d.current(I),u.current=setTimeout(O,TW)}u.current=setTimeout(O,DW)};l.useEffect(function(){return function(){h(),f.current.forEach(function($){return un.cancel($)})}},[]);var v=jW();if(v)return null;var b="".concat(t,"-handler"),x=ce(b,"".concat(b,"-up"),X({},"".concat(b,"-up-disabled"),a)),C=ce(b,"".concat(b,"-down"),X({},"".concat(b,"-down-disabled"),o)),y=function(){return f.current.push(un(h))},w={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return l.createElement("div",{className:"".concat(b,"-wrap")},l.createElement("span",Me({},w,{onMouseDown:function(E){g(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:x}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",Me({},w,{onMouseDown:function(E){g(E,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:C}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function yO(e){var t=typeof e=="number"?hv(e):ps(e).fullStr,n=t.includes(".");return n?ps(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const kW=(function(){var e=l.useRef(0),t=function(){un.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=un(function(){n()})}});var AW=["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"],zW=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xO=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},SO=function(t){var n=Ii(t);return n.isInvalidate()?null:n},LW=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,s=e.max,u=e.step,f=u===void 0?1:u,d=e.defaultValue,h=e.value,g=e.disabled,v=e.readOnly,b=e.upHandler,x=e.downHandler,C=e.keyboard,y=e.changeOnWheel,w=y===void 0?!1:y,$=e.controls,E=$===void 0?!0:$;e.classNames;var I=e.stringMode,O=e.parser,R=e.formatter,T=e.precision,P=e.decimalSeparator,N=e.onChange,k=e.onInput,z=e.onPressEnter,V=e.onStep,B=e.changeOnBlur,L=B===void 0?!0:B,H=e.domRef,j=qt(e,AW),D="".concat(n,"-input"),F=l.useRef(null),U=l.useState(!1),A=ue(U,2),K=A[0],q=A[1],Y=l.useRef(!1),W=l.useRef(!1),Q=l.useRef(!1),Z=l.useState(function(){return Ii(h??d)}),ae=ue(Z,2),J=ae[0],se=ae[1];function he(Je){h===void 0&&se(Je)}var oe=l.useCallback(function(Je,ct){if(!ct)return T>=0?T:Math.max(fs(Je),fs(f))},[T,f]),le=l.useCallback(function(Je){var ct=String(Je);if(O)return O(ct);var $t=ct;return P&&($t=$t.replace(P,".")),$t.replace(/[^\w.-]+/g,"")},[O,P]),ie=l.useRef(""),de=l.useCallback(function(Je,ct){if(R)return R(Je,{userTyping:ct,input:String(ie.current)});var $t=typeof Je=="number"?hv(Je):Je;if(!ct){var ot=oe($t,ct);if(nC($t)&&(P||ot>=0)){var gt=P||".";$t=qh($t,gt,ot)}}return $t},[R,oe,P]),ge=l.useState(function(){var Je=d??h;return J.isInvalidate()&&["string","number"].includes(_t(Je))?Number.isNaN(Je)?"":Je:de(J.toString(),!1)}),me=ue(ge,2),xe=me[0],Ee=me[1];ie.current=xe;function He(Je,ct){Ee(de(Je.isInvalidate()?Je.toString(!1):Je.toString(!ct),ct))}var je=l.useMemo(function(){return SO(s)},[s,T]),ve=l.useMemo(function(){return SO(o)},[o,T]),$e=l.useMemo(function(){return!je||!J||J.isInvalidate()?!1:je.lessEquals(J)},[je,J]),we=l.useMemo(function(){return!ve||!J||J.isInvalidate()?!1:J.lessEquals(ve)},[ve,J]),Re=MW(F.current,K),ze=ue(Re,2),De=ze[0],Ye=ze[1],Xe=function(ct){return je&&!ct.lessEquals(je)?je:ve&&!ve.lessEquals(ct)?ve:null},Le=function(ct){return!Xe(ct)},Ke=function(ct,$t){var ot=ct,gt=Le(ot)||ot.isEmpty();if(!ot.isEmpty()&&!$t&&(ot=Xe(ot)||ot,gt=!0),!v&&!g&&gt){var dt=ot.toString(),lt=oe(dt,$t);return lt>=0&&(ot=Ii(qh(dt,".",lt)),Le(ot)||(ot=Ii(qh(dt,".",lt,!0)))),ot.equals(J)||(he(ot),N==null||N(ot.isEmpty()?null:xO(I,ot)),h===void 0&&He(ot,$t)),ot}return J},Fe=kW(),Ie=function Je(ct){if(De(),ie.current=ct,Ee(ct),!W.current){var $t=le(ct),ot=Ii($t);ot.isNaN()||Ke(ot,!0)}k==null||k(ct),Fe(function(){var gt=ct;O||(gt=ct.replace(/。/g,".")),gt!==ct&&Je(gt)})},Ue=function(){W.current=!0},ye=function(){W.current=!1,Ie(F.current.value)},Ce=function(ct){Ie(ct.target.value)},_e=function(ct){var $t;if(!(ct&&$e||!ct&&we)){Y.current=!1;var ot=Ii(Q.current?yO(f):f);ct||(ot=ot.negate());var gt=(J||Ii(0)).add(ot.toString()),dt=Ke(gt,!1);V==null||V(xO(I,dt),{offset:Q.current?yO(f):f,type:ct?"up":"down"}),($t=F.current)===null||$t===void 0||$t.focus()}},be=function(ct){var $t=Ii(le(xe)),ot;$t.isNaN()?ot=Ke(J,ct):ot=Ke($t,ct),h!==void 0?He(J,!1):ot.isNaN()||He(ot,!1)},ke=function(){Y.current=!0},st=function(ct){var $t=ct.key,ot=ct.shiftKey;Y.current=!0,Q.current=ot,$t==="Enter"&&(W.current||(Y.current=!1),be(!1),z==null||z(ct)),C!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes($t)&&(_e($t==="Up"||$t==="ArrowUp"),ct.preventDefault())},Dt=function(){Y.current=!1,Q.current=!1};l.useEffect(function(){if(w&&K){var Je=function(ot){_e(ot.deltaY<0),ot.preventDefault()},ct=F.current;if(ct)return ct.addEventListener("wheel",Je,{passive:!1}),function(){return ct.removeEventListener("wheel",Je)}}});var Wt=function(){L&&be(!1),q(!1),Y.current=!1};return gs(function(){J.isInvalidate()||He(J,!1)},[T,R]),gs(function(){var Je=Ii(h);se(Je);var ct=Ii(le(xe));(!Je.equals(ct)||!Y.current||R)&&He(Je,Y.current)},[h]),gs(function(){R&&Ye()},[xe]),l.createElement("div",{ref:H,className:ce(n,r,X(X(X(X(X({},"".concat(n,"-focused"),K),"".concat(n,"-disabled"),g),"".concat(n,"-readonly"),v),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!Le(J))),style:a,onFocus:function(){q(!0)},onBlur:Wt,onKeyDown:st,onKeyUp:Dt,onCompositionStart:Ue,onCompositionEnd:ye,onBeforeInput:ke},E&&l.createElement(PW,{prefixCls:n,upNode:b,downNode:x,upDisabled:$e,downDisabled:we,onStep:_e}),l.createElement("div",{className:"".concat(D,"-wrap")},l.createElement("input",Me({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:f},j,{ref:xa(F,t),className:D,value:xe,onChange:Ce,disabled:g,readOnly:v}))))}),HW=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,s=e.value,u=e.prefix,f=e.suffix,d=e.addonBefore,h=e.addonAfter,g=e.className,v=e.classNames,b=qt(e,zW),x=l.useRef(null),C=l.useRef(null),y=l.useRef(null),w=function(E){y.current&&rC(y.current,E)};return l.useImperativeHandle(t,function(){return NW(y.current,{focus:w,nativeElement:x.current.nativeElement||C.current})}),l.createElement(aC,{className:g,triggerFocus:w,prefixCls:o,value:s,disabled:n,style:r,prefix:u,suffix:f,addonAfter:h,addonBefore:d,classNames:v,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:x},l.createElement(LW,Me({prefixCls:o,disabled:n,ref:y,domRef:C,className:v==null?void 0:v.input},b)))});const BW=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ts(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Mn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},CO=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},FW=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:s,controlHeightLG:u,controlHeightSM:f,colorError:d,paddingInlineSM:h,paddingBlockSM:g,paddingBlockLG:v,paddingInlineLG:b,colorIcon:x,motionDurationMid:C,handleHoverColor:y,handleOpacity:w,paddingInline:$,paddingBlock:E,handleBg:I,handleActiveBg:O,colorTextDisabled:R,borderRadiusSM:T,borderRadiusLG:P,controlWidth:N,handleBorderColor:k,filledHandleBg:z,lineHeightLG:V,calc:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),Pf(e)),{display:"inline-block",width:N,margin:0,padding:0,borderRadius:a}),WS(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}}})),YS(e,{[`${t}-handler-wrap`]:{background:z,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:I}}})),GS(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}}})),qS(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:V,borderRadius:P,[`input${t}-input`]:{height:B(u).sub(B(n).mul(2)).equal(),padding:`${ne(v)} ${ne(b)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:T,[`input${t}-input`]:{height:B(f).sub(B(n).mul(2)).equal(),padding:`${ne(g)} ${ne(h)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:d}}},"&-group":Object.assign(Object.assign(Object.assign({},Ln(e)),Mj(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:P,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:T}}},_j(e)),Ij(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({},Ln(e)),{width:"100%",padding:`${ne(E)} ${ne($)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${C} linear`,appearance:"textfield",fontSize:"inherit"}),XS(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:w,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${C}`,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:x,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ne(n)} ${r} ${k}`,transition:`all ${C} linear`,"&:active":{background:O},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Qc()),{color:x,transition:`all ${C} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},CO(e,"lg")),CO(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:R}})}]},VW=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:s,borderRadiusSM:u,paddingInlineLG:f,paddingInlineSM:d,paddingBlockLG:h,paddingBlockSM:g,motionDurationMid:v}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ne(n)} 0`}},Pf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:s,paddingInlineStart:f,[`input${t}-input`]:{padding:`${ne(h)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:d,[`input${t}-input`]:{padding:`${ne(g)} 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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${v}`}},[`&: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(r).equal()}})}},KW=Kn("InputNumber",e=>{const t=yn(e,js(e));return[FW(t),VW(t),Rf(t)]},BW,{unitless:{handleOpacity:!0}});var UW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Zj=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Yt),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:s,size:u,disabled:f,prefixCls:d,addonBefore:h,addonAfter:g,prefix:v,suffix:b,bordered:x,readOnly:C,status:y,controls:w,variant:$}=e,E=UW(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),I=n("input-number",d),O=ta(I),[R,T,P]=KW(I,O),{compactSize:N,compactItemClassnames:k}=Yo(I,r);let z=l.createElement(CW,{className:`${I}-handler-up-inner`}),V=l.createElement(_S,{className:`${I}-handler-down-inner`});const B=typeof w=="boolean"?w:void 0;typeof w=="object"&&(z=typeof w.upIcon>"u"?z:l.createElement("span",{className:`${I}-handler-up-inner`},w.upIcon),V=typeof w.downIcon>"u"?V:l.createElement("span",{className:`${I}-handler-down-inner`},w.downIcon));const{hasFeedback:L,status:H,isFormItemInput:j,feedbackIcon:D}=l.useContext(ca),F=Os(H,y),U=ua(J=>{var se;return(se=u??N)!==null&&se!==void 0?se:J}),A=l.useContext(Oa),K=f??A,[q,Y]=Is("inputNumber",$,x),W=L&&l.createElement(l.Fragment,null,D),Q=ce({[`${I}-lg`]:U==="large",[`${I}-sm`]:U==="small",[`${I}-rtl`]:r==="rtl",[`${I}-in-form-item`]:j},T),Z=`${I}-group`,ae=l.createElement(HW,Object.assign({ref:a,disabled:K,className:ce(P,O,o,s,k),upHandler:z,downHandler:V,prefixCls:I,readOnly:C,controls:B,prefix:v,suffix:W||b,addonBefore:h&&l.createElement(jl,{form:!0,space:!0},h),addonAfter:g&&l.createElement(jl,{form:!0,space:!0},g),classNames:{input:Q,variant:ce({[`${I}-${q}`]:Y},Tl(I,F,L)),affixWrapper:ce({[`${I}-affix-wrapper-sm`]:U==="small",[`${I}-affix-wrapper-lg`]:U==="large",[`${I}-affix-wrapper-rtl`]:r==="rtl",[`${I}-affix-wrapper-without-controls`]:w===!1||K},T),wrapper:ce({[`${Z}-rtl`]:r==="rtl"},T),groupWrapper:ce({[`${I}-group-wrapper-sm`]:U==="small",[`${I}-group-wrapper-lg`]:U==="large",[`${I}-group-wrapper-rtl`]:r==="rtl",[`${I}-group-wrapper-${q}`]:Y},Tl(`${I}-group-wrapper`,F,L),T)}},E));return R(ae)}),iC=Zj,WW=e=>l.createElement(qo,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(Zj,Object.assign({},e)));iC._InternalPanelDoNotUseOrYouWillBeFired=WW;const Jj=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Se.createElement(Jc,null)}),t};function eT(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,s,u;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function qW(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var YW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Af=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:s,onBlur:u,onFocus:f,suffix:d,allowClear:h,addonAfter:g,addonBefore:v,className:b,style:x,styles:C,rootClassName:y,onChange:w,classNames:$,variant:E}=e,I=YW(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:O,direction:R,allowClear:T,autoComplete:P,className:N,style:k,classNames:z,styles:V}=Ia("input"),B=O("input",n),L=l.useRef(null),H=ta(B),[j,D,F]=jj(B,y),[U]=Tj(B,H),{compactSize:A,compactItemClassnames:K}=Yo(B,R),q=ua(Ee=>{var He;return(He=o??A)!==null&&He!==void 0?He:Ee}),Y=Se.useContext(Oa),W=s??Y,{status:Q,hasFeedback:Z,feedbackIcon:ae}=l.useContext(ca),J=Os(Q,a),se=qW(e)||!!Z;l.useRef(se);const he=eT(L,!0),oe=Ee=>{he(),u==null||u(Ee)},le=Ee=>{he(),f==null||f(Ee)},ie=Ee=>{he(),w==null||w(Ee)},de=(Z||d)&&Se.createElement(Se.Fragment,null,d,Z&&ae),ge=Jj(h??T),[me,xe]=Is("input",E,r);return j(U(Se.createElement(RW,Object.assign({ref:xa(t,L),prefixCls:B,autoComplete:P},I,{disabled:W,onBlur:oe,onFocus:le,style:Object.assign(Object.assign({},k),x),styles:Object.assign(Object.assign({},V),C),suffix:de,allowClear:ge,className:ce(b,y,F,H,K,N),onChange:ie,addonBefore:v&&Se.createElement(jl,{form:!0,space:!0},v),addonAfter:g&&Se.createElement(jl,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},$),z),{input:ce({[`${B}-sm`]:q==="small",[`${B}-lg`]:q==="large",[`${B}-rtl`]:R==="rtl"},$==null?void 0:$.input,z.input,D),variant:ce({[`${B}-${me}`]:xe},Tl(B,J)),affixWrapper:ce({[`${B}-affix-wrapper-sm`]:q==="small",[`${B}-affix-wrapper-lg`]:q==="large",[`${B}-affix-wrapper-rtl`]:R==="rtl"},D),wrapper:ce({[`${B}-group-rtl`]:R==="rtl"},D),groupWrapper:ce({[`${B}-group-wrapper-sm`]:q==="small",[`${B}-group-wrapper-lg`]:q==="large",[`${B}-group-wrapper-rtl`]:R==="rtl",[`${B}-group-wrapper-${me}`]:xe},Tl(`${B}-group-wrapper`,J,Z),D)})}))))});var GW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},XW=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:GW}))},tT=l.forwardRef(XW),QW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},ZW=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:QW}))},nT=l.forwardRef(ZW),JW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},eq=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:JW}))},tq=l.forwardRef(eq);function nq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function rq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function rT(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=hM(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[aq,iq]=["week","WeekPicker"],[oq,lq]=["month","MonthPicker"],[sq,cq]=["year","YearPicker"],[uq,dq]=["quarter","QuarterPicker"],[aT,wO]=["time","TimePicker"],fq=e=>l.createElement(mn,Object.assign({size:"small",type:"primary"},e));function iT(e){return l.useMemo(()=>Object.assign({button:fq},e),[e])}var mq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hq=e=>l.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:s,components:u,className:f,style:d,placement:h,size:g,disabled:v,bordered:b=!0,placeholder:x,popupClassName:C,dropdownClassName:y,status:w,rootClassName:$,variant:E,picker:I}=n,O=mq(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),R=l.useRef(null),{getPrefixCls:T,direction:P,getPopupContainer:N,rangePicker:k}=l.useContext(Yt),z=T("picker",o),{compactSize:V,compactItemClassnames:B}=Yo(z,P),L=T(),[H,j]=Is("rangePicker",E,b),D=ta(z),[F,U,A]=Dj(z,D),[K]=rT(n,z),q=iT(u),Y=ua(de=>{var ge;return(ge=g??V)!==null&&ge!==void 0?ge:de}),W=l.useContext(Oa),Q=v??W,Z=l.useContext(ca),{hasFeedback:ae,status:J,feedbackIcon:se}=Z,he=l.createElement(l.Fragment,null,I===aT?l.createElement(nT,null):l.createElement(tT,null),ae&&se);l.useImperativeHandle(r,()=>R.current);const[oe]=Wo("Calendar",ag),le=Object.assign(Object.assign({},oe),n.locale),[ie]=tu("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return F(l.createElement(jl,{space:!0},l.createElement(hK,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${z}-separator`},l.createElement(tq,null)),disabled:Q,ref:R,placement:h,placeholder:rq(le,I,x),suffixIcon:he,prevIcon:l.createElement("span",{className:`${z}-prev-icon`}),nextIcon:l.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${L}-slide-up`,picker:I},O,{className:ce({[`${z}-${Y}`]:Y,[`${z}-${H}`]:j},Tl(z,Os(J,w),ae),U,B,f,k==null?void 0:k.className,A,D,$),style:Object.assign(Object.assign({},k==null?void 0:k.style),d),locale:le.lang,prefixCls:z,getPopupContainer:s||N,generateConfig:e,components:q,direction:P,classNames:{popup:ce(U,C||y,A,D,$)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ie})},allowClear:K}))))});var gq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vq=e=>{const t=(f,d)=>{const h=d===wO?"timePicker":"datePicker";return l.forwardRef((v,b)=>{var x;const{prefixCls:C,getPopupContainer:y,components:w,style:$,className:E,rootClassName:I,size:O,bordered:R,placement:T,placeholder:P,popupClassName:N,dropdownClassName:k,disabled:z,status:V,variant:B,onCalendarChange:L}=v,H=gq(v,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:j,direction:D,getPopupContainer:F,[h]:U}=l.useContext(Yt),A=j("picker",C),{compactSize:K,compactItemClassnames:q}=Yo(A,D),Y=l.useRef(null),[W,Q]=Is("datePicker",B,R),Z=ta(A),[ae,J,se]=Dj(A,Z);l.useImperativeHandle(b,()=>Y.current);const he={showToday:!0},oe=f||v.picker,le=j(),{onSelect:ie,multiple:de}=H,ge=ie&&f==="time"&&!de,me=(Fe,Ie,Ue)=>{L==null||L(Fe,Ie,Ue),ge&&ie(Fe)},[xe,Ee]=rT(v,A),He=iT(w),je=ua(Fe=>{var Ie;return(Ie=O??K)!==null&&Ie!==void 0?Ie:Fe}),ve=l.useContext(Oa),$e=z??ve,we=l.useContext(ca),{hasFeedback:Re,status:ze,feedbackIcon:De}=we,Ye=l.createElement(l.Fragment,null,oe==="time"?l.createElement(nT,null):l.createElement(tT,null),Re&&De),[Xe]=Wo("DatePicker",ag),Le=Object.assign(Object.assign({},Xe),v.locale),[Ke]=tu("DatePicker",(x=v.popupStyle)===null||x===void 0?void 0:x.zIndex);return ae(l.createElement(jl,{space:!0},l.createElement(xK,Object.assign({ref:Y,placeholder:nq(Le,oe,P),suffixIcon:Ye,placement:T,prevIcon:l.createElement("span",{className:`${A}-prev-icon`}),nextIcon:l.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${le}-slide-up`,picker:f,onCalendarChange:me},he,H,{locale:Le.lang,className:ce({[`${A}-${je}`]:je,[`${A}-${W}`]:Q},Tl(A,Os(ze,V),Re),J,q,U==null?void 0:U.className,E,se,Z,I),style:Object.assign(Object.assign({},U==null?void 0:U.style),$),prefixCls:A,getPopupContainer:y||F,generateConfig:e,components:He,direction:D,disabled:$e,classNames:{popup:ce(J,se,Z,I,N||k)},styles:{popup:Object.assign(Object.assign({},v.popupStyle),{zIndex:Ke})},allowClear:xe,removeIcon:Ee}))))})},n=t(),r=t(aq,iq),a=t(oq,lq),o=t(sq,cq),s=t(uq,dq),u=t(aT,wO);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:u,QuarterPicker:s}},oT=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:s}=vq(e),u=hq(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=a,f.RangePicker=u,f.TimePicker=o,f.QuarterPicker=s,f},Ds=oT(CV),pq=Zg(Ds,"popupAlign",void 0,"picker");Ds._InternalPanelDoNotUseOrYouWillBeFired=pq;const bq=Zg(Ds.RangePicker,"popupAlign",void 0,"picker");Ds._InternalRangePanelDoNotUseOrYouWillBeFired=bq;Ds.generatePicker=oT;function $O(e){return["small","middle","large"].includes(e)}function EO(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const lT=Se.createContext({latestIndex:0}),yq=lT.Provider,xq=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:s}=l.useContext(lT);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n<s&&a&&l.createElement("span",{className:`${t}-split`},a))};var Sq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Cq=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:o,className:s,style:u,classNames:f,styles:d}=Ia("space"),{size:h=o??"small",align:g,className:v,rootClassName:b,children:x,direction:C="horizontal",prefixCls:y,split:w,style:$,wrap:E=!1,classNames:I,styles:O}=e,R=Sq(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,P]=Array.isArray(h)?h:[h,h],N=$O(P),k=$O(T),z=EO(P),V=EO(T),B=_a(x,{keepEmpty:!0}),L=g===void 0&&C==="horizontal"?"center":g,H=r("space",y),[j,D,F]=IN(H),U=ce(H,s,D,`${H}-${C}`,{[`${H}-rtl`]:a==="rtl",[`${H}-align-${L}`]:L,[`${H}-gap-row-${P}`]:N,[`${H}-gap-col-${T}`]:k},v,b,F),A=ce(`${H}-item`,(n=I==null?void 0:I.item)!==null&&n!==void 0?n:f.item);let K=0;const q=B.map((Q,Z)=>{var ae;Q!=null&&(K=Z);const J=(Q==null?void 0:Q.key)||`${A}-${Z}`;return l.createElement(xq,{className:A,key:J,index:Z,split:w,style:(ae=O==null?void 0:O.item)!==null&&ae!==void 0?ae:d.item},Q)}),Y=l.useMemo(()=>({latestIndex:K}),[K]);if(B.length===0)return null;const W={};return E&&(W.flexWrap="wrap"),!k&&V&&(W.columnGap=T),!N&&z&&(W.rowGap=P),j(l.createElement("div",Object.assign({ref:t,className:U,style:Object.assign(Object.assign(Object.assign({},W),u),$)},R),l.createElement(yq,{value:Y},q)))}),Hn=Cq;Hn.Compact=rL;var wq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sT=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(Yt),{prefixCls:a,type:o="default",danger:s,disabled:u,loading:f,onClick:d,htmlType:h,children:g,className:v,menu:b,arrow:x,autoFocus:C,overlay:y,trigger:w,align:$,open:E,onOpenChange:I,placement:O,getPopupContainer:R,href:T,icon:P=l.createElement(zS,null),title:N,buttonsRender:k=J=>J,mouseEnterDelay:z,mouseLeaveDelay:V,overlayClassName:B,overlayStyle:L,destroyPopupOnHide:H,dropdownRender:j}=e,D=wq(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",a),U=`${F}-button`,A={menu:b,arrow:x,autoFocus:C,align:$,disabled:u,trigger:u?[]:w,onOpenChange:I,getPopupContainer:R||t,mouseEnterDelay:z,mouseLeaveDelay:V,overlayClassName:B,overlayStyle:L,destroyPopupOnHide:H,dropdownRender:j},{compactSize:K,compactItemClassnames:q}=Yo(F,r),Y=ce(U,q,v);"overlay"in e&&(A.overlay=y),"open"in e&&(A.open=E),"placement"in e?A.placement=O:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const W=l.createElement(mn,{type:o,danger:s,disabled:u,loading:f,onClick:d,htmlType:h,href:T,title:N},g),Q=l.createElement(mn,{type:o,danger:s,icon:P}),[Z,ae]=k([W,Q]);return l.createElement(Hn.Compact,Object.assign({className:Y,size:K,block:!0},D),Z,l.createElement(ov,Object.assign({},A),ae))};sT.__ANT_BUTTON=!0;const oC=ov;oC.Button=sT;function vg(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const $q=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},
                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Eq=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),_O=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},_q=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ln(e)),Eq(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},_O(e,e.controlHeightSM)),"&-large":Object.assign({},_O(e,e.controlHeightLG))})}},Oq=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:u,labelHeight:f,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:h,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:f,color:s,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:fS,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},OO=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Iq=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ni=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),cT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ni(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Rq=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:Ni(e)}},[`@media (max-width: ${ne(e.screenXSMax)})`]:[cT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ni(e)}}}],[`@media (max-width: ${ne(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ni(e)}}},[`@media (max-width: ${ne(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ni(e)}}},[`@media (max-width: ${ne(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ni(e)}}}}},Nq=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
      ${n}-col-24${t}-label,
      ${n}-col-xl-24${t}-label`]:Ni(e),[`@media (max-width: ${ne(e.screenXSMax)})`]:[cT(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Ni(e)}}],[`@media (max-width: ${ne(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Ni(e)}},[`@media (max-width: ${ne(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Ni(e)}},[`@media (max-width: ${ne(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Ni(e)}}}},Mq=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),uT=(e,t)=>yn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),lC=Kn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=uT(e,n);return[_q(r),Oq(r),$q(r),OO(r,r.componentCls),OO(r,r.formItemCls),Iq(r),Rq(r),Nq(r),zg(r),fS]},Mq,{order:-1e3}),IO=[];function $y(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const dT=e=>{let{help:t,helpStatus:n,errors:r=IO,warnings:a=IO,className:o,fieldId:s,onVisibleChanged:u}=e;const{prefixCls:f}=l.useContext(yS),d=`${f}-item-explain`,h=ta(f),[g,v,b]=lC(f,h),x=l.useMemo(()=>cf(f),[f]),C=vg(r),y=vg(a),w=l.useMemo(()=>t!=null?[$y(t,"help",n)]:[].concat(Ae(C.map((I,O)=>$y(I,"error","error",O))),Ae(y.map((I,O)=>$y(I,"warning","warning",O)))),[t,n,C,y]),$=l.useMemo(()=>{const I={};return w.forEach(O=>{let{key:R}=O;I[R]=(I[R]||0)+1}),w.map((O,R)=>Object.assign(Object.assign({},O),{key:I[O.key]>1?`${O.key}-fallback-${R}`:O.key}))},[w]),E={};return s&&(E.id=`${s}_help`),g(l.createElement(xi,{motionDeadline:x.motionDeadline,motionName:`${f}-show-help`,visible:!!$.length,onVisibleChanged:u},I=>{const{className:O,style:R}=I;return l.createElement("div",Object.assign({},E,{className:ce(d,O,b,h,o,v),style:R}),l.createElement(oS,Object.assign({keys:$},cf(f),{motionName:`${f}-show-help-item`,component:!1}),T=>{const{key:P,error:N,errorStatus:k,className:z,style:V}=T;return l.createElement("div",{key:P,className:ce(z,{[`${d}-${k}`]:k}),style:V},N)}))}))},jq=["parentNode"],Tq="form_item";function Ud(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function fT(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:jq.includes(n)?`${Tq}_${n}`:n}function mT(e,t,n,r,a,o){let s=r;return o!==void 0?s=o:n.validating?s="validating":e.length?s="error":t.length?s="warning":(n.touched||a&&n.validated)&&(s="success"),s}var Dq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function RO(e){return Ud(e).join("_")}function NO(e,t){const n=t.getFieldInstance(e),r=$f(n);if(r)return r;const a=fT(Ud(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function hT(e){const[t]=bS(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const s=RO(a);o?n.current[s]=o:delete n.current[s]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:s}=o,u=Dq(o,["focus"]),f=NO(a,r);f&&(n8(f,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),s&&r.focusField(a))},focusField:a=>{var o,s;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(s=(o=NO(a,r))===null||o===void 0?void 0:o.focus)===null||s===void 0||s.call(o)},getFieldInstance:a=>{const o=RO(a);return n.current[o]}}),[e,t]);return[r]}var Pq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const kq=(e,t)=>{const n=l.useContext(Oa),{getPrefixCls:r,direction:a,requiredMark:o,colon:s,scrollToFirstError:u,className:f,style:d}=Ia("form"),{prefixCls:h,className:g,rootClassName:v,size:b,disabled:x=n,form:C,colon:y,labelAlign:w,labelWrap:$,labelCol:E,wrapperCol:I,hideRequiredMark:O,layout:R="horizontal",scrollToFirstError:T,requiredMark:P,onFinishFailed:N,name:k,style:z,feedbackIcons:V,variant:B}=e,L=Pq(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=ua(b),j=l.useContext(kR),D=l.useMemo(()=>P!==void 0?P:O?!1:o!==void 0?o:!0,[O,P,o]),F=y??s,U=r("form",h),A=ta(U),[K,q,Y]=lC(U,A),W=ce(U,`${U}-${R}`,{[`${U}-hide-required-mark`]:D===!1,[`${U}-rtl`]:a==="rtl",[`${U}-${H}`]:H},Y,A,q,f,g,v),[Q]=hT(C),{__INTERNAL__:Z}=Q;Z.name=k;const ae=l.useMemo(()=>({name:k,labelAlign:w,labelCol:E,labelWrap:$,wrapperCol:I,vertical:R==="vertical",colon:F,requiredMark:D,itemRef:Z.itemRef,form:Q,feedbackIcons:V}),[k,w,E,I,R,F,D,Q,V]),J=l.useRef(null);l.useImperativeHandle(t,()=>{var oe;return Object.assign(Object.assign({},Q),{nativeElement:(oe=J.current)===null||oe===void 0?void 0:oe.nativeElement})});const se=(oe,le)=>{if(oe){let ie={block:"nearest"};typeof oe=="object"&&(ie=Object.assign(Object.assign({},ie),oe)),Q.scrollToField(le,ie)}},he=oe=>{if(N==null||N(oe),oe.errorFields.length){const le=oe.errorFields[0].name;if(T!==void 0){se(T,le);return}u!==void 0&&se(u,le)}};return K(l.createElement(WN.Provider,{value:B},l.createElement(UR,{disabled:x},l.createElement(xs.Provider,{value:H},l.createElement(UN,{validateMessages:j},l.createElement(Vo.Provider,{value:ae},l.createElement(ru,Object.assign({id:k},L,{name:k,onFinishFailed:he,form:Q,ref:J,style:Object.assign(Object.assign({},d),z),className:W}))))))))},Aq=l.forwardRef(kq);function zq(e){if(typeof e=="function")return e;const t=_a(e);return t.length<=1?t[0]:t}const gT=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(ca);return{status:e,errors:t,warnings:n}};gT.Context=ca;function Lq(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,un.cancel(r.current),r.current=null}),[]);function s(u){o.current||(r.current===null&&(a.current=[],r.current=un(()=>{r.current=null,n(f=>{let d=f;return a.current.forEach(h=>{d=h(d)}),d})})),a.current.push(u))}return[t,s]}function Hq(){const{itemRef:e}=l.useContext(Vo),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&kl(a),s=r.join("_");return(t.current.name!==s||t.current.originRef!==o)&&(t.current.name=s,t.current.originRef=o,t.current.ref=xa(e(r),o)),t.current.ref}return n}const Bq=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Fq=_f(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=uT(e,n);return[Bq(r)]});var Vq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Kq=24,Uq=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:s,warnings:u,_internalItemRender:f,extra:d,help:h,fieldId:g,marginBottom:v,onErrorVisibleChanged:b,label:x}=e,C=`${t}-item`,y=l.useContext(Vo),w=l.useMemo(()=>{let L=Object.assign({},a||y.wrapperCol||{});return x===null&&!r&&!a&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const D=j?[j]:[],F=Ma(y.labelCol,D),U=typeof F=="object"?F:{},A=Ma(L,D),K=typeof A=="object"?A:{};"span"in U&&!("offset"in K)&&U.span<Kq&&(L=mi(L,[].concat(D,["offset"]),U.span))}),L},[a,y]),$=ce(`${C}-control`,w.className),E=l.useMemo(()=>{const{labelCol:L,wrapperCol:H}=y;return Vq(y,["labelCol","wrapperCol"])},[y]),I=l.useRef(null),[O,R]=l.useState(0);hn(()=>{d&&I.current?R(I.current.clientHeight):R(0)},[d]);const T=l.createElement("div",{className:`${C}-control-input`},l.createElement("div",{className:`${C}-control-input-content`},o)),P=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=v!==null||s.length||u.length?l.createElement(yS.Provider,{value:P},l.createElement(dT,{fieldId:g,errors:s,warnings:u,help:h,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:b})):null,k={};g&&(k.id=`${g}_extra`);const z=d?l.createElement("div",Object.assign({},k,{className:`${C}-extra`,ref:I}),d):null,V=N||z?l.createElement("div",{className:`${C}-additional`,style:v?{minHeight:v+O}:{}},N,z):null,B=f&&f.mark==="pro_table_render"&&f.render?f.render(e,{input:T,errorList:N,extra:z}):l.createElement(l.Fragment,null,T,V);return l.createElement(Vo.Provider,{value:E},l.createElement(eC,Object.assign({},w,{className:$}),B),l.createElement(Fq,{prefixCls:t}))};var Wq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},qq=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:Wq}))},Yq=l.forwardRef(qq),Gq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Xq(e){return e?typeof e=="object"&&!l.isValidElement(e)?e:{title:e}:null}const Qq=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:s,required:u,requiredMark:f,tooltip:d,vertical:h}=e;var g;const[v]=Wo("Form"),{labelAlign:b,labelCol:x,labelWrap:C,colon:y}=l.useContext(Vo);if(!n)return null;const w=a||x||{},$=o||b,E=`${t}-item-label`,I=ce(E,$==="left"&&`${E}-left`,w.className,{[`${E}-wrap`]:!!C});let O=n;const R=s===!0||y!==!1&&s!==!1;R&&!h&&typeof n=="string"&&n.trim()&&(O=n.replace(/[:|：]\s*$/,""));const P=Xq(d);if(P){const{icon:L=l.createElement(Yq,null)}=P,H=Gq(P,["icon"]),j=l.createElement(bi,Object.assign({},H),l.cloneElement(L,{className:`${t}-item-tooltip`,title:"",onClick:D=>{D.preventDefault()},tabIndex:null}));O=l.createElement(l.Fragment,null,O,j)}const N=f==="optional",k=typeof f=="function",z=f===!1;k?O=f(O,{required:!!u}):N&&!u&&(O=l.createElement(l.Fragment,null,O,l.createElement("span",{className:`${t}-item-optional`,title:""},(v==null?void 0:v.optional)||((g=Ho.Form)===null||g===void 0?void 0:g.optional))));let V;z?V="hidden":(N||k)&&(V="optional");const B=ce({[`${t}-item-required`]:u,[`${t}-item-required-mark-${V}`]:V,[`${t}-item-no-colon`]:!R});return l.createElement(eC,Object.assign({},w,{className:I}),l.createElement("label",{htmlFor:r,className:B,title:typeof n=="string"?n:""},O))},Zq={success:Dg,warning:lS,error:Jc,validating:Fo};function vT(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:s,meta:u,noStyle:f}=e;const d=`${s}-item`,{feedbackIcons:h}=l.useContext(Vo),g=mT(n,r,u,null,!!a,o),{isFormItemInput:v,status:b,hasFeedback:x,feedbackIcon:C}=l.useContext(ca),y=l.useMemo(()=>{var w;let $;if(a){const I=a!==!0&&a.icons||h,O=g&&((w=I==null?void 0:I({status:g,errors:n,warnings:r}))===null||w===void 0?void 0:w[g]),R=g&&Zq[g];$=O!==!1&&R?l.createElement("span",{className:ce(`${d}-feedback-icon`,`${d}-feedback-icon-${g}`)},O||l.createElement(R,null)):null}const E={status:g||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:$,isFormItemInput:!0};return f&&(E.status=(g??b)||"",E.isFormItemInput=v,E.hasFeedback=!!(a??x),E.feedbackIcon=a!==void 0?E.feedbackIcon:C),E},[g,a,f,v,b]);return l.createElement(ca.Provider,{value:y},t)}var Jq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function eY(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:o,errors:s,warnings:u,validateStatus:f,meta:d,hasFeedback:h,hidden:g,children:v,fieldId:b,required:x,isRequired:C,onSubItemMetaChange:y,layout:w}=e,$=Jq(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),E=`${t}-item`,{requiredMark:I,vertical:O}=l.useContext(Vo),R=O||w==="vertical",T=l.useRef(null),P=vg(s),N=vg(u),k=o!=null,z=!!(k||s.length||u.length),V=!!T.current&&nu(T.current),[B,L]=l.useState(null);hn(()=>{if(z&&T.current){const U=getComputedStyle(T.current);L(parseInt(U.marginBottom,10))}},[z,V]);const H=U=>{U||L(null)},D=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=U?P:d.errors,K=U?N:d.warnings;return mT(A,K,d,"",!!h,f)}(),F=ce(E,n,r,{[`${E}-with-help`]:k||P.length||N.length,[`${E}-has-feedback`]:D&&h,[`${E}-has-success`]:D==="success",[`${E}-has-warning`]:D==="warning",[`${E}-has-error`]:D==="error",[`${E}-is-validating`]:D==="validating",[`${E}-hidden`]:g,[`${E}-${w}`]:w});return l.createElement("div",{className:F,style:a,ref:T},l.createElement(Gj,Object.assign({className:`${E}-row`},tr($,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Qq,Object.assign({htmlFor:b},e,{requiredMark:I,required:x??C,prefixCls:t,vertical:R})),l.createElement(Uq,Object.assign({},e,d,{errors:P,warnings:N,prefixCls:t,status:D,help:o,marginBottom:B,onErrorVisibleChanged:H}),l.createElement(KN.Provider,{value:y},l.createElement(vT,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:h,validateStatus:D},v)))),!!B&&l.createElement("div",{className:`${E}-margin-offset`,style:{marginBottom:-B}}))}const tY="__SPLIT__";function nY(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],s=t[a];return o===s||typeof o=="function"||typeof s=="function"})}const rY=l.memo(e=>{let{children:t}=e;return t},(e,t)=>nY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function MO(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function aY(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:s,rules:u,children:f,required:d,label:h,messageVariables:g,trigger:v="onChange",validateTrigger:b,hidden:x,help:C,layout:y}=e,{getPrefixCls:w}=l.useContext(Yt),{name:$}=l.useContext(Vo),E=zq(f),I=typeof E=="function",O=l.useContext(KN),{validateTrigger:R}=l.useContext(Cs),T=b!==void 0?b:R,P=t!=null,N=w("form",o),k=ta(N),[z,V,B]=lC(N,k);Al();const L=l.useContext(ff),H=l.useRef(null),[j,D]=Lq({}),[F,U]=qc(()=>MO()),A=ae=>{const J=L==null?void 0:L.getKey(ae.name);if(U(ae.destroy?MO():ae,!0),n&&C!==!1&&O){let se=ae.name;if(ae.destroy)se=H.current||se;else if(J!==void 0){const[he,oe]=J;se=[he].concat(Ae(oe)),H.current=se}O(ae,se)}},K=(ae,J)=>{D(se=>{const he=Object.assign({},se),le=[].concat(Ae(ae.name.slice(0,-1)),Ae(J)).join(tY);return ae.destroy?delete he[le]:he[le]=ae,he})},[q,Y]=l.useMemo(()=>{const ae=Ae(F.errors),J=Ae(F.warnings);return Object.values(j).forEach(se=>{ae.push.apply(ae,Ae(se.errors||[])),J.push.apply(J,Ae(se.warnings||[]))}),[ae,J]},[j,F.errors,F.warnings]),W=Hq();function Q(ae,J,se){return n&&!x?l.createElement(vT,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:q,warnings:Y,noStyle:!0},ae):l.createElement(eY,Object.assign({key:"row"},e,{className:ce(r,B,k,V),prefixCls:N,fieldId:J,isRequired:se,errors:q,warnings:Y,meta:F,onSubItemMetaChange:K,layout:y}),ae)}if(!P&&!I&&!a)return z(Q(E));let Z={};return typeof h=="string"?Z.label=h:t&&(Z.label=String(t)),g&&(Z=Object.assign(Object.assign({},Z),g)),z(l.createElement(pS,Object.assign({},e,{messageVariables:Z,trigger:v,validateTrigger:T,onMetaChange:A}),(ae,J,se)=>{const he=Ud(t).length&&J?J.name:[],oe=fT(he,$),le=d!==void 0?d:!!(u!=null&&u.some(ge=>{if(ge&&typeof ge=="object"&&ge.required&&!ge.warningOnly)return!0;if(typeof ge=="function"){const me=ge(se);return(me==null?void 0:me.required)&&!(me!=null&&me.warningOnly)}return!1})),ie=Object.assign({},ae);let de=null;if(Array.isArray(E)&&P)de=E;else if(!(I&&(!(s||a)||P))){if(!(a&&!I&&!P))if(l.isValidElement(E)){const ge=Object.assign(Object.assign({},E.props),ie);if(ge.id||(ge.id=oe),C||q.length>0||Y.length>0||e.extra){const Ee=[];(C||q.length>0)&&Ee.push(`${oe}_help`),e.extra&&Ee.push(`${oe}_extra`),ge["aria-describedby"]=Ee.join(" ")}q.length>0&&(ge["aria-invalid"]="true"),le&&(ge["aria-required"]="true"),ki(E)&&(ge.ref=W(he,E)),new Set([].concat(Ae(Ud(v)),Ae(Ud(T)))).forEach(Ee=>{ge[Ee]=function(){for(var He,je,ve,$e,we,Re=arguments.length,ze=new Array(Re),De=0;De<Re;De++)ze[De]=arguments[De];(ve=ie[Ee])===null||ve===void 0||(He=ve).call.apply(He,[ie].concat(ze)),(we=($e=E.props)[Ee])===null||we===void 0||(je=we).call.apply(je,[$e].concat(ze))}});const xe=[ge["aria-required"],ge["aria-invalid"],ge["aria-describedby"]];de=l.createElement(rY,{control:ie,update:E,childProps:xe},pa(E,ge))}else I&&(s||a)&&!P?de=E(se):de=E}return Q(de,oe,le)}))}const pT=aY;pT.useStatus=gT;var iY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const oY=e=>{var{prefixCls:t,children:n}=e,r=iY(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(Yt),o=a("form",t),s=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(HN,Object.assign({},r),(u,f,d)=>l.createElement(yS.Provider,{value:s},n(u.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),f,{errors:d.errors,warnings:d.warnings})))};function lY(){const{form:e}=l.useContext(Vo);return e}const fe=Aq;fe.Item=pT;fe.List=oY;fe.ErrorList=dT;fe.useForm=hT;fe.useFormInstance=lY;fe.useWatch=VN;fe.Provider=UN;fe.create=()=>{};var sY={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"},cY=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:sY}))},bT=l.forwardRef(cY);function jO(e,t,n,r){var a=Qd.unstable_batchedUpdates?function(s){Qd.unstable_batchedUpdates(n,s)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}const uY=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Yt),{prefixCls:r,className:a}=e,o=t("input-group",r),s=t("input"),[u,f,d]=Tj(s),h=ce(o,d,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},f,a),g=l.useContext(ca),v=l.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return u(l.createElement("span",{className:h,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(ca.Provider,{value:v},e.children)))},dY=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},fY=Kn(["Input","OTP"],e=>{const t=yn(e,js(e));return[dY(t)]},Ts);var mY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hY=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:o,index:s,mask:u}=e,f=mY(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=l.useContext(Yt),h=d("otp"),g=typeof u=="string"?u:r,v=l.useRef(null);l.useImperativeHandle(t,()=>v.current);const b=w=>{a(s,w.target.value)},x=()=>{un(()=>{var w;const $=(w=v.current)===null||w===void 0?void 0:w.input;document.activeElement===$&&$&&$.select()})},C=w=>{const{key:$,ctrlKey:E,metaKey:I}=w;$==="ArrowLeft"?o(s-1):$==="ArrowRight"?o(s+1):$==="z"&&(E||I)&&w.preventDefault(),x()},y=w=>{w.key==="Backspace"&&!r&&o(s-1),x()};return l.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&l.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},g),l.createElement(Af,Object.assign({"aria-label":`OTP Input ${s+1}`,type:u===!0?"password":"text"},f,{ref:v,value:r,onInput:b,onFocus:x,onKeyDown:C,onKeyUp:y,onMouseDown:x,onMouseUp:x,className:ce(n,{[`${h}-mask-input`]:u})})))});var gY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function vh(e){return(e||"").split("")}const vY=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?l.createElement("span",{className:`${n}-separator`},a):null},pY=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:s,onChange:u,formatter:f,separator:d,variant:h,disabled:g,status:v,autoFocus:b,mask:x,type:C,onInput:y,inputMode:w}=e,$=gY(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:I}=l.useContext(Yt),O=E("otp",n),R=sa($,{aria:!0,data:!0,attr:!0}),[T,P,N]=fY(O),k=ua(W=>a??W),z=l.useContext(ca),V=Os(z.status,v),B=l.useMemo(()=>Object.assign(Object.assign({},z),{status:V,hasFeedback:!1,feedbackIcon:null}),[z,V]),L=l.useRef(null),H=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var W;(W=H.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let Q=0;Q<r;Q+=1)(W=H.current[Q])===null||W===void 0||W.blur()},nativeElement:L.current}));const j=W=>f?f(W):W,[D,F]=l.useState(()=>vh(j(o||"")));l.useEffect(()=>{s!==void 0&&F(vh(s))},[s]);const U=pn(W=>{F(W),y&&y(W),u&&W.length===r&&W.every(Q=>Q)&&W.some((Q,Z)=>D[Z]!==Q)&&u(W.join(""))}),A=pn((W,Q)=>{let Z=Ae(D);for(let J=0;J<W;J+=1)Z[J]||(Z[J]="");Q.length<=1?Z[W]=Q:Z=Z.slice(0,W).concat(vh(Q)),Z=Z.slice(0,r);for(let J=Z.length-1;J>=0&&!Z[J];J-=1)Z.pop();const ae=j(Z.map(J=>J||" ").join(""));return Z=vh(ae).map((J,se)=>J===" "&&!Z[se]?Z[se]:J),Z}),K=(W,Q)=>{var Z;const ae=A(W,Q),J=Math.min(W+Q.length,r-1);J!==W&&ae[W]!==void 0&&((Z=H.current[J])===null||Z===void 0||Z.focus()),U(ae)},q=W=>{var Q;(Q=H.current[W])===null||Q===void 0||Q.focus()},Y={variant:h,disabled:g,status:V,mask:x,type:C,inputMode:w};return T(l.createElement("div",Object.assign({},R,{ref:L,className:ce(O,{[`${O}-sm`]:k==="small",[`${O}-lg`]:k==="large",[`${O}-rtl`]:I==="rtl"},N,P),role:"group"}),l.createElement(ca.Provider,{value:B},Array.from({length:r}).map((W,Q)=>{const Z=`otp-${Q}`,ae=D[Q]||"";return l.createElement(l.Fragment,{key:Z},l.createElement(hY,Object.assign({ref:J=>{H.current[Q]=J},index:Q,size:k,htmlSize:1,className:`${O}-input`,onChange:K,value:ae,onActiveChange:q,autoFocus:Q===0&&b},Y)),Q<r-1&&l.createElement(vY,{separator:d,index:Q,prefixCls:O}))}))))});var bY={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"},yY=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:bY}))},xY=l.forwardRef(yY),SY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const CY=e=>e?l.createElement(bT,null):l.createElement(xY,null),wY={click:"onClick",hover:"onMouseOver"},$Y=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=CY}=e,s=l.useContext(Oa),u=n??s,f=typeof a=="object"&&a.visible!==void 0,[d,h]=l.useState(()=>f?a.visible:!1),g=l.useRef(null);l.useEffect(()=>{f&&h(a.visible)},[f,a]);const v=eT(g),b=()=>{var k;if(u)return;d&&v();const z=!d;h(z),typeof a=="object"&&((k=a.onVisibleChange)===null||k===void 0||k.call(a,z))},x=k=>{const z=wY[r]||"",V=o(d),B={[z]:b,className:`${k}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return l.cloneElement(l.isValidElement(V)?V:l.createElement("span",null,V),B)},{className:C,prefixCls:y,inputPrefixCls:w,size:$}=e,E=SY(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:I}=l.useContext(Yt),O=I("input",w),R=I("input-password",y),T=a&&x(R),P=ce(R,C,{[`${R}-${$}`]:!!$}),N=Object.assign(Object.assign({},tr(E,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:P,prefixCls:O,suffix:T});return $&&(N.size=$),l.createElement(Af,Object.assign({ref:xa(t,g)},N))});var EY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _Y=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:s,enterButton:u=!1,addonAfter:f,loading:d,disabled:h,onSearch:g,onChange:v,onCompositionStart:b,onCompositionEnd:x}=e,C=EY(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:w}=l.useContext(Yt),$=l.useRef(!1),E=y("input-search",n),I=y("input",r),{compactSize:O}=Yo(E,w),R=ua(K=>{var q;return(q=o??O)!==null&&q!==void 0?q:K}),T=l.useRef(null),P=K=>{K!=null&&K.target&&K.type==="click"&&g&&g(K.target.value,K,{source:"clear"}),v==null||v(K)},N=K=>{var q;document.activeElement===((q=T.current)===null||q===void 0?void 0:q.input)&&K.preventDefault()},k=K=>{var q,Y;g&&g((Y=(q=T.current)===null||q===void 0?void 0:q.input)===null||Y===void 0?void 0:Y.value,K,{source:"input"})},z=K=>{$.current||d||k(K)},V=typeof u=="boolean"?l.createElement(OS,null):null,B=`${E}-button`;let L;const H=u||{},j=H.type&&H.type.__ANT_BUTTON===!0;j||H.type==="button"?L=pa(H,Object.assign({onMouseDown:N,onClick:K=>{var q,Y;(Y=(q=H==null?void 0:H.props)===null||q===void 0?void 0:q.onClick)===null||Y===void 0||Y.call(q,K),k(K)},key:"enterButton"},j?{className:B,size:R}:{})):L=l.createElement(mn,{className:B,type:u?"primary":void 0,size:R,disabled:h,key:"enterButton",onMouseDown:N,onClick:k,loading:d,icon:V},u),f&&(L=[L,pa(f,{key:"addonAfter"})]);const D=ce(E,{[`${E}-rtl`]:w==="rtl",[`${E}-${R}`]:!!R,[`${E}-with-button`]:!!u},a),F=Object.assign(Object.assign({},C),{className:D,prefixCls:I,type:"search"}),U=K=>{$.current=!0,b==null||b(K)},A=K=>{$.current=!1,x==null||x(K)};return l.createElement(Af,Object.assign({ref:xa(T,t),onPressEnter:z},F,{size:R,onCompositionStart:U,onCompositionEnd:A,addonAfter:L,suffix:s,onChange:P,disabled:h}))});var OY=`
  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;
`,IY=["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"],Ey={},Xa;function RY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ey[n])return Ey[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=IY.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),f={sizingStyle:u,paddingSize:o,borderSize:s,boxSizing:a};return t&&n&&(Ey[n]=f),f}function NY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Xa||(Xa=document.createElement("textarea"),Xa.setAttribute("tab-index","-1"),Xa.setAttribute("aria-hidden","true"),Xa.setAttribute("name","hiddenTextarea"),document.body.appendChild(Xa)),e.getAttribute("wrap")?Xa.setAttribute("wrap",e.getAttribute("wrap")):Xa.removeAttribute("wrap");var a=RY(e,t),o=a.paddingSize,s=a.borderSize,u=a.boxSizing,f=a.sizingStyle;Xa.setAttribute("style","".concat(f,";").concat(OY)),Xa.value=e.value||e.placeholder||"";var d=void 0,h=void 0,g,v=Xa.scrollHeight;if(u==="border-box"?v+=s:u==="content-box"&&(v-=o),n!==null||r!==null){Xa.value=" ";var b=Xa.scrollHeight-o;n!==null&&(d=b*n,u==="border-box"&&(d=d+o+s),v=Math.max(d,v)),r!==null&&(h=b*r,u==="border-box"&&(h=h+o+s),g=v>h?"":"hidden",v=Math.min(h,v))}var x={height:v,overflowY:g,resize:"none"};return d&&(x.minHeight=d),h&&(x.maxHeight=h),x}var MY=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_y=0,Oy=1,Iy=2,jY=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,s=n.autoSize,u=n.onResize,f=n.className,d=n.style,h=n.disabled,g=n.onChange;n.onInternalAutoSize;var v=qt(n,MY),b=Wn(a,{value:o,postState:function(W){return W??""}}),x=ue(b,2),C=x[0],y=x[1],w=function(W){y(W.target.value),g==null||g(W)},$=l.useRef();l.useImperativeHandle(t,function(){return{textArea:$.current}});var E=l.useMemo(function(){return s&&_t(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),I=ue(E,2),O=I[0],R=I[1],T=!!s,P=function(){try{if(document.activeElement===$.current){var W=$.current,Q=W.selectionStart,Z=W.selectionEnd,ae=W.scrollTop;$.current.setSelectionRange(Q,Z),$.current.scrollTop=ae}}catch{}},N=l.useState(Iy),k=ue(N,2),z=k[0],V=k[1],B=l.useState(),L=ue(B,2),H=L[0],j=L[1],D=function(){V(_y)};hn(function(){T&&D()},[o,O,R,T]),hn(function(){if(z===_y)V(Oy);else if(z===Oy){var Y=NY($.current,!1,O,R);V(Iy),j(Y)}else P()},[z]);var F=l.useRef(),U=function(){un.cancel(F.current)},A=function(W){z===Iy&&(u==null||u(W),s&&(U(),F.current=un(function(){D()})))};l.useEffect(function(){return U},[]);var K=T?H:null,q=te(te({},d),K);return(z===_y||z===Oy)&&(q.overflowY="hidden",q.overflowX="hidden"),l.createElement(ga,{onResize:A,disabled:!(s||u)},l.createElement("textarea",Me({},v,{ref:$,style:q,className:ce(r,f,X({},"".concat(r,"-disabled"),h)),disabled:h,value:C,onChange:w})))}),TY=["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"],DY=Se.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,s=e.onBlur,u=e.onChange,f=e.allowClear,d=e.maxLength,h=e.onCompositionStart,g=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,x=b===void 0?"rc-textarea":b,C=e.showCount,y=e.count,w=e.className,$=e.style,E=e.disabled,I=e.hidden,O=e.classNames,R=e.styles,T=e.onResize,P=e.onClear,N=e.onPressEnter,k=e.readOnly,z=e.autoSize,V=e.onKeyDown,B=qt(e,TY),L=Wn(r,{value:a,defaultValue:r}),H=ue(L,2),j=H[0],D=H[1],F=j==null?"":String(j),U=Se.useState(!1),A=ue(U,2),K=A[0],q=A[1],Y=Se.useRef(!1),W=Se.useState(null),Q=ue(W,2),Z=Q[0],ae=Q[1],J=l.useRef(null),se=l.useRef(null),he=function(){var ye;return(ye=se.current)===null||ye===void 0?void 0:ye.textArea},oe=function(){he().focus()};l.useImperativeHandle(t,function(){var Ue;return{resizableTextArea:se.current,focus:oe,blur:function(){he().blur()},nativeElement:((Ue=J.current)===null||Ue===void 0?void 0:Ue.nativeElement)||he()}}),l.useEffect(function(){q(function(Ue){return!E&&Ue})},[E]);var le=Se.useState(null),ie=ue(le,2),de=ie[0],ge=ie[1];Se.useEffect(function(){if(de){var Ue;(Ue=he()).setSelectionRange.apply(Ue,Ae(de))}},[de]);var me=Qj(y,C),xe=(n=me.max)!==null&&n!==void 0?n:d,Ee=Number(xe)>0,He=me.strategy(F),je=!!xe&&He>xe,ve=function(ye,Ce){var _e=Ce;!Y.current&&me.exceedFormatter&&me.max&&me.strategy(Ce)>me.max&&(_e=me.exceedFormatter(Ce,{max:me.max}),Ce!==_e&&ge([he().selectionStart||0,he().selectionEnd||0])),D(_e),gg(ye.currentTarget,ye,u,_e)},$e=function(ye){Y.current=!0,h==null||h(ye)},we=function(ye){Y.current=!1,ve(ye,ye.currentTarget.value),g==null||g(ye)},Re=function(ye){ve(ye,ye.target.value)},ze=function(ye){ye.key==="Enter"&&N&&N(ye),V==null||V(ye)},De=function(ye){q(!0),o==null||o(ye)},Ye=function(ye){q(!1),s==null||s(ye)},Xe=function(ye){D(""),oe(),gg(he(),ye,u)},Le=v,Ke;me.show&&(me.showFormatter?Ke=me.showFormatter({value:F,count:He,maxLength:xe}):Ke="".concat(He).concat(Ee?" / ".concat(xe):""),Le=Se.createElement(Se.Fragment,null,Le,Se.createElement("span",{className:ce("".concat(x,"-data-count"),O==null?void 0:O.count),style:R==null?void 0:R.count},Ke)));var Fe=function(ye){var Ce;T==null||T(ye),(Ce=he())!==null&&Ce!==void 0&&Ce.style.height&&ae(!0)},Ie=!z&&!C&&!f;return Se.createElement(aC,{ref:J,value:F,allowClear:f,handleReset:Xe,suffix:Le,prefixCls:x,classNames:te(te({},O),{},{affixWrapper:ce(O==null?void 0:O.affixWrapper,X(X({},"".concat(x,"-show-count"),C),"".concat(x,"-textarea-allow-clear"),f))}),disabled:E,focused:K,className:ce(w,je&&"".concat(x,"-out-of-range")),style:te(te({},$),Z&&!Ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:I,readOnly:k,onClear:P},Se.createElement(jY,Me({},B,{autoSize:z,maxLength:d,onKeyDown:ze,onChange:Re,onFocus:De,onBlur:Ye,onCompositionStart:$e,onCompositionEnd:we,className:ce(O==null?void 0:O.textarea),style:te(te({},R==null?void 0:R.textarea),{},{resize:$==null?void 0:$.resize}),disabled:E,prefixCls:x,onResize:Fe,ref:se,readOnly:k})))});const PY=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},kY=Kn(["Input","TextArea"],e=>{const t=yn(e,js(e));return[PY(t)]},Ts,{resetFont:!1});var AY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yT=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:s,status:u,allowClear:f,classNames:d,rootClassName:h,className:g,style:v,styles:b,variant:x,showCount:C,onMouseDown:y,onResize:w}=e,$=AY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:I,allowClear:O,autoComplete:R,className:T,style:P,classNames:N,styles:k}=Ia("textArea"),z=l.useContext(Oa),V=s??z,{status:B,hasFeedback:L,feedbackIcon:H}=l.useContext(ca),j=Os(B,u),D=l.useRef(null);l.useImperativeHandle(t,()=>{var me;return{resizableTextArea:(me=D.current)===null||me===void 0?void 0:me.resizableTextArea,focus:xe=>{var Ee,He;rC((He=(Ee=D.current)===null||Ee===void 0?void 0:Ee.resizableTextArea)===null||He===void 0?void 0:He.textArea,xe)},blur:()=>{var xe;return(xe=D.current)===null||xe===void 0?void 0:xe.blur()}}});const F=E("input",r),U=ta(F),[A,K,q]=jj(F,h),[Y]=kY(F,U),{compactSize:W,compactItemClassnames:Q}=Yo(F,I),Z=ua(me=>{var xe;return(xe=o??W)!==null&&xe!==void 0?xe:me}),[ae,J]=Is("textArea",x,a),se=Jj(f??O),[he,oe]=l.useState(!1),[le,ie]=l.useState(!1),de=me=>{oe(!0),y==null||y(me);const xe=()=>{oe(!1),document.removeEventListener("mouseup",xe)};document.addEventListener("mouseup",xe)},ge=me=>{var xe,Ee;if(w==null||w(me),he&&typeof getComputedStyle=="function"){const He=(Ee=(xe=D.current)===null||xe===void 0?void 0:xe.nativeElement)===null||Ee===void 0?void 0:Ee.querySelector("textarea");He&&getComputedStyle(He).resize==="both"&&ie(!0)}};return A(Y(l.createElement(DY,Object.assign({autoComplete:R},$,{style:Object.assign(Object.assign({},P),v),styles:Object.assign(Object.assign({},k),b),disabled:V,allowClear:se,className:ce(q,U,g,h,Q,T,le&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),N),{textarea:ce({[`${F}-sm`]:Z==="small",[`${F}-lg`]:Z==="large"},K,d==null?void 0:d.textarea,N.textarea,he&&`${F}-mouse-active`),variant:ce({[`${F}-${ae}`]:J},Tl(F,j)),affixWrapper:ce(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:I==="rtl",[`${F}-affix-wrapper-sm`]:Z==="small",[`${F}-affix-wrapper-lg`]:Z==="large",[`${F}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},K)}),prefixCls:F,suffix:L&&l.createElement("span",{className:`${F}-textarea-suffix`},H),showCount:C,ref:D,onResize:ge,onMouseDown:de}))))}),ht=Af;ht.Group=uY;ht.Search=_Y;ht.TextArea=yT;ht.Password=$Y;ht.OTP=pY;function zY(e,t,n){return typeof n=="boolean"?n:e.length?!0:_a(t).some(a=>a.type===HM)}var xT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function gv(e){let{suffixCls:t,tagName:n,displayName:r}=e;return a=>l.forwardRef((s,u)=>l.createElement(a,Object.assign({ref:u,suffixCls:t,tagName:n},s)))}const sC=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,s=xT(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=l.useContext(Yt),f=u("layout",n),[d,h,g]=LM(f),v=r?`${f}-${r}`:f;return d(l.createElement(o,Object.assign({className:ce(n||v,a,h,g),ref:t},s)))}),LY=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(Yt),[r,a]=l.useState([]),{prefixCls:o,className:s,rootClassName:u,children:f,hasSider:d,tagName:h,style:g}=e,v=xT(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=tr(v,["suffixCls"]),{getPrefixCls:x,className:C,style:y}=Ia("layout"),w=x("layout",o),$=zY(r,f,d),[E,I,O]=LM(w),R=ce(w,{[`${w}-has-sider`]:$,[`${w}-rtl`]:n==="rtl"},C,s,u,I,O),T=l.useMemo(()=>({siderHook:{addSider:P=>{a(N=>[].concat(Ae(N),[P]))},removeSider:P=>{a(N=>N.filter(k=>k!==P))}}}),[]);return E(l.createElement(kM.Provider,{value:T},l.createElement(h,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},y),g)},b),f)))}),HY=gv({tagName:"div",displayName:"Layout"})(LY),BY=gv({suffixCls:"header",tagName:"header",displayName:"Header"})(sC),FY=gv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(sC),VY=gv({suffixCls:"content",tagName:"main",displayName:"Content"})(sC),vi=HY;vi.Header=BY;vi.Footer=FY;vi.Content=VY;vi.Sider=HM;vi._InternalSiderContext=iv;const cC=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var KY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},UY=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:KY}))},TO=l.forwardRef(UY),WY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qY=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:WY}))},DO=l.forwardRef(qY),YY={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},GY=[10,20,50,100],XY=function(t){var n=t.pageSizeOptions,r=n===void 0?GY:n,a=t.locale,o=t.changeSize,s=t.pageSize,u=t.goButton,f=t.quickGo,d=t.rootPrefixCls,h=t.disabled,g=t.buildOptionText,v=t.showSizeChanger,b=t.sizeChangerRender,x=Se.useState(""),C=ue(x,2),y=C[0],w=C[1],$=function(){return!y||Number.isNaN(y)?void 0:Number(y)},E=typeof g=="function"?g:function(V){return"".concat(V," ").concat(a.items_per_page)},I=function(B){w(B.target.value)},O=function(B){u||y===""||(w(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&(f==null||f($())))},R=function(B){y!==""&&(B.keyCode===It.ENTER||B.type==="click")&&(w(""),f==null||f($()))},T=function(){return r.some(function(B){return B.toString()===s.toString()})?r:r.concat([s]).sort(function(B,L){var H=Number.isNaN(Number(B))?0:Number(B),j=Number.isNaN(Number(L))?0:Number(L);return H-j})},P="".concat(d,"-options");if(!v&&!f)return null;var N=null,k=null,z=null;return v&&b&&(N=b({disabled:h,size:s,onSizeChange:function(B){o==null||o(Number(B))},"aria-label":a.page_size,className:"".concat(P,"-size-changer"),options:T().map(function(V){return{label:E(V),value:V}})})),f&&(u&&(z=typeof u=="boolean"?Se.createElement("button",{type:"button",onClick:R,onKeyUp:R,disabled:h,className:"".concat(P,"-quick-jumper-button")},a.jump_to_confirm):Se.createElement("span",{onClick:R,onKeyUp:R},u)),k=Se.createElement("div",{className:"".concat(P,"-quick-jumper")},a.jump_to,Se.createElement("input",{disabled:h,type:"text",value:y,onChange:I,onKeyUp:R,onBlur:O,"aria-label":a.page}),a.page,z)),Se.createElement("li",{className:P},N,k)},Cd=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,s=t.showTitle,u=t.onClick,f=t.onKeyPress,d=t.itemRender,h="".concat(n,"-item"),g=ce(h,"".concat(h,"-").concat(r),X(X({},"".concat(h,"-active"),a),"".concat(h,"-disabled"),!r),o),v=function(){u(r)},b=function(y){f(y,u,r)},x=d(r,"page",Se.createElement("a",{rel:"nofollow"},r));return x?Se.createElement("li",{title:s?String(r):null,className:g,onClick:v,onKeyDown:b,tabIndex:0},x):null},QY=function(t,n,r){return r};function PO(){}function kO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ls(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var ZY=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,u=t.current,f=t.defaultCurrent,d=f===void 0?1:f,h=t.total,g=h===void 0?0:h,v=t.pageSize,b=t.defaultPageSize,x=b===void 0?10:b,C=t.onChange,y=C===void 0?PO:C,w=t.hideOnSinglePage,$=t.align,E=t.showPrevNextJumpers,I=E===void 0?!0:E,O=t.showQuickJumper,R=t.showLessItems,T=t.showTitle,P=T===void 0?!0:T,N=t.onShowSizeChange,k=N===void 0?PO:N,z=t.locale,V=z===void 0?YY:z,B=t.style,L=t.totalBoundaryShowSizeChanger,H=L===void 0?50:L,j=t.disabled,D=t.simple,F=t.showTotal,U=t.showSizeChanger,A=U===void 0?g>H:U,K=t.sizeChangerRender,q=t.pageSizeOptions,Y=t.itemRender,W=Y===void 0?QY:Y,Q=t.jumpPrevIcon,Z=t.jumpNextIcon,ae=t.prevIcon,J=t.nextIcon,se=Se.useRef(null),he=Wn(10,{value:v,defaultValue:x}),oe=ue(he,2),le=oe[0],ie=oe[1],de=Wn(1,{value:u,defaultValue:d,postState:function(Ft){return Math.max(1,Math.min(Ft,ls(void 0,le,g)))}}),ge=ue(de,2),me=ge[0],xe=ge[1],Ee=Se.useState(me),He=ue(Ee,2),je=He[0],ve=He[1];l.useEffect(function(){ve(me)},[me]);var $e=Math.max(1,me-(R?3:5)),we=Math.min(ls(void 0,le,g),me+(R?3:5));function Re(kt,Ft){var nn=kt||Se.createElement("button",{type:"button","aria-label":Ft,className:"".concat(r,"-item-link")});return typeof kt=="function"&&(nn=Se.createElement(kt,te({},t))),nn}function ze(kt){var Ft=kt.target.value,nn=ls(void 0,le,g),Nn;return Ft===""?Nn=Ft:Number.isNaN(Number(Ft))?Nn=je:Ft>=nn?Nn=nn:Nn=Number(Ft),Nn}function De(kt){return kO(kt)&&kt!==me&&kO(g)&&g>0}var Ye=g>le?O:!1;function Xe(kt){(kt.keyCode===It.UP||kt.keyCode===It.DOWN)&&kt.preventDefault()}function Le(kt){var Ft=ze(kt);switch(Ft!==je&&ve(Ft),kt.keyCode){case It.ENTER:Ie(Ft);break;case It.UP:Ie(Ft-1);break;case It.DOWN:Ie(Ft+1);break}}function Ke(kt){Ie(ze(kt))}function Fe(kt){var Ft=ls(kt,le,g),nn=me>Ft&&Ft!==0?Ft:me;ie(kt),ve(nn),k==null||k(me,kt),xe(nn),y==null||y(nn,kt)}function Ie(kt){if(De(kt)&&!j){var Ft=ls(void 0,le,g),nn=kt;return kt>Ft?nn=Ft:kt<1&&(nn=1),nn!==je&&ve(nn),xe(nn),y==null||y(nn,le),nn}return me}var Ue=me>1,ye=me<ls(void 0,le,g);function Ce(){Ue&&Ie(me-1)}function _e(){ye&&Ie(me+1)}function be(){Ie($e)}function ke(){Ie(we)}function st(kt,Ft){if(kt.key==="Enter"||kt.charCode===It.ENTER||kt.keyCode===It.ENTER){for(var nn=arguments.length,Nn=new Array(nn>2?nn-2:0),hr=2;hr<nn;hr++)Nn[hr-2]=arguments[hr];Ft.apply(void 0,Nn)}}function Dt(kt){st(kt,Ce)}function Wt(kt){st(kt,_e)}function Je(kt){st(kt,be)}function ct(kt){st(kt,ke)}function $t(kt){var Ft=W(kt,"prev",Re(ae,"prev page"));return Se.isValidElement(Ft)?Se.cloneElement(Ft,{disabled:!Ue}):Ft}function ot(kt){var Ft=W(kt,"next",Re(J,"next page"));return Se.isValidElement(Ft)?Se.cloneElement(Ft,{disabled:!ye}):Ft}function gt(kt){(kt.type==="click"||kt.keyCode===It.ENTER)&&Ie(je)}var dt=null,lt=sa(t,{aria:!0,data:!0}),nt=F&&Se.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(me-1)*le+1,me*le>g?g:me*le])),Pt=null,bt=ls(void 0,le,g);if(w&&g<=le)return null;var Ge=[],tt={rootPrefixCls:r,onClick:Ie,onKeyPress:st,showTitle:P,itemRender:W,page:-1},Mt=me-1>0?me-1:0,At=me+1<bt?me+1:bt,Ot=O&&O.goButton,Ht=_t(D)==="object"?D.readOnly:!D,wt=Ot,xt=null;D&&(Ot&&(typeof Ot=="boolean"?wt=Se.createElement("button",{type:"button",onClick:gt,onKeyUp:gt},V.jump_to_confirm):wt=Se.createElement("span",{onClick:gt,onKeyUp:gt},Ot),wt=Se.createElement("li",{title:P?"".concat(V.jump_to).concat(me,"/").concat(bt):null,className:"".concat(r,"-simple-pager")},wt)),xt=Se.createElement("li",{title:P?"".concat(me,"/").concat(bt):null,className:"".concat(r,"-simple-pager")},Ht?je:Se.createElement("input",{type:"text","aria-label":V.jump_to,value:je,disabled:j,onKeyDown:Xe,onKeyUp:Le,onChange:Le,onBlur:Ke,size:3}),Se.createElement("span",{className:"".concat(r,"-slash")},"/"),bt));var Tt=R?1:2;if(bt<=3+Tt*2){bt||Ge.push(Se.createElement(Cd,Me({},tt,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Vt=1;Vt<=bt;Vt+=1)Ge.push(Se.createElement(Cd,Me({},tt,{key:Vt,page:Vt,active:me===Vt})))}else{var Jt=R?V.prev_3:V.prev_5,on=R?V.next_3:V.next_5,Ut=W($e,"jump-prev",Re(Q,"prev page")),gn=W(we,"jump-next",Re(Z,"next page"));I&&(dt=Ut?Se.createElement("li",{title:P?Jt:null,key:"prev",onClick:be,tabIndex:0,onKeyDown:Je,className:ce("".concat(r,"-jump-prev"),X({},"".concat(r,"-jump-prev-custom-icon"),!!Q))},Ut):null,Pt=gn?Se.createElement("li",{title:P?on:null,key:"next",onClick:ke,tabIndex:0,onKeyDown:ct,className:ce("".concat(r,"-jump-next"),X({},"".concat(r,"-jump-next-custom-icon"),!!Z))},gn):null);var $n=Math.max(1,me-Tt),En=Math.min(me+Tt,bt);me-1<=Tt&&(En=1+Tt*2),bt-me<=Tt&&($n=bt-Tt*2);for(var at=$n;at<=En;at+=1)Ge.push(Se.createElement(Cd,Me({},tt,{key:at,page:at,active:me===at})));if(me-1>=Tt*2&&me!==3&&(Ge[0]=Se.cloneElement(Ge[0],{className:ce("".concat(r,"-item-after-jump-prev"),Ge[0].props.className)}),Ge.unshift(dt)),bt-me>=Tt*2&&me!==bt-2){var Rt=Ge[Ge.length-1];Ge[Ge.length-1]=Se.cloneElement(Rt,{className:ce("".concat(r,"-item-before-jump-next"),Rt.props.className)}),Ge.push(Pt)}$n!==1&&Ge.unshift(Se.createElement(Cd,Me({},tt,{key:1,page:1}))),En!==bt&&Ge.push(Se.createElement(Cd,Me({},tt,{key:bt,page:bt})))}var mt=$t(Mt);if(mt){var it=!Ue||!bt;mt=Se.createElement("li",{title:P?V.prev_page:null,onClick:Ce,tabIndex:it?null:0,onKeyDown:Dt,className:ce("".concat(r,"-prev"),X({},"".concat(r,"-disabled"),it)),"aria-disabled":it},mt)}var Bt=ot(At);if(Bt){var tn,bn;D?(tn=!ye,bn=Ue?0:null):(tn=!ye||!bt,bn=tn?null:0),Bt=Se.createElement("li",{title:P?V.next_page:null,onClick:_e,tabIndex:bn,onKeyDown:Wt,className:ce("".concat(r,"-next"),X({},"".concat(r,"-disabled"),tn)),"aria-disabled":tn},Bt)}var On=ce(r,s,X(X(X(X(X({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),D),"".concat(r,"-disabled"),j));return Se.createElement("ul",Me({className:On,style:B,ref:se},lt),nt,mt,D?xt:Ge,Bt,Se.createElement(XY,{locale:V,rootPrefixCls:r,disabled:j,selectPrefixCls:o,changeSize:Fe,pageSize:le,pageSizeOptions:q,quickGo:Ye?Ie:null,goButton:wt,showSizeChanger:A,sizeChangerRender:K}))};const JY=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},eG=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),input:Object.assign(Object.assign({},QS(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},tG=e=>{const{componentCls:t}=e;return{[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ne(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ne(e.inputOutlineOffset)} 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},nG=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ne(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ne(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Pf(e)),US(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},fv(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},rG=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ne(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},aG=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),rG(e)),nG(e)),tG(e)),eG(e)),JY(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},iG=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Bo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ao(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ao(e))}}}},ST=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ts(e)),CT=e=>yn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},js(e)),oG=Kn("Pagination",e=>{const t=CT(e);return[aG(t),iG(t)]},ST),lG=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},sG=_f(["Pagination","bordered"],e=>{const t=CT(e);return[lG(t)]},ST);function AO(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var cG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const wT=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:s,size:u,locale:f,responsive:d,showSizeChanger:h,selectComponentClass:g,pageSizeOptions:v}=e,b=cG(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=nv(d),[,C]=Ra(),{getPrefixCls:y,direction:w,showSizeChanger:$,className:E,style:I}=Ia("pagination"),O=y("pagination",n),[R,T,P]=oG(O),N=ua(u),k=N==="small"||!!(x&&!N&&d),[z]=Wo("Pagination",AR),V=Object.assign(Object.assign({},z),f),[B,L]=AO(h),[H,j]=AO($),D=B??H,F=L??j,U=g||Et,A=l.useMemo(()=>v?v.map(Z=>Number(Z)):void 0,[v]),K=Z=>{var ae;const{disabled:J,size:se,onSizeChange:he,"aria-label":oe,className:le,options:ie}=Z,{className:de,onChange:ge}=F||{},me=(ae=ie.find(xe=>String(xe.value)===String(se)))===null||ae===void 0?void 0:ae.value;return l.createElement(U,Object.assign({disabled:J,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:xe=>xe.parentNode,"aria-label":oe,options:ie},F,{value:me,onChange:(xe,Ee)=>{he==null||he(xe),ge==null||ge(xe,Ee)},size:k?"small":"middle",className:ce(le,de)}))},q=l.useMemo(()=>{const Z=l.createElement("span",{className:`${O}-item-ellipsis`},"•••"),ae=l.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(df,null):l.createElement(hf,null)),J=l.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(hf,null):l.createElement(df,null)),se=l.createElement("a",{className:`${O}-item-link`},l.createElement("div",{className:`${O}-item-container`},w==="rtl"?l.createElement(DO,{className:`${O}-item-link-icon`}):l.createElement(TO,{className:`${O}-item-link-icon`}),Z)),he=l.createElement("a",{className:`${O}-item-link`},l.createElement("div",{className:`${O}-item-container`},w==="rtl"?l.createElement(TO,{className:`${O}-item-link-icon`}):l.createElement(DO,{className:`${O}-item-link-icon`}),Z));return{prevIcon:ae,nextIcon:J,jumpPrevIcon:se,jumpNextIcon:he}},[w,O]),Y=y("select",r),W=ce({[`${O}-${t}`]:!!t,[`${O}-mini`]:k,[`${O}-rtl`]:w==="rtl",[`${O}-bordered`]:C.wireframe},E,a,o,T,P),Q=Object.assign(Object.assign({},I),s);return R(l.createElement(l.Fragment,null,C.wireframe&&l.createElement(sG,{prefixCls:O}),l.createElement(ZY,Object.assign({},q,b,{style:Q,prefixCls:O,selectPrefixCls:Y,className:W,locale:V,pageSizeOptions:A,showSizeChanger:D,sizeChangerRender:K}))))},pg=100,$T=pg/5,ET=pg/2-$T/2,Ry=ET*2*Math.PI,zO=50,LO=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:ET,cx:zO,cy:zO,strokeWidth:$T,style:n})},uG=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[s,u]=l.useState(!1);hn(()=>{t!==0&&u(!0)},[t!==0]);const f=Math.max(Math.min(t,100),0);if(!s)return null;const d={strokeDashoffset:`${Ry/4}`,strokeDasharray:`${Ry*f/100} ${Ry*(100-f)/100}`};return l.createElement("span",{className:ce(a,`${r}-progress`,f<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${pg} ${pg}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f},l.createElement(LO,{dotClassName:r,hasCircleCls:!0}),l.createElement(LO,{dotClassName:r,style:d})))};function dG(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ce(a,n>0&&o)},l.createElement("span",{className:ce(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>l.createElement("i",{className:`${t}-dot-item`,key:s})))),l.createElement(uG,{prefixCls:t,percent:n}))}function fG(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?pa(n,{className:ce(n.props.className,a),percent:r}):l.createElement(dG,{prefixCls:t,percent:r})}const mG=new Dn("antSpinMove",{to:{opacity:1}}),hG=new Dn("antRotate",{to:{transform:"rotate(405deg)"}}),gG=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:mG,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:hG,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},vG=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},pG=Kn("Spin",e=>{const t=yn(e,{spinDotDefault:e.colorTextDescription});return[gG(t)]},vG),bG=200,HO=[[30,.05],[70,.03],[96,.01]];function yG(e,t){const[n,r]=l.useState(0),a=l.useRef(null),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(s=>{const u=100-s;for(let f=0;f<HO.length;f+=1){const[d,h]=HO[f];if(s<=d)return s+u*h}return s})},bG)),()=>{clearInterval(a.current)}),[o,e]),o?n:t}var xG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let _T;function SG(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const zf=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:s,size:u="default",tip:f,wrapperClassName:d,style:h,children:g,fullscreen:v=!1,indicator:b,percent:x}=e,C=xG(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:w,className:$,style:E,indicator:I}=Ia("spin"),O=y("spin",n),[R,T,P]=pG(O),[N,k]=l.useState(()=>r&&!SG(r,a)),z=yG(N,x);l.useEffect(()=>{if(r){const F=JU(a,()=>{k(!0)});return F(),()=>{var U;(U=F==null?void 0:F.cancel)===null||U===void 0||U.call(F)}}k(!1)},[a,r]);const V=l.useMemo(()=>typeof g<"u"&&!v,[g,v]),B=ce(O,$,{[`${O}-sm`]:u==="small",[`${O}-lg`]:u==="large",[`${O}-spinning`]:N,[`${O}-show-text`]:!!f,[`${O}-rtl`]:w==="rtl"},o,!v&&s,T,P),L=ce(`${O}-container`,{[`${O}-blur`]:N}),H=(t=b??I)!==null&&t!==void 0?t:_T,j=Object.assign(Object.assign({},E),h),D=l.createElement("div",Object.assign({},C,{style:j,className:B,"aria-live":"polite","aria-busy":N}),l.createElement(fG,{prefixCls:O,indicator:H,percent:z}),f&&(V||v)?l.createElement("div",{className:`${O}-text`},f):null);return R(V?l.createElement("div",Object.assign({},C,{className:ce(`${O}-nested-loading`,d,T,P)}),N&&l.createElement("div",{key:"loading"},D),l.createElement("div",{className:L,key:"container"},g)):v?l.createElement("div",{className:ce(`${O}-fullscreen`,{[`${O}-fullscreen-show`]:N},s,T,P)},D):D)};zf.setDefaultIndicator=e=>{_T=e};const uC=Se.createContext({});uC.Consumer;var OT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const CG=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,s=OT(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=l.useContext(Yt),f=u("list",t),d=ce(`${f}-item-meta`,n),h=Se.createElement("div",{className:`${f}-item-meta-content`},a&&Se.createElement("h4",{className:`${f}-item-meta-title`},a),o&&Se.createElement("div",{className:`${f}-item-meta-description`},o));return Se.createElement("div",Object.assign({},s,{className:d}),r&&Se.createElement("div",{className:`${f}-item-meta-avatar`},r),(a||o)&&h)},wG=Se.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:s,className:u,classNames:f,colStyle:d}=e,h=OT(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:v}=l.useContext(uC),{getPrefixCls:b,list:x}=l.useContext(Yt),C=T=>{var P,N;return ce((N=(P=x==null?void 0:x.item)===null||P===void 0?void 0:P.classNames)===null||N===void 0?void 0:N[T],f==null?void 0:f[T])},y=T=>{var P,N;return Object.assign(Object.assign({},(N=(P=x==null?void 0:x.item)===null||P===void 0?void 0:P.styles)===null||N===void 0?void 0:N[T]),s==null?void 0:s[T])},w=()=>{let T=!1;return l.Children.forEach(r,P=>{typeof P=="string"&&(T=!0)}),T&&l.Children.count(r)>1},$=()=>v==="vertical"?!!o:!w(),E=b("list",n),I=a&&a.length>0&&Se.createElement("ul",{className:ce(`${E}-item-action`,C("actions")),key:"actions",style:y("actions")},a.map((T,P)=>Se.createElement("li",{key:`${E}-item-action-${P}`},T,P!==a.length-1&&Se.createElement("em",{className:`${E}-item-action-split`})))),O=g?"div":"li",R=Se.createElement(O,Object.assign({},h,g?{}:{ref:t},{className:ce(`${E}-item`,{[`${E}-item-no-flex`]:!$()},u)}),v==="vertical"&&o?[Se.createElement("div",{className:`${E}-item-main`,key:"content"},r,I),Se.createElement("div",{className:ce(`${E}-item-extra`,C("extra")),key:"extra",style:y("extra")},o)]:[r,I,pa(o,{key:"extra"})]);return g?Se.createElement(eC,{ref:t,flex:1,style:d},R):R}),IT=wG;IT.Meta=CG;const $G=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:s,marginLG:u,borderRadiusLG:f}=e;return{[t]:{border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ne(a)} ${ne(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},EG=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ne(s)}`}}}}}},_G=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:s,padding:u,itemPadding:f,colorPrimary:d,itemPaddingSM:h,itemPaddingLG:g,paddingXS:v,margin:b,colorText:x,colorTextDescription:C,motionDurationSlow:y,lineWidth:w,headerBg:$,footerBg:E,emptyTextPadding:I,metaMarginBottom:O,avatarMarginRight:R,titleMarginBottom:T,descriptionFontSize:P}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:$},[`${t}-footer`]:{background:E},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:x,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:x},[`${t}-item-meta-title`]:{margin:`0 0 ${ne(e.marginXXS)} 0`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:x,transition:`all ${y}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:C,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ne(v)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:w,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ne(u)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:I,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:b,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:O,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:x,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${ne(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:h},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},OG=e=>({contentWidth:220,itemPadding:`${ne(e.paddingContentVertical)} 0`,itemPaddingSM:`${ne(e.paddingContentVerticalSM)} ${ne(e.paddingContentHorizontal)}`,itemPaddingLG:`${ne(e.paddingContentVerticalLG)} ${ne(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),IG=Kn("List",e=>{const t=yn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[_G(t),$G(t),EG(t)]},OG);var RG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function NG(e,t){const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:o=!0,className:s,rootClassName:u,style:f,children:d,itemLayout:h,loadMore:g,grid:v,dataSource:b=[],size:x,header:C,footer:y,loading:w=!1,rowKey:$,renderItem:E,locale:I}=e,O=RG(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),R=n&&typeof n=="object"?n:{},[T,P]=l.useState(R.defaultCurrent||1),[N,k]=l.useState(R.defaultPageSize||10),{getPrefixCls:z,direction:V,className:B,style:L}=Ia("list"),{renderEmpty:H}=l.useContext(Yt),j={current:1,total:0},D=$e=>(we,Re)=>{var ze;P(we),k(Re),n&&((ze=n==null?void 0:n[$e])===null||ze===void 0||ze.call(n,we,Re))},F=D("onChange"),U=D("onShowSizeChange"),A=($e,we)=>{if(!E)return null;let Re;return typeof $=="function"?Re=$($e):$?Re=$e[$]:Re=$e.key,Re||(Re=`list-item-${we}`),l.createElement(l.Fragment,{key:Re},E($e,we))},K=!!(g||n||y),q=z("list",r),[Y,W,Q]=IG(q);let Z=w;typeof Z=="boolean"&&(Z={spinning:Z});const ae=!!(Z!=null&&Z.spinning),J=ua(x);let se="";switch(J){case"large":se="lg";break;case"small":se="sm";break}const he=ce(q,{[`${q}-vertical`]:h==="vertical",[`${q}-${se}`]:se,[`${q}-split`]:o,[`${q}-bordered`]:a,[`${q}-loading`]:ae,[`${q}-grid`]:!!v,[`${q}-something-after-last-item`]:K,[`${q}-rtl`]:V==="rtl"},B,s,u,W,Q),oe=cC(j,{total:b.length,current:T,pageSize:N},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current=Math.min(oe.current,le);const ie=n&&l.createElement("div",{className:ce(`${q}-pagination`)},l.createElement(wT,Object.assign({align:"end"},oe,{onChange:F,onShowSizeChange:U})));let de=Ae(b);n&&b.length>(oe.current-1)*oe.pageSize&&(de=Ae(b).splice((oe.current-1)*oe.pageSize,oe.pageSize));const ge=Object.keys(v||{}).some($e=>["xs","sm","md","lg","xl","xxl"].includes($e)),me=nv(ge),xe=l.useMemo(()=>{for(let $e=0;$e<ws.length;$e+=1){const we=ws[$e];if(me[we])return we}},[me]),Ee=l.useMemo(()=>{if(!v)return;const $e=xe&&v[xe]?v[xe]:v.column;if($e)return{width:`${100/$e}%`,maxWidth:`${100/$e}%`}},[JSON.stringify(v),xe]);let He=ae&&l.createElement("div",{style:{minHeight:53}});if(de.length>0){const $e=de.map(A);He=v?l.createElement(Gj,{gutter:v.gutter},l.Children.map($e,we=>l.createElement("div",{key:we==null?void 0:we.key,style:Ee},we))):l.createElement("ul",{className:`${q}-items`},$e)}else!d&&!ae&&(He=l.createElement("div",{className:`${q}-empty-text`},(I==null?void 0:I.emptyText)||(H==null?void 0:H("List"))||l.createElement($S,{componentName:"List"})));const je=oe.position||"bottom",ve=l.useMemo(()=>({grid:v,itemLayout:h}),[JSON.stringify(v),h]);return Y(l.createElement(uC.Provider,{value:ve},l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},L),f),className:he},O),(je==="top"||je==="both")&&ie,C&&l.createElement("div",{className:`${q}-header`},C),l.createElement(zf,Object.assign({},Z),He,d),y&&l.createElement("div",{className:`${q}-footer`},y),g||(je==="bottom"||je==="both")&&ie)))}const MG=l.forwardRef(NG),ux=MG;ux.Item=IT;const jG=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let fi=null,ms=e=>e(),vf=[],pf={};function BO(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=pf,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const TG=Se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(Yt),o=pf.prefixCls||a("message"),s=l.useContext(tB),[u,f]=_N(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),s.message));return Se.useImperativeHandle(t,()=>{const d=Object.assign({},u);return Object.keys(d).forEach(h=>{d[h]=function(){return r(),u[h].apply(u,arguments)}}),{instance:d,sync:r}}),f}),DG=Se.forwardRef((e,t)=>{const[n,r]=Se.useState(BO),a=()=>{r(BO)};Se.useEffect(a,[]);const o=pz(),s=o.getRootPrefixCls(),u=o.getIconPrefixCls(),f=o.getTheme(),d=Se.createElement(TG,{ref:t,sync:a,messageConfig:n});return Se.createElement(qo,{prefixCls:s,iconPrefixCls:u,theme:f},o.holderRender?o.holderRender(d):d)});function vv(){if(!fi){const e=document.createDocumentFragment(),t={fragment:e};fi=t,ms(()=>{ON()(Se.createElement(DG,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,vv())})}}),e)});return}fi.instance&&(vf.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ms(()=>{const r=fi.instance.open(Object.assign(Object.assign({},pf),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ms(()=>{fi==null||fi.instance.destroy(e.key)});break;default:ms(()=>{var r;const a=(r=fi.instance)[t].apply(r,Ae(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),vf=[])}function PG(e){pf=Object.assign(Object.assign({},pf),e),ms(()=>{var t;(t=fi==null?void 0:fi.sync)===null||t===void 0||t.call(fi)})}function kG(e){const t=uS(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return vf.push(a),()=>{r?ms(()=>{r()}):a.skipped=!0}});return vv(),t}function AG(e,t){const n=uS(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:s=>{a=s}};return vf.push(o),()=>{a?ms(()=>{a()}):o.skipped=!0}});return vv(),n}const zG=e=>{vf.push({type:"destroy",key:e}),vv()},LG=["success","info","warning","error","loading"],HG={open:kG,destroy:zG,config:PG,useMessage:T8,_InternalPanelDoNotUseOrYouWillBeFired:E8},dC=HG;LG.forEach(e=>{dC[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AG(e,n)}});var BG={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},FG=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(s.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},FO=0,VG=va();function KG(){var e;return VG?(e=FO,FO+=1):e="TEST_OR_SSR",e}const UG=(function(e){var t=l.useState(),n=ue(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(KG()))},[]),e||r});var VO=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function KO(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var WG=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,s=e.style,u=e.ptg,f=e.strokeLinecap,d=e.strokeWidth,h=e.size,g=e.gapDegree,v=r&&_t(r)==="object",b=v?"#FFF":void 0,x=h/2,C=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:x,cy:x,stroke:b,strokeLinecap:f,strokeWidth:d,opacity:u===0?0:1,style:s,ref:t});if(!v)return C;var y="".concat(a,"-conic"),w=g?"".concat(180+g/2,"deg"):"0deg",$=KO(r,(360-g)/360),E=KO(r,1),I="conic-gradient(from ".concat(w,", ").concat($.join(", "),")"),O="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(E.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:y},C),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(y,")")},l.createElement(VO,{bg:O},l.createElement(VO,{bg:I}))))}),kd=100,Ny=function(t,n,r,a,o,s,u,f,d,h){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,v=r/100*360*((360-s)/360),b=s===0?0:{bottom:0,top:180,left:90,right:-90}[u],x=(100-a)/100*n;d==="round"&&a!==100&&(x+=h/2,x>=n&&(x=n-.01));var C=kd/2;return{stroke:typeof f=="string"?f:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:x+g,transform:"rotate(".concat(o+v+b,"deg)"),transformOrigin:"".concat(C,"px ").concat(C,"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}},qG=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function UO(e){var t=e??[];return Array.isArray(t)?t:[t]}var YG=function(t){var n=te(te({},BG),t),r=n.id,a=n.prefixCls,o=n.steps,s=n.strokeWidth,u=n.trailWidth,f=n.gapDegree,d=f===void 0?0:f,h=n.gapPosition,g=n.trailColor,v=n.strokeLinecap,b=n.style,x=n.className,C=n.strokeColor,y=n.percent,w=qt(n,qG),$=kd/2,E=UG(r),I="".concat(E,"-gradient"),O=$-s/2,R=Math.PI*2*O,T=d>0?90+d/2:-90,P=R*((360-d)/360),N=_t(o)==="object"?o:{count:o,gap:2},k=N.count,z=N.gap,V=UO(y),B=UO(C),L=B.find(function(K){return K&&_t(K)==="object"}),H=L&&_t(L)==="object",j=H?"butt":v,D=Ny(R,P,0,100,T,d,h,g,j,s),F=FG(),U=function(){var q=0;return V.map(function(Y,W){var Q=B[W]||B[B.length-1],Z=Ny(R,P,q,Y,T,d,h,Q,j,s);return q+=Y,l.createElement(WG,{key:W,color:Q,ptg:Y,radius:O,prefixCls:a,gradientId:I,style:Z,strokeLinecap:j,strokeWidth:s,gapDegree:d,ref:function(J){F[W]=J},size:kd})}).reverse()},A=function(){var q=Math.round(k*(V[0]/100)),Y=100/k,W=0;return new Array(k).fill(null).map(function(Q,Z){var ae=Z<=q-1?B[0]:g,J=ae&&_t(ae)==="object"?"url(#".concat(I,")"):void 0,se=Ny(R,P,W,Y,T,d,h,ae,"butt",s,z);return W+=(P-se.strokeDashoffset+z)*100/P,l.createElement("circle",{key:Z,className:"".concat(a,"-circle-path"),r:O,cx:$,cy:$,stroke:J,strokeWidth:s,opacity:1,style:se,ref:function(oe){F[Z]=oe}})})};return l.createElement("svg",Me({className:ce("".concat(a,"-circle"),x),viewBox:"0 0 ".concat(kd," ").concat(kd),style:b,id:r,role:"presentation"},w),!k&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:O,cx:$,cy:$,stroke:g,strokeLinecap:j,strokeWidth:u||s,style:D}),k?A():U())};function Nl(e){return!e||e<0?0:e>100?100:e}function bg(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const GG=e=>{let{percent:t,success:n,successPercent:r}=e;const a=Nl(bg({success:n,successPercent:r}));return[a,Nl(Nl(t)-a)]},XG=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Dc.green,n||null]},pv=(e,t,n)=>{var r,a,o,s;let u=-1,f=-1;if(t==="step"){const d=n.steps,h=n.strokeWidth;typeof e=="string"||typeof e>"u"?(u=e==="small"?2:14,f=h??8):typeof e=="number"?[u,f]=[e,e]:[u=14,f=8]=Array.isArray(e)?e:[e.width,e.height],u*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?f=d||(e==="small"?6:8):typeof e=="number"?[u,f]=[e,e]:[u=-1,f=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[u,f]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[u,f]=[e,e]:Array.isArray(e)&&(u=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,f=(s=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&s!==void 0?s:120));return[u,f]},QG=3,ZG=e=>QG/e*100,JG=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:s=120,type:u,children:f,success:d,size:h=s,steps:g}=e,[v,b]=pv(h,"circle");let{strokeWidth:x}=e;x===void 0&&(x=Math.max(ZG(v),6));const C={width:v,height:b,fontSize:v*.15+6},y=l.useMemo(()=>{if(o||o===0)return o;if(u==="dashboard")return 75},[o,u]),w=GG(e),$=a||u==="dashboard"&&"bottom"||void 0,E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",I=XG({success:d,strokeColor:e.strokeColor}),O=ce(`${t}-inner`,{[`${t}-circle-gradient`]:E}),R=l.createElement(YG,{steps:g,percent:g?w[1]:w,strokeWidth:x,trailWidth:x,strokeColor:g?I[1]:I,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:$}),T=v<=20,P=l.createElement("div",{className:O,style:C},R,!T&&f);return T?l.createElement(bi,{title:f},P):P},yg="--progress-line-stroke-color",RT="--progress-percent",WO=e=>{const t=e?"100%":"-100%";return new Dn(`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}})},eX=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ln(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(${yg})`]},height:"100%",width:`calc(1 / var(${RT}) * 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",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ne(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:WO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:WO(!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}}})}},tX=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},nX=e=>{const{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}}}}}},rX=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},aX=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),iX=Kn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=yn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eX(n),tX(n),nX(n),rX(n)]},aX);var oX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const lX=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},sX=(e,t)=>{const{from:n=Dc.blue,to:r=Dc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=oX(e,["from","to","direction"]);if(Object.keys(o).length!==0){const u=lX(o),f=`linear-gradient(${a}, ${u})`;return{background:f,[yg]:f}}const s=`linear-gradient(${a}, ${n}, ${r})`;return{background:s,[yg]:s}},cX=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:s,strokeLinecap:u="round",children:f,trailColor:d=null,percentPosition:h,success:g}=e,{align:v,type:b}=h,x=s&&typeof s!="string"?sX(s,n):{[yg]:s,background:s},C=u==="square"||u==="butt"?0:void 0,y=a??[-1,o||(a==="small"?6:8)],[w,$]=pv(y,"line",{strokeWidth:o}),E={backgroundColor:d||void 0,borderRadius:C},I=Object.assign(Object.assign({width:`${Nl(r)}%`,height:$,borderRadius:C},x),{[RT]:Nl(r)/100}),O=bg(e),R={width:`${Nl(O)}%`,height:$,borderRadius:C,backgroundColor:g==null?void 0:g.strokeColor},T={width:w<0?"100%":w},P=l.createElement("div",{className:`${t}-inner`,style:E},l.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${b}`),style:I},b==="inner"&&f),O!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:R})),N=b==="outer"&&v==="start",k=b==="outer"&&v==="end";return b==="outer"&&v==="center"?l.createElement("div",{className:`${t}-layout-bottom`},P,f):l.createElement("div",{className:`${t}-outer`,style:T},N&&f,P,k&&f)},uX=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:s,trailColor:u=null,prefixCls:f,children:d}=e,h=r(n*(a/100)),v=t??[t==="small"?2:14,o],[b,x]=pv(v,"step",{steps:n,strokeWidth:o}),C=b/n,y=Array.from({length:n});for(let w=0;w<n;w++){const $=Array.isArray(s)?s[w]:s;y[w]=l.createElement("div",{key:w,className:ce(`${f}-steps-item`,{[`${f}-steps-item-active`]:w<=h-1}),style:{backgroundColor:w<=h-1?$:u,width:C,height:x}})}return l.createElement("div",{className:`${f}-steps-outer`},y,d)};var dX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fX=["normal","exception","active","success"],mX=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:s,percent:u=0,size:f="default",showInfo:d=!0,type:h="line",status:g,format:v,style:b,percentPosition:x={}}=e,C=dX(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:w="outer"}=x,$=Array.isArray(s)?s[0]:s,E=typeof s=="string"||Array.isArray(s)?s:void 0,I=l.useMemo(()=>{if($){const U=typeof $=="string"?$:Object.values($)[0];return new Mn(U).isLight()}return!1},[s]),O=l.useMemo(()=>{var U,A;const K=bg(e);return parseInt(K!==void 0?(U=K??0)===null||U===void 0?void 0:U.toString():(A=u??0)===null||A===void 0?void 0:A.toString(),10)},[u,e.success,e.successPercent]),R=l.useMemo(()=>!fX.includes(g)&&O>=100?"success":g||"normal",[g,O]),{getPrefixCls:T,direction:P,progress:N}=l.useContext(Yt),k=T("progress",n),[z,V,B]=iX(k),L=h==="line",H=L&&!o,j=l.useMemo(()=>{if(!d)return null;const U=bg(e);let A;const K=v||(Y=>`${Y}%`),q=L&&I&&w==="inner";return w==="inner"||v||R!=="exception"&&R!=="success"?A=K(Nl(u),Nl(U)):R==="exception"?A=L?l.createElement(Jc,null):l.createElement(eu,null):R==="success"&&(A=L?l.createElement(Dg,null):l.createElement(ES,null)),l.createElement("span",{className:ce(`${k}-text`,{[`${k}-text-bright`]:q,[`${k}-text-${y}`]:H,[`${k}-text-${w}`]:H}),title:typeof A=="string"?A:void 0},A)},[d,u,O,R,h,k,v]);let D;h==="line"?D=o?l.createElement(uX,Object.assign({},e,{strokeColor:E,prefixCls:k,steps:typeof o=="object"?o.count:o}),j):l.createElement(cX,Object.assign({},e,{strokeColor:$,prefixCls:k,direction:P,percentPosition:{align:y,type:w}}),j):(h==="circle"||h==="dashboard")&&(D=l.createElement(JG,Object.assign({},e,{strokeColor:$,prefixCls:k,progressStatus:R}),j));const F=ce(k,`${k}-status-${R}`,{[`${k}-${h==="dashboard"&&"circle"||h}`]:h!=="line",[`${k}-inline-circle`]:h==="circle"&&pv(f,"circle")[0]<=20,[`${k}-line`]:H,[`${k}-line-align-${y}`]:H,[`${k}-line-position-${w}`]:H,[`${k}-steps`]:o,[`${k}-show-info`]:d,[`${k}-${f}`]:typeof f=="string",[`${k}-rtl`]:P==="rtl"},N==null?void 0:N.className,r,a,V,B);return z(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N==null?void 0:N.style),b),className:F,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100},tr(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});var hX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},gX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:hX}))},vX=l.forwardRef(gX),pX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},bX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:pX}))},yX=l.forwardRef(bX),xX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},SX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:xX}))},CX=l.forwardRef(SX),NT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},wX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:NT}))},$X=l.forwardRef(wX),EX={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"},_X=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:EX}))},OX=l.forwardRef(_X),IX={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"},RX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:IX}))},NX=l.forwardRef(RX),MX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},jX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:MX}))},TX=l.forwardRef(jX),DX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},PX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:DX}))},kX=l.forwardRef(PX),AX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},zX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:AX}))},MT=l.forwardRef(zX),LX={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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"},HX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:LX}))},BX=l.forwardRef(HX),FX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},VX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:FX}))},KX=l.forwardRef(VX),UX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},WX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:UX}))},qX=l.forwardRef(WX),YX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},GX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:YX}))},XX=l.forwardRef(GX),QX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ZX=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:QX}))},JX=l.forwardRef(ZX),eQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tQ=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:eQ}))},nQ=l.forwardRef(tQ),rQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},aQ={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"},iQ=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:aQ}))},oQ=l.forwardRef(iQ),lQ={icon:function(t,n){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:n}},{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:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{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"},sQ=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:lQ}))},cQ=l.forwardRef(sQ),uQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},dQ=function(t,n){return l.createElement(wn,Me({},t,{ref:n,icon:uQ}))},fQ=l.forwardRef(dQ),mQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},hQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},gQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},vQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},pQ={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"},bQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},yQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],jT=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,s=e.checked,u=e.defaultChecked,f=e.disabled,d=e.loadingIcon,h=e.checkedChildren,g=e.unCheckedChildren,v=e.onClick,b=e.onChange,x=e.onKeyDown,C=qt(e,yQ),y=Wn(!1,{value:s,defaultValue:u}),w=ue(y,2),$=w[0],E=w[1];function I(P,N){var k=$;return f||(k=P,E(k),b==null||b(k,N)),k}function O(P){P.which===It.LEFT?I(!1,P):P.which===It.RIGHT&&I(!0,P),x==null||x(P)}function R(P){var N=I(!$,P);v==null||v(N,P)}var T=ce(a,o,(n={},X(n,"".concat(a,"-checked"),$),X(n,"".concat(a,"-disabled"),f),n));return l.createElement("button",Me({},C,{type:"button",role:"switch","aria-checked":$,disabled:f,className:T,ref:t,onKeyDown:O,onClick:R}),d,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},h),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});jT.displayName="Switch";const xQ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:s,handleSizeSM:u,calc:f}=e,d=`${t}-inner`,h=ne(f(u).add(f(r).mul(2)).equal()),g=ne(f(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ne(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:o,[`${d}-checked, ${d}-unchecked`]:{minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${h} - ${g})`,marginInlineEnd:`calc(100% - ${h} + ${g})`},[`${d}-unchecked`]:{marginTop:f(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:f(f(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${h} + ${g})`,marginInlineEnd:`calc(-100% + ${h} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ne(f(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:f(e.marginXXS).div(2).equal(),marginInlineEnd:f(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:f(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:f(e.marginXXS).div(2).equal()}}}}}}},SQ=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},CQ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:s}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${ne(s(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},wQ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:s,calc:u}=e,f=`${t}-inner`,d=ne(u(s).add(u(r).mul(2)).equal()),h=ne(u(o).mul(2).equal());return{[t]:{[f]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${f}-checked, ${f}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${h})`,marginInlineEnd:`calc(100% - ${d} + ${h})`},[`${f}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${f}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${h})`,marginInlineEnd:`calc(-100% + ${d} - ${h})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},$Q=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ne(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Bo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},EQ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,s=r/2,u=2,f=o-u*2,d=s-u*2;return{trackHeight:o,trackHeightSM:s,trackMinWidth:f*2+u*4,trackMinWidthSM:d*2+u*2,trackPadding:u,handleBg:a,handleSize:f,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new Mn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:f/2,innerMaxMargin:f+u+u*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+u+u*2}},_Q=Kn("Switch",e=>{const t=yn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$Q(t),wQ(t),CQ(t),SQ(t),xQ(t)]},EQ);var OQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IQ=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:o,className:s,rootClassName:u,style:f,checked:d,value:h,defaultChecked:g,defaultValue:v,onChange:b}=e,x=OQ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,y]=Wn(!1,{value:d??h,defaultValue:g??v}),{getPrefixCls:w,direction:$,switch:E}=l.useContext(Yt),I=l.useContext(Oa),O=(a??I)||o,R=w("switch",n),T=l.createElement("div",{className:`${R}-handle`},o&&l.createElement(Fo,{className:`${R}-loading-icon`})),[P,N,k]=_Q(R),z=ua(r),V=ce(E==null?void 0:E.className,{[`${R}-small`]:z==="small",[`${R}-loading`]:o,[`${R}-rtl`]:$==="rtl"},s,u,N,k),B=Object.assign(Object.assign({},E==null?void 0:E.style),f),L=function(){y(arguments.length<=0?void 0:arguments[0]),b==null||b.apply(void 0,arguments)};return P(l.createElement(If,{component:"Switch"},l.createElement(jT,Object.assign({},x,{checked:C,onChange:L,prefixCls:R,className:V,style:B,disabled:O,ref:t,loadingIcon:T}))))}),TT=IQ;TT.__ANT_SWITCH=!0;var No={},Lf="rc-table-internal-hook";function fC(e){var t=l.createContext(void 0),n=function(a){var o=a.value,s=a.children,u=l.useRef(o);u.current=o;var f=l.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),d=ue(f,1),h=d[0];return hn(function(){Pi.unstable_batchedUpdates(function(){h.listeners.forEach(function(g){g(o)})})},[o]),l.createElement(t.Provider,{value:h},s)};return{Context:t,Provider:n,defaultValue:e}}function ba(e,t){var n=pn(typeof t=="function"?t:function(g){if(t===void 0)return g;if(!Array.isArray(t))return g[t];var v={};return t.forEach(function(b){v[b]=g[b]}),v}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,s=a.getValue,u=l.useRef();u.current=n(r?s():e==null?void 0:e.defaultValue);var f=l.useState({}),d=ue(f,2),h=d[1];return hn(function(){if(!r)return;function g(v){var b=n(v);no(u.current,b,!0)||h({})}return o.add(g),function(){o.delete(g)}},[r]),u.current}function RQ(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var s=ki(a),u=function(d,h){var g=s?{ref:h}:{},v=l.useRef(0),b=l.useRef(d),x=t();return x!==null?l.createElement(a,Me({},d,g)):((!o||o(b.current,d))&&(v.current+=1),b.current=d,l.createElement(e.Provider,{value:v.current},l.createElement(a,Me({},d,g))))};return s?l.forwardRef(u):u}function r(a,o){var s=ki(a),u=function(d,h){var g=s?{ref:h}:{};return t(),l.createElement(a,Me({},d,g))};return s?l.memo(l.forwardRef(u),o):l.memo(u,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var mC=RQ(),DT=mC.makeImmutable,uu=mC.responseImmutable,NQ=mC.useImmutableMark,ja=fC(),PT=l.createContext({renderWithProps:!1}),MQ="RC_TABLE_KEY";function jQ(e){return e==null?[]:Array.isArray(e)?e:[e]}function bv(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,s=a.dataIndex,u=o||jQ(s).join("-")||MQ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function dx(e){return e!=null}function TQ(e){return typeof e=="number"&&!Number.isNaN(e)}function DQ(e){return e&&_t(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function PQ(e,t,n,r,a,o){var s=l.useContext(PT),u=NQ(),f=_s(function(){if(dx(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],h=Ma(e,d),g=h,v=void 0;if(a){var b=a(h,e,n);DQ(b)?(g=b.children,v=b.props,s.renderWithProps=!0):g=b}return[g,v]},[u,e,r,t,a,n],function(d,h){if(o){var g=ue(d,2),v=g[1],b=ue(h,2),x=b[1];return o(x,v)}return s.renderWithProps?!0:!no(d,h,!0)});return f}function kQ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function AQ(e,t){return ba(ja,function(n){var r=kQ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zQ=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,s=n===!0?{showTitle:!0}:n;return s&&(s.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function LQ(e){var t,n,r,a,o,s,u,f,d=e.component,h=e.children,g=e.ellipsis,v=e.scope,b=e.prefixCls,x=e.className,C=e.align,y=e.record,w=e.render,$=e.dataIndex,E=e.renderIndex,I=e.shouldCellUpdate,O=e.index,R=e.rowType,T=e.colSpan,P=e.rowSpan,N=e.fixLeft,k=e.fixRight,z=e.firstFixLeft,V=e.lastFixLeft,B=e.firstFixRight,L=e.lastFixRight,H=e.appendNode,j=e.additionalProps,D=j===void 0?{}:j,F=e.isSticky,U="".concat(b,"-cell"),A=ba(ja,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=A.supportSticky,q=A.allColumnsFixedLeft,Y=A.rowHoverable,W=PQ(y,$,E,h,w,I),Q=ue(W,2),Z=Q[0],ae=Q[1],J={},se=typeof N=="number"&&K,he=typeof k=="number"&&K;se&&(J.position="sticky",J.left=N),he&&(J.position="sticky",J.right=k);var oe=(t=(n=(r=ae==null?void 0:ae.colSpan)!==null&&r!==void 0?r:D.colSpan)!==null&&n!==void 0?n:T)!==null&&t!==void 0?t:1,le=(a=(o=(s=ae==null?void 0:ae.rowSpan)!==null&&s!==void 0?s:D.rowSpan)!==null&&o!==void 0?o:P)!==null&&a!==void 0?a:1,ie=AQ(O,le),de=ue(ie,2),ge=de[0],me=de[1],xe=pn(function(Re){var ze;y&&me(O,O+le-1),D==null||(ze=D.onMouseEnter)===null||ze===void 0||ze.call(D,Re)}),Ee=pn(function(Re){var ze;y&&me(-1,-1),D==null||(ze=D.onMouseLeave)===null||ze===void 0||ze.call(D,Re)});if(oe===0||le===0)return null;var He=(u=D.title)!==null&&u!==void 0?u:zQ({rowType:R,ellipsis:g,children:Z}),je=ce(U,x,(f={},X(X(X(X(X(X(X(X(X(X(f,"".concat(U,"-fix-left"),se&&K),"".concat(U,"-fix-left-first"),z&&K),"".concat(U,"-fix-left-last"),V&&K),"".concat(U,"-fix-left-all"),V&&q&&K),"".concat(U,"-fix-right"),he&&K),"".concat(U,"-fix-right-first"),B&&K),"".concat(U,"-fix-right-last"),L&&K),"".concat(U,"-ellipsis"),g),"".concat(U,"-with-append"),H),"".concat(U,"-fix-sticky"),(se||he)&&F&&K),X(f,"".concat(U,"-row-hover"),!ae&&ge)),D.className,ae==null?void 0:ae.className),ve={};C&&(ve.textAlign=C);var $e=te(te(te(te({},ae==null?void 0:ae.style),J),ve),D.style),we=Z;return _t(we)==="object"&&!Array.isArray(we)&&!l.isValidElement(we)&&(we=null),g&&(V||B)&&(we=l.createElement("span",{className:"".concat(U,"-content")},we)),l.createElement(d,Me({},ae,D,{className:je,style:$e,title:He,scope:v,onMouseEnter:Y?xe:void 0,onMouseLeave:Y?Ee:void 0,colSpan:oe!==1?oe:null,rowSpan:le!==1?le:null}),H,we)}const du=l.memo(LQ);function hC(e,t,n,r,a){var o=n[e]||{},s=n[t]||{},u,f;o.fixed==="left"?u=r.left[a==="rtl"?t:e]:s.fixed==="right"&&(f=r.right[a==="rtl"?e:t]);var d=!1,h=!1,g=!1,v=!1,b=n[t+1],x=n[e-1],C=b&&!b.fixed||x&&!x.fixed||n.every(function(I){return I.fixed==="left"});if(a==="rtl"){if(u!==void 0){var y=x&&x.fixed==="left";v=!y&&C}else if(f!==void 0){var w=b&&b.fixed==="right";g=!w&&C}}else if(u!==void 0){var $=b&&b.fixed==="left";d=!$&&C}else if(f!==void 0){var E=x&&x.fixed==="right";h=!E&&C}return{fixLeft:u,fixRight:f,lastFixLeft:d,firstFixRight:h,lastFixRight:g,firstFixLeft:v,isSticky:r.isSticky}}var kT=l.createContext({});function HQ(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,s=e.rowSpan,u=e.align,f=ba(ja,["prefixCls","direction"]),d=f.prefixCls,h=f.direction,g=l.useContext(kT),v=g.scrollColumnIndex,b=g.stickyOffsets,x=g.flattenColumns,C=n+o-1,y=C+1===v?o+1:o,w=hC(n,n+y-1,x,b,h);return l.createElement(du,Me({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:y,rowSpan:s,render:function(){return r}},w))}var BQ=["children"];function FQ(e){var t=e.children,n=qt(e,BQ);return l.createElement("tr",n,t)}function yv(e){var t=e.children;return t}yv.Row=FQ;yv.Cell=HQ;function VQ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=ba(ja,"prefixCls"),o=r.length-1,s=r[o],u=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?o:null}},[s,r,o,n]);return l.createElement(kT.Provider,{value:u},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const ph=uu(VQ);var AT=yv;function KQ(e){return null}function UQ(e){return null}function zT(e,t,n,r,a,o,s){e.push({record:t,indent:n,index:s});var u=o(t),f=a==null?void 0:a.has(u);if(t&&Array.isArray(t[r])&&f)for(var d=0;d<t[r].length;d+=1)zT(e,t[r][d],n+1,r,a,o,d)}function LT(e,t,n,r){var a=l.useMemo(function(){if(n!=null&&n.size){for(var o=[],s=0;s<(e==null?void 0:e.length);s+=1){var u=e[s];zT(o,u,0,t,n,r,s)}return o}return e==null?void 0:e.map(function(f,d){return{record:f,indent:0,index:d}})},[e,t,n,r]);return a}function HT(e,t,n,r){var a=ba(ja,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=a.flattenColumns,s=a.expandableType,u=a.expandedKeys,f=a.childrenColumnName,d=a.onTriggerExpand,h=a.rowExpandable,g=a.onRow,v=a.expandRowByClick,b=a.rowClassName,x=s==="nest",C=s==="row"&&(!h||h(e)),y=C||x,w=u&&u.has(t),$=f&&e&&e[f],E=pn(d),I=g==null?void 0:g(e,n),O=I==null?void 0:I.onClick,R=function(k){v&&y&&d(e,k);for(var z=arguments.length,V=new Array(z>1?z-1:0),B=1;B<z;B++)V[B-1]=arguments[B];O==null||O.apply(void 0,[k].concat(V))},T;typeof b=="string"?T=b:typeof b=="function"&&(T=b(e,n,r));var P=bv(o);return te(te({},a),{},{columnsKey:P,nestExpandable:x,expanded:w,hasNestChildren:$,record:e,onTriggerExpand:E,rowSupportExpand:C,expandable:y,rowProps:te(te({},I),{},{className:ce(T,I==null?void 0:I.className),onClick:R})})}function BT(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,s=e.expanded,u=e.colSpan,f=e.isEmpty,d=ba(ja,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),h=d.scrollbarSize,g=d.fixHeader,v=d.fixColumn,b=d.componentWidth,x=d.horizonScroll,C=n;return(f?x&&b:v)&&(C=l.createElement("div",{style:{width:b-(g&&!f?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},C)),l.createElement(r,{className:o,style:{display:s?null:"none"}},l.createElement(du,{component:a,prefixCls:t,colSpan:u},C))}function WQ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,o=e.expandable,s="".concat(t,"-row-expand-icon");if(!o)return l.createElement("span",{className:ce(s,"".concat(t,"-row-spaced"))});var u=function(d){r(n,d),d.stopPropagation()};return l.createElement("span",{className:ce(s,X(X({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function qQ(e,t,n){var r=[];function a(o){(o||[]).forEach(function(s,u){r.push(t(s,u)),a(s[n])})}return a(e),r}function FT(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function VT(e,t,n,r,a){var o=e.record,s=e.prefixCls,u=e.columnsKey,f=e.fixedInfoList,d=e.expandIconColumnIndex,h=e.nestExpandable,g=e.indentSize,v=e.expandIcon,b=e.expanded,x=e.hasNestChildren,C=e.onTriggerExpand,y=u[n],w=f[n],$;n===(d||0)&&h&&($=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(g*r,"px")},className:"".concat(s,"-row-indent indent-level-").concat(r)}),v({prefixCls:s,expanded:b,expandable:x,record:o,onExpand:C})));var E;return t.onCell&&(E=t.onCell(o,a)),{key:y,fixedInfo:w,appendCellNode:$,additionalCellProps:E||{}}}function YQ(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,s=e.rowKey,u=e.indent,f=u===void 0?0:u,d=e.rowComponent,h=e.cellComponent,g=e.scopeCellComponent,v=HT(r,s,a,f),b=v.prefixCls,x=v.flattenColumns,C=v.expandedRowClassName,y=v.expandedRowRender,w=v.rowProps,$=v.expanded,E=v.rowSupportExpand,I=l.useRef(!1);I.current||(I.current=$);var O=FT(C,r,a,f),R=l.createElement(d,Me({},w,{"data-row-key":s,className:ce(t,"".concat(b,"-row"),"".concat(b,"-row-level-").concat(f),w==null?void 0:w.className,X({},O,f>=1)),style:te(te({},n),w==null?void 0:w.style)}),x.map(function(N,k){var z=N.render,V=N.dataIndex,B=N.className,L=VT(v,N,k,f,a),H=L.key,j=L.fixedInfo,D=L.appendCellNode,F=L.additionalCellProps;return l.createElement(du,Me({className:B,ellipsis:N.ellipsis,align:N.align,scope:N.rowScope,component:N.rowScope?g:h,prefixCls:b,key:H,record:r,index:a,renderIndex:o,dataIndex:V,render:z,shouldCellUpdate:N.shouldCellUpdate},j,{appendNode:D,additionalProps:F}))})),T;if(E&&(I.current||$)){var P=y(r,a,f+1,$);T=l.createElement(BT,{expanded:$,className:ce("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),O),prefixCls:b,component:d,cellComponent:h,colSpan:x.length,isEmpty:!1},P)}return l.createElement(l.Fragment,null,R,T)}const GQ=uu(YQ);function XQ(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(ga,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function QQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(ga.Collection,{onBatchResize:function(o){o.forEach(function(s){var u=s.data,f=s.size;r(u,f.offsetWidth)})}},n.map(function(a){return l.createElement(XQ,{key:a,columnKey:a,onColumnResize:r})})))}function ZQ(e){var t=e.data,n=e.measureColumnWidth,r=ba(ja,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,s=r.onColumnResize,u=r.flattenColumns,f=r.getRowKey,d=r.expandedKeys,h=r.childrenColumnName,g=r.emptyNode,v=LT(t,h,d,f),b=l.useRef({renderWithProps:!1}),x=o(["body","wrapper"],"tbody"),C=o(["body","row"],"tr"),y=o(["body","cell"],"td"),w=o(["body","cell"],"th"),$;t.length?$=v.map(function(I,O){var R=I.record,T=I.indent,P=I.index,N=f(R,O);return l.createElement(GQ,{key:N,rowKey:N,record:R,index:O,renderIndex:P,rowComponent:C,cellComponent:y,scopeCellComponent:w,indent:T})}):$=l.createElement(BT,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:C,cellComponent:y,colSpan:u.length,isEmpty:!0},g);var E=bv(u);return l.createElement(PT.Provider,{value:b.current},l.createElement(x,{className:"".concat(a,"-tbody")},n&&l.createElement(QQ,{prefixCls:a,columnsKey:E,onColumnResize:s}),$))}const JQ=uu(ZQ);var eZ=["expandable"],Wd="RC_TABLE_INTERNAL_COL_DEFINE";function tZ(e){var t=e.expandable,n=qt(e,eZ),r;return"expandable"in e?r=te(te({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var nZ=["columnType"];function KT(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=ba(ja,["tableLayout"]),o=a.tableLayout,s=[],u=r||n.length,f=!1,d=u-1;d>=0;d-=1){var h=t[d],g=n&&n[d],v=void 0,b=void 0;if(g&&(v=g[Wd],o==="auto"&&(b=g.minWidth)),h||b||v||f){var x=v||{};x.columnType;var C=qt(x,nZ);s.unshift(l.createElement("col",Me({key:d,style:{width:h,minWidth:b}},C))),f=!0}}return l.createElement("colgroup",null,s)}var rZ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function aZ(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(a!==void 0)n[r]=a;else return null}return n},[e.join("_"),t])}var iZ=l.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,o=e.flattenColumns,s=e.colWidths,u=e.columCount,f=e.stickyOffsets,d=e.direction,h=e.fixHeader,g=e.stickyTopOffset,v=e.stickyBottomOffset,b=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,y=e.children,w=qt(e,rZ),$=ba(ja,["prefixCls","scrollbarSize","isSticky","getComponent"]),E=$.prefixCls,I=$.scrollbarSize,O=$.isSticky,R=$.getComponent,T=R(["header","table"],"table"),P=O&&!h?0:I,N=l.useRef(null),k=l.useCallback(function(F){Jd(t,F),Jd(N,F)},[]);l.useEffect(function(){var F;function U(A){var K=A,q=K.currentTarget,Y=K.deltaX;Y&&(x({currentTarget:q,scrollLeft:q.scrollLeft+Y}),A.preventDefault())}return(F=N.current)===null||F===void 0||F.addEventListener("wheel",U,{passive:!1}),function(){var A;(A=N.current)===null||A===void 0||A.removeEventListener("wheel",U)}},[]);var z=l.useMemo(function(){return o.every(function(F){return F.width})},[o]),V=o[o.length-1],B={fixed:V?V.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},L=l.useMemo(function(){return P?[].concat(Ae(a),[B]):a},[P,a]),H=l.useMemo(function(){return P?[].concat(Ae(o),[B]):o},[P,o]),j=l.useMemo(function(){var F=f.right,U=f.left;return te(te({},f),{},{left:d==="rtl"?[].concat(Ae(U.map(function(A){return A+P})),[0]):U,right:d==="rtl"?F:[].concat(Ae(F.map(function(A){return A+P})),[0]),isSticky:O})},[P,f,O]),D=aZ(s,u);return l.createElement("div",{style:te({overflow:"hidden"},O?{top:g,bottom:v}:{}),ref:k,className:ce(n,X({},b,!!b))},l.createElement(T,{style:{tableLayout:"fixed",visibility:r||D?null:"hidden"}},(!r||!C||z)&&l.createElement(KT,{colWidths:D?[].concat(Ae(D),[P]):[],columCount:u+1,columns:H}),y(te(te({},w),{},{stickyOffsets:j,columns:L,flattenColumns:H}))))});const qO=l.memo(iZ);var oZ=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,o=t.rowComponent,s=t.cellComponent,u=t.onHeaderRow,f=t.index,d=ba(ja,["prefixCls","direction"]),h=d.prefixCls,g=d.direction,v;u&&(v=u(n.map(function(x){return x.column}),f));var b=bv(n.map(function(x){return x.column}));return l.createElement(o,v,n.map(function(x,C){var y=x.column,w=hC(x.colStart,x.colEnd,a,r,g),$;return y&&y.onHeaderCell&&($=x.column.onHeaderCell(y)),l.createElement(du,Me({},x,{scope:y.title?x.colSpan>1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:s,prefixCls:h,key:b[C]},w,{additionalProps:$,rowType:"header"}))}))};function lZ(e){var t=[];function n(s,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[f]=t[f]||[];var d=u,h=s.filter(Boolean).map(function(g){var v={key:g.key,className:g.className||"",children:g.title,column:g,colStart:d},b=1,x=g.children;return x&&x.length>0&&(b=n(x,d,f+1).reduce(function(C,y){return C+y},0),v.hasSubColumns=!0),"colSpan"in g&&(b=g.colSpan),"rowSpan"in g&&(v.rowSpan=g.rowSpan),v.colSpan=b,v.colEnd=v.colStart+b-1,t[f].push(v),d+=b,b});return h}n(e,0);for(var r=t.length,a=function(u){t[u].forEach(function(f){!("rowSpan"in f)&&!f.hasSubColumns&&(f.rowSpan=r-u)})},o=0;o<r;o+=1)a(o);return t}var sZ=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,o=t.onHeaderRow,s=ba(ja,["prefixCls","getComponent"]),u=s.prefixCls,f=s.getComponent,d=l.useMemo(function(){return lZ(r)},[r]),h=f(["header","wrapper"],"thead"),g=f(["header","row"],"tr"),v=f(["header","cell"],"th");return l.createElement(h,{className:"".concat(u,"-thead")},d.map(function(b,x){var C=l.createElement(oZ,{key:x,flattenColumns:a,cells:b,stickyOffsets:n,rowComponent:g,cellComponent:v,onHeaderRow:o,index:x});return C}))};const YO=uu(sZ);function GO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function cZ(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(v){var b=GO(t,v.width);b?r+=b:a+=1});var o=Math.max(t,n),s=Math.max(o-r,a),u=a,f=s/a,d=0,h=e.map(function(v){var b=te({},v),x=GO(t,b.width);if(x)b.width=x;else{var C=Math.floor(f);b.width=u===1?s:C,s-=C,u-=1}return d+=b.width,b});if(d<o){var g=o/d;s=o,h.forEach(function(v,b){var x=Math.floor(v.width*g);v.width=b===h.length-1?s:x,s-=x})}return[h,Math.max(d,o)]}return[e,t]},[e,t,n])}var uZ=["children"],dZ=["fixed"];function gC(e){return _a(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,o=qt(r,uZ),s=te({key:n},o);return a&&(s.children=gC(a)),s})}function UT(e){return e.filter(function(t){return t&&_t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?te(te({},t),{},{children:UT(n)}):t})}function fx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&_t(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,s=o===!0?"left":o,u="".concat(t,"-").concat(a),f=r.children;return f&&f.length>0?[].concat(Ae(n),Ae(fx(f,u).map(function(d){return te({fixed:s},d)}))):[].concat(Ae(n),[te(te({key:u},r),{},{fixed:s})])},[])}function fZ(e){return e.map(function(t){var n=t.fixed,r=qt(t,dZ),a=n;return n==="left"?a="right":n==="right"&&(a="left"),te({fixed:a},r)})}function mZ(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,s=e.expandedKeys,u=e.columnTitle,f=e.getRowKey,d=e.onTriggerExpand,h=e.expandIcon,g=e.rowExpandable,v=e.expandIconColumnIndex,b=e.direction,x=e.expandRowByClick,C=e.columnWidth,y=e.fixed,w=e.scrollWidth,$=e.clientWidth,E=l.useMemo(function(){var V=r||gC(a)||[];return UT(V.slice())},[r,a]),I=l.useMemo(function(){if(o){var V=E.slice();if(!V.includes(No)){var B=v||0;B>=0&&(B||y==="left"||!y)&&V.splice(B,0,No),y==="right"&&V.splice(E.length,0,No)}var L=V.indexOf(No);V=V.filter(function(F,U){return F!==No||U===L});var H=E[L],j;y?j=y:j=H?H.fixed:null;var D=X(X(X(X(X(X({},Wd,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",j),"className","".concat(n,"-row-expand-icon-cell")),"width",C),"render",function(U,A,K){var q=f(A,K),Y=s.has(q),W=g?g(A):!0,Q=h({prefixCls:n,expanded:Y,expandable:W,record:A,onExpand:d});return x?l.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},Q):Q});return V.map(function(F){return F===No?D:F})}return E.filter(function(F){return F!==No})},[o,E,f,s,h,b]),O=l.useMemo(function(){var V=I;return t&&(V=t(V)),V.length||(V=[{render:function(){return null}}]),V},[t,I,b]),R=l.useMemo(function(){return b==="rtl"?fZ(fx(O)):fx(O)},[O,b,w]),T=l.useMemo(function(){for(var V=-1,B=R.length-1;B>=0;B-=1){var L=R[B].fixed;if(L==="left"||L===!0){V=B;break}}if(V>=0)for(var H=0;H<=V;H+=1){var j=R[H].fixed;if(j!=="left"&&j!==!0)return!0}var D=R.findIndex(function(A){var K=A.fixed;return K==="right"});if(D>=0)for(var F=D;F<R.length;F+=1){var U=R[F].fixed;if(U!=="right")return!0}return!1},[R]),P=cZ(R,w,$),N=ue(P,2),k=N[0],z=N[1];return[O,k,z,T]}function hZ(e,t,n){var r=tZ(e),a=r.expandIcon,o=r.expandedRowKeys,s=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,f=r.expandedRowRender,d=r.onExpand,h=r.onExpandedRowsChange,g=r.childrenColumnName,v=a||WQ,b=g||"children",x=l.useMemo(function(){return f?"row":e.expandable&&e.internalHooks===Lf&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(O){return O&&_t(O)==="object"&&O[b]})?"nest":!1},[!!f,t]),C=l.useState(function(){return s||(u?qQ(t,n,b):[])}),y=ue(C,2),w=y[0],$=y[1],E=l.useMemo(function(){return new Set(o||w||[])},[o,w]),I=l.useCallback(function(O){var R=n(O,t.indexOf(O)),T,P=E.has(R);P?(E.delete(R),T=Ae(E)):T=[].concat(Ae(E),[R]),$(T),d&&d(!P,O),h&&h(T)},[n,E,t,d,h]);return[r,x,E,v,b,I]}function gZ(e,t,n){var r=e.map(function(a,o){return hC(o,o,e,t,n)});return _s(function(){return r},[r],function(a,o){return!no(a,o)})}function WT(e){var t=l.useRef(e),n=l.useState({}),r=ue(n,2),a=r[1],o=l.useRef(null),s=l.useRef([]);function u(f){s.current.push(f);var d=Promise.resolve();o.current=d,d.then(function(){if(o.current===d){var h=s.current,g=t.current;s.current=[],h.forEach(function(v){t.current=v(t.current)}),o.current=null,g!==t.current&&a({})}})}return l.useEffect(function(){return function(){o.current=null}},[]),[t.current,u]}function vZ(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function a(s){t.current=s,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return l.useEffect(function(){return r},[]),[a,o]}function pZ(){var e=l.useState(-1),t=ue(e,2),n=t[0],r=t[1],a=l.useState(-1),o=ue(a,2),s=o[0],u=o[1],f=l.useCallback(function(d,h){r(d),u(h)},[]);return[n,s,f]}var XO=va()?window:null;function bZ(e,t){var n=_t(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,o=n.offsetSummary,s=o===void 0?0:o,u=n.offsetScroll,f=u===void 0?0:u,d=n.getContainer,h=d===void 0?function(){return XO}:d,g=h()||XO,v=!!e;return l.useMemo(function(){return{isSticky:v,stickyClassName:v?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:s,offsetScroll:f,container:g}},[v,f,a,s,t,g])}function yZ(e,t,n){var r=l.useMemo(function(){var a=t.length,o=function(d,h,g){for(var v=[],b=0,x=d;x!==h;x+=g)v.push(b),t[x].fixed&&(b+=e[x]||0);return v},s=o(0,a,1),u=o(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:s}:{left:s,right:u}},[e,t,n]);return r}function QO(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function ZO(e){var t=$f(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var xZ=function(t,n){var r,a,o=t.scrollBodyRef,s=t.onScroll,u=t.offsetScroll,f=t.container,d=t.direction,h=ba(ja,"prefixCls"),g=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,v=((a=o.current)===null||a===void 0?void 0:a.clientWidth)||0,b=g&&v*(v/g),x=l.useRef(),C=WT({scrollLeft:0,isHiddenScrollBar:!0}),y=ue(C,2),w=y[0],$=y[1],E=l.useRef({delta:0,x:0}),I=l.useState(!1),O=ue(I,2),R=O[0],T=O[1],P=l.useRef(null);l.useEffect(function(){return function(){un.cancel(P.current)}},[]);var N=function(){T(!1)},k=function(H){H.persist(),E.current.delta=H.pageX-w.scrollLeft,E.current.x=0,T(!0),H.preventDefault()},z=function(H){var j,D=H||((j=window)===null||j===void 0?void 0:j.event),F=D.buttons;if(!R||F===0){R&&T(!1);return}var U=E.current.x+H.pageX-E.current.x-E.current.delta,A=d==="rtl";U=Math.max(A?b-v:0,Math.min(A?0:v-b,U));var K=!A||Math.abs(U)+Math.abs(b)<v;K&&(s({scrollLeft:U/v*(g+2)}),E.current.x=H.pageX)},V=function(){un.cancel(P.current),P.current=un(function(){if(o.current){var H=ZO(o.current).top,j=H+o.current.offsetHeight,D=f===window?document.documentElement.scrollTop+window.innerHeight:ZO(f).top+f.clientHeight;j-V_()<=D||H>=D-u?$(function(F){return te(te({},F),{},{isHiddenScrollBar:!0})}):$(function(F){return te(te({},F),{},{isHiddenScrollBar:!1})})}})},B=function(H){$(function(j){return te(te({},j),{},{scrollLeft:H/g*v||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:B,checkScrollBarVisible:V}}),l.useEffect(function(){var L=jO(document.body,"mouseup",N,!1),H=jO(document.body,"mousemove",z,!1);return V(),function(){L.remove(),H.remove()}},[b,R]),l.useEffect(function(){if(o.current){for(var L=[],H=$f(o.current);H;)L.push(H),H=H.parentElement;return L.forEach(function(j){return j.addEventListener("scroll",V,!1)}),window.addEventListener("resize",V,!1),window.addEventListener("scroll",V,!1),f.addEventListener("scroll",V,!1),function(){L.forEach(function(j){return j.removeEventListener("scroll",V)}),window.removeEventListener("resize",V),window.removeEventListener("scroll",V),f.removeEventListener("scroll",V)}}},[f]),l.useEffect(function(){w.isHiddenScrollBar||$(function(L){var H=o.current;return H?te(te({},L),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):L})},[w.isHiddenScrollBar]),g<=v||!b||w.isHiddenScrollBar?null:l.createElement("div",{style:{height:V_(),width:v,bottom:u},className:"".concat(h,"-sticky-scroll")},l.createElement("div",{onMouseDown:k,ref:x,className:ce("".concat(h,"-sticky-scroll-bar"),X({},"".concat(h,"-sticky-scroll-bar-active"),R)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const SZ=l.forwardRef(xZ);var qT="rc-table",CZ=[],wZ={};function $Z(){return"No Data"}function EZ(e,t){var n=te({rowKey:"key",prefixCls:qT,emptyText:$Z},e),r=n.prefixCls,a=n.className,o=n.rowClassName,s=n.style,u=n.data,f=n.rowKey,d=n.scroll,h=n.tableLayout,g=n.direction,v=n.title,b=n.footer,x=n.summary,C=n.caption,y=n.id,w=n.showHeader,$=n.components,E=n.emptyText,I=n.onRow,O=n.onHeaderRow,R=n.onScroll,T=n.internalHooks,P=n.transformColumns,N=n.internalRefs,k=n.tailor,z=n.getContainerWidth,V=n.sticky,B=n.rowHoverable,L=B===void 0?!0:B,H=u||CZ,j=!!H.length,D=T===Lf,F=l.useCallback(function(St,ut){return Ma($,St)||ut},[$]),U=l.useMemo(function(){return typeof f=="function"?f:function(St){var ut=St&&St[f];return ut}},[f]),A=F(["body"]),K=pZ(),q=ue(K,3),Y=q[0],W=q[1],Q=q[2],Z=hZ(n,H,U),ae=ue(Z,6),J=ae[0],se=ae[1],he=ae[2],oe=ae[3],le=ae[4],ie=ae[5],de=d==null?void 0:d.x,ge=l.useState(0),me=ue(ge,2),xe=me[0],Ee=me[1],He=mZ(te(te(te({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:he,getRowKey:U,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:J.expandIconColumnIndex,direction:g,scrollWidth:D&&k&&typeof de=="number"?de:null,clientWidth:xe}),D?P:null),je=ue(He,4),ve=je[0],$e=je[1],we=je[2],Re=je[3],ze=we??de,De=l.useMemo(function(){return{columns:ve,flattenColumns:$e}},[ve,$e]),Ye=l.useRef(),Xe=l.useRef(),Le=l.useRef(),Ke=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ye.current,scrollTo:function(ut){var en;if(Le.current instanceof HTMLElement){var sn=ut.index,xn=ut.top,Gr=ut.key;if(TQ(xn)){var Hr;(Hr=Le.current)===null||Hr===void 0||Hr.scrollTo({top:xn})}else{var Rr,na=Gr??U(H[sn]);(Rr=Le.current.querySelector('[data-row-key="'.concat(na,'"]')))===null||Rr===void 0||Rr.scrollIntoView()}}else(en=Le.current)!==null&&en!==void 0&&en.scrollTo&&Le.current.scrollTo(ut)}}});var Fe=l.useRef(),Ie=l.useState(!1),Ue=ue(Ie,2),ye=Ue[0],Ce=Ue[1],_e=l.useState(!1),be=ue(_e,2),ke=be[0],st=be[1],Dt=WT(new Map),Wt=ue(Dt,2),Je=Wt[0],ct=Wt[1],$t=bv($e),ot=$t.map(function(St){return Je.get(St)}),gt=l.useMemo(function(){return ot},[ot.join("_")]),dt=yZ(gt,$e,g),lt=d&&dx(d.y),nt=d&&dx(ze)||!!J.fixed,Pt=nt&&$e.some(function(St){var ut=St.fixed;return ut}),bt=l.useRef(),Ge=bZ(V,r),tt=Ge.isSticky,Mt=Ge.offsetHeader,At=Ge.offsetSummary,Ot=Ge.offsetScroll,Ht=Ge.stickyClassName,wt=Ge.container,xt=l.useMemo(function(){return x==null?void 0:x(H)},[x,H]),Tt=(lt||tt)&&l.isValidElement(xt)&&xt.type===yv&&xt.props.fixed,Vt,Jt,on;lt&&(Jt={overflowY:j?"scroll":"auto",maxHeight:d.y}),nt&&(Vt={overflowX:"auto"},lt||(Jt={overflowY:"hidden"}),on={width:ze===!0?"auto":ze,minWidth:"100%"});var Ut=l.useCallback(function(St,ut){nu(Ye.current)&&ct(function(en){if(en.get(St)!==ut){var sn=new Map(en);return sn.set(St,ut),sn}return en})},[]),gn=vZ(),$n=ue(gn,2),En=$n[0],at=$n[1];function Rt(St,ut){ut&&(typeof ut=="function"?ut(St):ut.scrollLeft!==St&&(ut.scrollLeft=St,ut.scrollLeft!==St&&setTimeout(function(){ut.scrollLeft=St},0)))}var mt=pn(function(St){var ut=St.currentTarget,en=St.scrollLeft,sn=g==="rtl",xn=typeof en=="number"?en:ut.scrollLeft,Gr=ut||wZ;if(!at()||at()===Gr){var Hr;En(Gr),Rt(xn,Xe.current),Rt(xn,Le.current),Rt(xn,Fe.current),Rt(xn,(Hr=bt.current)===null||Hr===void 0?void 0:Hr.setScrollLeft)}var Rr=ut||Xe.current;if(Rr){var na=D&&k&&typeof ze=="number"?ze:Rr.scrollWidth,$i=Rr.clientWidth;if(na===$i){Ce(!1),st(!1);return}sn?(Ce(-xn<na-$i),st(-xn>0)):(Ce(xn>0),st(xn<na-$i))}}),it=pn(function(St){mt(St),R==null||R(St)}),Bt=function(){if(nt&&Le.current){var ut;mt({currentTarget:$f(Le.current),scrollLeft:(ut=Le.current)===null||ut===void 0?void 0:ut.scrollLeft})}else Ce(!1),st(!1)},tn=function(ut){var en,sn=ut.width;(en=bt.current)===null||en===void 0||en.checkScrollBarVisible();var xn=Ye.current?Ye.current.offsetWidth:sn;D&&z&&Ye.current&&(xn=z(Ye.current,xn)||xn),xn!==xe&&(Bt(),Ee(xn))},bn=l.useRef(!1);l.useEffect(function(){bn.current&&Bt()},[nt,u,ve.length]),l.useEffect(function(){bn.current=!0},[]);var On=l.useState(0),kt=ue(On,2),Ft=kt[0],nn=kt[1],Nn=l.useState(!0),hr=ue(Nn,2),Ur=hr[0],gr=hr[1];l.useEffect(function(){(!k||!D)&&(Le.current instanceof Element?nn(k0(Le.current).width):nn(k0(Ke.current).width)),gr(q0("position","sticky"))},[]),l.useEffect(function(){D&&N&&(N.body.current=Le.current)});var Bn=l.useCallback(function(St){return l.createElement(l.Fragment,null,l.createElement(YO,St),Tt==="top"&&l.createElement(ph,St,xt))},[Tt,xt]),Wr=l.useCallback(function(St){return l.createElement(ph,St,xt)},[xt]),qr=F(["table"],"table"),ir=l.useMemo(function(){return h||(Pt?ze==="max-content"?"auto":"fixed":lt||tt||$e.some(function(St){var ut=St.ellipsis;return ut})?"fixed":"auto")},[lt,Pt,$e,h,tt]),Yr,Sn={colWidths:gt,columCount:$e.length,stickyOffsets:dt,onHeaderRow:O,fixHeader:lt,scroll:d},zt=l.useMemo(function(){return j?null:typeof E=="function"?E():E},[j,E]),vt=l.createElement(JQ,{data:H,measureColumnWidth:lt||nt||tt}),_n=l.createElement(KT,{colWidths:$e.map(function(St){var ut=St.width;return ut}),columns:$e}),jt=C!=null?l.createElement("caption",{className:"".concat(r,"-caption")},C):void 0,Nt=sa(n,{data:!0}),dn=sa(n,{aria:!0});if(lt||tt){var Yn;typeof A=="function"?(Yn=A(H,{scrollbarSize:Ft,ref:Le,onScroll:mt}),Sn.colWidths=$e.map(function(St,ut){var en=St.width,sn=ut===$e.length-1?en-Ft:en;return typeof sn=="number"&&!Number.isNaN(sn)?sn:0})):Yn=l.createElement("div",{style:te(te({},Vt),Jt),onScroll:it,ref:Le,className:ce("".concat(r,"-body"))},l.createElement(qr,Me({style:te(te({},on),{},{tableLayout:ir})},dn),jt,_n,vt,!Tt&&xt&&l.createElement(ph,{stickyOffsets:dt,flattenColumns:$e},xt)));var or=te(te(te({noData:!H.length,maxContentScroll:nt&&ze==="max-content"},Sn),De),{},{direction:g,stickyClassName:Ht,onScroll:mt});Yr=l.createElement(l.Fragment,null,w!==!1&&l.createElement(qO,Me({},or,{stickyTopOffset:Mt,className:"".concat(r,"-header"),ref:Xe}),Bn),Yn,Tt&&Tt!=="top"&&l.createElement(qO,Me({},or,{stickyBottomOffset:At,className:"".concat(r,"-summary"),ref:Fe}),Wr),tt&&Le.current&&Le.current instanceof Element&&l.createElement(SZ,{ref:bt,offsetScroll:Ot,scrollBodyRef:Le,onScroll:mt,container:wt,direction:g}))}else Yr=l.createElement("div",{style:te(te({},Vt),Jt),className:ce("".concat(r,"-content")),onScroll:mt,ref:Le},l.createElement(qr,Me({style:te(te({},on),{},{tableLayout:ir})},dn),jt,_n,w!==!1&&l.createElement(YO,Me({},Sn,De)),vt,xt&&l.createElement(ph,{stickyOffsets:dt,flattenColumns:$e},xt)));var lr=l.createElement("div",Me({className:ce(r,a,X(X(X(X(X(X(X(X(X(X({},"".concat(r,"-rtl"),g==="rtl"),"".concat(r,"-ping-left"),ye),"".concat(r,"-ping-right"),ke),"".concat(r,"-layout-fixed"),h==="fixed"),"".concat(r,"-fixed-header"),lt),"".concat(r,"-fixed-column"),Pt),"".concat(r,"-fixed-column-gapped"),Pt&&Re),"".concat(r,"-scroll-horizontal"),nt),"".concat(r,"-has-fix-left"),$e[0]&&$e[0].fixed),"".concat(r,"-has-fix-right"),$e[$e.length-1]&&$e[$e.length-1].fixed==="right")),style:s,id:y,ref:Ye},Nt),v&&l.createElement(QO,{className:"".concat(r,"-title")},v(H)),l.createElement("div",{ref:Ke,className:"".concat(r,"-container")},Yr),b&&l.createElement(QO,{className:"".concat(r,"-footer")},b(H)));nt&&(lr=l.createElement(ga,{onResize:tn},lr));var Ir=gZ($e,dt,g),Mr=l.useMemo(function(){return{scrollX:ze,prefixCls:r,getComponent:F,scrollbarSize:Ft,direction:g,fixedInfoList:Ir,isSticky:tt,supportSticky:Ur,componentWidth:xe,fixHeader:lt,fixColumn:Pt,horizonScroll:nt,tableLayout:ir,rowClassName:o,expandedRowClassName:J.expandedRowClassName,expandIcon:oe,expandableType:se,expandRowByClick:J.expandRowByClick,expandedRowRender:J.expandedRowRender,onTriggerExpand:ie,expandIconColumnIndex:J.expandIconColumnIndex,indentSize:J.indentSize,allColumnsFixedLeft:$e.every(function(St){return St.fixed==="left"}),emptyNode:zt,columns:ve,flattenColumns:$e,onColumnResize:Ut,hoverStartRow:Y,hoverEndRow:W,onHover:Q,rowExpandable:J.rowExpandable,onRow:I,getRowKey:U,expandedKeys:he,childrenColumnName:le,rowHoverable:L}},[ze,r,F,Ft,g,Ir,tt,Ur,xe,lt,Pt,nt,ir,o,J.expandedRowClassName,oe,se,J.expandRowByClick,J.expandedRowRender,ie,J.expandIconColumnIndex,J.indentSize,zt,ve,$e,Ut,Y,W,Q,J.rowExpandable,I,U,he,le,L]);return l.createElement(ja.Provider,{value:Mr},lr)}var _Z=l.forwardRef(EZ);function YT(e){return DT(_Z,e)}var fu=YT();fu.EXPAND_COLUMN=No;fu.INTERNAL_HOOKS=Lf;fu.Column=KQ;fu.ColumnGroup=UQ;fu.Summary=AT;var vC=fC(null),GT=fC(null);function OZ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function IZ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,o=e.index,s=e.component,u=e.renderIndex,f=e.record,d=e.style,h=e.className,g=e.inverse,v=e.getHeight,b=n.render,x=n.dataIndex,C=n.className,y=n.width,w=ba(GT,["columnsOffset"]),$=w.columnsOffset,E=VT(t,n,r,a,o),I=E.key,O=E.fixedInfo,R=E.appendCellNode,T=E.additionalCellProps,P=T.style,N=T.colSpan,k=N===void 0?1:N,z=T.rowSpan,V=z===void 0?1:z,B=r-1,L=OZ(B,k,$),H=k>1?y-L:0,j=te(te(te({},P),d),{},{flex:"0 0 ".concat(L,"px"),width:"".concat(L,"px"),marginRight:H,pointerEvents:"auto"}),D=l.useMemo(function(){return g?V<=1:k===0||V===0||V>1},[V,k,g]);D?j.visibility="hidden":g&&(j.height=v==null?void 0:v(V));var F=D?function(){return null}:b,U={};return(V===0||k===0)&&(U.rowSpan=1,U.colSpan=1),l.createElement(du,Me({className:ce(C,h),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:I,record:f,index:o,renderIndex:u,dataIndex:x,render:F,shouldCellUpdate:n.shouldCellUpdate},O,{appendNode:R,additionalProps:te(te({},T),{},{style:j},U)}))}var RZ=["data","index","className","rowKey","style","extra","getHeight"],NZ=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,s=e.style,u=e.extra,f=e.getHeight,d=qt(e,RZ),h=n.record,g=n.indent,v=n.index,b=ba(ja,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),x=b.scrollX,C=b.flattenColumns,y=b.prefixCls,w=b.fixColumn,$=b.componentWidth,E=ba(vC,["getComponent"]),I=E.getComponent,O=HT(h,o,r,g),R=I(["body","row"],"div"),T=I(["body","cell"],"div"),P=O.rowSupportExpand,N=O.expanded,k=O.rowProps,z=O.expandedRowRender,V=O.expandedRowClassName,B;if(P&&N){var L=z(h,r,g+1,N),H=FT(V,h,r,g),j={};w&&(j={style:X({},"--virtual-width","".concat($,"px"))});var D="".concat(y,"-expanded-row-cell");B=l.createElement(R,{className:ce("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(g+1),H)},l.createElement(du,{component:T,prefixCls:y,className:ce(D,X({},"".concat(D,"-fixed"),w)),additionalProps:j},L))}var F=te(te({},s),{},{width:x});u&&(F.position="absolute",F.pointerEvents="none");var U=l.createElement(R,Me({},k,d,{"data-row-key":o,ref:P?null:t,className:ce(a,"".concat(y,"-row"),k==null?void 0:k.className,X({},"".concat(y,"-row-extra"),u)),style:te(te({},F),k==null?void 0:k.style)}),C.map(function(A,K){return l.createElement(IZ,{key:K,component:T,rowInfo:O,column:A,colIndex:K,indent:g,index:r,renderIndex:v,record:h,inverse:u,getHeight:f})}));return P?l.createElement("div",{ref:t},U,B):U}),JO=uu(NZ),MZ=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=ba(ja,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,s=a.onColumnResize,u=a.getRowKey,f=a.expandedKeys,d=a.prefixCls,h=a.childrenColumnName,g=a.scrollX,v=a.direction,b=ba(vC),x=b.sticky,C=b.scrollY,y=b.listItemHeight,w=b.getComponent,$=b.onScroll,E=l.useRef(),I=LT(n,h,f,u),O=l.useMemo(function(){var B=0;return o.map(function(L){var H=L.width,j=L.key;return B+=H,[j,H,B]})},[o]),R=l.useMemo(function(){return O.map(function(B){return B[2]})},[O]);l.useEffect(function(){O.forEach(function(B){var L=ue(B,2),H=L[0],j=L[1];s(H,j)})},[O]),l.useImperativeHandle(t,function(){var B,L={scrollTo:function(j){var D;(D=E.current)===null||D===void 0||D.scrollTo(j)},nativeElement:(B=E.current)===null||B===void 0?void 0:B.nativeElement};return Object.defineProperty(L,"scrollLeft",{get:function(){var j;return((j=E.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var D;(D=E.current)===null||D===void 0||D.scrollTo({left:j})}}),L});var T=function(L,H){var j,D=(j=I[H])===null||j===void 0?void 0:j.record,F=L.onCell;if(F){var U,A=F(D,H);return(U=A==null?void 0:A.rowSpan)!==null&&U!==void 0?U:1}return 1},P=function(L){var H=L.start,j=L.end,D=L.getSize,F=L.offsetY;if(j<0)return null;for(var U=o.filter(function(oe){return T(oe,H)===0}),A=H,K=function(le){if(U=U.filter(function(ie){return T(ie,le)===0}),!U.length)return A=le,1},q=H;q>=0&&!K(q);q-=1);for(var Y=o.filter(function(oe){return T(oe,j)!==1}),W=j,Q=function(le){if(Y=Y.filter(function(ie){return T(ie,le)!==1}),!Y.length)return W=Math.max(le-1,j),1},Z=j;Z<I.length&&!Q(Z);Z+=1);for(var ae=[],J=function(le){var ie=I[le];if(!ie)return 1;o.some(function(de){return T(de,le)>1})&&ae.push(le)},se=A;se<=W;se+=1)J(se);var he=ae.map(function(oe){var le=I[oe],ie=u(le.record,oe),de=function(xe){var Ee=oe+xe-1,He=u(I[Ee].record,Ee),je=D(ie,He);return je.bottom-je.top},ge=D(ie);return l.createElement(JO,{key:oe,data:le,rowKey:ie,index:oe,style:{top:-F+ge.top},extra:!0,getHeight:de})});return he},N=l.useMemo(function(){return{columnsOffset:R}},[R]),k="".concat(d,"-tbody"),z=w(["body","wrapper"]),V={};return x&&(V.position="sticky",V.bottom=0,_t(x)==="object"&&x.offsetScroll&&(V.bottom=x.offsetScroll)),l.createElement(GT.Provider,{value:N},l.createElement(tv,{fullHeight:!1,ref:E,prefixCls:"".concat(k,"-virtual"),styles:{horizontalScrollBar:V},className:k,height:C,itemHeight:y||24,data:I,itemKey:function(L){return u(L.record)},component:z,scrollWidth:g,direction:v,onVirtualScroll:function(L){var H,j=L.x;r({currentTarget:(H=E.current)===null||H===void 0?void 0:H.nativeElement,scrollLeft:j})},onScroll:$,extraRender:P},function(B,L,H){var j=u(B.record,L);return l.createElement(JO,{data:B,rowKey:j,index:L,style:H.style})}))}),jZ=uu(MZ),TZ=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(jZ,{ref:r,data:t,onScroll:a})};function DZ(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,s=e.prefixCls,u=s===void 0?qT:s,f=e.className,d=e.listItemHeight,h=e.components,g=e.onScroll,v=a||{},b=v.x,x=v.y;typeof b!="number"&&(b=1),typeof x!="number"&&(x=500);var C=pn(function($,E){return Ma(h,$)||E}),y=pn(g),w=l.useMemo(function(){return{sticky:o,scrollY:x,listItemHeight:d,getComponent:C,onScroll:y}},[o,x,d,C,y]);return l.createElement(vC.Provider,{value:w},l.createElement(fu,Me({},e,{className:ce(f,"".concat(u,"-virtual")),scroll:te(te({},a),{},{x:b}),components:te(te({},h),{},{body:n!=null&&n.length?TZ:void 0}),columns:r,internalHooks:Lf,tailor:!0,ref:t})))}var PZ=l.forwardRef(DZ);function XT(e){return DT(PZ,e)}XT();const kZ=e=>null,AZ=e=>null;var pC=l.createContext(null),zZ=l.createContext({}),LZ=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,s="".concat(n,"-indent-unit"),u=[],f=0;f<r;f+=1)u.push(l.createElement("span",{key:f,className:ce(s,X(X({},"".concat(s,"-start"),a[f]),"".concat(s,"-end"),o[f]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const HZ=l.memo(LZ);var BZ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],eI="open",tI="close",FZ="---",bf=function(t){var n,r,a,o=t.eventKey,s=t.className,u=t.style,f=t.dragOver,d=t.dragOverGapTop,h=t.dragOverGapBottom,g=t.isLeaf,v=t.isStart,b=t.isEnd,x=t.expanded,C=t.selected,y=t.checked,w=t.halfChecked,$=t.loading,E=t.domRef,I=t.active,O=t.data,R=t.onMouseMove,T=t.selectable,P=qt(t,BZ),N=Se.useContext(pC),k=Se.useContext(zZ),z=Se.useRef(null),V=Se.useState(!1),B=ue(V,2),L=B[0],H=B[1],j=!!(N.disabled||t.disabled||(n=k.nodeDisabled)!==null&&n!==void 0&&n.call(k,O)),D=Se.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),F=function(Ie){j||N.onNodeSelect(Ie,Vr(t))},U=function(Ie){j||!D||t.disableCheckbox||N.onNodeCheck(Ie,Vr(t),!y)},A=Se.useMemo(function(){return typeof T=="boolean"?T:N.selectable},[T,N.selectable]),K=function(Ie){N.onNodeClick(Ie,Vr(t)),A?F(Ie):U(Ie)},q=function(Ie){N.onNodeDoubleClick(Ie,Vr(t))},Y=function(Ie){N.onNodeMouseEnter(Ie,Vr(t))},W=function(Ie){N.onNodeMouseLeave(Ie,Vr(t))},Q=function(Ie){N.onNodeContextMenu(Ie,Vr(t))},Z=Se.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(O)))},[N.draggable,O]),ae=function(Ie){Ie.stopPropagation(),H(!0),N.onNodeDragStart(Ie,t);try{Ie.dataTransfer.setData("text/plain","")}catch{}},J=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),N.onNodeDragEnter(Ie,t)},se=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),N.onNodeDragOver(Ie,t)},he=function(Ie){Ie.stopPropagation(),N.onNodeDragLeave(Ie,t)},oe=function(Ie){Ie.stopPropagation(),H(!1),N.onNodeDragEnd(Ie,t)},le=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),H(!1),N.onNodeDrop(Ie,t)},ie=function(Ie){$||N.onNodeExpand(Ie,Vr(t))},de=Se.useMemo(function(){var Fe=La(N.keyEntities,o)||{},Ie=Fe.children;return!!(Ie||[]).length},[N.keyEntities,o]),ge=Se.useMemo(function(){return g===!1?!1:g||!N.loadData&&!de||N.loadData&&t.loaded&&!de},[g,N.loadData,de,t.loaded]);Se.useEffect(function(){$||typeof N.loadData=="function"&&x&&!ge&&!t.loaded&&N.onNodeLoad(Vr(t))},[$,N.loadData,N.onNodeLoad,x,ge,t]);var me=Se.useMemo(function(){var Fe;return(Fe=N.draggable)!==null&&Fe!==void 0&&Fe.icon?Se.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),xe=function(Ie){var Ue=t.switcherIcon||N.switcherIcon;return typeof Ue=="function"?Ue(te(te({},t),{},{isLeaf:Ie})):Ue},Ee=function(){if(ge){var Ie=xe(!0);return Ie!==!1?Se.createElement("span",{className:ce("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},Ie):null}var Ue=xe(!1);return Ue!==!1?Se.createElement("span",{onClick:ie,className:ce("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(x?eI:tI))},Ue):null},He=Se.useMemo(function(){if(!D)return null;var Fe=typeof D!="boolean"?D:null;return Se.createElement("span",{className:ce("".concat(N.prefixCls,"-checkbox"),X(X(X({},"".concat(N.prefixCls,"-checkbox-checked"),y),"".concat(N.prefixCls,"-checkbox-indeterminate"),!y&&w),"".concat(N.prefixCls,"-checkbox-disabled"),j||t.disableCheckbox)),onClick:U,role:"checkbox","aria-checked":w?"mixed":y,"aria-disabled":j||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Fe)},[D,y,w,j,t.disableCheckbox,t.title]),je=Se.useMemo(function(){return ge?null:x?eI:tI},[ge,x]),ve=Se.useMemo(function(){return Se.createElement("span",{className:ce("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(je||"docu"),X({},"".concat(N.prefixCls,"-icon_loading"),$))})},[N.prefixCls,je,$]),$e=Se.useMemo(function(){var Fe=!!N.draggable,Ie=!t.disabled&&Fe&&N.dragOverNodeKey===o;return Ie?N.dropIndicatorRender({dropPosition:N.dropPosition,dropLevelOffset:N.dropLevelOffset,indent:N.indent,prefixCls:N.prefixCls,direction:N.direction}):null},[N.dropPosition,N.dropLevelOffset,N.indent,N.prefixCls,N.direction,N.draggable,N.dragOverNodeKey,N.dropIndicatorRender]),we=Se.useMemo(function(){var Fe=t.title,Ie=Fe===void 0?FZ:Fe,Ue="".concat(N.prefixCls,"-node-content-wrapper"),ye;if(N.showIcon){var Ce=t.icon||N.icon;ye=Ce?Se.createElement("span",{className:ce("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof Ce=="function"?Ce(t):Ce):ve}else N.loadData&&$&&(ye=ve);var _e;return typeof Ie=="function"?_e=Ie(O):N.titleRender?_e=N.titleRender(O):_e=Ie,Se.createElement("span",{ref:z,title:typeof Ie=="string"?Ie:"",className:ce(Ue,"".concat(Ue,"-").concat(je||"normal"),X({},"".concat(N.prefixCls,"-node-selected"),!j&&(C||L))),onMouseEnter:Y,onMouseLeave:W,onContextMenu:Q,onClick:K,onDoubleClick:q},ye,Se.createElement("span",{className:"".concat(N.prefixCls,"-title")},_e),$e)},[N.prefixCls,N.showIcon,t,N.icon,ve,N.titleRender,O,je,Y,W,Q,K,q]),Re=sa(P,{aria:!0,data:!0}),ze=La(N.keyEntities,o)||{},De=ze.level,Ye=b[b.length-1],Xe=!j&&Z,Le=N.draggingNodeKey===o,Ke=T!==void 0?{"aria-selected":!!T}:void 0;return Se.createElement("div",Me({ref:E,role:"treeitem","aria-expanded":g?void 0:x,className:ce(s,"".concat(N.prefixCls,"-treenode"),(a={},X(X(X(X(X(X(X(X(X(X(a,"".concat(N.prefixCls,"-treenode-disabled"),j),"".concat(N.prefixCls,"-treenode-switcher-").concat(x?"open":"close"),!g),"".concat(N.prefixCls,"-treenode-checkbox-checked"),y),"".concat(N.prefixCls,"-treenode-checkbox-indeterminate"),w),"".concat(N.prefixCls,"-treenode-selected"),C),"".concat(N.prefixCls,"-treenode-loading"),$),"".concat(N.prefixCls,"-treenode-active"),I),"".concat(N.prefixCls,"-treenode-leaf-last"),Ye),"".concat(N.prefixCls,"-treenode-draggable"),Z),"dragging",Le),X(X(X(X(X(X(X(a,"drop-target",N.dropTargetKey===o),"drop-container",N.dropContainerKey===o),"drag-over",!j&&f),"drag-over-gap-top",!j&&d),"drag-over-gap-bottom",!j&&h),"filter-node",(r=N.filterTreeNode)===null||r===void 0?void 0:r.call(N,Vr(t))),"".concat(N.prefixCls,"-treenode-leaf"),ge))),style:u,draggable:Xe,onDragStart:Xe?ae:void 0,onDragEnter:Z?J:void 0,onDragOver:Z?se:void 0,onDragLeave:Z?he:void 0,onDrop:Z?le:void 0,onDragEnd:Z?oe:void 0,onMouseMove:R},Ke,Re),Se.createElement(HZ,{prefixCls:N.prefixCls,level:De,isStart:v,isEnd:b}),me,Ee(),He,we)};bf.isTreeNode=1;function Ji(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Ro(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function bC(e){return e.split("-")}function VZ(e,t){var n=[],r=La(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(s){var u=s.key,f=s.children;n.push(u),a(f)})}return a(r.children),n}function KZ(e){if(e.parent){var t=bC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function UZ(e){var t=bC(e.pos);return Number(t[t.length-1])===0}function nI(e,t,n,r,a,o,s,u,f,d){var h,g=e.clientX,v=e.clientY,b=e.target.getBoundingClientRect(),x=b.top,C=b.height,y=(d==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g),w=(y-12)/r,$=f.filter(function(j){var D;return(D=u[j])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),E=La(u,n.eventKey);if(v<x+C/2){var I=s.findIndex(function(j){return j.key===E.key}),O=I<=0?0:I-1,R=s[O].key;E=La(u,R)}var T=E.key,P=E,N=E.key,k=0,z=0;if(!$.includes(T))for(var V=0;V<w&&KZ(E);V+=1)E=E.parent,z+=1;var B=t.data,L=E.node,H=!0;return UZ(E)&&E.level===0&&v<x+C/2&&o({dragNode:B,dropNode:L,dropPosition:-1})&&E.key===n.eventKey?k=-1:(P.children||[]).length&&$.includes(N)?o({dragNode:B,dropNode:L,dropPosition:0})?k=0:H=!1:z===0?w>-1.5?o({dragNode:B,dropNode:L,dropPosition:1})?k=1:H=!1:o({dragNode:B,dropNode:L,dropPosition:0})?k=0:o({dragNode:B,dropNode:L,dropPosition:1})?k=1:H=!1:o({dragNode:B,dropNode:L,dropPosition:1})?k=1:H=!1,{dropPosition:k,dropLevelOffset:z,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:N,dropContainerKey:k===0?null:((h=E.parent)===null||h===void 0?void 0:h.key)||null,dropAllowed:H}}function rI(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function My(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(_t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return br(!1,"`checkedKeys` is not an array or an object"),null;return t}function mx(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=La(t,a);if(o){n.add(a);var s=o.parent,u=o.node;u.disabled||s&&r(s.key)}}}return(e||[]).forEach(function(a){r(a)}),Ae(n)}function WZ(e){const[t,n]=l.useState(null);return[l.useCallback((o,s,u)=>{const f=t??o,d=Math.min(f||0,o),h=Math.max(f||0,o),g=s.slice(d,h+1).map(x=>e(x)),v=g.some(x=>!u.has(x)),b=[];return g.forEach(x=>{v?(u.has(x)||b.push(x),u.add(x)):(u.delete(x),b.push(x))}),n(v?h:null),b},[t]),o=>{n(o)}]}const wl={},hx="SELECT_ALL",gx="SELECT_INVERT",vx="SELECT_NONE",aI=[],QT=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ae(n),Ae(QT(e,r[e]))))}),n},qZ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:s,onSelect:u,onSelectAll:f,onSelectInvert:d,onSelectNone:h,onSelectMultiple:g,columnWidth:v,type:b,selections:x,fixed:C,renderCell:y,hideSelectAll:w,checkStrictly:$=!0}=t||{},{prefixCls:E,data:I,pageData:O,getRecordByKey:R,getRowKey:T,expandType:P,childrenColumnName:N,locale:k,getPopupContainer:z}=e,V=Al(),[B,L]=WZ(oe=>oe),[H,j]=Wn(r||a||aI,{value:r}),D=l.useRef(new Map),F=l.useCallback(oe=>{if(n){const le=new Map;oe.forEach(ie=>{let de=R(ie);!de&&D.current.has(ie)&&(de=D.current.get(ie)),le.set(ie,de)}),D.current=le}},[R,n]);l.useEffect(()=>{F(H)},[H]);const U=l.useMemo(()=>QT(N,O),[N,O]),{keyEntities:A}=l.useMemo(()=>{if($)return{keyEntities:null};let oe=I;if(n){const le=new Set(U.map((de,ge)=>T(de,ge))),ie=Array.from(D.current).reduce((de,ge)=>{let[me,xe]=ge;return le.has(me)?de:de.concat(xe)},[]);oe=[].concat(Ae(oe),Ae(ie))}return JS(oe,{externalGetKey:T,childrenPropName:N})},[I,T,$,N,n,U]),K=l.useMemo(()=>{const oe=new Map;return U.forEach((le,ie)=>{const de=T(le,ie),ge=(o?o(le):null)||{};oe.set(de,ge)}),oe},[U,T,o]),q=l.useCallback(oe=>{const le=T(oe);let ie;return K.has(le)?ie=K.get(T(oe)):ie=o?o(oe):void 0,!!(ie!=null&&ie.disabled)},[K,T]),[Y,W]=l.useMemo(()=>{if($)return[H||[],[]];const{checkedKeys:oe,halfCheckedKeys:le}=Ac(H,!0,A,q);return[oe||[],le]},[H,$,A,q]),Q=l.useMemo(()=>{const oe=b==="radio"?Y.slice(0,1):Y;return new Set(oe)},[Y,b]),Z=l.useMemo(()=>b==="radio"?new Set:new Set(W),[W,b]);l.useEffect(()=>{t||j(aI)},[!!t]);const ae=l.useCallback((oe,le)=>{let ie,de;F(oe),n?(ie=oe,de=oe.map(ge=>D.current.get(ge))):(ie=[],de=[],oe.forEach(ge=>{const me=R(ge);me!==void 0&&(ie.push(ge),de.push(me))})),j(ie),s==null||s(ie,de,{type:le})},[j,R,s,n]),J=l.useCallback((oe,le,ie,de)=>{if(u){const ge=ie.map(me=>R(me));u(R(oe),le,ge,de)}ae(ie,"single")},[u,R,ae]),se=l.useMemo(()=>!x||w?null:(x===!0?[hx,gx,vx]:x).map(le=>le===hx?{key:"all",text:k.selectionAll,onSelect(){ae(I.map((ie,de)=>T(ie,de)).filter(ie=>{const de=K.get(ie);return!(de!=null&&de.disabled)||Q.has(ie)}),"all")}}:le===gx?{key:"invert",text:k.selectInvert,onSelect(){const ie=new Set(Q);O.forEach((ge,me)=>{const xe=T(ge,me),Ee=K.get(xe);Ee!=null&&Ee.disabled||(ie.has(xe)?ie.delete(xe):ie.add(xe))});const de=Array.from(ie);d&&(V.deprecated(!1,"onSelectInvert","onChange"),d(de)),ae(de,"invert")}}:le===vx?{key:"none",text:k.selectNone,onSelect(){h==null||h(),ae(Array.from(Q).filter(ie=>{const de=K.get(ie);return de==null?void 0:de.disabled}),"none")}}:le).map(le=>Object.assign(Object.assign({},le),{onSelect:function(){for(var ie,de,ge=arguments.length,me=new Array(ge),xe=0;xe<ge;xe++)me[xe]=arguments[xe];(de=le.onSelect)===null||de===void 0||(ie=de).call.apply(ie,[le].concat(me)),L(null)}})),[x,Q,O,T,d,ae]);return[l.useCallback(oe=>{var le;if(!t)return oe.filter(Ke=>Ke!==wl);let ie=Ae(oe);const de=new Set(Q),ge=U.map(T).filter(Ke=>!K.get(Ke).disabled),me=ge.every(Ke=>de.has(Ke)),xe=ge.some(Ke=>de.has(Ke)),Ee=()=>{const Ke=[];me?ge.forEach(Ie=>{de.delete(Ie),Ke.push(Ie)}):ge.forEach(Ie=>{de.has(Ie)||(de.add(Ie),Ke.push(Ie))});const Fe=Array.from(de);f==null||f(!me,Fe.map(Ie=>R(Ie)),Ke.map(Ie=>R(Ie))),ae(Fe,"all"),L(null)};let He,je;if(b!=="radio"){let Ke;if(se){const Ce={getPopupContainer:z,items:se.map((_e,be)=>{const{key:ke,text:st,onSelect:Dt}=_e;return{key:ke??be,onClick:()=>{Dt==null||Dt(ge)},label:st}})};Ke=l.createElement("div",{className:`${E}-selection-extra`},l.createElement(oC,{menu:Ce,getPopupContainer:z},l.createElement("span",null,l.createElement(_S,null))))}const Fe=U.map((Ce,_e)=>{const be=T(Ce,_e),ke=K.get(be)||{};return Object.assign({checked:de.has(be)},ke)}).filter(Ce=>{let{disabled:_e}=Ce;return _e}),Ie=!!Fe.length&&Fe.length===U.length,Ue=Ie&&Fe.every(Ce=>{let{checked:_e}=Ce;return _e}),ye=Ie&&Fe.some(Ce=>{let{checked:_e}=Ce;return _e});je=l.createElement(Lr,{checked:Ie?Ue:!!U.length&&me,indeterminate:Ie?!Ue&&ye:!me&&xe,onChange:Ee,disabled:U.length===0||Ie,"aria-label":Ke?"Custom selection":"Select all",skipGroup:!0}),He=!w&&l.createElement("div",{className:`${E}-selection`},je,Ke)}let ve;b==="radio"?ve=(Ke,Fe,Ie)=>{const Ue=T(Fe,Ie),ye=de.has(Ue),Ce=K.get(Ue);return{node:l.createElement(ha,Object.assign({},Ce,{checked:ye,onClick:_e=>{var be;_e.stopPropagation(),(be=Ce==null?void 0:Ce.onClick)===null||be===void 0||be.call(Ce,_e)},onChange:_e=>{var be;de.has(Ue)||J(Ue,!0,[Ue],_e.nativeEvent),(be=Ce==null?void 0:Ce.onChange)===null||be===void 0||be.call(Ce,_e)}})),checked:ye}}:ve=(Ke,Fe,Ie)=>{var Ue;const ye=T(Fe,Ie),Ce=de.has(ye),_e=Z.has(ye),be=K.get(ye);let ke;return P==="nest"?ke=_e:ke=(Ue=be==null?void 0:be.indeterminate)!==null&&Ue!==void 0?Ue:_e,{node:l.createElement(Lr,Object.assign({},be,{indeterminate:ke,checked:Ce,skipGroup:!0,onClick:st=>{var Dt;st.stopPropagation(),(Dt=be==null?void 0:be.onClick)===null||Dt===void 0||Dt.call(be,st)},onChange:st=>{var Dt;const{nativeEvent:Wt}=st,{shiftKey:Je}=Wt,ct=ge.findIndex(ot=>ot===ye),$t=Y.some(ot=>ge.includes(ot));if(Je&&$&&$t){const ot=B(ct,ge,de),gt=Array.from(de);g==null||g(!Ce,gt.map(dt=>R(dt)),ot.map(dt=>R(dt))),ae(gt,"multiple")}else{const ot=Y;if($){const gt=Ce?Ji(ot,ye):Ro(ot,ye);J(ye,!Ce,gt,Wt)}else{const gt=Ac([].concat(Ae(ot),[ye]),!0,A,q),{checkedKeys:dt,halfCheckedKeys:lt}=gt;let nt=dt;if(Ce){const Pt=new Set(dt);Pt.delete(ye),nt=Ac(Array.from(Pt),{halfCheckedKeys:lt},A,q).checkedKeys}J(ye,!Ce,nt,Wt)}}L(Ce?null:ct),(Dt=be==null?void 0:be.onChange)===null||Dt===void 0||Dt.call(be,st)}})),checked:Ce}};const $e=(Ke,Fe,Ie)=>{const{node:Ue,checked:ye}=ve(Ke,Fe,Ie);return y?y(ye,Fe,Ie,Ue):Ue};if(!ie.includes(wl))if(ie.findIndex(Ke=>{var Fe;return((Fe=Ke[Wd])===null||Fe===void 0?void 0:Fe.columnType)==="EXPAND_COLUMN"})===0){const[Ke,...Fe]=ie;ie=[Ke,wl].concat(Ae(Fe))}else ie=[wl].concat(Ae(ie));const we=ie.indexOf(wl);ie=ie.filter((Ke,Fe)=>Ke!==wl||Fe===we);const Re=ie[we-1],ze=ie[we+1];let De=C;De===void 0&&((ze==null?void 0:ze.fixed)!==void 0?De=ze.fixed:(Re==null?void 0:Re.fixed)!==void 0&&(De=Re.fixed)),De&&Re&&((le=Re[Wd])===null||le===void 0?void 0:le.columnType)==="EXPAND_COLUMN"&&Re.fixed===void 0&&(Re.fixed=De);const Ye=ce(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:x&&b==="checkbox"}),Xe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(je):t.columnTitle:He,Le={fixed:De,width:v,className:`${E}-selection-column`,title:Xe(),render:$e,onCell:t.onCell,[Wd]:{className:Ye}};return ie.map(Ke=>Ke===wl?Le:Ke)},[T,U,t,Y,Q,Z,v,se,P,K,g,J,q]),Q]};function YZ(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function GZ(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):YZ(r,n)})}function XZ(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:s}=t,u=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:f=>{r(a,f),f.stopPropagation()},className:ce(u,{[`${u}-spaced`]:!s,[`${u}-expanded`]:s&&o,[`${u}-collapsed`]:s&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function QZ(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const s=getComputedStyle(a),u=parseInt(s.borderLeftWidth,10),f=parseInt(s.borderRightWidth,10);o=r-u-f}return o}}const Dl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function mu(e,t){return t?`${t}-${e}`:`${e}`}const xv=(e,t)=>typeof e=="function"?e(t):e,ZZ=(e,t)=>{const n=xv(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function JZ(e){const t=l.useRef(e),n=IS();return[()=>t.current,r=>{t.current=r,n()}]}var eJ=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return Se.createElement("div",{style:o})};function ZT(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function tJ(e,t){var n=l.useState(!1),r=ue(n,2),a=r[0],o=r[1];hn(function(){if(a)return e(),function(){t()}},[a]),hn(function(){return o(!0),function(){o(!1)}},[])}var nJ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],rJ=l.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,s=e.motionType,u=e.onMotionStart,f=e.onMotionEnd,d=e.active,h=e.treeNodeRequiredProps,g=qt(e,nJ),v=l.useState(!0),b=ue(v,2),x=b[0],C=b[1],y=l.useContext(pC),w=y.prefixCls,$=o&&s!=="hide";hn(function(){o&&$!==x&&C($)},[o]);var E=function(){o&&u()},I=l.useRef(!1),O=function(){o&&!I.current&&(I.current=!0,f())};tJ(E,O);var R=function(P){$===P&&O()};return o?l.createElement(xi,Me({ref:t,visible:x},a,{motionAppear:s==="show",onVisibleChanged:R}),function(T,P){var N=T.className,k=T.style;return l.createElement("div",{ref:P,className:ce("".concat(w,"-treenode-motion"),N),style:k},o.map(function(z){var V=Object.assign({},(ZT(z.data),z.data)),B=z.title,L=z.key,H=z.isStart,j=z.isEnd;delete V.children;var D=Kd(L,h);return l.createElement(bf,Me({},V,D,{title:B,active:d,data:z.data,key:L,isStart:H,isEnd:j}))}))}):l.createElement(bf,Me({domRef:t,className:n,style:r},g,{active:d}))});function aJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,s){var u=new Map;o.forEach(function(d){u.set(d,!0)});var f=s.filter(function(d){return!u.has(d)});return f.length===1?f[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function iI(e,t,n){var r=e.findIndex(function(u){return u.key===n}),a=e[r+1],o=t.findIndex(function(u){return u.key===n});if(a){var s=t.findIndex(function(u){return u.key===a.key});return t.slice(o+1,s)}return t.slice(o+1)}var iJ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],oI={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},oJ=function(){},Es="RC_TREE_MOTION_".concat(Math.random()),px={key:Es},JT={key:Es,level:0,index:0,pos:"0",node:px,nodes:[px]},lI={parent:null,children:[],pos:JT.pos,data:px,title:null,key:Es,isStart:[],isEnd:[]};function sI(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function cI(e){var t=e.key,n=e.pos;return kf(t,n)}function lJ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var sJ=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,s=e.checkedKeys,u=e.loadedKeys,f=e.loadingKeys,d=e.halfCheckedKeys,h=e.keyEntities,g=e.disabled,v=e.dragging,b=e.dragOverNodeKey,x=e.dropPosition,C=e.motion,y=e.height,w=e.itemHeight,$=e.virtual,E=e.scrollWidth,I=e.focusable,O=e.activeItem,R=e.focused,T=e.tabIndex,P=e.onKeyDown,N=e.onFocus,k=e.onBlur,z=e.onActiveChange,V=e.onListChangeStart,B=e.onListChangeEnd,L=qt(e,iJ),H=l.useRef(null),j=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function($e){H.current.scrollTo($e)},getIndentWidth:function(){return j.current.offsetWidth}}});var D=l.useState(a),F=ue(D,2),U=F[0],A=F[1],K=l.useState(r),q=ue(K,2),Y=q[0],W=q[1],Q=l.useState(r),Z=ue(Q,2),ae=Z[0],J=Z[1],se=l.useState([]),he=ue(se,2),oe=he[0],le=he[1],ie=l.useState(null),de=ue(ie,2),ge=de[0],me=de[1],xe=l.useRef(r);xe.current=r;function Ee(){var ve=xe.current;W(ve),J(ve),le([]),me(null),B()}hn(function(){A(a);var ve=aJ(U,a);if(ve.key!==null)if(ve.add){var $e=Y.findIndex(function(Xe){var Le=Xe.key;return Le===ve.key}),we=sI(iI(Y,r,ve.key),$,y,w),Re=Y.slice();Re.splice($e+1,0,lI),J(Re),le(we),me("show")}else{var ze=r.findIndex(function(Xe){var Le=Xe.key;return Le===ve.key}),De=sI(iI(r,Y,ve.key),$,y,w),Ye=r.slice();Ye.splice(ze+1,0,lI),J(Ye),le(De),me("hide")}else Y!==r&&(W(r),J(r))},[a,r]),l.useEffect(function(){v||Ee()},[v]);var He=C?ae:r,je={expandedKeys:a,selectedKeys:o,loadedKeys:u,loadingKeys:f,checkedKeys:s,halfCheckedKeys:d,dragOverNodeKey:b,dropPosition:x,keyEntities:h};return l.createElement(l.Fragment,null,R&&O&&l.createElement("span",{style:oI,"aria-live":"assertive"},lJ(O)),l.createElement("div",null,l.createElement("input",{style:oI,disabled:I===!1||g,tabIndex:I!==!1?T:null,onKeyDown:P,onFocus:N,onBlur:k,value:"",onChange:oJ,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),l.createElement(tv,Me({},L,{data:He,itemKey:cI,height:y,fullHeight:!1,virtual:$,itemHeight:w,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:H,role:"tree",onVisibleChange:function($e){$e.every(function(we){return cI(we)!==Es})&&Ee()}}),function(ve){var $e=ve.pos,we=Object.assign({},(ZT(ve.data),ve.data)),Re=ve.title,ze=ve.key,De=ve.isStart,Ye=ve.isEnd,Xe=kf(ze,$e);delete we.key,delete we.children;var Le=Kd(Xe,je);return l.createElement(rJ,Me({},we,Le,{title:Re,active:!!O&&ze===O.key,pos:$e,data:ve.data,isStart:De,isEnd:Ye,motion:C,motionNodes:ze===Es?oe:null,motionType:ge,onMotionStart:V,onMotionEnd:Ee,treeNodeRequiredProps:je,onMouseMove:function(){z(null)}}))}))}),cJ=10,yC=(function(e){ei(n,e);var t=yi(n);function n(){var r;yr(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),X(Ct(r),"destroyed",!1),X(Ct(r),"delayedDragEnterLogic",void 0),X(Ct(r),"loadingRetryTimes",{}),X(Ct(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Gc()}),X(Ct(r),"dragStartMousePosition",null),X(Ct(r),"dragNodeProps",null),X(Ct(r),"currentMouseOverDroppableNodeKey",null),X(Ct(r),"listRef",l.createRef()),X(Ct(r),"onNodeDragStart",function(u,f){var d=r.state,h=d.expandedKeys,g=d.keyEntities,v=r.props.onDragStart,b=f.eventKey;r.dragNodeProps=f,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var x=Ji(h,b);r.setState({draggingNodeKey:b,dragChildrenKeys:VZ(b,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(x),window.addEventListener("dragend",r.onWindowDragEnd),v==null||v({event:u,node:Vr(f)})}),X(Ct(r),"onNodeDragEnter",function(u,f){var d=r.state,h=d.expandedKeys,g=d.keyEntities,v=d.dragChildrenKeys,b=d.flattenNodes,x=d.indent,C=r.props,y=C.onDragEnter,w=C.onExpand,$=C.allowDrop,E=C.direction,I=f.pos,O=f.eventKey;if(r.currentMouseOverDroppableNodeKey!==O&&(r.currentMouseOverDroppableNodeKey=O),!r.dragNodeProps){r.resetDragState();return}var R=nI(u,r.dragNodeProps,f,x,r.dragStartMousePosition,$,b,g,h,E),T=R.dropPosition,P=R.dropLevelOffset,N=R.dropTargetKey,k=R.dropContainerKey,z=R.dropTargetPos,V=R.dropAllowed,B=R.dragOverNodeKey;if(v.includes(N)||!V){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(L){clearTimeout(r.delayedDragEnterLogic[L])}),r.dragNodeProps.eventKey!==f.eventKey&&(u.persist(),r.delayedDragEnterLogic[I]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var L=Ae(h),H=La(g,f.eventKey);H&&(H.children||[]).length&&(L=Ro(h,f.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(L),w==null||w(L,{node:Vr(f),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===N&&P===0){r.resetDragState();return}r.setState({dragOverNodeKey:B,dropPosition:T,dropLevelOffset:P,dropTargetKey:N,dropContainerKey:k,dropTargetPos:z,dropAllowed:V}),y==null||y({event:u,node:Vr(f),expandedKeys:h})}),X(Ct(r),"onNodeDragOver",function(u,f){var d=r.state,h=d.dragChildrenKeys,g=d.flattenNodes,v=d.keyEntities,b=d.expandedKeys,x=d.indent,C=r.props,y=C.onDragOver,w=C.allowDrop,$=C.direction;if(r.dragNodeProps){var E=nI(u,r.dragNodeProps,f,x,r.dragStartMousePosition,w,g,v,b,$),I=E.dropPosition,O=E.dropLevelOffset,R=E.dropTargetKey,T=E.dropContainerKey,P=E.dropTargetPos,N=E.dropAllowed,k=E.dragOverNodeKey;h.includes(R)||!N||(r.dragNodeProps.eventKey===R&&O===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():I===r.state.dropPosition&&O===r.state.dropLevelOffset&&R===r.state.dropTargetKey&&T===r.state.dropContainerKey&&P===r.state.dropTargetPos&&N===r.state.dropAllowed&&k===r.state.dragOverNodeKey||r.setState({dropPosition:I,dropLevelOffset:O,dropTargetKey:R,dropContainerKey:T,dropTargetPos:P,dropAllowed:N,dragOverNodeKey:k}),y==null||y({event:u,node:Vr(f)}))}}),X(Ct(r),"onNodeDragLeave",function(u,f){r.currentMouseOverDroppableNodeKey===f.eventKey&&!u.currentTarget.contains(u.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var d=r.props.onDragLeave;d==null||d({event:u,node:Vr(f)})}),X(Ct(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),X(Ct(r),"onNodeDragEnd",function(u,f){var d=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),d==null||d({event:u,node:Vr(f)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),X(Ct(r),"onNodeDrop",function(u,f){var d,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,v=g.dragChildrenKeys,b=g.dropPosition,x=g.dropTargetKey,C=g.dropTargetPos,y=g.dropAllowed;if(y){var w=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),x!==null){var $=te(te({},Kd(x,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===x,data:La(r.state.keyEntities,x).node}),E=v.includes(x);br(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var I=bC(C),O={event:u,node:Vr($),dragNode:r.dragNodeProps?Vr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(v),dropToGap:b!==0,dropPosition:b+Number(I[I.length-1])};h||w==null||w(O),r.dragNodeProps=null}}}),X(Ct(r),"cleanDragState",function(){var u=r.state.draggingNodeKey;u!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),X(Ct(r),"triggerExpandActionExpand",function(u,f){var d=r.state,h=d.expandedKeys,g=d.flattenNodes,v=f.expanded,b=f.key,x=f.isLeaf;if(!(x||u.shiftKey||u.metaKey||u.ctrlKey)){var C=g.filter(function(w){return w.key===b})[0],y=Vr(te(te({},Kd(b,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(v?Ji(h,b):Ro(h,b)),r.onNodeExpand(u,y)}}),X(Ct(r),"onNodeClick",function(u,f){var d=r.props,h=d.onClick,g=d.expandAction;g==="click"&&r.triggerExpandActionExpand(u,f),h==null||h(u,f)}),X(Ct(r),"onNodeDoubleClick",function(u,f){var d=r.props,h=d.onDoubleClick,g=d.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(u,f),h==null||h(u,f)}),X(Ct(r),"onNodeSelect",function(u,f){var d=r.state.selectedKeys,h=r.state,g=h.keyEntities,v=h.fieldNames,b=r.props,x=b.onSelect,C=b.multiple,y=f.selected,w=f[v.key],$=!y;$?C?d=Ro(d,w):d=[w]:d=Ji(d,w);var E=d.map(function(I){var O=La(g,I);return O?O.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:d}),x==null||x(d,{event:"select",selected:$,node:f,selectedNodes:E,nativeEvent:u.nativeEvent})}),X(Ct(r),"onNodeCheck",function(u,f,d){var h=r.state,g=h.keyEntities,v=h.checkedKeys,b=h.halfCheckedKeys,x=r.props,C=x.checkStrictly,y=x.onCheck,w=f.key,$,E={event:"check",node:f,checked:d,nativeEvent:u.nativeEvent};if(C){var I=d?Ro(v,w):Ji(v,w),O=Ji(b,w);$={checked:I,halfChecked:O},E.checkedNodes=I.map(function(z){return La(g,z)}).filter(Boolean).map(function(z){return z.node}),r.setUncontrolledState({checkedKeys:I})}else{var R=Ac([].concat(Ae(v),[w]),!0,g),T=R.checkedKeys,P=R.halfCheckedKeys;if(!d){var N=new Set(T);N.delete(w);var k=Ac(Array.from(N),{halfCheckedKeys:P},g);T=k.checkedKeys,P=k.halfCheckedKeys}$=T,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=P,T.forEach(function(z){var V=La(g,z);if(V){var B=V.node,L=V.pos;E.checkedNodes.push(B),E.checkedNodesPositions.push({node:B,pos:L})}}),r.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:P})}y==null||y($,E)}),X(Ct(r),"onNodeLoad",function(u){var f,d=u.key,h=r.state.keyEntities,g=La(h,d);if(!(g!=null&&(f=g.children)!==null&&f!==void 0&&f.length)){var v=new Promise(function(b,x){r.setState(function(C){var y=C.loadedKeys,w=y===void 0?[]:y,$=C.loadingKeys,E=$===void 0?[]:$,I=r.props,O=I.loadData,R=I.onLoad;if(!O||w.includes(d)||E.includes(d))return null;var T=O(u);return T.then(function(){var P=r.state.loadedKeys,N=Ro(P,d);R==null||R(N,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(k){return{loadingKeys:Ji(k.loadingKeys,d)}}),b()}).catch(function(P){if(r.setState(function(k){return{loadingKeys:Ji(k.loadingKeys,d)}}),r.loadingRetryTimes[d]=(r.loadingRetryTimes[d]||0)+1,r.loadingRetryTimes[d]>=cJ){var N=r.state.loadedKeys;br(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ro(N,d)}),b()}x(P)}),{loadingKeys:Ro(E,d)}})});return v.catch(function(){}),v}}),X(Ct(r),"onNodeMouseEnter",function(u,f){var d=r.props.onMouseEnter;d==null||d({event:u,node:f})}),X(Ct(r),"onNodeMouseLeave",function(u,f){var d=r.props.onMouseLeave;d==null||d({event:u,node:f})}),X(Ct(r),"onNodeContextMenu",function(u,f){var d=r.props.onRightClick;d&&(u.preventDefault(),d({event:u,node:f}))}),X(Ct(r),"onFocus",function(){var u=r.props.onFocus;r.setState({focused:!0});for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];u==null||u.apply(void 0,d)}),X(Ct(r),"onBlur",function(){var u=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];u==null||u.apply(void 0,d)}),X(Ct(r),"getTreeNodeRequiredProps",function(){var u=r.state,f=u.expandedKeys,d=u.selectedKeys,h=u.loadedKeys,g=u.loadingKeys,v=u.checkedKeys,b=u.halfCheckedKeys,x=u.dragOverNodeKey,C=u.dropPosition,y=u.keyEntities;return{expandedKeys:f||[],selectedKeys:d||[],loadedKeys:h||[],loadingKeys:g||[],checkedKeys:v||[],halfCheckedKeys:b||[],dragOverNodeKey:x,dropPosition:C,keyEntities:y}}),X(Ct(r),"setExpandedKeys",function(u){var f=r.state,d=f.treeData,h=f.fieldNames,g=wy(d,u,h);r.setUncontrolledState({expandedKeys:u,flattenNodes:g},!0)}),X(Ct(r),"onNodeExpand",function(u,f){var d=r.state.expandedKeys,h=r.state,g=h.listChanging,v=h.fieldNames,b=r.props,x=b.onExpand,C=b.loadData,y=f.expanded,w=f[v.key];if(!g){var $=d.includes(w),E=!y;if(br(y&&$||!y&&!$,"Expand state not sync with index check"),d=E?Ro(d,w):Ji(d,w),r.setExpandedKeys(d),x==null||x(d,{node:f,expanded:E,nativeEvent:u.nativeEvent}),E&&C){var I=r.onNodeLoad(f);I&&I.then(function(){var O=wy(r.state.treeData,d,v);r.setUncontrolledState({flattenNodes:O})}).catch(function(){var O=r.state.expandedKeys,R=Ji(O,w);r.setExpandedKeys(R)})}}}),X(Ct(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),X(Ct(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),X(Ct(r),"onActiveChange",function(u){var f=r.state.activeKey,d=r.props,h=d.onActiveChange,g=d.itemScrollOffset,v=g===void 0?0:g;f!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:v}),h==null||h(u))}),X(Ct(r),"getActiveItem",function(){var u=r.state,f=u.activeKey,d=u.flattenNodes;return f===null?null:d.find(function(h){var g=h.key;return g===f})||null}),X(Ct(r),"offsetActiveKey",function(u){var f=r.state,d=f.flattenNodes,h=f.activeKey,g=d.findIndex(function(x){var C=x.key;return C===h});g===-1&&u<0&&(g=d.length),g=(g+u+d.length)%d.length;var v=d[g];if(v){var b=v.key;r.onActiveChange(b)}else r.onActiveChange(null)}),X(Ct(r),"onKeyDown",function(u){var f=r.state,d=f.activeKey,h=f.expandedKeys,g=f.checkedKeys,v=f.fieldNames,b=r.props,x=b.onKeyDown,C=b.checkable,y=b.selectable;switch(u.which){case It.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case It.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var w=r.getActiveItem();if(w&&w.data){var $=r.getTreeNodeRequiredProps(),E=w.data.isLeaf===!1||!!(w.data[v.children]||[]).length,I=Vr(te(te({},Kd(d,$)),{},{data:w.data,active:!0}));switch(u.which){case It.LEFT:{E&&h.includes(d)?r.onNodeExpand({},I):w.parent&&r.onActiveChange(w.parent.key),u.preventDefault();break}case It.RIGHT:{E&&!h.includes(d)?r.onNodeExpand({},I):w.children&&w.children.length&&r.onActiveChange(w.children[0].key),u.preventDefault();break}case It.ENTER:case It.SPACE:{C&&!I.disabled&&I.checkable!==!1&&!I.disableCheckbox?r.onNodeCheck({},I,!g.includes(d)):!C&&y&&!I.disabled&&I.selectable!==!1&&r.onNodeSelect({},I);break}}}x==null||x(u)}),X(Ct(r),"setUncontrolledState",function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var h=!1,g=!0,v={};Object.keys(u).forEach(function(b){if(r.props.hasOwnProperty(b)){g=!1;return}h=!0,v[b]=u[b]}),h&&(!f||g)&&r.setState(te(te({},v),d))}}),X(Ct(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return xr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,s=a.itemScrollOffset,u=s===void 0?0:s;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:u}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,s=a.flattenNodes,u=a.keyEntities,f=a.draggingNodeKey,d=a.activeKey,h=a.dropLevelOffset,g=a.dropContainerKey,v=a.dropTargetKey,b=a.dropPosition,x=a.dragOverNodeKey,C=a.indent,y=this.props,w=y.prefixCls,$=y.className,E=y.style,I=y.showLine,O=y.focusable,R=y.tabIndex,T=R===void 0?0:R,P=y.selectable,N=y.showIcon,k=y.icon,z=y.switcherIcon,V=y.draggable,B=y.checkable,L=y.checkStrictly,H=y.disabled,j=y.motion,D=y.loadData,F=y.filterTreeNode,U=y.height,A=y.itemHeight,K=y.scrollWidth,q=y.virtual,Y=y.titleRender,W=y.dropIndicatorRender,Q=y.onContextMenu,Z=y.onScroll,ae=y.direction,J=y.rootClassName,se=y.rootStyle,he=sa(this.props,{aria:!0,data:!0}),oe;V&&(_t(V)==="object"?oe=V:typeof V=="function"?oe={nodeDraggable:V}:oe={});var le={prefixCls:w,selectable:P,showIcon:N,icon:k,switcherIcon:z,draggable:oe,draggingNodeKey:f,checkable:B,checkStrictly:L,disabled:H,keyEntities:u,dropLevelOffset:h,dropContainerKey:g,dropTargetKey:v,dropPosition:b,dragOverNodeKey:x,indent:C,direction:ae,dropIndicatorRender:W,loadData:D,filterTreeNode:F,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return l.createElement(pC.Provider,{value:le},l.createElement("div",{className:ce(w,$,J,X(X(X({},"".concat(w,"-show-line"),I),"".concat(w,"-focused"),o),"".concat(w,"-active-focused"),d!==null)),style:se},l.createElement(sJ,Me({ref:this.listRef,prefixCls:w,style:E,data:s,disabled:H,selectable:P,checkable:!!B,motion:j,dragging:f!==null,height:U,itemHeight:A,virtual:q,focusable:O,focused:o,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Q,onScroll:Z,scrollWidth:K},this.getTreeNodeRequiredProps(),he))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var s=o.prevProps,u={prevProps:a};function f(T){return!s&&a.hasOwnProperty(T)||s&&s[T]!==a[T]}var d,h=o.fieldNames;if(f("fieldNames")&&(h=Gc(a.fieldNames),u.fieldNames=h),f("treeData")?d=a.treeData:f("children")&&(br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=Fj(a.children)),d){u.treeData=d;var g=JS(d,{fieldNames:h});u.keyEntities=te(X({},Es,JT),g.keyEntities)}var v=u.keyEntities||o.keyEntities;if(f("expandedKeys")||s&&f("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!s&&a.defaultExpandParent?mx(a.expandedKeys,v):a.expandedKeys;else if(!s&&a.defaultExpandAll){var b=te({},v);delete b[Es];var x=[];Object.keys(b).forEach(function(T){var P=b[T];P.children&&P.children.length&&x.push(P.key)}),u.expandedKeys=x}else!s&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?mx(a.defaultExpandedKeys,v):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,d||u.expandedKeys){var C=wy(d||o.treeData,u.expandedKeys||o.expandedKeys,h);u.flattenNodes=C}if(a.selectable&&(f("selectedKeys")?u.selectedKeys=rI(a.selectedKeys,a):!s&&a.defaultSelectedKeys&&(u.selectedKeys=rI(a.defaultSelectedKeys,a))),a.checkable){var y;if(f("checkedKeys")?y=My(a.checkedKeys)||{}:!s&&a.defaultCheckedKeys?y=My(a.defaultCheckedKeys)||{}:d&&(y=My(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var w=y,$=w.checkedKeys,E=$===void 0?[]:$,I=w.halfCheckedKeys,O=I===void 0?[]:I;if(!a.checkStrictly){var R=Ac(E,!0,v);E=R.checkedKeys,O=R.halfCheckedKeys}u.checkedKeys=E,u.halfCheckedKeys=O}}return f("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(l.Component);X(yC,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:eJ,allowDrop:function(){return!0},expandAction:!1});X(yC,"TreeNode",bf);const uJ=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:a,motionDurationMid:o,borderRadius:s,controlItemBgHover:u}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:s},"&:hover:before":{background:u}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent","&:before, &:hover:before":{background:r}}}}}},dJ=new Dn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),fJ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),mJ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),hJ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:s,nodeSelectedBg:u,nodeHoverBg:f,colorTextQuaternary:d,controlItemBgActiveDisabled:h}=t;return{[n]:Object.assign(Object.assign({},Ln(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ao(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:dJ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:ne(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:h},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},fJ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},mJ(e,t)),{"&:hover":{backgroundColor:f},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ne(t.calc(o).div(2).equal())} !important`}})}},gJ=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),s=yn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[hJ(e,s),n&&uJ(s)].filter(Boolean)},vJ=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},pJ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},vJ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},bJ=Kn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Kj(`${n}-checkbox`,e)},gJ(n,e),zg(e)]},pJ),uI=4;function yJ(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,s=o==="ltr"?"left":"right",u=o==="ltr"?"right":"left",f={[s]:-n*a+uI,[u]:0};switch(t){case-1:f.top=-3;break;case 1:f.bottom=-3;break;default:f.bottom=-3,f[s]=a+uI;break}return Se.createElement("div",{style:f,className:`${r}-drop-indicator`})}const xJ=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:s,expanded:u,loading:f}=r;if(f)return l.isValidElement(o)?o:l.createElement(Fo,{className:`${t}-switcher-loading-icon`});let d;if(a&&typeof a=="object"&&(d=a.showLeafIcon),s){if(!a)return null;if(typeof d!="boolean"&&d){const v=typeof d=="function"?d(r):d,b=`${t}-switcher-line-custom-icon`;return l.isValidElement(v)?pa(v,{className:ce(v.props.className||"",b)}):v}return d?l.createElement(MT,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const h=`${t}-switcher-icon`,g=typeof n=="function"?n(r):n;return l.isValidElement(g)?pa(g,{className:ce(g.props.className||"",h)}):g!==void 0?g:a?u?l.createElement(nQ,{className:`${t}-switcher-line-icon`}):l.createElement(fQ,{className:`${t}-switcher-line-icon`}):l.createElement(vX,{className:h})},eD=Se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:s}=Se.useContext(Yt),{prefixCls:u,className:f,showIcon:d=!1,showLine:h,switcherIcon:g,switcherLoadingIcon:v,blockNode:b=!1,children:x,checkable:C=!1,selectable:y=!0,draggable:w,motion:$,style:E}=e,I=r("tree",u),O=r(),R=$??Object.assign(Object.assign({},cf(O)),{motionAppear:!1}),T=Object.assign(Object.assign({},e),{checkable:C,selectable:y,showIcon:d,motion:R,blockNode:b,showLine:!!h,dropIndicatorRender:yJ}),[P,N,k]=bJ(I),[,z]=Ra(),V=z.paddingXS/2+(((n=z.Tree)===null||n===void 0?void 0:n.titleHeight)||z.controlHeightSM),B=Se.useMemo(()=>{if(!w)return!1;let H={};switch(typeof w){case"function":H.nodeDraggable=w;break;case"object":H=Object.assign({},w);break}return H.icon!==!1&&(H.icon=H.icon||Se.createElement(JX,null)),H},[w]),L=H=>Se.createElement(xJ,{prefixCls:I,switcherIcon:g,switcherLoadingIcon:v,treeNodeProps:H,showLine:h});return P(Se.createElement(yC,Object.assign({itemHeight:V,ref:t,virtual:o},T,{style:Object.assign(Object.assign({},s==null?void 0:s.style),E),prefixCls:I,className:ce({[`${I}-icon-hide`]:!d,[`${I}-block-node`]:b,[`${I}-unselectable`]:!y,[`${I}-rtl`]:a==="rtl"},s==null?void 0:s.className,f,N,k),direction:a,checkable:C&&Se.createElement("span",{className:`${I}-checkbox-inner`}),selectable:y,switcherIcon:L,draggable:B}),x))}),dI=0,jy=1,fI=2;function xC(e,t,n){const{key:r,children:a}=n;function o(s){const u=s[r],f=s[a];t(u,s)!==!1&&xC(f||[],t,n)}e.forEach(o)}function SJ(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const s=[];let u=dI;if(r&&r===a)return[r];if(!r||!a)return[];function f(d){return d===r||d===a}return xC(t,d=>{if(u===fI)return!1;if(f(d)){if(s.push(d),u===dI)u=jy;else if(u===jy)return u=fI,!1}else u===jy&&s.push(d);return n.includes(d)},Gc(o)),s}function Ty(e,t,n){const r=Ae(t),a=[];return xC(e,(o,s)=>{const u=r.indexOf(o);return u!==-1&&(a.push(s),r.splice(u,1)),!!r.length},Gc(n)),a}var mI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function CJ(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(MT,null):n?l.createElement(qX,null):l.createElement(XX,null)}function hI(e){let{treeData:t,children:n}=e;return t||Fj(n)}const wJ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=mI(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=l.useRef(null),u=l.useRef(null),f=()=>{const{keyEntities:P}=JS(hI(o));let N;return n?N=Object.keys(P):r?N=mx(o.expandedKeys||a||[],P):N=o.expandedKeys||a||[],N},[d,h]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[g,v]=l.useState(()=>f());l.useEffect(()=>{"selectedKeys"in o&&h(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&v(o.expandedKeys)},[o.expandedKeys]);const b=(P,N)=>{var k;return"expandedKeys"in o||v(P),(k=o.onExpand)===null||k===void 0?void 0:k.call(o,P,N)},x=(P,N)=>{var k;const{multiple:z,fieldNames:V}=o,{node:B,nativeEvent:L}=N,{key:H=""}=B,j=hI(o),D=Object.assign(Object.assign({},N),{selected:!0}),F=(L==null?void 0:L.ctrlKey)||(L==null?void 0:L.metaKey),U=L==null?void 0:L.shiftKey;let A;z&&F?(A=P,s.current=H,u.current=A,D.selectedNodes=Ty(j,A,V)):z&&U?(A=Array.from(new Set([].concat(Ae(u.current||[]),Ae(SJ({treeData:j,expandedKeys:g,startKey:H,endKey:s.current,fieldNames:V}))))),D.selectedNodes=Ty(j,A,V)):(A=[H],s.current=H,u.current=A,D.selectedNodes=Ty(j,A,V)),(k=o.onSelect)===null||k===void 0||k.call(o,A,D),"selectedKeys"in o||h(A)},{getPrefixCls:C,direction:y}=l.useContext(Yt),{prefixCls:w,className:$,showIcon:E=!0,expandAction:I="click"}=o,O=mI(o,["prefixCls","className","showIcon","expandAction"]),R=C("tree",w),T=ce(`${R}-directory`,{[`${R}-directory-rtl`]:y==="rtl"},$);return l.createElement(eD,Object.assign({icon:CJ,ref:t,blockNode:!0},O,{showIcon:E,expandAction:I,prefixCls:R,className:T,expandedKeys:g,selectedKeys:d,onSelect:x,onExpand:b}))},$J=l.forwardRef(wJ),SC=eD;SC.DirectoryTree=$J;SC.TreeNode=bf;const gI=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Af,{prefix:l.createElement(OS,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},EJ=e=>{const{keyCode:t}=e;t===It.ENTER&&e.stopPropagation()},_J=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:EJ,ref:t},e.children));function zc(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Ae(t),Ae(zc(a))))}),t}function OJ(e){return e.some(t=>{let{children:n}=t;return n})}function tD(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function nD(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:s}=e;return t.map((u,f)=>{const d=String(u.value);if(u.children)return{key:d||f,label:u.text,popupClassName:`${n}-dropdown-submenu`,children:nD({filters:u.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:s})};const h=a?Lr:ha,g={key:u.value!==void 0?d:f,label:l.createElement(l.Fragment,null,l.createElement(h,{checked:r.includes(d)}),l.createElement("span",null,u.text))};return o.trim()?typeof s=="function"?s(o,u)?g:null:tD(o,u.text)?g:null:g})}function Dy(e){return e||[]}const IJ=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:s,column:u,dropdownPrefixCls:f,columnKey:d,filterOnClose:h,filterMultiple:g,filterMode:v="menu",filterSearch:b=!1,filterState:x,triggerFilter:C,locale:y,children:w,getPopupContainer:$,rootClassName:E}=e,{filterResetToDefaultFilteredValue:I,defaultFilteredValue:O,filterDropdownProps:R={},filterDropdownOpen:T,filterDropdownVisible:P,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:k}=u,[z,V]=l.useState(!1),B=!!(x&&(!((t=x.filteredKeys)===null||t===void 0)&&t.length||x.forceFiltered)),L=ve=>{var $e;V(ve),($e=R.onOpenChange)===null||$e===void 0||$e.call(R,ve),k==null||k(ve),N==null||N(ve)},H=(a=(r=(n=R.open)!==null&&n!==void 0?n:T)!==null&&r!==void 0?r:P)!==null&&a!==void 0?a:z,j=x==null?void 0:x.filteredKeys,[D,F]=JZ(Dy(j)),U=ve=>{let{selectedKeys:$e}=ve;F($e)},A=(ve,$e)=>{let{node:we,checked:Re}=$e;U(g?{selectedKeys:ve}:{selectedKeys:Re&&we.key?[we.key]:[]})};l.useEffect(()=>{z&&U({selectedKeys:Dy(j)})},[j]);const[K,q]=l.useState([]),Y=ve=>{q(ve)},[W,Q]=l.useState(""),Z=ve=>{const{value:$e}=ve.target;Q($e)};l.useEffect(()=>{z||Q("")},[z]);const ae=ve=>{const $e=ve!=null&&ve.length?ve:null;if($e===null&&(!x||!x.filteredKeys)||no($e,x==null?void 0:x.filteredKeys,!0))return null;C({column:u,key:d,filteredKeys:$e})},J=()=>{L(!1),ae(D())},se=function(){let{confirm:ve,closeDropdown:$e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ve&&ae([]),$e&&L(!1),Q(""),F(I?(O||[]).map(we=>String(we)):[])},he=function(){let{closeDropdown:ve}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ve&&L(!1),ae(D())},oe=(ve,$e)=>{$e.source==="trigger"&&(ve&&j!==void 0&&F(Dy(j)),L(ve),!ve&&!u.filterDropdown&&h&&J())},le=ce({[`${f}-menu-without-submenu`]:!OJ(u.filters||[])}),ie=ve=>{if(ve.target.checked){const $e=zc(u==null?void 0:u.filters).map(we=>String(we));F($e)}else F([])},de=ve=>{let{filters:$e}=ve;return($e||[]).map((we,Re)=>{const ze=String(we.value),De={title:we.text,key:we.value!==void 0?ze:String(Re)};return we.children&&(De.children=de({filters:we.children})),De})},ge=ve=>{var $e;return Object.assign(Object.assign({},ve),{text:ve.title,value:ve.key,children:(($e=ve.children)===null||$e===void 0?void 0:$e.map(we=>ge(we)))||[]})};let me;const{direction:xe,renderEmpty:Ee}=l.useContext(Yt);if(typeof u.filterDropdown=="function")me=u.filterDropdown({prefixCls:`${f}-custom`,setSelectedKeys:ve=>U({selectedKeys:ve}),selectedKeys:D(),confirm:he,clearFilters:se,filters:u.filters,visible:H,close:()=>{L(!1)}});else if(u.filterDropdown)me=u.filterDropdown;else{const ve=D()||[],$e=()=>{var Re,ze;const De=(Re=Ee==null?void 0:Ee("Table.filter"))!==null&&Re!==void 0?Re:l.createElement(jo,{image:jo.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return De;if(v==="tree")return l.createElement(l.Fragment,null,l.createElement(gI,{filterSearch:b,value:W,onChange:Z,tablePrefixCls:o,locale:y}),l.createElement("div",{className:`${o}-filter-dropdown-tree`},g?l.createElement(Lr,{checked:ve.length===zc(u.filters).length,indeterminate:ve.length>0&&ve.length<zc(u.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:ie},(ze=y==null?void 0:y.filterCheckall)!==null&&ze!==void 0?ze:y==null?void 0:y.filterCheckAll):null,l.createElement(SC,{checkable:!0,selectable:!1,blockNode:!0,multiple:g,checkStrictly:!g,className:`${f}-menu`,onCheck:A,checkedKeys:ve,selectedKeys:ve,showIcon:!1,treeData:de({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?Le=>typeof b=="function"?b(W,ge(Le)):tD(W,Le.title):void 0})));const Ye=nD({filters:u.filters||[],filterSearch:b,prefixCls:s,filteredKeys:D(),filterMultiple:g,searchValue:W}),Xe=Ye.every(Le=>Le===null);return l.createElement(l.Fragment,null,l.createElement(gI,{filterSearch:b,value:W,onChange:Z,tablePrefixCls:o,locale:y}),Xe?De:l.createElement(Rs,{selectable:!0,multiple:g,prefixCls:`${f}-menu`,className:le,onSelect:U,onDeselect:U,selectedKeys:ve,getPopupContainer:$,openKeys:K,onOpenChange:Y,items:Ye}))},we=()=>I?no((O||[]).map(Re=>String(Re)),ve,!0):ve.length===0;me=l.createElement(l.Fragment,null,$e(),l.createElement("div",{className:`${s}-dropdown-btns`},l.createElement(mn,{type:"link",size:"small",disabled:we(),onClick:()=>se()},y.filterReset),l.createElement(mn,{type:"primary",size:"small",onClick:J},y.filterConfirm)))}u.filterDropdown&&(me=l.createElement(VM,{selectable:void 0},me)),me=l.createElement(_J,{className:`${s}-dropdown`},me);const je=cC({trigger:["click"],placement:xe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ve;return typeof u.filterIcon=="function"?ve=u.filterIcon(B):u.filterIcon?ve=u.filterIcon:ve=l.createElement(KX,null),l.createElement("span",{role:"button",tabIndex:-1,className:ce(`${s}-trigger`,{active:B}),onClick:$e=>{$e.stopPropagation()}},ve)})(),getPopupContainer:$},Object.assign(Object.assign({},R),{rootClassName:ce(E,R.rootClassName),open:H,onOpenChange:oe,dropdownRender:()=>typeof(R==null?void 0:R.dropdownRender)=="function"?R.dropdownRender(me):me}));return l.createElement("div",{className:`${s}-column`},l.createElement("span",{className:`${o}-column-title`},w),l.createElement(oC,Object.assign({},je)))},bx=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var s;const u=mu(o,n),f=a.filterDropdown!==void 0;if(a.filters||f||"onFilter"in a)if("filteredValue"in a){let d=a.filteredValue;f||(d=(s=d==null?void 0:d.map(String))!==null&&s!==void 0?s:d),r.push({column:a,key:Dl(a,u),filteredKeys:d,forceFiltered:a.filtered})}else r.push({column:a,key:Dl(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Ae(r),Ae(bx(a.children,t,u))))}),r};function rD(e,t,n,r,a,o,s,u,f){return n.map((d,h)=>{const g=mu(h,u),{filterOnClose:v=!0,filterMultiple:b=!0,filterMode:x,filterSearch:C}=d;let y=d;if(y.filters||y.filterDropdown){const w=Dl(y,g),$=r.find(E=>{let{key:I}=E;return w===I});y=Object.assign(Object.assign({},y),{title:E=>l.createElement(IJ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:w,filterState:$,filterOnClose:v,filterMultiple:b,filterMode:x,filterSearch:C,triggerFilter:o,locale:a,getPopupContainer:s,rootClassName:f},xv(d.title,E))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:rD(e,t,y.children,r,a,o,s,g,f)})),y})}const vI=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const s=r,{filters:u,filterDropdown:f}=o;if(f)t[s]=a||null;else if(Array.isArray(a)){const d=zc(u);t[s]=d.filter(h=>a.includes(String(h)))}else t[s]=null}),t},yx=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:s,filters:u},filteredKeys:f}=o;return s&&f&&f.length?a.map(d=>Object.assign({},d)).filter(d=>f.some(h=>{const g=zc(u),v=g.findIndex(x=>String(x)===String(h)),b=v!==-1?g[v]:h;return d[n]&&(d[n]=yx(d[n],t,n)),s(b,d)})):a},e),aD=e=>e.flatMap(t=>"children"in t?[t].concat(Ae(aD(t.children||[]))):[t]),RJ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:s,rootClassName:u}=e;Al();const f=l.useMemo(()=>aD(r||[]),[r]),[d,h]=l.useState(()=>bx(f,!0)),g=l.useMemo(()=>{const C=bx(f,!1);if(C.length===0)return C;let y=!0;if(C.forEach(w=>{let{filteredKeys:$}=w;$!==void 0&&(y=!1)}),y){const w=(f||[]).map(($,E)=>Dl($,mu(E)));return d.filter($=>{let{key:E}=$;return w.includes(E)}).map($=>{const E=f[w.findIndex(I=>I===$.key)];return Object.assign(Object.assign({},$),{column:Object.assign(Object.assign({},$.column),E),forceFiltered:E.filtered})})}return C},[f,d]),v=l.useMemo(()=>vI(g),[g]),b=C=>{const y=g.filter(w=>{let{key:$}=w;return $!==C.key});y.push(C),h(y),a(vI(y),y)};return[C=>rD(t,n,C,g,s,b,o,void 0,u),g,v]},NJ=(e,t,n)=>{const r=l.useRef({});function a(o){var s;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(d){d.forEach((h,g)=>{const v=n(h,g);u.set(v,h),h&&typeof h=="object"&&t in h&&f(h[t]||[])})};const u=new Map;f(e),r.current={data:e,childrenColumnName:t,kvMap:u,getRowKey:n}}return(s=r.current.kvMap)===null||s===void 0?void 0:s.get(o)}return[a]};var MJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const iD=10;function jJ(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function TJ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=MJ(r,["total"]),[s,u]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:iD})),f=cC(s,o,{total:a>0?a:e}),d=Math.ceil((a||e)/f.pageSize);f.current>d&&(f.current=d||1);const h=(v,b)=>{u({current:v??1,pageSize:b||f.pageSize})},g=(v,b)=>{var x;n&&((x=n.onChange)===null||x===void 0||x.call(n,v,b)),h(v,b),t(v,b||(f==null?void 0:f.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},f),{onChange:g}),h]}const Yh="ascend",Py="descend",xg=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,pI=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,DJ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],xx=(e,t,n)=>{let r=[];const a=(o,s)=>{r.push({column:o,key:Dl(o,s),multiplePriority:xg(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,s)=>{const u=mu(s,n);o.children?("sortOrder"in o&&a(o,u),r=[].concat(Ae(r),Ae(xx(o.children,t,u)))):o.sorter&&("sortOrder"in o?a(o,u):t&&o.defaultSortOrder&&r.push({column:o,key:Dl(o,u),multiplePriority:xg(o),sortOrder:o.defaultSortOrder}))}),r},oD=(e,t,n,r,a,o,s,u)=>(t||[]).map((d,h)=>{const g=mu(h,u);let v=d;if(v.sorter){const b=v.sortDirections||a,x=v.showSorterTooltip===void 0?s:v.showSorterTooltip,C=Dl(v,g),y=n.find(N=>{let{key:k}=N;return k===C}),w=y?y.sortOrder:null,$=DJ(b,w);let E;if(d.sortIcon)E=d.sortIcon({sortOrder:w});else{const N=b.includes(Yh)&&l.createElement(CX,{className:ce(`${e}-column-sorter-up`,{active:w===Yh})}),k=b.includes(Py)&&l.createElement(yX,{className:ce(`${e}-column-sorter-down`,{active:w===Py})});E=l.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&k)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,k))}const{cancelSort:I,triggerAsc:O,triggerDesc:R}=o||{};let T=I;$===Py?T=R:$===Yh&&(T=O);const P=typeof x=="object"?Object.assign({title:T},x):{title:T};v=Object.assign(Object.assign({},v),{className:ce(v.className,{[`${e}-column-sort`]:w}),title:N=>{const k=`${e}-column-sorters`,z=l.createElement("span",{className:`${e}-column-title`},xv(d.title,N)),V=l.createElement("div",{className:k},z,E);return x?typeof x!="boolean"&&(x==null?void 0:x.target)==="sorter-icon"?l.createElement("div",{className:`${k} ${e}-column-sorters-tooltip-target-sorter`},z,l.createElement(bi,Object.assign({},P),E)):l.createElement(bi,Object.assign({},P),V):V},onHeaderCell:N=>{var k;const z=((k=d.onHeaderCell)===null||k===void 0?void 0:k.call(d,N))||{},V=z.onClick,B=z.onKeyDown;z.onClick=j=>{r({column:d,key:C,sortOrder:$,multiplePriority:xg(d)}),V==null||V(j)},z.onKeyDown=j=>{j.keyCode===It.ENTER&&(r({column:d,key:C,sortOrder:$,multiplePriority:xg(d)}),B==null||B(j))};const L=ZZ(d.title,{}),H=L==null?void 0:L.toString();return w&&(z["aria-sort"]=w==="ascend"?"ascending":"descending"),z["aria-label"]=H||"",z.className=ce(z.className,`${e}-column-has-sorters`),z.tabIndex=0,d.ellipsis&&(z.title=(L??"").toString()),z}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:oD(e,v.children,n,r,a,o,s,g)})),v}),bI=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},yI=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(bI);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},bI(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Sx=(e,t,n)=>{const r=t.slice().sort((s,u)=>u.multiplePriority-s.multiplePriority),a=e.slice(),o=r.filter(s=>{let{column:{sorter:u},sortOrder:f}=s;return pI(u)&&f});return o.length?a.sort((s,u)=>{for(let f=0;f<o.length;f+=1){const d=o[f],{column:{sorter:h},sortOrder:g}=d,v=pI(h);if(v&&g){const b=v(s,u,g);if(b!==0)return g===Yh?b:-b}}return 0}).map(s=>{const u=s[n];return u?Object.assign(Object.assign({},s),{[n]:Sx(u,t,n)}):s}):a},PJ=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:s}=e,[u,f]=l.useState(()=>xx(n,!0)),d=(C,y)=>{const w=[];return C.forEach(($,E)=>{const I=mu(E,y);if(w.push(Dl($,I)),Array.isArray($.children)){const O=d($.children,I);w.push.apply(w,Ae(O))}}),w},h=l.useMemo(()=>{let C=!0;const y=xx(n,!1);if(!y.length){const I=d(n);return u.filter(O=>{let{key:R}=O;return I.includes(R)})}const w=[];function $(I){C?w.push(I):w.push(Object.assign(Object.assign({},I),{sortOrder:null}))}let E=null;return y.forEach(I=>{E===null?($(I),I.sortOrder&&(I.multiplePriority===!1?C=!1:E=!0)):(E&&I.multiplePriority!==!1||(C=!1),$(I))}),w},[n,u]),g=l.useMemo(()=>{var C,y;const w=h.map($=>{let{column:E,sortOrder:I}=$;return{column:E,order:I}});return{sortColumns:w,sortColumn:(C=w[0])===null||C===void 0?void 0:C.column,sortOrder:(y=w[0])===null||y===void 0?void 0:y.order}},[h]),v=C=>{let y;C.multiplePriority===!1||!h.length||h[0].multiplePriority===!1?y=[C]:y=[].concat(Ae(h.filter(w=>{let{key:$}=w;return $!==C.key})),[C]),f(y),s(yI(y),y)};return[C=>oD(t,C,h,v,r,a,o),h,g,()=>yI(h)]},lD=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=xv(r.title,t),"children"in a&&(a.children=lD(a.children,t)),a}),kJ=e=>[l.useCallback(n=>lD(n,e),[e])],AJ=YT((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zJ=XT((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),LJ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:s,tablePaddingHorizontal:u,calc:f}=e,d=`${ne(n)} ${r} ${a}`,h=(g,v,b)=>({[`&${t}-${g}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(f(v).mul(-1).equal())}
              ${ne(f(f(b).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(f(s).mul(-1).equal())} ${ne(f(f(u).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]:{"> th, > td":{borderInlineEnd:0}}}}}},h("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),h("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ne(n)} 0 ${ne(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},HJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ai),{wordBreak:"keep-all",[`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},BJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},FJ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:s,tableBorderColor:u,tableExpandIconBg:f,tableExpandColumnWidth:d,borderRadius:h,tablePaddingVertical:g,tablePaddingHorizontal:v,tableExpandedRowBg:b,paddingXXS:x,expandIconMarginTop:C,expandIconSize:y,expandIconHalfInner:w,expandIconScale:$,calc:E}=e,I=`${ne(a)} ${s} ${u}`,O=E(x).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},aS(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:ne(y),background:f,border:I,borderRadius:h,transform:`scale(${$})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:w,insetInlineEnd:O,insetInlineStart:O,height:a},"&::after":{top:O,bottom:O,insetInlineStart:w,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:C,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ne(E(g).mul(-1).equal())} ${ne(E(v).mul(-1).equal())}`,padding:`${ne(g)} ${ne(v)}`}}}},VJ=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:s,paddingXS:u,colorText:f,lineWidth:d,lineType:h,tableBorderColor:g,headerIconColor:v,fontSizeSM:b,tablePaddingHorizontal:x,borderRadius:C,motionDurationSlow:y,colorIcon:w,colorPrimary:$,tableHeaderFilterActiveBg:E,colorTextDisabled:I,tableFilterDropdownBg:O,tableFilterDropdownHeight:R,controlItemBgHover:T,controlItemBgActive:P,boxShadowSecondary:N,filterDropdownMenuBg:k,calc:z}=e,V=`${n}-dropdown`,B=`${t}-filter-dropdown`,L=`${n}-tree`,H=`${ne(d)} ${h} ${g}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:z(s).mul(-1).equal(),marginInline:`${ne(s)} ${ne(z(x).div(2).mul(-1).equal())}`,padding:`0 ${ne(s)}`,color:v,fontSize:b,borderRadius:C,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:w,background:E},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[B]:Object.assign(Object.assign({},Ln(e)),{minWidth:a,backgroundColor:O,borderRadius:C,boxShadow:N,overflow:"hidden",[`${V}-menu`]:{maxHeight:R,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${ne(u)} 0`,color:I,fontSize:b,textAlign:"center",content:'"Not Found"'}},[`${B}-tree`]:{paddingBlock:`${ne(u)} 0`,paddingInline:u,[L]:{padding:0},[`${L}-treenode ${L}-node-content-wrapper:hover`]:{backgroundColor:T},[`${L}-treenode-checkbox-checked ${L}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:P}}},[`${B}-search`]:{padding:u,borderBottom:H,"&-input":{input:{minWidth:o},[r]:{color:I}}},[`${B}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${B}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ne(z(u).sub(d).equal())} ${ne(u)}`,overflow:"hidden",borderTop:H}})}},{[`${n}-dropdown ${B}, ${B}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:f},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},KJ=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:s,zIndexTableSticky:u,calc:f}=e,d=r;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:o,background:s},[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:f(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:f(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:f(u).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${d}`},[`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${d}`}},[`${t}-fixed-column-gapped`]:{[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after,
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{boxShadow:"none"}}}}},UJ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ne(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},WJ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ne(n)} ${ne(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ne(n)} ${ne(n)}`}}}}},qJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},YJ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:s,headerIconColor:u,headerIconHoverColor:f,tableSelectionColumnWidth:d,tableSelectedRowBg:h,tableSelectedRowHoverBg:g,tableRowHoverBg:v,tablePaddingHorizontal:b,calc:x}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:x(d).add(a).add(x(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:x(d).add(x(s).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:x(d).add(a).add(x(o).div(4)).add(x(s).mul(2)).equal()}},[`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column,
        ${t}-selection-column
      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:x(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ne(x(b).div(4).equal()),[r]:{color:u,fontSize:a,verticalAlign:"baseline","&:hover":{color:f}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:h,"&-row-hover":{background:g}}},[`> ${t}-cell-row-hover`]:{background:v}}}}}},GJ=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,s,u,f)=>({[`${t}${t}-${o}`]:{fontSize:f,[`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${ne(s)} ${ne(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ne(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ne(r(s).mul(-1).equal())} ${ne(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ne(r(s).mul(-1).equal()),marginInline:`${ne(r(n).sub(u).equal())} ${ne(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ne(r(u).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},XJ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},QJ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:s,zIndexTableSticky:u,stickyScrollBarBorderRadius:f,lineWidth:d,lineType:h,tableBorderColor:g}=e,v=`${ne(d)} ${h} ${g}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ne(o)} !important`,zIndex:u,display:"flex",alignItems:"center",background:s,borderTop:v,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:f,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},xI=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${ne(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ne(a(n).mul(-1).equal())} 0 ${r}`}}}},ZJ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:s}=e,u=`${ne(r)} ${a} ${o}`,f=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
            & > ${t}-row, 
            & > div:not(${t}-row) > ${t}-row
          `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:u,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${f}${f}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ne(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:u,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(r).mul(-1).equal(),borderInlineStart:u}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:u,borderBottom:u}}}}}},JJ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:s,lineType:u,tableBorderColor:f,tableFontSize:d,tableBg:h,tableRadius:g,tableHeaderTextColor:v,motionDurationMid:b,tableHeaderBg:x,tableHeaderCellSplitColor:C,tableFooterTextColor:y,tableFooterBg:w,calc:$}=e,E=`${ne(s)} ${u} ${f}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},ro()),{[t]:Object.assign(Object.assign({},Ln(e)),{fontSize:d,background:h,borderRadius:`${ne(g)} ${ne(g)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ne(g)} ${ne(g)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${t}-cell,
          ${t}-thead > tr > th,
          ${t}-tbody > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${ne(r)} ${ne(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ne(r)} ${ne(a)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:x,borderBottom:E,transition:`background ${b} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${b}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${b}, border-color ${b}`,borderBottom:E,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:ne($(r).mul(-1).equal()),marginInline:`${ne($(o).sub(a).equal())}
                ${ne($(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:x,borderBottom:E,transition:`background ${b} ease`}}},[`${t}-footer`]:{padding:`${ne(r)} ${ne(a)}`,color:y,background:w}})}},eee=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:s,controlItemBgActiveHover:u,padding:f,paddingSM:d,paddingXS:h,colorBorderSecondary:g,borderRadiusLG:v,controlHeight:b,colorTextPlaceholder:x,fontSize:C,fontSizeSM:y,lineHeight:w,lineWidth:$,colorIcon:E,colorIconHover:I,opacityLoading:O,controlInteractiveSize:R}=e,T=new Mn(a).onBackground(n).toHexString(),P=new Mn(o).onBackground(n).toHexString(),N=new Mn(t).onBackground(n).toHexString(),k=new Mn(E),z=new Mn(I),V=R/2-$,B=V*2+$*3;return{headerBg:N,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:P,bodySortBg:N,rowHoverBg:N,rowSelectedBg:s,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:f,cellPaddingInline:f,cellPaddingBlockMD:d,cellPaddingInlineMD:h,cellPaddingBlockSM:h,cellPaddingInlineSM:h,borderColor:g,headerBorderRadius:v,footerBg:N,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:g,fixedHeaderSortActiveBg:T,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:b,stickyScrollBarBg:x,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*w-$*3)/2-Math.ceil((y*1.4-$*3)/2),headerIconColor:k.clone().setA(k.a*O).toRgbString(),headerIconHoverColor:z.clone().setA(z.a*O).toRgbString(),expandIconHalfInner:V,expandIconSize:B,expandIconScale:R/B}},SI=2,tee=Kn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:s,headerSortActiveBg:u,headerSortHoverBg:f,bodySortBg:d,rowHoverBg:h,rowSelectedBg:g,rowSelectedHoverBg:v,rowExpandedBg:b,cellPaddingBlock:x,cellPaddingInline:C,cellPaddingBlockMD:y,cellPaddingInlineMD:w,cellPaddingBlockSM:$,cellPaddingInlineSM:E,borderColor:I,footerBg:O,footerColor:R,headerBorderRadius:T,cellFontSize:P,cellFontSizeMD:N,cellFontSizeSM:k,headerSplitColor:z,fixedHeaderSortActiveBg:V,headerFilterHoverBg:B,filterDropdownBg:L,expandIconBg:H,selectionColumnWidth:j,stickyScrollBarBg:D,calc:F}=e,U=yn(e,{tableFontSize:P,tableBg:r,tableRadius:T,tablePaddingVertical:x,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:w,tablePaddingVerticalSmall:$,tablePaddingHorizontalSmall:E,tableBorderColor:I,tableHeaderTextColor:s,tableHeaderBg:o,tableFooterTextColor:R,tableFooterBg:O,tableHeaderCellSplitColor:z,tableHeaderSortBg:u,tableHeaderSortHoverBg:f,tableBodySortBg:d,tableFixedHeaderSortActiveBg:V,tableHeaderFilterActiveBg:B,tableFilterDropdownBg:L,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:v,zIndexTableFixed:SI,zIndexTableSticky:F(SI).add(1).equal({unit:!1}),tableFontSizeMiddle:N,tableFontSizeSmall:k,tableSelectionColumnWidth:j,tableExpandIconBg:H,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[JJ(U),UJ(U),xI(U),XJ(U),VJ(U),LJ(U),WJ(U),FJ(U),xI(U),BJ(U),YJ(U),KJ(U),QJ(U),HJ(U),GJ(U),qJ(U),ZJ(U)]},eee,{unitless:{expandIconScale:!0}}),nee=[],ree=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:s,style:u,size:f,bordered:d,dropdownPrefixCls:h,dataSource:g,pagination:v,rowSelection:b,rowKey:x="key",rowClassName:C,columns:y,children:w,childrenColumnName:$,onChange:E,getPopupContainer:I,loading:O,expandIcon:R,expandable:T,expandedRowRender:P,expandIconColumnIndex:N,indentSize:k,scroll:z,sortDirections:V,locale:B,showSorterTooltip:L={target:"full-header"},virtual:H}=e;Al();const j=l.useMemo(()=>y||gC(w),[y,w]),D=l.useMemo(()=>j.some(wt=>wt.responsive),[j]),F=nv(D),U=l.useMemo(()=>{const wt=new Set(Object.keys(F).filter(xt=>F[xt]));return j.filter(xt=>!xt.responsive||xt.responsive.some(Tt=>wt.has(Tt)))},[j,F]),A=tr(e,["className","style","columns"]),{locale:K=Ho,direction:q,table:Y,renderEmpty:W,getPrefixCls:Q,getPopupContainer:Z}=l.useContext(Yt),ae=ua(f),J=Object.assign(Object.assign({},K.Table),B),se=g||nee,he=Q("table",a),oe=Q("dropdown",h),[,le]=Ra(),ie=ta(he),[de,ge,me]=tee(he,ie),xe=Object.assign(Object.assign({childrenColumnName:$,expandIconColumnIndex:N},T),{expandIcon:(n=T==null?void 0:T.expandIcon)!==null&&n!==void 0?n:(r=Y==null?void 0:Y.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ee="children"}=xe,He=l.useMemo(()=>se.some(wt=>wt==null?void 0:wt[Ee])?"nest":P||T!=null&&T.expandedRowRender?"row":null,[se]),je={body:l.useRef(null)},ve=QZ(he),$e=l.useRef(null),we=l.useRef(null);GZ(t,()=>Object.assign(Object.assign({},we.current),{nativeElement:$e.current}));const Re=l.useMemo(()=>typeof x=="function"?x:wt=>wt==null?void 0:wt[x],[x]),[ze]=NJ(se,Ee,Re),De={},Ye=function(wt,xt){let Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Vt,Jt,on,Ut;const gn=Object.assign(Object.assign({},De),wt);Tt&&((Vt=De.resetPagination)===null||Vt===void 0||Vt.call(De),!((Jt=gn.pagination)===null||Jt===void 0)&&Jt.current&&(gn.pagination.current=1),v&&((on=v.onChange)===null||on===void 0||on.call(v,1,(Ut=gn.pagination)===null||Ut===void 0?void 0:Ut.pageSize))),z&&z.scrollToFirstRowOnChange!==!1&&je.body.current&&i8(0,{getContainer:()=>je.body.current}),E==null||E(gn.pagination,gn.filters,gn.sorter,{currentDataSource:yx(Sx(se,gn.sorterStates,Ee),gn.filterStates,Ee),action:xt})},Xe=(wt,xt)=>{Ye({sorter:wt,sorterStates:xt},"sort",!1)},[Le,Ke,Fe,Ie]=PJ({prefixCls:he,mergedColumns:U,onSorterChange:Xe,sortDirections:V||["ascend","descend"],tableLocale:J,showSorterTooltip:L}),Ue=l.useMemo(()=>Sx(se,Ke,Ee),[se,Ke]);De.sorter=Ie(),De.sorterStates=Ke;const ye=(wt,xt)=>{Ye({filters:wt,filterStates:xt},"filter",!0)},[Ce,_e,be]=RJ({prefixCls:he,locale:J,dropdownPrefixCls:oe,mergedColumns:U,onFilterChange:ye,getPopupContainer:I||Z,rootClassName:ce(s,ie)}),ke=yx(Ue,_e,Ee);De.filters=be,De.filterStates=_e;const st=l.useMemo(()=>{const wt={};return Object.keys(be).forEach(xt=>{be[xt]!==null&&(wt[xt]=be[xt])}),Object.assign(Object.assign({},Fe),{filters:wt})},[Fe,be]),[Dt]=kJ(st),Wt=(wt,xt)=>{Ye({pagination:Object.assign(Object.assign({},De.pagination),{current:wt,pageSize:xt})},"paginate")},[Je,ct]=TJ(ke.length,Wt,v);De.pagination=v===!1?{}:jJ(Je,v),De.resetPagination=ct;const $t=l.useMemo(()=>{if(v===!1||!Je.pageSize)return ke;const{current:wt=1,total:xt,pageSize:Tt=iD}=Je;return ke.length<xt?ke.length>Tt?ke.slice((wt-1)*Tt,wt*Tt):ke:ke.slice((wt-1)*Tt,wt*Tt)},[!!v,ke,Je==null?void 0:Je.current,Je==null?void 0:Je.pageSize,Je==null?void 0:Je.total]),[ot,gt]=qZ({prefixCls:he,data:ke,pageData:$t,getRowKey:Re,getRecordByKey:ze,expandType:He,childrenColumnName:Ee,locale:J,getPopupContainer:I||Z},b),dt=(wt,xt,Tt)=>{let Vt;return typeof C=="function"?Vt=ce(C(wt,xt,Tt)):Vt=ce(C),ce({[`${he}-row-selected`]:gt.has(Re(wt,xt))},Vt)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||R||XZ(J),He==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=b?1:0:xe.expandIconColumnIndex>0&&b&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof k=="number"?k:15);const lt=l.useCallback(wt=>Dt(ot(Ce(Le(wt)))),[Le,Ce,ot]);let nt,Pt;if(v!==!1&&(Je!=null&&Je.total)){let wt;Je.size?wt=Je.size:wt=ae==="small"||ae==="middle"?"small":void 0;const xt=Jt=>l.createElement(wT,Object.assign({},Je,{className:ce(`${he}-pagination ${he}-pagination-${Jt}`,Je.className),size:wt})),Tt=q==="rtl"?"left":"right",{position:Vt}=Je;if(Vt!==null&&Array.isArray(Vt)){const Jt=Vt.find(gn=>gn.includes("top")),on=Vt.find(gn=>gn.includes("bottom")),Ut=Vt.every(gn=>`${gn}`=="none");!Jt&&!on&&!Ut&&(Pt=xt(Tt)),Jt&&(nt=xt(Jt.toLowerCase().replace("top",""))),on&&(Pt=xt(on.toLowerCase().replace("bottom","")))}else Pt=xt(Tt)}let bt;typeof O=="boolean"?bt={spinning:O}:typeof O=="object"&&(bt=Object.assign({spinning:!0},O));const Ge=ce(me,ie,`${he}-wrapper`,Y==null?void 0:Y.className,{[`${he}-wrapper-rtl`]:q==="rtl"},o,s,ge),tt=Object.assign(Object.assign({},Y==null?void 0:Y.style),u),Mt=typeof(B==null?void 0:B.emptyText)<"u"?B.emptyText:(W==null?void 0:W("Table"))||l.createElement($S,{componentName:"Table"}),At=H?zJ:AJ,Ot={},Ht=l.useMemo(()=>{const{fontSize:wt,lineHeight:xt,lineWidth:Tt,padding:Vt,paddingXS:Jt,paddingSM:on}=le,Ut=Math.floor(wt*xt);switch(ae){case"middle":return on*2+Ut+Tt;case"small":return Jt*2+Ut+Tt;default:return Vt*2+Ut+Tt}},[le,ae]);return H&&(Ot.listItemHeight=Ht),de(l.createElement("div",{ref:$e,className:Ge,style:tt},l.createElement(zf,Object.assign({spinning:!1},bt),nt,l.createElement(At,Object.assign({},Ot,A,{ref:we,columns:U,direction:q,expandable:xe,prefixCls:he,className:ce({[`${he}-middle`]:ae==="middle",[`${he}-small`]:ae==="small",[`${he}-bordered`]:d,[`${he}-empty`]:se.length===0},me,ie,ge),data:$t,rowKey:Re,rowClassName:dt,emptyText:Mt,internalHooks:Lf,internalRefs:je,transformColumns:lt,getContainerWidth:ve})),Pt)))},aee=l.forwardRef(ree),iee=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(aee,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ki=l.forwardRef(iee);Ki.SELECTION_COLUMN=wl;Ki.EXPAND_COLUMN=No;Ki.SELECTION_ALL=hx;Ki.SELECTION_INVERT=gx;Ki.SELECTION_NONE=vx;Ki.Column=kZ;Ki.ColumnGroup=AZ;Ki.Summary=AT;const oee=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,s=o(r).sub(n).equal(),u=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},Ln(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},CC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return yn(e,{tagFontSize:a,tagLineHeight:ne(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},wC=e=>({defaultBg:new Mn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),sD=Kn("Tag",e=>{const t=CC(e);return oee(t)},wC);var lee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const see=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:o,onChange:s,onClick:u}=e,f=lee(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:h}=l.useContext(Yt),g=w=>{s==null||s(!o),u==null||u(w)},v=d("tag",n),[b,x,C]=sD(v),y=ce(v,`${v}-checkable`,{[`${v}-checkable-checked`]:o},h==null?void 0:h.className,a,x,C);return b(l.createElement("span",Object.assign({},f,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:y,onClick:g})))}),cee=e=>JR(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:s}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:s,borderColor:s},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),uee=_f(["Tag","preset"],e=>{const t=CC(e);return cee(t)},wC);function dee(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const bh=(e,t,n)=>{const r=dee(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},fee=_f(["Tag","status"],e=>{const t=CC(e);return[bh(t,"success","Success"),bh(t,"processing","Info"),bh(t,"error","Error"),bh(t,"warning","Warning")]},wC);var mee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hee=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,children:s,icon:u,color:f,onClose:d,bordered:h=!0,visible:g}=e,v=mee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:x,tag:C}=l.useContext(Yt),[y,w]=l.useState(!0),$=tr(v,["closeIcon","closable"]);l.useEffect(()=>{g!==void 0&&w(g)},[g]);const E=CM(f),I=E7(f),O=E||I,R=Object.assign(Object.assign({backgroundColor:f&&!O?f:void 0},C==null?void 0:C.style),o),T=b("tag",n),[P,N,k]=sD(T),z=ce(T,C==null?void 0:C.className,{[`${T}-${f}`]:O,[`${T}-has-color`]:f&&!O,[`${T}-hidden`]:!y,[`${T}-rtl`]:x==="rtl",[`${T}-borderless`]:!h},r,a,N,k),V=F=>{F.stopPropagation(),d==null||d(F),!F.defaultPrevented&&w(!1)},[,B]=$H(a2(e),a2(C),{closable:!1,closeIconRender:F=>{const U=l.createElement("span",{className:`${T}-close-icon`,onClick:V},F);return sS(F,U,A=>({onClick:K=>{var q;(q=A==null?void 0:A.onClick)===null||q===void 0||q.call(A,K),V(K)},className:ce(A==null?void 0:A.className,`${T}-close-icon`)}))}}),L=typeof v.onClick=="function"||s&&s.type==="a",H=u||null,j=H?l.createElement(l.Fragment,null,H,s&&l.createElement("span",null,s)):s,D=l.createElement("span",Object.assign({},$,{ref:t,className:z,style:R}),j,B,E&&l.createElement(uee,{key:"preset",prefixCls:T}),I&&l.createElement(fee,{key:"status",prefixCls:T}));return P(L?l.createElement(If,{component:"Tag"},D):D)}),hi=hee;hi.CheckableTag=see;const gee={defaultSeed:lf.token,defaultConfig:lf},vee=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},pee=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=vee(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},bee=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},aS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},yee=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ig[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),xee=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ne(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},See=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Cee=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),wee=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},pee(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),yee(e)),bee(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},aS(e)),{marginInlineStart:e.marginXXS})}),xee(e)),See(e)),Cee()),{"&-rtl":{direction:"rtl"}})}},$ee=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),cD=Kn("Typography",e=>[wee(e)],$ee),Eee=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:s,autoSize:u=!0,value:f,onSave:d,onCancel:h,onEnd:g,component:v,enterIcon:b=l.createElement(kX,null)}=e,x=l.useRef(null),C=l.useRef(!1),y=l.useRef(null),[w,$]=l.useState(f);l.useEffect(()=>{$(f)},[f]),l.useEffect(()=>{var L;if(!((L=x.current)===null||L===void 0)&&L.resizableTextArea){const{textArea:H}=x.current.resizableTextArea;H.focus();const{length:j}=H.value;H.setSelectionRange(j,j)}},[]);const E=L=>{let{target:H}=L;$(H.value.replace(/[\n\r]/g,""))},I=()=>{C.current=!0},O=()=>{C.current=!1},R=L=>{let{keyCode:H}=L;C.current||(y.current=H)},T=()=>{d(w.trim())},P=L=>{let{keyCode:H,ctrlKey:j,altKey:D,metaKey:F,shiftKey:U}=L;y.current!==H||C.current||j||D||F||U||(H===It.ENTER?(T(),g==null||g()):H===It.ESC&&h())},N=()=>{T()},[k,z,V]=cD(t),B=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${v}`]:!!v},r,z,V);return k(l.createElement("div",{className:B,style:a},l.createElement(yT,{ref:x,maxLength:s,value:w,onChange:E,onKeyDown:R,onKeyUp:P,onCompositionStart:I,onCompositionEnd:O,onBlur:N,"aria-label":n,rows:1,autoSize:u}),b!==null?pa(b,{className:`${t}-edit-content-confirm`}):null))};var ky,CI;function _ee(){return CI||(CI=1,ky=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),ky}var Ay,wI;function Oee(){if(wI)return Ay;wI=1;var e=_ee(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function a(o,s){var u,f,d,h,g,v,b=!1;s||(s={}),u=s.debug||!1;try{d=e(),h=document.createRange(),g=document.getSelection(),v=document.createElement("span"),v.textContent=o,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(C){if(C.stopPropagation(),s.format)if(C.preventDefault(),typeof C.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[s.format]||t.default;window.clipboardData.setData(y,o)}else C.clipboardData.clearData(),C.clipboardData.setData(s.format,o);s.onCopy&&(C.preventDefault(),s.onCopy(C.clipboardData))}),document.body.appendChild(v),h.selectNodeContents(v),g.addRange(h);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");b=!0}catch(C){u&&console.error("unable to copy using execCommand: ",C),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(y){u&&console.error("unable to copy using clipboardData: ",y),u&&console.error("falling back to prompt"),f=r("message"in s?s.message:n),window.prompt(f,o)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(h):g.removeAllRanges()),v&&document.body.removeChild(v),d()}return b}return Ay=a,Ay}var Iee=Oee();const Ree=Fi(Iee);var Nee=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(h){try{d(r.next(h))}catch(g){s(g)}}function f(h){try{d(r.throw(h))}catch(g){s(g)}}function d(h){h.done?o(h.value):a(h.value).then(u,f)}d((r=r.apply(e,t||[])).next())})};const Mee=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,s]=l.useState(!1),u=l.useRef(null),f=()=>{u.current&&clearTimeout(u.current)},d={};t.format&&(d.format=t.format),l.useEffect(()=>f,[]);const h=pn(g=>Nee(void 0,void 0,void 0,function*(){var v;g==null||g.preventDefault(),g==null||g.stopPropagation(),s(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;Ree(b||jG(n,!0).join("")||"",d),s(!1),a(!0),f(),u.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,g)}catch(b){throw s(!1),b}}));return{copied:r,copyLoading:o,onClick:h}};function zy(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const jee=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},Tee=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Dee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uD=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:s,children:u,direction:f,style:d}=e,h=Dee(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:v,className:b,style:x}=Ia("typography"),C=f??v,y=s?xa(t,s):t,w=g("typography",n),[$,E,I]=cD(w),O=ce(w,b,{[`${w}-rtl`]:C==="rtl"},a,o,E,I),R=Object.assign(Object.assign({},x),d);return $(l.createElement(r,Object.assign({className:O,style:R,ref:y},h),u))});function $I(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ly(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Pee(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const $C=e=>["string","number"].includes(typeof e),kee=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:s,tabIndex:u,onCopy:f,loading:d}=e;const h=$I(o),g=$I(s),{copied:v,copy:b}=r??{},x=n?v:b,C=Ly(h[n?1:0],x),y=typeof C=="string"?C:x;return l.createElement(bi,{title:C},l.createElement("button",{type:"button",className:ce(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:f,"aria-label":y,tabIndex:u},n?Ly(g[1],l.createElement(ES,null),!0):Ly(g[0],d?l.createElement(Fo,null):l.createElement($X,null),!0)))},yh=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),Aee=e=>e.reduce((t,n)=>t+($C(n)?String(n).length:1),0);function EI(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const o=e[a],u=$C(o)?String(o).length:1,f=n+u;if(f>t){const d=t-n;return r.push(String(o).slice(0,d)),r}r.push(o),n=f}return e}const Hy=0,By=1,Fy=2,Vy=3,_I=4,xh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zee(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:s,miscDeps:u,onEllipsis:f}=e,d=l.useMemo(()=>_a(r),[r]),h=l.useMemo(()=>Aee(d),[r]),g=l.useMemo(()=>a(d,!1),[r]),[v,b]=l.useState(null),x=l.useRef(null),C=l.useRef(null),y=l.useRef(null),w=l.useRef(null),$=l.useRef(null),[E,I]=l.useState(!1),[O,R]=l.useState(Hy),[T,P]=l.useState(0),[N,k]=l.useState(null);hn(()=>{R(t&&n&&h?By:Hy)},[n,r,o,t,d]),hn(()=>{var L,H,j,D;if(O===By){R(Fy);const F=C.current&&getComputedStyle(C.current).whiteSpace;k(F)}else if(O===Fy){const F=!!(!((L=y.current)===null||L===void 0)&&L.isExceed());R(F?Vy:_I),b(F?[0,h]:null),I(F);const U=((H=y.current)===null||H===void 0?void 0:H.getHeight())||0,A=o===1?0:((j=w.current)===null||j===void 0?void 0:j.getHeight())||0,K=((D=$.current)===null||D===void 0?void 0:D.getHeight())||0,q=Math.max(U,A+K);P(q+1),f(F)}},[O]);const z=v?Math.ceil((v[0]+v[1])/2):0;hn(()=>{var L;const[H,j]=v||[0,0];if(H!==j){const F=(((L=x.current)===null||L===void 0?void 0:L.getHeight())||0)>T;let U=z;j-H===1&&(U=F?H:j),b(F?[H,U]:[U,j])}},[v,z]);const V=l.useMemo(()=>{if(!t)return a(d,!1);if(O!==Vy||!v||v[0]!==v[1]){const L=a(d,!1);return[_I,Hy].includes(O)?L:l.createElement("span",{style:Object.assign(Object.assign({},xh),{WebkitLineClamp:o})},L)}return a(s?d:EI(d,v[0]),E)},[s,O,v,d].concat(Ae(u))),B={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,V,O===Fy&&l.createElement(l.Fragment,null,l.createElement(yh,{style:Object.assign(Object.assign(Object.assign({},B),xh),{WebkitLineClamp:o}),ref:y},g),l.createElement(yh,{style:Object.assign(Object.assign(Object.assign({},B),xh),{WebkitLineClamp:o-1}),ref:w},g),l.createElement(yh,{style:Object.assign(Object.assign(Object.assign({},B),xh),{WebkitLineClamp:1}),ref:$},a([],!0))),O===Vy&&v&&v[0]!==v[1]&&l.createElement(yh,{style:Object.assign(Object.assign({},B),{top:400}),ref:x},a(EI(d,z),!0)),O===By&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const Lee=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(bi,Object.assign({open:n?void 0:!1},a),r)};var Hee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Bee(e,t){let{mark:n,code:r,underline:a,delete:o,strong:s,keyboard:u,italic:f}=e,d=t;function h(g,v){v&&(d=l.createElement(g,{},d))}return h("strong",s),h("u",a),h("del",o),h("code",r),h("mark",n),h("kbd",u),h("i",f),d}const Fee="...",Sv=l.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:o,type:s,disabled:u,children:f,ellipsis:d,editable:h,copyable:g,component:v,title:b}=e,x=Hee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:y}=l.useContext(Yt),[w]=Wo("Text"),$=l.useRef(null),E=l.useRef(null),I=C("typography",r),O=tr(x,["mark","code","delete","underline","strong","keyboard","italic"]),[R,T]=zy(h),[P,N]=Wn(!1,{value:T.editing}),{triggerType:k=["icon"]}=T,z=_e=>{var be;_e&&((be=T.onStart)===null||be===void 0||be.call(T)),N(_e)},V=jee(P);hn(()=>{var _e;!P&&V&&((_e=E.current)===null||_e===void 0||_e.focus())},[P]);const B=_e=>{_e==null||_e.preventDefault(),z(!0)},L=_e=>{var be;(be=T.onChange)===null||be===void 0||be.call(T,_e),z(!1)},H=()=>{var _e;(_e=T.onCancel)===null||_e===void 0||_e.call(T),z(!1)},[j,D]=zy(g),{copied:F,copyLoading:U,onClick:A}=Mee({copyConfig:D,children:f}),[K,q]=l.useState(!1),[Y,W]=l.useState(!1),[Q,Z]=l.useState(!1),[ae,J]=l.useState(!1),[se,he]=l.useState(!0),[oe,le]=zy(d,{expandable:!1,symbol:_e=>_e?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[ie,de]=Wn(le.defaultExpanded||!1,{value:le.expanded}),ge=oe&&(!ie||le.expandable==="collapsible"),{rows:me=1}=le,xe=l.useMemo(()=>ge&&(le.suffix!==void 0||le.onEllipsis||le.expandable||R||j),[ge,le,R,j]);hn(()=>{oe&&!xe&&(q(q0("webkitLineClamp")),W(q0("textOverflow")))},[xe,oe]);const[Ee,He]=l.useState(ge),je=l.useMemo(()=>xe?!1:me===1?Y:K,[xe,Y,K]);hn(()=>{He(je&&ge)},[je,ge]);const ve=ge&&(Ee?ae:Q),$e=ge&&me===1&&Ee,we=ge&&me>1&&Ee,Re=(_e,be)=>{var ke;de(be.expanded),(ke=le.onExpand)===null||ke===void 0||ke.call(le,_e,be)},[ze,De]=l.useState(0),Ye=_e=>{let{offsetWidth:be}=_e;De(be)},Xe=_e=>{var be;Z(_e),Q!==_e&&((be=le.onEllipsis)===null||be===void 0||be.call(le,_e))};l.useEffect(()=>{const _e=$.current;if(oe&&Ee&&_e){const be=Pee(_e);ae!==be&&J(be)}},[oe,Ee,f,we,se,ze]),l.useEffect(()=>{const _e=$.current;if(typeof IntersectionObserver>"u"||!_e||!Ee||!ge)return;const be=new IntersectionObserver(()=>{he(!!_e.offsetParent)});return be.observe(_e),()=>{be.disconnect()}},[Ee,ge]);const Le=Tee(le.tooltip,T.text,f),Ke=l.useMemo(()=>{if(!(!oe||Ee))return[T.text,f,b,Le.title].find($C)},[oe,Ee,b,Le.title,ve]);if(P)return l.createElement(Eee,{value:(n=T.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:L,onCancel:H,onEnd:T.onEnd,prefixCls:I,className:a,style:o,direction:y,component:v,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Fe=()=>{const{expandable:_e,symbol:be}=le;return _e?l.createElement("button",{type:"button",key:"expand",className:`${I}-${ie?"collapse":"expand"}`,onClick:ke=>Re(ke,{expanded:!ie}),"aria-label":ie?w.collapse:w==null?void 0:w.expand},typeof be=="function"?be(ie):be):null},Ie=()=>{if(!R)return;const{icon:_e,tooltip:be,tabIndex:ke}=T,st=_a(be)[0]||(w==null?void 0:w.edit),Dt=typeof st=="string"?st:"";return k.includes("icon")?l.createElement(bi,{key:"edit",title:be===!1?"":st},l.createElement("button",{type:"button",ref:E,className:`${I}-edit`,onClick:B,"aria-label":Dt,tabIndex:ke},_e||l.createElement(TX,{role:"button"}))):null},Ue=()=>j?l.createElement(kee,Object.assign({key:"copy"},D,{prefixCls:I,copied:F,locale:w,onCopy:A,loading:U,iconOnly:f==null})):null,ye=_e=>[_e&&Fe(),Ie(),Ue()],Ce=_e=>[_e&&!ie&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Fee),le.suffix,ye(_e)];return l.createElement(ga,{onResize:Ye,disabled:!ge},_e=>l.createElement(Lee,{tooltipProps:Le,enableEllipsis:ge,isEllipsis:ve},l.createElement(uD,Object.assign({className:ce({[`${I}-${s}`]:s,[`${I}-disabled`]:u,[`${I}-ellipsis`]:oe,[`${I}-ellipsis-single-line`]:$e,[`${I}-ellipsis-multiple-line`]:we},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:we?me:void 0}),component:v,ref:xa(_e,$,t),direction:y,onClick:k.includes("text")?B:void 0,"aria-label":Ke==null?void 0:Ke.toString(),title:b},O),l.createElement(zee,{enableMeasure:ge&&!Ee,text:f,rows:me,width:ze,onEllipsis:Xe,expanded:ie,miscDeps:[F,ie,U,R,j,w]},(be,ke)=>Bee(e,l.createElement(l.Fragment,null,be.length>0&&ke&&!ie&&Ke?l.createElement("span",{key:"show-content","aria-hidden":!0},be):be,Ce(ke)))))))});var Vee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Kee=l.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=Vee(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(Sv,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),Uee=l.forwardRef((e,t)=>l.createElement(Sv,Object.assign({ref:t},e,{component:"div"})));var Wee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qee=(e,t)=>{var{ellipsis:n}=e,r=Wee(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?tr(n,["expandable","rows"]):n,[n]);return l.createElement(Sv,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},Yee=l.forwardRef(qee);var Gee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Xee=[1,2,3,4,5],Qee=l.forwardRef((e,t)=>{const{level:n=1}=e,r=Gee(e,["level"]),a=Xee.includes(n)?`h${n}`:"h1";return l.createElement(Sv,Object.assign({ref:t},r,{component:a}))}),Ll=uD;Ll.Text=Yee;Ll.Link=Kee;Ll.Title=Qee;Ll.Paragraph=Uee;const Ky=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(s){var u=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(u.charAt(0)==="."){var f=r.toLowerCase(),d=u.toLowerCase(),h=[d];return(d===".jpg"||d===".jpeg")&&(h=[".jpg",".jpeg"]),h.some(function(g){return f.endsWith(g)})}return/\/\*$/.test(u)?o===u.replace(/\/.*$/,""):a===u?!0:/^\w+$/.test(u)?(br(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function Zee(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function OI(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Jee(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(s){n.append("".concat(a,"[]"),s)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Zee(e,t),OI(t)):e.onSuccess(OI(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var ete=(function(){var e=Qa(pr().mark(function t(n,r){var a,o,s,u,f,d,h,g;return pr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:d=function(){return d=Qa(pr().mark(function C(y){return pr().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(E){y.file(function(I){r(I)?(y.fullPath&&!I.webkitRelativePath&&(Object.defineProperties(I,{webkitRelativePath:{writable:!0}}),I.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(I,{webkitRelativePath:{writable:!1}})),E(I)):E(null)})}));case 1:case"end":return $.stop()}},C)})),d.apply(this,arguments)},f=function(C){return d.apply(this,arguments)},u=function(){return u=Qa(pr().mark(function C(y){var w,$,E,I,O;return pr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:w=y.createReader(),$=[];case 2:return T.next=5,new Promise(function(P){w.readEntries(P,function(){return P([])})});case 5:if(E=T.sent,I=E.length,I){T.next=9;break}return T.abrupt("break",12);case 9:for(O=0;O<I;O++)$.push(E[O]);T.next=2;break;case 12:return T.abrupt("return",$);case 13:case"end":return T.stop()}},C)})),u.apply(this,arguments)},s=function(C){return u.apply(this,arguments)},a=[],o=[],n.forEach(function(x){return o.push(x.webkitGetAsEntry())}),h=(function(){var x=Qa(pr().mark(function C(y,w){var $,E;return pr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(y){O.next=2;break}return O.abrupt("return");case 2:if(y.path=w||"",!y.isFile){O.next=10;break}return O.next=6,f(y);case 6:$=O.sent,$&&a.push($),O.next=15;break;case 10:if(!y.isDirectory){O.next=15;break}return O.next=13,s(y);case 13:E=O.sent,o.push.apply(o,Ae(E));case 15:case"end":return O.stop()}},C)}));return function(y,w){return x.apply(this,arguments)}})(),g=0;case 9:if(!(g<o.length)){b.next=15;break}return b.next=12,h(o[g]);case 12:g++,b.next=9;break;case 15:return b.abrupt("return",a);case 16:case"end":return b.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),tte=+new Date,nte=0;function Uy(){return"rc-upload-".concat(tte,"-").concat(++nte)}var rte=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ate=(function(e){ei(n,e);var t=yi(n);function n(){var r;yr(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),X(Ct(r),"state",{uid:Uy()}),X(Ct(r),"reqs",{}),X(Ct(r),"fileInput",void 0),X(Ct(r),"_isMounted",void 0),X(Ct(r),"onChange",function(u){var f=r.props,d=f.accept,h=f.directory,g=u.target.files,v=Ae(g).filter(function(b){return!h||Ky(b,d)});r.uploadFiles(v),r.reset()}),X(Ct(r),"onClick",function(u){var f=r.fileInput;if(f){var d=u.target,h=r.props.onClick;if(d&&d.tagName==="BUTTON"){var g=f.parentNode;g.focus(),d.blur()}f.click(),h&&h(u)}}),X(Ct(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),X(Ct(r),"onFileDrop",(function(){var u=Qa(pr().mark(function f(d){var h,g,v;return pr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(h=r.props.multiple,d.preventDefault(),d.type!=="dragover"){x.next=4;break}return x.abrupt("return");case 4:if(!r.props.directory){x.next=11;break}return x.next=7,ete(Array.prototype.slice.call(d.dataTransfer.items),function(C){return Ky(C,r.props.accept)});case 7:g=x.sent,r.uploadFiles(g),x.next=14;break;case 11:v=Ae(d.dataTransfer.files).filter(function(C){return Ky(C,r.props.accept)}),h===!1&&(v=v.slice(0,1)),r.uploadFiles(v);case 14:case"end":return x.stop()}},f)}));return function(f){return u.apply(this,arguments)}})()),X(Ct(r),"uploadFiles",function(u){var f=Ae(u),d=f.map(function(h){return h.uid=Uy(),r.processFile(h,f)});Promise.all(d).then(function(h){var g=r.props.onBatchStart;g==null||g(h.map(function(v){var b=v.origin,x=v.parsedFile;return{file:b,parsedFile:x}})),h.filter(function(v){return v.parsedFile!==null}).forEach(function(v){r.post(v)})})}),X(Ct(r),"processFile",(function(){var u=Qa(pr().mark(function f(d,h){var g,v,b,x,C,y,w,$,E;return pr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(g=r.props.beforeUpload,v=d,!g){O.next=14;break}return O.prev=3,O.next=6,g(d,h);case 6:v=O.sent,O.next=12;break;case 9:O.prev=9,O.t0=O.catch(3),v=!1;case 12:if(v!==!1){O.next=14;break}return O.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(b=r.props.action,typeof b!="function"){O.next=21;break}return O.next=18,b(d);case 18:x=O.sent,O.next=22;break;case 21:x=b;case 22:if(C=r.props.data,typeof C!="function"){O.next=29;break}return O.next=26,C(d);case 26:y=O.sent,O.next=30;break;case 29:y=C;case 30:return w=(_t(v)==="object"||typeof v=="string")&&v?v:d,w instanceof File?$=w:$=new File([w],d.name,{type:d.type}),E=$,E.uid=d.uid,O.abrupt("return",{origin:d,data:y,parsedFile:E,action:x});case 35:case"end":return O.stop()}},f,null,[[3,9]])}));return function(f,d){return u.apply(this,arguments)}})()),X(Ct(r),"saveFileInput",function(u){r.fileInput=u}),r}return xr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(a){var o=this,s=a.data,u=a.origin,f=a.action,d=a.parsedFile;if(this._isMounted){var h=this.props,g=h.onStart,v=h.customRequest,b=h.name,x=h.headers,C=h.withCredentials,y=h.method,w=u.uid,$=v||Jee,E={action:f,filename:b,data:s,file:d,headers:x,withCredentials:C,method:y||"post",onProgress:function(O){var R=o.props.onProgress;R==null||R(O,d)},onSuccess:function(O,R){var T=o.props.onSuccess;T==null||T(O,d,R),delete o.reqs[w]},onError:function(O,R){var T=o.props.onError;T==null||T(O,R,d),delete o.reqs[w]}};g(u),this.reqs[w]=$(E)}}},{key:"reset",value:function(){this.setState({uid:Uy()})}},{key:"abort",value:function(a){var o=this.reqs;if(a){var s=a.uid?a.uid:a;o[s]&&o[s].abort&&o[s].abort(),delete o[s]}else Object.keys(o).forEach(function(u){o[u]&&o[u].abort&&o[u].abort(),delete o[u]})}},{key:"render",value:function(){var a=this.props,o=a.component,s=a.prefixCls,u=a.className,f=a.classNames,d=f===void 0?{}:f,h=a.disabled,g=a.id,v=a.name,b=a.style,x=a.styles,C=x===void 0?{}:x,y=a.multiple,w=a.accept,$=a.capture,E=a.children,I=a.directory,O=a.openFileDialogOnClick,R=a.onMouseEnter,T=a.onMouseLeave,P=a.hasControlInside,N=qt(a,rte),k=ce(X(X(X({},s,!0),"".concat(s,"-disabled"),h),u,u)),z=I?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},V=h?{}:{onClick:O?this.onClick:function(){},onKeyDown:O?this.onKeyDown:function(){},onMouseEnter:R,onMouseLeave:T,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:P?void 0:"0"};return Se.createElement(o,Me({},V,{className:k,role:P?void 0:"button",style:b}),Se.createElement("input",Me({},sa(N,{aria:!0,data:!0}),{id:g,name:v,disabled:h,type:"file",ref:this.saveFileInput,onClick:function(L){return L.stopPropagation()},key:this.state.uid,style:te({display:"none"},C.input),className:d.input,accept:w},z,{multiple:y,onChange:this.onChange},$!=null?{capture:$}:{})),E)}}]),n})(l.Component);function Wy(){}var Cx=(function(e){ei(n,e);var t=yi(n);function n(){var r;yr(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),X(Ct(r),"uploader",void 0),X(Ct(r),"saveUploader",function(u){r.uploader=u}),r}return xr(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return Se.createElement(ate,Me({},this.props,{ref:this.saveUploader}))}}]),n})(l.Component);X(Cx,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Wy,onError:Wy,onSuccess:Wy,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const ite=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
          &:not(${t}-disabled):hover,
          &-hover:not(${t}-disabled)
        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
            p${t}-text,
            p${t}-hint
          `]:{color:e.colorTextDisabled}}}}}},ote=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:o}=e,s=`${t}-list-item`,u=`${s}-actions`,f=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},ro()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},Ai),{padding:`0 ${ne(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[u]:{whiteSpace:"nowrap",[f]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
              ${f}:focus-visible,
              &.picture ${f}
            `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${f}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[u]:{[`${n}, ${n}:hover`]:{color:e.colorError},[f]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},lte=e=>{const{componentCls:t}=e,n=new Dn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Dn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:wL(e)},n,r]},ste=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,s=`${t}-list`,u=`${s}-item`;return{[`${t}-wrapper`]:{[`
        ${s}${s}-picture,
        ${s}${s}-picture-card,
        ${s}${s}-picture-circle
      `]:{[u]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Ai),{width:r,height:r,lineHeight:ne(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${u}-progress`]:{bottom:a,width:`calc(100% - ${ne(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${u}-error`]:{borderColor:e.colorError,[`${u}-thumbnail ${n}`]:{[`svg path[fill='${Wc[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Wc.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${s}${s}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},cte=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,s=`${t}-list`,u=`${s}-item`,f=e.uploadPicCardSize;return{[`
      ${t}-wrapper${t}-picture-card-wrapper,
      ${t}-wrapper${t}-picture-circle-wrapper
    `]:Object.assign(Object.assign({},ro()),{display:"block",[`${t}${t}-select`]:{width:f,height:f,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:f,height:f,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[u]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${u}:hover`]:{[`&::before, ${u}-actions`]:{opacity:1}},[`${u}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
            ${n}-eye,
            ${n}-download,
            ${n}-delete
          `]:{zIndex:10,width:r,margin:`0 ${ne(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},ute=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},dte=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ln(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},fte=e=>({actionsColor:e.colorIcon}),mte=Kn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,s=yn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[dte(s),ite(s),ste(s),cte(s),ote(s),lte(s),ute(s),zg(s)]},fte);function Sh(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 Ch(e,t){const n=Ae(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function qy(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function hte(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const gte=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},dD=e=>e.indexOf("image/")===0,vte=e=>{if(e.type&&!e.thumbUrl)return dD(e.type);const t=e.thumbUrl||e.url||"",n=gte(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},xl=200;function pte(e){return new Promise(t=>{if(!e.type||!dD(e.type)){t("");return}const n=document.createElement("canvas");n.width=xl,n.height=xl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${xl}px; height: ${xl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:s}=a;let u=xl,f=xl,d=0,h=0;o>s?(f=s*(xl/o),h=-(f-u)/2):(u=o*(xl/s),d=-(u-f)/2),r.drawImage(a,d,h,u,f);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const bte=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:s,file:u,items:f,progress:d,iconRender:h,actionIconRender:g,itemRender:v,isImgUrl:b,showPreviewIcon:x,showRemoveIcon:C,showDownloadIcon:y,previewIcon:w,removeIcon:$,downloadIcon:E,extra:I,onPreview:O,onDownload:R,onClose:T}=e;var P,N;const{status:k}=u,[z,V]=l.useState(k);l.useEffect(()=>{k!=="removed"&&V(k)},[k]);const[B,L]=l.useState(!1);l.useEffect(()=>{const ie=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(ie)}},[]);const H=h(u);let j=l.createElement("div",{className:`${n}-icon`},H);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(z==="uploading"||!u.thumbUrl&&!u.url){const ie=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:z!=="uploading"});j=l.createElement("div",{className:ie},H)}else{const ie=b!=null&&b(u)?l.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${n}-list-item-image`,crossOrigin:u.crossOrigin}):H,de=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:b&&!b(u)});j=l.createElement("a",{className:de,onClick:ge=>O(u,ge),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ie)}const D=ce(`${n}-list-item`,`${n}-list-item-${z}`),F=typeof u.linkProps=="string"?JSON.parse(u.linkProps):u.linkProps,U=(typeof C=="function"?C(u):C)?g((typeof $=="function"?$(u):$)||l.createElement(OX,null),()=>T(u),n,o.removeFile,!0):null,A=(typeof y=="function"?y(u):y)&&z==="done"?g((typeof E=="function"?E(u):E)||l.createElement(NX,null),()=>R(u),n,o.downloadFile):null,K=s!=="picture-card"&&s!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ce(`${n}-list-item-actions`,{picture:s==="picture"})},A,U),q=typeof I=="function"?I(u):I,Y=q&&l.createElement("span",{className:`${n}-list-item-extra`},q),W=ce(`${n}-list-item-name`),Q=u.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:u.name},F,{href:u.url,onClick:ie=>O(u,ie)}),u.name,Y):l.createElement("span",{key:"view",className:W,onClick:ie=>O(u,ie),title:u.name},u.name,Y),Z=(typeof x=="function"?x(u):x)&&(u.url||u.thumbUrl)?l.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ie=>O(u,ie),title:o.previewFile},typeof w=="function"?w(u):w||l.createElement(bT,null)):null,ae=(s==="picture-card"||s==="picture-circle")&&z!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},Z,z==="done"&&A,U),{getPrefixCls:J}=l.useContext(Yt),se=J(),he=l.createElement("div",{className:D},j,Q,K,ae,B&&l.createElement(xi,{motionName:`${se}-fade`,visible:z==="uploading",motionDeadline:2e3},ie=>{let{className:de}=ie;const ge="percent"in u?l.createElement(mX,Object.assign({},d,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return l.createElement("div",{className:ce(`${n}-list-item-progress`,de)},ge)})),oe=u.response&&typeof u.response=="string"?u.response:((P=u.error)===null||P===void 0?void 0:P.statusText)||((N=u.error)===null||N===void 0?void 0:N.message)||o.uploadError,le=z==="error"?l.createElement(bi,{title:oe,getPopupContainer:ie=>ie.parentNode},he):he;return l.createElement("div",{className:ce(`${n}-list-item-container`,r),style:a,ref:t},v?v(le,u,f,{download:R.bind(null,u),preview:O.bind(null,u),remove:T.bind(null,u)}):le)}),yte=(e,t)=>{const{listType:n="text",previewFile:r=pte,onPreview:a,onDownload:o,onRemove:s,locale:u,iconRender:f,isImageUrl:d=vte,prefixCls:h,items:g=[],showPreviewIcon:v=!0,showRemoveIcon:b=!0,showDownloadIcon:x=!1,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:O=!0,itemRender:R,disabled:T}=e,P=IS(),[N,k]=l.useState(!1),z=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(W=>{Y.thumbUrl=W||"",P()}))})},[n,g,r]),l.useEffect(()=>{k(!0)},[]);const V=(Y,W)=>{if(a)return W==null||W.preventDefault(),a(Y)},B=Y=>{typeof o=="function"?o(Y):Y.url&&window.open(Y.url)},L=Y=>{s==null||s(Y)},H=Y=>{if(f)return f(Y,n);const W=Y.status==="uploading";if(n.startsWith("picture")){const Q=n==="picture"?l.createElement(Fo,null):u.uploading,Z=d!=null&&d(Y)?l.createElement(cQ,null):l.createElement(BX,null);return W?Q:Z}return W?l.createElement(Fo,null):l.createElement(oQ,null)},j=(Y,W,Q,Z,ae)=>{const J={type:"text",size:"small",title:Z,onClick:se=>{var he,oe;W(),l.isValidElement(Y)&&((oe=(he=Y.props).onClick)===null||oe===void 0||oe.call(he,se))},className:`${Q}-list-item-action`,disabled:ae?T:!1};return l.isValidElement(Y)?l.createElement(mn,Object.assign({},J,{icon:pa(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):l.createElement(mn,Object.assign({},J),l.createElement("span",null,Y))};l.useImperativeHandle(t,()=>({handlePreview:V,handleDownload:B}));const{getPrefixCls:D}=l.useContext(Yt),F=D("upload",h),U=D(),A=ce(`${F}-list`,`${F}-list-${n}`),K=l.useMemo(()=>tr(cf(U),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[U]),q=Object.assign(Object.assign({},z?{}:K),{motionDeadline:2e3,motionName:`${F}-${z?"animate-inline":"animate"}`,keys:Ae(g.map(Y=>({key:Y.uid,file:Y}))),motionAppear:N});return l.createElement("div",{className:A},l.createElement(oS,Object.assign({},q,{component:!1}),Y=>{let{key:W,file:Q,className:Z,style:ae}=Y;return l.createElement(bte,{key:W,locale:u,prefixCls:F,className:Z,style:ae,file:Q,items:g,progress:E,listType:n,isImgUrl:d,showPreviewIcon:v,showRemoveIcon:b,showDownloadIcon:x,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,iconRender:H,actionIconRender:j,itemRender:R,onPreview:V,onDownload:B,onClose:L})}),I&&l.createElement(xi,Object.assign({},q,{visible:O,forceRender:!0}),Y=>{let{className:W,style:Q}=Y;return pa(I,Z=>({className:ce(Z.className,W),style:Object.assign(Object.assign(Object.assign({},Q),{pointerEvents:W?"none":void 0}),Z.style)}))}))},xte=l.forwardRef(yte);var Ste=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(h){try{d(r.next(h))}catch(g){s(g)}}function f(h){try{d(r.throw(h))}catch(g){s(g)}}function d(h){h.done?o(h.value):a(h.value).then(u,f)}d((r=r.apply(e,[])).next())})};const Ad=`__LIST_IGNORE_${Date.now()}__`,Cte=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:s="text",onPreview:u,onDownload:f,onChange:d,onDrop:h,previewFile:g,disabled:v,locale:b,iconRender:x,isImageUrl:C,progress:y,prefixCls:w,className:$,type:E="select",children:I,style:O,itemRender:R,maxCount:T,data:P={},multiple:N=!1,hasControlInside:k=!0,action:z="",accept:V="",supportServerRender:B=!0,rootClassName:L}=e,H=l.useContext(Oa),j=v??H,[D,F]=Wn(r||[],{value:n,postState:ye=>ye??[]}),[U,A]=l.useState("drop"),K=l.useRef(null),q=l.useRef(null);l.useMemo(()=>{const ye=Date.now();(n||[]).forEach((Ce,_e)=>{!Ce.uid&&!Object.isFrozen(Ce)&&(Ce.uid=`__AUTO__${ye}_${_e}__`)})},[n]);const Y=(ye,Ce,_e)=>{let be=Ae(Ce),ke=!1;T===1?be=be.slice(-1):T&&(ke=be.length>T,be=be.slice(0,T)),Pi.flushSync(()=>{F(be)});const st={file:ye,fileList:be};_e&&(st.event=_e),(!ke||ye.status==="removed"||be.some(Dt=>Dt.uid===ye.uid))&&Pi.flushSync(()=>{d==null||d(st)})},W=(ye,Ce)=>Ste(void 0,void 0,void 0,function*(){const{beforeUpload:_e,transformFile:be}=e;let ke=ye;if(_e){const st=yield _e(ye,Ce);if(st===!1)return!1;if(delete ye[Ad],st===Ad)return Object.defineProperty(ye,Ad,{value:!0,configurable:!0}),!1;typeof st=="object"&&st&&(ke=st)}return be&&(ke=yield be(ke)),ke}),Q=ye=>{const Ce=ye.filter(ke=>!ke.file[Ad]);if(!Ce.length)return;const _e=Ce.map(ke=>Sh(ke.file));let be=Ae(D);_e.forEach(ke=>{be=Ch(ke,be)}),_e.forEach((ke,st)=>{let Dt=ke;if(Ce[st].parsedFile)ke.status="uploading";else{const{originFileObj:Wt}=ke;let Je;try{Je=new File([Wt],Wt.name,{type:Wt.type})}catch{Je=new Blob([Wt],{type:Wt.type}),Je.name=Wt.name,Je.lastModifiedDate=new Date,Je.lastModified=new Date().getTime()}Je.uid=ke.uid,Dt=Je}Y(Dt,be)})},Z=(ye,Ce,_e)=>{try{typeof ye=="string"&&(ye=JSON.parse(ye))}catch{}if(!qy(Ce,D))return;const be=Sh(Ce);be.status="done",be.percent=100,be.response=ye,be.xhr=_e;const ke=Ch(be,D);Y(be,ke)},ae=(ye,Ce)=>{if(!qy(Ce,D))return;const _e=Sh(Ce);_e.status="uploading",_e.percent=ye.percent;const be=Ch(_e,D);Y(_e,be,ye)},J=(ye,Ce,_e)=>{if(!qy(_e,D))return;const be=Sh(_e);be.error=ye,be.response=Ce,be.status="error";const ke=Ch(be,D);Y(be,ke)},se=ye=>{let Ce;Promise.resolve(typeof a=="function"?a(ye):a).then(_e=>{var be;if(_e===!1)return;const ke=hte(ye,D);ke&&(Ce=Object.assign(Object.assign({},ye),{status:"removed"}),D==null||D.forEach(st=>{const Dt=Ce.uid!==void 0?"uid":"name";st[Dt]===Ce[Dt]&&!Object.isFrozen(st)&&(st.status="removed")}),(be=K.current)===null||be===void 0||be.abort(Ce),Y(Ce,ke))})},he=ye=>{A(ye.type),ye.type==="drop"&&(h==null||h(ye))};l.useImperativeHandle(t,()=>({onBatchStart:Q,onSuccess:Z,onProgress:ae,onError:J,fileList:D,upload:K.current,nativeElement:q.current}));const{getPrefixCls:oe,direction:le,upload:ie}=l.useContext(Yt),de=oe("upload",w),ge=Object.assign(Object.assign({onBatchStart:Q,onError:J,onProgress:ae,onSuccess:Z},e),{data:P,multiple:N,action:z,accept:V,supportServerRender:B,prefixCls:de,disabled:j,beforeUpload:W,onChange:void 0,hasControlInside:k});delete ge.className,delete ge.style,(!I||j)&&delete ge.id;const me=`${de}-wrapper`,[xe,Ee,He]=mte(de,me),[je]=Wo("Upload",Ho.Upload),{showRemoveIcon:ve,showPreviewIcon:$e,showDownloadIcon:we,removeIcon:Re,previewIcon:ze,downloadIcon:De,extra:Ye}=typeof o=="boolean"?{}:o,Xe=typeof ve>"u"?!j:ve,Le=(ye,Ce)=>o?l.createElement(xte,{prefixCls:de,listType:s,items:D,previewFile:g,onPreview:u,onDownload:f,onRemove:se,showRemoveIcon:Xe,showPreviewIcon:$e,showDownloadIcon:we,removeIcon:Re,previewIcon:ze,downloadIcon:De,iconRender:x,extra:Ye,locale:Object.assign(Object.assign({},je),b),isImageUrl:C,progress:y,appendAction:ye,appendActionVisible:Ce,itemRender:R,disabled:j}):ye,Ke=ce(me,$,L,Ee,He,ie==null?void 0:ie.className,{[`${de}-rtl`]:le==="rtl",[`${de}-picture-card-wrapper`]:s==="picture-card",[`${de}-picture-circle-wrapper`]:s==="picture-circle"}),Fe=Object.assign(Object.assign({},ie==null?void 0:ie.style),O);if(E==="drag"){const ye=ce(Ee,de,`${de}-drag`,{[`${de}-drag-uploading`]:D.some(Ce=>Ce.status==="uploading"),[`${de}-drag-hover`]:U==="dragover",[`${de}-disabled`]:j,[`${de}-rtl`]:le==="rtl"});return xe(l.createElement("span",{className:Ke,ref:q},l.createElement("div",{className:ye,style:Fe,onDrop:he,onDragOver:he,onDragLeave:he},l.createElement(Cx,Object.assign({},ge,{ref:K,className:`${de}-btn`}),l.createElement("div",{className:`${de}-drag-container`},I))),Le()))}const Ie=ce(de,`${de}-select`,{[`${de}-disabled`]:j,[`${de}-hidden`]:!I}),Ue=l.createElement("div",{className:Ie},l.createElement(Cx,Object.assign({},ge,{ref:K})));return xe(s==="picture-card"||s==="picture-circle"?l.createElement("span",{className:Ke,ref:q},Le(Ue,!!I)):l.createElement("span",{className:Ke,ref:q},Ue,Le()))},fD=l.forwardRef(Cte);var wte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $te=l.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:a=!1}=e,o=wte(e,["style","height","hasControlInside"]);return l.createElement(fD,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),ya=fD;ya.Dragger=$te;ya.LIST_IGNORE=Ad;var wd={},II;function Ete(){if(II)return wd;II=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.parse=s,wd.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function s(v,b){const x=new o,C=v.length;if(C<2)return x;const y=(b==null?void 0:b.decode)||h;let w=0;do{const $=v.indexOf("=",w);if($===-1)break;const E=v.indexOf(";",w),I=E===-1?C:E;if($>I){w=v.lastIndexOf(";",$-1)+1;continue}const O=u(v,w,$),R=f(v,$,O),T=v.slice(O,R);if(x[T]===void 0){let P=u(v,$+1,I),N=f(v,I,P);const k=y(v.slice(P,N));x[T]=k}w=I+1}while(w<C);return x}function u(v,b,x){do{const C=v.charCodeAt(b);if(C!==32&&C!==9)return b}while(++b<x);return x}function f(v,b,x){for(;b>x;){const C=v.charCodeAt(--b);if(C!==32&&C!==9)return b+1}return x}function d(v,b,x){const C=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const y=C(b);if(!t.test(y))throw new TypeError(`argument val is invalid: ${b}`);let w=v+"="+y;if(!x)return w;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);w+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);w+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);w+="; Path="+x.path}if(x.expires){if(!g(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);w+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(w+="; HttpOnly"),x.secure&&(w+="; Secure"),x.partitioned&&(w+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return w}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function g(v){return a.call(v)==="[object Date]"}return wd}Ete();var RI="popstate";function _te(e={}){function t(r,a){let{pathname:o,search:s,hash:u}=r.location;return wx("",{pathname:o,search:s,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:yf(a)}return Ite(t,n,null,e)}function Or(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Li(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ote(){return Math.random().toString(36).substring(2,10)}function NI(e,t){return{usr:e.state,key:e.key,idx:t}}function wx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?hu(t):t,state:n,key:t&&t.key||r||Ote()}}function yf({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function hu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Ite(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,u="POP",f=null,d=h();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function h(){return(s.state||{idx:null}).idx}function g(){u="POP";let y=h(),w=y==null?null:y-d;d=y,f&&f({action:u,location:C.location,delta:w})}function v(y,w){u="PUSH";let $=wx(C.location,y,w);d=h()+1;let E=NI($,d),I=C.createHref($);try{s.pushState(E,"",I)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(I)}o&&f&&f({action:u,location:C.location,delta:1})}function b(y,w){u="REPLACE";let $=wx(C.location,y,w);d=h();let E=NI($,d),I=C.createHref($);s.replaceState(E,"",I),o&&f&&f({action:u,location:C.location,delta:0})}function x(y){let w=a.location.origin!=="null"?a.location.origin:a.location.href,$=typeof y=="string"?y:yf(y);return $=$.replace(/ $/,"%20"),Or(w,`No window.location.(origin|href) available to create URL for href: ${$}`),new URL($,w)}let C={get action(){return u},get location(){return e(a,s)},listen(y){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(RI,g),f=y,()=>{a.removeEventListener(RI,g),f=null}},createHref(y){return t(a,y)},createURL:x,encodeLocation(y){let w=x(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:v,replace:b,go(y){return s.go(y)}};return C}function mD(e,t,n="/"){return Rte(e,t,n,!1)}function Rte(e,t,n,r){let a=typeof t=="string"?hu(t):t,o=Ko(a.pathname||"/",n);if(o==null)return null;let s=hD(e);Nte(s);let u=null;for(let f=0;u==null&&f<s.length;++f){let d=Bte(o);u=Lte(s[f],d,r)}return u}function hD(e,t=[],n=[],r=""){let a=(o,s,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};f.relativePath.startsWith("/")&&(Or(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let d=Ao([r,f.relativePath]),h=n.concat(f);o.children&&o.children.length>0&&(Or(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),hD(o.children,t,h,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:Ate(d,o.index),routesMeta:h})};return e.forEach((o,s)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))a(o,s);else for(let f of gD(o.path))a(o,s,f)}),t}function gD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let s=gD(r.join("/")),u=[];return u.push(...s.map(f=>f===""?o:[o,f].join("/"))),a&&u.push(...s),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function Nte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zte(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Mte=/^:[\w-]+$/,jte=3,Tte=2,Dte=1,Pte=10,kte=-2,MI=e=>e==="*";function Ate(e,t){let n=e.split("/"),r=n.length;return n.some(MI)&&(r+=kte),t&&(r+=Tte),n.filter(a=>!MI(a)).reduce((a,o)=>a+(Mte.test(o)?jte:o===""?Dte:Pte),r)}function zte(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Lte(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",s=[];for(let u=0;u<r.length;++u){let f=r[u],d=u===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",g=Sg({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},h),v=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=Sg({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!g)return null;Object.assign(a,g.params),s.push({params:a,pathname:Ao([o,g.pathname]),pathnameBase:Ute(Ao([o,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(o=Ao([o,g.pathnameBase]))}return s}function Sg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Hte(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((d,{paramName:h,isOptional:g},v)=>{if(h==="*"){let x=u[v]||"";s=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=u[v];return g&&!b?d[h]=void 0:d[h]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function Hte(e,t=!1,n=!0){Li(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Bte(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Li(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ko(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Fte(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?hu(e):e;return{pathname:n?n.startsWith("/")?n:Vte(n,t):t,search:Wte(r),hash:qte(a)}}function Vte(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Yy(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Kte(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function EC(e){let t=Kte(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function _C(e,t,n,r=!1){let a;typeof e=="string"?a=hu(e):(a={...e},Or(!a.pathname||!a.pathname.includes("?"),Yy("?","pathname","search",a)),Or(!a.pathname||!a.pathname.includes("#"),Yy("#","pathname","hash",a)),Or(!a.search||!a.search.includes("#"),Yy("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,u;if(s==null)u=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),g-=1;a.pathname=v.join("/")}u=g>=0?t[g]:"/"}let f=Fte(a,u),d=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||h)&&(f.pathname+="/"),f}var Ao=e=>e.join("/").replace(/\/\/+/g,"/"),Ute=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Yte(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var vD=["POST","PUT","PATCH","DELETE"];new Set(vD);var Gte=["GET",...vD];new Set(Gte);var gu=l.createContext(null);gu.displayName="DataRouter";var Cv=l.createContext(null);Cv.displayName="DataRouterState";var pD=l.createContext({isTransitioning:!1});pD.displayName="ViewTransition";var Xte=l.createContext(new Map);Xte.displayName="Fetchers";var Qte=l.createContext(null);Qte.displayName="Await";var Ui=l.createContext(null);Ui.displayName="Navigation";var Hf=l.createContext(null);Hf.displayName="Location";var Wi=l.createContext({outlet:null,matches:[],isDataRoute:!1});Wi.displayName="Route";var OC=l.createContext(null);OC.displayName="RouteError";function Zte(e,{relative:t}={}){Or(vu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(Ui),{hash:a,pathname:o,search:s}=Bf(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Ao([n,o])),r.createHref({pathname:u,search:s,hash:a})}function vu(){return l.useContext(Hf)!=null}function Hl(){return Or(vu(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(Hf).location}var bD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yD(e){l.useContext(Ui).static||l.useLayoutEffect(e)}function wv(){let{isDataRoute:e}=l.useContext(Wi);return e?mne():Jte()}function Jte(){Or(vu(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(gu),{basename:t,navigator:n}=l.useContext(Ui),{matches:r}=l.useContext(Wi),{pathname:a}=Hl(),o=JSON.stringify(EC(r)),s=l.useRef(!1);return yD(()=>{s.current=!0}),l.useCallback((f,d={})=>{if(Li(s.current,bD),!s.current)return;if(typeof f=="number"){n.go(f);return}let h=_C(f,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ao([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,o,a,e])}var ene=l.createContext(null);function tne(e){let t=l.useContext(Wi).outlet;return t&&l.createElement(ene.Provider,{value:e},t)}function Bf(e,{relative:t}={}){let{matches:n}=l.useContext(Wi),{pathname:r}=Hl(),a=JSON.stringify(EC(n));return l.useMemo(()=>_C(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function nne(e,t){return xD(e,t)}function xD(e,t,n,r){var $;Or(vu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=l.useContext(Ui),{matches:s}=l.useContext(Wi),u=s[s.length-1],f=u?u.params:{},d=u?u.pathname:"/",h=u?u.pathnameBase:"/",g=u&&u.route;{let E=g&&g.path||"";SD(d,!g||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let v=Hl(),b;if(t){let E=typeof t=="string"?hu(t):t;Or(h==="/"||(($=E.pathname)==null?void 0:$.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${E.pathname}" was given in the \`location\` prop.`),b=E}else b=v;let x=b.pathname||"/",C=x;if(h!=="/"){let E=h.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=!o&&n&&n.matches&&n.matches.length>0?n.matches:mD(e,{pathname:C});Li(g||y!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Li(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=lne(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:Ao([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Ao([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),s,n,r);return t&&w?l.createElement(Hf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},w):w}function rne(){let e=fne(),t=Yte(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:o},"ErrorBoundary")," or"," ",l.createElement("code",{style:o},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,s)}var ane=l.createElement(rne,null),ine=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?l.createElement(Wi.Provider,{value:this.props.routeContext},l.createElement(OC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function one({routeContext:e,match:t,children:n}){let r=l.useContext(gu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(Wi.Provider,{value:e},n)}function lne(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n==null?void 0:n.errors;if(o!=null){let f=a.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);Or(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:h,errors:g}=n,v=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||v){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,h)=>{let g,v=!1,b=null,x=null;n&&(g=o&&d.route.id?o[d.route.id]:void 0,b=d.route.errorElement||ane,s&&(u<0&&h===0?(SD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):u===h&&(v=!0,x=d.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,h+1)),y=()=>{let w;return g?w=b:v?w=x:d.route.Component?w=l.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,l.createElement(one,{match:d,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?l.createElement(ine,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:y(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):y()},null)}function IC(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sne(e){let t=l.useContext(gu);return Or(t,IC(e)),t}function cne(e){let t=l.useContext(Cv);return Or(t,IC(e)),t}function une(e){let t=l.useContext(Wi);return Or(t,IC(e)),t}function RC(e){let t=une(e),n=t.matches[t.matches.length-1];return Or(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dne(){return RC("useRouteId")}function fne(){var r;let e=l.useContext(OC),t=cne("useRouteError"),n=RC("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function mne(){let{router:e}=sne("useNavigate"),t=RC("useNavigate"),n=l.useRef(!1);return yD(()=>{n.current=!0}),l.useCallback(async(a,o={})=>{Li(n.current,bD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var jI={};function SD(e,t,n){!t&&!jI[e]&&(jI[e]=!0,Li(!1,n))}l.memo(hne);function hne({routes:e,future:t,state:n}){return xD(e,void 0,n,t)}function gne({to:e,replace:t,state:n,relative:r}){Or(vu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=l.useContext(Ui);Li(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=l.useContext(Wi),{pathname:s}=Hl(),u=wv(),f=_C(e,EC(o),s,r==="path"),d=JSON.stringify(f);return l.useEffect(()=>{u(JSON.parse(d),{replace:t,state:n,relative:r})},[u,d,r,t,n]),null}function vne(e){return tne(e.context)}function Xt(e){Or(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pne({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Or(!vu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:s,navigator:a,static:o,future:{}}),[s,a,o]);typeof n=="string"&&(n=hu(n));let{pathname:f="/",search:d="",hash:h="",state:g=null,key:v="default"}=n,b=l.useMemo(()=>{let x=Ko(f,s);return x==null?null:{location:{pathname:x,search:d,hash:h,state:g,key:v},navigationType:r}},[s,f,d,h,g,v,r]);return Li(b!=null,`<Router basename="${s}"> is not able to match the URL "${f}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:l.createElement(Ui.Provider,{value:u},l.createElement(Hf.Provider,{children:t,value:b}))}function bne({children:e,location:t}){return nne($x(e),t)}function $x(e,t=[]){let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,$x(r.props.children,o));return}Or(r.type===Xt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Or(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=$x(r.props.children,o)),n.push(s)}),n}var Gh="get",Xh="application/x-www-form-urlencoded";function $v(e){return e!=null&&typeof e.tagName=="string"}function yne(e){return $v(e)&&e.tagName.toLowerCase()==="button"}function xne(e){return $v(e)&&e.tagName.toLowerCase()==="form"}function Sne(e){return $v(e)&&e.tagName.toLowerCase()==="input"}function Cne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wne(e,t){return e.button===0&&(!t||t==="_self")&&!Cne(e)}var wh=null;function $ne(){if(wh===null)try{new FormData(document.createElement("form"),0),wh=!1}catch{wh=!0}return wh}var Ene=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gy(e){return e!=null&&!Ene.has(e)?(Li(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xh}"`),null):e}function _ne(e,t){let n,r,a,o,s;if(xne(e)){let u=e.getAttribute("action");r=u?Ko(u,t):null,n=e.getAttribute("method")||Gh,a=Gy(e.getAttribute("enctype"))||Xh,o=new FormData(e)}else if(yne(e)||Sne(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(r=f?Ko(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Gh,a=Gy(e.getAttribute("formenctype"))||Gy(u.getAttribute("enctype"))||Xh,o=new FormData(u,e),!$ne()){let{name:d,type:h,value:g}=e;if(h==="image"){let v=d?`${d}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else d&&o.append(d,g)}}else{if($v(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Gh,r=null,a=Xh,s=e}return o&&a==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:s}}function NC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function One(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ine(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Rne(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let s=await One(o,n);return s.links?s.links():[]}return[]}));return Tne(r.flat(1).filter(Ine).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function TI(e,t,n,r,a,o){let s=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,u=(f,d)=>{var h;return n[d].pathname!==f.pathname||((h=n[d].route.path)==null?void 0:h.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,d)=>s(f,d)||u(f,d)):o==="data"?t.filter((f,d)=>{var g;let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(s(f,d)||u(f,d))return!0;if(f.route.shouldRevalidate){let v=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Nne(e,t,{includeHydrateFallback:n}={}){return Mne(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function Mne(e){return[...new Set(e)]}function jne(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Tne(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(jne(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}var Dne=new Set([100,101,204,205]);function Pne(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Ko(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function CD(){let e=l.useContext(gu);return NC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kne(){let e=l.useContext(Cv);return NC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var MC=l.createContext(void 0);MC.displayName="FrameworkContext";function wD(){let e=l.useContext(MC);return NC(e,"You must render this element inside a <HydratedRouter> element"),e}function Ane(e,t){let n=l.useContext(MC),[r,a]=l.useState(!1),[o,s]=l.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:h,onTouchStart:g}=t,v=l.useRef(null);l.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let C=w=>{w.forEach($=>{s($.isIntersecting)})},y=new IntersectionObserver(C,{threshold:.5});return v.current&&y.observe(v.current),()=>{y.disconnect()}}},[e]),l.useEffect(()=>{if(r){let C=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(C)}}},[r]);let b=()=>{a(!0)},x=()=>{a(!1),s(!1)};return n?e!=="intent"?[o,v,{}]:[o,v,{onFocus:$d(u,b),onBlur:$d(f,x),onMouseEnter:$d(d,b),onMouseLeave:$d(h,x),onTouchStart:$d(g,b)}]:[!1,v,{}]}function $d(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zne({page:e,...t}){let{router:n}=CD(),r=l.useMemo(()=>mD(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(Hne,{page:e,matches:r,...t}):null}function Lne(e){let{manifest:t,routeModules:n}=wD(),[r,a]=l.useState([]);return l.useEffect(()=>{let o=!1;return Rne(e,t,n).then(s=>{o||a(s)}),()=>{o=!0}},[e,t,n]),r}function Hne({page:e,matches:t,...n}){let r=Hl(),{manifest:a,routeModules:o}=wD(),{basename:s}=CD(),{loaderData:u,matches:f}=kne(),d=l.useMemo(()=>TI(e,t,f,a,r,"data"),[e,t,f,a,r]),h=l.useMemo(()=>TI(e,t,f,a,r,"assets"),[e,t,f,a,r]),g=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,C=!1;if(t.forEach(w=>{var E;let $=a.routes[w.route.id];!$||!$.hasLoader||(!d.some(I=>I.route.id===w.route.id)&&w.route.id in u&&((E=o[w.route.id])!=null&&E.shouldRevalidate)||$.hasClientLoader?C=!0:x.add(w.route.id))}),x.size===0)return[];let y=Pne(e,s);return C&&x.size>0&&y.searchParams.set("_routes",t.filter(w=>x.has(w.route.id)).map(w=>w.route.id).join(",")),[y.pathname+y.search]},[s,u,r,a,d,t,e,o]),v=l.useMemo(()=>Nne(h,a),[h,a]),b=Lne(h);return l.createElement(l.Fragment,null,g.map(x=>l.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>l.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),b.map(({key:x,link:C})=>l.createElement("link",{key:x,...C})))}function Bne(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var $D=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$D&&(window.__reactRouterVersion="7.5.3")}catch{}function Fne({basename:e,children:t,window:n}){let r=l.useRef();r.current==null&&(r.current=_te({window:n,v5Compat:!0}));let a=r.current,[o,s]=l.useState({action:a.action,location:a.location}),u=l.useCallback(f=>{l.startTransition(()=>s(f))},[s]);return l.useLayoutEffect(()=>a.listen(u),[a,u]),l.createElement(pne,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var ED=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jC=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:s,state:u,target:f,to:d,preventScrollReset:h,viewTransition:g,...v},b){let{basename:x}=l.useContext(Ui),C=typeof d=="string"&&ED.test(d),y,w=!1;if(typeof d=="string"&&C&&(y=d,$D))try{let N=new URL(window.location.href),k=d.startsWith("//")?new URL(N.protocol+d):new URL(d),z=Ko(k.pathname,x);k.origin===N.origin&&z!=null?d=z+k.search+k.hash:w=!0}catch{Li(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=Zte(d,{relative:a}),[E,I,O]=Ane(r,v),R=Wne(d,{replace:s,state:u,target:f,preventScrollReset:h,relative:a,viewTransition:g});function T(N){t&&t(N),N.defaultPrevented||R(N)}let P=l.createElement("a",{...v,...O,href:y||$,onClick:w||o?t:T,ref:Bne(b,I),target:f,"data-discover":!C&&n==="render"?"true":void 0});return E&&!C?l.createElement(l.Fragment,null,P,l.createElement(zne,{page:$})):P});jC.displayName="Link";var Vne=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:s,viewTransition:u,children:f,...d},h){let g=Bf(s,{relative:d.relative}),v=Hl(),b=l.useContext(Cv),{navigator:x,basename:C}=l.useContext(Ui),y=b!=null&&Qne(g)&&u===!0,w=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,$=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||($=$.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&C&&(E=Ko(E,C)||E);const I=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=$===w||!a&&$.startsWith(w)&&$.charAt(I)==="/",R=E!=null&&(E===w||!a&&E.startsWith(w)&&E.charAt(w.length)==="/"),T={isActive:O,isPending:R,isTransitioning:y},P=O?t:void 0,N;typeof r=="function"?N=r(T):N=[r,O?"active":null,R?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let k=typeof o=="function"?o(T):o;return l.createElement(jC,{...d,"aria-current":P,className:N,ref:h,style:k,to:s,viewTransition:u},typeof f=="function"?f(T):f)});Vne.displayName="NavLink";var Kne=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=Gh,action:u,onSubmit:f,relative:d,preventScrollReset:h,viewTransition:g,...v},b)=>{let x=Gne(),C=Xne(u,{relative:d}),y=s.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&ED.test(u),$=E=>{if(f&&f(E),E.defaultPrevented)return;E.preventDefault();let I=E.nativeEvent.submitter,O=(I==null?void 0:I.getAttribute("formmethod"))||s;x(I||E.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:o,relative:d,preventScrollReset:h,viewTransition:g})};return l.createElement("form",{ref:b,method:y,action:C,onSubmit:r?f:$,...v,"data-discover":!w&&e==="render"?"true":void 0})});Kne.displayName="Form";function Une(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _D(e){let t=l.useContext(gu);return Or(t,Une(e)),t}function Wne(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:s}={}){let u=wv(),f=Hl(),d=Bf(e,{relative:o});return l.useCallback(h=>{if(wne(h,t)){h.preventDefault();let g=n!==void 0?n:yf(f)===yf(d);u(e,{replace:g,state:r,preventScrollReset:a,relative:o,viewTransition:s})}},[f,u,d,n,r,t,e,a,o,s])}var qne=0,Yne=()=>`__${String(++qne)}__`;function Gne(){let{router:e}=_D("useSubmit"),{basename:t}=l.useContext(Ui),n=dne();return l.useCallback(async(r,a={})=>{let{action:o,method:s,encType:u,formData:f,body:d}=_ne(r,t);if(a.navigate===!1){let h=a.fetcherKey||Yne();await e.fetch(h,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||s,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||s,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Xne(e,{relative:t}={}){let{basename:n}=l.useContext(Ui),r=l.useContext(Wi);Or(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Bf(e||".",{relative:t})},s=Hl();if(e==null){o.search=s.search;let u=new URLSearchParams(o.search),f=u.getAll("index");if(f.some(h=>h==="")){u.delete("index"),f.filter(g=>g).forEach(g=>u.append("index",g));let h=u.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ao([n,o.pathname])),yf(o)}function Qne(e,t={}){let n=l.useContext(pD);Or(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_D("useViewTransitionState"),a=Bf(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ko(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ko(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sg(a.pathname,s)!=null||Sg(a.pathname,o)!=null}new TextEncoder;[...Dne];const OD=l.createContext(void 0),Zne=({children:e})=>{const[t,n]=l.useState(null),[r,a]=l.useState(null),[o,s]=l.useState(""),u=async()=>{try{const d=o+"/ui/login_flow";window.location.href=d}catch(d){console.error("Login error:",d)}},f=()=>{n(null);const d=o+"/ui/logout";window.location.href=d};return S.jsx(OD.Provider,{value:{serverUrl:o,setServerUrl:s,idToken:t,setIdToken:n,userId:r,setUserId:a,login:u,logout:f},children:e})},kn=()=>{const e=l.useContext(OD);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Jne=async e=>{try{const t=e+"/ui/token",n=await fetch(t,{method:"GET",credentials:"include"});if(!n.ok)throw new Error("Failed to fetch token");return await n.json()}catch(t){return console.error(t),null}},ere=async e=>{try{const t=e+"/ui/auth_method",n=await fetch(t,{method:"GET",credentials:"include"});if(!n.ok)throw new Error("Failed to fetch auth method");return(await n.json()).auth_method}catch(t){return console.error(t),"None"}},ar=async(e,t,n)=>{const r=n+"/kmip/2_1",a=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...t&&{Authorization:`Bearer ${t}`}},body:JSON.stringify(e)});if(!a.ok){const o=await a.text();throw new Error(`${a.status}: ${o}`)}return JSON.stringify(await a.json())},ID=async(e,t,n,r)=>{const a=r+e,o=await fetch(a,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...n&&{Authorization:`Bearer ${n}`}},body:JSON.stringify(t)});if(!o.ok){const s=await o.text();throw new Error(`${o.status}: ${s}`)}return await o.json()},lo=async(e,t,n)=>{const r=n+e,a=await fetch(r,{method:"GET",credentials:"include",headers:{...t&&{Authorization:`Bearer ${t}`}}});if(!a.ok){const o=await a.text();throw new Error(`${a.status}: ${o}`)}return await a.json()},Ps=(e,t,n)=>{const r=new Blob([e],{type:n}),a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},Ff=(e,t,n)=>{let r;if(n==="application/pdf"){let o="";const s=new Uint8Array(e),u=s.byteLength;for(let d=0;d<u;d++)o+=String.fromCharCode(s[d]);r="data:application/pdf;base64,"+btoa(o)}else{const s=new TextDecoder("utf-8").decode(new Uint8Array(e)),u=new Blob([s],{type:"application/octet-stream"});r=URL.createObjectURL(u)}const a=document.createElement("a");a.href=r,a.download=t,document.body.appendChild(a),setTimeout(()=>{a.click(),document.body.removeChild(a)},66),setTimeout(()=>URL.revokeObjectURL(r),1e3)},Vf=e=>{var r;const t=((r=e.split(".").pop())==null?void 0:r.toLowerCase())||"";return{pdf:"application/pdf",txt:"text/plain",csv:"text/csv",json:"application/json",xml:"application/xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",mp4:"video/mp4",mp3:"audio/mpeg",zip:"application/zip",tar:"application/x-tar",rar:"application/vnd.rar"}[t]||"application/octet-stream"},RD=e=>{switch(e){case"rsa":case"ec":case"symmetric":case"covercrypt":return"key";case"certificate":return"certificate";case"secret-data":return"secret data";default:return"object"}},ND=e=>{switch(e){case"rsa":return"an RSA";case"ec":return"an EC";case"covercrypt":return"a CoverCrypt";case"symmetric":return"a symmetric";case"certificate":return"a";case"secret-data":return"a";default:return"a"}},tre=[{label:"Get",value:"get"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Revoke",value:"revoke"},{label:"Locate",value:"locate"},{label:"Rekey",value:"rekey"},{label:"Destroy",value:"destroy"}],nre=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),[u,f]=l.useState(void 0),d=l.useRef(null),h=l.useCallback(async()=>{f(void 0);try{const v=await lo("/access/privileged",o,s);f(v.has_privileged_access)}catch(v){console.error("Error fetching privileged access:",v)}},[o,s]);l.useEffect(()=>{h()},[h]),l.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const g=async v=>{a(!0),n(void 0);try{v.grant_create_access_right&&v.operation_types.push("create");const b=await ID("/access/grant",v,o,s);n(b.success)}catch(b){n(`Error granting access: ${b}`),console.error("Error granting access:",b)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Grant access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Grant access rights to another user for specific KMIP operations on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(fe,{form:e,onFinish:g,layout:"vertical",initialValues:{operation_types:[],grant_create_access_right:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"user_id",label:"User Identifier",rules:[{required:!0,message:"Please enter the user identifier"}],help:"The user to grant access to",children:S.jsx(ht,{placeholder:"Enter user identifier"})}),S.jsx(fe.Item,{name:"operation_types",label:"KMIP Operations",help:"Select one or more operations to grant access to",children:S.jsx(Et,{mode:"multiple",options:tre,placeholder:"Select operations",onChange:()=>{e.validateFields(["unique_identifier"])}})}),S.jsx(fe.Item,{label:"Object UID",shouldUpdate:(v,b)=>v.operation_types!==b.operation_types,children:({getFieldValue:v})=>{const b=v("operation_types")||[];return S.jsx(fe.Item,{name:"unique_identifier",rules:[{required:b.length>0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(ht,{placeholder:"Enter object UID",disabled:b.length===0})})}}),u&&S.jsx(fe.Item,{name:"grant_create_access_right",valuePropName:"checked",help:"If set, the user will have the right to create and import Kms objects.",children:S.jsx(Lr,{children:"Grant create access right to user"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Grant Access"})})]})}),t&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Grant access response",children:t})})]})},rre=()=>{const[e]=fe.useForm(),[t,n]=l.useState([]),[r,a]=l.useState(!1),[o,s]=l.useState(void 0),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{o&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[o]);const h=async v=>{a(!0),s(void 0),n([]);try{const b=await lo(`/access/list/${v.unique_identifier}`,u,f);b.length?n(b):s("Empty result - no access granted.")}catch(b){s(`Error listing access right: ${b}`),console.error("Error listing access right:",b)}finally{a(!1)}},g=[{title:"User",dataIndex:"user_id",key:"user_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:v=>v.join(", ")}];return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"List an object access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"View all access rights granted on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(fe,{form:e,onFinish:h,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(et,{children:S.jsx(fe.Item,{name:"unique_identifier",label:"Object UID",rules:[{required:!0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(ht,{placeholder:"Enter object UID"})})}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"List Access Rights"})})]})}),o&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"List access response",children:o})}),t.length>0&&S.jsx("div",{className:"mt-8",ref:d,children:S.jsx(et,{title:"Access Rights",children:S.jsx(Ki,{dataSource:t,columns:g,rowKey:"user_id",pagination:!1})})})]})},are=()=>{const[e,t]=l.useState(!1),[n,r]=l.useState([]),[a,o]=l.useState(void 0),[s,u]=l.useState(void 0),{idToken:f,serverUrl:d}=kn(),h=l.useRef(null);l.useEffect(()=>{s&&h.current&&h.current.scrollIntoView({behavior:"smooth"})},[s]);const g=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"State",dataIndex:"state",key:"state",render:x=>S.jsx(hi,{color:x==="Active"?"green":"orange",children:x})},{title:"Owner",dataIndex:"owner_id",key:"owner_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:x=>S.jsx("span",{children:x.map(C=>S.jsx(hi,{color:"blue",children:C},C))})}],v=l.useCallback(async()=>{t(!0),u(void 0),r([]);try{const x=await lo("/access/obtained",f,d);x.length?r(x):u("Empty result - no access obtained.")}catch(x){u(`Error listing objects: ${x}`),console.error("Error listing objects:",x)}finally{t(!1)}},[f,d]),b=l.useCallback(async()=>{o(void 0);try{const x=await lo("/access/create",f,d);o(x.has_create_permission)}catch(x){console.error("Error fetching create permission:",x)}},[f,d]);return l.useEffect(()=>{v(),b()},[v,b]),S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsx("h1",{className:"text-2xl font-bold ",children:"Access rights obtained"}),S.jsx(mn,{type:"primary",onClick:v,loading:e,className:"bg-primary",children:"Refresh"})]}),S.jsx("div",{className:"mb-8 space-y-2",children:S.jsx("p",{children:"List of objects you have been granted access to, along with their current state, owner, and the operations you can perform."})}),S.jsx(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:S.jsxs(et,{children:[S.jsxs("div",{className:"mb-4 space-y-2",children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Create access right"}),S.jsx(hi,{color:a?"green":"red",children:"Create"}),a?"You have":"You don't have"," Create access right, enabling object creation and import from KMS."]}),S.jsx("h3",{className:"text-m font-bold mb-4",children:"Objects access rights"}),S.jsx(Ki,{dataSource:n,columns:g,rowKey:"objectUid",loading:e,pagination:{pageSize:10},className:"border rounded"})]})}),s&&S.jsx("div",{ref:h,children:S.jsx(et,{title:"Obtained access response",children:s})})]})},ire=[{label:"Get",value:"get"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Revoke",value:"revoke"},{label:"Locate",value:"locate"},{label:"Rekey",value:"rekey"},{label:"Destroy",value:"destroy"}],ore=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null),[f,d]=l.useState(void 0),h=l.useCallback(async()=>{d(void 0);try{const v=await lo("/access/privileged",o,s);d(v.has_privileged_access)}catch(v){console.error("Error fetching privileged access:",v)}},[o,s]);l.useEffect(()=>{h()},[h]),l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const g=async v=>{a(!0),n(void 0);try{v.revoke_create_access_right&&v.operation_types.push("create");const b=await ID("/access/revoke",v,o,s);n(b.success)}catch(b){n(`Error revoking access: ${b}`),console.error("Error revoking access:",b)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Revoke access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Revoke access rights from a user for specific KMIP operations on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(fe,{form:e,onFinish:g,layout:"vertical",initialValues:{operation_types:[],revoke_create_access_right:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"user_id",label:"User Identifier",rules:[{required:!0,message:"Please enter the user identifier"}],help:"The user to revoke access from",children:S.jsx(ht,{placeholder:"Enter user identifier"})}),S.jsx(fe.Item,{name:"operation_types",label:"KMIP Operations",help:"Select one or more operations to revoke access to",children:S.jsx(Et,{mode:"multiple",options:ire,placeholder:"Select operations",onChange:()=>{e.validateFields(["unique_identifier"])}})}),S.jsx(fe.Item,{label:"Object UID",shouldUpdate:(v,b)=>v.operation_types!==b.operation_types,children:({getFieldValue:v})=>{const b=v("operation_types")||[];return S.jsx(fe.Item,{name:"unique_identifier",rules:[{required:b.length>0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(ht,{placeholder:"Enter object UID",disabled:b.length===0})})}}),f&&S.jsx(fe.Item,{name:"revoke_create_access_right",valuePropName:"checked",help:"If set, the user will no longer have the right to create or import Kms objects.",children:S.jsx(Lr,{children:"Revoke create access right to user"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Revoke Access"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Revoke access response",children:t})})]})};let ee;const To=new Array(128).fill(void 0);To.push(void 0,null,!0,!1);function Cn(e){return To[e]}let qe=0,zd=null;function qd(){return(zd===null||zd.byteLength===0)&&(zd=new Uint8Array(ee.memory.buffer)),zd}const Qh=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},lre=typeof Qh.encodeInto=="function"?function(e,t){return Qh.encodeInto(e,t)}:function(e,t){const n=Qh.encode(e);return t.set(n),{read:e.length,written:n.length}};function ft(e,t,n){if(n===void 0){const u=Qh.encode(e),f=t(u.length,1)>>>0;return qd().subarray(f,f+u.length).set(u),qe=u.length,f}let r=e.length,a=t(r,1)>>>0;const o=qd();let s=0;for(;s<r;s++){const u=e.charCodeAt(s);if(u>127)break;o[a+s]=u}if(s!==r){s!==0&&(e=e.slice(s)),a=n(a,r,r=s+e.length*3,1)>>>0;const u=qd().subarray(a+s,a+r),f=lre(e,u);s+=f.written,a=n(a,r,s,1)>>>0}return qe=s,a}let cs=null;function We(){return(cs===null||cs.buffer.detached===!0||cs.buffer.detached===void 0&&cs.buffer!==ee.memory.buffer)&&(cs=new DataView(ee.memory.buffer)),cs}let Yd=To.length;function Tn(e){Yd===To.length&&To.push(To.length+1);const t=Yd;return Yd=To[t],To[t]=e,t}function Ed(e,t){try{return e.apply(this,t)}catch(n){ee.__wbindgen_export_2(Tn(n))}}const MD=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&MD.decode();function $h(e,t){return e=e>>>0,MD.decode(qd().subarray(e,e+t))}function sre(e){e<132||(To[e]=Yd,Yd=e)}function yt(e){const t=Cn(e);return sre(e),t}function Zt(e){return e==null}function Ex(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const a=e.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=e.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(e)){const a=e.length;let o="[";a>0&&(o+=Ex(e[0]));for(let s=1;s<a;s++)o+=", "+Ex(e[s]);return o+="]",o}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
${e.stack}`:r}function Ja(e,t){const n=t(e.length*4,4)>>>0,r=We();for(let a=0;a<e.length;a++)r.setUint32(n+4*a,Tn(e[a]),!0);return qe=e.length,n}function cre(e,t,n,r,a,o,s,u){try{const N=ee.__wbindgen_add_to_stack_pointer(-16);var f=Zt(e)?0:Ja(e,ee.__wbindgen_export_0),d=qe,h=Zt(t)?0:ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),b=qe,x=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),C=qe,y=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),w=qe,$=Zt(s)?0:ft(s,ee.__wbindgen_export_0,ee.__wbindgen_export_1),E=qe,I=Zt(u)?0:ft(u,ee.__wbindgen_export_0,ee.__wbindgen_export_1),O=qe;ee.locate_ttlv_request(N,f,d,h,g,Zt(n)?4294967297:n>>>0,v,b,x,C,y,w,$,E,I,O);var R=We().getInt32(N+0,!0),T=We().getInt32(N+4,!0),P=We().getInt32(N+8,!0);if(P)throw yt(T);return yt(R)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function ure(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_locate_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function dre(e,t,n,r,a){try{const v=ee.__wbindgen_add_to_stack_pointer(-16);var o=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;const b=Ja(t,ee.__wbindgen_export_0),x=qe;var u=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),f=qe;ee.create_rsa_key_pair_ttlv_request(v,o,s,b,x,n,r,u,f);var d=We().getInt32(v+0,!0),h=We().getInt32(v+4,!0),g=We().getInt32(v+8,!0);if(g)throw yt(h);return yt(d)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function fre(e,t,n,r,a){try{const v=ee.__wbindgen_add_to_stack_pointer(-16);var o=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;const b=Ja(t,ee.__wbindgen_export_0),x=qe,C=ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),y=qe;var u=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),f=qe;ee.create_ec_key_pair_ttlv_request(v,o,s,b,x,C,y,r,u,f);var d=We().getInt32(v+0,!0),h=We().getInt32(v+4,!0),g=We().getInt32(v+8,!0);if(g)throw yt(h);return yt(d)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function TC(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_create_keypair_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function mre(e,t,n,r,a,o,s){try{const y=ee.__wbindgen_add_to_stack_pointer(-16);var u=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),f=qe;const w=Ja(t,ee.__wbindgen_export_0),$=qe,E=ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),I=qe;var d=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),h=qe,g=Zt(s)?0:ft(s,ee.__wbindgen_export_0,ee.__wbindgen_export_1),v=qe;ee.create_sym_key_ttlv_request(y,u,f,w,$,Zt(n)?4294967297:n>>>0,E,I,a,d,h,g,v);var b=We().getInt32(y+0,!0),x=We().getInt32(y+4,!0),C=We().getInt32(y+8,!0);if(C)throw yt(x);return yt(b)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function hre(e,t,n,r,a,o){try{const C=ee.__wbindgen_add_to_stack_pointer(-16),y=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),w=qe;var s=Zt(t)?0:ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=Zt(n)?0:ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe;const $=Ja(r,ee.__wbindgen_export_0),E=qe;var h=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe;ee.create_secret_data_ttlv_request(C,y,w,s,u,f,d,$,E,a,h,g);var v=We().getInt32(C+0,!0),b=We().getInt32(C+4,!0),x=We().getInt32(C+8,!0);if(x)throw yt(b);return yt(v)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function DC(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_create_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function zr(e,t){const n=t(e.length*1,1)>>>0;return qd().set(e,n/1),qe=e.length,n}function gre(e,t,n,r){try{const d=ee.__wbindgen_add_to_stack_pointer(-16),h=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=zr(t,ee.__wbindgen_export_0),b=qe;var a=Zt(n)?0:zr(n,ee.__wbindgen_export_0),o=qe;ee.decrypt_sym_ttlv_request(d,h,g,v,b,a,o,Tn(r));var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function vre(e,t,n,r){try{const u=ee.__wbindgen_add_to_stack_pointer(-16),f=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe,h=zr(t,ee.__wbindgen_export_0),g=qe;ee.decrypt_rsa_ttlv_request(u,f,d,h,g,Tn(n),Tn(r));var a=We().getInt32(u+0,!0),o=We().getInt32(u+4,!0),s=We().getInt32(u+8,!0);if(s)throw yt(o);return yt(a)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function pre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=zr(t,ee.__wbindgen_export_0),d=qe;ee.decrypt_ec_ttlv_request(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Kf(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_decrypt_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function bre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe;ee.destroy_ttlv_request(o,s,u,t);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function yre(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_destroy_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function xre(e,t,n,r,a,o){try{const C=ee.__wbindgen_add_to_stack_pointer(-16),y=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),w=qe;var s=Zt(t)?0:ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe;const $=zr(n,ee.__wbindgen_export_0),E=qe;var f=Zt(r)?0:zr(r,ee.__wbindgen_export_0),d=qe,h=Zt(a)?0:zr(a,ee.__wbindgen_export_0),g=qe;ee.encrypt_sym_ttlv_request(C,y,w,s,u,$,E,f,d,h,g,Tn(o));var v=We().getInt32(C+0,!0),b=We().getInt32(C+4,!0),x=We().getInt32(C+8,!0);if(x)throw yt(b);return yt(v)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Sre(e,t,n,r){try{const u=ee.__wbindgen_add_to_stack_pointer(-16),f=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe,h=zr(t,ee.__wbindgen_export_0),g=qe;ee.encrypt_rsa_ttlv_request(u,f,d,h,g,Tn(n),Tn(r));var a=We().getInt32(u+0,!0),o=We().getInt32(u+4,!0),s=We().getInt32(u+8,!0);if(s)throw yt(o);return yt(a)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Cre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=zr(t,ee.__wbindgen_export_0),d=qe;ee.encrypt_ec_ttlv_request(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Uf(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_encrypt_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function jD(e,t,n,r,a,o){try{const C=ee.__wbindgen_add_to_stack_pointer(-16),y=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),w=qe,$=ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),E=qe;var s=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe,h=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe;ee.export_ttlv_request(C,y,w,t,$,E,s,u,f,d,h,g);var v=We().getInt32(C+0,!0),b=We().getInt32(C+4,!0),x=We().getInt32(C+8,!0);if(x)throw yt(b);return yt(v)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function wre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe;ee.parse_export_ttlv_response(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function $re(e,t,n,r,a,o,s,u,f,d,h){try{const k=ee.__wbindgen_add_to_stack_pointer(-16);var g=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),v=qe;const z=zr(t,ee.__wbindgen_export_0),V=qe,B=ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),L=qe;var b=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),x=qe,C=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),y=qe,w=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),$=qe;const H=Ja(f,ee.__wbindgen_export_0),j=qe;var E=Zt(d)?0:Ja(d,ee.__wbindgen_export_0),I=qe,O=Zt(h)?0:ft(h,ee.__wbindgen_export_0,ee.__wbindgen_export_1),R=qe;ee.import_ttlv_request(k,g,v,z,V,B,L,b,x,C,y,w,$,s,u,H,j,E,I,O,R);var T=We().getInt32(k+0,!0),P=We().getInt32(k+4,!0),N=We().getInt32(k+8,!0);if(N)throw yt(P);return yt(T)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function PC(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_import_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Ere(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe;ee.revoke_ttlv_request(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function _re(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_revoke_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Ore(e,t,n,r){try{const d=ee.__wbindgen_add_to_stack_pointer(-16),h=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=Ja(t,ee.__wbindgen_export_0),b=qe;var a=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),o=qe;ee.create_cc_master_keypair_ttlv_request(d,h,g,v,b,n,a,o);var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Ire(e,t,n,r,a){try{const h=ee.__wbindgen_add_to_stack_pointer(-16),g=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),v=qe,b=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),x=qe,C=Ja(n,ee.__wbindgen_export_0),y=qe;var o=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.create_cc_user_key_ttlv_request(h,g,v,b,x,C,y,r,o,s);var u=We().getInt32(h+0,!0),f=We().getInt32(h+4,!0),d=We().getInt32(h+8,!0);if(d)throw yt(f);return yt(u)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Rre(e,t,n,r){try{const d=ee.__wbindgen_add_to_stack_pointer(-16),h=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),b=qe,x=zr(n,ee.__wbindgen_export_0),C=qe;var a=Zt(r)?0:zr(r,ee.__wbindgen_export_0),o=qe;ee.encrypt_cc_ttlv_request(d,h,g,v,b,x,C,a,o);var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Nre(e,t,n){try{const f=ee.__wbindgen_add_to_stack_pointer(-16),d=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),h=qe,g=zr(t,ee.__wbindgen_export_0),v=qe;var r=Zt(n)?0:zr(n,ee.__wbindgen_export_0),a=qe;ee.decrypt_cc_ttlv_request(f,d,h,g,v,r,a);var o=We().getInt32(f+0,!0),s=We().getInt32(f+4,!0),u=We().getInt32(f+8,!0);if(u)throw yt(s);return yt(o)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Mre(e,t,n,r,a,o,s,u,f,d){try{const N=ee.__wbindgen_add_to_stack_pointer(-16);var h=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe;const k=zr(t,ee.__wbindgen_export_0),z=qe,V=ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),B=qe;var v=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),b=qe,x=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),C=qe,y=Zt(o)?0:ft(o,ee.__wbindgen_export_0,ee.__wbindgen_export_1),w=qe,$=Zt(s)?0:ft(s,ee.__wbindgen_export_0,ee.__wbindgen_export_1),E=qe;const L=Ja(f,ee.__wbindgen_export_0),H=qe;var I=Zt(d)?0:Ja(d,ee.__wbindgen_export_0),O=qe;ee.import_certificate_ttlv_request(N,h,g,k,z,V,B,v,b,x,C,y,w,$,E,u,L,H,I,O);var R=We().getInt32(N+0,!0),T=We().getInt32(N+4,!0),P=We().getInt32(N+8,!0);if(P)throw yt(T);return yt(R)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function jre(e,t,n){try{const f=ee.__wbindgen_add_to_stack_pointer(-16),d=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),h=qe,g=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),v=qe;var r=Zt(n)?0:ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),a=qe;ee.export_certificate_ttlv_request(f,d,h,g,v,r,a);var o=We().getInt32(f+0,!0),s=We().getInt32(f+4,!0),u=We().getInt32(f+8,!0);if(u)throw yt(s);return yt(o)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Tre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe;ee.parse_export_certificate_ttlv_response(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Dre(e,t){try{const d=ee.__wbindgen_add_to_stack_pointer(-16);var n=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),r=qe,a=Zt(t)?0:ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),o=qe;ee.validate_certificate_ttlv_request(d,n,r,a,o);var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Pre(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_validate_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function kre(e,t,n,r){try{const d=ee.__wbindgen_add_to_stack_pointer(-16),h=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=zr(t,ee.__wbindgen_export_0),b=qe;var a=Zt(n)?0:zr(n,ee.__wbindgen_export_0),o=qe;const x=ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),C=qe;ee.encrypt_certificate_ttlv_request(d,h,g,v,b,a,o,x,C);var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Are(e,t,n,r){try{const d=ee.__wbindgen_add_to_stack_pointer(-16),h=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),g=qe,v=zr(t,ee.__wbindgen_export_0),b=qe;var a=Zt(n)?0:zr(n,ee.__wbindgen_export_0),o=qe;const x=ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),C=qe;ee.decrypt_certificate_ttlv_request(d,h,g,v,b,a,o,x,C);var s=We().getInt32(d+0,!0),u=We().getInt32(d+4,!0),f=We().getInt32(d+8,!0);if(f)throw yt(u);return yt(s)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function zre(e,t,n,r,a,o,s,u,f,d,h,g,v){try{const A=ee.__wbindgen_add_to_stack_pointer(-16);var b=Zt(e)?0:ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),x=qe,C=Zt(t)?0:ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),y=qe,w=Zt(n)?0:zr(n,ee.__wbindgen_export_0),$=qe,E=Zt(r)?0:ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),I=qe,O=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),R=qe,T=Zt(s)?0:ft(s,ee.__wbindgen_export_0,ee.__wbindgen_export_1),P=qe,N=Zt(u)?0:ft(u,ee.__wbindgen_export_0,ee.__wbindgen_export_1),k=qe,z=Zt(f)?0:ft(f,ee.__wbindgen_export_0,ee.__wbindgen_export_1),V=qe,B=Zt(d)?0:ft(d,ee.__wbindgen_export_0,ee.__wbindgen_export_1),L=qe,H=Zt(g)?0:zr(g,ee.__wbindgen_export_0),j=qe;const K=Ja(v,ee.__wbindgen_export_0),q=qe;ee.certify_ttlv_request(A,b,x,C,y,w,$,E,I,O,R,o,T,P,N,k,z,V,B,L,h,H,j,K,q);var D=We().getInt32(A+0,!0),F=We().getInt32(A+4,!0),U=We().getInt32(A+8,!0);if(U)throw yt(F);return yt(D)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Lre(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_certify_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Hre(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.get_attributes_ttlv_request(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Bre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=Ja(t,ee.__wbindgen_export_0),d=qe;ee.parse_get_attributes_ttlv_response(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Fre(e,t,n){try{const s=ee.__wbindgen_add_to_stack_pointer(-16),u=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),f=qe,d=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),h=qe,g=ft(n,ee.__wbindgen_export_0,ee.__wbindgen_export_1),v=qe;ee.set_attribute_ttlv_request(s,u,f,d,h,g,v);var r=We().getInt32(s+0,!0),a=We().getInt32(s+4,!0),o=We().getInt32(s+8,!0);if(o)throw yt(a);return yt(r)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Vre(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_set_attribute_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Kre(e,t){try{const o=ee.__wbindgen_add_to_stack_pointer(-16),s=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),u=qe,f=ft(t,ee.__wbindgen_export_0,ee.__wbindgen_export_1),d=qe;ee.delete_attribute_ttlv_request(o,s,u,f,d);var n=We().getInt32(o+0,!0),r=We().getInt32(o+4,!0),a=We().getInt32(o+8,!0);if(a)throw yt(r);return yt(n)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}function Ure(e){try{const a=ee.__wbindgen_add_to_stack_pointer(-16),o=ft(e,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;ee.parse_delete_attribute_ttlv_response(a,o,s);var t=We().getInt32(a+0,!0),n=We().getInt32(a+4,!0),r=We().getInt32(a+8,!0);if(r)throw yt(n);return yt(t)}finally{ee.__wbindgen_add_to_stack_pointer(16)}}async function Wre(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function qre(){const e={};return e.wbg={},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){const r=String(Cn(n)),a=ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),o=qe;We().setInt32(t+4,o,!0),We().setInt32(t+0,a,!0)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){const n=Cn(t).buffer;return Tn(n)},e.wbg.__wbg_call_672a4d21634d4a24=function(){return Ed(function(t,n){const r=Cn(t).call(Cn(n));return Tn(r)},arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return Ed(function(t,n,r){const a=Cn(t).call(Cn(n),Cn(r));return Tn(a)},arguments)},e.wbg.__wbg_crypto_574e78ad8b13b65f=function(t){const n=Cn(t).crypto;return Tn(n)},e.wbg.__wbg_entries_3265d4158b33e5dc=function(t){const n=Object.entries(Cn(t));return Tn(n)},e.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e=function(){return Ed(function(t,n){Cn(t).getRandomValues(Cn(n))},arguments)},e.wbg.__wbg_get_b9b93047fe3cf45b=function(t,n){const r=Cn(t)[n>>>0];return Tn(r)},e.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let n;try{n=Cn(t)instanceof ArrayBuffer}catch{n=!1}return n},e.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let n;try{n=Cn(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return Cn(t).length},e.wbg.__wbg_length_e2d2a49132c1b256=function(t){return Cn(t).length},e.wbg.__wbg_msCrypto_a61aeb35a24c1329=function(t){const n=Cn(t).msCrypto;return Tn(n)},e.wbg.__wbg_new_405e22f390576ce2=function(){const t=new Object;return Tn(t)},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return Tn(new Map)},e.wbg.__wbg_new_78feb108b6472713=function(){const t=new Array;return Tn(t)},e.wbg.__wbg_new_a12002a7f91c75be=function(t){const n=new Uint8Array(Cn(t));return Tn(n)},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,n){const r=new Function($h(t,n));return Tn(r)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,n,r){const a=new Uint8Array(Cn(t),n>>>0,r>>>0);return Tn(a)},e.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){const n=new Uint8Array(t>>>0);return Tn(n)},e.wbg.__wbg_node_905d3e251edff8a2=function(t){const n=Cn(t).node;return Tn(n)},e.wbg.__wbg_process_dc0fbacc7c1c06f7=function(t){const n=Cn(t).process;return Tn(n)},e.wbg.__wbg_randomFillSync_ac0988aba3254290=function(){return Ed(function(t,n){Cn(t).randomFillSync(yt(n))},arguments)},e.wbg.__wbg_require_60cc747a6bc5215a=function(){return Ed(function(){const t=module.require;return Tn(t)},arguments)},e.wbg.__wbg_set_37837023f3d740e8=function(t,n,r){Cn(t)[n>>>0]=yt(r)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,n,r){Cn(t)[yt(n)]=yt(r)},e.wbg.__wbg_set_65595bdd868b3009=function(t,n,r){Cn(t).set(Cn(n),r>>>0)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(t,n,r){const a=Cn(t).set(Cn(n),Cn(r));return Tn(a)},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof global>"u"?null:global;return Zt(t)?0:Tn(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return Zt(t)?0:Tn(t)},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return Zt(t)?0:Tn(t)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return Zt(t)?0:Tn(t)},e.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,n,r){const a=Cn(t).subarray(n>>>0,r>>>0);return Tn(a)},e.wbg.__wbg_versions_c01dfd4722a88165=function(t){const n=Cn(t).versions;return Tn(n)},e.wbg.__wbindgen_bigint_from_i64=function(t){return Tn(t)},e.wbg.__wbindgen_bigint_from_u64=function(t){const n=BigInt.asUintN(64,t);return Tn(n)},e.wbg.__wbindgen_boolean_get=function(t){const n=Cn(t);return typeof n=="boolean"?n?1:0:2},e.wbg.__wbindgen_debug_string=function(t,n){const r=Ex(Cn(n)),a=ft(r,ee.__wbindgen_export_0,ee.__wbindgen_export_1),o=qe;We().setInt32(t+4,o,!0),We().setInt32(t+0,a,!0)},e.wbg.__wbindgen_error_new=function(t,n){const r=new Error($h(t,n));return Tn(r)},e.wbg.__wbindgen_is_function=function(t){return typeof Cn(t)=="function"},e.wbg.__wbindgen_is_null=function(t){return Cn(t)===null},e.wbg.__wbindgen_is_object=function(t){const n=Cn(t);return typeof n=="object"&&n!==null},e.wbg.__wbindgen_is_string=function(t){return typeof Cn(t)=="string"},e.wbg.__wbindgen_is_undefined=function(t){return Cn(t)===void 0},e.wbg.__wbindgen_jsval_loose_eq=function(t,n){return Cn(t)==Cn(n)},e.wbg.__wbindgen_memory=function(){const t=ee.memory;return Tn(t)},e.wbg.__wbindgen_number_get=function(t,n){const r=Cn(n),a=typeof r=="number"?r:void 0;We().setFloat64(t+8,Zt(a)?0:a,!0),We().setInt32(t+0,!Zt(a),!0)},e.wbg.__wbindgen_number_new=function(t){return Tn(t)},e.wbg.__wbindgen_object_clone_ref=function(t){const n=Cn(t);return Tn(n)},e.wbg.__wbindgen_object_drop_ref=function(t){yt(t)},e.wbg.__wbindgen_string_get=function(t,n){const r=Cn(n),a=typeof r=="string"?r:void 0;var o=Zt(a)?0:ft(a,ee.__wbindgen_export_0,ee.__wbindgen_export_1),s=qe;We().setInt32(t+4,s,!0),We().setInt32(t+0,o,!0)},e.wbg.__wbindgen_string_new=function(t,n){const r=$h(t,n);return Tn(r)},e.wbg.__wbindgen_throw=function(t,n){throw new Error($h(t,n))},e}function Yre(e,t){return ee=e.exports,TD.__wbindgen_wasm_module=t,cs=null,zd=null,ee}async function TD(e){if(ee!==void 0)return ee;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/ui/assets/cosmian_kms_client_wasm_bg-Bvpy7mOd.wasm",import.meta.url));const t=qre();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await Wre(await e,t);return Yre(n,r)}const{Title:Gre}=Ll,{Option:Xre}=Et,Qre=[{value:"ActivationDate",label:"Activation Date"},{value:"CryptographicAlgorithm",label:"Cryptographic Algorithm"},{value:"CryptographicLength",label:"Cryptographic Length"},{value:"CryptographicUsageMask",label:"Key Usage"},{value:"public_key_id",label:"Public Key ID link"},{value:"private_key_id",label:"Private Key ID link"},{value:"certificate_id",label:"Certificate ID link"},{value:"pkcs12_certificate_id",label:"PKCS12 Certificate ID link"},{value:"pkcs12_password_certificate",label:"PKCS12 Password Certificate link"},{value:"parent_id",label:"Parent ID link"},{value:"child_id",label:"Child ID link"}],Zre=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{serverUrl:o,idToken:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0);const h=d.id?d.id:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing object identifier."),Error("Missing object identifier");if(!d.attribute_name)throw n("Missing attribute name."),Error("Missing attribute name");const g=Kre(h,d.attribute_name),v=await ar(g,s,o);if(v){const b=Ure(v);n(`Attribute '${d.attribute_name}' has been deleted for ${b.UniqueIdentifier}`)}}catch(g){n(`Error deleting attribute: ${g}`),console.error("Error deleting attribute:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx(Gre,{level:2,children:"Delete KMIP Object Attribute"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Delete a single attribute from a KMIP object by specifying the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to identify the object, rather than the object ID, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(ht,{placeholder:"Enter object ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:S.jsx(Et,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsxs(et,{title:"Attribute Deletion",children:[S.jsx("div",{className:"mb-5",children:"Select the attribute to delete from the selected KMIP object."}),S.jsx(fe.Item,{name:"attribute_name",label:"Attribute Name",rules:[{required:!0,message:"Please select an attribute name to delete"}],help:"Select the KMIP attribute you want to delete",children:S.jsx(Et,{placeholder:"Select attribute name",children:Qre.map(d=>S.jsx(Xre,{value:d.value,children:d.label},d.value))})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full font-medium",children:"Delete Attribute"})})]})}),t&&S.jsx(et,{children:S.jsx("div",{ref:u,children:t})})]})},DD=l.createContext({}),Jre={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},la=Math.round;function Xy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const DI=(e,t,n)=>n===0?e:e/100;function _d(e,t){const n=t||255;return e>n?n:e<0?0:e}class Mc{constructor(t){qa(this,"isValid",!0);qa(this,"r",0);qa(this,"g",0);qa(this,"b",0);qa(this,"a",1);qa(this,"_h");qa(this,"_s");qa(this,"_l");qa(this,"_v");qa(this,"_max");qa(this,"_min");qa(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(a("rgb"))this.fromRgbString(r);else if(a("hsl"))this.fromHslString(r);else if(a("hsv")||a("hsb"))this.fromHsvString(r);else{const o=Jre[r.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(t instanceof Mc)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=_d(t.r),this.g=_d(t.g),this.b=_d(t.b),this.a=typeof t.a=="number"?_d(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=la(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"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=u=>(r[u]-this[u])*a+this[u],s={r:la(o("r")),g:la(o("g")),b:la(o("b")),a:la(o("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>la((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=la(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=la(this.getSaturation()*100),r=la(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=_d(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const v=la(r*255);this.r=v,this.g=v,this.b=v}let o=0,s=0,u=0;const f=t/60,d=(1-Math.abs(2*r-1))*n,h=d*(1-Math.abs(f%2-1));f>=0&&f<1?(o=d,s=h):f>=1&&f<2?(o=h,s=d):f>=2&&f<3?(s=d,u=h):f>=3&&f<4?(s=h,u=d):f>=4&&f<5?(o=h,u=d):f>=5&&f<6&&(o=d,u=h);const g=r-d/2;this.r=la((o+g)*255),this.g=la((s+g)*255),this.b=la((u+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=la(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=t/60,u=Math.floor(s),f=s-u,d=la(r*(1-n)*255),h=la(r*(1-n*f)*255),g=la(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=d;break;case 1:this.r=h,this.b=d;break;case 2:this.r=d,this.b=g;break;case 3:this.r=d,this.g=h;break;case 4:this.r=g,this.g=d;break;case 5:default:this.g=d,this.b=h;break}}fromHsvString(t){const n=Xy(t,DI);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Xy(t,DI);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Xy(t,(r,a)=>a.includes("%")?la(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Eh=2,PI=.16,eae=.05,tae=.05,nae=.15,PD=5,kD=4,rae=[{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 kI(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Eh*t:Math.round(e.h)+Eh*t:r=n?Math.round(e.h)+Eh*t:Math.round(e.h)-Eh*t,r<0?r+=360:r>=360&&(r-=360),r}function AI(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-PI*t:t===kD?r=e.s+PI:r=e.s+eae*t,r>1&&(r=1),n&&t===PD&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function zI(e,t,n){let r;return n?r=e.v+tae*t:r=e.v-nae*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function aae(e,t={}){const n=[],r=new Mc(e),a=r.toHsv();for(let o=PD;o>0;o-=1){const s=new Mc({h:kI(a,o,!0),s:AI(a,o,!0),v:zI(a,o,!0)});n.push(s)}n.push(r);for(let o=1;o<=kD;o+=1){const s=new Mc({h:kI(a,o),s:AI(a,o),v:zI(a,o)});n.push(s)}return t.theme==="dark"?rae.map(({index:o,amount:s})=>new Mc(t.backgroundColor||"#141414").mix(n[o],s).toHexString()):n.map(o=>o.toHexString())}const _x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_x.primary=_x[5];function iae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oae(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const LI="data-rc-order",HI="data-rc-priority",lae="rc-util-key",Ox=new Map;function AD({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:lae}function kC(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function sae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function AC(e){return Array.from((Ox.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function zD(e,t={}){if(!iae())return null;const{csp:n,prepend:r,priority:a=0}=t,o=sae(r),s=o==="prependQueue",u=document.createElement("style");u.setAttribute(LI,o),s&&a&&u.setAttribute(HI,`${a}`),n!=null&&n.nonce&&(u.nonce=n==null?void 0:n.nonce),u.innerHTML=e;const f=kC(t),{firstChild:d}=f;if(r){if(s){const h=(t.styles||AC(f)).filter(g=>{if(!["prepend","prependQueue"].includes(g.getAttribute(LI)))return!1;const v=Number(g.getAttribute(HI)||0);return a>=v});if(h.length)return f.insertBefore(u,h[h.length-1].nextSibling),u}f.insertBefore(u,d)}else f.appendChild(u);return u}function cae(e,t={}){let{styles:n}=t;return n||(n=AC(kC(t))),n.find(r=>r.getAttribute(AD(t))===e)}function uae(e,t){const n=Ox.get(e);if(!n||!oae(document,n)){const r=zD("",t),{parentNode:a}=r;Ox.set(e,a),e.removeChild(r)}}function dae(e,t,n={}){var f,d,h;const r=kC(n),a=AC(r),o={...n,styles:a};uae(r,o);const s=cae(t,o);if(s)return(f=o.csp)!=null&&f.nonce&&s.nonce!==((d=o.csp)==null?void 0:d.nonce)&&(s.nonce=(h=o.csp)==null?void 0:h.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const u=zD(e,o);return u.setAttribute(AD(o),t),u}function LD(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function fae(e){return LD(e)instanceof ShadowRoot}function mae(e){return fae(e)?LD(e):null}let Ix={};const hae=e=>{};function gae(e,t){}function vae(e,t){}function pae(){Ix={}}function HD(e,t,n){!t&&!Ix[n]&&(e(!1,n),Ix[n]=!0)}function Ev(e,t){HD(gae,e,t)}function bae(e,t){HD(vae,e,t)}Ev.preMessage=hae;Ev.resetWarned=pae;Ev.noteOnce=bae;function yae(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function xae(e,t){Ev(e,`[@ant-design/icons] ${t}`)}function BI(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function FI(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[yae(n)]=r}return t},{})}function Rx(e,t,n){return n?Se.createElement(e.tag,{key:t,...FI(e.attrs),...n},(e.children||[]).map((r,a)=>Rx(r,`${t}-${e.tag}-${a}`))):Se.createElement(e.tag,{key:t,...FI(e.attrs)},(e.children||[]).map((r,a)=>Rx(r,`${t}-${e.tag}-${a}`)))}function BD(e){return aae(e)[0]}function FD(e){return e?Array.isArray(e)?e:[e]:[]}const Sae=`
.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);
  }
}
`,Cae=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(DD);let a=Sae;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {
${a}
}`),l.useEffect(()=>{const o=e.current,s=mae(o);dae(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s})},[])},Gd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wae({primaryColor:e,secondaryColor:t}){Gd.primaryColor=e,Gd.secondaryColor=t||BD(e),Gd.calculated=!!t}function $ae(){return{...Gd}}const pu=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:o,secondaryColor:s,...u}=e,f=l.useRef();let d=Gd;if(o&&(d={primaryColor:o,secondaryColor:s||BD(o)}),Cae(f),xae(BI(t),`icon should be icon definiton, but got ${t}`),!BI(t))return null;let h=t;return h&&typeof h.icon=="function"&&(h={...h,icon:h.icon(d.primaryColor,d.secondaryColor)}),Rx(h.icon,`svg-${h.name}`,{className:n,onClick:r,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...u,ref:f})};pu.displayName="IconReact";pu.getTwoToneColors=$ae;pu.setTwoToneColors=wae;function VD(e){const[t,n]=FD(e);return pu.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Eae(){const e=pu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(this,arguments)}VD(_x.primary);const Si=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:o,tabIndex:s,onClick:u,twoToneColor:f,...d}=e,{prefixCls:h="anticon",rootClassName:g}=l.useContext(DD),v=ce(g,h,{[`${h}-${r.name}`]:!!r.name,[`${h}-spin`]:!!a||r.name==="loading"},n);let b=s;b===void 0&&u&&(b=-1);const x=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[C,y]=FD(f);return l.createElement("span",Nx({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:u,className:v}),l.createElement(pu,{icon:r,primaryColor:C,secondaryColor:y,style:x}))});Si.displayName="AntdIcon";Si.getTwoToneColor=Eae;Si.setTwoToneColor=VD;function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(this,arguments)}const _ae=(e,t)=>l.createElement(Si,Mx({},e,{ref:t,icon:NT})),Oae=l.forwardRef(_ae);function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jx.apply(this,arguments)}const Iae=(e,t)=>l.createElement(Si,jx({},e,{ref:t,icon:rQ})),Rae=l.forwardRef(Iae);function Tx(){return Tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tx.apply(this,arguments)}const Nae=(e,t)=>l.createElement(Si,Tx({},e,{ref:t,icon:mQ})),Mae=l.forwardRef(Nae);function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(this,arguments)}const jae=(e,t)=>l.createElement(Si,Dx({},e,{ref:t,icon:mM})),Tae=l.forwardRef(jae);function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Px.apply(this,arguments)}const Dae=(e,t)=>l.createElement(Si,Px({},e,{ref:t,icon:hQ})),Pae=l.forwardRef(Dae);function kx(){return kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kx.apply(this,arguments)}const kae=(e,t)=>l.createElement(Si,kx({},e,{ref:t,icon:gQ})),Aae=l.forwardRef(kae);function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ax.apply(this,arguments)}const zae=(e,t)=>l.createElement(Si,Ax({},e,{ref:t,icon:vQ})),Lae=l.forwardRef(zae);function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}const Hae=(e,t)=>l.createElement(Si,zx({},e,{ref:t,icon:pQ})),KD=l.forwardRef(Hae);function Lx(){return Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lx.apply(this,arguments)}const Bae=(e,t)=>l.createElement(Si,Lx({},e,{ref:t,icon:bQ})),UD=l.forwardRef(Bae),{Title:VI}=Ll,Fae=({data:e})=>{const t=()=>{if(e){const o=Object.fromEntries(e);navigator.clipboard.writeText(JSON.stringify(o,null,2)),dC.success("Copied to clipboard")}},n=o=>typeof o=="string"?S.jsxs("span",{className:"text-yellow-600",children:['"',o,'"']}):typeof o=="number"?S.jsx("span",{className:"text-orange-600",children:o}):S.jsx("span",{className:"text-gray-800",children:String(o)}),r=o=>o===null?S.jsx("span",{className:"text-gray-600",children:"null"}):o===void 0?S.jsx("span",{className:"text-gray-600",children:"undefined"}):typeof o=="string"?S.jsxs("span",{className:"text-green-600",children:['"',o,'"']}):typeof o=="number"?S.jsx("span",{className:"text-orange-600",children:o}):typeof o=="boolean"?S.jsx("span",{className:"text-blue-600",children:String(o)}):Array.isArray(o)?S.jsxs("span",{className:"text-yellow-600",children:["["," ",o.map((s,u)=>S.jsxs("span",{children:[r(s),u<o.length-1&&", "]},u))," ","]"]}):o instanceof Map?S.jsx("div",{className:"ml-4",children:a(o)}):typeof o=="object"?S.jsx("span",{className:"text-blue-600",children:JSON.stringify(o,null,2)}):S.jsx("span",{children:String(o)}),a=o=>S.jsx("div",{className:"p-2 rounded-md overflow-auto text-sm font-mono border border-gray-300 bg-gray-100",children:S.jsx("div",{className:"space-y-2",children:Array.from(o.entries()).map(([s,u],f)=>S.jsxs("div",{className:"flex",children:[S.jsx("span",{className:"text-blue-600",children:"{"}),S.jsxs("div",{className:"ml-2",children:[n(s),S.jsx("span",{className:"text-blue-600 mx-2",children:" => "}),r(u)]}),S.jsx("span",{className:"text-blue-600",children:"}"})]},f))})});return S.jsx(S.Fragment,{children:e&&S.jsx(et,{title:S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsx(VI,{level:4,className:"m-0",children:"HashMap Display"}),S.jsx(bi,{title:"Copy JSON",children:S.jsx(mn,{type:"text",icon:S.jsx(Oae,{}),onClick:t})})]}),className:"shadow-md",children:S.jsxs("div",{children:[S.jsx(VI,{level:5,children:"HashMap Preview"}),a(e)]})})})},{Title:Vae}=Ll,{Option:Kae}=Et,Uae=[{value:"activation_date",label:"Activation Date"},{value:"cryptographic_algorithm",label:"Cryptographic Algorithm"},{value:"cryptographic_length",label:"Cryptographic Length"},{value:"key_usage",label:"Key Usage"},{value:"key_format_type",label:"Key Format Type"},{value:"object_type",label:"Object Type"},{value:"vendor_attributes",label:"Vendor Attributes"},{value:"public_key_id",label:"Public key ID"},{value:"private_key_id",label:"Private key ID"},{value:"certificate_id",label:"Certificate ID"},{value:"pkcs12_certificate_id",label:"Pkcs12 Certificate ID"},{value:"pkcs12_password_certificate",label:"Pkcs12 Password Certificate"},{value:"parent_id",label:"Parent ID"},{value:"child_id",label:"Child ID"}],Wae=()=>{const[e]=fe.useForm(),[t,n]=l.useState(new Map),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0);const h=d.id?d.id:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing object identifier."),Error("Missing object identifier");const g=Hre(h),v=await ar(g,o,s);if(v){const b=Bre(v,d.selected_attributes);n(b.size?b:"Empty result")}}catch(g){n(`Error getting attributes: ${g}`),console.error("Error getting attributes:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx(Vae,{level:2,children:"Get KMIP Object Attributes"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Retrieve attributes for a KMIP object by specifying either the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to retrieve the object, rather than the object id, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{selected_attributes:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(ht,{placeholder:"Enter object ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the key when no key ID is specified",children:S.jsx(Et,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsx(et,{title:"Attribute Selection",children:S.jsx(fe.Item,{name:"selected_attributes",label:"Attribute Names",help:"The attributes or KMIP-tags to retrieve (all attributes will be returned if none specified)",children:S.jsx(Et,{mode:"multiple",style:{width:"100%"},placeholder:"Select attribute",children:Uae.map(d=>S.jsx(Kae,{value:d.value,children:d.label},d.value))})})}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Get Attributes"})})]})}),t&&typeof t!="string"&&t.size?S.jsx("div",{ref:u,children:S.jsx(Fae,{data:t})}):S.jsx(et,{children:S.jsx("div",{ref:u,children:t instanceof Map?JSON.stringify(Object.fromEntries(t)):t})})]})};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var WD;function Kt(){return WD.apply(null,arguments)}function qae(e){WD=e}function Hi(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function bs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Xn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zC(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Xn(e,t))return!1;return!0}function Aa(e){return e===void 0}function Uo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Wf(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function qD(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Ol(e,t){for(var n in t)Xn(t,n)&&(e[n]=t[n]);return Xn(t,"toString")&&(e.toString=t.toString),Xn(t,"valueOf")&&(e.valueOf=t.valueOf),e}function co(e,t,n,r){return vP(e,t,n,r,!0).utc()}function Yae(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Rn(e){return e._pf==null&&(e._pf=Yae()),e._pf}var Hx;Array.prototype.some?Hx=Array.prototype.some:Hx=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function LC(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Rn(e),n=Hx.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function _v(e){var t=co(NaN);return e!=null?Ol(Rn(t),e):Rn(t).userInvalidated=!0,t}var KI=Kt.momentProperties=[],Qy=!1;function HC(e,t){var n,r,a,o=KI.length;if(Aa(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Aa(t._i)||(e._i=t._i),Aa(t._f)||(e._f=t._f),Aa(t._l)||(e._l=t._l),Aa(t._strict)||(e._strict=t._strict),Aa(t._tzm)||(e._tzm=t._tzm),Aa(t._isUTC)||(e._isUTC=t._isUTC),Aa(t._offset)||(e._offset=t._offset),Aa(t._pf)||(e._pf=Rn(t)),Aa(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=KI[n],a=t[r],Aa(a)||(e[r]=a);return e}function qf(e){HC(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qy===!1&&(Qy=!0,Kt.updateOffset(this),Qy=!1)}function Bi(e){return e instanceof qf||e!=null&&e._isAMomentObject!=null}function YD(e){Kt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ci(e,t){var n=!0;return Ol(function(){if(Kt.deprecationHandler!=null&&Kt.deprecationHandler(null,e),n){var r=[],a,o,s,u=arguments.length;for(o=0;o<u;o++){if(a="",typeof arguments[o]=="object"){a+=`
[`+o+"] ";for(s in arguments[0])Xn(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];r.push(a)}YD(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var UI={};function GD(e,t){Kt.deprecationHandler!=null&&Kt.deprecationHandler(e,t),UI[e]||(YD(t),UI[e]=!0)}Kt.suppressDeprecationWarnings=!1;Kt.deprecationHandler=null;function uo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Gae(e){var t,n;for(n in e)Xn(e,n)&&(t=e[n],uo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Bx(e,t){var n=Ol({},e),r;for(r in t)Xn(t,r)&&(bs(e[r])&&bs(t[r])?(n[r]={},Ol(n[r],e[r]),Ol(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Xn(e,r)&&!Xn(t,r)&&bs(e[r])&&(n[r]=Ol({},n[r]));return n}function BC(e){e!=null&&this.set(e)}var Fx;Object.keys?Fx=Object.keys:Fx=function(e){var t,n=[];for(t in e)Xn(e,t)&&n.push(t);return n};var Xae={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qae(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return uo(r)?r.call(t,n):r}function so(e,t,n){var r=""+Math.abs(e),a=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var FC=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_h=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zy={},Lc={};function an(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Lc[e]=a),t&&(Lc[t[0]]=function(){return so(a.apply(this,arguments),t[1],t[2])}),n&&(Lc[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Zae(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Jae(e){var t=e.match(FC),n,r;for(n=0,r=t.length;n<r;n++)Lc[t[n]]?t[n]=Lc[t[n]]:t[n]=Zae(t[n]);return function(a){var o="",s;for(s=0;s<r;s++)o+=uo(t[s])?t[s].call(a,e):t[s];return o}}function Zh(e,t){return e.isValid()?(t=XD(t,e.localeData()),Zy[t]=Zy[t]||Jae(t),Zy[t](e)):e.localeData().invalidDate()}function XD(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(_h.lastIndex=0;n>=0&&_h.test(e);)e=e.replace(_h,r),_h.lastIndex=0,n-=1;return e}var eie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tie(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(FC).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var nie="Invalid date";function rie(){return this._invalidDate}var aie="%d",iie=/\d{1,2}/;function oie(e){return this._ordinal.replace("%d",e)}var lie={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function sie(e,t,n,r){var a=this._relativeTime[n];return uo(a)?a(e,t,n,r):a.replace(/%d/i,e)}function cie(e,t){var n=this._relativeTime[e>0?"future":"past"];return uo(n)?n(t):n.replace(/%s/i,t)}var WI={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function wi(e){return typeof e=="string"?WI[e]||WI[e.toLowerCase()]:void 0}function VC(e){var t={},n,r;for(r in e)Xn(e,r)&&(n=wi(r),n&&(t[n]=e[r]));return t}var uie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function die(e){var t=[],n;for(n in e)Xn(e,n)&&t.push({unit:n,priority:uie[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var QD=/\d/,ti=/\d\d/,ZD=/\d{3}/,KC=/\d{4}/,Ov=/[+-]?\d{6}/,$r=/\d\d?/,JD=/\d\d\d\d?/,eP=/\d\d\d\d\d\d?/,Iv=/\d{1,3}/,UC=/\d{1,4}/,Rv=/[+-]?\d{1,6}/,bu=/\d+/,Nv=/[+-]?\d+/,fie=/Z|[+-]\d\d:?\d\d/gi,Mv=/Z|[+-]\d\d(?::?\d\d)?/gi,mie=/[+-]?\d+(\.\d{1,3})?/,Yf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yu=/^[1-9]\d?/,WC=/^([1-9]\d|\d)/,Cg;Cg={};function Gt(e,t,n){Cg[e]=uo(t)?t:function(r,a){return r&&n?n:t}}function hie(e,t){return Xn(Cg,e)?Cg[e](t._strict,t._locale):new RegExp(gie(e))}function gie(e){return zo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,o){return n||r||a||o}))}function zo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function gi(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=gi(t)),n}var Vx={};function mr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Uo(t)&&(r=function(o,s){s[t]=Vn(o)}),a=e.length,n=0;n<a;n++)Vx[e[n]]=r}function Gf(e,t){mr(e,function(n,r,a,o){a._w=a._w||{},t(n,a._w,a,o)})}function vie(e,t,n){t!=null&&Xn(Vx,e)&&Vx[e](t,n._a,n,e)}function jv(e){return e%4===0&&e%100!==0||e%400===0}var Ea=0,Do=1,to=2,Jr=3,Mi=4,Po=5,hs=6,pie=7,bie=8;an("Y",0,0,function(){var e=this.year();return e<=9999?so(e,4):"+"+e});an(0,["YY",2],0,function(){return this.year()%100});an(0,["YYYY",4],0,"year");an(0,["YYYYY",5],0,"year");an(0,["YYYYYY",6,!0],0,"year");Gt("Y",Nv);Gt("YY",$r,ti);Gt("YYYY",UC,KC);Gt("YYYYY",Rv,Ov);Gt("YYYYYY",Rv,Ov);mr(["YYYYY","YYYYYY"],Ea);mr("YYYY",function(e,t){t[Ea]=e.length===2?Kt.parseTwoDigitYear(e):Vn(e)});mr("YY",function(e,t){t[Ea]=Kt.parseTwoDigitYear(e)});mr("Y",function(e,t){t[Ea]=parseInt(e,10)});function Xd(e){return jv(e)?366:365}Kt.parseTwoDigitYear=function(e){return Vn(e)+(Vn(e)>68?1900:2e3)};var tP=xu("FullYear",!0);function yie(){return jv(this.year())}function xu(e,t){return function(n){return n!=null?(nP(this,e,n),Kt.updateOffset(this,t),this):xf(this,e)}}function xf(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function nP(e,t,n){var r,a,o,s,u;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),u=e.date(),u=u===29&&s===1&&!jv(o)?28:u,a?r.setUTCFullYear(o,s,u):r.setFullYear(o,s,u)}}function xie(e){return e=wi(e),uo(this[e])?this[e]():this}function Sie(e,t){if(typeof e=="object"){e=VC(e);var n=die(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=wi(e),uo(this[e]))return this[e](t);return this}function Cie(e,t){return(e%t+t)%t}var Ar;Array.prototype.indexOf?Ar=Array.prototype.indexOf:Ar=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function qC(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Cie(t,12);return e+=(t-n)/12,n===1?jv(e)?29:28:31-n%7%2}an("M",["MM",2],"Mo",function(){return this.month()+1});an("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});an("MMMM",0,0,function(e){return this.localeData().months(this,e)});Gt("M",$r,yu);Gt("MM",$r,ti);Gt("MMM",function(e,t){return t.monthsShortRegex(e)});Gt("MMMM",function(e,t){return t.monthsRegex(e)});mr(["M","MM"],function(e,t){t[Do]=Vn(e)-1});mr(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[Do]=a:Rn(n).invalidMonth=e});var wie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rP="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),aP=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$ie=Yf,Eie=Yf;function _ie(e,t){return e?Hi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||aP).test(t)?"format":"standalone"][e.month()]:Hi(this._months)?this._months:this._months.standalone}function Oie(e,t){return e?Hi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[aP.test(t)?"format":"standalone"][e.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Iie(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=co([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(a=Ar.call(this._shortMonthsParse,s),a!==-1?a:null):(a=Ar.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=Ar.call(this._shortMonthsParse,s),a!==-1?a:(a=Ar.call(this._longMonthsParse,s),a!==-1?a:null)):(a=Ar.call(this._longMonthsParse,s),a!==-1?a:(a=Ar.call(this._shortMonthsParse,s),a!==-1?a:null))}function Rie(e,t,n){var r,a,o;if(this._monthsParseExact)return Iie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=co([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function iP(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Vn(t);else if(t=e.localeData().monthsParse(t),!Uo(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,qC(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function oP(e){return e!=null?(iP(this,e),Kt.updateOffset(this,!0),this):xf(this,"Month")}function Nie(){return qC(this.year(),this.month())}function Mie(e){return this._monthsParseExact?(Xn(this,"_monthsRegex")||lP.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Xn(this,"_monthsShortRegex")||(this._monthsShortRegex=$ie),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function jie(e){return this._monthsParseExact?(Xn(this,"_monthsRegex")||lP.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Xn(this,"_monthsRegex")||(this._monthsRegex=Eie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function lP(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],a,o,s,u;for(a=0;a<12;a++)o=co([2e3,a]),s=zo(this.monthsShort(o,"")),u=zo(this.months(o,"")),t.push(s),n.push(u),r.push(u),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tie(e,t,n,r,a,o,s){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,a,o,s),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,a,o,s),u}function Sf(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wg(e,t,n){var r=7+t-n,a=(7+Sf(e,0,r).getUTCDay()-t)%7;return-a+r-1}function sP(e,t,n,r,a){var o=(7+n-r)%7,s=wg(e,r,a),u=1+7*(t-1)+o+s,f,d;return u<=0?(f=e-1,d=Xd(f)+u):u>Xd(e)?(f=e+1,d=u-Xd(e)):(f=e,d=u),{year:f,dayOfYear:d}}function Cf(e,t,n){var r=wg(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,o,s;return a<1?(s=e.year()-1,o=a+Lo(s,t,n)):a>Lo(e.year(),t,n)?(o=a-Lo(e.year(),t,n),s=e.year()+1):(s=e.year(),o=a),{week:o,year:s}}function Lo(e,t,n){var r=wg(e,t,n),a=wg(e+1,t,n);return(Xd(e)-r+a)/7}an("w",["ww",2],"wo","week");an("W",["WW",2],"Wo","isoWeek");Gt("w",$r,yu);Gt("ww",$r,ti);Gt("W",$r,yu);Gt("WW",$r,ti);Gf(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function Die(e){return Cf(e,this._week.dow,this._week.doy).week}var Pie={dow:0,doy:6};function kie(){return this._week.dow}function Aie(){return this._week.doy}function zie(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lie(e){var t=Cf(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}an("d",0,"do","day");an("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});an("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});an("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});an("e",0,0,"weekday");an("E",0,0,"isoWeekday");Gt("d",$r);Gt("e",$r);Gt("E",$r);Gt("dd",function(e,t){return t.weekdaysMinRegex(e)});Gt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Gt("dddd",function(e,t){return t.weekdaysRegex(e)});Gf(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Rn(n).invalidWeekday=e});Gf(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function Hie(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Bie(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function YC(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Fie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cP="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kie=Yf,Uie=Yf,Wie=Yf;function qie(e,t){var n=Hi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?YC(n,this._week.dow):e?n[e.day()]:n}function Yie(e){return e===!0?YC(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gie(e){return e===!0?YC(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Xie(e,t,n){var r,a,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=co([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(a=Ar.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=Ar.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=Ar.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=Ar.call(this._weekdaysParse,s),a!==-1||(a=Ar.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=Ar.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=Ar.call(this._shortWeekdaysParse,s),a!==-1||(a=Ar.call(this._weekdaysParse,s),a!==-1)?a:(a=Ar.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=Ar.call(this._minWeekdaysParse,s),a!==-1||(a=Ar.call(this._weekdaysParse,s),a!==-1)?a:(a=Ar.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function Qie(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Xie.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=co([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Zie(e){if(!this.isValid())return e!=null?this:NaN;var t=xf(this,"Day");return e!=null?(e=Hie(e,this.localeData()),this.add(e-t,"d")):t}function Jie(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function eoe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Bie(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function toe(e){return this._weekdaysParseExact?(Xn(this,"_weekdaysRegex")||GC.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Xn(this,"_weekdaysRegex")||(this._weekdaysRegex=Kie),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function noe(e){return this._weekdaysParseExact?(Xn(this,"_weekdaysRegex")||GC.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Xn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Uie),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function roe(e){return this._weekdaysParseExact?(Xn(this,"_weekdaysRegex")||GC.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Xn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wie),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function GC(){function e(h,g){return g.length-h.length}var t=[],n=[],r=[],a=[],o,s,u,f,d;for(o=0;o<7;o++)s=co([2e3,1]).day(o),u=zo(this.weekdaysMin(s,"")),f=zo(this.weekdaysShort(s,"")),d=zo(this.weekdays(s,"")),t.push(u),n.push(f),r.push(d),a.push(u),a.push(f),a.push(d);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function XC(){return this.hours()%12||12}function aoe(){return this.hours()||24}an("H",["HH",2],0,"hour");an("h",["hh",2],0,XC);an("k",["kk",2],0,aoe);an("hmm",0,0,function(){return""+XC.apply(this)+so(this.minutes(),2)});an("hmmss",0,0,function(){return""+XC.apply(this)+so(this.minutes(),2)+so(this.seconds(),2)});an("Hmm",0,0,function(){return""+this.hours()+so(this.minutes(),2)});an("Hmmss",0,0,function(){return""+this.hours()+so(this.minutes(),2)+so(this.seconds(),2)});function uP(e,t){an(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}uP("a",!0);uP("A",!1);function dP(e,t){return t._meridiemParse}Gt("a",dP);Gt("A",dP);Gt("H",$r,WC);Gt("h",$r,yu);Gt("k",$r,yu);Gt("HH",$r,ti);Gt("hh",$r,ti);Gt("kk",$r,ti);Gt("hmm",JD);Gt("hmmss",eP);Gt("Hmm",JD);Gt("Hmmss",eP);mr(["H","HH"],Jr);mr(["k","kk"],function(e,t,n){var r=Vn(e);t[Jr]=r===24?0:r});mr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});mr(["h","hh"],function(e,t,n){t[Jr]=Vn(e),Rn(n).bigHour=!0});mr("hmm",function(e,t,n){var r=e.length-2;t[Jr]=Vn(e.substr(0,r)),t[Mi]=Vn(e.substr(r)),Rn(n).bigHour=!0});mr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Jr]=Vn(e.substr(0,r)),t[Mi]=Vn(e.substr(r,2)),t[Po]=Vn(e.substr(a)),Rn(n).bigHour=!0});mr("Hmm",function(e,t,n){var r=e.length-2;t[Jr]=Vn(e.substr(0,r)),t[Mi]=Vn(e.substr(r))});mr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Jr]=Vn(e.substr(0,r)),t[Mi]=Vn(e.substr(r,2)),t[Po]=Vn(e.substr(a))});function ioe(e){return(e+"").toLowerCase().charAt(0)==="p"}var ooe=/[ap]\.?m?\.?/i,loe=xu("Hours",!0);function soe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var fP={calendar:Xae,longDateFormat:eie,invalidDate:nie,ordinal:aie,dayOfMonthOrdinalParse:iie,relativeTime:lie,months:wie,monthsShort:rP,week:Pie,weekdays:Fie,weekdaysMin:Vie,weekdaysShort:cP,meridiemParse:ooe},_r={},Od={},wf;function coe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function qI(e){return e&&e.toLowerCase().replace("_","-")}function uoe(e){for(var t=0,n,r,a,o;t<e.length;){for(o=qI(e[t]).split("-"),n=o.length,r=qI(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=Tv(o.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&coe(o,r)>=n-1)break;n--}t++}return wf}function doe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Tv(e){var t=null,n;if(_r[e]===void 0&&typeof module<"u"&&module&&module.exports&&doe(e))try{t=wf._abbr,n=require,n("./locale/"+e),Ml(t)}catch{_r[e]=null}return _r[e]}function Ml(e,t){var n;return e&&(Aa(t)?n=Go(e):n=QC(e,t),n?wf=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),wf._abbr}function QC(e,t){if(t!==null){var n,r=fP;if(t.abbr=e,_r[e]!=null)GD("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=_r[e]._config;else if(t.parentLocale!=null)if(_r[t.parentLocale]!=null)r=_r[t.parentLocale]._config;else if(n=Tv(t.parentLocale),n!=null)r=n._config;else return Od[t.parentLocale]||(Od[t.parentLocale]=[]),Od[t.parentLocale].push({name:e,config:t}),null;return _r[e]=new BC(Bx(r,t)),Od[e]&&Od[e].forEach(function(a){QC(a.name,a.config)}),Ml(e),_r[e]}else return delete _r[e],null}function foe(e,t){if(t!=null){var n,r,a=fP;_r[e]!=null&&_r[e].parentLocale!=null?_r[e].set(Bx(_r[e]._config,t)):(r=Tv(e),r!=null&&(a=r._config),t=Bx(a,t),r==null&&(t.abbr=e),n=new BC(t),n.parentLocale=_r[e],_r[e]=n),Ml(e)}else _r[e]!=null&&(_r[e].parentLocale!=null?(_r[e]=_r[e].parentLocale,e===Ml()&&Ml(e)):_r[e]!=null&&delete _r[e]);return _r[e]}function Go(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wf;if(!Hi(e)){if(t=Tv(e),t)return t;e=[e]}return uoe(e)}function moe(){return Fx(_r)}function ZC(e){var t,n=e._a;return n&&Rn(e).overflow===-2&&(t=n[Do]<0||n[Do]>11?Do:n[to]<1||n[to]>qC(n[Ea],n[Do])?to:n[Jr]<0||n[Jr]>24||n[Jr]===24&&(n[Mi]!==0||n[Po]!==0||n[hs]!==0)?Jr:n[Mi]<0||n[Mi]>59?Mi:n[Po]<0||n[Po]>59?Po:n[hs]<0||n[hs]>999?hs:-1,Rn(e)._overflowDayOfYear&&(t<Ea||t>to)&&(t=to),Rn(e)._overflowWeeks&&t===-1&&(t=pie),Rn(e)._overflowWeekday&&t===-1&&(t=bie),Rn(e).overflow=t),e}var hoe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,goe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,voe=/Z|[+-]\d\d(?::?\d\d)?/,Oh=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jy=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],poe=/^\/?Date\((-?\d+)/i,boe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yoe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mP(e){var t,n,r=e._i,a=hoe.exec(r)||goe.exec(r),o,s,u,f,d=Oh.length,h=Jy.length;if(a){for(Rn(e).iso=!0,t=0,n=d;t<n;t++)if(Oh[t][1].exec(a[1])){s=Oh[t][0],o=Oh[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,n=h;t<n;t++)if(Jy[t][1].exec(a[3])){u=(a[2]||" ")+Jy[t][0];break}if(u==null){e._isValid=!1;return}}if(!o&&u!=null){e._isValid=!1;return}if(a[4])if(voe.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=s+(u||"")+(f||""),e1(e)}else e._isValid=!1}function xoe(e,t,n,r,a,o){var s=[Soe(e),rP.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&s.push(parseInt(o,10)),s}function Soe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Coe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function woe(e,t,n){if(e){var r=cP.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return Rn(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function $oe(e,t,n){if(e)return yoe[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return o*60+a}function hP(e){var t=boe.exec(Coe(e._i)),n;if(t){if(n=xoe(t[4],t[3],t[2],t[5],t[6],t[7]),!woe(t[1],n,e))return;e._a=n,e._tzm=$oe(t[8],t[9],t[10]),e._d=Sf.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Rn(e).rfc2822=!0}else e._isValid=!1}function Eoe(e){var t=poe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(mP(e),e._isValid===!1)delete e._isValid;else return;if(hP(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Kt.createFromInputFallback(e)}Kt.createFromInputFallback=Ci("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Oc(e,t,n){return e??t??n}function _oe(e){var t=new Date(Kt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function JC(e){var t,n,r=[],a,o,s;if(!e._d){for(a=_oe(e),e._w&&e._a[to]==null&&e._a[Do]==null&&Ooe(e),e._dayOfYear!=null&&(s=Oc(e._a[Ea],a[Ea]),(e._dayOfYear>Xd(s)||e._dayOfYear===0)&&(Rn(e)._overflowDayOfYear=!0),n=Sf(s,0,e._dayOfYear),e._a[Do]=n.getUTCMonth(),e._a[to]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Jr]===24&&e._a[Mi]===0&&e._a[Po]===0&&e._a[hs]===0&&(e._nextDay=!0,e._a[Jr]=0),e._d=(e._useUTC?Sf:Tie).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Jr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Rn(e).weekdayMismatch=!0)}}function Ooe(e){var t,n,r,a,o,s,u,f,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,s=4,n=Oc(t.GG,e._a[Ea],Cf(wr(),1,4).year),r=Oc(t.W,1),a=Oc(t.E,1),(a<1||a>7)&&(f=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,d=Cf(wr(),o,s),n=Oc(t.gg,e._a[Ea],d.year),r=Oc(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(f=!0)):a=o),r<1||r>Lo(n,o,s)?Rn(e)._overflowWeeks=!0:f!=null?Rn(e)._overflowWeekday=!0:(u=sP(n,r,a,o,s),e._a[Ea]=u.year,e._dayOfYear=u.dayOfYear)}Kt.ISO_8601=function(){};Kt.RFC_2822=function(){};function e1(e){if(e._f===Kt.ISO_8601){mP(e);return}if(e._f===Kt.RFC_2822){hP(e);return}e._a=[],Rn(e).empty=!0;var t=""+e._i,n,r,a,o,s,u=t.length,f=0,d,h;for(a=XD(e._f,e._locale).match(FC)||[],h=a.length,n=0;n<h;n++)o=a[n],r=(t.match(hie(o,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Rn(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),f+=r.length),Lc[o]?(r?Rn(e).empty=!1:Rn(e).unusedTokens.push(o),vie(o,r,e)):e._strict&&!r&&Rn(e).unusedTokens.push(o);Rn(e).charsLeftOver=u-f,t.length>0&&Rn(e).unusedInput.push(t),e._a[Jr]<=12&&Rn(e).bigHour===!0&&e._a[Jr]>0&&(Rn(e).bigHour=void 0),Rn(e).parsedDateParts=e._a.slice(0),Rn(e).meridiem=e._meridiem,e._a[Jr]=Ioe(e._locale,e._a[Jr],e._meridiem),d=Rn(e).era,d!==null&&(e._a[Ea]=e._locale.erasConvertYear(d,e._a[Ea])),JC(e),ZC(e)}function Ioe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Roe(e){var t,n,r,a,o,s,u=!1,f=e._f.length;if(f===0){Rn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)o=0,s=!1,t=HC({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],e1(t),LC(t)&&(s=!0),o+=Rn(t).charsLeftOver,o+=Rn(t).unusedTokens.length*10,Rn(t).score=o,u?o<r&&(r=o,n=t):(r==null||o<r||s)&&(r=o,n=t,s&&(u=!0));Ol(e,n||t)}function Noe(e){if(!e._d){var t=VC(e._i),n=t.day===void 0?t.date:t.day;e._a=qD([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),JC(e)}}function Moe(e){var t=new qf(ZC(gP(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gP(e){var t=e._i,n=e._f;return e._locale=e._locale||Go(e._l),t===null||n===void 0&&t===""?_v({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Bi(t)?new qf(ZC(t)):(Wf(t)?e._d=t:Hi(n)?Roe(e):n?e1(e):joe(e),LC(e)||(e._d=null),e))}function joe(e){var t=e._i;Aa(t)?e._d=new Date(Kt.now()):Wf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Eoe(e):Hi(t)?(e._a=qD(t.slice(0),function(n){return parseInt(n,10)}),JC(e)):bs(t)?Noe(e):Uo(t)?e._d=new Date(t):Kt.createFromInputFallback(e)}function vP(e,t,n,r,a){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(bs(e)&&zC(e)||Hi(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=e,o._f=t,o._strict=r,Moe(o)}function wr(e,t,n,r){return vP(e,t,n,r,!1)}var Toe=Ci("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_v()}),Doe=Ci("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_v()});function pP(e,t){var n,r;if(t.length===1&&Hi(t[0])&&(t=t[0]),!t.length)return wr();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Poe(){var e=[].slice.call(arguments,0);return pP("isBefore",e)}function koe(){var e=[].slice.call(arguments,0);return pP("isAfter",e)}var Aoe=function(){return Date.now?Date.now():+new Date},Id=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zoe(e){var t,n=!1,r,a=Id.length;for(t in e)if(Xn(e,t)&&!(Ar.call(Id,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Id[r]]){if(n)return!1;parseFloat(e[Id[r]])!==Vn(e[Id[r]])&&(n=!0)}return!0}function Loe(){return this._isValid}function Hoe(){return qi(NaN)}function Dv(e){var t=VC(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,u=t.hour||0,f=t.minute||0,d=t.second||0,h=t.millisecond||0;this._isValid=zoe(t),this._milliseconds=+h+d*1e3+f*6e4+u*1e3*60*60,this._days=+s+o*7,this._months=+a+r*3+n*12,this._data={},this._locale=Go(),this._bubble()}function Jh(e){return e instanceof Dv}function Kx(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Boe(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0,s;for(s=0;s<r;s++)Vn(e[s])!==Vn(t[s])&&o++;return o+a}function bP(e,t){an(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+so(~~(n/60),2)+t+so(~~n%60,2)})}bP("Z",":");bP("ZZ","");Gt("Z",Mv);Gt("ZZ",Mv);mr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=t1(Mv,e)});var Foe=/([\+\-]|\d\d)/gi;function t1(e,t){var n=(t||"").match(e),r,a,o;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(Foe)||["-",0,0],o=+(a[1]*60)+Vn(a[2]),o===0?0:a[0]==="+"?o:-o)}function n1(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Bi(e)||Wf(e)?e.valueOf():wr(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Kt.updateOffset(n,!1),n):wr(e).local()}function Ux(e){return-Math.round(e._d.getTimezoneOffset())}Kt.updateOffset=function(){};function Voe(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=t1(Mv,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=Ux(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?SP(this,qi(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Kt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Ux(this)}function Koe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Uoe(e){return this.utcOffset(0,e)}function Woe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ux(this),"m")),this}function qoe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=t1(fie,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Yoe(e){return this.isValid()?(e=e?wr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Goe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xoe(){if(!Aa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return HC(e,this),e=gP(e),e._a?(t=e._isUTC?co(e._a):wr(e._a),this._isDSTShifted=this.isValid()&&Boe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Qoe(){return this.isValid()?!this._isUTC:!1}function Zoe(){return this.isValid()?this._isUTC:!1}function yP(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Joe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ele=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qi(e,t){var n=e,r=null,a,o,s;return Jh(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Uo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Joe.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Vn(r[to])*a,h:Vn(r[Jr])*a,m:Vn(r[Mi])*a,s:Vn(r[Po])*a,ms:Vn(Kx(r[hs]*1e3))*a}):(r=ele.exec(e))?(a=r[1]==="-"?-1:1,n={y:ss(r[2],a),M:ss(r[3],a),w:ss(r[4],a),d:ss(r[5],a),h:ss(r[6],a),m:ss(r[7],a),s:ss(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=tle(wr(n.from),wr(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new Dv(n),Jh(e)&&Xn(e,"_locale")&&(o._locale=e._locale),Jh(e)&&Xn(e,"_isValid")&&(o._isValid=e._isValid),o}qi.fn=Dv.prototype;qi.invalid=Hoe;function ss(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function YI(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tle(e,t){var n;return e.isValid()&&t.isValid()?(t=n1(t,e),e.isBefore(t)?n=YI(e,t):(n=YI(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function xP(e,t){return function(n,r){var a,o;return r!==null&&!isNaN(+r)&&(GD(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),a=qi(n,r),SP(this,a,e),this}}function SP(e,t,n,r){var a=t._milliseconds,o=Kx(t._days),s=Kx(t._months);e.isValid()&&(r=r??!0,s&&iP(e,xf(e,"Month")+s*n),o&&nP(e,"Date",xf(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Kt.updateOffset(e,o||s))}var nle=xP(1,"add"),rle=xP(-1,"subtract");function CP(e){return typeof e=="string"||e instanceof String}function ale(e){return Bi(e)||Wf(e)||CP(e)||Uo(e)||ole(e)||ile(e)||e===null||e===void 0}function ile(e){var t=bs(e)&&!zC(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,s=r.length;for(a=0;a<s;a+=1)o=r[a],n=n||Xn(e,o);return t&&n}function ole(e){var t=Hi(e),n=!1;return t&&(n=e.filter(function(r){return!Uo(r)&&CP(e)}).length===0),t&&n}function lle(e){var t=bs(e)&&!zC(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,o;for(a=0;a<r.length;a+=1)o=r[a],n=n||Xn(e,o);return t&&n}function sle(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function cle(e,t){arguments.length===1&&(arguments[0]?ale(arguments[0])?(e=arguments[0],t=void 0):lle(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||wr(),r=n1(n,this).startOf("day"),a=Kt.calendarFormat(this,r)||"sameElse",o=t&&(uo(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,wr(n)))}function ule(){return new qf(this)}function dle(e,t){var n=Bi(e)?e:wr(e);return this.isValid()&&n.isValid()?(t=wi(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function fle(e,t){var n=Bi(e)?e:wr(e);return this.isValid()&&n.isValid()?(t=wi(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function mle(e,t,n,r){var a=Bi(e)?e:wr(e),o=Bi(t)?t:wr(t);return this.isValid()&&a.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function hle(e,t){var n=Bi(e)?e:wr(e),r;return this.isValid()&&n.isValid()?(t=wi(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function gle(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function vle(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ple(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=n1(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=wi(t),t){case"year":o=eg(this,r)/12;break;case"month":o=eg(this,r);break;case"quarter":o=eg(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:gi(o)}function eg(e,t){if(e.date()<t.date())return-eg(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,o;return t-r<0?(a=e.clone().add(n-1,"months"),o=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),o=(t-r)/(a-r)),-(n+o)||0}Kt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Kt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ble(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yle(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Zh(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):uo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Zh(n,"Z")):Zh(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xle(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+a+o)}function Sle(e){e||(e=this.isUtc()?Kt.defaultFormatUtc:Kt.defaultFormat);var t=Zh(this,e);return this.localeData().postformat(t)}function Cle(e,t){return this.isValid()&&(Bi(e)&&e.isValid()||wr(e).isValid())?qi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wle(e){return this.from(wr(),e)}function $le(e,t){return this.isValid()&&(Bi(e)&&e.isValid()||wr(e).isValid())?qi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ele(e){return this.to(wr(),e)}function wP(e){var t;return e===void 0?this._locale._abbr:(t=Go(e),t!=null&&(this._locale=t),this)}var $P=Ci("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function EP(){return this._locale}var $g=1e3,Hc=60*$g,Eg=60*Hc,_P=(365*400+97)*24*Eg;function Bc(e,t){return(e%t+t)%t}function OP(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-_P:new Date(e,t,n).valueOf()}function IP(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-_P:Date.UTC(e,t,n)}function _le(e){var t,n;if(e=wi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?IP:OP,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Bc(t+(this._isUTC?0:this.utcOffset()*Hc),Eg);break;case"minute":t=this._d.valueOf(),t-=Bc(t,Hc);break;case"second":t=this._d.valueOf(),t-=Bc(t,$g);break}return this._d.setTime(t),Kt.updateOffset(this,!0),this}function Ole(e){var t,n;if(e=wi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?IP:OP,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Eg-Bc(t+(this._isUTC?0:this.utcOffset()*Hc),Eg)-1;break;case"minute":t=this._d.valueOf(),t+=Hc-Bc(t,Hc)-1;break;case"second":t=this._d.valueOf(),t+=$g-Bc(t,$g)-1;break}return this._d.setTime(t),Kt.updateOffset(this,!0),this}function Ile(){return this._d.valueOf()-(this._offset||0)*6e4}function Rle(){return Math.floor(this.valueOf()/1e3)}function Nle(){return new Date(this.valueOf())}function Mle(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function jle(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tle(){return this.isValid()?this.toISOString():null}function Dle(){return LC(this)}function Ple(){return Ol({},Rn(this))}function kle(){return Rn(this).overflow}function Ale(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}an("N",0,0,"eraAbbr");an("NN",0,0,"eraAbbr");an("NNN",0,0,"eraAbbr");an("NNNN",0,0,"eraName");an("NNNNN",0,0,"eraNarrow");an("y",["y",1],"yo","eraYear");an("y",["yy",2],0,"eraYear");an("y",["yyy",3],0,"eraYear");an("y",["yyyy",4],0,"eraYear");Gt("N",r1);Gt("NN",r1);Gt("NNN",r1);Gt("NNNN",Yle);Gt("NNNNN",Gle);mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Rn(n).era=a:Rn(n).invalidEra=e});Gt("y",bu);Gt("yy",bu);Gt("yyy",bu);Gt("yyyy",bu);Gt("yo",Xle);mr(["y","yy","yyy","yyyy"],Ea);mr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ea]=n._locale.eraYearOrdinalParse(e,a):t[Ea]=parseInt(e,10)});function zle(e,t){var n,r,a,o=this._eras||Go("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":a=Kt(o[n].since).startOf("day"),o[n].since=a.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=Kt(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf();break}}return o}function Lle(e,t,n){var r,a,o=this.eras(),s,u,f;for(e=e.toUpperCase(),r=0,a=o.length;r<a;++r)if(s=o[r].name.toUpperCase(),u=o[r].abbr.toUpperCase(),f=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(u===e)return o[r];break;case"NNNN":if(s===e)return o[r];break;case"NNNNN":if(f===e)return o[r];break}else if([s,u,f].indexOf(e)>=0)return o[r]}function Hle(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Kt(e.since).year():Kt(e.since).year()+(t-e.offset)*n}function Ble(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Fle(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Vle(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Kle(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-Kt(a[e].since).year())*n+a[e].offset;return this.year()}function Ule(e){return Xn(this,"_erasNameRegex")||a1.call(this),e?this._erasNameRegex:this._erasRegex}function Wle(e){return Xn(this,"_erasAbbrRegex")||a1.call(this),e?this._erasAbbrRegex:this._erasRegex}function qle(e){return Xn(this,"_erasNarrowRegex")||a1.call(this),e?this._erasNarrowRegex:this._erasRegex}function r1(e,t){return t.erasAbbrRegex(e)}function Yle(e,t){return t.erasNameRegex(e)}function Gle(e,t){return t.erasNarrowRegex(e)}function Xle(e,t){return t._eraYearOrdinalRegex||bu}function a1(){var e=[],t=[],n=[],r=[],a,o,s,u,f,d=this.eras();for(a=0,o=d.length;a<o;++a)s=zo(d[a].name),u=zo(d[a].abbr),f=zo(d[a].narrow),t.push(s),e.push(u),n.push(f),r.push(s),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}an(0,["gg",2],0,function(){return this.weekYear()%100});an(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Pv(e,t){an(0,[e,e.length],0,t)}Pv("gggg","weekYear");Pv("ggggg","weekYear");Pv("GGGG","isoWeekYear");Pv("GGGGG","isoWeekYear");Gt("G",Nv);Gt("g",Nv);Gt("GG",$r,ti);Gt("gg",$r,ti);Gt("GGGG",UC,KC);Gt("gggg",UC,KC);Gt("GGGGG",Rv,Ov);Gt("ggggg",Rv,Ov);Gf(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Vn(e)});Gf(["gg","GG"],function(e,t,n,r){t[r]=Kt.parseTwoDigitYear(e)});function Qle(e){return RP.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zle(e){return RP.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Jle(){return Lo(this.year(),1,4)}function ese(){return Lo(this.isoWeekYear(),1,4)}function tse(){var e=this.localeData()._week;return Lo(this.year(),e.dow,e.doy)}function nse(){var e=this.localeData()._week;return Lo(this.weekYear(),e.dow,e.doy)}function RP(e,t,n,r,a){var o;return e==null?Cf(this,r,a).year:(o=Lo(e,r,a),t>o&&(t=o),rse.call(this,e,t,n,r,a))}function rse(e,t,n,r,a){var o=sP(e,t,n,r,a),s=Sf(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}an("Q",0,"Qo","quarter");Gt("Q",QD);mr("Q",function(e,t){t[Do]=(Vn(e)-1)*3});function ase(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}an("D",["DD",2],"Do","date");Gt("D",$r,yu);Gt("DD",$r,ti);Gt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});mr(["D","DD"],to);mr("Do",function(e,t){t[to]=Vn(e.match($r)[0])});var NP=xu("Date",!0);an("DDD",["DDDD",3],"DDDo","dayOfYear");Gt("DDD",Iv);Gt("DDDD",ZD);mr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function ise(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}an("m",["mm",2],0,"minute");Gt("m",$r,WC);Gt("mm",$r,ti);mr(["m","mm"],Mi);var ose=xu("Minutes",!1);an("s",["ss",2],0,"second");Gt("s",$r,WC);Gt("ss",$r,ti);mr(["s","ss"],Po);var lse=xu("Seconds",!1);an("S",0,0,function(){return~~(this.millisecond()/100)});an(0,["SS",2],0,function(){return~~(this.millisecond()/10)});an(0,["SSS",3],0,"millisecond");an(0,["SSSS",4],0,function(){return this.millisecond()*10});an(0,["SSSSS",5],0,function(){return this.millisecond()*100});an(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});an(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});an(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});an(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Gt("S",Iv,QD);Gt("SS",Iv,ti);Gt("SSS",Iv,ZD);var Il,MP;for(Il="SSSS";Il.length<=9;Il+="S")Gt(Il,bu);function sse(e,t){t[hs]=Vn(("0."+e)*1e3)}for(Il="S";Il.length<=9;Il+="S")mr(Il,sse);MP=xu("Milliseconds",!1);an("z",0,0,"zoneAbbr");an("zz",0,0,"zoneName");function cse(){return this._isUTC?"UTC":""}function use(){return this._isUTC?"Coordinated Universal Time":""}var pt=qf.prototype;pt.add=nle;pt.calendar=cle;pt.clone=ule;pt.diff=ple;pt.endOf=Ole;pt.format=Sle;pt.from=Cle;pt.fromNow=wle;pt.to=$le;pt.toNow=Ele;pt.get=xie;pt.invalidAt=kle;pt.isAfter=dle;pt.isBefore=fle;pt.isBetween=mle;pt.isSame=hle;pt.isSameOrAfter=gle;pt.isSameOrBefore=vle;pt.isValid=Dle;pt.lang=$P;pt.locale=wP;pt.localeData=EP;pt.max=Doe;pt.min=Toe;pt.parsingFlags=Ple;pt.set=Sie;pt.startOf=_le;pt.subtract=rle;pt.toArray=Mle;pt.toObject=jle;pt.toDate=Nle;pt.toISOString=yle;pt.inspect=xle;typeof Symbol<"u"&&Symbol.for!=null&&(pt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});pt.toJSON=Tle;pt.toString=ble;pt.unix=Rle;pt.valueOf=Ile;pt.creationData=Ale;pt.eraName=Ble;pt.eraNarrow=Fle;pt.eraAbbr=Vle;pt.eraYear=Kle;pt.year=tP;pt.isLeapYear=yie;pt.weekYear=Qle;pt.isoWeekYear=Zle;pt.quarter=pt.quarters=ase;pt.month=oP;pt.daysInMonth=Nie;pt.week=pt.weeks=zie;pt.isoWeek=pt.isoWeeks=Lie;pt.weeksInYear=tse;pt.weeksInWeekYear=nse;pt.isoWeeksInYear=Jle;pt.isoWeeksInISOWeekYear=ese;pt.date=NP;pt.day=pt.days=Zie;pt.weekday=Jie;pt.isoWeekday=eoe;pt.dayOfYear=ise;pt.hour=pt.hours=loe;pt.minute=pt.minutes=ose;pt.second=pt.seconds=lse;pt.millisecond=pt.milliseconds=MP;pt.utcOffset=Voe;pt.utc=Uoe;pt.local=Woe;pt.parseZone=qoe;pt.hasAlignedHourOffset=Yoe;pt.isDST=Goe;pt.isLocal=Qoe;pt.isUtcOffset=Zoe;pt.isUtc=yP;pt.isUTC=yP;pt.zoneAbbr=cse;pt.zoneName=use;pt.dates=Ci("dates accessor is deprecated. Use date instead.",NP);pt.months=Ci("months accessor is deprecated. Use month instead",oP);pt.years=Ci("years accessor is deprecated. Use year instead",tP);pt.zone=Ci("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Koe);pt.isDSTShifted=Ci("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Xoe);function dse(e){return wr(e*1e3)}function fse(){return wr.apply(null,arguments).parseZone()}function jP(e){return e}var Qn=BC.prototype;Qn.calendar=Qae;Qn.longDateFormat=tie;Qn.invalidDate=rie;Qn.ordinal=oie;Qn.preparse=jP;Qn.postformat=jP;Qn.relativeTime=sie;Qn.pastFuture=cie;Qn.set=Gae;Qn.eras=zle;Qn.erasParse=Lle;Qn.erasConvertYear=Hle;Qn.erasAbbrRegex=Wle;Qn.erasNameRegex=Ule;Qn.erasNarrowRegex=qle;Qn.months=_ie;Qn.monthsShort=Oie;Qn.monthsParse=Rie;Qn.monthsRegex=jie;Qn.monthsShortRegex=Mie;Qn.week=Die;Qn.firstDayOfYear=Aie;Qn.firstDayOfWeek=kie;Qn.weekdays=qie;Qn.weekdaysMin=Gie;Qn.weekdaysShort=Yie;Qn.weekdaysParse=Qie;Qn.weekdaysRegex=toe;Qn.weekdaysShortRegex=noe;Qn.weekdaysMinRegex=roe;Qn.isPM=ioe;Qn.meridiem=soe;function _g(e,t,n,r){var a=Go(),o=co().set(r,t);return a[n](o,e)}function TP(e,t,n){if(Uo(e)&&(t=e,e=void 0),e=e||"",t!=null)return _g(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=_g(e,r,n,"month");return a}function i1(e,t,n,r){typeof e=="boolean"?(Uo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Uo(t)&&(n=t,t=void 0),t=t||"");var a=Go(),o=e?a._week.dow:0,s,u=[];if(n!=null)return _g(t,(n+o)%7,r,"day");for(s=0;s<7;s++)u[s]=_g(t,(s+o)%7,r,"day");return u}function mse(e,t){return TP(e,t,"months")}function hse(e,t){return TP(e,t,"monthsShort")}function gse(e,t,n){return i1(e,t,n,"weekdays")}function vse(e,t,n){return i1(e,t,n,"weekdaysShort")}function pse(e,t,n){return i1(e,t,n,"weekdaysMin")}Ml("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Kt.lang=Ci("moment.lang is deprecated. Use moment.locale instead.",Ml);Kt.langData=Ci("moment.langData is deprecated. Use moment.localeData instead.",Go);var Io=Math.abs;function bse(){var e=this._data;return this._milliseconds=Io(this._milliseconds),this._days=Io(this._days),this._months=Io(this._months),e.milliseconds=Io(e.milliseconds),e.seconds=Io(e.seconds),e.minutes=Io(e.minutes),e.hours=Io(e.hours),e.months=Io(e.months),e.years=Io(e.years),this}function DP(e,t,n,r){var a=qi(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function yse(e,t){return DP(this,e,t,1)}function xse(e,t){return DP(this,e,t,-1)}function GI(e){return e<0?Math.floor(e):Math.ceil(e)}function Sse(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,o,s,u,f;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=GI(Wx(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=gi(e/1e3),r.seconds=a%60,o=gi(a/60),r.minutes=o%60,s=gi(o/60),r.hours=s%24,t+=gi(s/24),f=gi(PP(t)),n+=f,t-=GI(Wx(f)),u=gi(n/12),n%=12,r.days=t,r.months=n,r.years=u,this}function PP(e){return e*4800/146097}function Wx(e){return e*146097/4800}function Cse(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=wi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+PP(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Wx(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Xo(e){return function(){return this.as(e)}}var kP=Xo("ms"),wse=Xo("s"),$se=Xo("m"),Ese=Xo("h"),_se=Xo("d"),Ose=Xo("w"),Ise=Xo("M"),Rse=Xo("Q"),Nse=Xo("y"),Mse=kP;function jse(){return qi(this)}function Tse(e){return e=wi(e),this.isValid()?this[e+"s"]():NaN}function ks(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dse=ks("milliseconds"),Pse=ks("seconds"),kse=ks("minutes"),Ase=ks("hours"),zse=ks("days"),Lse=ks("months"),Hse=ks("years");function Bse(){return gi(this.days()/7)}var Mo=Math.round,jc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fse(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Vse(e,t,n,r){var a=qi(e).abs(),o=Mo(a.as("s")),s=Mo(a.as("m")),u=Mo(a.as("h")),f=Mo(a.as("d")),d=Mo(a.as("M")),h=Mo(a.as("w")),g=Mo(a.as("y")),v=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||u<=1&&["h"]||u<n.h&&["hh",u]||f<=1&&["d"]||f<n.d&&["dd",f];return n.w!=null&&(v=v||h<=1&&["w"]||h<n.w&&["ww",h]),v=v||d<=1&&["M"]||d<n.M&&["MM",d]||g<=1&&["y"]||["yy",g],v[2]=t,v[3]=+e>0,v[4]=r,Fse.apply(null,v)}function Kse(e){return e===void 0?Mo:typeof e=="function"?(Mo=e,!0):!1}function Use(e,t){return jc[e]===void 0?!1:t===void 0?jc[e]:(jc[e]=t,e==="s"&&(jc.ss=t-1),!0)}function Wse(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=jc,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},jc,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),o=Vse(this,!n,r,a),n&&(o=a.pastFuture(+this,o)),a.postformat(o)}var e0=Math.abs;function $c(e){return(e>0)-(e<0)||+e}function kv(){if(!this.isValid())return this.localeData().invalidDate();var e=e0(this._milliseconds)/1e3,t=e0(this._days),n=e0(this._months),r,a,o,s,u=this.asSeconds(),f,d,h,g;return u?(r=gi(e/60),a=gi(r/60),e%=60,r%=60,o=gi(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",d=$c(this._months)!==$c(u)?"-":"",h=$c(this._days)!==$c(u)?"-":"",g=$c(this._milliseconds)!==$c(u)?"-":"",f+"P"+(o?d+o+"Y":"")+(n?d+n+"M":"")+(t?h+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+s+"S":"")):"P0D"}var qn=Dv.prototype;qn.isValid=Loe;qn.abs=bse;qn.add=yse;qn.subtract=xse;qn.as=Cse;qn.asMilliseconds=kP;qn.asSeconds=wse;qn.asMinutes=$se;qn.asHours=Ese;qn.asDays=_se;qn.asWeeks=Ose;qn.asMonths=Ise;qn.asQuarters=Rse;qn.asYears=Nse;qn.valueOf=Mse;qn._bubble=Sse;qn.clone=jse;qn.get=Tse;qn.milliseconds=Dse;qn.seconds=Pse;qn.minutes=kse;qn.hours=Ase;qn.days=zse;qn.weeks=Bse;qn.months=Lse;qn.years=Hse;qn.humanize=Wse;qn.toISOString=kv;qn.toString=kv;qn.toJSON=kv;qn.locale=wP;qn.localeData=EP;qn.toIsoString=Ci("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kv);qn.lang=$P;an("X",0,0,"unix");an("x",0,0,"valueOf");Gt("x",Nv);Gt("X",mie);mr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});mr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js
Kt.version="2.30.1";qae(wr);Kt.fn=pt;Kt.min=Poe;Kt.max=koe;Kt.now=Aoe;Kt.utc=co;Kt.unix=dse;Kt.months=mse;Kt.isDate=Wf;Kt.locale=Ml;Kt.invalid=_v;Kt.duration=qi;Kt.isMoment=Bi;Kt.weekdays=gse;Kt.parseZone=fse;Kt.localeData=Go;Kt.isDuration=Jh;Kt.monthsShort=hse;Kt.weekdaysMin=pse;Kt.defineLocale=QC;Kt.updateLocale=foe;Kt.locales=moe;Kt.weekdaysShort=vse;Kt.normalizeUnits=wi;Kt.relativeTimeRounding=Kse;Kt.relativeTimeThreshold=Use;Kt.calendarFormat=sle;Kt.prototype=pt;Kt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const{Title:qse}=Ll,{Option:t0}=Et,XI=[{value:"activation_date",label:"Activation Date"},{value:"cryptographic_algorithm",label:"Cryptographic Algorithm"},{value:"cryptographic_length",label:"Cryptographic Length"},{value:"key_usage",label:"Key Usage"},{value:"public_key_id",label:"Public Key ID link"},{value:"private_key_id",label:"Private Key ID link"},{value:"certificate_id",label:"Certificate ID link"},{value:"pkcs12_certificate_id",label:"PKCS12 Certificate ID link"},{value:"pkcs12_password_certificate",label:"PKCS12 Password Certificate link"},{value:"parent_id",label:"Parent ID link"},{value:"child_id",label:"Child ID link"}],Yse=[{value:"AES",label:"AES"},{value:"RSA",label:"RSA"},{value:"ECDSA",label:"ECDSA"},{value:"ECDH",label:"ECDH"},{value:"EC",label:"EC"},{value:"ChaCha20",label:"ChaCha20"},{value:"ChaCha20Poly1305",label:"ChaCha20-Poly1305"},{value:"SHA3224",label:"SHA3-224"},{value:"SHA3256",label:"SHA3-256"},{value:"SHA3384",label:"SHA3-384"},{value:"SHA3512",label:"SHA3-512"},{value:"Ed25519",label:"Ed25519"},{value:"Ed448",label:"Ed448"},{value:"CoverCrypt",label:"CoverCrypt"},{value:"CoverCryptBulk",label:"CoverCryptBulk"}],Gse=[{value:"Sign",label:"Sign"},{value:"Verify",label:"Verify"},{value:"Encrypt",label:"Encrypt"},{value:"Decrypt",label:"Decrypt"},{value:"WrapKey",label:"Wrap Key"},{value:"UnwrapKey",label:"Unwrap Key"}],Xse=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),[o,s]=l.useState(void 0),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=b=>{s(b),e.setFieldsValue({attribute_value:void 0})},g=async b=>{a(!0);const x=b.id?b.id:b.tags?JSON.stringify(b.tags):void 0;try{if(x==null)throw n("Missing object identifier."),Error("Missing object identifier");if(!b.attribute_name||!b.attribute_value)throw n("Missing attribute."),Error("Missing attribute");let C=b.attribute_value;if(b.attribute_name==="activation_date"&&C){const $=Kt(C);C=Math.floor($.valueOf()/1e3).toString()}const y=Fre(x,b.attribute_name,C),w=await ar(y,u,f);if(w){const $=Vre(w);n(`Attribute has been set for ${$.UniqueIdentifier}`)}}catch(C){n(`Error setting attribute: ${C}`),console.error("Error setting attribute:",C)}finally{a(!1)}},v=()=>{var b;if(!o)return S.jsx(ht,{placeholder:"First select an attribute name",disabled:!0});switch(o){case"activation_date":return S.jsx(fe.Item,{name:"attribute_value",label:"Activation Date",rules:[{required:!0,message:"Please select activation date"}],children:S.jsx(Ds,{showTime:!0,style:{width:"100%"}})});case"cryptographic_algorithm":return S.jsx(fe.Item,{name:"attribute_value",label:"Cryptographic Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsx(Et,{placeholder:"Select algorithm",children:Yse.map(x=>S.jsx(t0,{value:x.value,children:x.label},x.value))})});case"cryptographic_length":return S.jsx(fe.Item,{name:"attribute_value",label:"Cryptographic Length",rules:[{required:!0,message:"Please enter length"}],children:S.jsx(ht,{type:"number",placeholder:"Enter length in bits"})});case"key_usage":return S.jsx(fe.Item,{name:"attribute_value",label:"Key Usage",rules:[{required:!0,message:"Please select key usage"}],children:S.jsx(Et,{placeholder:"Select key usage",children:Gse.map(x=>S.jsx(t0,{value:x.value,children:x.label},x.value))})});case"public_key_id":case"private_key_id":case"certificate_id":case"pkcs12_certificate_id":case"pkcs12_password_certificate":case"parent_id":case"child_id":return S.jsx(fe.Item,{name:"attribute_value",label:`${(b=XI.find(x=>x.value===o))==null?void 0:b.label} Value`,rules:[{required:!0,message:"Please enter ID value"}],children:S.jsx(ht,{placeholder:"Enter ID value"})});default:return S.jsx(fe.Item,{name:"attribute_value",label:"Attribute Value",rules:[{required:!0,message:"Please enter attribute value"}],children:S.jsx(ht,{placeholder:"Enter attribute value"})})}};return S.jsxs("div",{className:"p-6",children:[S.jsx(qse,{level:2,children:"Set KMIP Object Attribute"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Set a single attribute for a KMIP object by specifying the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to identify the object, rather than the object ID, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(fe,{form:e,onFinish:g,layout:"vertical",initialValues:{},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(ht,{placeholder:"Enter object ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:S.jsx(Et,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsxs(et,{title:"Attribute Setting",children:[S.jsx("div",{className:"mb-5",children:"Select one attribute to set for the selected KMIP object."}),S.jsx(fe.Item,{name:"attribute_name",label:"Attribute Name",rules:[{required:!0,message:"Please select an attribute name"}],help:"Select the KMIP attribute you want to set",children:S.jsx(Et,{placeholder:"Select attribute name",onChange:h,children:XI.map(b=>S.jsx(t0,{value:b.value,children:b.label},b.value))})}),v()]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Set Attribute"})})]})}),t&&S.jsx(et,{children:S.jsx("div",{ref:d,children:t})})]})},Qse=[{label:"RSA 1024",value:"rsa1024"},{label:"RSA 2048",value:"rsa2048"},{label:"RSA 3072",value:"rsa3072"},{label:"RSA 4096",value:"rsa4096"},{label:"NIST P-192",value:"nist-p192"},{label:"NIST P-224",value:"nist-p224"},{label:"NIST P-256",value:"nist-p256"},{label:"NIST P-384",value:"nist-p384"},{label:"NIST P-521",value:"nist-p521"},{label:"SECP224k1",value:"secp224k1"},{label:"SECP256k1",value:"secp256k1"},{label:"Ed25519",value:"ed25519"},{label:"Ed448",value:"ed448"}],Zse=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),[o,s]=l.useState("csr"),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=v=>{s(v.target.value),e.resetFields(["certificateSigningRequest","publicKeyIdToCertify","certificateIdToReCertify","generateKeyPair","subjectName","algorithm","issuerPrivateKeyId","issuerCertificateId","certificateExtensions"]),v.target.value==="generate"&&e.setFieldValue("generateKeyPair",!0)},g=async v=>{a(!0),n(void 0);try{const b=zre(v.certificateId,v.csrFormat,v.certificateSigningRequest,v.publicKeyIdToCertify,v.certificateIdToReCertify,v.generateKeyPair,v.subjectName,v.algorithm,v.issuerPrivateKeyId,v.issuerCertificateId,v.numberOfDays,v.certificateExtensions,v.tags),x=await ar(b,u,f);if(x){const C=await Lre(x);n(`Certificate successfully created with ID: ${C.UniqueIdentifier}`)}}catch(b){n(`Error certifying certificate: ${b}`),console.error("Error certifying certificate:",b)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Issuance and Renewal"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Issue or renew an X509 certificate using one of four methods:"}),S.jsxs("ol",{className:"list-decimal ml-5",children:[S.jsx("li",{children:"Provide a Certificate Signing Request (CSR)"}),S.jsx("li",{children:"Provide a public key ID to certify"}),S.jsx("li",{children:"Provide the ID of an existing certificate to re-certify"}),S.jsx("li",{children:"Generate a new keypair and create a certificate"})]})]}),S.jsx(fe,{form:e,onFinish:g,layout:"vertical",initialValues:{csrFormat:"pem",algorithm:"rsa4096",numberOfDays:365,generateKeyPair:!1,tags:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate ID (Optional)"}),S.jsx(fe.Item,{name:"certificateId",help:"If not provided, a random one will be generated when issuing a certificate, or the original one will be used when renewing",children:S.jsx(ht,{placeholder:"Enter certificate ID"})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certification Method"}),S.jsx(ha.Group,{onChange:h,value:o,children:S.jsxs(Hn,{direction:"vertical",children:[S.jsx(ha,{value:"csr",children:"1. Certificate Signing Request (CSR)"}),S.jsx(ha,{value:"publicKey",children:"2. Public Key ID to Certify"}),S.jsx(ha,{value:"reCertify",children:"3. Certificate ID to Re-certify"}),S.jsx(ha,{value:"generate",children:"4. Generate New Keypair"})]})}),o==="csr"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(fe.Item,{name:"certificateSigningRequest",label:"Certificate Signing Request",rules:[{required:!0,message:"Please upload a CSR file"}],children:S.jsx(ya.Dragger,{beforeUpload:v=>{const b=new FileReader;return b.onload=x=>{var y;const C=(y=x.target)==null?void 0:y.result;if(C&&C instanceof ArrayBuffer){const w=new Uint8Array(C);e.setFieldsValue({certificateSigningRequest:w})}},b.readAsArrayBuffer(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag CSR file to this area"})})}),S.jsx(fe.Item,{name:"csrFormat",label:"CSR Format",rules:[{required:!0}],children:S.jsxs(ha.Group,{children:[S.jsx(ha,{value:"pem",children:"PEM"}),S.jsx(ha,{value:"der",children:"DER"})]})})]}),o==="publicKey"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(fe.Item,{name:"publicKeyIdToCertify",label:"Public Key ID to Certify",rules:[{required:!0,message:"Please enter a public key ID"}],children:S.jsx(ht,{placeholder:"Enter public key ID"})}),S.jsx(fe.Item,{name:"subjectName",label:"Subject Name",rules:[{required:!0,message:"Subject name is required"}],help:'For instance: "CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"',children:S.jsx(ht,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})})]}),o==="reCertify"&&S.jsx("div",{className:"mt-4",children:S.jsx(fe.Item,{name:"certificateIdToReCertify",label:"Certificate ID to Re-certify",rules:[{required:!0,message:"Please enter a certificate ID"}],children:S.jsx(ht,{placeholder:"Enter certificate ID to re-certify"})})}),o==="generate"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(fe.Item,{name:"generateKeyPair",valuePropName:"checked",hidden:!0,children:S.jsx(Lr,{children:"Generate Key Pair"})}),S.jsx(fe.Item,{name:"subjectName",label:"Subject Name",rules:[{required:!0,message:"Subject name is required"}],help:'For instance: "CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"',children:S.jsx(ht,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})}),S.jsx(fe.Item,{name:"algorithm",label:"Key Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsx(Et,{options:Qse})})]})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Issuer Information"}),S.jsx("p",{className:"text-sm mb-4",children:"If no issuer is provided, the certificate will be self-signed (not valid for CSR)."}),S.jsx(fe.Item,{name:"issuerPrivateKeyId",label:"Issuer Private Key ID",help:"The unique identifier of the private key of the issuer",children:S.jsx(ht,{placeholder:"Enter issuer private key ID"})}),S.jsx(fe.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"The unique identifier of the certificate of the issuer",children:S.jsx(ht,{placeholder:"Enter issuer certificate ID"})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Options"}),S.jsx(fe.Item,{name:"numberOfDays",label:"Validity Period (days)",rules:[{required:!0,message:"Please enter number of days"}],help:"The requested number of validity days (server may grant a different value)",children:S.jsx(ht,{type:"number",min:1})}),S.jsx(fe.Item,{name:"certificateExtensions",label:"X509 Extensions File",help:"File containing a 'v3_ca' paragraph with X509 extensions",children:S.jsx(ya.Dragger,{beforeUpload:v=>{const b=new FileReader;return b.onload=x=>{var y;const C=(y=x.target)==null?void 0:y.result;if(C&&C instanceof ArrayBuffer){const w=new Uint8Array(C);e.setFieldsValue({certificateExtensions:w})}},b.readAsArrayBuffer(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag extensions file to this area"})})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to associate with the certificate (optional)",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Issue/Renew Certificate"})})]})}),t&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Certificate Response",children:t})})]})},Jse=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],ece=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.privateKeyId?d.privateKeyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Are(h,d.inputFile,d.authenticationData,d.encryptionAlgorithm),v=await ar(g,o,s);if(v){const b=await Kf(v),x=d.fileName.slice(0,-4),y=x.lastIndexOf(".")!==-1?x:`${x}.plain`,w=Vf(y);Ff(b.Data,y,w),n("File has been decrypted")}}catch(g){n(`Error decrypting: ${g}`),console.error("Error decrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using the private key of a certificate."}),S.jsx("p",{children:"The private key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Private Key Identification (required)"}),S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"The unique identifier of the private key related to certificate",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: This is only available for RSA keys (default is PKCS_OAEP)",children:S.jsx(Et,{options:Jse})}),S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: Authentication data that was supplied during encryption",children:S.jsx(ht,{placeholder:"Enter authentication data"})}),S.jsx(fe.Item,{name:"outputFile",label:"Output File Path",help:"Optional: Specify a custom output file path",children:S.jsx(ht,{placeholder:"Enter output file path"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Certificate decrypt response",children:t})})]})},tce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.certificateId?d.certificateId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing certificate identifier."),Error("Missing certificate identifier");const g=kre(h,d.inputFile,d.authenticationData,d.encryptionAlgorithm),v=await ar(g,o,s);if(v){const b=await Uf(v),x=new Uint8Array(b.Data),C="application/octet-stream";let y;d.outputFile?y=d.outputFile:y=`${d.fileName}.enc`,Ps(x,y,C),n("File has been encrypted")}}catch(g){n(`Error encrypting: ${g}`),console.error("Error encrypting with certificate:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using the certificate public key."}),S.jsx("p",{children:"The certificate can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",className:"space-y-6",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),S.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"The unique identifier of the certificate",children:S.jsx(ht,{placeholder:"Enter certificate ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Options"}),S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:S.jsx(ht.TextArea,{placeholder:"Enter authentication data",rows:2})}),S.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: only available for RSA keys. Default is PKCS#1 RSA OAEP",children:S.jsxs(ha.Group,{children:[S.jsx(ha,{value:"CkmRsaPkcsOaep",children:"PKCS#1 RSA OAEP"}),S.jsx(ha,{value:"CkmRsaPkcs",children:"PKCS#1 v1.5 RSA"}),S.jsx(ha,{value:"CkmRsaAesKeyWrap",children:"RSA AES Key Wrap"})]})}),S.jsx(fe.Item,{name:"outputFile",label:"Output File Path",help:"Optional: specify a custom output file path",children:S.jsx(ht,{placeholder:"Enter output file path"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File with Certificate"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Certificate encrypt response",children:t})})]})},nce={JsonTtlv:"json",Pem:"pem",Pkcs12:"p12",Pkcs12Legacy:"p12",Pkcs7:"p7b"},rce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),[o,s]=l.useState("JsonTtlv"),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=b=>{s(b)},g=async b=>{a(!0),n(void 0);const x=b.certificateId?b.certificateId:b.tags?JSON.stringify(b.tags):void 0;try{if(x==null)throw n("Missing certificate identifier."),Error("Missing certificate identifier");const C=jre(x,b.outputFormat,b.pkcs12Password),y=await ar(C,u,f);if(y){const w=await Tre(y,b.outputFormat),$=`certificate_${x}.${nce[b.outputFormat]}`;let E;switch(b.outputFormat){case"JsonTtlv":E="application/json";break;case"Pem":E="application/x-pem-file";break;case"Pkcs12":case"Pkcs12Legacy":E="application/x-pkcs12";break;case"Pkcs7":E="application/x-pkcs7-certificates";break;default:E="application/octet-stream"}Ps(w,$,E),n("Certificate has been exported")}}catch(C){n(`Error exporting certificate: ${C}`),console.error("Error exporting certificate:",C)}finally{a(!1)}},v=[{label:"JSON TTLV (default)",value:"JsonTtlv"},{label:"X509 PEM",value:"Pem"},{label:"PKCS12 (with private key)",value:"Pkcs12"},{label:"PKCS12 Legacy (compatible with openssl 1.x)",value:"Pkcs12Legacy"},{label:"PKCS7 (certificate chain)",value:"Pkcs7"}];return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Export Certificate"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Export a certificate from the KMS. The certificate can be identified using either its ID or associated tags."}),S.jsx("p",{children:"For PKCS#12 formats, provide the private key ID instead of certificate ID."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: PKCS12-legacy format is not available in FIPS mode."})]}),S.jsx(fe,{form:e,onFinish:g,layout:"vertical",initialValues:{outputFormat:"JsonTtlv"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),S.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"The unique identifier of the certificate stored in the KMS. For PKCS#12, provide the private key ID.",children:S.jsx(ht,{placeholder:"Enter certificate ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(et,{children:S.jsx(fe.Item,{name:"outputFormat",label:"Certificate Format",help:"Format for the exported certificate. JSON TTLV is recommended for later re-import.",rules:[{required:!0}],children:S.jsx(Et,{options:v,onChange:h})})}),(o==="Pkcs12"||o==="Pkcs12Legacy")&&S.jsx(et,{children:S.jsx(fe.Item,{name:"pkcs12Password",label:"PKCS#12 Password",help:"Password to protect the PKCS#12 file",rules:[{required:!0}],children:S.jsx(ht.Password,{placeholder:"Enter password for PKCS#12"})})}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Export Certificate"})})]})}),t&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Certificate export response",children:t})})]})},ace=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),[o,s]=l.useState("JsonTtlv"),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=async y=>{a(!0),n(void 0);try{if(y.certificateFile){const w=Mre(y.certificateId,y.certificateFile,y.inputFormat,y.privateKeyId,y.publicKeyId,y.issuerCertificateId,y.pkcs12Password,y.replaceExisting,y.tags,y.keyUsage),$=await ar(w,u,f);if($){const E=await PC($);n(`Certificate has been imported - imported object id: ${E.UniqueIdentifier}`)}}else throw n("Certificate file is required for the selected format"),Error("Certificate file is required")}catch(w){n(`Error importing certificate: ${w}`),console.error("Error importing certificate:",w)}finally{a(!1)}},g=[{label:"JSON TTLV (default)",value:"JsonTtlv"},{label:"X509 PEM",value:"Pem"},{label:"X509 DER",value:"Der"},{label:"PKCS#12",value:"Pkcs12"}],v=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}],b=y=>{s(y)},x=o==="Pkcs12",C=!["Pkcs12"].includes(o);return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Import Certificate"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Import a certificate or PKCS#12 file, into the KMS."}),S.jsx("p",{children:"When no unique ID is specified, a unique ID based on the key material will be generated."})]}),S.jsx(fe,{form:e,onFinish:h,layout:"vertical",initialValues:{inputFormat:"JsonTtlv",replaceExisting:!1,tags:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"inputFormat",label:"Certificate Format",help:"Format of the certificate to import",rules:[{required:!0}],children:S.jsx(Et,{options:g,onChange:y=>b(y)})}),S.jsx(fe.Item,{name:"certificateFile",label:"Certificate File",rules:[{required:!0,message:"Please upload a certificate file"}],help:`Upload the certificate file in ${o} format`,children:S.jsx(ya,{beforeUpload:y=>{const w=new FileReader;return w.onload=$=>{var I;const E=(I=$.target)==null?void 0:I.result;if(E&&E instanceof ArrayBuffer){const O=new Uint8Array(E);e.setFieldsValue({certificateFile:O})}},w.readAsArrayBuffer(y),!1},maxCount:1,children:S.jsx(mn,{icon:S.jsx(KD,{}),children:"Upload Certificate File"})})}),S.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"Optional: A unique ID based on the key material will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter certificate ID"})}),x&&S.jsx(fe.Item,{name:"pkcs12Password",label:"PKCS#12 Password",rules:[{required:!0}],help:"Password for the PKCS#12 file",children:S.jsx(ht.Password,{placeholder:"Enter PKCS#12 password"})})]}),C&&S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Relationships"}),S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Link to corresponding private key in KMS",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Link to corresponding public key in KMS",children:S.jsx(ht,{placeholder:"Enter public key ID"})}),S.jsx(fe.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"Link to issuer certificate in KMS",children:S.jsx(ht,{placeholder:"Enter issuer certificate ID"})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"keyUsage",label:"Key Usage",help:"Specify allowed operations for this certificate",children:S.jsx(Et,{mode:"multiple",options:v,placeholder:"Select key usage"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the certificate later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing certificate with the same ID",children:S.jsx(Lr,{children:"Replace existing certificate"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Import Certificate"})})]})}),t&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Certificate import response",children:t})})]})},ice=()=>{const[e]=fe.useForm(),[t,n]=l.useState(!1),[r,a]=l.useState(void 0),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{r&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[r]);const f=async d=>{n(!0),a(void 0);try{const h=d.validityTime?d.validityTime.toISOString():void 0,g=Dre(d.uniqueIdentifier,h),v=await ar(g,o,s);if(v){const b=await Pre(v);a(`Validation Status: ${b.ValidityIndicator}`)}}catch(h){a(`Error validating certificate: ${h}`),console.error("Error validating certificate:",h)}finally{n(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Validate Certificates"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Validate certificate chains to ensure they are properly signed, complete, and valid."}),S.jsx("p",{children:"You can specify certificate IDs stored in the KMS."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Input"}),S.jsx(fe.Item,{name:"uniqueIdentifier",label:"Certificate Unique Identifier",help:"Unique identifier of certificate stored in the KMS",rules:[{required:!0}],children:S.jsx(ht,{placeholder:"Enter certificate ID"})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Validation Parameters"}),S.jsx(fe.Item,{name:"validityTime",label:"Validity Time",help:"The time at which the certificate chain needs to be valid (defaults to current time if omitted)",children:S.jsx(Ds,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Validate Certificate"})})]})}),r&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Validation Results",children:r})})]})},oce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Nre(h,d.inputFile,d.authenticationData),v=await ar(g,o,s);if(v){const b=await Kf(v),x=new Uint8Array(b.Data),C=d.fileName.slice(0,-4),w=C.lastIndexOf(".")!==-1?C:`${C}.plain`,$=Vf(w);Ff(x,w,$),n("File has been decrypted")}}catch(g){n(`Error decrypting: ${g}`),console.error("Error decrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using Covercrypt."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the user decryption key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: authentication data that was supplied during encryption",children:S.jsx(ht.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Covercrypt decrypt response",children:t})})]})},lce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Rre(h,d.encryptionPolicy,d.inputFile,d.authenticationData),v=await ar(g,o,s);if(v){const b=await Uf(v),x=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Ps(x,y,C),n("File has been encrypted")}}catch(g){n(`Error encrypting: ${g}`),console.error("Error encrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using Covercrypt."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Policy (required)"}),S.jsx(fe.Item,{name:"encryptionPolicy",rules:[{required:!0,message:"Please enter an encryption policy"}],help:"Example: Department::HR && Security Level::Confidential",children:S.jsx(ht.TextArea,{placeholder:"Enter encryption policy",rows:2})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the master public key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:S.jsx(ht.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Covercrypt encrypt response",children:t})})]})},sce=`{
    "Security Level::<": [
        "Protected",
        "Confidential",
        "Top Secret::+"
    ],
    "Department": [
        "R&D",
        "HR",
        "MKG",
        "FIN"
    ]
}`,cce=()=>{const[e]=fe.useForm(),[t,n]=Se.useState("json-file"),[r,a]=l.useState(void 0),[o,s]=l.useState(!1),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{r&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[r]);const h=async v=>{s(!0),a(void 0);try{const b=Ore(v.specification,v.tags,v.sensitive,v.wrappingKeyId),x=await ar(b,u,f);if(x){const C=await TC(x);a(`Key pair has been created. Private key Id: ${C.PrivateKeyUniqueIdentifier} - Public key Id: ${C.PublicKeyUniqueIdentifier}`)}}catch(b){a(`${b}`),console.error(b)}finally{s(!1)}},g=()=>S.jsxs("div",{className:"mt-2 space-y-1",children:[S.jsx("p",{className:"font-medium",children:"This example creates a specification with:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsxs("li",{children:["Two specification axes: ",S.jsx("code",{children:"Security Level"})," and ",S.jsx("code",{children:"Department"})]}),S.jsxs("li",{children:["Hierarchical ",S.jsx("code",{children:"Security Level"})," axis (indicated by ",S.jsx("code",{children:"::<"})," suffix)"]}),S.jsx("li",{children:"Three security levels: Protected, Confidential, and Top Secret"}),S.jsx("li",{children:"Four departments: R&D, HR, MKG, and FIN"}),S.jsxs("li",{children:["Post-quantum encryption for Top Secret level (indicated by ",S.jsx("code",{children:"::+"})," suffix)"]}),S.jsx("li",{children:"Classic cryptography for other levels"})]})]});return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"Create a Covercrypt master key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new master key pair for a given specification."}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The master public key is used to encrypt files and can be safely shared"}),S.jsx("li",{children:"The master secret key is used to generate user decryption keys and must be kept confidential"})]})]}),S.jsx(fe,{form:e,onFinish:h,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Specification Configuration (required)"}),S.jsx(fe.Item,{name:"specification",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{children:S.jsx(Et,{value:t,onChange:v=>n(v),options:[{label:"Upload JSON Specification File",value:"json-file"},{label:"Enter JSON Specification",value:"json-text"}]})}),t==="json-file"&&S.jsx(fe.Item,{name:"specificationFile",rules:[{required:!0,message:"Please provide specifications"}],children:S.jsx(ya.Dragger,{accept:".json",beforeUpload:v=>{const b=new FileReader;return b.onload=x=>{var y;const C=(y=x.target)==null?void 0:y.result;C&&e.setFieldsValue({specification:C})},b.readAsText(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag JSON specification file"})})}),t==="json-text"&&S.jsx(fe.Item,{name:"specificationText",rules:[{required:!0,message:"Please enter specification JSON"},{validator:async(v,b)=>{if(b)try{JSON.parse(b),e.setFieldValue("specification",b)}catch(x){throw new Error(`Invalid JSON format: ${x}`)}}}],children:S.jsx(ht.TextArea,{placeholder:"Paste your JSON Specification here",rows:10,className:"font-mono text-sm"})})]}),S.jsxs("div",{className:"p-4 rounded mb-4",children:[S.jsx("p",{className:"text-sm mb-2",children:"Example Specification Format:"}),S.jsx("pre",{className:"p-2 rounded text-xs overflow-auto",children:sce}),S.jsx(g,{})]}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the keys later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the private key will not be exportable",children:S.jsx(Lr,{children:S.jsx("span",{children:"Sensitive Key"})})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:o,className:"w-full text-white font-medium",children:"Create Master Key pair"})})]})}),r&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Covercrypt Master keys creation response",children:r})})]})},uce=`Department::HR && Security Level::Confidential

More examples:
(Department::MKG && Security Level::Confidential) || (Department::HR && Security Level::Protected)`,dce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=Ire(d.masterPrivateKeyId,d.accessPolicy,d.tags,d.sensitive,d.wrappingKeyId),g=await ar(h,o,s);if(g){const v=await DC(g);n(`${v.UniqueIdentifier} has been created.`)}}catch(h){n(`${h}`),console.error(h)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a Covercrypt user key"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new user decryption key with specific access rights."}),S.jsx("p",{children:"The access policy is a boolean expression combining policy attributes."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(et,{children:S.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Configuration"}),S.jsx(fe.Item,{name:"masterPrivateKeyId",label:"Master Private Key ID",help:"The unique identifier of the master private key",rules:[{required:!0,message:"Please enter master private key ID"}],children:S.jsx(ht,{placeholder:"Enter master private key ID"})}),S.jsx(fe.Item,{name:"accessPolicy",label:"Access Policy",help:S.jsxs("div",{className:"text-sm space-y-2",children:[S.jsx("p",{children:"Boolean expression combining policy attributes"}),S.jsxs("div",{className:"p-3 rounded",children:[S.jsx("p",{className:"font-medium mb-2",children:"Example formats:"}),S.jsx("pre",{className:"text-xs whitespace-pre-wrap",children:uce}),S.jsx("p",{className:"mt-2 text-xs",children:'Note: A user with "Confidential" access will also have access to "Protected" data due to hierarchy.'})]}),S.jsxs("ul",{className:"list-disc pl-5 mt-2 space-y-1",children:[S.jsxs("li",{children:["Use ",S.jsx("code",{children:"&&"})," for AND, ",S.jsx("code",{children:"||"})," for OR"]}),S.jsx("li",{children:"Group expressions with parentheses"}),S.jsx("li",{children:"Use exact attribute names from the policy"})]})]}),rules:[{required:!0,message:"Please enter access policy"}],children:S.jsx(ht.TextArea,{placeholder:"Enter access policy expression",rows:4,className:"font-mono text-sm"})})]})}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the key later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the key will not be exportable",children:S.jsx(Lr,{children:S.jsx("span",{children:"Sensitive Key"})})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create User Key"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Covercrypt User key creation response",children:t})})]})},fce=()=>{const[e,t]=l.useState(!1),[n,r]=l.useState(null),[a,o]=l.useState(null),[s,u]=l.useState(void 0),{serverUrl:f,idToken:d}=kn(),h=l.useCallback(async()=>{t(!0),u(void 0),r(null),o(null);try{try{const g=await lo("/google_cse/status",null,f);r(g)}catch{u("Google CSE is not enabled/configured")}try{const g=jD("google_cse",!1,"raw");await ar(g,d,f),o(!0)}catch(g){console.warn("Symmetric google_cse key check failed:",g),o(!1)}}catch(g){u(`Error fetching CSE information: ${g}`),console.error("Error fetching CSE information:",g)}finally{t(!1)}},[d,f]);return l.useEffect(()=>{h()},[h]),S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"CSE Information"}),S.jsx(mn,{type:"primary",onClick:h,loading:e,className:"bg-blue-500 hover:bg-blue-700 border-0",children:"Refresh"})]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Google Client-Side Encryption (CSE) configuration and status information."}),S.jsx("p",{children:"This displays the current CSE server details, supported operations, and key availability."})]}),S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[n?S.jsxs(et,{title:"CSE Status",className:"border rounded",children:[S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:[S.jsxs("div",{children:[S.jsxs("p",{children:[S.jsx("strong",{children:"Server Type:"})," ",S.jsx(hi,{color:"blue",children:n.server_type})]}),S.jsxs("p",{children:[S.jsx("strong",{children:"Vendor:"})," ",n.vendor_id]}),S.jsxs("p",{children:[S.jsx("strong",{children:"Version:"})," ",S.jsx(hi,{color:"green",children:n.version})]})]}),S.jsxs("div",{children:[S.jsxs("p",{children:[S.jsx("strong",{children:"Name:"})," ",n.name]}),S.jsxs("p",{children:[S.jsx("strong",{children:"KACLS URL:"})," ",S.jsx("a",{href:n.kacls_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:n.kacls_url})]})]})]}),n.operations_supported&&S.jsxs("div",{children:[S.jsx("h4",{className:"font-semibold mb-3",children:"Supported Operations"}),S.jsx("div",{className:"flex flex-wrap gap-2",children:Object.values(n.operations_supported).map((g,v)=>S.jsx(hi,{color:"purple",children:g},v))})]})]}):S.jsx(et,{title:"CSE Status",className:"border rounded",children:S.jsx(xN,{message:s,type:"error",showIcon:!0})}),n&&S.jsx(et,{title:"Key Status",className:"border rounded",children:S.jsx("div",{className:"flex items-center space-x-3",children:S.jsx("div",{children:a===null?S.jsx(hi,{color:"default",children:"Checking..."}):a?S.jsx(hi,{color:"success",children:"✓ Access to google_cse symmetric key found"}):S.jsx(hi,{color:"error",children:"✗ No access to google_cse symmetric key found"})})})})]})]})},mce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=pre(h,d.inputFile),v=await ar(g,o,s);if(v){const b=await Kf(v),x=d.fileName.slice(0,-4),y=x.lastIndexOf(".")!==-1?x:`${x}.plain`,w=Vf(y);Ff(b.Data,y,w),n("File has been decrypted")}}catch(g){n(`Error decrypting: ${g}`),console.error("Error decrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"EC Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"EC decrypt response",children:t})})]})},hce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Cre(h,d.inputFile),v=await ar(g,o,s);if(v){const b=await Uf(v),x=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Ps(x,y,C),n("File has been encrypted")}}catch(g){n(`Error encrypting: ${g}`),console.error("Error encrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"EC Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",className:"space-y-6",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"EC encrypt response",children:t})})]})},gce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=fre(d.privateKeyId,d.tags,d.curve,d.sensitive,d.wrappingKeyId),g=await ar(h,o,s);if(g){const v=await TC(g);n(`Key pair has been created. Private key Id: ${v.PrivateKeyUniqueIdentifier} - Public key Id: ${v.PublicKeyUniqueIdentifier}`)}}catch(h){n(`Error creating EC keypair: ${h}`),console.error("Error creating EC keypair:",h)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an EC key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new Elliptic Curve key pair:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The public key is used to encrypt or verify a signature and can be safely shared."}),S.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]}),S.jsx("p",{children:"When creating a key pair with a specified tag, the tag is applied to both keys."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{curve:"nist-p256",tags:[],sensitive:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"curve",label:"Curve",help:"Select the elliptic curve to use",rules:[{required:!0,message:"Please select a curve"}],children:S.jsxs(Et,{children:[S.jsx(Et.Option,{value:"nist-p192",children:"NIST P-192"}),S.jsx(Et.Option,{value:"nist-p224",children:"NIST P-224"}),S.jsx(Et.Option,{value:"nist-p256",children:"NIST P-256"}),S.jsx(Et.Option,{value:"nist-p384",children:"NIST P-384"}),S.jsx(Et.Option,{value:"nist-p521",children:"NIST P-521"}),S.jsx(Et.Option,{value:"secp224k1",children:"SECP224k1"}),S.jsx(Et.Option,{value:"secp256k1",children:"SECP256k1"}),S.jsx(Et.Option,{value:"ed25519",children:"Ed25519"}),S.jsx(Et.Option,{value:"ed448",children:"Ed448"})]})}),S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new keypair with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:S.jsx(Lr,{children:"Sensitive"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create EC Keypair"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"EC key pair creation response",children:t})})]})},vce=[{label:"NIST Key Wrap (RFC 5649)",value:"nist-key-wrap"},{label:"AES GCM",value:"aes-gcm"},{label:"RSA PKCS v1.5",value:"rsa-pkcs-v15"},{label:"RSA OAEP",value:"rsa-oaep"},{label:"RSA AES Key Wrap",value:"rsa-aes-key-wrap"}],pce={"json-ttlv":"json","sec1-pem":"pem","pkcs1-pem":"pem","pkcs8-pem":"pem","sec1-der":"der","pkcs1-der":"der","pkcs8-der":"der",base64:"b64",raw:""},Rd=({key_type:e})=>{const[t]=fe.useForm(),[n,r]=l.useState(void 0),[a,o]=l.useState(!1),{idToken:s,serverUrl:u}=kn(),f=l.useRef(null),d=fe.useWatch("wrapKeyId",t),h=fe.useWatch("wrappingAlgorithm",t),g=fe.useWatch("keyFormat",t),v=e==="secret-data";l.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]),l.useEffect(()=>{d||t.setFieldsValue({wrappingAlgorithm:void 0,authenticatedAdditionalData:void 0})},[d,t]),l.useEffect(()=>{h!=="aes-gcm"&&t.setFieldsValue({authenticatedAdditionalData:void 0})},[h,t]);const b=async C=>{o(!0),r(void 0);const y=C.keyId?C.keyId:C.tags?JSON.stringify(C.tags):void 0;try{if(!y)throw r("Missing identifier."),new Error("Missing object identifier");const w=jD(y,C.unwrap,C.keyFormat,C.wrapKeyId,C.wrappingAlgorithm),$=await ar(w,s,u);if($){const E=await wre($,C.keyFormat),I=`${y}.${pce[C.keyFormat]}`,O=C.keyFormat==="json-ttlv"?"application/json":C.keyFormat==="base64"?"text/plain":"application/octet-stream";Ps(E,I,O),r("File has been exported")}}catch(w){r(`Error exporting ${v?"secret data":"key"}: ${w}`),console.error("Export error:",w)}finally{o(!1)}};let x=[];return e==="rsa"?x=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PKCS1 PEM",value:"pkcs1-pem"},{label:"PKCS1 DER",value:"pkcs1-der"},{label:"PKCS8 PEM",value:"pkcs8-pem"},{label:"PKCS8 DER",value:"pkcs8-der"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]:e==="ec"?x=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"SEC1 PEM",value:"sec1-pem"},{label:"SEC1 DER",value:"sec1-der"},{label:"PKCS8 PEM",value:"pkcs8-pem"},{label:"PKCS8 DER",value:"pkcs8-der"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]:e==="symmetric"||e==="secret-data"?x=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]:x=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Raw",value:"raw"}],S.jsxs("div",{className:"p-6",children:[S.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Export ",v?"Secret Data":e.toUpperCase()]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsxs("p",{children:["Export ",v?"secret data":e.toUpperCase()," from the KMS. The"," ",v?"secret data":"object"," can be identified using either its ID or associated tags."]}),!v&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"When exporting a key pair using its ID, only the public key is exported."}),S.jsx("p",{children:"The key can optionally be unwrapped and/or wrapped when exported."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Wrapping a key that is already wrapped is an error."})]})]}),S.jsx(fe,{form:t,onFinish:b,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,allowRevoked:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsxs("h3",{className:"text-m font-bold mb-4",children:[v?"Secret Data":"Key"," Identification (required)"]}),S.jsx(fe.Item,{name:"keyId",label:v?"Secret Data ID":"Key ID",children:S.jsx(ht,{placeholder:`Enter ${v?"secret data":"key"} ID`})}),S.jsx(fe.Item,{name:"tags",label:"Tags",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(et,{children:S.jsx(fe.Item,{name:"keyFormat",label:"Export Format",rules:[{required:!0}],children:S.jsx(Et,{options:x})})}),!v&&S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Unwrapping Options"}),S.jsx(fe.Item,{name:"unwrap",valuePropName:"checked",children:S.jsxs(Lr,{children:["Unwrap ",v?"secret data":"key"," before export"]})}),g!=="raw"&&g!=="base64"&&S.jsxs(S.Fragment,{children:[S.jsx(yW,{}),S.jsx("h3",{className:"text-m font-bold mb-4",children:"Wrapping Options"}),S.jsx(fe.Item,{name:"wrapKeyId",label:"Wrap Key ID",children:S.jsx(ht,{placeholder:"Enter wrap key ID"})}),S.jsx(fe.Item,{name:"wrappingAlgorithm",label:"Wrapping Algorithm",children:S.jsx(Et,{options:vce,placeholder:"Select algorithm",disabled:!d})}),h==="aes-gcm"&&S.jsx(fe.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",children:S.jsx(ht,{placeholder:"Enter authenticated data",disabled:!d})})]})]}),S.jsx(et,{children:S.jsx(fe.Item,{name:"allowRevoked",valuePropName:"checked",children:S.jsx(Lr,{children:"Allow revoked objects"})})}),S.jsx(fe.Item,{children:S.jsxs(mn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:["Export ",v?"Secret Data":"Key"]})})]})}),n&&S.jsx("div",{ref:f,children:S.jsx(et,{title:v?"Secret Data Export Response":"Key Export Response",children:n})})]})},Nd=({key_type:e})=>{const[t]=fe.useForm(),[n,r]=l.useState(void 0),[a,o]=l.useState(!1),{idToken:s,serverUrl:u}=kn(),f=l.useRef(null);l.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const d=async b=>{o(!0),r(void 0);try{const x=$re(b.keyId,b.keyFile,b.keyFormat,b.publicKeyId,b.privateKeyId,b.certificateId,b.unwrap,b.replaceExisting,b.tags,b.keyUsage,b.wrappingKeyId),C=await ar(x,s,u);if(C){const y=await PC(C);r(`File has been imported - imported object id: ${y.UniqueIdentifier}`)}}catch(x){r(`Error importing: ${x}`),console.error("Error importing:",x)}finally{o(!1)}};let h=[],g=[];e==="rsa"?(h=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PEM (auto-detect format)",value:"pem"},{label:"PKCS#1 DER (RSA private)",value:"pkcs1-priv"},{label:"PKCS#1 DER (RSA public)",value:"pkcs1-pub"},{label:"PKCS#8 DER (RSA private)",value:"pkcs8-priv"},{label:"PKCS#8 DER (RSA public)",value:"pkcs8-pub"}],g=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):e==="ec"?(h=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PEM (auto-detect format)",value:"pem"},{label:"SEC1 DER (EC private)",value:"sec1"},{label:"PKCS#8 DER (RSA public)",value:"pkcs8-pub"},{label:"PKCS#8 DER (RSA private)",value:"pkcs8-priv"}],g=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):e==="symmetric"?(h=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"AES",value:"aes"},{label:"ChaCha20",value:"chacha20"}],g=[{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):e==="secret-data"?(h=[{label:"JSON TTLV (default)",value:"json-ttlv"}],g=[{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):(h=[{label:"JSON TTLV (default)",value:"json-ttlv"}],g=[{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"}]);const v=e==="secret-data";return S.jsxs("div",{className:"p-6",children:[S.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Import ",v?"secret data":`${e} key`]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsxs("p",{children:["Import ",v?"secret data":`${e} key`," into the KMS."]}),S.jsx("p",{children:"When no ID is specified, a random UUID will be generated."})]}),S.jsx(fe,{form:t,onFinish:d,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,replaceExisting:!1,tags:[]},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"keyFile",label:v?"Data File":"Key File",rules:[{required:!0,message:"Please upload a file"}],help:v?"Upload the secret data file to import":"Upload the key file to import",children:S.jsx(ya,{beforeUpload:b=>{const x=new FileReader;return x.onload=C=>{var w;const y=(w=C.target)==null?void 0:w.result;if(typeof y=="string")try{if(/^[A-Za-z0-9+/=]+$/.test(y.trim())){const $=atob(y.trim()),E=new Uint8Array([...$].map(I=>I.charCodeAt(0)));t.setFieldsValue({keyFile:E})}else throw new Error("Invalid Base64 format")}catch{const $=new FileReader;$.onload=E=>{var O;const I=(O=E.target)==null?void 0:O.result;if(I instanceof ArrayBuffer){const R=new Uint8Array(I);t.setFieldsValue({keyFile:R})}},$.readAsArrayBuffer(b)}},x.readAsText(b),!1},maxCount:1,children:S.jsxs(mn,{icon:S.jsx(KD,{}),children:["Upload ",v?"Secret Data File":"Key File"]})})}),S.jsx(fe.Item,{name:"keyId",label:"ID",help:"Optional: A random UUID will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter ID"})}),S.jsx(fe.Item,{name:"keyFormat",label:"Format",help:"Format of the file to import",rules:[{required:!0}],children:S.jsx(Et,{options:h})})]}),!v&&S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Relationships"}),S.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Link to public key in KMS",children:S.jsx(ht,{placeholder:"Enter public key ID"})}),S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Link to private key in KMS",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"Link to certificate in KMS",children:S.jsx(ht,{placeholder:"Enter certificate ID"})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"keyUsage",label:"Usage",help:"Specify allowed operations",children:S.jsx(Et,{mode:"multiple",options:g,placeholder:"Select usage"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of wrapping key",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"unwrap",valuePropName:"checked",help:"Unwrap if wrapped before storing",children:S.jsx(Lr,{children:"Unwrap before import"})}),S.jsx(fe.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing object with same ID",children:S.jsx(Lr,{children:"Replace existing"})})]}),S.jsx(et,{children:S.jsx(fe.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",help:"Optional: For AES256GCM authenticated encryption",children:S.jsx(ht,{placeholder:"Enter authenticated data"})})}),S.jsx(fe.Item,{children:S.jsxs(mn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:["Import ",v?"Data":"Key"]})})]})}),n&&S.jsx("div",{ref:f,children:S.jsx(et,{title:"Import Response",children:n})})]})},bce=[{label:"Covercrypt",value:"CoverCrypt"},{label:"ECDH",value:"ECDH"},{label:"ChaCha20-Poly1305",value:"ChaCha20Poly1305"},{label:"AES",value:"AES"},{label:"Ed25519",value:"Ed25519"}],yce=[{label:"CoverCrypt Secret Key",value:"CoverCryptSecretKey"},{label:"CoverCrypt Public Key",value:"CoverCryptPublicKey"},{label:"Raw",value:"Raw"},{label:"PKCS8",value:"PKCS8"}],xce=[{label:"Certificate",value:"Certificate"},{label:"Symmetric Key",value:"SymmetricKey"},{label:"Public Key",value:"PublicKey"},{label:"Private Key",value:"PrivateKey"},{label:"Split Key",value:"SplitKey"},{label:"Secret Data",value:"SecretData"},{label:"Opaque Object",value:"OpaqueObject"},{label:"PGP Key",value:"PGPKey"},{label:"Certificate Request",value:"CertificateRequest"}],Sce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(!1),[r,a]=l.useState(void 0),[o,s]=l.useState(void 0),{idToken:u,serverUrl:f}=kn(),d=l.useRef(null);l.useEffect(()=>{r&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[r]);const h=async g=>{n(!0),a(void 0),s(void 0);try{const v=cre(g.tags,g.cryptographicAlgorithm,g.cryptographicLength,g.keyFormatType,g.objectType,g.publicKeyId,g.privateKeyId,g.certificateId),b=await ar(v,u,f);if(b){const x=await ure(b);x.UniqueIdentifier&&x.UniqueIdentifier.length&&s(x.UniqueIdentifier),a(`${x.LocatedItems} Object(s) located.`)}}catch(v){a(`Error locating object: ${v}`),console.error("Error locating object:",v)}finally{n(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Locate Cryptographic Objects"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Search for cryptographic objects in the KMS using various criteria."}),S.jsx("p",{children:"The HSM, if any, will not be searched"})]}),S.jsx(fe,{form:e,onFinish:h,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Basic Search Criteria"}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"User tags or system tags to locate the object",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"cryptographicAlgorithm",label:"Cryptographic Algorithm",help:"Algorithm used by the cryptographic object",children:S.jsx(Et,{options:bce,allowClear:!0,placeholder:"Select algorithm"})}),S.jsx(fe.Item,{name:"cryptographicLength",label:"Cryptographic Length",help:"Key size in bits",children:S.jsx(ht,{type:"number",placeholder:"Enter length in bits",min:0})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Object Type and Format"}),S.jsx(fe.Item,{name:"keyFormatType",label:"Key Format Type",help:"Format used to store the key",children:S.jsx(Et,{options:yce,allowClear:!0,placeholder:"Select key format"})}),S.jsx(fe.Item,{name:"objectType",label:"Object Type",help:"Type of cryptographic object",children:S.jsx(Et,{options:xce,allowClear:!0,placeholder:"Select object type"})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Linked Objects"}),S.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Find objects linked to this public key",children:S.jsx(ht,{placeholder:"Enter public key ID"})}),S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Find objects linked to this private key",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"Find objects linked to this certificate",children:S.jsx(ht,{placeholder:"Enter certificate ID"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Search Objects"})})]})}),r&&S.jsx("div",{ref:d,children:S.jsx(et,{title:"Locate response",children:S.jsx(ux,{header:S.jsx("div",{className:"font-bold",children:r}),size:"small",bordered:!0,dataSource:o,renderItem:g=>S.jsx(ux.Item,{children:g})})})})]})},QI=({auth:e,error:t})=>{const[n,r]=l.useState(!1),{login:a}=kn(),o=wv(),s=async()=>{try{r(!0),await a()}catch(u){console.error("Login error:",u),dC.error("Authentication failed. Please try again.")}finally{r(!1)}};return S.jsxs("div",{className:"relative min-h-screen flex items-center justify-center bg-gray-900 flex-col",children:[S.jsx("div",{className:"absolute inset-0 bg-cover bg-center flex",style:{backgroundImage:"url('/ui/login_page_background_image.png')"}}),S.jsxs("div",{className:"relative w-2/3 shadow-2xl rounded-lg p-20 flex flex-col items-center bg-purple-700/30",children:[S.jsx("img",{src:"/ui/Cosmian-Logo-Dark.svg",alt:"Cosmian Logo",className:"z-10 w-40 mb-20"}),S.jsx("div",{className:"text-center text-7xl font-bold text-white mb-20 z-10",children:"Cosmian KMS user interface"}),S.jsxs("div",{className:"space-y-6 text-center w-1/2",children:[e&&S.jsx("p",{className:"text-white",children:"Sign up for free and explore rights delegation for multiple users"}),t&&S.jsx("p",{className:"text-purple-700",children:t}),n?S.jsx(zf,{size:"large"}):e?S.jsx(mn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:s,loading:n,children:"LOGIN"}):S.jsx(mn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:()=>o("locate"),loading:n,children:"ACCESS KMS"})]})]})]})},Cce=({version:e})=>S.jsx(vi.Footer,{className:"text-center",children:S.jsxs("p",{children:["KMS Server Version: ",e]})}),wce=({isDarkMode:e})=>S.jsxs("div",{className:"flex items-center h-full w-full",children:[S.jsx("img",{src:e?"/ui/Cosmian-Logo-Dark.svg":"/ui/Cosmian-Logo.svg",alt:"Cosmian Logo",className:"h-7 mr-4 transition-opacity duration-300"}),S.jsx("h1",{className:"text-xl font-bold pl-10",children:"Key Management System"})]}),n0=[{key:"locate",label:"Locate",icon:S.jsx(Tae,{})},{key:"sym",label:"Symmetric",collapsedlabel:"SYM",children:[{key:"sym/keys",label:"Keys",children:[{key:"sym/keys/create",label:"Create"},{key:"sym/keys/export",label:"Export"},{key:"sym/keys/import",label:"Import"},{key:"sym/keys/revoke",label:"Revoke"},{key:"sym/keys/destroy",label:"Destroy"}]},{key:"sym/encrypt",label:"Encrypt"},{key:"sym/decrypt",label:"Decrypt"}]},{key:"rsa",label:"RSA",collapsedlabel:"RSA",children:[{key:"rsa/keys",label:"Keys",children:[{key:"rsa/keys/create",label:"Create"},{key:"rsa/keys/export",label:"Export"},{key:"rsa/keys/import",label:"Import"},{key:"rsa/keys/revoke",label:"Revoke"},{key:"rsa/keys/destroy",label:"Destroy"}]},{key:"rsa/encrypt",label:"Encrypt"},{key:"rsa/decrypt",label:"Decrypt"}]},{key:"ec",label:"Elliptic Curve",collapsedlabel:"EC",children:[{key:"ec/keys",label:"Keys",children:[{key:"ec/keys/create",label:"Create"},{key:"ec/keys/export",label:"Export"},{key:"ec/keys/import",label:"Import"},{key:"ec/keys/revoke",label:"Revoke"},{key:"ec/keys/destroy",label:"Destroy"}]},{key:"ec/encrypt",label:"Encrypt"},{key:"ec/decrypt",label:"Decrypt"}]},{key:"cc",label:"Covercrypt",collapsedlabel:"CC",children:[{key:"cc/keys",label:"Keys",children:[{key:"cc/keys/create-master-key-pair",label:"Create Master Key Pair"},{key:"cc/keys/create-user-key",label:"Create User Key"},{key:"cc/keys/export",label:"Export"},{key:"cc/keys/import",label:"Import"},{key:"cc/keys/revoke",label:"Revoke"},{key:"cc/keys/destroy",label:"Destroy"}]},{key:"cc/encrypt",label:"Encrypt"},{key:"cc/decrypt",label:"Decrypt"}]},{key:"sd",label:"Secret Data",collapsedlabel:"SD",children:[{key:"secret-data/create",label:"Create"},{key:"secret-data/export",label:"Export"},{key:"secret-data/import",label:"Import"},{key:"secret-data/revoke",label:"Revoke"},{key:"secret-data/destroy",label:"Destroy"}]},{key:"certificates",label:"Certificates",icon:S.jsx(Mae,{}),children:[{key:"certificates/certs",label:"Certs",children:[{key:"certificates/certs/certify",label:"Certify"},{key:"certificates/certs/export",label:"Export"},{key:"certificates/certs/import",label:"Import"},{key:"certificates/certs/revoke",label:"Revoke"},{key:"certificates/certs/destroy",label:"Destroy"},{key:"certificates/certs/validate",label:"Validate"}]},{key:"certificates/encrypt",label:"Encrypt"},{key:"certificates/decrypt",label:"Decrypt"}]},{key:"attributes",label:"Attributes",icon:S.jsx(Lae,{}),children:[{key:"attributes/get",label:"Get"},{key:"attributes/set",label:"Set"},{key:"attributes/delete",label:"Delete"}]},{key:"access-rights",label:"Access Rights",icon:S.jsx(Pae,{}),children:[{key:"access-rights/grant",label:"Grant"},{key:"access-rights/revoke",label:"Revoke"},{key:"access-rights/list",label:"List"},{key:"access-rights/owned",label:"Owned"},{key:"access-rights/obtained",label:"Obtained"}]},{key:"google-cse",label:"Google CSE",collapsedlabel:"CSE"}],{Sider:$ce}=vi,Ece=()=>{const[e,t]=l.useState(!1),n=wv(),[r,a]=l.useState([]),[o,s]=l.useState(n0),{idToken:u,serverUrl:f}=kn(),d=l.useCallback(async()=>{try{const C=await lo("/access/create",u,f);h(C.has_create_permission)}catch(C){console.error("Error fetching create permission:",C),h(!1)}},[u,f]);l.useEffect(()=>{d()},[d]);const h=C=>{const y=w=>w.map($=>{const E={...$},I=$.key&&($.key.includes("/create")||$.key.includes("/create-")||$.label==="Create"),O=$.key&&($.key.includes("/import")||$.key.includes("/import-")||$.label==="Import");return(I||O)&&(E.disabled=!C),E.children&&(E.children=y(E.children)),E});s(y(n0))},v=(C=>{const y={},w=($,E=1)=>{$.forEach(I=>{I.key&&(y[I.key]=E),I.children&&w(I.children,E+1)})};return w(C),y})(n0),b=C=>{const y=C.find(w=>r.indexOf(w)===-1);if(y!==void 0){const w=C.filter($=>$!==y).findIndex($=>v[$]===v[y]);a(C.filter(($,E)=>E!==w).filter($=>v[$]<=v[y]))}else a(C)},x=o.map(C=>({...C,label:e?S.jsx(bi,{title:C.label,children:C.icon?C.icon:C.collapsedlabel}):C.label}));return S.jsx($ce,{collapsible:!0,collapsed:e,onCollapse:t,className:"h-full",theme:"light",style:{position:"sticky",top:0,overflow:"auto"},children:S.jsx(Rs,{mode:"inline",defaultSelectedKeys:["1"],defaultOpenKeys:["access-rights"],openKeys:r,onOpenChange:b,items:x,onClick:({key:C})=>n(C),className:"h-full border-r-0",style:{fontWeight:"500",overflow:"auto"}})})},_ce=({isDarkMode:e,setIsDarkMode:t,authMethod:n})=>{const[r,a]=l.useState(""),[o,s]=l.useState(!0),{logout:u,idToken:f,serverUrl:d,userId:h}=kn();l.useEffect(()=>{async function v(){if(f||n!="JWT")try{const b=await lo("/version",f,d);a(b)}catch(b){console.error("Error fetching server version:",b),a("Unavailable")}finally{s(!1)}else s(!1)}v()},[f,n,d]);const g=async()=>{await u()};return S.jsxs(vi,{children:[S.jsx(vi.Header,{className:"fixed w-full z-10 p-0 h-16 border-b flex items-center justify-between border-gray-300",children:S.jsxs("div",{className:"flex items-center w-full h-full",children:[S.jsx(wce,{isDarkMode:e}),S.jsxs("div",{className:"flex items-center h-full",children:[S.jsx(TT,{className:"w-20",checked:e,onChange:()=>t(!e),checkedChildren:S.jsx(Rae,{}),unCheckedChildren:S.jsx(Aae,{})}),n==="JWT"&&S.jsxs("div",{className:"flex justify-center items-center h-full overflow-hidden ml-4",children:[h&&S.jsx(hi,{className:"truncate text-sm leading-tight",color:"purple",children:h}),S.jsx(mn,{onClick:g,className:"w-18 ml-4",children:"Logout"})]})]})]})}),S.jsxs(vi,{id:"main-page",className:"overflow-hidden",style:{marginTop:64,height:"calc(100vh - 64px)"},children:[S.jsx(Ece,{}),S.jsxs(vi,{id:"main-center",className:"flex flex-col overflow-hidden",children:[S.jsx(vi.Content,{id:"main-content",className:"flex-grow overflow-auto p-4",children:o?S.jsx(zf,{size:"large"}):S.jsx(vne,{})}),S.jsx(Cce,{version:r})]})]})]})},Oce=()=>S.jsxs("div",{style:{textAlign:"center",marginTop:"50px"},children:[S.jsx("h1",{children:"404 - Page Not Found"}),S.jsx("p",{children:"Oops! The page you're looking for doesn't exist."}),S.jsx(jC,{to:"/",children:"Go Home"})]}),Ec=({objectType:e})=>{const[t]=fe.useForm(),[n,r]=l.useState(void 0),[a,o]=l.useState(!1),{idToken:s,serverUrl:u}=kn(),f=l.useRef(null),d=RD(e),h=e==="rsa"||e==="ec"||e==="covercrypt"||e==="symmetric";l.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const g=async v=>{o(!0),r(void 0);const b=v.objectId?v.objectId:v.tags?JSON.stringify(v.tags):void 0;if(b==null)throw r(`Missing ${d} identifier.`),Error(`Missing ${d} identifier`);try{const x=bre(b,v.remove),C=await ar(x,s,u);if(C){const y=await yre(C);r(`${y.UniqueIdentifier} has been destroyed.`)}}catch(x){r(`Error destroying ${d}: ${x}`),console.error(`Error destroying ${d}:`,x)}finally{o(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(UD,{className:"text-2xl text-red-600"}),S.jsxs("h1",{className:"text-2xl font-bold",children:["Destroy ",ND(e)," ",d]})]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:S.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[S.jsx("p",{className:"font-bold",children:"Warning: This is a destructive action."}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsxs("li",{children:["The ",d," must be revoked first"]}),h&&S.jsxs(S.Fragment,{children:[S.jsx("li",{children:"Destroying either public or private key will destroy the whole key pair"}),S.jsx("li",{children:"Keys in external stores (HSMs) are automatically removed"})]}),e==="certificate"&&S.jsx("li",{children:"Destroying a certificate does not destroy its associated private key"}),S.jsxs("li",{children:["Destroyed ",d,"s can only be exported by the owner, without key material"]})]})]})}),S.jsxs("div",{children:["Destroying a ",d," is irreversible."]})]}),S.jsx(fe,{form:t,onFinish:g,layout:"vertical",initialValues:{remove:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsxs("h3",{className:"text-m font-bold mb-4",children:[d.charAt(0).toUpperCase()+d.slice(1)," Identification (required)"]}),S.jsx(fe.Item,{name:"objectId",label:`${d.charAt(0).toUpperCase()+d.slice(1)} ID`,help:`The unique identifier of the ${d} to destroy`,children:S.jsx(ht,{placeholder:`Enter ${d} ID`})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:`Alternative to ${d} ID: specify tags to identify the ${d}`,children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(et,{children:S.jsx(fe.Item,{name:"remove",valuePropName:"checked",help:`If enabled, the ${d} will be completely removed from the database. Otherwise, metadata will be retained.`,children:S.jsx(Lr,{children:"Remove completely from database"})})}),S.jsx(fe.Item,{children:S.jsxs(mn,{type:"primary",htmlType:"submit",loading:a,danger:!0,disabled:a,className:"w-full text-white font-medium",children:["Destroy ",d.charAt(0).toUpperCase()+d.slice(1)]})})]})}),n&&S.jsx("div",{ref:f,children:S.jsx(et,{title:`${d.charAt(0).toUpperCase()+d.slice(1)} destroy response`,children:n})})]})},Ice=()=>{const[e,t]=l.useState(!1),[n,r]=l.useState([]),[a,o]=l.useState(void 0),{idToken:s,serverUrl:u}=kn(),f=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"Type",key:"attributes.ObjectType",render:h=>{var g;return((g=h.attributes)==null?void 0:g.ObjectType)||"N/A"}},{title:"State",dataIndex:"state",key:"state",render:h=>S.jsx(hi,{color:h==="Active"?"green":"orange",children:h})}],d=l.useCallback(async()=>{t(!0),o(void 0),r([]);try{const h=await lo("/access/owned",s,u);h.length?r(h):o("Empty result - no object owned.")}catch(h){o(`Error listing objects: ${h}`),console.error("Error listing objects:",h)}finally{t(!1)}},[s,u]);return l.useEffect(()=>{d()},[d]),S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Objects owned"}),S.jsx(mn,{type:"primary",onClick:d,loading:e,className:"bg-black-500 hover:bg-blue-700 border-0",children:"Refresh"})]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"List of objects you own. "}),S.jsx("p",{children:"As an owner, you can perform any operation on these objects and grant access rights to other users."})]}),S.jsx(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:S.jsx(et,{children:S.jsx(Ki,{dataSource:n,columns:f,rowKey:"object_id",loading:e,pagination:{pageSize:10},className:"border rounded"})})}),a&&S.jsx(et,{title:"Owned objects response",children:a})]})},_c=({objectType:e})=>{const[t]=fe.useForm(),[n,r]=l.useState(void 0),[a,o]=l.useState(!1),{idToken:s,serverUrl:u}=kn(),f=l.useRef(null),d=RD(e);l.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const h=async g=>{o(!0),r(void 0);const v=g.objectId||(g.tags?JSON.stringify(g.tags):void 0);if(!v)throw r(`Missing ${d} identifier.`),new Error(`Missing ${d} identifier`);try{const b=Ere(v,g.revocationReasonMessage),x=await ar(b,s,u);if(x){const C=await _re(x);r(`${C.UniqueIdentifier} has been revoked.`)}}catch(b){r(`Error revoking ${d}: ${b}`),console.error(`Error revoking ${d}:`,b)}finally{o(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(UD,{className:"text-2xl text-red-500"}),S.jsxs("h1",{className:"text-2xl font-bold",children:["Revoke ",ND(e)," ",d]})]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:S.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[S.jsxs("p",{children:[S.jsx("strong",{children:"Warning:"})," This action cannot be undone."]}),S.jsxs("p",{children:["Once a ",d," is revoked, it can only be exported by the owner using the ",S.jsx("i",{children:"allow-revoked"})," flag."]}),(e==="rsa"||e==="ec")&&S.jsx("p",{children:"Revoking either the public or private key will revoke the whole key pair."}),e==="certificate"&&S.jsx("p",{children:"Revoking a certificate does not revoke its associated private key."})]})}),S.jsxs("div",{children:["Revoking a ",d," is irreversible and may affect dependent applications."]})]}),S.jsx(fe,{form:t,onFinish:h,layout:"vertical",children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(et,{children:S.jsx(fe.Item,{name:"revocationReasonMessage",label:"Revocation Reason Message",rules:[{required:!0,message:`Please specify the reason for ${d} revocation`}],help:`Provide a clear reason for revoking this ${d}`,children:S.jsx(ht.TextArea,{placeholder:`Enter the reason for ${d} revocation`,rows:3})})}),S.jsxs(et,{children:[S.jsxs("h3",{className:"text-m font-bold mb-4",children:[d.charAt(0).toUpperCase()+d.slice(1)," Identification (required)"]}),S.jsx(fe.Item,{name:"objectId",label:`${d.charAt(0).toUpperCase()+d.slice(1)} ID`,help:`The unique identifier of the ${d} to revoke`,children:S.jsx(ht,{placeholder:`Enter ${d} ID`})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:`Alternative to ${d} ID: specify tags to identify the ${d}`,children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(fe.Item,{children:S.jsxs(mn,{type:"primary",htmlType:"submit",loading:a,danger:!0,className:"w-full text-white font-medium",children:["Revoke ",d.charAt(0).toUpperCase()+d.slice(1)]})})]})}),n&&S.jsx("div",{ref:f,children:S.jsx(et,{title:`${d.charAt(0).toUpperCase()+d.slice(1)} revoke response`,children:n})})]})},Rce=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],Nce=[{label:"SHA-1",value:"Sha1"},{label:"SHA-224",value:"Sha224"},{label:"SHA-256",value:"Sha256"},{label:"SHA-384",value:"Sha384"},{label:"SHA-512",value:"Sha512"}],Mce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=vre(h,d.inputFile,d.encryptionAlgorithm,d.hashingAlgorithm),v=await ar(g,o,s);if(v){const b=await Kf(v),x=d.fileName.slice(0,-4),y=x.lastIndexOf(".")!==-1?x:`${x}.plain`,w=Vf(y);Ff(b.Data,y,w),n("File has been decrypted")}}catch(g){n(`Error decrypting: ${g}`),console.error("Error decrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using RSA private key."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"Must match the algorithm used for encryption",children:S.jsx(Et,{options:Rce})}),S.jsx(fe.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"For OAEP and AES key wrap (must match encryption)",children:S.jsx(Et,{options:Nce})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"RSA decrypt response",children:t})})]})},jce=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],Tce=[{label:"SHA-1",value:"Sha1"},{label:"SHA-224",value:"Sha224"},{label:"SHA-256",value:"Sha256"},{label:"SHA-384",value:"Sha384"},{label:"SHA-512",value:"Sha512"}],Dce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);const h=d.keyId?d.keyId:d.tags?JSON.stringify(d.tags):void 0;try{if(h==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Sre(h,d.inputFile,d.encryptionAlgorithm,d.hashingAlgorithm),v=await ar(g,o,s);if(v){const b=await Uf(v),x=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Ps(x,y,C),n("File has been encrypted")}}catch(g){n(`Error encrypting: ${g}`),console.error("Error encrypting:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using RSA public key."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: RSA PKCS #1 v1.5 is deprecated in FIPS 140-3."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=g=>{var b;const v=(b=g.target)==null?void 0:b.result;if(v&&v instanceof ArrayBuffer){const x=new Uint8Array(v);e.setFieldsValue({inputFile:x})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"RSA OAEP is recommended for security",children:S.jsx(Et,{options:jce})}),S.jsx(fe.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"SHA-256 or stronger is recommended",children:S.jsx(Et,{options:Tce})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"RSA encrypt response",children:t})})]})},Pce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=dre(d.privateKeyId,d.tags,d.sizeInBits,d.sensitive,d.wrappingKeyId),g=await ar(h,o,s);if(g){const v=await TC(g);n(`Key pair has been created. Private key Id: ${v.PrivateKeyUniqueIdentifier} - Public key Id: ${v.PublicKeyUniqueIdentifier}`)}}catch(h){n(`Error creating keypair: ${h}`),console.error("Error creating keypair:",h)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an RSA key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new RSA key pair:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The public key is used to encrypt or verify signatures and can be safely shared."}),S.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]}),S.jsx("p",{children:"When creating a key pair with a specified tag, the tag is applied to both keys."})]}),S.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{sizeInBits:4096,tags:[],sensitive:!1},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter private key ID"})}),S.jsx(fe.Item,{name:"sizeInBits",label:"Size in Bits",help:"The expected size in bits for the RSA key",rules:[{required:!0,message:"Please specify the key size"}],children:S.jsx(iC,{className:"w-[200px]",min:1024,step:1024,max:8192})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new keypair with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:S.jsx(Lr,{children:"Sensitive"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create RSA Keypair"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"RSA keys creation response",children:t})})]})},kce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null),f=fe.useWatch("secretValue",e);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]),l.useEffect(()=>{f||e.setFieldsValue({secretType:"Seed"})},[f,e]);const d=async h=>{a(!0),n(void 0);try{const g=hre(h.secretType,h.secretValue,h.secretId,h.tags,h.sensitive,h.wrappingKeyId),v=await ar(g,o,s);if(v)if(h.secretValue){const b=await PC(v);n(`${b.UniqueIdentifier} has been created.`)}else{const b=await DC(v);n(`${b.UniqueIdentifier} has been created.`)}}catch(g){n(`Error creating secret data: ${g}`),console.error("Error creating secret data:",g)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a new secret data"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new secret data:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"When the secret value is specified, the secret will be created from the provided value."}),S.jsx("li",{children:"Otherwise, a fresh 256-bit random seed will be created."}),S.jsx("li",{children:"Tags can later be used to retrieve the secret. Tags are optional."})]})]}),S.jsxs(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{secretType:"Seed",tags:[],sensitive:!1},children:[S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"secretValue",label:"Secret Value",help:"Optional secret data string, UTF-8 encoded. If not provided, a random 32-byte seed will be generated.",children:S.jsx(ht.TextArea,{placeholder:"Enter secret value",rows:2})}),S.jsx(fe.Item,{name:"secretType",label:"Secret Data Type",help:"Defaults to a randomly generated Seed. To use a Password type, you must provide both this and a valid secret value",rules:[{required:!0,message:"Please select a secret type"}],children:S.jsxs(Et,{disabled:!f,children:[S.jsx(Et.Option,{value:"Seed",children:"Seed"}),S.jsx(Et.Option,{value:"Password",children:"Password"})]})}),S.jsx(fe.Item,{name:"secretId",label:"Secret Data ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter secret ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the secret later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new secret data with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the secret will not be exportable",children:S.jsx(Lr,{children:"Sensitive"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create Secret Data"})})]}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Secret data creation response",children:t})})]})]})},Ace=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=mre(d.keyId,d.tags,d.numberOfBits,d.algorithm,d.sensitive,d.wrappingKeyId),g=await ar(h,o,s);if(g){const v=await DC(g);n(`${v.UniqueIdentifier} has been created.`)}}catch(h){n(`Error creating key: ${h}`),console.error("Error creating key:",h)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a symmetric key"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new symmetric key:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"When bytes are specified, the key will be created from the provided bytes."}),S.jsx("li",{children:"Otherwise, the key will be randomly generated with the specified number of bits."}),S.jsx("li",{children:"If no options are specified, a fresh 256-bit AES key will be created."})]})]}),S.jsxs(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{algorithm:"Aes",numberOfBits:256,tags:[],sensitive:!1},children:[S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx(fe.Item,{name:"algorithm",label:"Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsxs(Et,{children:[S.jsx(Et.Option,{value:"Aes",children:"Aes"}),S.jsx(Et.Option,{value:"Chacha20",children:"ChaCha20"}),S.jsx(Et.Option,{value:"Sha3",children:"SHA3"}),S.jsx(Et.Option,{value:"Shake",children:"SHAKE"})]})}),S.jsx(fe.Item,{name:"numberOfBits",label:"Number of Bits",help:"The length of the generated random key in bits",children:S.jsx(iC,{className:"w-[200px]",min:128,step:128,max:512})}),S.jsx(fe.Item,{name:"bytesB64",label:"Key Bytes (Base64)",help:"Optional: specify the key bytes directly instead of generating random ones",children:S.jsx(ht.TextArea,{placeholder:"Enter base64 encoded key bytes",rows:4})}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the key later",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:S.jsx(ht,{placeholder:"Enter wrapping key ID"})}),S.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the key will not be exportable",children:S.jsx(Lr,{children:"Sensitive"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create Symmetric Key"})})]}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Symmetric keys creation response",children:t})})]})]})},zce=[{label:"AES-GCM (default)",value:"AesGcm"},{label:"AES-CBC",value:"AesCbc"},{label:"AES-XTS",value:"AesXts"},{label:"AES-GCM-SIV",value:"AesGcmSiv"},{label:"ChaCha20-Poly1305",value:"Chacha20Poly1305"}],Lce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null),f=fe.useWatch("dataEncryptionAlgorithm",e);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async h=>{const g=h.keyId?h.keyId:h.tags?JSON.stringify(h.tags):void 0;try{if(g==null)throw n("Missing key identifier."),Error("Missing key identifier");const v=gre(g,h.inputFile,h.authenticationData,h.dataEncryptionAlgorithm),b=await ar(v,o,s);if(b){const x=await Kf(b),C=h.fileName.slice(0,-4),w=C.lastIndexOf(".")!==-1?C:`${C}.plain`,$=Vf(w);Ff(x.Data,w,$),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Symmetric Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using a symmetric key."}),S.jsx("p",{children:"Decryption can happen in two ways:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"Server side: the data is sent to the server and decrypted there."}),S.jsx("li",{children:"Client side: The data encryption key (DEK) is decrypted server-side, then data is decrypted locally."})]}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side decryption loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:h=>{e.setFieldValue("fileName",h.name);const g=new FileReader;return g.onload=v=>{var x;const b=(x=v.target)==null?void 0:x.result;if(b&&b instanceof ArrayBuffer){const C=new Uint8Array(b);e.setFieldsValue({inputFile:C})}},g.readAsArrayBuffer(h),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:S.jsx(Et,{options:zce})}),f!=="AesXts"&&f!=="AesCbc"&&S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional hex-encoded authentication data used during encryption",children:S.jsx(ht,{placeholder:"Enter authentication data (hex)"})})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Symmetric keys decrypt response",children:t})})]})},Hce=()=>{const[e]=fe.useForm(),[t,n]=l.useState(void 0),[r,a]=l.useState(!1),{idToken:o,serverUrl:s}=kn(),u=l.useRef(null),f=fe.useWatch("dataEncryptionAlgorithm",e);l.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async h=>{a(!0),n(void 0);const g=h.keyId?h.keyId:h.tags?JSON.stringify(h.tags):void 0;try{if(g==null)throw n("Missing key identifier."),Error("Missing key identifier");const v=xre(g,void 0,h.inputFile,h.nonce,h.authenticationData,h.dataEncryptionAlgorithm),b=await ar(v,o,s);if(b){const{IVCounterNonce:x,Data:C,AuthenticatedEncryptionTag:y}=await Uf(b),w=new Uint8Array(x.length+C.length+y.length);w.set(x,0),w.set(C,x.length),w.set(y,x.length+C.length);const $="application/octet-stream",E=`${h.fileName}.enc`;Ps(w,E,$),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting:",v)}finally{a(!1)}};return S.jsxs("div",{className:"rounded-lg p-6 m-4",children:[S.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"Symmetric Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using a symmetric key."}),S.jsx("p",{children:"Encryption can happen in two ways:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"Server side: the data is sent to the server and encrypted there."}),S.jsx("li",{children:"Client side: The data encryption key (DEK) is encrypted server-side, then data is encrypted locally."})]}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side encryption loads the entire file in memory."})]}),S.jsx(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:S.jsxs(Hn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:S.jsx(ht,{})}),S.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(ya.Dragger,{beforeUpload:h=>{e.setFieldValue("fileName",h.name);const g=new FileReader;return g.onload=v=>{var x;const b=(x=v.target)==null?void 0:x.result;if(b&&b instanceof ArrayBuffer){const C=new Uint8Array(b);e.setFieldsValue({inputFile:C})}},g.readAsArrayBuffer(h),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(et,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:S.jsx(ht,{placeholder:"Enter key ID"})}),S.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(Et,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(et,{children:[S.jsx(fe.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:S.jsxs(Et,{children:[S.jsx(Et.Option,{value:"AesGcm",children:"AES-GCM"}),S.jsx(Et.Option,{value:"AesGcmSiv",children:"AES-GCM-SIV"}),S.jsx(Et.Option,{value:"AesCbc",children:"AES-CBC"}),S.jsx(Et.Option,{value:"Chacha20Poly1305",children:"ChaCha20-Poly1305"}),S.jsx(Et.Option,{value:"AesXts",children:"AES-XTS"})]})}),f!=="AesXts"&&f!=="AesCbc"&&S.jsxs(S.Fragment,{children:[S.jsx(fe.Item,{name:"nonce",label:"Nonce/IV",help:"Optional: random value will be generated if not provided (hex string)",children:S.jsx(ht,{placeholder:"Enter nonce in hex format"})}),S.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: additional authentication data (hex string)",children:S.jsx(ht,{placeholder:"Enter authentication data in hex format"})})]})]}),S.jsx(fe.Item,{children:S.jsx(mn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File (Server-side)"})})]})}),t&&S.jsx("div",{ref:u,children:S.jsx(et,{title:"Symmetric keys encrypt response",children:t})})]})},Bce=({isDarkMode:e,setIsDarkMode:t})=>{const{setServerUrl:n,setIdToken:r,setUserId:a}=kn(),[o,s]=l.useState(!1),[u,f]=l.useState(!1),[d,h]=l.useState("None"),[g,v]=l.useState(void 0);return l.useEffect(()=>{const b=window.location.origin;n(b);const x=async()=>{const C=await ere(b);if(h(C),C=="JWT"){const y=await Jne(b);if(y)try{await lo("/version",y.id_token,b)&&(r(y.id_token),a(y.user_id),s(!0),v(void 0))}catch(w){console.log(w),v(`An error occurred: ${w}`)}}f(!1)};f(!0),x()},[]),u?S.jsx(S.Fragment,{}):S.jsx(bne,{children:!o&&d==="JWT"?S.jsxs(S.Fragment,{children:[S.jsx(Xt,{path:"/login",element:S.jsx(QI,{auth:!0,error:g})}),S.jsx(Xt,{path:"*",element:S.jsx(gne,{to:"/login",replace:!0})})]}):S.jsxs(S.Fragment,{children:[S.jsx(Xt,{index:!0,element:S.jsx(QI,{auth:!1})}),S.jsxs(Xt,{path:"/",element:S.jsx(_ce,{isDarkMode:e,setIsDarkMode:t,authMethod:d}),children:[S.jsx(Xt,{path:"locate",element:S.jsx(Sce,{})}),S.jsxs(Xt,{path:"sym",children:[S.jsx(Xt,{path:"keys/create",element:S.jsx(Ace,{})}),S.jsx(Xt,{path:"keys/export",element:S.jsx(Rd,{key_type:"symmetric"})}),S.jsx(Xt,{path:"keys/import",element:S.jsx(Nd,{key_type:"symmetric"})}),S.jsx(Xt,{path:"keys/revoke",element:S.jsx(_c,{objectType:"symmetric"})}),S.jsx(Xt,{path:"keys/destroy",element:S.jsx(Ec,{objectType:"symmetric"})}),S.jsx(Xt,{path:"encrypt",element:S.jsx(Hce,{})}),S.jsx(Xt,{path:"decrypt",element:S.jsx(Lce,{})})]}),S.jsxs(Xt,{path:"rsa",children:[S.jsx(Xt,{path:"keys/create",element:S.jsx(Pce,{})}),S.jsx(Xt,{path:"keys/export",element:S.jsx(Rd,{key_type:"rsa"})}),S.jsx(Xt,{path:"keys/import",element:S.jsx(Nd,{key_type:"rsa"})}),S.jsx(Xt,{path:"keys/revoke",element:S.jsx(_c,{objectType:"rsa"})}),S.jsx(Xt,{path:"keys/destroy",element:S.jsx(Ec,{objectType:"rsa"})}),S.jsx(Xt,{path:"encrypt",element:S.jsx(Dce,{})}),S.jsx(Xt,{path:"decrypt",element:S.jsx(Mce,{})})]}),S.jsxs(Xt,{path:"ec",children:[S.jsx(Xt,{path:"keys/create",element:S.jsx(gce,{})}),S.jsx(Xt,{path:"keys/export",element:S.jsx(Rd,{key_type:"ec"})}),S.jsx(Xt,{path:"keys/import",element:S.jsx(Nd,{key_type:"ec"})}),S.jsx(Xt,{path:"keys/revoke",element:S.jsx(_c,{objectType:"ec"})}),S.jsx(Xt,{path:"keys/destroy",element:S.jsx(Ec,{objectType:"ec"})}),S.jsx(Xt,{path:"encrypt",element:S.jsx(hce,{})}),S.jsx(Xt,{path:"decrypt",element:S.jsx(mce,{})})]}),S.jsxs(Xt,{path:"cc",children:[S.jsx(Xt,{path:"keys/create-master-key-pair",element:S.jsx(cce,{})}),S.jsx(Xt,{path:"keys/create-user-key",element:S.jsx(dce,{})}),S.jsx(Xt,{path:"keys/export",element:S.jsx(Rd,{key_type:"covercrypt"})}),S.jsx(Xt,{path:"keys/import",element:S.jsx(Nd,{key_type:"covercrypt"})}),S.jsx(Xt,{path:"keys/revoke",element:S.jsx(_c,{objectType:"covercrypt"})}),S.jsx(Xt,{path:"keys/destroy",element:S.jsx(Ec,{objectType:"covercrypt"})}),S.jsx(Xt,{path:"encrypt",element:S.jsx(lce,{})}),S.jsx(Xt,{path:"decrypt",element:S.jsx(oce,{})})]}),S.jsxs(Xt,{path:"secret-data",children:[S.jsx(Xt,{path:"create",element:S.jsx(kce,{})}),S.jsx(Xt,{path:"export",element:S.jsx(Rd,{key_type:"secret-data"})}),S.jsx(Xt,{path:"import",element:S.jsx(Nd,{key_type:"secret-data"})}),S.jsx(Xt,{path:"revoke",element:S.jsx(_c,{objectType:"secret-data"})}),S.jsx(Xt,{path:"destroy",element:S.jsx(Ec,{objectType:"secret-data"})})]}),S.jsxs(Xt,{path:"access-rights",children:[S.jsx(Xt,{path:"grant",element:S.jsx(nre,{})}),S.jsx(Xt,{path:"revoke",element:S.jsx(ore,{})}),S.jsx(Xt,{path:"list",element:S.jsx(rre,{})}),S.jsx(Xt,{path:"owned",element:S.jsx(Ice,{})}),S.jsx(Xt,{path:"obtained",element:S.jsx(are,{})})]}),S.jsxs(Xt,{path:"certificates",children:[S.jsx(Xt,{path:"certs/import",element:S.jsx(ace,{})}),S.jsx(Xt,{path:"certs/export",element:S.jsx(rce,{})}),S.jsx(Xt,{path:"certs/revoke",element:S.jsx(_c,{objectType:"certificate"})}),S.jsx(Xt,{path:"certs/destroy",element:S.jsx(Ec,{objectType:"certificate"})}),S.jsx(Xt,{path:"certs/validate",element:S.jsx(ice,{})}),S.jsx(Xt,{path:"encrypt",element:S.jsx(tce,{})}),S.jsx(Xt,{path:"decrypt",element:S.jsx(ece,{})}),S.jsx(Xt,{path:"certs/certify",element:S.jsx(Zse,{})})]}),S.jsxs(Xt,{path:"attributes",children:[S.jsx(Xt,{path:"get",element:S.jsx(Wae,{})}),S.jsx(Xt,{path:"set",element:S.jsx(Xse,{})}),S.jsx(Xt,{path:"delete",element:S.jsx(Zre,{})})]}),S.jsx(Xt,{path:"google-cse",element:S.jsx(fce,{})})]}),S.jsx(Xt,{path:"*",element:S.jsx(Oce,{})})]})})};function Fce(){const[e,t]=l.useState(!1);l.useEffect(()=>{async function a(){await TD()}a()},[]);const n={token:{colorPrimary:"#e34319",colorText:"#292f52"},components:{Layout:{headerBg:"#ffffff",footerPadding:"5px 50px"},Card:{colorBgContainer:"#ffffff",borderRadiusLG:8},Form:{itemMarginBottom:40},Switch:{trackHeight:32,handleSize:28},Button:{defaultHoverBorderColor:"#6e31e8",defaultHoverColor:"#6e31e8"}}},r={token:{colorPrimary:"#9e6eff",colorText:"#e4dddd",colorBgBase:"#2a2d30",colorTextPlaceholder:"#b9b9b9",colorError:"#e23030",colorBorder:"#4d4b4b",colorSplit:"#4d4b4b",colorBorderSecondary:"#4d4b4b"},components:{Layout:{headerBg:"#272d33",footerPadding:"5px 50px"},Menu:{itemSelectedBg:"#393E46",itemSelectedColor:"#9e6eff",itemHoverBg:"#2e3238",itemActiveBg:"#393E46",itemActiveColor:"#9e6eff"},Form:{colorError:"#FD7014",colorTextDescription:"#b9b9b9",itemMarginBottom:40},Button:{primaryShadow:"None",dangerShadow:"None,",defaultBorderColor:"#e4dddd"},Select:{selectorBg:"#2f3239",colorBorder:"#34383f",optionActiveBg:"#9e6eff",optionActiveColor:"#2a2d30",optionSelectedBg:"#9e6eff",optionSelectedColor:"#2a2d30",colorIcon:"#9e6eff"},Input:{selectorBg:"#2f3239",colorBorder:"#34383f"},InputNumber:{colorIcon:"#9e6eff",colorBorder:"#9e6eff"},Card:{colorBgContainer:"#393E46",borderRadiusLG:8},Switch:{trackHeight:32,handleSize:28}}};return S.jsx(Fne,{basename:"/ui",children:S.jsx(qo,{theme:{...gee.defaultConfig,...e?r:n},children:S.jsx(Zne,{children:S.jsx(Bce,{isDarkMode:e,setIsDarkMode:t})})})})}qk.createRoot(document.getElementById("root")).render(S.jsx(l.StrictMode,{children:S.jsx(Fce,{})}));
